/* ============ Base ============ */
*{margin:0;padding:0;box-sizing:border-box}

:root{
  --bg:#FCF8F9;
  --surface:#FFFFFF;

  --ink:#292326;
  --ink-soft:#756B70;

  --primary:#C85C7A;
  --primary-dark:#8F3D58;
  --primary-soft:#F7DDE5;

  --accent:#B9975B;

  --ok:#A64D68;

  --line:#E9DDE1;

  --shadow:0 10px 30px -12px rgba(143,61,88,.18);

  --radius:18px;
}

html{scroll-behavior:smooth}

body{
  font-family:'Vazirmatn',system-ui,sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.9;
}

img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
ul{list-style:none}
button{font-family:inherit;cursor:pointer;border:none;background:none}
input,select{font-family:inherit}

::selection{
  background:var(--primary);
  color:#fff
}

.container{
  max-width:1200px;
  margin-inline:auto;
  padding-inline:20px
}

/* ============ Top bar ============ */
.topbar{
  background:linear-gradient(
    90deg,
    var(--primary-dark),
    var(--primary),
    #5F806F
  );
  color:#fff;
  font-size:.78rem;
}

.topbar .container{
  display:flex;
  justify-content:center;
  gap:24px;
  padding-block:7px;
  flex-wrap:wrap
}

.topbar span{
  display:flex;
  align-items:center;
  gap:6px;
  opacity:.95
}

/* ============ Header ============ */
header.site{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}

.nav{
  display:flex;
  align-items:center;
  gap:28px;
  padding-block:14px
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  font-size:1.4rem;
  color:var(--primary)
}

.logo .mark{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-size:1.3rem;
  background:linear-gradient(135deg,var(--primary),#6F9481);
  color:#fff;
  box-shadow:var(--shadow);
}

.menu{
  display:flex;
  gap:26px;
  font-weight:500;
  font-size:.95rem
}

.menu a{
  position:relative;
  padding-block:4px;
  transition:color .2s
}

.menu a:hover{
  color:var(--primary)
}

.menu a::after{
  content:'';
  position:absolute;
  bottom:-2px;
  right:0;
  width:0;
  height:2px;
  border-radius:2px;
  background:var(--primary);
  transition:width .25s;
}

.menu a:hover::after{
  width:100%
}

.nav-actions{
  display:flex;
  align-items:center;
  gap:10px;
  margin-inline-start:auto
}

.icon-btn{
  position:relative;
  width:44px;
  height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:var(--primary-soft);
  color:var(--primary);
  transition:.2s;
  font-size:1.15rem;
}

.icon-btn:hover{
  background:var(--primary);
  color:#fff;
  transform:translateY(-2px)
}

.cart-count{
  position:absolute;
  top:-6px;
  left:-6px;
  min-width:20px;
  height:20px;
  padding-inline:5px;
  background:var(--accent);
  color:#fff;
  border-radius:999px;
  font-size:.7rem;
  font-weight:700;
  display:grid;
  place-items:center;
}

.search-box{
  position:relative
}

.search-box input{
  padding:10px 40px 10px 14px;
  border:1.5px solid var(--line);
  border-radius:999px;
  background:var(--surface);
  font-size:.9rem;
  outline:none;
  transition:.2s;
}

.nav .search-box input{
  width:230px
}

.nav .search-box input:focus{
  width:280px;
  border-color:var(--primary);
  box-shadow:0 0 0 4px var(--primary-soft)
}

.mobile-search{
  display:none
}

/* ============ Hero ============ */
.hero{
  position:relative;
  overflow:hidden;
  background:linear-gradient(
    135deg,
    #F8F7F1 0%,
    #EAF0EA 45%,
    #DCE9E1 100%
  );
  border-radius:0 0 40px 40px;
}

.hero .container{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  align-items:center;
  gap:40px;
  padding-block:64px
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#fff;
  color:var(--primary);
  padding:7px 16px;
  border-radius:999px;
  font-size:.8rem;
  font-weight:700;
  box-shadow:var(--shadow);
  margin-bottom:20px
}

.hero h1{
  font-size:clamp(1.8rem,4vw,3rem);
  font-weight:900;
  line-height:1.6;
  margin-bottom:16px
}

.hero h1 .hl{
  background:linear-gradient(90deg,var(--primary),#6F9481);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.hero p{
  color:var(--ink-soft);
  font-size:1.05rem;
  max-width:480px;
  margin-bottom:28px
}

.hero-cta{
  display:flex;
  gap:14px;
  flex-wrap:wrap
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:13px 30px;
  border-radius:999px;
  font-weight:700;
  font-size:.95rem;
  transition:.25s
}

.btn-primary{
  background:linear-gradient(135deg,var(--primary),#6F9481);
  color:#fff;
  box-shadow:0 12px 26px -10px rgba(49,92,74,.55);
}

.btn-primary:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 32px -10px rgba(49,92,74,.6)
}

.btn-ghost{
  background:#fff;
  color:var(--primary);
  border:1.5px solid var(--primary)
}

.btn-ghost:hover{
  background:var(--primary-soft)
}

.hero-stats{
  display:flex;
  gap:34px;
  margin-top:36px
}

.hero-stats b{
  display:block;
  font-size:1.5rem;
  color:var(--primary)
}

.hero-stats span{
  font-size:.82rem;
  color:var(--ink-soft)
}

.hero-art{
  position:relative;
  height:380px
}

.blob{
  position:absolute;
  inset:8% 6%;
  border-radius:58% 42% 55% 45%/55% 48% 52% 45%;
  background:linear-gradient(135deg,#9AB5A7,#4D735F);
  opacity:.20;
  animation:morph 9s ease-in-out infinite alternate;
}

@keyframes morph{
  0%{
    border-radius:58% 42% 55% 45%/55% 48% 52% 45%;
    transform:rotate(0)
  }
  100%{
    border-radius:42% 58% 45% 55%/48% 55% 45% 52%;
    transform:rotate(8deg)
  }
}

.hero-card{
  position:absolute;
  background:#fff;
  border-radius:20px;
  padding:14px 18px;
  box-shadow:0 24px 50px -20px rgba(31,63,50,.35);
  font-size:.85rem;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:10px;
  animation:float 5s ease-in-out infinite;
}

.hero-card .ico{
  width:40px;
  height:40px;
  border-radius:12px;
  display:grid;
  place-items:center;
  font-size:1.1rem;
  background:var(--primary-soft)
}

@keyframes float{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-12px)}
}

.hc1{top:14%;right:12%}
.hc2{bottom:22%;right:34%;animation-delay:1.2s}
.hc3{top:42%;left:4%;animation-delay:2.2s}

.hero-center{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  font-size:6.5rem;
  filter:drop-shadow(0 24px 30px rgba(49,92,74,.35));
  animation:float 6s ease-in-out infinite;
}

/* ============ Section headings ============ */
section{
  padding-block:64px
}

.sec-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:34px;
  flex-wrap:wrap
}

