:root{
  --primary:#55235d;
  --primary-2:#6f2f79;
  --primary-soft:#f7eef8;
  --accent:#ed6725;
  --accent-soft:#fff2eb;
  --text:#1f1722;
  --text-soft:#6c6470;
  --line:#eee5f1;
  --white:#ffffff;
  --panel:#ffffff;
  --bg:#faf7fb;
  --shadow:0 18px 50px rgba(85,35,93,.10);
  --shadow-soft:0 10px 30px rgba(85,35,93,.08);
  --radius-xl:28px;
  --radius-lg:22px;
  --radius-md:16px;
  --radius-sm:12px;
  --header-h:84px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Inter, Arial, Helvetica, sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(237,103,37,.08), transparent 25%),
    radial-gradient(circle at top right, rgba(85,35,93,.08), transparent 28%),
    var(--bg);
}

body.sidebar-open,
body.modal-open{
  overflow:hidden;
}

img{
  display:block;
  max-width:100%;
}

a{
  color:inherit;
  text-decoration:none;
}

button,
input{
  font:inherit;
}

.site-shell{
  min-height:100vh;
}

/* HEADER */
.header{
  position:sticky;
  top:0;
  z-index:1000;
  height:var(--header-h);
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:18px;
  padding:14px 22px;
  background:rgba(255,255,255,.85);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(85,35,93,.08);
}

.header-left,
.header-right{
  display:flex;
  align-items:center;
  gap:12px;
}

.header-right{
  justify-content:flex-end;
}

.header-center{
  display:flex;
  justify-content:center;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand img{
  width:46px;
  height:46px;
  object-fit:contain;
  border-radius:14px;
  box-shadow:var(--shadow-soft);
  background:#fff;
  padding:4px;
}

.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}

.brand-text strong{
  font-size:20px;
  color:var(--primary);
  letter-spacing:.2px;
}

.brand-text span{
  font-size:12px;
  color:var(--text-soft);
}

.mobile-menu-btn{
  display:none;
  width:44px;
  height:44px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:14px;
  padding:0;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:4px;
  box-shadow:var(--shadow-soft);
}

.mobile-menu-btn span{
  width:18px;
  height:2px;
  border-radius:999px;
  background:var(--primary);
}

.social{
  width:42px;
  height:42px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
  transition:all .25s cubic-bezier(.2,.8,.2,1);
}

.social:hover{
  transform:translateY(-2px);
  border-color:rgba(85,35,93,.22);
  color:var(--primary);
}

.social svg{
  width:18px;
  height:18px;
  fill:currentColor;
}

.search-form{
  position:relative;
  width:min(340px, 100%);
}

.search-form input{
  width:100%;
  height:48px;
  border:none;
  outline:none;
  border-radius:16px;
  background:#fff;
  padding:0 16px 0 44px;
  box-shadow:var(--shadow-soft);
  border:1px solid var(--line);
  color:var(--text);
}

.search-form input::placeholder{
  color:#9992a1;
}

.search-icon{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  width:18px;
  height:18px;
  fill:#8a7f8e;
}

.cart{
  min-width:106px;
  height:48px;
  padding:0 14px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:linear-gradient(135deg, var(--primary), var(--primary-2));
  color:#fff;
  box-shadow:0 16px 36px rgba(85,35,93,.24);
  position:relative;
  transition:all .25s cubic-bezier(.2,.8,.2,1);
}

.cart:hover{
  transform:translateY(-2px) scale(1.05);
  box-shadow:0 20px 50px rgba(85,35,93,.35);
}

.cart-icon{
  width:20px;
  height:20px;
  fill:currentColor;
}

.cart-label{
  font-size:14px;
  font-weight:600;
}

#cart-count{
  min-width:24px;
  height:24px;
  padding:0 7px;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:800;
}

/* LAYOUT */
.shop-layout{
  display:grid;
  grid-template-columns:300px minmax(0,1fr) 360px;
  gap:24px;
  padding:24px;
  align-items:start;
}

.layout-backdrop{
  display:none;
}

/* SIDEBAR */
.shop-sidebar{
  position:sticky;
  top:calc(var(--header-h) + 18px);
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(16px);
  border:1px solid rgba(85,35,93,.08);
  border-radius:var(--radius-xl);
  padding:22px;
  box-shadow:var(--shadow);
}

.sidebar-top{
  margin-bottom:20px;
}

.shop-logo{
  width:72px;
  height:72px;
  padding:8px;
  border-radius:20px;
  background:linear-gradient(135deg, rgba(85,35,93,.08), rgba(237,103,37,.08));
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:14px;
}

.shop-logo img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}

.sidebar-copy h3{
  margin:0 0 6px;
  font-size:20px;
  color:var(--primary);
}

