body{
margin:0;
font-family:Arial,sans-serif;
background:linear-gradient(135deg,#f4f1ea,#eef3f7);
color:#333;
overflow-x:hidden;
}

/* HEADER */

header{
display:flex;
align-items:center;
justify-content:space-between;
gap:20px;
padding:15px 40px;
background:#fffdf9;
box-shadow:0 3px 12px rgba(0,0,0,0.08);
position:fixed;
top:0;
left:0;
width:100%;
z-index:1000;
box-sizing:border-box;
transition:0.3s;
}

.logo{
font-size:26px;
font-weight:bold;
color:#ff6600;
white-space:nowrap;
}

.site-logo{
display:block;
flex:0 0 190px;
width:190px;
height:54px;
background-image:url("logo-treba.png");
background-repeat:no-repeat;
background-position:center;
background-size:190px 190px;
}

#search{
padding:12px 16px;
border-radius:10px;
border:1px solid #ddd;
width:100%;
max-width:360px;
margin-left:0;
transition:0.3s;
background:white;
box-sizing:border-box;
}

#search:focus{
outline:none;
border:1px solid #ff6600;
box-shadow:0 0 6px rgba(255,102,0,0.25);
}

/* BANNER */

.banner{
width:100%;
background:#f6efe5;
overflow:hidden;
}

.banner img{
width:100%;
height:clamp(300px,28vw,500px);
object-fit:cover;
object-position:center 20%;
margin-top:80px;
display:block;
}

/* CONTAINER */

.container{
display:flex;
margin-top:20px;
align-items:flex-start;
gap:0;
}

/* SIDEBAR */

.sidebar{
width:260px;
min-width:260px;
background:#fffdf9;
padding:20px;
border-right:1px solid #eee;
box-sizing:border-box;
position:relative;
z-index:5;
display:block;
visibility:visible;
opacity:1;
}

.sidebar h3{
margin:0 0 16px;
font-size:22px;
font-weight:bold;
color:#243041;
display:block;
}

.sidebar ul{
list-style:none;
padding:0;
margin:0;
display:flex;
flex-direction:column;
gap:12px;
visibility:visible;
opacity:1;
}

.sidebar li{
padding:14px 14px;
cursor:pointer;
border-radius:12px;
transition:0.3s;
background:#f7efe7;
color:#243041;
font-weight:600;
display:block;
visibility:visible;
opacity:1;
line-height:1.2;
}

.sidebar li:hover{
background:#ff6600;
color:white;
}

.sidebar li.active,
.sidebar li.selected{
background:#ff6600;
color:white;
box-shadow:0 6px 16px rgba(255,102,0,0.20);
}

/* MAIN */

main{
flex:1;
min-width:0;
display:block;
}

.filters{
padding:20px 20px 0;
display:flex;
justify-content:flex-end;
align-items:center;
gap:10px;
flex-wrap:wrap;
}

.filters select{
padding:10px 12px;
border-radius:8px;
border:1px solid #ddd;
background:white;
min-width:180px;
}

/* SMART FILTERS + META */

.smart-filters{
display:flex;
gap:10px;
flex-wrap:wrap;
padding:14px 20px 0;
}

.smart-chip{
display:inline-flex;
align-items:center;
cursor:pointer;
}

.smart-chip input{
display:none;
}

.smart-chip span{
display:inline-flex;
align-items:center;
justify-content:center;
padding:10px 14px;
border-radius:999px;
background:#fffdf9;
border:1px solid #ece7df;
box-shadow:0 8px 18px rgba(0,0,0,0.04);
color:#243041;
font-size:14px;
font-weight:800;
transition:.18s ease;
}

.smart-chip input:checked + span{
background:#ff6600;
color:#fff;
border-color:#ff6600;
box-shadow:0 10px 20px rgba(255,102,0,0.18);
}

.products-top-meta{
padding:14px 20px 0;
display:flex;
align-items:center;
justify-content:space-between;
gap:10px;
flex-wrap:wrap;
color:#6f7b8c;
font-size:14px;
font-weight:700;
}

/* DYNAMIC HOME BLOCKS */

.home-dynamic-block{
margin:0 20px 16px;
background:#fffdf9;
border:1px solid #ece7df;
border-radius:22px;
box-shadow:0 12px 28px rgba(0,0,0,0.05);
padding:20px;
}

.home-dynamic-head{
display:flex;
align-items:flex-end;
justify-content:space-between;
gap:14px;
flex-wrap:wrap;
margin-bottom:14px;
}

.home-dynamic-head h2{
margin:0;
color:#243041;
font-size:28px;
line-height:1.08;
}

.home-dynamic-head p{
margin:0;
color:#6f7b8c;
font-size:15px;
line-height:1.55;
}

.home-mini-grid{
display:grid;
grid-template-columns:repeat(4,minmax(0,1fr));
gap:14px;
}

/* PRODUCTS GRID */

.products{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:20px;
padding:20px;
flex:1;
box-sizing:border-box;
align-items:stretch;
}

.product{
background:#fffdf9;
border-radius:18px;
padding:15px;
box-shadow:0 6px 18px rgba(0,0,0,0.08);
text-align:center;
transition:0.3s;
cursor:pointer;
position:relative;
overflow:hidden;
border:1px solid #ece7df;
}

.product:hover{
transform:translateY(-5px);
box-shadow:0 10px 24px rgba(0,0,0,0.12);
}

.product img{
width:100%;
height:200px;
object-fit:cover;
border-radius:12px;
background:#f6ece0;
display:block;
}

.product h3{
font-size:18px;
margin:14px 0 8px;
line-height:1.3;
color:#243041;
min-height:46px;
}

.price{
font-size:20px;
color:#ff6600;
margin:8px 0;
font-weight:bold;
}