.sec-head h2{
  font-size:1.7rem;
  font-weight:900;
  position:relative;
  padding-inline-start:18px
}

.sec-head h2::before{
  content:'';
  position:absolute;
  inset-inline-start:0;
  top:8px;
  bottom:8px;
  width:6px;
  border-radius:6px;
  background:linear-gradient(var(--primary),#6F9481);
}

.sec-head p{
  color:var(--ink-soft);
  font-size:.92rem
}

/* ============ Categories ============ */
.cats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:18px
}

.cat{
  background:var(--surface);
  border:1.5px solid var(--line);
  border-radius:var(--radius);
  padding:26px 14px;
  text-align:center;
  transition:.25s;
  width:100%;
}

.cat:hover{
  transform:translateY(-6px);
  border-color:var(--primary);
  box-shadow:var(--shadow)
}

.cat .emoji{
  font-size:2.4rem;
  margin-bottom:10px
}

.cat b{
  font-size:.95rem
}

.cat span{
  display:block;
  font-size:.75rem;
  color:var(--ink-soft);
  margin-top:4px
}

/* ============ Filters & products ============ */
.toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-bottom:30px;
  background:var(--surface);
  border:1.5px solid var(--line);
  border-radius:var(--radius);
  padding:14px 18px;
}

.chip{
  padding:8px 20px;
  border-radius:999px;
  font-size:.85rem;
  font-weight:600;
  color:var(--ink-soft);
  border:1.5px solid var(--line);
  transition:.2s
}

.chip.active,.chip:hover{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff
}

.toolbar .spacer{
  flex:1
}

.sort-select{
  padding:9px 14px;
  border:1.5px solid var(--line);
  border-radius:12px;
  background:var(--surface);
  font-size:.85rem;
  outline:none;
  color:var(--ink);
  cursor:pointer
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
  gap:22px
}

.card{
  background:var(--surface);
  border:1.5px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:.28s;
  position:relative;
}

.card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow);
  border-color:#C9D8CF
}
.thumb{
  position:relative;
  height:210px;
  display:grid;
  place-items:center;
  font-size:4rem;
  background:linear-gradient(135deg,#EEF3EF,#DCE9E1);
}

.thumb .badge{
  position:absolute;
  top:12px;
  right:12px;
  background:var(--primary);
  color:#fff;
  font-size:.7rem;
  font-weight:700;
  padding:4px 12px;
  border-radius:999px
}

.thumb .badge.off{
  background:var(--accent)
}

.thumb .badge.off2{
  top:48px
}

.card-body{
  padding:16px 18px 18px;
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1
}

.card-body .brand{
  font-size:.72rem;
  color:var(--ink-soft);
  letter-spacing:.5px
}

.card-body h3{
  font-size:.98rem;
  font-weight:700;
  line-height:1.7
}

.rating{
  display:flex;
  align-items:center;
  gap:4px;
  font-size:.8rem;
  color:var(--accent)
}

.rating .num{
  color:var(--ink-soft)
}

.price-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:auto;
  padding-top:8px
}

.price b{
  font-size:1.05rem
}

.price .old{
  display:block;
  font-size:.78rem;
  color:var(--ink-soft);
  text-decoration:line-through
}

.add-btn{
  width:44px;
  height:44px;
  border-radius:14px;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:1.25rem;
  display:grid;
  place-items:center;
  transition:.2s;
  flex-shrink:0
}

.add-btn:hover{
  background:var(--primary);
  color:#fff;
  transform:rotate(90deg)
}

.empty{
  grid-column:1/-1;
  text-align:center;
  padding:60px 0;
  color:var(--ink-soft)
}

.empty .e{
  font-size:3rem;
  margin-bottom:10px
}

/* ============ Features strip ============ */
.feats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:18px
}

.feat{
  display:flex;
  gap:14px;
  align-items:center;
  background:var(--surface);
  border:1.5px solid var(--line);
  border-radius:var(--radius);
  padding:20px;
  transition:.25s
}

.feat:hover{
  border-color:var(--primary)
}

.feat .ico{
  width:52px;
  height:52px;
  border-radius:16px;
  flex-shrink:0;
  display:grid;
  place-items:center;
  font-size:1.5rem;
  background:var(--primary-soft)
}

.feat b{
  display:block;
  font-size:.95rem
}

.feat span{
  font-size:.8rem;
  color:var(--ink-soft)
}

/* ============ Banner ============ */
.promo{
  background:linear-gradient(
    120deg,
    var(--primary-dark),
    var(--primary) 55%,
    #5F806F
  );
  border-radius:28px;
  color:#fff;
  padding:52px 40px;
  position:relative;
  overflow:hidden;
}

.promo::after{
  content:'✨';
  position:absolute;
  font-size:9rem;
  opacity:.15;
  left:6%;
  top:50%;
  transform:translateY(-50%)
}

.promo h3{
  font-size:1.8rem;
  font-weight:900;
  margin-bottom:10px
}

.promo p{
  opacity:.9;
  margin-bottom:24px;
  max-width:520px
}

.promo .btn{
  background:#fff;
  color:var(--primary)
}

.promo .btn:hover{
  transform:translateY(-3px)
}

/* ============ Footer ============ */
footer{
  margin-top:40px;
  background:#1F3F32;
  color:#D5DED9;
  padding-block:56px 20px
}

.foot-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1.2fr;
  gap:36px;
  padding-bottom:36px;
  border-bottom:1px solid #355746
}

.foot-grid h4{
  color:#fff;
  font-size:1rem;
  margin-bottom:16px
}

.foot-grid p,
.foot-grid a{
  font-size:.88rem;
  display:block;
  margin-bottom:10px;
  transition:.2s
}

.foot-grid a:hover{
  color:#fff;
  padding-inline-start:4px
}

.socials{
  display:flex;
  gap:10px;
  margin-top:16px
}

.socials a{
  width:40px;
  height:40px;
  border-radius:12px;
  background:#355746;
  display:grid;
  place-items:center;
  font-size:1.05rem
}

.socials a:hover{
  background:var(--primary);
  color:#fff
}

.copy{
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  padding-top:20px;
  font-size:.8rem
}

/* ============ Cart drawer ============ */
.overlay{
  position:fixed;
  inset:0;
  background:rgba(31,63,50,.45);
  backdrop-filter:blur(3px);
  opacity:0;
  pointer-events:none;
  transition:.3s;
  z-index:90
}

.overlay.show{
  opacity:1;
  pointer-events:auto
}

.drawer{
  position:fixed;
  top:0;
  left:0;
  bottom:0;
  width:min(400px,92vw);
  background:var(--surface);
  z-index:100;
  display:flex;
  flex-direction:column;
  transform:translateX(-105%);
  transition:transform .35s cubic-bezier(.2,.8,.2,1);
  box-shadow:20px 0 60px rgba(0,0,0,.15)
}