.sidebar-copy p{
  margin:0;
  font-size:14px;
  line-height:1.6;
  color:var(--text-soft);
}

.category-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.cat-item{
  position:relative;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border-radius:16px;
  background:transparent;
  border:1px solid transparent;
  transition:all .25s cubic-bezier(.2,.8,.2,1);
}

.cat-item:hover{
  transform:translateX(6px);
  background:linear-gradient(135deg, #fbf8fc, #f7eef8);
  border-color:rgba(85,35,93,.10);
}

.cat-name{
  font-size:14px;
  font-weight:600;
  color:#4c4650;
}

.cat-count{
  min-width:34px;
  height:28px;
  padding:0 10px;
  border-radius:999px;
  background:#f1edf3;
  color:#6a6270;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:700;
}

.cat-item.active{
  background:linear-gradient(135deg, rgba(85,35,93,.12), rgba(85,35,93,.04));
  border-color:rgba(85,35,93,.16);
  box-shadow:0 14px 25px rgba(85,35,93,.10);
}

.cat-item.active::before{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  bottom:10px;
  width:4px;
  border-radius:999px;
  background:linear-gradient(180deg, var(--primary), var(--accent));
}

.cat-item.active .cat-name{
  color:var(--primary);
}

.cat-item.active .cat-count{
  background:linear-gradient(135deg, var(--primary), var(--primary-2));
  color:#fff;
}

/* MAIN */
.shop-main{
  min-width:0;
}

.hero-strip{
  background:rgba(255,255,255,.78);
  border:1px solid rgba(85,35,93,.08);
  backdrop-filter:blur(14px);
  color:var(--text);
  border-radius:24px;
  padding:16px 20px;
  margin-bottom:20px;
  box-shadow:0 10px 30px rgba(85,35,93,.06);
  overflow:hidden;
  position:relative;
}

.hero-strip::before,
.hero-strip::after{
  display:none;
}

.hero-strip-content{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.eyebrow{
  display:inline-block;
  font-size:10px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#8d8192;
  margin-bottom:0;
}

.hero-strip h1{
  margin:0;
  font-size:24px;
  line-height:1.1;
  font-weight:900;
  color:var(--primary);
}
.hero-strip p{
  margin:0;
  max-width:680px;
  color:rgba(255,255,255,.82);
  line-height:1.6;
}

.hero-meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.hero-pill{
  min-width:auto;
  padding:10px 14px;
  border-radius:14px;
  background:#f8f3f9;
  border:1px solid rgba(85,35,93,.08);
  backdrop-filter:none;
  box-shadow:none;
  display:flex;
  align-items:center;
  gap:8px;
}

.hero-pill strong{
  display:block;
  font-size:16px;
  line-height:1;
  margin-bottom:0;
  color:var(--primary);
}

.hero-pill span{
  font-size:12px;
  color:#7d7282;
}
.hero-left{
  display:flex;
  flex-direction:column;
  gap:4px;
}
/* PRODUCTS */
.products-grid{
  display:grid;
  grid-template-columns:repeat(5, minmax(0,1fr));
  gap:10px;
  align-items:stretch;
}

.product-card{
  position:relative;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(85,35,93,.08);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 10px 28px rgba(85,35,93,.08);
  transition:all .25s cubic-bezier(.2,.8,.2,1);
  display:flex;
  flex-direction:column;
  min-height:100%;
  backdrop-filter:blur(10px);
}

.product-card::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  box-shadow:0 0 0 1px rgba(85,35,93,.04);
  pointer-events:none;
}

.product-card:hover{
  transform:translateY(-3px);
  box-shadow:0 25px 60px rgba(85,35,93,.18);
  border-color:rgba(85,35,93,.18);
}

.product-media-wrap{
  position:relative;
  padding:6px 6px 0;
}

.product-click{
  position:relative;
  background:linear-gradient(180deg, #fff, #faf5fb);
  border-radius:12px;
  overflow:hidden;
  cursor:pointer;
  aspect-ratio:1 / 1;
  border:1px solid rgba(85,35,93,.06);
}

.product-click::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.08), transparent 40%);
  opacity:0;
  transition:.3s ease;
}

.product-card:hover .product-click::after{
  opacity:1;
}

.product-click img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .5s cubic-bezier(.2,.8,.2,1);
}

.product-card:hover .product-click img{
  transform:scale(1.04);
}

.stock-badge{
  position:absolute;
  left:24px;
  top:24px;
  z-index:2;
  padding:7px 11px;
  border-radius:999px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.04em;
  backdrop-filter:blur(8px);
  text-transform:uppercase;
}

.stock-badge.in{
  background:rgba(255,255,255,.95);
  color:var(--primary);
  border:1px solid rgba(85,35,93,.10);
}