.old-price{
text-decoration:line-through;
color:gray;
margin-right:10px;
font-size:16px;
}

.quantity{
display:flex;
justify-content:center;
align-items:center;
gap:8px;
margin:12px 0;
}

.qty-input{
width:50px;
height:36px;
text-align:center;
border-radius:8px;
border:1px solid #ccc;
font-size:16px;
background:#fff;
}

.quantity button{
width:34px;
height:34px;
border:none;
background:#eee;
cursor:pointer;
border-radius:8px;
font-size:18px;
font-weight:bold;
transition:0.2s;
}

.quantity button:hover{
background:#ddd;
}

.add-btn{
background:#ff6600;
color:white;
border:none;
padding:12px 20px;
border-radius:10px;
cursor:pointer;
font-weight:bold;
transition:0.3s;
width:100%;
font-size:16px;
}

.add-btn:hover{
background:#ff4500;
}

.add-btn:active{
transform:scale(0.98);
}

/* ADD TO CART ANIMATION HELPERS */

.product.adding{
transform:translateY(-6px) scale(1.01);
box-shadow:0 12px 26px rgba(255,102,0,0.18);
}

.fly-clone{
position:fixed;
z-index:9999;
pointer-events:none;
border-radius:18px;
object-fit:cover;
box-shadow:0 18px 40px rgba(0,0,0,0.18);
transition:
transform .75s cubic-bezier(.2,.8,.2,1),
opacity .75s ease,
left .75s cubic-bezier(.2,.8,.2,1),
top .75s cubic-bezier(.2,.8,.2,1),
width .75s cubic-bezier(.2,.8,.2,1),
height .75s cubic-bezier(.2,.8,.2,1);
}

@keyframes cartBump{
0%{transform:scale(1);}
35%{transform:scale(1.13);}
100%{transform:scale(1);}
}

/* CART BUTTON */