.drawer.open{
  transform:translateX(0)
}

.drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 22px;
  border-bottom:1px solid var(--line);
  font-weight:800
}

.drawer-body{
  flex:1;
  overflow-y:auto;
  padding:18px 22px;
  display:flex;
  flex-direction:column;
  gap:14px
}

.c-item{
  display:flex;
  gap:12px;
  background:var(--bg);
  border:1.5px solid var(--line);
  border-radius:16px;
  padding:12px;
  align-items:center
}

.c-thumb {
    width: 70px;
    height: 70px;
    flex-shrink: 0;

    border-radius: 12px;

    background: #FCF8F9;

    border: 1px solid #E9DDE1;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.c-thumb img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    display: block;
}

.c-item .c-info{
  flex:1;
  min-width:0
}

.c-item .c-info b{
  font-size:.85rem;
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}

.c-item .c-price{
  font-size:.8rem;
  color:var(--primary);
  font-weight:700;
  display:block;
  margin-bottom:4px
}

.qty{
  display:flex;
  align-items:center;
  gap:8px
}

.qty button{
  width:26px;
  height:26px;
  border-radius:8px;
  background:var(--surface);
  border:1.5px solid var(--line);
  font-weight:800;
  color:var(--primary);
  display:grid;
  place-items:center
}

.qty button:hover{
  background:var(--primary);
  color:#fff
}

.qty span{
  min-width:20px;
  text-align:center;
  font-weight:700;
  font-size:.9rem
}

.c-remove{
  color:var(--ink-soft);
  font-size:1rem;
  transition:.2s
}

.c-remove:hover{
  color:#b42318
}

.drawer-foot{
  padding:18px 22px;
  border-top:1px solid var(--line)
}

.total-row{
  display:flex;
  justify-content:space-between;
  font-weight:800;
  margin-bottom:14px
}

.total-row .t-amount{
  color:var(--primary);
  font-size:1.15rem
}

.drawer-foot .btn{
  width:100%
}

.cart-hint{
  font-size:.78rem;
  color:var(--ink-soft);
  text-align:center;
  margin-top:10px
}

/* ============ Toast ============ */
.toast{
  position:fixed;
  bottom:26px;
  right:50%;
  transform:translate(50%,120px);
  background:var(--ink);
  color:#fff;
  padding:12px 24px;
  border-radius:999px;
  font-size:.88rem;
  display:flex;
  align-items:center;
  gap:8px;
  z-index:200;
  transition:transform .35s cubic-bezier(.2,.8,.2,1);
  box-shadow:0 16px 40px rgba(0,0,0,.25)
}

.toast.show{
  transform:translate(50%,0)
}

/* ============ Responsive ============ */
@media (max-width:960px){
  .hero .container{
    grid-template-columns:1fr;
    padding-block:48px
  }

  .hero-art{
    height:300px;
    order:-1
  }

  .menu{
    display:none
  }

  .nav .search-box{
    display:none
  }

  .mobile-search{
    display:block
  }

  .foot-grid{
    grid-template-columns:1fr 1fr
  }
}

@media (max-width:640px){
  .topbar .container{
    gap:14px;
    font-size:.7rem
  }

  .topbar span:nth-child(2){
    display:none
  }

  .hero-stats{
    gap:22px
  }
   }
/* =========================================
   NEW HEADER
========================================= */

.topbar a{
  color:#fff;
  transition:.2s;
}

.topbar a:hover{
  opacity:.75;
}

.logo{
  white-space:nowrap;
}

.logo .mark{
  font-family:Arial,sans-serif;
  font-size:1.15rem;
  font-weight:900;
  letter-spacing:-1px;
}


/* =========================================
   NEW HERO
========================================= */

.hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 85% 20%,rgba(184,154,90,.12),transparent 25%),
    linear-gradient(135deg,#F8F7F1 0%,#EEF3EF 52%,#E2ECE6 100%);
  border-radius:0 0 42px 42px;
}

.hero .container{
  min-height:560px;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  align-items:center;
  gap:50px;
  padding-block:70px;
}

.hero-text{
  position:relative;
  z-index:3;
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(255,255,255,.8);
  color:var(--primary);
  padding:8px 18px;
  border:1px solid rgba(49,92,74,.12);
  border-radius:999px;
  font-size:.8rem;
  font-weight:700;
  box-shadow:0 8px 25px rgba(31,63,50,.07);
  margin-bottom:22px;
}

.hero h1{
  font-size:clamp(2rem,4.5vw,3.7rem);
  font-weight:900;
  line-height:1.55;
  letter-spacing:-1px;
  max-width:650px;
  margin-bottom:18px;
}

.hero h1 .hl{
  display:inline-block;
  background:linear-gradient(
    90deg,
    var(--primary),
    #6F9481
  );
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.hero p{
  color:var(--ink-soft);
  font-size:1.05rem;
  line-height:2;
  max-width:570px;
  margin-bottom:30px;
}

.hero-cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.btn-primary{
  background:linear-gradient(
    135deg,
    var(--primary),
    #527662
  );
  color:#fff;
  box-shadow:0 14px 30px -12px rgba(49,92,74,.5);
}

.btn-primary:hover{
  transform:translateY(-3px);
  box-shadow:0 20px 35px -12px rgba(49,92,74,.55);
}

.btn-ghost{
  background:rgba(255,255,255,.8);
  color:var(--primary);
  border:1.5px solid rgba(49,92,74,.35);
}

.btn-ghost:hover{
  background:var(--primary-soft);
}


/* Hero contact */

.hero-contact{
  display:flex;
  gap:24px;
  flex-wrap:wrap;
  margin-top:36px;
  padding-top:24px;
  border-top:1px solid rgba(49,92,74,.12);
}

.hero-contact-item{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--ink);
}

.hero-contact-item:hover{
  color:var(--primary);
}

.hero-contact-item div{
  display:flex;
  flex-direction:column;
}

.hero-contact-item b{
  font-size:.82rem;
}

.hero-contact-item div span{
  font-size:.73rem;
  color:var(--ink-soft);
}

.hero-contact-icon{
  width:40px;
  height:40px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#fff;
  box-shadow:0 7px 20px rgba(31,63,50,.08);
}


/* =========================================
   HERO VISUAL
========================================= */