.stock-badge.out{
  background:rgba(34,34,34,.85);
  color:#fff;
}

.product-body{
  padding:8px;
  display:flex;
  flex-direction:column;
  flex:1;
}

.product-name{
  margin:0 0 14px;
  font-size:13px;
  font-weight:700;
  line-height:1.35;
  color:#231b26;
  min-height:36px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
    margin-bottom:10px;

}

.product-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  margin-top:auto;
}

.price{
  font-size:16px;
  font-weight:900;
  color:var(--primary);
  line-height:1;
  letter-spacing:-0.5px;
}

.add-btn{
  position:relative;
  overflow:hidden;
  border:none;
  outline:none;
  cursor:pointer;
  min-width:60px;
  height:30px;
  padding:0 10px;
  border-radius:8px;
  background:linear-gradient(135deg, var(--accent), #ff864d);
  color:#fff;
  font-size:11px;
  font-weight:800;
  box-shadow:0 10px 22px rgba(237,103,37,.22);
  transition:all .25s cubic-bezier(.2,.8,.2,1);
  white-space:nowrap;
}

.add-btn::before{
  content:"";
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background:linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
  transition:.5s;
}

.add-btn:hover::before{
  left:100%;
}

.add-btn:hover{
  transform:translateY(-2px) scale(1.03);
  box-shadow:0 18px 40px rgba(237,103,37,.35);
}

.add-btn.disabled{
  background:#d8cfd8;
  box-shadow:none;
  cursor:not-allowed;
}

/* CART PANEL */
.cart-panel{
  position:sticky;
  top:calc(var(--header-h) + 18px);
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(16px);
  border:1px solid rgba(85,35,93,.08);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.cart-panel-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding:20px 20px 16px;
  border-bottom:1px solid var(--line);
}

.mini-label{
  display:inline-block;
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#9a8ea0;
  margin-bottom:6px;
}

.cart-panel h4{
  margin:0;
  font-size:22px;
  color:var(--primary);
}

.panel-cart-link{
  white-space:nowrap;
  padding:10px 14px;
  border-radius:12px;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:13px;
  font-weight:700;
}

#cart-panel-content{
  padding:18px 20px 20px;
  min-height:120px;
}

/* MODAL */
.modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(16,10,18,.58);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:3000;
  padding:20px;
}

.modal-overlay.show{
  display:flex;
}

.modal-box{
  position:relative;
  width:min(900px, 100%);
  max-height:88vh;
  overflow:auto;
  background:#fff;
  border-radius:28px;
  box-shadow:0 25px 70px rgba(0,0,0,.22);
  padding:28px;
}

.modal-close{
  position:absolute;
  right:14px;
  top:14px;
  width:42px;
  height:42px;
  border:none;
  background:#f5f0f7;
  color:var(--primary);
  border-radius:50%;
  font-size:24px;
  cursor:pointer;
}

/* MOBILE CART BAR */
.mobile-cart-bar{
  position:fixed;
  left:16px;
  right:16px;
  bottom:16px;
  z-index:1500;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border-radius:18px;
  background:linear-gradient(135deg, var(--primary), var(--primary-2));
  color:#fff;
  box-shadow:0 20px 45px rgba(85,35,93,.28);
  transform:translateY(120%);
  opacity:0;
  pointer-events:none;
  transition:.28s ease;
}

.mobile-cart-bar.show{
  transform:translateY(0);
  opacity:1;
  pointer-events:auto;
}

.mobile-cart-left{
  display:flex;
  flex-direction:column;
  line-height:1.2;
}

.mobile-cart-left strong{
  font-size:15px;
}

.mobile-cart-left span{
  font-size:12px;
  opacity:.82;
}

.mobile-cart-right{
  font-size:18px;
  font-weight:900;
}

/* EMPTY */
.empty-state{
  background:#fff;
  border:1px solid var(--line);
  border-radius:28px;
  padding:48px 24px;
  text-align:center;
  box-shadow:var(--shadow-soft);
}

.empty-icon{
  font-size:48px;
  margin-bottom:12px;
}

.empty-state h3{
  margin:0 0 8px;
  color:var(--primary);
  font-size:26px;
}

.empty-state p{
  margin:0 0 18px;
  color:var(--text-soft);
}

.reset-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:46px;
  padding:0 18px;
  border-radius:14px;
  background:linear-gradient(135deg, var(--primary), var(--primary-2));
  color:#fff;
  font-weight:700;
}

/* ANIMATIONS */
.bump{
  animation:bump .32s ease;
}

.shake{
  animation:shake .42s ease;
}

@keyframes bump{
  0%{transform:scale(1)}
  45%{transform:scale(1.22)}
  100%{transform:scale(1)}
}