.cart-button{
position:fixed;
right:20px;
top:120px;
z-index:3000;
background:#ff6600;
color:white;
padding:14px 18px;
border-radius:50%;
font-size:28px;
cursor:pointer;
box-shadow:0 6px 18px rgba(0,0,0,0.3);
transition:transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-button:hover{
transform:translateY(-2px);
box-shadow:0 10px 24px rgba(0,0,0,0.32);
}

.cart-button.bump{
animation:cartBump .45s ease;
}

/* CART PANEL */

.cart{
position:fixed;
right:-400px;
top:0;
width:350px;
height:100vh;
background:linear-gradient(180deg,#fffdf9 0%,#fff7ef 100%);
padding:20px;
box-shadow:-5px 0 30px rgba(0,0,0,0.2);
transition:0.4s;
z-index:4000;
overflow-y:auto;
box-sizing:border-box;
border-left:1px solid #ece7df;
}

.cart.open{
right:0;
}

.cart h2,
.cart h3{
margin-top:0;
color:#243041;
}

.cart h2{
font-size:28px;
margin-bottom:12px;
}

.cart-selling-text{
margin:8px 0 14px;
color:#5f6c7d;
font-size:14px;
line-height:1.6;
background:#fff8ef;
border:1px solid #ffe0c2;
border-radius:16px;
padding:12px 14px;
}

#cart-items{
display:flex;
flex-direction:column;
gap:12px;
}

.cart-empty-state{
padding:26px 18px;
border:1px dashed #e7ddd1;
border-radius:18px;
background:#fff;
text-align:center;
color:#6f7b8c;
}

.cart-empty-icon{
font-size:34px;
margin-bottom:8px;
}

.cart-empty-title{
font-size:18px;
font-weight:800;
color:#243041;
margin-bottom:6px;
}

.cart-empty-text{
font-size:14px;
line-height:1.6;
}

.cart-item{
display:flex;
justify-content:space-between;
align-items:center;
gap:12px;
padding:14px;
border:1px solid #efe7dc;
border-radius:18px;
background:#fff;
box-shadow:0 8px 20px rgba(0,0,0,0.04);
}

.cart-item-left{
display:flex;
align-items:center;
gap:12px;
min-width:0;
flex:1;
}

.cart-item-image{
width:62px;
height:62px;
object-fit:cover;
border-radius:14px;
background:#f4efe8;
flex-shrink:0;
border:1px solid #ede5db;
}

.cart-item-info{
min-width:0;
}

.cart-item-name{
font-size:15px;
font-weight:800;
color:#243041;
line-height:1.35;
margin-bottom:4px;
}

.cart-item-price{
font-size:14px;
color:#ff6600;
font-weight:800;
margin-bottom:4px;
}

.cart-item-subtotal{
font-size:13px;
color:#6f7b8c;
}

.cart-item-right{
display:flex;
flex-direction:column;
align-items:flex-end;
gap:8px;
}

.cart-qty-control{
display:inline-flex;
align-items:center;
gap:8px;
padding:6px;
background:#fff8f1;
border:1px solid #f0dfcb;
border-radius:14px;
}

.cart-qty-btn{
width:34px;
height:34px;
border:none;
border-radius:10px;
background:#ff6600;
color:#fff;
font-size:18px;
font-weight:900;
cursor:pointer;
box-shadow:0 8px 16px rgba(255,102,0,0.18);
transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.cart-qty-btn:hover{
background:#f05d00;
transform:translateY(-1px);
}

.cart-qty-value{
min-width:26px;
text-align:center;
font-size:15px;
font-weight:800;
color:#243041;
}

.cart-remove-btn{
border:none;
background:#fff1f1;
color:#d14343;
padding:8px 12px;
border-radius:10px;
font-size:13px;
font-weight:800;
cursor:pointer;
transition:background .18s ease, transform .18s ease;
}

.cart-remove-btn:hover{
background:#ffe4e4;
transform:translateY(-1px);
}

.cart-total,
.cart .total{
font-size:18px;
font-weight:bold;
margin:16px 0 10px;
color:#243041;
}

#total{
font-size:24px;
font-weight:900;
color:#243041;
margin:18px 0 14px;
padding:14px 16px;
background:#fff;
border:1px solid #ece7df;
border-radius:16px;
box-shadow:0 8px 20px rgba(0,0,0,0.04);
}

.cart-trust-box{
display:flex;
flex-direction:column;
gap:8px;
margin:14px 0;
padding:13px;
background:#f7fbff;
border:1px solid #dceeff;
border-radius:16px;
color:#415066;
font-size:14px;
line-height:1.45;
font-weight:700;
}

.cart-actions-selling{
display:flex;
flex-direction:column;
gap:10px;
margin-top:12px;
}

.cart-actions-selling button{
width:100%;
border:none;
border-radius:14px;
padding:13px 16px;
font-size:15px;
font-weight:800;
cursor:pointer;
transition:transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
}

.cart-actions-selling button:hover{
transform:translateY(-1px);
}

.cart-checkout-btn{
background:linear-gradient(135deg,#ff6600 0%,#ff8d38 100%);
color:#fff;
box-shadow:0 12px 24px rgba(255,102,0,0.22);
font-size:16px;
}

.cart-checkout-btn:hover{
box-shadow:0 15px 28px rgba(255,102,0,0.28);
}

.cart-continue-btn{
background:#eef2f7;
color:#243041;
}

.cart-clear-btn{
background:#fff;
color:#9a3b3b;
border:1px solid #ffd0d0 !important;
}

.cart-actions,
.cart-buttons{
display:flex;
gap:8px;
flex-wrap:wrap;
margin-top:12px;
}

.cart-actions button,
.cart-buttons button{
border:none;
border-radius:8px;
padding:10px 14px;
cursor:pointer;
font-weight:bold;
}

/* LEGACY CART BUTTON SUPPORT */

.cart > button{
width:100%;
border:none;
border-radius:14px;
padding:13px 16px;
font-size:15px;
font-weight:800;
cursor:pointer;
margin-bottom:10px;
transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.cart > button:hover{
transform:translateY(-1px);
}

.cart > button:nth-of-type(1){
background:#f3f4f6;
color:#243041;
}

.cart > button:nth-of-type(2){
background:linear-gradient(135deg,#ff6b00 0%,#ff8d38 100%);
color:#fff;
box-shadow:0 12px 24px rgba(255,107,0,0.22);
}

.cart > button:nth-of-type(3){
background:#fff;
color:#243041;
border:1px solid #ece7df;
}

/* CART OVERLAY */

.cart-overlay{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.5);
display:none;
z-index:3000;
}

.cart-overlay.active{
display:block;
}

/* CHECKOUT */

.checkout-modal{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
display:none;
align-items:center;
justify-content:center;
background:rgba(0,0,0,0.45);
z-index:5000;
padding:20px;
box-sizing:border-box;
}

.checkout-modal.open{
display:flex;
}

.checkout-box{
background:#fffdf9;
width:100%;
max-width:460px;
border-radius:20px;
padding:24px;
box-shadow:0 10px 35px rgba(0,0,0,0.2);
box-sizing:border-box;
border:1px solid #ece7df;
}

.checkout-box h2{
margin-top:0;
margin-bottom:10px;
color:#243041;
font-size:28px;
line-height:1.15;
}

.checkout-selling-text{
margin:8px 0 14px;
color:#5f6c7d;
font-size:14px;
line-height:1.6;
background:#fff8ef;
border:1px solid #ffe0c2;
border-radius:16px;
padding:12px 14px;
}

.checkout-box input,
.checkout-box select,
.checkout-box textarea{
width:100%;
padding:12px 14px;
margin-bottom:12px;
border:1px solid #ddd;
border-radius:10px;
font-size:15px;
box-sizing:border-box;
background:#fff;
font-family:inherit;
}

.checkout-box input:focus,
.checkout-box select:focus,
.checkout-box textarea:focus{
outline:none;
border-color:#ff6600;
box-shadow:0 0 0 3px rgba(255,102,0,0.10);
}

.checkout-trust-note{
margin:12px 0 4px;
padding:12px 14px;
background:#f7fbff;
border:1px solid #dceeff;
border-radius:14px;
color:#415066;
font-size:14px;
line-height:1.5;
font-weight:700;
}

.checkout-actions{
display:flex;
gap:10px;
flex-wrap:wrap;
margin-top:12px;
}

.checkout-actions button{
background:linear-gradient(135deg,#ff6600 0%,#ff8d38 100%);
color:white;
border:none;
padding:13px 18px;
border-radius:12px;
cursor:pointer;
font-weight:800;
transition:0.2s;
box-shadow:0 10px 22px rgba(255,102,0,0.18);
}

.checkout-actions button:hover{
opacity:0.95;
transform:translateY(-1px);
}

.secondary-btn{
background:#eef2f7 !important;
color:#243041 !important;
box-shadow:none !important;
}

/* NOVA POSHTA SEARCH */

.np-field-wrap{
position:relative;
}

.np-suggestions{
position:absolute;
left:0;
right:0;
top:100%;
background:#fff;
border:1px solid #ddd;
border-top:none;
border-radius:0 0 10px 10px;
max-height:220px;
overflow-y:auto;
display:none;
z-index:30;
box-shadow:0 8px 18px rgba(0,0,0,0.08);
}

.np-suggestion-item{
padding:10px 12px;
cursor:pointer;
border-bottom:1px solid #f2f2f2;
}

.np-suggestion-item:hover{
background:#fff5ee;
}

.np-suggestion-item:last-child{
border-bottom:none;
}

/* SOCIAL */

.social{
position:fixed;
right:18px;
left:auto;
bottom:20px;
display:flex;
flex-direction:column;
gap:10px;
z-index:2000;
}

.social a{
background:#ff6600;
color:white;
padding:10px 14px;
border-radius:8px;
text-decoration:none;
font-weight:bold;
box-shadow:0 4px 10px rgba(0,0,0,0.15);
transition:0.2s;
min-width:130px;
text-align:center;
}

.social a:hover{
background:#ea5a00;
transform:translateY(-1px);
}

header.hide{
transform:translateY(-100%);
}

/* TOAST / ALERT HELPERS */

.toast,
.cart-toast{
position:fixed;
right:20px;
bottom:20px;
background:#243041;
color:#fff;
padding:12px 16px;
border-radius:10px;
box-shadow:0 8px 24px rgba(0,0,0,0.18);
z-index:6000;
opacity:0;
transform:translateY(10px);
pointer-events:none;
transition:0.3s;
}

.toast.show,
.cart-toast.show{
opacity:1;
transform:translateY(0);
}

/* PRODUCT PAGE SUPPORT */

.product-body{
background:linear-gradient(135deg,#f6f1ea 0%,#eef4f8 100%);
min-height:100vh;
}

.product-topbar{
position:sticky;
top:0;
z-index:1100;
backdrop-filter:blur(12px);
background:rgba(255,253,249,0.92);
border-bottom:1px solid rgba(236,231,223,0.95);
box-shadow:0 8px 24px rgba(0,0,0,0.05);
}

.product-topbar-inner{
max-width:1280px;
margin:0 auto;
padding:14px 20px;
display:flex;
align-items:center;
justify-content:space-between;
gap:16px;
}

.product-brand{
display:flex;
align-items:center;
gap:14px;
min-width:0;
}

.product-brand-logo{
width:48px;
height:48px;
border-radius:16px;
background:linear-gradient(135deg,#ffd8b7,#fff4d9);
display:flex;
align-items:center;
justify-content:center;
font-size:24px;
box-shadow:inset 0 0 0 1px rgba(255,107,0,0.08);
flex-shrink:0;
}

.product-brand-text{
min-width:0;
}

.product-brand-text .logo{
display:block;
font-size:20px;
line-height:1.1;
color:#ff6b00;
font-weight:bold;
}

.product-brand-text small{
display:block;
color:#6f7b8c;
margin-top:3px;
font-size:13px;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}

.product-topbar-actions{
display:flex;
align-items:center;
gap:10px;
flex-wrap:wrap;
justify-content:flex-end;
}

.product-mini-btn,
.product-primary-btn,
.product-secondary-btn{
border:none;
border-radius:14px;
cursor:pointer;
font-weight:700;
transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.product-mini-btn:hover,
.product-primary-btn:hover,
.product-secondary-btn:hover{
transform:translateY(-1px);
}

.product-mini-btn{
padding:11px 16px;
background:#fff;
color:#243041;
border:1px solid #ece7df;
box-shadow:0 6px 18px rgba(0,0,0,0.04);
}

.product-cart-fab{
position:relative;
min-width:52px;
height:52px;
padding:0 16px;
border-radius:16px;
background:#ff6b00;
color:#fff;
display:flex;
align-items:center;
justify-content:center;
gap:8px;
box-shadow:0 12px 28px rgba(255,107,0,0.28);
border:none;
cursor:pointer;
}

.product-cart-fab.bump{
animation:cartBump .45s ease;
}

#product-cart-count{
position:absolute;
right:-6px;
top:-6px;
min-width:22px;
height:22px;
border-radius:999px;
background:#fff;
color:#ff6b00;
display:flex;
align-items:center;
justify-content:center;
font-size:12px;
font-weight:800;
box-shadow:0 6px 14px rgba(0,0,0,0.12);
padding:0 6px;
box-sizing:border-box;
}

.product-shell{
max-width:1280px;
margin:0 auto;
padding:28px 20px 48px;
box-sizing:border-box;
}

.product-breadcrumbs{
display:flex;
align-items:center;
gap:8px;
flex-wrap:wrap;
font-size:14px;
color:#6f7b8c;
margin-bottom:20px;
}

.product-breadcrumbs a,
.product-breadcrumbs button{
background:none;
border:none;
padding:0;
color:inherit;
cursor:pointer;
font:inherit;
}

.product-breadcrumbs a:hover,
.product-breadcrumbs button:hover{
color:#ff6b00;
}

.product-layout{
display:grid;
grid-template-columns:minmax(0,1.04fr) minmax(360px,0.96fr);
gap:28px;
align-items:start;
}

.product-gallery,
.product-info-card{
background:#fffdf9;
border:1px solid rgba(236,231,223,0.95);
border-radius:30px;
box-shadow:0 14px 38px rgba(0,0,0,0.08);
overflow:hidden;
}

.product-gallery{
padding:24px;
}

.product-gallery-frame{
position:relative;
overflow:hidden;
border-radius:28px;
background:linear-gradient(145deg,#fbefe1,#f0e0cf);
min-height:520px;
display:flex;
align-items:center;
justify-content:center;
box-shadow:inset 0 0 0 1px rgba(255,255,255,0.45);
}

.product-gallery-frame::before,
.product-gallery-frame::after{
content:"";
position:absolute;
border-radius:50%;
pointer-events:none;
opacity:.65;
}

.product-gallery-frame::before{
width:240px;
height:240px;
background:radial-gradient(circle,#ffd36f 0%,rgba(255,211,111,0) 70%);
top:-34px;
right:-18px;
}

.product-gallery-frame::after{
width:200px;
height:200px;
background:radial-gradient(circle,#ffd9c2 0%,rgba(255,217,194,0) 70%);
bottom:-40px;
left:-24px;
}

.product-main-image{
width:100%;
max-height:640px;
object-fit:contain;
display:block;
position:relative;
z-index:1;
}

.product-image-chip{
position:absolute;
left:20px;
bottom:20px;
z-index:2;
background:rgba(255,255,255,0.92);
color:#243041;
border:1px solid rgba(236,231,223,0.95);
border-radius:999px;
padding:10px 16px;
font-size:14px;
font-weight:700;
box-shadow:0 8px 22px rgba(0,0,0,0.08);
display:flex;
align-items:center;
gap:8px;
}

.product-info-card{
padding:28px;
box-sizing:border-box;
}

.product-badges{
display:flex;
flex-wrap:wrap;
gap:10px;
margin-bottom:14px;
}

.product-badge{
display:inline-flex;
align-items:center;
gap:8px;
padding:9px 14px;
border-radius:999px;
font-size:14px;
font-weight:700;
background:#fff5ec;
color:#b25a10;
border:1px solid #ffe0c5;
}

.product-title{
margin:0 0 16px;
color:#243041;
font-size:clamp(32px,4vw,48px);
line-height:1.08;
letter-spacing:-0.03em;
}

.product-price-row{
display:flex;
align-items:flex-end;
gap:14px;
flex-wrap:wrap;
margin-bottom:18px;
}

.product-price-current{
font-size:clamp(34px,3.2vw,46px);
line-height:1;
font-weight:800;
color:#ff6b00;
}

.product-price-old{
font-size:20px;
color:#97a0ab;
text-decoration:line-through;
margin-bottom:5px;
}

.product-discount{
padding:7px 11px;
border-radius:999px;
background:#ffe8d7;
color:#c35500;
font-weight:800;
font-size:14px;
margin-bottom:6px;
}

.product-desc{
color:#4d596b;
font-size:17px;
line-height:1.75;
margin:0 0 22px;
}

.product-feature-list{
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
gap:12px;
margin:0 0 22px;
padding:0;
list-style:none;
}

.product-feature-list li{
background:#fffaf4;
border:1px solid #f2e6d8;
border-radius:18px;
padding:14px 16px;
color:#445062;
font-size:15px;
line-height:1.45;
}

.product-feature-list strong{
display:block;
color:#243041;
margin-bottom:4px;
font-size:14px;
}

.product-buy-box{
margin-top:10px;
padding:18px;
background:linear-gradient(180deg,#fff9f2 0%,#fff 100%);
border:1px solid #f3e3d3;
border-radius:24px;
}

.product-buy-top{
display:flex;
align-items:center;
justify-content:space-between;
gap:16px;
flex-wrap:wrap;
margin-bottom:16px;
}

.product-stock{
color:#15803d;
background:#ecfdf3;
border:1px solid #b7efca;
padding:9px 14px;
border-radius:999px;
font-weight:700;
font-size:14px;
}

.product-qty{
display:flex;
align-items:center;
gap:12px;
flex-wrap:wrap;
}

.product-qty-label{
font-weight:700;
color:#243041;
}

.product-qty-control{
display:inline-flex;
align-items:center;
gap:10px;
background:#fff;
border:1px solid #eadfce;
border-radius:18px;
padding:8px;
box-shadow:0 8px 20px rgba(0,0,0,0.04);
}

.product-qty-control button{
width:42px;
height:42px;
border:none;
border-radius:14px;
background:#f3f3f3;
color:#253041;
font-size:24px;
cursor:pointer;
font-weight:700;
}

.product-qty-control input{
width:62px;
height:42px;
border:none;
background:transparent;
text-align:center;
font-size:18px;
font-weight:800;
color:#243041;
outline:none;
}

.product-actions{
display:flex;
gap:12px;
flex-wrap:wrap;
}

.product-primary-btn{
min-height:56px;
padding:14px 24px;
background:linear-gradient(135deg,#ff6b00 0%,#ff8a33 100%);
color:#fff;
box-shadow:0 16px 28px rgba(255,107,0,0.22);
font-size:16px;
}

.product-secondary-btn{
min-height:56px;
padding:14px 22px;
background:#fff;
color:#243041;
border:1px solid #ece7df;
box-shadow:0 10px 22px rgba(0,0,0,0.04);
font-size:16px;
}

.product-note{
margin-top:16px;
font-size:14px;
color:#6f7b8c;
line-height:1.6;
}

.product-empty{
background:#fffdf9;
border-radius:28px;
border:1px solid #ece7df;
box-shadow:0 14px 38px rgba(0,0,0,0.08);
padding:40px 28px;
text-align:center;
max-width:720px;
margin:48px auto 0;
}

.product-empty h1{
margin:0 0 10px;
color:#243041;
}

.product-empty p{
color:#6f7b8c;
margin:0 0 18px;
line-height:1.7;
}

/* FORM HELPERS */

.hidden{
display:none !important;
}

.text-center{
text-align:center;
}

/* RESPONSIVE */

@media (max-width: 1100px){
.products{
grid-template-columns:repeat(3,1fr);
}

.home-mini-grid{
grid-template-columns:repeat(2,minmax(0,1fr));
}

.product-layout{
grid-template-columns:1fr;
}

.product-gallery-frame{
min-height:460px;
}
}

@media (max-width: 900px){
.catalog-toggle{
display:flex;
align-items:center;
justify-content:center;
position:absolute;
right:16px;
top:14px;
order:3;
margin-left:0;
z-index:1201;
background:#ff6600;
color:#fff;
box-shadow:0 10px 24px rgba(255,102,0,0.24);
}

.container{
display:block;
gap:0;
margin-top:16px;
align-items:start;
}

.sidebar{
width:min(320px,82vw);
min-width:0;
height:calc(100vh - 24px);
border-right:none;
border-bottom:none;
padding:18px 14px 24px;
background:#fffdf9;
display:block;
visibility:visible;
opacity:1;
min-height:auto;
position:fixed;
left:12px;
top:12px;
align-self:start;
z-index:3200;
overflow-y:auto;
transform:translateX(-118%);
transition:transform .28s ease;
border-radius:24px;
box-shadow:0 18px 45px rgba(0,0,0,0.20);
}

.sidebar h3{
display:block;
visibility:visible;
opacity:1;
}

.sidebar ul{
display:flex;
flex-direction:column;
gap:12px;
max-height:none;
overflow:visible;
visibility:visible;
opacity:1;
}

.sidebar li{
display:block;
visibility:visible;
opacity:1;
padding:14px 14px;
border-radius:12px;
background:#f7efe7;
color:#243041;
font-size:15px;
font-weight:700;
}

.sidebar.open{
transform:translateX(0);
}

main{
min-width:0;
}

.products{
grid-template-columns:repeat(3,minmax(0,1fr));
padding:16px;
}

header{
padding:15px 16px;
padding-right:78px;
flex-wrap:wrap;
position:fixed;
}

#search{
max-width:none;
order:2;
flex:1 1 100%;
}

.filters{
padding:16px 16px 0;
justify-content:flex-start;
}

.smart-filters{
padding:12px 16px 0;
}

.products-top-meta{
padding:12px 16px 0;
}

.home-dynamic-block{
margin:0 16px 16px;
padding:16px;
}

.home-mini-grid{
grid-template-columns:1fr;
}

.social{
right:12px;
left:auto;
bottom:18px;
padding:0;
margin-top:0;
z-index:2000;
}

.social a{
min-width:120px;
text-align:center;
}

.product-topbar-inner{
padding:12px 14px;
}

.product-brand-logo{
width:42px;
height:42px;
border-radius:14px;
}

.product-brand-text .logo{
font-size:18px;
}

.product-topbar-actions{
gap:8px;
}

.product-mini-btn{
padding:10px 12px;
}

.product-shell{
padding:18px 12px 30px;
}

.product-gallery,
.product-info-card{
border-radius:24px;
}

.product-gallery{
padding:14px;
}

.product-gallery-frame{
min-height:320px;
border-radius:20px;
}

.product-info-card{
padding:18px;
}

.product-title{
font-size:34px;
}

.product-price-current{
font-size:34px;
}

.product-desc{
font-size:16px;
}

.product-feature-list{
grid-template-columns:1fr;
}

.product-buy-box{
padding:14px;
border-radius:20px;
}

.product-buy-top{
flex-direction:column;
align-items:flex-start;
}

.product-actions{
flex-direction:column;
}

.product-primary-btn,
.product-secondary-btn{
width:100%;
}

.product-cart-fab{
min-width:50px;
height:50px;
padding:0 14px;
}
}

@media (max-width: 600px){
.container{
display:block;
}

.sidebar{
width:min(300px,84vw);
min-width:0;
padding:16px 10px 24px;
left:10px;
top:10px;
height:calc(100vh - 20px);
}

.sidebar h3{
font-size:18px;
}

.sidebar li{
padding:12px 10px;
font-size:13px;
line-height:1.15;
}

.products{
grid-template-columns:repeat(2,minmax(0,1fr));
padding:14px 12px 20px;
gap:14px;
}

.product{
padding:12px;
border-radius:16px;
}

.product img{
height:150px;
}

.product h3{
font-size:15px;
min-height:40px;
margin:10px 0 6px;
}

.price{
font-size:17px;
}

.old-price{
font-size:13px;
margin-right:6px;
}

.add-btn{
font-size:14px;
padding:10px 12px;
}

.qty-input{
width:42px;
height:34px;
font-size:14px;
}

.quantity button{
width:30px;
height:30px;
font-size:16px;
}

.cart{
width:100%;
right:-100%;
padding:18px;
}

.cart h2{
font-size:26px;
}

.cart-button{
right:14px;
top:110px;
font-size:24px;
padding:12px 15px;
}

.cart-selling-text,
.cart-trust-box,
.checkout-selling-text,
.checkout-trust-note{
font-size:13px;
}

.cart-actions-selling button{
font-size:15px;
padding:13px 14px;
}

.checkout-box{
max-height:92vh;
overflow-y:auto;
padding:20px;
border-radius:18px;
}

.checkout-actions{
flex-direction:column;
}

.checkout-actions button{
width:100%;
}

.filters{
padding:14px 12px 0;
}

.filters select{
width:100%;
min-width:0;
}

.smart-filters{
padding:12px 12px 0;
}

.products-top-meta{
padding:12px 12px 0;
}

.home-dynamic-block{
margin:0 12px 16px;
padding:14px;
}

.social{
right:10px;
left:auto;
bottom:14px;
padding:0;
gap:8px;
}

.social a{
padding:10px 12px;
font-size:14px;
min-width:110px;
text-align:center;
}

.product-brand-text small{
display:none;
}

.product-topbar-actions{
width:100%;
justify-content:space-between;
}

.product-mini-btn{
flex:1;
}

.product-cart-fab{
min-width:56px;
}

.product-breadcrumbs{
font-size:13px;
margin-bottom:14px;
}

.product-gallery-frame{
min-height:270px;
}

.product-title{
font-size:28px;
}

.product-price-row{
gap:10px;
}

.product-price-current{
font-size:30px;
}

.product-price-old{
font-size:18px;
}

.product-qty{
width:100%;
justify-content:space-between;
}

.product-qty-control{
width:100%;
justify-content:space-between;
}

.product-qty-control input{
flex:1;
}

.cart-item{
flex-direction:column;
align-items:stretch;
}

.cart-item-right{
align-items:stretch;
}

.cart-qty-control{
justify-content:center;
}

#total{
font-size:20px;
}
}

@media (max-width: 520px){
.checkout-success-box{
padding:28px 18px;
border-radius:24px;
}

.checkout-success-box h2{
font-size:28px;
}

.checkout-success-order{
font-size:16px;
}
}

@media (max-width: 420px){
header{
padding:12px 10px;
padding-right:68px;
gap:12px;
}

.site-logo{
flex-basis:132px;
width:132px;
height:46px;
background-size:132px 132px;
}

.logo{
font-size:22px;
}

#search{
padding:10px 12px;
font-size:14px;
}

.banner img{
margin-top:74px;
height:220px;
max-height:none;
object-fit:cover;
object-position:center 18%;
}

.container{
display:block;
}

.sidebar{
width:min(288px,86vw);
min-width:0;
padding:14px 8px 22px;
left:8px;
top:8px;
height:calc(100vh - 16px);
}

.sidebar h3{
font-size:17px;
}

.sidebar li{
font-size:12px;
padding:11px 8px;
}

.products{
grid-template-columns:repeat(2,minmax(0,1fr));
gap:8px;
padding:10px 8px 16px;
}

.catalog-toggle{
width:42px;
height:42px;
font-size:24px;
right:10px;
top:12px;
}

.product{
padding:8px;
border-radius:14px;
}

.product img{
height:96px;
border-radius:10px;
}

.product h3,
.product-title{
font-size:11px;
line-height:1.2;
min-height:26px;
margin:8px 0 4px;
}

.price{
font-size:11px;
margin:4px 0;
display:flex;
flex-direction:column;
gap:2px;
align-items:center;
}

.old-price{
font-size:10px;
margin-right:0;
}

.quantity{
gap:4px;
margin:8px 0;
}

.qty-input{
width:30px;
height:28px;
font-size:12px;
padding:0;
}

.quantity button{
width:24px;
height:24px;
font-size:14px;
border-radius:6px;
}

.add-btn{
font-size:11px;
padding:8px 6px;
border-radius:8px;
line-height:1.15;
}

.cart-button{
top:102px;
right:10px;
}

.cart{
padding:14px;
}

.cart h2{
font-size:24px;
}

.cart-selling-text{
padding:11px 12px;
}

.cart-trust-box{
padding:12px;
}

.cart-item{
padding:12px;
border-radius:16px;
}

.cart-item-name{
font-size:14px;
}

.cart-checkout-btn{
font-size:15px;
}

.checkout-box{
padding:16px;
border-radius:16px;
}

.checkout-box h2{
font-size:24px;
}

.checkout-box input,
.checkout-box select,
.checkout-box textarea{
padding:11px 12px;
font-size:14px;
border-radius:10px;
}

.social a{
font-size:13px;
padding:9px 8px;
min-width:102px;
}

.product-shell{
padding:14px 10px 24px;
}
}

/* MOBILE CATALOG + SUCCESS MODAL */

body.catalog-menu-open,
body.success-modal-open{
overflow:hidden;
}

.catalog-toggle{
display:none;
border:none;
background:#fff;
color:#243041;
width:48px;
height:48px;
border-radius:14px;
font-size:28px;
line-height:1;
cursor:pointer;
box-shadow:0 6px 18px rgba(0,0,0,0.08);
flex-shrink:0;
}

.sidebar-overlay{
position:fixed;
inset:0;
background:rgba(17,24,39,0.46);
backdrop-filter:blur(2px);
display:none;
z-index:2600;
}

.sidebar-overlay.active{
display:block;
}

.checkout-success-modal{
position:fixed;
inset:0;
display:none;
align-items:center;
justify-content:center;
background:rgba(0,0,0,0.52);
z-index:7000;
padding:20px;
box-sizing:border-box;
}

.checkout-success-modal.open{
display:flex;
}

.checkout-success-box{
width:100%;
max-width:520px;
background:linear-gradient(180deg,#fffdf9 0%,#fff6ee 100%);
border-radius:28px;
padding:34px 28px;
box-shadow:0 22px 60px rgba(0,0,0,0.24);
text-align:center;
border:1px solid rgba(255,102,0,0.12);
animation:checkoutSuccessPop .28s ease;
}

.checkout-success-icon{
width:82px;
height:82px;
margin:0 auto 16px;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:38px;
background:linear-gradient(135deg,#eafcf0,#d8ffe6);
box-shadow:inset 0 0 0 1px rgba(34,197,94,0.14);
}

.checkout-success-box h2{
margin:0 0 12px;
font-size:34px;
line-height:1.15;
color:#243041;
}

.checkout-success-order{
display:inline-flex;
align-items:center;
justify-content:center;
gap:8px;
padding:12px 18px;
border-radius:999px;
background:#fff;
color:#ff6600;
font-weight:800;
font-size:18px;
box-shadow:0 10px 24px rgba(255,102,0,0.10);
margin-bottom:16px;
}

.checkout-success-box p{
margin:0;
font-size:17px;
line-height:1.7;
color:#4b5563;
}

.checkout-success-actions{
margin-top:24px;
}

.checkout-success-actions button{
background:#ff6600;
color:#fff;
border:none;
padding:14px 22px;
border-radius:14px;
font-size:16px;
font-weight:700;
cursor:pointer;
box-shadow:0 10px 24px rgba(255,102,0,0.22);
}

@keyframes checkoutSuccessPop{
0%{transform:scale(0.94);opacity:0;}
100%{transform:scale(1);opacity:1;}
}

/* FINAL MOBILE OVERRIDES */

@media (max-width: 900px){
.catalog-toggle{
display:flex;
align-items:center;
justify-content:center;
position:absolute;
right:16px;
top:14px;
order:3;
margin-left:0;
z-index:1201;
background:#ff6600;
color:#fff;
box-shadow:0 10px 24px rgba(255,102,0,0.24);
}
}

@media (max-width: 420px){
.catalog-toggle{
width:42px;
height:42px;
font-size:24px;
right:10px;
top:12px;
}
}

@media (max-width: 360px){
.products{
grid-template-columns:repeat(2,minmax(0,1fr));
gap:6px;
padding:10px 6px 14px;
}

.product{
padding:7px;
}

.product img{
height:88px;
}

.product h3{
font-size:10px;
min-height:24px;
}

.price{
font-size:10px;
}

.old-price{
font-size:9px;
}

.quantity button{
width:22px;
height:22px;
font-size:13px;
}

.qty-input{
width:26px;
height:26px;
font-size:11px;
}

.add-btn{
font-size:10px;
padding:7px 5px;
}
}
.catalog-category-button{
    width:100%;
    border:0;
    background:transparent;
    color:inherit;
    font:inherit;
    text-align:left;
    cursor:pointer;
    padding:10px 12px;
    border-radius:10px;
}

.catalog-category-button:hover,
.catalog-category-button.active{
    background:#fff1e8;
    color:#e85b00;
}

.catalog-category-details summary{
    cursor:pointer;
    margin:2px 12px 6px;
    color:#6f7b8c;
    font-size:13px;
}

.catalog-category-child{
    padding-left:28px;
    font-size:14px;
}

.catalog-load-more{
    grid-column:1 / -1;
    display:flex;
    justify-content:center;
    padding:24px 0;
}

/* TREBA BRAND THEME */

body{
background:linear-gradient(135deg,#f7f3eb 0%,#edf4f2 100%);
color:#17383b;
}

header,
.sidebar,
.product,
.cart,
.checkout-box{
background:#fffdf8;
}

#search:focus,
.checkout-box input:focus,
.checkout-box select:focus,
.checkout-box textarea:focus{
border-color:#0b4f52;
box-shadow:0 0 0 3px rgba(11,79,82,.12);
}

.sidebar li:hover,
.sidebar li.active,
.sidebar li.selected,
.smart-chip input:checked + span,
.add-btn,
.cart-button,
.checkout-actions button,
.catalog-toggle,
.checkout-success-actions button{
background:#0b4f52 !important;
border-color:#0b4f52 !important;
box-shadow:0 10px 24px rgba(11,79,82,.20) !important;
}

.catalog-category-button:hover,
.catalog-category-button.active{
background:#e7f1ef;
color:#0b4f52;
}

.sidebar-count,
.price,
.checkout-success-order{
color:#0b4f52;
}

.product:hover{
border-color:rgba(11,79,82,.35);
box-shadow:0 16px 34px rgba(11,79,82,.13);
}

/* TREBA CATALOG ALIGNMENT */

.product.product-card-with-badges{
display:flex;
flex-direction:column;
height:100%;
box-sizing:border-box;
}

.product-card-with-badges .catalog-card-actions{
margin-top:auto;
padding-top:10px;
}

.product-card-with-badges .catalog-secondary-btn{
background:#edf3f1;
color:#173f41;
border:1px solid #d9e6e1;
}

.product-card-with-badges .catalog-secondary-btn:hover{
background:#e2eeea;
}

/* TREBA CART */

.cart{
right:-470px;
width:min(440px,100vw);
padding:24px;
background:linear-gradient(180deg,#f8fbf9 0%,#eef5f2 100%);
border-left:1px solid #d4e3dd;
box-shadow:-14px 0 42px rgba(20,55,53,.22);
}

.cart-heading{
display:flex;
align-items:center;
justify-content:space-between;
gap:16px;
margin-bottom:12px;
}

.cart-heading h2{
margin:0;
color:#173f41;
}

.cart-close-btn{
width:42px;
height:42px;
border:1px solid #d6e4df;
border-radius:13px;
background:#fff;
color:#0b4f52;
font-size:18px;
font-weight:800;
cursor:pointer;
}

.cart-selling-text{
background:#edf5f2;
border-color:#d3e5df;
color:#45615f;
}

.cart-item{
display:grid;
grid-template-columns:minmax(0,1fr);
align-items:stretch;
gap:12px;
background:#fffdf9;
border-color:#dce8e3;
box-shadow:0 10px 24px rgba(11,79,82,.07);
}

.cart-item-left{
align-items:flex-start;
}

.cart-item-image{
width:76px;
height:76px;
background:#edf5f2;
border-color:#dce8e3;
}

.cart-item-name{
font-size:16px;
overflow-wrap:anywhere;
}

.cart-item-price{
color:#0b4f52;
}

.cart-item-right{
width:100%;
flex-direction:row;
align-items:center;
justify-content:space-between;
gap:12px;
}

.cart-qty-control{
background:#edf5f2;
border-color:#d3e5df;
}

.cart-qty-btn,
.cart-qty-btn:hover{
background:#0b4f52;
box-shadow:0 8px 16px rgba(11,79,82,.18);
}

.cart-remove-btn{
background:#f8eeee;
color:#9a3b3b;
}

#total{
background:#fffdf9;
border-color:#dce8e3;
color:#173f41;
}

.cart-trust-box{
background:#edf5f2;
border-color:#d3e5df;
color:#45615f;
}

.cart-checkout-btn,
.cart-checkout-btn:hover{
background:linear-gradient(135deg,#073b3f 0%,#0b5b5e 100%);
box-shadow:0 12px 24px rgba(11,79,82,.22);
}

.cart-continue-btn{
background:#e6efec;
color:#173f41;
}

.checkout-selling-text,
.checkout-trust-note{
background:#edf5f2;
border-color:#d3e5df;
color:#45615f;
}

.checkout-actions .secondary-btn{
background:#edf3f1 !important;
border:1px solid #d3e2dd !important;
color:#0b4f52 !important;
box-shadow:none !important;
}

@media (max-width:480px){
.cart{
padding:18px;
}

.cart-item-image{
width:68px;
height:68px;
}

.checkout-modal{
padding:12px;
}

.checkout-box{
padding:20px;
}
}