.hero-art{
  position:relative;
  height:430px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.hero-circle{
  position:absolute;
  border-radius:50%;
  pointer-events:none;
}

.circle-one{
  width:360px;
  height:360px;
  background:rgba(49,92,74,.09);
  border:1px solid rgba(49,92,74,.12);
  animation:heroPulse 7s ease-in-out infinite;
}

.circle-two{
  width:270px;
  height:270px;
  background:rgba(184,154,90,.13);
  border:1px solid rgba(184,154,90,.2);
  animation:heroPulse 7s ease-in-out infinite reverse;
}

@keyframes heroPulse{
  0%,100%{
    transform:scale(1);
  }
  50%{
    transform:scale(1.05);
  }
}


/* Main visual card */

.hero-main-card{
  position:relative;
  z-index:2;
  width:270px;
  height:300px;
  border-radius:34px;
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.96),
      rgba(245,244,237,.9)
    );
  border:1px solid rgba(255,255,255,.9);
  box-shadow:
    0 35px 80px rgba(31,63,50,.16),
    inset 0 1px 0 rgba(255,255,255,.9);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  transform:rotate(-3deg);
  transition:.4s;
}

.hero-main-card:hover{
  transform:rotate(0) translateY(-8px);
}

.hero-product-icon{
  width:100px;
  height:100px;
  border-radius:30px;
  display:grid;
  place-items:center;
  font-size:3rem;
  background:linear-gradient(
    135deg,
    var(--primary-soft),
    #E3ECE7
  );
  box-shadow:0 18px 35px rgba(49,92,74,.12);
  margin-bottom:22px;
}

.hero-main-text{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.hero-main-text span{
  color:var(--ink-soft);
  font-size:.78rem;
}

.hero-main-text strong{
  color:var(--primary);
  font-size:2rem;
  font-weight:900;
}

.hero-main-text small{
  color:var(--ink-soft);
  font-size:.72rem;
  margin-top:3px;
}


/* Floating cards */

.hero-floating-card{
  position:absolute;
  z-index:4;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,.9);
  border-radius:18px;
  padding:12px 15px;
  display:flex;
  align-items:center;
  gap:10px;
  box-shadow:0 20px 45px rgba(31,63,50,.13);
  animation:heroFloat 5s ease-in-out infinite;
}

.hero-floating-card > span{
  width:42px;
  height:42px;
  border-radius:13px;
  display:grid;
  place-items:center;
  background:var(--primary-soft);
  font-size:1.25rem;
}

.hero-floating-card div{
  display:flex;
  flex-direction:column;
}

.hero-floating-card b{
  font-size:.78rem;
}

.hero-floating-card small{
  color:var(--ink-soft);
  font-size:.65rem;
}

.hero-card-one{
  top:17%;
  right:4%;
}

.hero-card-two{
  bottom:16%;
  left:2%;
  animation-delay:1.5s;
}

@keyframes heroFloat{
  0%,100%{
    transform:translateY(0);
  }
  50%{
    transform:translateY(-10px);
  }
}


/* =========================================
   MOBILE HERO
========================================= */

@media (max-width:960px){

  .hero .container{
    grid-template-columns:1fr;
    min-height:auto;
    padding-block:50px 60px;
  }

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

  .hero p{
    margin-inline:auto;
  }

  .hero-cta{
    justify-content:center;
  }

  .hero-contact{
    justify-content:center;
  }

  .hero-art{
    height:360px;
    order:2;
  }

  .circle-one{
    width:300px;
    height:300px;
  }

  .circle-two{
    width:220px;
    height:220px;
  }

}

@media (max-width:640px){

  .topbar .container{
    gap:8px 14px;
  }

  .topbar span:first-child{
    display:none;
  }

  .nav{
    gap:10px;
  }

  .logo{
    font-size:1.15rem;
  }

  .logo .mark{
    width:38px;
    height:38px;
  }

  .nav-actions{
    gap:6px;
  }

  .hero h1{
    font-size:2rem;
  }

  .hero p{
    font-size:.92rem;
  }

  .hero-contact{
    flex-direction:column;
    align-items:center;
  }

  .hero-art{
    height:320px;
  }

  .hero-main-card{
    width:220px;
    height:250px;
  }

  .hero-product-icon{
    width:80px;
    height:80px;
    font-size:2.4rem;
  }

  .hero-main-text strong{
    font-size:1.7rem;
  }

  .hero-floating-card{
    padding:9px 11px;
  }

  .hero-floating-card > span{
    width:36px;
    height:36px;
  }

  .hero-card-one{
    right:0;
  }

  .hero-card-two{
    left:0;
  }

}
/* =========================================
   FINAL PINK THEME - REZAEI SHOP
   ========================================= */

:root{
  --bg:#FCF8F9;
  --surface:#FFFFFF;

  --ink:#292326;
  --ink-soft:#756B70;

  --primary:#C85C7A;
  --primary-dark:#8F3D58;
  --primary-soft:#F7DDE5;

  --accent:#B9975B;
  --ok:#A64D68;

  --line:#E9DDE1;

  --shadow:0 10px 30px -12px rgba(143,61,88,.18);

  --radius:18px;
}


/* =========================================
   TOP BAR
   ========================================= */

.topbar{
  background:linear-gradient(
    90deg,
    var(--primary-dark),
    var(--primary),
    #D9859C
  );
}


/* =========================================
   HEADER
   ========================================= */

.logo{
  color:var(--primary);
}

.logo .mark{
  background:linear-gradient(
    135deg,
    var(--primary),
    #E28FA7
  );
}

.menu a:hover{
  color:var(--primary);
}

.menu a::after{
  background:var(--primary);
}

.icon-btn{
  background:var(--primary-soft);
  color:var(--primary);
}

.icon-btn:hover{
  background:var(--primary);
  color:#fff;
}

.nav .search-box input:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 4px rgba(200,92,122,.12);
}


/* =========================================
   HERO
   ========================================= */

.hero{
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(185,151,91,.12),
      transparent 25%
    ),
    linear-gradient(
      135deg,
      #FCF8F9 0%,
      #F9E9EE 52%,
      #F3DCE4 100%
    );
}

.hero-badge{
  color:var(--primary);
  border-color:rgba(200,92,122,.15);
  box-shadow:0 8px 25px rgba(143,61,88,.07);
}

.hero h1 .hl{
  background:linear-gradient(
    90deg,
    var(--primary),
    #E28FA7
  );

  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.btn-primary{
  background:linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark)
  );

  box-shadow:
    0 14px 30px -12px rgba(143,61,88,.5);
}

.btn-primary:hover{
  box-shadow:
    0 20px 35px -12px rgba(143,61,88,.55);
}

.btn-ghost{
  color:var(--primary);
  border-color:rgba(200,92,122,.35);
}

.btn-ghost:hover{
  background:var(--primary-soft);
}

.hero-contact{
  border-top-color:rgba(200,92,122,.15);
}

.hero-contact-item:hover{
  color:var(--primary);
}

.hero-circle.circle-one{
  background:rgba(200,92,122,.09);
  border-color:rgba(200,92,122,.14);
}

.hero-circle.circle-two{
  background:rgba(185,151,91,.13);
  border-color:rgba(185,151,91,.2);
}