@keyframes shake{
  0%,100%{transform:translateX(0)}
  20%{transform:translateX(-2px)}
  40%{transform:translateX(2px)}
  60%{transform:translateX(-2px)}
  80%{transform:translateX(2px)}
}

/* RESPONSIVE */
@media (max-width: 1600px){
  .shop-layout{
    grid-template-columns:280px minmax(0,1fr) 320px;
  }

  .products-grid{
    grid-template-columns:repeat(4, minmax(0,1fr));
  }
}

@media (max-width: 1350px){
  .products-grid{
    grid-template-columns:repeat(3, minmax(0,1fr));
  }
}

@media (max-width: 1080px){
  .header{
    grid-template-columns:1fr;
    height:auto;
    padding:14px 16px;
  }

  .header-left,
  .header-center,
  .header-right{
    width:100%;
    justify-content:space-between;
  }

  .header-center{
    justify-content:flex-start;
  }

  .search-form{
    flex:1;
    width:100%;
  }

  .shop-layout{
    grid-template-columns:1fr;
  }

  .shop-sidebar{
    position:fixed;
    left:16px;
    top:16px;
    bottom:16px;
    width:min(320px, calc(100vw - 32px));
    z-index:2200;
    overflow:auto;
    transform:translateX(-120%);
    transition:.28s ease;
  }

  .shop-sidebar.show{
    transform:translateX(0);
  }

  .layout-backdrop{
    position:fixed;
    inset:0;
    background:rgba(15,10,18,.45);
    z-index:2100;
    opacity:0;
    visibility:hidden;
    transition:.25s ease;
    display:block;
  }

  .layout-backdrop.show{
    opacity:1;
    visibility:visible;
  }

  .mobile-menu-btn{
    display:flex;
  }

  .cart-panel{
    position:static;
  }
}

@media (max-width: 760px){
  :root{
    --header-h:auto;
  }

  .header{
    gap:12px;
  }

  .header-left{
    justify-content:flex-start;
  }

  .header-right{
    gap:10px;
  }

  .brand-text span{
    display:none;
  }

  .cart{
    min-width:auto;
    padding:0 12px;
  }

  .cart-label{
    display:none;
  }

.hero-strip{
  padding:14px 16px;
  border-radius:18px;
}


 .hero-strip-content{
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
}

.hero-strip h1{
  font-size:20px;
}

.hero-meta{
  width:100%;
}

.hero-pill{
  padding:9px 12px;
}

  .products-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:14px;
  }

  .product-name{
    min-height:auto;
    font-size:16px;
  }

  .price{
    font-size:22px;
  }

  .shop-layout{
    padding:16px;
    gap:16px;
  }

  .modal-box{
    padding:22px 16px 16px;
    border-radius:20px;
  }
}

@media (max-width: 520px){
  .header-left{
    gap:8px;
  }

  .social{
    width:38px;
    height:38px;
    border-radius:12px;
  }

  .search-form input{
    height:44px;
    border-radius:14px;
  }

  .cart{
    height:44px;
    border-radius:14px;
  }

  #cart-count{
    min-width:22px;
    height:22px;
    font-size:11px;
  }

  .hero-strip h1{
    font-size:24px;
  }

  .hero-strip p{
    font-size:14px;
  }

  .hero-pill strong{
    font-size:20px;
  }

  .product-body{
    padding:16px;
  }

  .mobile-cart-bar{
    left:12px;
    right:12px;
    bottom:12px;
  }

  .products-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:12px;
  }

  .product-name{
    font-size:14px;
    min-height:0px;
  }

  .price{
    font-size:18px;
  }

  .add-btn{
    min-width:76px;
    height:38px;
    font-size:12px;
    padding:0 14px;
  }
}

/* BUSY STATE */
body.cart-busy .qty-btn,
body.cart-busy .add-btn,
body.cart-busy .modal-add,
body.cart-busy .dk-cart-remove{
  pointer-events:none;
  opacity:.75;
}

body.cart-busy .cart-panel{
  transition:opacity .18s ease;
}

body.cart-busy #cart-panel-content{
  opacity:.88;
}
/* TALABAT STYLE QTY BOX */
.qty-box{
  display:flex;
  align-items:center;
  gap:6px;
  background:#fff;
  border:1px solid #eee;
  border-radius:999px;
  padding:4px 6px;
  box-shadow:0 6px 16px rgba(0,0,0,.08);
}

.qty-box button{
  width:24px;
  height:24px;
  border:none;
  border-radius:50%;
  background:#f3f3f3;
  font-weight:900;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
}

.qty-box button:hover{
  background:var(--accent);
  color:#fff;
}

.qty-num{
  min-width:18px;
  text-align:center;
  font-size:12px;
  font-weight:800;
}