.hero-main-card{
  box-shadow:
    0 35px 80px rgba(143,61,88,.16),
    inset 0 1px 0 rgba(255,255,255,.9);
}

.hero-product-icon{
  background:linear-gradient(
    135deg,
    #F7DDE5,
    #F2C9D5
  );

  box-shadow:
    0 18px 35px rgba(200,92,122,.12);
}

.hero-main-text strong{
  color:var(--primary);
}

.hero-floating-card{
  box-shadow:
    0 20px 45px rgba(143,61,88,.13);
}

.hero-floating-card > span{
  background:var(--primary-soft);
}


/* =========================================
   SECTION HEADINGS
   ========================================= */

.sec-head h2::before{
  background:linear-gradient(
    var(--primary),
    #E28FA7
  );
}


/* =========================================
   CATEGORIES
   ========================================= */

.cat:hover{
  border-color:var(--primary);
  box-shadow:var(--shadow);
}


/* =========================================
   FILTERS
   ========================================= */

.chip.active,
.chip:hover{
  background:var(--primary);
  border-color:var(--primary);
}


/* =========================================
   PRODUCTS
   ========================================= */

.card:hover{
  border-color:#E3B5C2;
  box-shadow:var(--shadow);
}

.thumb{
  background:linear-gradient(
    135deg,
    #F9E9EE,
    #F3DCE4
  );
}

.thumb .badge{
  background:var(--primary);
}

.add-btn{
  background:var(--primary-soft);
  color:var(--primary);
}

.add-btn:hover{
  background:var(--primary);
  color:#fff;
}


/* =========================================
   FEATURES
   ========================================= */

.feat:hover{
  border-color:var(--primary);
}

.feat .ico{
  background:var(--primary-soft);
}


/* =========================================
   PROMO
   ========================================= */

.promo{
  background:linear-gradient(
    120deg,
    var(--primary-dark),
    var(--primary) 55%,
    #D9859C
  );
}

.promo .btn{
  color:var(--primary);
}


/* =========================================
   FOOTER
   ========================================= */

footer{
  background:#3A202A;
  color:#E9DDE1;
}

.foot-grid{
  border-bottom-color:#5A3542;
}

.socials a{
  background:#5A3542;
}

.socials a:hover{
  background:var(--primary);
  color:#fff;
}


/* =========================================
   CART
   ========================================= */

.overlay{
  background:rgba(58,32,42,.48);
}

.c-item .c-thumb{
  background:var(--primary-soft);
}

.c-item .c-price{
  color:var(--primary);
}

.qty button{
  color:var(--primary);
}

.qty button:hover{
  background:var(--primary);
  color:#fff;
}

.c-remove:hover{
  color:var(--primary-dark);
}

.total-row .t-amount{
  color:var(--primary);
}


/* =========================================
   GENERAL
   ========================================= */

::selection{
  background:var(--primary);
  color:#fff;
}
.thumb {
  position: relative;
  height: 250px !important;
  min-height: 250px !important;
  max-height: 250px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  overflow: hidden !important;

  background: linear-gradient(135deg, #EEF3EF, #DCE9E1);
  flex-shrink: 0 !important;
}

.product-image {
  display: block !important;

  width: 100% !important;
  height: 100% !important;

  max-width: 100% !important;
  max-height: 100% !important;

  object-fit: contain !important;
  object-position: center !important;
}
/* =========================
   Mega Menu
========================= */

.mega-menu-wrapper {
  position: relative;
}

.mega-menu-trigger {
  display: flex !important;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.mega-arrow {
  font-size: 14px;
  transition: transform .25s ease;
}

/* خود مگا منو */
.mega-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 50%;
  transform: translateX(50%) translateY(10px);

  width: 760px;
  max-width: calc(100vw - 40px);

  background: #fff;

  border: 1px solid #e5e9e6;
  border-radius: 18px;

  padding: 22px;

  box-shadow: 0 20px 50px rgba(0,0,0,.12);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity .25s ease,
    transform .25s ease,
    visibility .25s ease;

  z-index: 9999;
}

/* مثلث کوچک بالای منو */
.mega-menu::before {
  content: "";

  position: absolute;

  top: -7px;
  right: 50%;

  width: 14px;
  height: 14px;

  background: #fff;

  border-left: 1px solid #e5e9e6;
  border-top: 1px solid #e5e9e6;

  transform: translateX(50%) rotate(45deg);
}

/* باز شدن */
.mega-menu-wrapper:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateX(50%) translateY(0);
}

.mega-menu-wrapper:hover .mega-arrow {
  transform: rotate(180deg);
}


/* عنوان */
.mega-menu-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  padding-bottom: 16px;
  margin-bottom: 16px;

  border-bottom: 1px solid #edf0ee;
}

.mega-menu-title span {
  font-size: 1rem;
  font-weight: 800;
  color: #1c1b19;
}

.mega-menu-title small {
  font-size: .72rem;
  color: #7b837e;
}


/* دسته‌بندی‌ها */
.mega-menu-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 10px;
}


/* کارت دسته */
.mega-category {
  display: flex;
  align-items: center;

  gap: 12px;

  padding: 13px;

  border-radius: 14px;

  text-decoration: none;

  color: #1c1b19;

  background: #f8faf9;

  border: 1px solid transparent;

  transition:
    background .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.mega-category:hover {
  background: #eef5f1;

  border-color: #d5e4dc;

  transform: translateY(-2px);
}


/* آیکن */
.mega-category-icon {
  width: 42px;
  height: 42px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: #e4eee8;

  font-size: 20px;
}


/* نام دسته */
.mega-category strong {
  display: block;

  font-size: .86rem;

  margin-bottom: 4px;
}


/* متن کوچک */
.mega-category span {
  display: block;

  font-size: .68rem;

  color: #7b837e;
}


/* =========================
   Mobile
========================= */

@media (max-width: 768px) {

  .mega-menu {
    position: fixed;

    top: 80px;
    right: 20px;
    left: 20px;

    width: auto;
    max-width: none;

    transform: translateY(-10px);

    max-height: calc(100vh - 110px);

    overflow-y: auto;
  }

  .mega-menu-wrapper:hover .mega-menu {
    transform: translateY(0);
  }

  .mega-menu::before {
    display: none;
  }
  
  .mega-menu-grid {
    grid-template-columns: 1fr;
  }

  .mega-menu-title {
    display: block;
  }

  .mega-menu-title small {
    display: block;
    margin-top: 5px;
  }

}
.brand-item .mega-category-icon {
  overflow: hidden;
}

.brand-item .mega-category-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.mega-menu-wrapper::after {
  content: "";

  position: absolute;

  top: 100%;
  right: 0;

  width: 100%;
  height: 18px;

  background: transparent;

  z-index: 9998;
}
/* =========================
   Variant Checkbox
========================= */

.variant-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 16px;
    font-size: 14px;
    color: #333;
}

.variant-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #bbb;
    border-radius: 5px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}

.variant-checkbox input:checked + .checkmark {
    background: #174D3D;
    border-color: #174D3D;
}

.variant-checkbox input:checked + .checkmark::after {
    content: "✓";
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-text {
    line-height: 1.5;
}
.variant-row {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    background: #fafafa;
}

.variant-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.variant-grid label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
}

.variant-grid input {
    width: 100%;
    box-sizing: border-box;
}

.remove-variant {
    margin-top: 14px;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: #eee;
    cursor: pointer;
}

.remove-variant:hover {
    background: #ddd;
}
#has_variants {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;

    margin: 0 !important;
    padding: 0 !important;

    appearance: auto !important;
    -webkit-appearance: checkbox !important;

    cursor: pointer;
}
.variant-row {
    margin-top: 15px;
    padding: 18px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fafafa;
}

.variant-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.variant-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
}

.variant-field input {
    width: 100%;
    box-sizing: border-box;
}

.remove-variant {
    margin-top: 15px;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: #eee;
    cursor: pointer;
}
/* اندازه صحیح checkbox تنوع محصول */

#has_variants {
    width: 16px !important;
    height: 16px !important;

    min-width: 16px !important;
    min-height: 16px !important;

    max-width: 16px !important;
    max-height: 16px !important;

    padding: 0 !important;
    margin: 0 !important;

    flex: 0 0 16px !important;

    appearance: auto !important;
    -webkit-appearance: checkbox !important;

    cursor: pointer;
}
.variant-checkbox {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;

    width: fit-content !important;
    height: auto !important;

    margin-bottom: 15px !important;
    padding: 0 !important;
}
/* =========================
   Variant Toggle
========================= */

.variant-toggle-box {
    width: 100%;
    margin: 20px 0;
}

.variant-toggle {
    position: relative;

    display: inline-flex !important;
    align-items: center !important;

    width: auto !important;
    height: auto !important;

    padding: 0 !important;
    margin: 0 !important;

    cursor: pointer;
    gap: 9px;
}


/* مخفی کردن checkbox اصلی */

.variant-toggle input {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    min-width: 1px !important;
    min-height: 1px !important;

    opacity: 0 !important;

    pointer-events: none !important;
}


/* کلید */

.variant-toggle-switch {
    width: 34px !important;
    height: 19px !important;

    min-width: 34px !important;
    max-width: 34px !important;

    border-radius: 20px;

    background: #d4d4d4;

    position: relative;

    transition: .2s;

    display: block !important;
}


/* دایره داخل کلید */

.variant-toggle-dot {
    position: absolute;

    width: 15px !important;
    height: 15px !important;

    min-width: 15px !important;
    max-width: 15px !important;

    top: 2px;
    right: 17px;

    border-radius: 50%;

    background: #fff;

    transition: .2s;

    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}


/* حالت فعال */

.variant-toggle input:checked
+ .variant-toggle-switch {

    background: #174D3D;
}


/* حرکت دایره */

.variant-toggle input:checked
+ .variant-toggle-switch
.variant-toggle-dot {

    right: 2px;
}


.variant-toggle-text {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #333;
}

/* =========================================
   DARK / LIGHT MODE
   REZAEI SHOP
   ========================================= */

.theme-toggle{
  font-size:1.05rem;
}


/* =========================================
   BASE DARK MODE
   ========================================= */

html{
  color-scheme:light;
}

html.dark-mode{
  color-scheme:dark;
}


/* =========================================
   BODY
   ========================================= */

html.dark-mode body{
  background:#0b0c0c;
  color:#f5f5f5;
}


/* =========================================
   HEADER
   ========================================= */

html.dark-mode header.site{
  background:#101111;
  border-bottom-color:#252626;
  box-shadow:0 4px 20px rgba(0,0,0,.25);
}


/* =========================================
   TOP BAR
   ========================================= */

html.dark-mode .topbar{
  background:linear-gradient(
    90deg,
    #74364a,
    #a94d69,
    #456a59
  );
}


/* =========================================
   SEARCH
   ========================================= */

html.dark-mode .search-box input{
  background:#171818;
  color:#f5f5f5;
  border-color:#303131;
}

html.dark-mode .search-box input::placeholder{
  color:#8f9090;
}

html.dark-mode .sort-select{
  background:#171818;
  color:#f5f5f5;
  border-color:#303131;
}


/* =========================================
   HERO
   ========================================= */

html.dark-mode .hero{
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(185,151,91,.08),
      transparent 25%
    ),
    linear-gradient(
      135deg,
      #111212 0%,
      #151616 55%,
      #191a1a 100%
    );
}


/* =========================================
   HERO ELEMENTS
   ========================================= */

html.dark-mode .hero-badge,
html.dark-mode .btn-ghost,
html.dark-mode .hero-contact-icon{
  background:#1b1c1c;
  color:#f5f5f5;
  border-color:#303131;
}

html.dark-mode .hero-badge{
  color:#c85c7a;
  border-color:rgba(200,92,122,.30);
}

html.dark-mode .hero-contact-icon{
  box-shadow:0 8px 25px rgba(0,0,0,.25);
}


/* =========================================
   HERO CARDS
   ========================================= */

html.dark-mode .hero-main-card{
  background:
    linear-gradient(
      145deg,
      #1a1b1b,
      #121313
    );

  border-color:#2b2c2c;

  box-shadow:
    0 30px 70px rgba(0,0,0,.35);
}

html.dark-mode .hero-floating-card{
  background:#191a1a;
  border-color:#2b2c2c;
  box-shadow:0 20px 45px rgba(0,0,0,.30);
}


/* =========================================
   CATEGORIES / PRODUCTS / FEATURES
   ========================================= */

html.dark-mode .cat,
html.dark-mode .card,
html.dark-mode .feat,
html.dark-mode .toolbar{
  background:#151616;
  border-color:#292a2a;
}


/* =========================================
   PRODUCT IMAGE AREA
   ========================================= */

html.dark-mode .thumb{
  background:
    linear-gradient(
      135deg,
      #111212,
      #191a1a
    );
}


/*
   مهم:
   روی خود عکس‌های محصولات هیچ filter
   اعمال نمی‌کنیم تا رنگ عکس‌ها تغییر نکند.
*/

html.dark-mode .product-image{
  filter:none;
}


/* =========================================
   PRODUCT CARD
   ========================================= */

html.dark-mode .card{
  box-shadow:
    0 12px 35px rgba(0,0,0,.25);
}

html.dark-mode .card:hover{
  box-shadow:
    0 18px 45px rgba(0,0,0,.35);
}


/* =========================================
   PRODUCT TEXT
   ========================================= */

html.dark-mode .card h3,
html.dark-mode .card b{
  color:#f5f5f5;
}

html.dark-mode .card .brand{
  color:#d9d9d9;
}

html.dark-mode .card .rating{
  color:#b9975b;
}

html.dark-mode .card .old{
  color:#777;
}


/* =========================================
   CATEGORY CHIPS
   ========================================= */

html.dark-mode .chip{
  background:#121313;
  color:#dddddd;
  border-color:#303131;
}

html.dark-mode .chip:hover{
  background:#1c1d1d;
  border-color:#4a4b4b;
}

html.dark-mode .chip.active{
  background:#c85c7a;
  color:#ffffff;
  border-color:#c85c7a;
}


/* =========================================
   SORT
   ========================================= */

html.dark-mode .sort-select{
  background:#121313;
  color:#f5f5f5;
  border-color:#303131;
}


/* =========================================
   ADD BUTTON
   ========================================= */

html.dark-mode .add-btn{
  background:#542536;
  color:#f5f5f5;
}

html.dark-mode .add-btn:hover{
  background:#8f3d58;
}


/* =========================================
   DISCOUNT BADGE
   ========================================= */

html.dark-mode .badge.off{
  background:#a98445;
  color:#fff;
}


/* =========================================
   MEGA MENU
   ========================================= */

html.dark-mode .mega-menu{
  background:#151616;
  border-color:#303131;
  box-shadow:
    0 20px 50px rgba(0,0,0,.45);
}

html.dark-mode .mega-menu::before{
  background:#151616;
  border-color:#303131;
}

html.dark-mode .mega-menu-title{
  border-bottom-color:#303131;
}

html.dark-mode .mega-menu-title span{
  color:#f5f5f5;
}

html.dark-mode .mega-menu-title small,
html.dark-mode .mega-category span{
  color:#929393;
}


/* =========================================
   MEGA MENU ITEMS
   ========================================= */

html.dark-mode .mega-category{
  background:#1b1c1c;
  color:#f5f5f5;
  border-color:#292a2a;
}

html.dark-mode .mega-category:hover{
  background:#242525;
  border-color:#3b3c3c;
}

html.dark-mode .mega-category-icon{
  background:#252626;
}


/* =========================================
   BRAND ITEMS
   ========================================= */

html.dark-mode .brand-item{
  color:#eeeeee;
}

html.dark-mode .brand-item:hover{
  background:#202121;
}


/* =========================================
   CART DRAWER
   ========================================= */

html.dark-mode .drawer{
  background:#111212;
  border-color:#292a2a;
  box-shadow:
    20px 0 60px rgba(0,0,0,.45);
}

html.dark-mode .drawer-head,
html.dark-mode .drawer-foot{
  border-color:#292a2a;
}


/* =========================================
   CART ITEMS
   ========================================= */

html.dark-mode .c-item{
  background:#181919;
  border-color:#2b2c2c;
}

html.dark-mode .c-item .c-thumb{
  background:#222323;
}

html.dark-mode .c-item .c-info b{
  color:#f5f5f5;
}

html.dark-mode .c-item .c-price{
  color:#c85c7a;
}


/* =========================================
   CART QUANTITY
   ========================================= */

html.dark-mode .qty button{
  background:#1c1d1d;
  border-color:#383939;
  color:#c85c7a;
}

html.dark-mode .qty button:hover{
  background:#c85c7a;
  color:#fff;
}


/* =========================================
   REMOVE CART ITEM
   ========================================= */

html.dark-mode .c-remove{
  color:#999;
}

html.dark-mode .c-remove:hover{
  color:#e04f68;
}


/* =========================================
   VARIANTS
   ========================================= */

html.dark-mode .variant-checkbox{
  color:#f5f5f5;
}

html.dark-mode .variant-row{
  background:#181919;
  border-color:#303131;
}

html.dark-mode .remove-variant{
  background:#292a2a;
  color:#eeeeee;
}


/* =========================================
   FOOTER
   ========================================= */

html.dark-mode footer{
  background:#0d0e0e;
  color:#d7d7d7;
}

html.dark-mode .foot-grid{
  border-bottom-color:#292a2a;
}


/* =========================================
   SOCIAL BUTTONS
   ========================================= */

html.dark-mode .socials a{
  background:#202121;
  color:#eeeeee;
}

html.dark-mode .icon-btn{
  background:#202121;
  color:#c85c7a;
}

html.dark-mode .icon-btn:hover{
  background:#c85c7a;
  color:#fff;
}


/* =========================================
   EMPTY STATE
   ========================================= */

html.dark-mode .empty{
  color:#eeeeee;
}

html.dark-mode .empty small{
  color:#999;
}


/* =========================================
   OVERLAY
   ========================================= */

html.dark-mode #overlay{
  background:rgba(0,0,0,.72);
}


/* =========================================
   INPUTS / SELECTS / TEXTAREAS
   ========================================= */

html.dark-mode input,
html.dark-mode select,
html.dark-mode textarea{
  background:#151616;
  color:#f5f5f5;
  border-color:#303131;
}

html.dark-mode input::placeholder,
html.dark-mode textarea::placeholder{
  color:#858686;
}

html.dark-mode input:focus,
html.dark-mode select:focus,
html.dark-mode textarea:focus{
  border-color:#c85c7a;
}


/* =========================================
   SCROLLBAR
   ========================================= */

html.dark-mode{
  scrollbar-color:#383939 #0b0c0c;
}

html.dark-mode ::-webkit-scrollbar{
  width:10px;
  height:10px;
}

html.dark-mode ::-webkit-scrollbar-track{
  background:#0b0c0c;
}

html.dark-mode ::-webkit-scrollbar-thumb{
  background:#383939;
  border-radius:10px;
}

html.dark-mode ::-webkit-scrollbar-thumb:hover{
  background:#4b4c4c;
}
/* =========================================
   DARK MODE - CARD HOVER GLOW
   ========================================= */

/* کارت دسته‌بندی */
html.dark-mode .cat{
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease,
    background .25s ease;
}

html.dark-mode .cat:hover{
  transform:translateY(-5px);

  background:#191a1a;

  border-color:rgba(200,92,122,.45);

  box-shadow:
    0 0 0 1px rgba(200,92,122,.12),
    0 8px 25px rgba(200,92,122,.16),
    0 0 35px rgba(200,92,122,.10);
}


/* کارت محصول */
html.dark-mode .card{
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease,
    background .25s ease;
}

html.dark-mode .card:hover{
  transform:translateY(-6px);

  background:#191a1a;

  border-color:rgba(200,92,122,.45);

  box-shadow:
    0 0 0 1px rgba(200,92,122,.12),
    0 12px 30px rgba(200,92,122,.16),
    0 0 40px rgba(200,92,122,.10);
}


/* =========================================
   LIGHT MODE - CARD HOVER GLOW
   ========================================= */

.cat{
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.cat:hover{
  transform:translateY(-5px);

  box-shadow:
    0 8px 25px rgba(200,92,122,.14),
    0 0 25px rgba(200,92,122,.07);
}


.card{
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.card:hover{
  transform:translateY(-6px);

  box-shadow:
    0 12px 30px rgba(200,92,122,.14),
    0 0 30px rgba(200,92,122,.07);
}

/* =========================================================
   MOBILE HEADER + PRODUCT GRID FIX
   ========================================================= */
.mobile-menu-btn{
  display:none;
  width:44px;
  height:44px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface);
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  flex-shrink:0;
  position:relative;
  z-index:10002;
}

.mobile-menu-btn span{
  width:21px;
  height:2px;
  border-radius:99px;
  background:var(--ink);
  transition:transform .22s ease, opacity .22s ease;
}

.mobile-menu-btn.is-open span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}

.mobile-menu-btn.is-open span:nth-child(2){
  opacity:0;
}

.mobile-menu-btn.is-open span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}

@media (max-width:960px){
  .mobile-menu-btn{
    display:flex;
  }

  header.site .nav{
    position:relative;
  }

  header.site .menu{
    display:none;
    position:absolute;
    top:calc(100% + 8px);
    right:14px;
    left:14px;
    width:auto;
    max-height:calc(100vh - 120px);
    overflow-y:auto;
    padding:12px;
    flex-direction:column;
    align-items:stretch;
    gap:4px;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:18px;
    box-shadow:0 18px 45px rgba(0,0,0,.16);
    z-index:10001;
  }

  header.site .menu.mobile-open{
    display:flex;
  }

  header.site .menu > a,
  header.site .menu .mega-menu-trigger{
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    padding:12px 14px;
    border-radius:12px;
  }

  header.site .menu > a:hover,
  header.site .menu .mega-menu-trigger:hover{
    background:var(--primary-soft);
  }

  /* Mega menus are replaced by the normal mobile navigation.
     Category and brand triggers still take the user to the relevant section. */
  header.site .menu .mega-menu{
    display:none !important;
  }

  header.site .menu .mega-menu-wrapper{
    width:100%;
  }

  header.site .menu .mega-menu-wrapper::after{
    display:none;
  }

  header.site .menu .mega-arrow{
    display:none;
  }

  header.site .nav-actions{
    margin-inline-start:auto;
  }

  header.site .nav-actions .search-box{
    display:none;
  }

  /* Force two product columns on phones. */
  #products .grid,
  .grid#grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }

  #products .card{
    min-width:0 !important;
    width:100% !important;
  }

  #products .thumb{
    height:150px !important;
    min-height:150px !important;
    max-height:150px !important;
  }

  #products .card-body{
    padding:10px 10px 12px !important;
    gap:5px !important;
  }

  #products .card-body h3{
    font-size:.82rem !important;
    line-height:1.55 !important;
  }

  #products .card-body .brand{
    font-size:.62rem !important;
  }

  #products .price b{
    font-size:.78rem !important;
  }

  #products .price .old{
    font-size:.62rem !important;
  }

  #products .add-btn{
    width:36px !important;
    height:36px !important;
    border-radius:11px !important;
    font-size:1rem !important;
  }
}

@media (max-width:380px){
  #products .grid,
  .grid#grid{
    gap:8px !important;
  }

  #products .thumb{
    height:135px !important;
    min-height:135px !important;
    max-height:135px !important;
  }
}

/* =========================================================
   FINAL MOBILE FIX - MENU + PRODUCT GRID
   ========================================================= */
@media (max-width: 960px){

  /* ---------- MOBILE MENU BUTTON ---------- */
  header.site .nav{
    position:relative !important;
    min-height:72px;
    display:flex !important;
    align-items:center !important;
  }

  header.site .logo{
    order:1 !important;
    margin-inline-start:auto !important;
  }

  header.site .nav-actions{
    order:2 !important;
    margin-inline-start:0 !important;
    margin-inline-end:0 !important;
    display:flex !important;
    align-items:center !important;
  }

  header.site .mobile-menu-btn{
    order:3 !important;
    display:flex !important;
    position:static !important;
    width:44px !important;
    height:44px !important;
    flex:0 0 44px !important;
    margin:0 !important;
    padding:0 !important;
    visibility:visible !important;
    opacity:1 !important;
    z-index:10005 !important;
  }

  header.site .mobile-menu-btn span{
    display:block !important;
    visibility:visible !important;
    opacity:1;
  }

  header.site .mobile-menu-btn.is-open span:nth-child(2){
    opacity:0 !important;
  }

  /* ---------- MOBILE DROPDOWN MENU ---------- */
  header.site .menu{
    display:none !important;
    position:absolute !important;
    top:calc(100% + 6px) !important;
    right:12px !important;
    left:12px !important;
    width:auto !important;
    max-height:calc(100vh - 100px) !important;
    overflow-y:auto !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:4px !important;
    padding:10px !important;
    margin:0 !important;
    background:var(--surface) !important;
    border:1px solid var(--line) !important;
    border-radius:18px !important;
    box-shadow:0 18px 45px rgba(0,0,0,.25) !important;
    z-index:10004 !important;
  }

  header.site .menu.mobile-open{
    display:flex !important;
  }

  header.site .menu > a,
  header.site .menu .mega-menu-trigger{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    width:100% !important;
    box-sizing:border-box !important;
    padding:13px 14px !important;
    margin:0 !important;
    border-radius:12px !important;
  }

  header.site .menu .mega-menu-wrapper{
    display:block !important;
    width:100% !important;
  }

  header.site .menu .mega-menu{
    display:none !important;
  }

  header.site .menu .mega-menu-wrapper::after,
  header.site .menu .mega-arrow{
    display:none !important;
  }

  /* ---------- PRODUCTS: 2 COLUMNS ---------- */
  #products #grid,
  #products .grid{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:12px !important;
    width:100% !important;
  }

  #products #grid .card,
  #products .grid .card{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    box-sizing:border-box !important;
  }

  #products #grid .thumb,
  #products .grid .thumb{
    height:145px !important;
    min-height:145px !important;
    max-height:145px !important;
  }

  #products #grid .card-body,
  #products .grid .card-body{
    padding:9px !important;
    min-width:0 !important;
  }

  #products #grid .card-body h3,
  #products .grid .card-body h3{
    font-size:.82rem !important;
    line-height:1.5 !important;
    overflow:hidden !important;
  }
}

@media (max-width: 480px){
  #products #grid,
  #products .grid{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:9px !important;
  }

  #products #grid .thumb,
  #products .grid .thumb{
    height:125px !important;
    min-height:125px !important;
    max-height:125px !important;
  }

  #products #grid .card-body,
  #products .grid .card-body{
    padding:8px !important;
  }
}
