:root {
  --bg: #1a2230;
  --bg-elev: #243044;
  --bg-soft: #2e3c52;
  --ink: #e8eef6;
  --muted: #9aabc0;
  --line: rgba(232, 238, 246, 0.12);
  --bronze: #5b9fd4;
  --bronze-deep: #3d7fb8;
  --sand: #b8d0ea;
  --danger: #d46a6a;
  --ok: #6fad86;
  --shadow: 0 24px 80px rgba(12, 20, 36, .35);
  --radius: 2px;
  --header-fx-h: 46px;
  --header-h: 64px;
  --header-shell-gap: 8px;
  --header-radius: 6px;
  --nav-w: min(86vw, 360px);
  --font: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  --display: "Vazirmatn", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}
/* Cinematic ambient stage — behind all storefront UI */
.kd-cine-bg{
  display: none !important;
}
.kd-cine-bg__base{
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 700px at 85% -5%, rgba(91,159,212,.22), transparent 58%),
    radial-gradient(900px 560px at 5% 25%, rgba(70,100,140,.28), transparent 55%),
    radial-gradient(700px 480px at 50% 110%, rgba(61,127,184,.12), transparent 50%),
    linear-gradient(165deg, #161e2a 0%, #1c2636 42%, #243044 100%);
}
.kd-cine-bg__orb{
  position:absolute;
  border-radius:50%;
  filter:blur(56px);
  will-change:transform, opacity;
  mix-blend-mode:screen;
  opacity:.38;
}
.kd-cine-bg__orb--a{
  width:min(62vw, 520px);
  height:min(62vw, 520px);
  top:-12%;
  right:-8%;
  background:radial-gradient(circle, rgba(91,159,212,.36) 0%, rgba(61,127,184,.1) 42%, transparent 70%);
  animation:kdCineDriftA 32s var(--ease) infinite alternate;
}
.kd-cine-bg__orb--b{
  width:min(55vw, 440px);
  height:min(55vw, 440px);
  bottom:5%;
  left:-12%;
  background:radial-gradient(circle, rgba(120,150,190,.3) 0%, rgba(50,70,100,.1) 45%, transparent 72%);
  animation:kdCineDriftB 40s var(--ease) infinite alternate;
}
.kd-cine-bg__orb--c{
  width:min(48vw, 380px);
  height:min(48vw, 380px);
  top:38%;
  left:42%;
  background:radial-gradient(circle, rgba(180,210,240,.18) 0%, rgba(91,159,212,.06) 40%, transparent 68%);
  animation:kdCineDriftC 48s var(--ease) infinite alternate;
  opacity:.28;
}
.kd-cine-bg__sweep{
  position:absolute;
  inset:-20%;
  background:linear-gradient(
    105deg,
    transparent 0%,
    transparent 40%,
    rgba(180,210,240,.04) 48%,
    rgba(91,159,212,.06) 50%,
    rgba(180,210,240,.03) 52%,
    transparent 62%,
    transparent 100%
  );
  animation:kdCineSweep 22s ease-in-out infinite;
  mix-blend-mode:soft-light;
  opacity:.85;
}
.kd-cine-bg__grain{
  position:absolute;
  inset:0;
  opacity:.055;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size:180px 180px;
  animation:kdCineGrain 1.2s steps(4) infinite;
  mix-blend-mode:overlay;
}
.kd-cine-bg__particles{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  opacity:1;
  mix-blend-mode:screen;
  pointer-events:none;
}
html[data-theme="light"] .kd-cine-bg__particles{
  opacity:.92;
  mix-blend-mode:multiply;
}
.kd-cine-bg__vignette{
  position:absolute;
  inset:0;
  background:radial-gradient(ellipse at center, transparent 38%, rgba(0,0,0,.4) 100%);
}
@keyframes kdCineDriftA{
  0%{ transform:translate3d(0,0,0) scale(1); opacity:.5; }
  50%{ transform:translate3d(-6%, 8%, 0) scale(1.08); opacity:.65; }
  100%{ transform:translate3d(4%, 14%, 0) scale(1.02); opacity:.48; }
}
@keyframes kdCineDriftB{
  0%{ transform:translate3d(0,0,0) scale(1); }
  100%{ transform:translate3d(12%, -10%, 0) scale(1.12); }
}
@keyframes kdCineDriftC{
  0%{ transform:translate3d(0,0,0) scale(.95); opacity:.32; }
  100%{ transform:translate3d(-10%, 6%, 0) scale(1.15); opacity:.5; }
}
@keyframes kdCineSweep{
  0%{ transform:translate3d(-35%, 0, 0) rotate(0.5deg); opacity:0; }
  15%{ opacity:.9; }
  50%{ transform:translate3d(35%, 4%, 0) rotate(-0.5deg); opacity:.7; }
  85%{ opacity:.35; }
  100%{ transform:translate3d(70%, 0, 0) rotate(0deg); opacity:0; }
}
@keyframes kdCineGrain{
  0%{ transform:translate(0,0); }
  25%{ transform:translate(-1.5%, 1%); }
  50%{ transform:translate(1%, -1.5%); }
  75%{ transform:translate(-.5%, .5%); }
  100%{ transform:translate(0,0); }
}
html[data-theme="light"] .kd-cine-bg__base{
  background:
    radial-gradient(1100px 620px at 90% -8%, rgba(91,159,212,.22), transparent 55%),
    radial-gradient(800px 500px at 0% 30%, rgba(200,140,90,.16), transparent 58%),
    radial-gradient(600px 400px at 55% 100%, rgba(70,120,170,.12), transparent 52%),
    linear-gradient(165deg, #dce8f4 0%, #e8eef6 40%, #f0e6dc 100%);
}
html[data-theme="light"] .kd-cine-bg__orb{
  mix-blend-mode:multiply;
  opacity:.32;
  filter:blur(60px);
}
html[data-theme="light"] .kd-cine-bg__orb--a{
  background:radial-gradient(circle, rgba(91,159,212,.45) 0%, rgba(61,127,184,.12) 45%, transparent 70%);
}
html[data-theme="light"] .kd-cine-bg__orb--b{
  background:radial-gradient(circle, rgba(200,130,70,.28) 0%, rgba(160,100,50,.08) 50%, transparent 72%);
}
html[data-theme="light"] .kd-cine-bg__orb--c{
  background:radial-gradient(circle, rgba(255,250,245,.55) 0%, rgba(180,200,220,.16) 40%, transparent 68%);
}
html[data-theme="light"] .kd-cine-bg__sweep{
  background:linear-gradient(
    105deg,
    transparent 0%,
    transparent 42%,
    rgba(255,252,250,.22) 49%,
    rgba(91,159,212,.1) 50.5%,
    rgba(255,245,235,.14) 52%,
    transparent 62%,
    transparent 100%
  );
  mix-blend-mode:soft-light;
}
html[data-theme="light"] .kd-cine-bg__grain{ opacity:.035; mix-blend-mode:multiply; }
html[data-theme="light"] .kd-cine-bg__vignette{
  background:radial-gradient(ellipse at center, transparent 42%, rgba(40,70,100,.08) 100%);
}
@media (prefers-reduced-motion: reduce){
  .kd-cine-bg__orb,
  .kd-cine-bg__sweep,
  .kd-cine-bg__grain{ animation:none !important; }
  .kd-cine-bg__particles{ display:none !important; }
}
/* Keep UI above cinematic stage (don't override sticky/fixed) */
.announce-bar,
.main-content,
.site-footer,
.chat-widget,
.pwa-install-bar{
  position:relative;
  z-index:1;
}
/* Let the fixed cinematic field show through the whole storefront */
.main-content,
.section,
.page-hero,
.shop-layout,
.shop-results{
  background: transparent !important;
}
.site-header-shell{ z-index:80; }
.site-header{ z-index:1; }
.mobile-nav{ z-index:90; }
.story-viewer,
.trust-popup,
.size-guide-modal,
.pwa-guide-modal{ z-index:12000; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
.container { width: min(1480px, calc(100% - 2.5rem)); margin-inline: auto; }
.icon { width: 1.35rem; height: 1.35rem; display: block; }
.logo-icon { width: 2rem; height: 2rem; color: var(--bronze); }

.site-header-shell {
  position: sticky;
  top: calc(-1 * (var(--header-fx-h) + var(--header-shell-gap)));
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--header-shell-gap);
  padding: var(--header-shell-gap) max(10px, 1.25vw);
  transition: transform .45s var(--ease);
}
/* صفحهٔ اصلی: هدر شناور روی هیرو */
body.page-home .site-header-shell {
  position: sticky;
}
body.page-home .site-header-shell .announce-bar,
body.page-home .site-header-shell .site-header {
  pointer-events: auto;
}
body.page-home .morph-hero {
  min-height: 100vh;
}
.site-header.is-hidden { transform: translateY(calc(-100% - 12px)); }
.nav-open .site-header,
.nav-open .site-header.is-hidden { transform: none !important; }

.announce-bar {
  background: linear-gradient(145deg, #1e2838 0%, #2a3548 100%);
  color: var(--sand);
  text-align: center;
  font-size: .85rem;
  line-height: 1.35;
  padding: .5rem 5.4rem;
  border-radius: var(--header-radius);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 4px 20px rgba(8, 12, 22, .18);
  min-height: var(--header-fx-h);
  height: auto;
  width: fit-content;
  min-width: min(96vw, 42rem);
  max-width: calc(100% - .5rem);
  margin-inline: auto;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  white-space: nowrap;
}
.announce-fx {
  width: auto;
  max-width: 100%;
}
.announce-fx-link {
  white-space: nowrap;
}
.announce-messages {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 58rem);
  min-height: 1.45em;
  overflow: hidden;
  white-space: normal;
  text-wrap: pretty;
}
.announce-message {
  grid-area: 1 / 1;
  max-width: 100%;
  opacity: 0;
  filter: blur(3px);
  transform: translateY(5px);
  transition: opacity .38s ease, filter .48s ease, transform .42s ease;
  pointer-events: none;
}
.announce-message.is-current {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
.announce-message.is-revealing {
  animation: announceDissolveReveal 1s cubic-bezier(.2,.7,.25,1) both;
}
@keyframes announceDissolveReveal {
  0% { opacity: 0; filter: blur(7px); clip-path: inset(0 0 0 100%); }
  38% { opacity: .72; filter: blur(3px); }
  100% { opacity: 1; filter: blur(0); clip-path: inset(0); }
}
.site-header {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  height: var(--header-h);
  max-height: var(--header-h);
  min-width: 0;
  flex-shrink: 0;
  overflow: hidden;
  box-sizing: border-box;
  backdrop-filter: blur(16px);
  background: rgba(11, 12, 14, .78);
  border: 1px solid var(--line);
  border-radius: var(--header-radius);
  box-shadow: 0 4px 24px rgba(8, 12, 22, .22);
  transition: background .3s, box-shadow .3s;
}
.site-header.is-hidden { transform: none; }
.header-inner {
  height: 100%;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 clamp(.35rem, 1vw, .85rem);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .5rem .75rem;
}
.header-start {
  display: flex;
  align-items: center;
  gap: .35rem;
  min-width: 0;
  flex-shrink: 0;
}
.header-start .brand {
  min-width: 0;
  flex: 1 1 auto;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-fa { font-weight: 700; font-size: 1.15rem; }
.brand-en {
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .28em;
  color: var(--bronze);
  text-transform: uppercase;
}
.desktop-nav { display: none; justify-content: center; gap: 1.4rem; }
.desktop-nav a {
  position: relative;
  font-size: .92rem;
  color: var(--muted);
  transition: color .25s;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--bronze);
  transition: width .35s var(--ease);
}
.desktop-nav a:hover { color: var(--ink); }
.desktop-nav a:hover::after { width: 100%; }
.header-actions { display: flex; gap: .35rem; }
.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  transition: border-color .25s, background .25s, transform .25s;
}
.icon-btn:hover { border-color: var(--line); background: rgba(255,255,255,.03); transform: translateY(-1px); }
.badge {
  position: absolute; top: 4px; left: 4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px;
  background: var(--bronze);
  color: #111;
  font-size: .65rem; font-weight: 700;
  display: grid; place-items: center;
}
.menu-toggle {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  display: grid; place-items: center;
}
.burger { width: 18px; height: 12px; display: flex; flex-direction: column; justify-content: space-between; }
.burger i { display: block; height: 1.5px; background: currentColor; transition: .35s var(--ease); }
.site-header .menu-toggle { color: var(--ink); }
.nav-open .burger i:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
.nav-open .burger i:nth-child(2) { opacity: 0; }
.nav-open .burger i:nth-child(3) { transform: translateY(-5.25px) rotate(-45deg); }

.mobile-nav-overlay {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(0,0,0,.45);
  opacity: 0; pointer-events: none;
  transition: opacity .4s;
}
.nav-open .mobile-nav-overlay { opacity: 1; pointer-events: auto; }
.mobile-nav {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 200;
  width: var(--nav-w);
  height: 100%;
  max-height: 100dvh;
  background: linear-gradient(180deg, #15171c, #0e1014);
  border-left: 1px solid var(--line);
  transform: translateX(105%);
  transition: transform .45s var(--ease);
  padding: max(1rem, env(safe-area-inset-top)) 1.15rem calc(1.4rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.nav-open .mobile-nav { transform: translateX(0); }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: .5rem;
}
.mobile-nav-links a {
  padding: .85rem .4rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
  opacity: 1;
  transform: none;
}
.nav-open .mobile-nav-links a { opacity: 1; transform: none; }
/* Keep page in place — shifting header/main on open breaks sticky + scroll on phones */
body.nav-open {
  overscroll-behavior: none;
}

@media (max-width: 959px) {
  :root { --header-h: 56px; --nav-w: min(88vw, 340px); }
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    width: calc(100% - 1rem);
    gap: .35rem;
  }
  @media (prefers-reduced-motion: reduce) {
    .announce-message, .announce-message.is-revealing {
      animation: none !important;
      filter: none;
      clip-path: none;
      transition: none;
    }
  }
  .header-start { max-width: 100%; }
  .header-start .brand { min-width: 0; }
  .mobile-nav-head .brand-logo {
    height: 62px;
    max-width: min(78vw, 260px);
  }
  .header-actions { gap: .1rem; }
  .icon-btn, .theme-toggle, .menu-toggle { width: 40px; height: 40px; }
  .theme-toggle { font-size: .7rem; }
}

@media (max-width: 959px) {
  .announce-bar {
    min-width: min(94vw, 28rem);
    padding: .45rem 2rem;
  }
  .announce-messages { min-height: 1.8em; font-size: .78rem; }
}
@media (min-width: 960px) {
  .announce-bar {
    font-size: .84rem;
    padding: .55rem 6rem;
    min-width: min(92vw, 48rem);
  }
  .menu-toggle { display: none; }
  .desktop-nav { display: flex; }
  .header-inner { grid-template-columns: auto 1fr auto; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .35s var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, var(--bronze), var(--bronze-deep));
  color: #12100c;
  font-weight: 700;
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(91,159,212,.28); }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--bronze); color: var(--bronze); }
.btn-block { width: 100%; }
.form-input, textarea.form-input, select.form-input {
  width: 100%;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  padding: .85rem 1rem;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.form-input:focus {
  border-color: rgba(91,159,212,.55);
  box-shadow: 0 0 0 3px rgba(91,159,212,.12);
}
label { display: block; margin-bottom: .35rem; color: var(--muted); font-size: .9rem; }
.form-group { margin-bottom: 1rem; }

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: end start;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(120deg, rgba(11,12,14,.88) 10%, rgba(11,12,14,.35) 55%, rgba(11,12,14,.7)),
    radial-gradient(circle at 70% 40%, rgba(196,165,116,.2), transparent 40%),
    #1a1c22;
  transform: scale(1.08);
  animation: heroKen 18s ease-in-out infinite alternate;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(11,12,14,.88) 10%, rgba(11,12,14,.35) 55%, rgba(11,12,14,.7));
  pointer-events: none;
}
.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: overlay;
}
.hero-content {
  width: min(1480px, calc(100% - 2.5rem));
  margin: 0 auto 12vh;
  max-width: 720px;
}
.hero-kicker {
  font-family: var(--display);
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--bronze);
  font-size: .85rem;
  opacity: 0;
  animation: rise .9s var(--ease) .2s forwards;
}
.hero-title {
  margin: .6rem 0 .8rem;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 1.05;
  font-weight: 800;
  opacity: 0;
  animation: rise 1s var(--ease) .35s forwards;
}
.hero-title span {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-style: italic;
  color: var(--sand);
  font-size: .55em;
  margin-top: .2em;
}
.hero-sub {
  color: var(--muted);
  max-width: 34rem;
  font-size: 1.05rem;
  opacity: 0;
  animation: rise 1s var(--ease) .5s forwards;
}
.hero-cta {
  margin-top: 1.8rem;
  display: flex; gap: .8rem; flex-wrap: wrap;
  opacity: 0;
  animation: rise 1s var(--ease) .65s forwards;
}
.hero-scroll {
  position: absolute; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .2em;
  animation: floatY 2.4s ease-in-out infinite;
}
@keyframes heroKen { to { transform: scale(1.16) translate(-1.5%, 1%); } }
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes floatY {
  0%,100% { transform: translate(-50%, 0); opacity: .5; }
  50% { transform: translate(-50%, -8px); opacity: 1; }
}

.section { padding: 5.5rem 0; }
.widget-guide-teaser__inner {
  display:flex; align-items:center; justify-content:space-between; gap:2rem;
  padding:clamp(1.5rem,4vw,3rem); border:1px solid var(--line); border-radius:24px;
  background:linear-gradient(135deg,rgba(91,159,212,.12),rgba(255,255,255,.025));
}
.widget-guide-teaser h2 { margin:0 0 .7rem; font-size:clamp(1.45rem,3vw,2rem); }
.widget-guide-teaser p:not(.eyebrow), .widget-guide-page__head>p:last-child,
.widget-guide-card p, .widget-guide-tip p { color:var(--muted); line-height:1.9; }
.widget-guide-page__head { max-width:800px; margin:0 auto 2rem; text-align:center; }
.widget-guide-page__head h1 { margin:.4rem 0; font-size:clamp(1.8rem,4vw,2.7rem); }
.widget-guide-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.widget-guide-card, .widget-guide-tip { padding:1.5rem; border:1px solid var(--line); border-radius:18px; background:rgba(255,255,255,.025); }
.widget-guide-card>span { font-size:2rem; }
.widget-guide-card h2 { font-size:1.2rem; }
.widget-guide-tip { margin-top:1rem; }
@media(max-width:700px) {
  .widget-guide-teaser__inner { align-items:flex-start; flex-direction:column; }
  .widget-guide-cards { grid-template-columns:1fr; }
}
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 1rem; margin-bottom: 2.2rem; flex-wrap: wrap;
}
.section-head h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; }
.section-head p { color: var(--muted); margin: .4rem 0 0; }
.eyebrow {
  color: var(--bronze);
  font-family: var(--display);
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: .4rem;
}

.product-grid, .cat-grid, .blog-grid, .gallery-grid { display: grid; gap: 1.25rem; }
.product-grid { grid-template-columns: repeat(2, 1fr); }
.cat-grid { grid-template-columns: repeat(2, 1fr); }
.blog-grid { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(196,165,116,.35);
  box-shadow: var(--shadow);
}
.product-card .thumb {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: linear-gradient(145deg, #1c1f26, #12141a);
}
.product-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease), opacity .4s ease;
}
.product-card .thumb.js-product-rotator img.is-fading { opacity: 0; }
.product-card:hover .thumb img { transform: scale(1.08); }
.product-card .body { padding: 1rem 1rem 1.2rem; }
.product-card h3 { margin: 0 0 .35rem; font-size: 1rem; font-weight: 600; }
.price { color: var(--sand); font-weight: 700; }
.price s { color: var(--muted); font-weight: 400; margin-left: .4rem; font-size: .9em; }
.price, .price s, .price span {
  font-variant-numeric: tabular-nums;
}
.price s, .price span, .money-num {
  unicode-bidi: isolate;
  direction: ltr;
  display: inline-block;
}
.discount-tag {
  position: absolute; top: .65rem; right: .65rem; z-index: 5;
  background: #e11d48; color: #fff;
  font-size: 1.05rem; font-weight: 800;
  line-height: 1;
  padding: .55rem .7rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(225, 29, 72, .35);
  letter-spacing: -.02em;
}
.product-card { position: relative; }
.product-card .discount-tag {
  font-size: 1.15rem;
  padding: .6rem .75rem;
  border-radius: 14px;
}
.cat-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: grid;
  place-items: end start;
  padding: 1.2rem;
  background: var(--bg-soft);
  border-radius: 16px;
}
.cat-card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cat-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .4s ease, transform .8s ease;
}
.cat-card:hover .cat-card-media img { transform: scale(1.06); }
.cat-card::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.78));
}
.cat-card h3 { position: relative; z-index: 2; margin: 0; font-size: 1.2rem; }

.site-footer {
  position: relative;
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  padding: 4rem 0 1.5rem;
  overflow: hidden;
}
.footer-glow {
  position: absolute; inset: auto 10% -40% 10%;
  height: 280px;
  background: radial-gradient(circle, rgba(196,165,116,.16), transparent 65%);
  pointer-events: none;
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-brand p, .footer-col p { color: var(--muted); }
.footer-col h4 { margin: 0 0 1rem; color: var(--sand); font-size: .95rem; }
.footer-col a { display: block; color: var(--muted); margin-bottom: .55rem; transition: color .25s; }
.footer-col a:hover { color: var(--bronze); }
.social-row { display: flex; gap: .6rem; margin-top: .8rem; }
.enamad-seal {
  display: inline-flex;
  margin-top: 1.1rem;
}
.enamad-seal img {
  width: 92px;
  height: auto;
  display: block;
  cursor: pointer;
}
.footer-col .enamad-seal { color: inherit; }
.footer-bottom {
  width: min(1480px, calc(100% - 2.5rem));
  margin: 2.5rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .7rem 1.5rem;
}
.footer-bottom p { margin: 0; }
.footer-address { line-height: 1.8; margin: 0 0 .7rem; }
.footer-credit a {
  color: var(--sand);
  border-bottom: 1px solid rgba(232, 220, 196, .35);
  transition: color .25s, border-color .25s;
}
.footer-credit a:hover { color: var(--bronze); border-color: var(--bronze); }

.chat-fab-wrap { position: fixed; left: 1.2rem; bottom: 1.2rem; z-index: 120; }
.chat-fab {
  width: 58px; height: 58px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(145deg, var(--bronze), var(--bronze-deep));
  color: #111;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(196,165,116,.35);
  position: relative;
}
.chat-fab-pulse {
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(196,165,116,.5);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  from { transform: scale(.85); opacity: .8; }
  to { transform: scale(1.25); opacity: 0; }
}
.chat-panel {
  position: absolute; left: 0; bottom: 72px;
  width: min(92vw, 360px);
  height: 480px;
  background: #12141a;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  animation: pop .35s var(--ease);
}
@keyframes pop {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.chat-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #1a1712, #14161a);
}
.chat-panel-head span { display: block; color: var(--muted); font-size: .78rem; }
.chat-step { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: .7rem; overflow: hidden; }
.chat-messages { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: .55rem; }
.chat-bubble {
  max-width: 85%;
  padding: .65rem .85rem;
  font-size: .9rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  animation: rise .35s var(--ease);
}
.chat-bubble.mine { align-self: flex-start; background: rgba(196,165,116,.12); border-color: rgba(196,165,116,.25); }
.chat-bubble.theirs { align-self: flex-end; }
.chat-compose { display: flex; gap: .4rem; }

.flash-stack {
  position: fixed; top: calc(var(--header-h) + 12px); left: 50%;
  transform: translateX(-50%); z-index: 200;
  display: flex; flex-direction: column; gap: .5rem;
  width: min(92vw, 420px);
}
.flash {
  padding: .85rem 1rem;
  background: #1b1e24;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.flash-success { border-color: rgba(111,173,134,.5); }
.flash-error { border-color: rgba(212,106,106,.5); }
.animate-in { animation: rise .45s var(--ease); }
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

.page-hero {
  padding: 4.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(196,165,116,.06), transparent);
}
.page-hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); }
.page-hero p { color: var(--muted); max-width: 40rem; }

.cart-layout, .checkout-layout, .profile-layout { display: grid; gap: 1.5rem; }
@media (min-width: 900px) {
  .cart-layout, .checkout-layout { grid-template-columns: 1.5fr 1fr; align-items: start; }
  .profile-layout { grid-template-columns: 280px 1fr; }
}
.surface {
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  padding: 1.25rem;
}
.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img { width: 88px; height: 110px; object-fit: cover; background: #1a1c22; }
.cart-item--pack { border-right: 3px solid var(--bronze, #3b7fc4); padding-right: .75rem; }
.cart-pack-badge {
  display: inline-block; font-size: .72rem; font-weight: 700;
  background: color-mix(in srgb, var(--bronze, #3b7fc4) 18%, transparent);
  color: var(--bronze, #3b7fc4); border-radius: 4px; padding: .15rem .45rem; margin-left: .25rem;
  vertical-align: middle;
}
.qty-control { display: flex; gap: .4rem; align-items: center; margin-top: .5rem; }
.qty-control input { width: 64px; text-align: center; }
.checkout-layout .surface { animation: rise .6s var(--ease) both; }
.checkout-layout .surface:nth-child(2) { animation-delay: .12s; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  text-align: right;
  padding: .8rem .5rem;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}
.table th { color: var(--muted); font-weight: 500; }

.invoice-sheet {
  background: #fff; color: #111;
  padding: 2rem;
  max-width: 800px;
  margin: 2rem auto;
}
@media print {
  body * { visibility: hidden; }
  .invoice-sheet, .invoice-sheet * { visibility: visible; }
  .invoice-sheet { position: absolute; inset: 0; margin: 0; }
  .no-print { display: none !important; }
}

.panel-body { background: #0f1115; color: var(--ink); margin: 0; font-family: var(--font); }
.panel-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.panel-side {
  background: #12151b;
  border-left: 1px solid var(--line);
  padding: 1.4rem 1rem;
  position: sticky; top: 0; height: 100vh; overflow: auto;
}
.panel-side a {
  display: block;
  padding: .7rem .85rem;
  color: var(--muted);
  border-radius: 4px;
  margin-bottom: .2rem;
}
.panel-side a:hover, .panel-side a.active {
  background: rgba(196,165,116,.1);
  color: var(--sand);
}
.panel-main { padding: 1.5rem; }
.panel-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: #171a21;
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
}
.stat-card strong { display: block; font-size: 1.5rem; margin-top: .35rem; color: var(--sand); }
.panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; gap: 1rem; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.panel-topbar { display: none; }
.panel-menu-toggle {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.panel-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
  color: var(--sand);
}
.panel-menu-close { display: none; }
.panel-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
.panel-nav-open .panel-nav-overlay {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
@media (max-width: 900px) {
  .panel-shell { display: block; }
  .panel-topbar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 80;
    align-items: center;
    gap: .85rem;
    min-height: 56px;
    margin: 0 -.85rem 1rem;
    padding: calc(.45rem + env(safe-area-inset-top, 0px)) .85rem .55rem;
    background: #0f1115;
    border-bottom: 1px solid var(--line);
  }
  .panel-topbar strong { font-size: 1rem; color: var(--sand); }
  .panel-menu-toggle { display: grid !important; }
  .panel-menu-close { display: inline-grid; }
  .panel-side {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--nav-w);
    height: 100%;
    height: 100dvh;
    z-index: 100;
    transform: translateX(105%);
    transition: transform .5s var(--ease);
    box-shadow: var(--shadow);
    padding: calc(1.2rem + env(safe-area-inset-top, 0px)) 1.4rem 2rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .panel-nav-open .panel-side { transform: translateX(0); }
  .panel-main {
    padding: .9rem .85rem calc(1rem + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    min-width: 0;
    transition: transform .5s var(--ease);
  }
  .panel-nav-open .panel-main { transform: translateX(calc(var(--nav-w) * -1)); }
  .panel-nav-open .panel-menu-toggle .burger i:nth-child(1),
  .panel-nav-open .burger i:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
  .panel-nav-open .panel-menu-toggle .burger i:nth-child(2),
  .panel-nav-open .burger i:nth-child(2) { opacity: 0; }
  .panel-nav-open .panel-menu-toggle .burger i:nth-child(3),
  .panel-nav-open .burger i:nth-child(3) { transform: translateY(-5.25px) rotate(-45deg); }
  .panel-side > a {
    opacity: 0;
    transform: translateX(24px);
    transition: .45s var(--ease);
  }
  .panel-nav-open .panel-side > a { opacity: 1; transform: none; }
  .panel-body { overflow-x: hidden; }
  .panel-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card strong { font-size: 1.2rem; }
  .panel-top h1 { font-size: 1.2rem; }
  .panel-main .surface { padding: 1rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .panel-main .form-input,
  .panel-main textarea.form-input,
  .panel-main select.form-input,
  .panel-main input,
  .panel-main select,
  .panel-main textarea { max-width: 100%; }
  .panel-main .table { font-size: .82rem; }
  .panel-main .table th,
  .panel-main .table td { padding: .55rem .35rem; white-space: nowrap; }
}
.status-pill {
  display: inline-block;
  padding: .2rem .55rem;
  font-size: .75rem;
  border: 1px solid var(--line);
  color: var(--sand);
}
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  border: 1px dashed var(--line);
}
.gallery-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.social-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.social-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(196,165,116,.08), transparent 55%);
  transition: transform .4s var(--ease);
}
.social-card:hover { transform: translateY(-4px); }
.ticket-live {
  display: flex; flex-direction: column;
  height: min(70vh, 620px);
  border: 1px solid var(--line);
  background: #12151b;
}
.ticket-live .msgs { flex: 1; overflow: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.ticket-live .compose { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--line); }
.product-detail { display: block; }
/* grid layout is owned by product-detail.css (.kd-pdp-grid) on .page-product */
.attr-options { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 1rem; }
.attr-options button {
  border: 1px solid var(--line);
  background: transparent;
  padding: .5rem .8rem;
  cursor: pointer;
  color: var(--ink);
}
.attr-options button.is-color {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  flex: 0 0 16px;
}
.attr-options button.active { border-color: var(--bronze); color: var(--bronze); }

.pd-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  margin-top: .75rem;
}
.pd-thumbs .gallery-item {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.pd-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}
.pd-fs {
  position: fixed;
  inset: 0;
  z-index: 14000;
  background: rgba(8, 9, 12, .94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4.25rem 3.5rem 6.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pd-fs[hidden] { display: none !important; }
.pd-fs-stage {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
}
.pd-fs img#pdFsImage,
.pd-fs .pd-fs-stage img {
  max-width: min(92vw, 1080px);
  max-height: min(72vh, 820px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  user-select: none;
  background: transparent;
}
.pd-fs-close {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  left: 16px;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}
.pd-fs-close:hover,
.pd-fs-nav:hover { background: rgba(255,255,255,.22); }
.pd-fs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 72px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}
.pd-fs-prev { right: 14px; }
.pd-fs-next { left: 14px; }
.pd-fs-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .75rem 1rem calc(1rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
}
.pd-fs-count {
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: .9rem;
  letter-spacing: .02em;
}
.pd-fs-thumbs {
  display: flex;
  gap: .4rem;
  max-width: min(92vw, 640px);
  overflow-x: auto;
  padding: .2rem;
  scrollbar-width: none;
}
.pd-fs-thumbs::-webkit-scrollbar { display: none; }
.pd-fs-thumbs button {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0,0,0,.25);
  cursor: pointer;
  opacity: .75;
}
.pd-fs-thumbs button.is-active {
  opacity: 1;
  border-color: var(--bronze, #c4a574);
  box-shadow: 0 0 0 1px var(--bronze, #c4a574);
}
.pd-fs-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: none;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 900px) {
  .pd-fs {
    padding: 3.5rem .35rem 5.8rem;
  }
  .pd-fs img#pdFsImage,
  .pd-fs .pd-fs-stage img {
    max-width: 100vw;
    max-height: 72vh;
    border-radius: 0;
    box-shadow: none;
  }
  .pd-fs-nav {
    width: 40px;
    height: 56px;
    border-radius: 8px;
  }
  .pd-fs-prev { right: 4px; }
  .pd-fs-next { left: 4px; }
}
@media (max-width: 900px) {
  .pd-thumbs { display: none; }
  #mainProductImage { cursor: zoom-in; }
}

.pd-modal {
  position: fixed;
  inset: 0;
  z-index: 14100;
  display: grid;
  place-items: end center;
}
.pd-modal[hidden] { display: none !important; }
.pd-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.55);
  cursor: pointer;
}
.pd-modal-sheet {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: 78vh;
  overflow: auto;
  background: var(--bg-elev, #14161a);
  color: var(--ink);
  border-radius: 18px 18px 0 0;
  padding: 1rem 1rem calc(1.2rem + env(safe-area-inset-bottom));
  box-shadow: var(--shadow);
}
.pd-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .8rem;
}
.pd-modal-head h3 { margin: 0; font-size: 1.05rem; }
.pd-color-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
}
.pd-color-choice {
  display: flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: .7rem .75rem;
  cursor: pointer;
  text-align: right;
}
.pd-color-choice:active { border-color: var(--bronze); }

/* ===== Light mode ===== */
html[data-theme="light"] {
  --bg: #e4eef8;
  --bg-elev: #ffffff;
  --bg-soft: #d5e4f2;
  --ink: #1a2838;
  --muted: #5a6d82;
  --line: rgba(26,40,56,0.12);
  --bronze: #3b7fc4;
  --bronze-deep: #2a5f96;
  --sand: #2c5278;
  --shadow: 0 18px 50px rgba(40,70,110,.12);
}
html[data-theme="light"] body {
  background: var(--bg);
  background-image: none;
}
html[data-theme="light"] {
  --bg: #efeff1;
  --bg-soft: #e2e2e5;
}
html[data-theme="light"] body {
  background: #efeff1 !important;
}
html[data-theme="light"] .site-header {
  background: linear-gradient(135deg, #1a2744 0%, #243556 52%, #1e2f4a 100%) !important;
  color: #e8eef6;
  border-color: rgba(255, 255, 255, .1);
  box-shadow: 0 6px 28px rgba(26, 39, 68, .28);
}
html[data-theme="light"] .announce-bar {
  background: linear-gradient(145deg, #152238 0%, #1f3352 100%);
  color: #c8daf0;
  border-color: rgba(255, 255, 255, .1);
}
html[data-theme="light"] .site-header .desktop-nav a {
  color: rgba(232, 238, 246, .78);
}
html[data-theme="light"] .site-header .desktop-nav a:hover {
  color: #fff;
}
html[data-theme="light"] .site-header .icon-btn,
html[data-theme="light"] .site-header .theme-toggle,
html[data-theme="light"] .site-header .menu-toggle {
  color: #e8eef6;
  border-color: rgba(255, 255, 255, .14);
}
html[data-theme="light"] .site-header .icon-btn:hover,
html[data-theme="light"] .site-header .theme-toggle:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .22);
}
html[data-theme="light"] .site-header .hd-btn {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .16);
  color: #eef4fc;
}
html[data-theme="light"] .site-header .hd-btn:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .28);
}
/* همبرگر روی هدر سرمه‌ای لایت — خطوط سفید (نه var(--ink) تیره) */
html[data-theme="light"] .site-header .menu-toggle {
  color: #fff !important;
}
html[data-theme="light"] .site-header .menu-toggle .burger i {
  background-color: #fff !important;
}
html[data-theme="light"] .mobile-nav { background: linear-gradient(180deg, #fff, #e4eef8); }
html[data-theme="light"] .mobile-nav .brand-logo-light {
  display: none !important;
}
html[data-theme="light"] .mobile-nav .brand-logo-dark {
  display: block !important;
  filter: none;
}
html[data-theme="light"] .mobile-nav .mobile-nav-head .hd-btn {
  color: #1a2838;
  background: #fff;
  border-color: rgba(26, 40, 56, .14);
}
html[data-theme="light"] .mobile-nav-links a {
  color: #1a2838;
  border-bottom-color: rgba(26, 40, 56, .1);
}
html[data-theme="light"] .chat-panel,
html[data-theme="light"] .surface,
html[data-theme="light"] .product-card,
html[data-theme="light"] .stat-card { background: #fff; }
/* .panel-side intentionally excluded — stays dark via panel theme isolation */
html[data-theme="light"] .panel-body { background: #f0f0f1; color: #1d2327; }
html[data-theme="light"] .invoice-sheet { background: #fff; }
html[data-theme="light"] .hero-media::after {
  background: linear-gradient(120deg, rgba(228,238,248,.75) 8%, rgba(228,238,248,.2) 55%, rgba(240,230,220,.55));
}
.theme-toggle {
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid; place-items: center;
  font-size: .85rem;
}

/* Chat open state fix */
.chat-panel { display: none !important; }
.chat-panel.is-open { display: flex !important; }

/* WordPress-like panel editor */
.wp-screen-head { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:1.2rem; flex-wrap:wrap; }
.wp-screen-head h1 { margin:0; font-size:1.5rem; }
.wp-edit { display:grid; gap:1rem; grid-template-columns:1fr; }
@media (min-width: 1000px) {
  .wp-edit { grid-template-columns: 1fr 300px; align-items:start; }
}
.wp-title {
  width:100%; font-size:1.55rem; font-weight:700;
  padding:.85rem 1rem; border:1px solid var(--line);
  background: rgba(255,255,255,.03); margin-bottom:1rem;
}
.wp-box { border:1px solid var(--line); background: rgba(255,255,255,.02); margin-bottom:1rem; }
.wp-box-title {
  padding:.7rem .9rem; border-bottom:1px solid var(--line);
  font-weight:600; background: rgba(196,165,116,.06);
}
.wp-box-body { padding:.9rem; }
.wp-muted { color: var(--muted); font-size:.85rem; }
.wp-help { color:var(--muted); font-size:.8rem; margin:.25rem 0 0; }
.wp-checklist { display:flex; flex-direction:column; gap:.45rem; max-height:220px; overflow:auto; }
.wp-checklist label { color:var(--ink); display:flex; gap:.45rem; align-items:flex-start; margin:0; }
.wp-thumb-preview { width:100%; aspect-ratio:1; object-fit:cover; margin-bottom:.6rem; border:1px solid var(--line); }
.wp-editor { min-height:220px; font-family: var(--font); line-height:1.8; }
.woo-tabs { display:flex; flex-wrap:wrap; border-bottom:1px solid var(--line); background:rgba(0,0,0,.12); }
html[data-theme="light"] .woo-tabs { background:#f0ebe3; }
.woo-tab {
  border:0; background:transparent; color:var(--muted);
  padding:.75rem 1rem; cursor:pointer; border-left:1px solid transparent;
}
.woo-tab.active { color:var(--sand); background:rgba(196,165,116,.1); border-left-color:var(--bronze); }
.woo-panel { display:none; }
.woo-panel.active { display:block; }
.form-row { display:grid; gap:.35rem; margin-bottom:.85rem; }
.variant-row { display:grid; gap:.4rem; grid-template-columns:1fr; margin-bottom:.6rem; padding-bottom:.6rem; border-bottom:1px dashed var(--line); }
@media (min-width:700px) {
  .variant-row { grid-template-columns: repeat(5, 1fr); }
}
.wp-cat-layout { display:grid; gap:1rem; }
@media (min-width:960px) {
  .wp-cat-layout { grid-template-columns: 340px 1fr; align-items:start; }
}
.acct-grid { display:grid; gap:1rem; grid-template-columns:1fr; }
@media (min-width:900px) {
  .acct-grid { grid-template-columns: 1.4fr 1fr; }
}
.screen-reader-text { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* Morph hero */
.morph-hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  z-index: 1;
}
.morph-stage {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(196,165,116,.14), transparent 52%),
    linear-gradient(160deg, rgba(8,9,11,.45) 0%, rgba(18,20,26,.25) 50%, rgba(20,16,12,.32) 100%);
}
html[data-theme="light"] .morph-stage {
  background:
    radial-gradient(ellipse at 50% 32%, rgba(255,255,255,.5), transparent 52%),
    radial-gradient(ellipse at 50% 75%, rgba(154,122,77,.06), transparent 48%),
    linear-gradient(180deg, rgba(250,248,243,.4) 0%, rgba(244,241,234,.28) 55%, rgba(239,234,226,.35) 100%);
}
.morph-canvas-wrap {
  position: relative;
  z-index: 2;
  width: min(920px, 94vw);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1.5rem;
  align-items: center;
}
.morph-canvas-wrap--stories {
  width: min(1340px, 94vw);
  grid-template-columns: 1fr 1.05fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 800px) {
  .morph-canvas-wrap { grid-template-columns: 1fr; text-align: center; }
  .morph-canvas-wrap--stories { grid-template-columns: 1fr; gap: 1.4rem; }
  .morph-copy .morph-lead {
    width: min(100%, 34rem);
    margin-inline: auto;
    text-align: center;
    text-wrap: balance;
  }
}
/* Legacy SVG morph styles — disabled; hero uses photos now */
.morph-svg-box {
  display: none !important;
}
.morph-svg-box .garment,
.morph-svg-box .garment.is-active,
.morph-svg-box .garment.is-exit {
  display: none !important;
}
/* keep unused SVG keyframes harmless */
.garment-legacy-disabled {
  opacity: 0;
}
.morph-copy .eyebrow { margin-bottom: .6rem; }
.morph-copy .hero-brand-logo {
  display: block;
  width: clamp(132px, 17vw, 188px);
  height: clamp(132px, 17vw, 188px);
  aspect-ratio: 1;
  max-width: min(92vw, 420px);
  margin: 0 auto 1.15rem;
  padding: .65rem;
  object-fit: contain;
  border: 1px solid rgba(218, 184, 111, .62);
  border-radius: 26px;
  background: linear-gradient(145deg, #172238, #263957);
  box-shadow: 0 16px 42px rgba(7, 12, 23, .28), inset 0 1px 0 rgba(255,255,255,.08);
  filter: none;
  animation: logoFloat 4s ease-in-out infinite;
}
html[data-theme="light"] .morph-copy .hero-brand-logo {
  border-color: rgba(218, 184, 111, .72);
  box-shadow: 0 18px 44px rgba(25, 39, 62, .2), inset 0 1px 0 rgba(255,255,255,.1);
}
@media (min-width: 801px) {
  .morph-copy .hero-brand-logo {
    margin-inline-start: 0;
    margin-inline-end: auto;
  }
}
.morph-copy h1,
.morph-copy h1.hero-title-sm {
  font-size: clamp(1.35rem, 3.2vw, 2rem) !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  margin: .35rem 0 .7rem !important;
}
.morph-label {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem 1rem;
  border: 1px solid rgba(196,165,116,.4);
  color: var(--sand);
  letter-spacing: .08em;
  margin-bottom: 1rem;
  background: rgba(196,165,116,.08);
  animation: morphPulse 2.2s ease-in-out infinite;
}
@keyframes morphPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(196,165,116,.25); }
  50% { box-shadow: 0 0 0 10px rgba(196,165,116,0); }
}
.morph-progress {
  display: flex; gap: .4rem; margin-top: 1.4rem; flex-wrap: wrap; justify-content: flex-start;
}
@media (max-width:800px){ .morph-progress { justify-content:center; } }
.morph-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line); border: 1px solid var(--bronze);
  transition: .35s;
}
.morph-dot.active { background: var(--bronze); transform: scale(1.25); }
.morph-particles {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1;
}
.morph-particle {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--bronze);
  opacity: 0;
  border-radius: 50%;
  animation: particleFly 1.1s ease-out forwards;
}
@keyframes particleFly {
  0% { opacity: .9; transform: translate(0,0) scale(1); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0); }
}
.cat-showcase { padding: 4.5rem 0; }
.cat-showcase + .cat-showcase { padding-top: 0; }
.cat-banner {
  display:flex; justify-content:space-between; align-items:end; gap:1rem; margin-bottom:1.4rem; flex-wrap:wrap;
}

/* ===== Hero photo morph (user renders) ===== */
.hero-photo-stage {
  width: 100%;
  display: grid;
  place-items: center;
}
.hero-photo-frame {
  position: relative;
  width: min(78%, 360px);
  aspect-ratio: 1;
  margin-inline: auto;
  background: transparent;
  border: none;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: none;
}
.hero-photo-frame::before {
  content: "";
  position: absolute;
  inset: 8% 12%;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  /* Dark mode: soft light glow behind garment */
  background: radial-gradient(circle, rgba(255,255,255,.22) 0%, rgba(196,165,116,.28) 35%, transparent 70%);
  filter: blur(18px);
  animation: heroGlowPulse 3.6s ease-in-out infinite;
}
html[data-theme="light"] .hero-photo-frame::before {
  /* Clean studio wash — soft warm light, not muddy dark blob */
  inset: 6% 10% 10%;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.95) 0%, rgba(255,252,246,.7) 32%, rgba(244,241,234,.25) 58%, transparent 72%);
  filter: blur(8px);
  opacity: 1;
  animation: none;
}
html[data-theme="light"] .hero-photo-frame::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 10%;
  height: 28%;
  z-index: 0;
  pointer-events: none;
  /* Soft grounded dark glow / contact shadow */
  background: radial-gradient(ellipse at center, rgba(40,30,18,.22) 0%, rgba(40,30,18,.08) 45%, transparent 72%);
  filter: blur(16px);
}
@keyframes heroGlowPulse {
  0%, 100% { opacity: .75; transform: scale(.96); }
  50% { opacity: 1; transform: scale(1.04); }
}
.hero-photo-stack {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-photo-stack .garment {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.06) translateY(14px);
  transition:
    opacity .7s cubic-bezier(.22,1,.36,1),
    transform .9s cubic-bezier(.16,1,.3,1),
    filter .7s ease;
  pointer-events: none;
}
.hero-photo-stack .garment.is-active {
  opacity: 1;
  transform: scale(1) translateY(0);
  z-index: 2;
  pointer-events: auto;
}
.hero-photo-stack .garment.is-exit {
  opacity: 0;
  transform: scale(.94) translateY(-12px);
  z-index: 3;
}
.hero-photo-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: transparent !important;
  mix-blend-mode: normal;
  filter: none;
  transition: filter .6s ease, transform .6s ease;
  border-radius: 50%;
}
html[data-theme="light"] .hero-photo-stack img {
  mix-blend-mode: normal;
  -webkit-mask-image: none;
  mask-image: none;
  /* Clean product glow: soft dark ambient + warm rim, no heavy black haze */
  filter:
    drop-shadow(0 2px 4px rgba(40,30,18,.08))
    drop-shadow(0 14px 28px rgba(40,30,18,.14))
    drop-shadow(0 28px 56px rgba(40,30,18,.12))
    drop-shadow(0 0 24px rgba(154,122,77,.18));
}
.hero-photo-glow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(196,165,116,.2), transparent 68%);
  filter: blur(12px);
}
html[data-theme="light"] .hero-photo-glow {
  inset: 22% 18% 14%;
  background: radial-gradient(circle at 50% 60%, rgba(40,30,18,.1), transparent 65%);
  filter: blur(20px);
}
.brand-accent {
  font-family: var(--display);
  color: var(--sand);
  font-weight: 700;
  letter-spacing: .04em;
}
.morph-lead {
  color: var(--muted);
  max-width: 28rem;
  margin: 0 0 1.2rem;
}
.morph-svg-box { display: none; }

/* Keep morph stage theme-safe for dark via CSS vars */
html:not([data-theme="light"]) .morph-stage {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(196,165,116,.14), transparent 52%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-elev) 55%, var(--bg-soft) 100%) !important;
}

/* ===== Theme conflict fixes (dark + light) ===== */
:root {
  --surface: rgba(255,255,255,.06);
  --surface-solid: #243044;
  --text-on-accent: #f4f8fc;
  --header-bg: rgba(26,34,48,.82);
  --flash-bg: #2e3c52;
  --input-bg: rgba(255,255,255,.06);
  --thumb-fallback: linear-gradient(145deg, #2a384c, #1c2636);
}

html[data-theme="light"] {
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --text-on-accent: #f4f8fc;
  --header-bg: linear-gradient(135deg, #1a2744 0%, #243556 100%);
  --flash-bg: #ffffff;
  --input-bg: #ffffff;
  --thumb-fallback: linear-gradient(145deg, #d0e0f0, #b8cce0);
  --shadow: 0 18px 50px rgba(40,70,110,.12);
}

.site-header { background: var(--header-bg) !important; color: var(--ink); }
html body #siteHeaderShell .announce-bar {
  background: linear-gradient(90deg, #0b1d4a 0%, #1e3a8a 50%, #0b1d4a 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(11, 29, 74, .35);
}
html body #siteHeader.site-header {
  height: 68px;
  max-height: 68px;
  background: linear-gradient(120deg, #7f1d1d 0%, #be123c 55%, #e11d48 100%) !important;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(190, 18, 60, .35);
  backdrop-filter: blur(12px);
  color: #f8fafc;
}
html body #siteHeader .header-inner {
  padding: 0 1rem;
  gap: .5rem 1rem;
}
html body #siteHeader .brand-logo {
  filter: brightness(0) invert(1);
  height: 40px;
  width: auto;
}
html body #siteHeader .desktop-nav > a,
html body #siteHeader .nav-mega-trigger {
  color: #e2e8f0;
  font-weight: 700;
  padding: .5rem .85rem;
  border-radius: 999px;
  background: transparent;
  transition: background .25s, color .25s;
}
html body #siteHeader .desktop-nav > a:hover,
html body #siteHeader .nav-mega-trigger:hover {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}
html body #siteHeader .menu-toggle {
  color: #f8fafc;
}
html body #siteHeader .burger i {
  background-color: #f8fafc;
}
html body #siteHeader .hd-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #f8fafc;
  transition: background .25s, color .25s;
}
html body #siteHeader .hd-btn:hover {
  background: #fff;
  border-color: transparent;
  color: #be123c;
}
html body #siteHeader .badge {
  background: #fff;
  color: #be123c;
}
html body #siteHeader .header-inner {
  position: relative;
}
html body #siteHeader .desktop-nav,
html body #siteHeader .nav-mega-wrap {
  position: static;
}
html body #siteHeader .mega-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 12px);
  min-width: 0;
  width: auto;
  padding-top: 0;
  z-index: 90;
}
html body #siteHeader .mega-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
html body #siteHeader .mega-panel-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .14);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, .12), transparent 38%),
    radial-gradient(circle at 100% 100%, rgba(96, 165, 250, .18), transparent 40%),
    linear-gradient(160deg, #0b1d4a 0%, #1e3a8a 55%, #1d4ed8 100%);
  box-shadow: 0 30px 80px rgba(11, 29, 74, .5);
}
html body #siteHeader .mega-card {
  position: relative;
  padding: 8px;
  gap: 10px;
  border-radius: 18px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  text-align: center;
}
html body #siteHeader .mega-card:hover {
  background: rgba(255, 255, 255, .18);
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .28);
}
html body #siteHeader .mega-card-media {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
}
html body #siteHeader .mega-card strong {
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: .2px;
}
@media (max-width: 959px) {
  html body #siteHeader.site-header {
    height: 60px;
    max-height: 60px;
    border-radius: 14px;
  }
  html body #siteHeader .brand-logo {
    height: 34px;
  }
  html body #siteHeader .hd-btn {
    width: 36px;
    height: 36px;
  }
}
html:not([data-theme="light"]) .site-header {
  background: linear-gradient(145deg, #1e2838 0%, #2a3548 100%) !important;
  color: #e8eef6;
  border-color: rgba(255, 255, 255, .1);
  box-shadow: 0 6px 28px rgba(8, 12, 22, .28);
}
html:not([data-theme="light"]) .site-header .desktop-nav a,
html:not([data-theme="light"]) .site-header .icon-btn,
html:not([data-theme="light"]) .site-header .theme-toggle,
html:not([data-theme="light"]) .site-header .menu-toggle {
  color: #e8eef6;
}
html:not([data-theme="light"]) .site-header .desktop-nav a:hover,
html:not([data-theme="light"]) .site-header .icon-btn:hover,
html:not([data-theme="light"]) .site-header .theme-toggle:hover {
  color: #fff;
}
html:not([data-theme="light"]) .site-header .menu-toggle .burger i {
  background-color: #e8eef6;
}
.announce-bar { color: var(--sand); }
.desktop-nav a { color: var(--muted); }
.desktop-nav a:hover { color: var(--ink); }
.icon-btn { color: var(--ink); }
.icon-btn:hover { background: var(--surface); border-color: var(--line); }
.theme-toggle {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}
.mobile-nav {
  background: var(--bg-elev) !important;
  color: var(--ink);
  border-color: var(--line);
}
.mobile-nav-links a { color: var(--ink); border-color: var(--line); }
.menu-toggle .burger i,
.panel-menu-toggle .burger i {
  background: currentColor;
}

.form-input, textarea.form-input, select.form-input {
  background: var(--input-bg) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}
.form-input::placeholder { color: var(--muted); opacity: .85; }

.surface,
.product-card,
.stat-card,
.wp-box,
.chat-panel,
.ticket-live,
.empty-state {
  background: var(--surface-solid) !important;
  color: var(--ink);
  border-color: var(--line) !important;
}
.product-card h3,
.wp-box-title,
.panel-side a:hover,
.panel-side a.active { color: var(--sand); }
.product-card .body,
.footer-col a,
.section-head p,
.page-hero p { color: var(--muted); }
.price { color: var(--sand) !important; }
.price s { color: var(--muted) !important; }

.btn-primary { color: var(--text-on-accent) !important; }
.btn-ghost { color: var(--ink) !important; border-color: var(--line) !important; background: transparent !important; }
.btn-ghost:hover { color: var(--bronze) !important; border-color: var(--bronze) !important; }

.panel-body {
  background: var(--bg) !important;
  color: var(--ink) !important;
}
.panel-side {
  background: var(--bg-elev) !important;
  border-color: var(--line) !important;
}
.panel-side a { color: var(--muted) !important; }
.panel-side a:hover,
.panel-side a.active {
  background: rgba(196,165,116,.12) !important;
  color: var(--sand) !important;
}
.panel-main { color: var(--ink); }
.table th { color: var(--muted) !important; }
.table td { color: var(--ink); border-color: var(--line) !important; }
.status-pill {
  color: var(--sand) !important;
  border-color: var(--line) !important;
  background: var(--surface);
}

.flash { background: var(--flash-bg) !important; color: var(--ink); border-color: var(--line) !important; }
.chat-panel-head {
  background: var(--bg-soft) !important;
  color: var(--ink);
  border-color: var(--line) !important;
}
.chat-bubble {
  background: var(--bg-soft) !important;
  color: var(--ink);
  border-color: var(--line) !important;
}
.chat-bubble.mine {
  background: rgba(196,165,116,.14) !important;
  border-color: rgba(196,165,116,.3) !important;
  color: var(--ink) !important;
}
.cat-card {
  background: var(--bg-soft) !important;
  border-color: var(--line) !important;
  color: var(--ink);
}
.cat-card h3 { color: #f3efe6; text-shadow: 0 2px 12px rgba(0,0,0,.55); }
html[data-theme="light"] .cat-card h3 { color: #fff; }

.product-card .thumb {
  background: var(--thumb-fallback) !important;
}
.discount-tag { color: #fff !important; background: #e11d48 !important; }

.wp-title {
  background: var(--input-bg) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}
.wp-box-title {
  background: rgba(196,165,116,.08) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}
.woo-tabs { background: var(--bg-soft) !important; }
.woo-tab { color: var(--muted) !important; }
.woo-tab.active {
  color: var(--sand) !important;
  background: rgba(196,165,116,.12) !important;
}
.wp-checklist label { color: var(--ink) !important; }
.wp-muted, .wp-help { color: var(--muted) !important; }

html[data-theme="light"] .site-footer {
  background: transparent;
  border-color: var(--line);
}
html[data-theme="light"] .footer-col h4 { color: var(--sand); }
html[data-theme="light"] body {
  color: var(--ink);
}
html[data-theme="light"] .morph-label {
  background: rgba(154,122,77,.1);
  border-color: rgba(154,122,77,.35);
  color: var(--sand);
}
html[data-theme="dark"] .morph-label,
html:not([data-theme="light"]) .morph-label {
  color: var(--sand);
}

/* Ensure icon SVGs inherit */
.icon { color: inherit; stroke: currentColor; }
.brand-mark, .logo-icon { color: var(--bronze); }

/* Hardcoded dark leftovers neutralized */
.chat-fab { color: var(--text-on-accent); }
.badge { color: #111; }
.thumb-fallback {
  width: 100%;
  height: 100%;
  background: var(--thumb-fallback);
}

/* Force hero photos visible over any legacy .garment rules */
.hero-photo-stack .garment {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
}
.hero-photo-stack .garment.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2 !important;
  transform: scale(1) translateY(0) !important;
}
.hero-photo-stack .garment:not(.is-active):not(.is-exit) {
  opacity: 0 !important;
  visibility: hidden !important;
  z-index: 1 !important;
}
.hero-photo-stack .garment img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: transparent !important;
}
html:not([data-theme="light"]) .hero-photo-stack .garment.is-active img {
  mix-blend-mode: lighten;
  -webkit-mask-image: none;
  mask-image: none;
  filter:
    drop-shadow(0 0 18px rgba(255,255,255,.55))
    drop-shadow(0 0 48px rgba(232,220,196,.48))
    drop-shadow(0 20px 55px rgba(196,165,116,.42)) !important;
}
html[data-theme="light"] .hero-photo-stack .garment.is-active img {
  mix-blend-mode: normal !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  filter:
    drop-shadow(0 2px 4px rgba(40,30,18,.08))
    drop-shadow(0 14px 28px rgba(40,30,18,.14))
    drop-shadow(0 28px 56px rgba(40,30,18,.12))
    drop-shadow(0 0 28px rgba(154,122,77,.2)) !important;
}

/* Brand logos */
.brand-logo {
  height: 48px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
}
.brand-logo-light { display: none; }
html[data-theme="light"] .brand-logo-dark { display: none; }
html[data-theme="light"] .brand-logo-light { display: block; }
.mobile-nav-head .brand-logo {
  height: 58px;
  max-width: min(72vw, 240px);
  width: auto;
  object-fit: contain;
}
.footer-brand .brand-logo { height: 52px; max-width: 160px; margin-bottom: .8rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; }

/* Hero particle / icon field */
.hero-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  width: 100%;
  height: 100%;
}
.morph-hero .morph-stage { z-index: 0; }
.morph-hero .hero-grain { z-index: 1; opacity: .12; }
.morph-hero .morph-particles { z-index: 2; }
.morph-hero .morph-canvas-wrap { z-index: 3; }

/* ========== Stories on hero ========== */
.hero-photo-stage { position: relative; }
.hero-stories {
  margin-top: 1.1rem;
  position: relative;
  background: transparent;
  border: 0;
  overflow: visible;
}
.hero-stories--featured {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}
.hero-stories-cover { display: none !important; }
.story-rings {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.15rem;
  overflow: visible;
  padding: .2rem 0;
  justify-content: flex-start;
  align-items: flex-start;
}
.hero-stories--featured .story-rings {
  justify-content: center;
  width: 100%;
  gap: 1.1rem 1.35rem;
}
.story-rings::-webkit-scrollbar { display: none; }
.story-ring {
  flex: 0 0 auto;
  width: 96px;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: center;
}
.hero-stories--featured .story-ring { width: 104px; }
.story-ring-avatar {
  display: grid;
  place-items: center;
  width: 88px; height: 88px;
  margin: 0 auto .45rem;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #f6d27a, #c4a574, #8a5a2b, #f0b429);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hero-stories--featured .story-ring-avatar {
  width: 96px; height: 96px;
  padding: 3.5px;
}
.story-ring:hover .story-ring-avatar {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 32px rgba(196,165,116,.28);
}
.story-ring-avatar img,
.story-ring-avatar .story-ring-fallback {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 2.5px solid var(--bg);
  background: #1a1d24;
}
.story-ring-fallback {
  display: grid; place-items: center;
  font-size: .85rem; color: var(--sand);
}
.story-ring-label {
  display: block;
  font-size: .78rem;
  font-weight: 560;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.hero-stories--featured .story-ring-label { font-size: .82rem; }
@media (max-width: 800px) {
  .hero-stories--featured .story-ring { width: 84px; }
  .hero-stories--featured .story-ring-avatar { width: 76px; height: 76px; }
  .hero-stories--featured .story-ring-label { font-size: .72rem; }
  .hero-stories--featured .story-rings { gap: .85rem 1rem; justify-content: center; }
}

/* Hero stories: exactly ~4 rings visible; rest via carousel buttons */
.kd-carousel.kd-carousel--stories{
  --story-ring-w: 96px;
  --story-gap: 14px;
  width: calc(4 * var(--story-ring-w) + 3 * var(--story-gap) + 72px) !important;
  max-width: min(100%, calc(4 * var(--story-ring-w) + 3 * var(--story-gap) + 72px)) !important;
  margin-inline: auto !important;
  padding: 0 36px !important;
  box-sizing: border-box !important;
}
.kd-carousel--stories .kd-carousel__viewport{
  overflow: hidden !important;
  border-radius: 0;
  width: 100%;
  margin-inline: 0 !important;
}
.kd-carousel--stories .kd-carousel__track.story-rings,
.hero-stories--featured .kd-carousel--stories .story-rings{
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  gap: var(--story-gap) !important;
  padding: .25rem 0 .45rem !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory;
  width: 100%;
}
.kd-carousel--stories .kd-carousel__track > .story-ring,
.hero-stories--featured .kd-carousel--stories .story-ring{
  flex: 0 0 var(--story-ring-w) !important;
  width: var(--story-ring-w) !important;
  max-width: var(--story-ring-w) !important;
  min-width: var(--story-ring-w) !important;
  scroll-snap-align: start;
}
.kd-carousel--stories .story-ring-avatar,
.hero-stories--featured .kd-carousel--stories .story-ring-avatar{
  width: calc(var(--story-ring-w) - 8px) !important;
  height: calc(var(--story-ring-w) - 8px) !important;
}
.kd-carousel--stories .kd-carousel__btn{
  top: 40px;
  transform: translateY(-50%);
  width: 32px !important;
  height: 32px !important;
  z-index: 6;
}
/* RTL: next = left side, prev = right side — park them in the side gutters */
.kd-carousel--stories .kd-carousel__btn--next{
  inset-inline-end: 2px !important;
  inset-inline-start: auto !important;
}
.kd-carousel--stories .kd-carousel__btn--prev{
  inset-inline-start: 2px !important;
  inset-inline-end: auto !important;
}
@media (max-width: 800px){
  .hero-stories--featured{
    width: 100%;
    min-width: 0;
  }
  .kd-carousel.kd-carousel--stories{
    --story-ring-w: 76px;
    --story-gap: 10px;
    width: calc(4 * var(--story-ring-w) + 3 * var(--story-gap) + 72px) !important;
    max-width: min(100%, calc(100vw - 2rem), calc(4 * var(--story-ring-w) + 3 * var(--story-gap) + 72px)) !important;
    padding: 0 36px !important;
  }
  .kd-carousel--stories .kd-carousel__btn{
    display: grid !important;
    top: 34px;
  }
}

.story-viewer {
  position: fixed; inset: 0;
  z-index: 12000;
  background: rgba(0,0,0,.94);
  display: grid;
  place-items: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.story-viewer[hidden] { display: none !important; }
body.story-open { overflow: hidden; }
body.story-open .morph-hero {
  visibility: hidden;
  pointer-events: none;
}
.story-viewer-media {
  width: min(420px, 94vw);
  aspect-ratio: 9/16;
  max-height: min(86vh, 780px);
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  position: relative;
}
.story-viewer-media img,
.story-viewer-media video {
  width: 100%; height: 100%; object-fit: contain;
  background: #000;
}
.story-viewer-media .story-hold {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.story-viewer-media .story-video {
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity .2s ease;
}
.story-viewer-media .story-video.is-ready { opacity: 1; }
.story-viewer-media[data-filter="warm"] img { filter: sepia(.25) saturate(1.15); }
.story-viewer-media[data-filter="cool"] img { filter: hue-rotate(15deg) saturate(.9) brightness(1.05); }
.story-viewer-media video { filter: none !important; }
.story-viewer-bar {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  left: 50%; transform: translateX(-50%);
  width: min(420px, 92vw);
  height: 3px;
  background: rgba(255,255,255,.2);
  border-radius: 99px;
  overflow: hidden;
  z-index: 2;
}
.story-viewer-progress {
  height: 100%; width: 0;
  background: #fff;
}
.story-viewer-close {
  position: absolute;
  top: calc(22px + env(safe-area-inset-top));
  left: 16px;
  z-index: 3;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff; font-size: 1.5rem; cursor: pointer;
}
.story-viewer-meta {
  position: absolute;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%);
  width: min(420px, 92vw);
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
  z-index: 2;
  pointer-events: none;
}
.story-viewer-meta p { margin: .25rem 0 0; opacity: .9; font-size: .95rem; }
.story-nav {
  position: absolute; top: 0; bottom: 0; width: 28%;
  background: transparent; border: 0; cursor: pointer;
  z-index: 1;
}
.story-nav-prev { right: 0; }
.story-nav-next { left: 0; }

/* ========== Instagram gallery ========== */
.ig-container { max-width: 720px; }
.ig-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.ig-avatar {
  width: 86px; height: 86px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #f6d27a, #c4a574, #8a5a2b);
}
.ig-avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg, #0a0b0d);
  background: #151820;
}
.ig-profile-meta h2 { margin: 0 0 .5rem; font-size: 1.35rem; }
.ig-stats { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-bottom: .5rem; font-size: .92rem; }
.ig-bio { margin: 0; color: var(--muted); font-size: .9rem; }
.ig-tabs {
  display: flex; gap: .35rem;
  border-top: 1px solid var(--line);
  margin-bottom: .75rem;
}
.ig-tab {
  flex: 1;
  background: transparent;
  border: 0;
  border-top: 2px solid transparent;
  color: var(--muted);
  padding: .85rem .5rem;
  cursor: pointer;
  font: inherit;
}
.ig-tab.is-active {
  color: var(--sand);
  border-top-color: var(--sand);
}
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.ig-cell {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #12151b;
  cursor: pointer;
}
.ig-cell img,
.ig-cell video {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform .45s var(--ease, ease);
}
.ig-cell:hover img,
.ig-cell:hover video { transform: scale(1.04); }
.ig-badge-video {
  position: absolute;
  top: .4rem; left: .4rem;
  color: #fff;
  font-size: .75rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
}
.ig-albums { margin-top: 2.5rem; }
.ig-albums h3 { margin: 0 0 1rem; }
.ig-album-row {
  display: flex; gap: .75rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  -webkit-overflow-scrolling: touch;
}
.ig-album-chip {
  flex: 0 0 auto;
  width: 92px;
  text-align: center;
  font-size: .75rem;
  color: var(--muted);
}
.ig-album-chip img {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
  margin-bottom: .35rem;
}
.ig-lightbox {
  position: fixed; inset: 0;
  z-index: 11000;
  background: rgba(0,0,0,.92);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.ig-lightbox[hidden] { display: none !important; }
body.ig-lb-open { overflow: hidden; }
.ig-lb-body {
  width: min(560px, 96vw);
  max-height: 78vh;
}
.ig-lb-body img,
.ig-lb-body video {
  width: 100%; max-height: 78vh; object-fit: contain; border-radius: 8px;
}
.ig-lb-caption {
  color: #fff; margin: .75rem 0 0; text-align: center;
  max-width: 560px;
}
.ig-lb-close {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  left: 14px;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff; font-size: 1.4rem; cursor: pointer;
}

/* ========== PWA install section ========== */
.pwa-install-section { padding-top: 2rem; }
.pwa-install-card {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(196,165,116,.14), transparent 55%),
    linear-gradient(160deg, rgba(255,255,255,.03), transparent 50%);
}
@media (min-width: 800px) {
  .pwa-install-card { grid-template-columns: 1.3fr .7fr; padding: 2rem 2.2rem; }
}
.pwa-install-copy h2 {
  margin: .35rem 0 .7rem;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
}
.pwa-platforms {
  display: flex; flex-wrap: wrap; gap: .45rem;
  list-style: none; padding: 0; margin: 1rem 0;
}
.pwa-platforms li {
  padding: .35rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--sand);
}
.pwa-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.pwa-hint { color: var(--sand); font-size: .9rem; margin: .75rem 0 0; }
.pwa-install-visual { display: grid; place-items: center; }
.pwa-phone {
  width: min(180px, 48vw);
  aspect-ratio: 9/16;
  border-radius: 22px;
  border: 2px solid rgba(196,165,116,.45);
  background: #12151b;
  display: grid;
  place-items: center;
  gap: .6rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.pwa-phone img { width: 48%; height: auto; object-fit: contain; }
.pwa-phone span { letter-spacing: .18em; font-size: .7rem; color: var(--sand); }
.pwa-howto {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
@media (min-width: 800px) {
  .pwa-howto { grid-template-columns: repeat(3, 1fr); }
}
.pwa-howto > div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.pwa-howto h3 { margin: 0 0 .4rem; font-size: 1rem; }
.pwa-howto p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ========== Mobile optimization ========== */
@media (max-width: 800px) {
  .morph-hero {
    min-height: auto;
    padding: .6rem 0 1.4rem;
  }
  .hero-photo-frame {
    width: min(52vw, 210px);
    aspect-ratio: 1;
  }
  .morph-copy h1 { font-size: clamp(1.25rem, 5.5vw, 1.7rem) !important; }
  .morph-progress { display: none; }
  .morph-lead { font-size: .95rem; }
  .hero-cta { justify-content: center; flex-wrap: wrap; }
  .hero-cta .btn { width: 100%; max-width: 280px; }
  .section { padding: 2.75rem 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .product-card .body { padding: .65rem .55rem .8rem; }
  .product-card h3 { font-size: .88rem; }
  .price { font-size: .82rem; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .main-content { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
  .flash-stack { inset-inline: .75rem; }
  .ig-avatar { width: 72px; height: 72px; }
  .ig-profile { gap: .9rem; }
  .story-ring { width: 84px; }
  .story-ring-avatar { width: 76px; height: 76px; border-radius: 50%; }
  .story-ring-avatar img,
  .story-ring-avatar .story-ring-fallback { border-radius: 50%; }
}
@media (max-width: 480px) {
  .container { width: min(100% - 1.4rem, 1120px); }
  .mobile-nav-head .brand-logo { height: 38px; max-width: 130px; }
  .page-hero h1 { font-size: 1.75rem; }
}
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* PWA install bar + guide */
.pwa-install-bar {
  position: fixed;
  right: 0; left: 0;
  bottom: 0;
  z-index: 10050;
  padding: .65rem .75rem calc(.65rem + env(safe-area-inset-bottom));
  background: rgba(10,11,13,.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.pwa-install-bar[hidden] { display: none !important; }
body:has(.pwa-install-bar:not([hidden])) .main-content {
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}
body:has(.pwa-install-bar:not([hidden])) .site-footer {
  padding-bottom: calc(5.2rem + env(safe-area-inset-bottom, 0px));
}
body:has(.pwa-install-bar:not([hidden])) .chat-fab,
body:has(.pwa-install-bar:not([hidden])) #chatFab {
  bottom: calc(5.6rem + env(safe-area-inset-bottom, 0px)) !important;
}
body:has(.pwa-install-bar:not([hidden])) .pd-sticky-bar,
body:has(.pwa-install-bar:not([hidden])) .kd-sticky {
  bottom: calc(4.8rem + env(safe-area-inset-bottom, 0px));
}
.pwa-install-bar-inner {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: .65rem;
  align-items: center;
}
.pwa-install-bar-inner img {
  width: 40px; height: 40px; border-radius: 10px;
}
.pwa-install-bar-inner strong {
  display: block; font-size: .92rem; line-height: 1.2;
}
.pwa-install-bar-inner span {
  display: block; font-size: .75rem; color: var(--muted);
}
.pwa-install-bar .btn { padding: .55rem .9rem; font-size: .85rem; }
.pwa-bar-x {
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff; font-size: 1.2rem; cursor: pointer;
}
.pwa-guide-modal {
  position: fixed; inset: 0; z-index: 10100;
  background: rgba(0,0,0,.72);
  display: grid; place-items: end center;
  padding: 0;
}
.pwa-guide-modal[hidden] { display: none !important; }
body.pwa-guide-open { overflow: hidden; }
.pwa-guide-sheet {
  width: min(520px, 100%);
  background: #12151b;
  border: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  padding: 1.25rem 1.2rem calc(1.25rem + env(safe-area-inset-bottom));
  position: relative;
}
.pwa-guide-sheet h3 { margin: 0 2rem .9rem 0; }
.pwa-guide-sheet ol { margin: 0 0 1rem; padding-right: 1.2rem; color: var(--muted); line-height: 1.7; }
.pwa-guide-close {
  position: absolute; top: .8rem; left: .8rem;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff; font-size: 1.3rem; cursor: pointer;
}
#pwaInstallBtn.pwa-ready {
  box-shadow: 0 0 0 2px rgba(196,165,116,.35);
  animation: pwaPulse 1.6s ease-in-out infinite;
}
@keyframes pwaPulse {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
html[data-pwa-ready="1"] #pwaInstallBar { /* shown by JS */ }

body.ig-cam-lock { overflow: hidden; touch-action: none; }
.ig-cam {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  flex-direction: column;
  background: #050505;
  color: #fff;
  height: 100dvh;
  height: 100%;
}
.ig-cam.is-open,
.ig-cam:not([hidden]) { display: flex; }
.ig-cam[hidden] { display: none !important; }
.ig-cam-top {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: calc(.7rem + env(safe-area-inset-top, 0px)) 1rem .7rem;
}
.ig-cam-x {
  width: 42px; height: 42px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff; font-size: 1.6rem; cursor: pointer;
}
.ig-cam-top strong { text-align: center; font-weight: 600; }
.ig-cam-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  background: #000;
  overflow: hidden;
}
.ig-cam-stage img,
.ig-cam-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.ig-cam-hint {
  max-width: 16rem;
  text-align: center;
  color: rgba(255,255,255,.72);
  padding: 1rem;
  line-height: 1.7;
}
.ig-cam-dock {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1.1rem calc(1.2rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
}
.ig-cam-side {
  justify-self: start;
  background: transparent;
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  border-radius: 999px;
  padding: .55rem .9rem;
  cursor: pointer;
}
.ig-cam-shutter {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255,255,255,.18);
  cursor: pointer;
  justify-self: center;
}
.ig-cam.is-video .ig-cam-shutter {
  background: #e11d48;
  border-color: #fff;
}
.ig-cam-modes {
  justify-self: end;
  display: flex;
  gap: .2rem;
  background: rgba(255,255,255,.1);
  border-radius: 999px;
  padding: .2rem;
}
.ig-cam-modes button {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.7);
  padding: .45rem .75rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}
.ig-cam-modes button.is-on {
  background: #fff;
  color: #111;
}
.ig-cam-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.ig-cam-use {
  margin: 0 1.1rem .4rem;
  width: calc(100% - 2.2rem);
}
.ig-cam-inline-preview {
  margin-top: 1rem;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9/16;
  max-width: 240px;
  margin-inline: auto;
}
.ig-cam-inline-preview img,
.ig-cam-inline-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) {
  .story-admin-tabs .btn { flex: 1; min-width: 140px; }
}

.reviews-section { padding-top: 0; }
.review-list { display: grid; gap: .9rem; margin-bottom: 1.5rem; }
.review-card {
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  background: var(--bg-elev, #14161a);
}
.review-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: .4rem; }
.star-display { color: #d4a017; letter-spacing: .08em; }
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: .1rem;
  direction: ltr;
}
.star-rating input { position: absolute; opacity: 0; pointer-events: none; }
.star-rating label {
  font-size: 1.7rem;
  color: #555;
  cursor: pointer;
  line-height: 1;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #d4a017; }
.captcha-box label { font-weight: 600; }
.coupon-box { margin-bottom: 1rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.coupon-form label { display: block; margin-bottom: .4rem; }
.coupon-row { display: flex; gap: .45rem; }
.coupon-row .form-input { flex: 1; }
.sale-section .section-head h2 { color: var(--bronze); }

.hero-thumbs {
  display: flex;
  gap: .45rem;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-top: .85rem;
  padding: .15rem 0;
  scrollbar-width: none;
  max-width: 100%;
}
.hero-thumbs::-webkit-scrollbar { display: none; }
.hero-thumb {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(196,165,116,.35);
  background: rgba(255,255,255,.04);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  opacity: .55;
  transition: opacity .25s, transform .25s, border-color .25s;
}
.hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.hero-thumb.is-active,
.hero-thumb:hover {
  opacity: 1;
  border-color: var(--bronze);
  transform: translateY(-2px);
}

.product-carousel {
  position: relative;
}
.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: .2rem .15rem 1rem;
  -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .product-card {
  flex: 0 0 min(260px, 72vw);
  scroll-snap-align: start;
  min-width: 0;
}
.carousel-btn {
  position: absolute;
  top: 38%;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-elev);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow);
  font-size: 1.4rem;
  line-height: 1;
}
.carousel-prev { right: -8px; }
.carousel-next { left: -8px; }
@media (max-width: 800px) {
  .carousel-btn { display: none; }
  .carousel-track .product-card { flex-basis: min(210px, 68vw); }
  .hero-thumb { width: 42px; height: 42px; border-radius: 10px; }
}

.page-home .section-head h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.page-home .section { padding-top: 3.2rem; padding-bottom: 3.2rem; }

.cart-item { min-width: 0; }
.cart-item strong { word-break: break-word; }
@media (max-width: 700px) {
  .cart-layout { grid-template-columns: 1fr !important; }
  .cart-item {
    grid-template-columns: 72px 1fr;
    gap: .7rem;
  }
  .cart-item > :nth-child(3) {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right !important;
  }
  .cart-item img,
  .cart-item .js-product-rotator img {
    width: 72px !important;
    height: 90px !important;
  }
  .qty-control { flex-wrap: wrap; }
  .qty-control .btn { min-height: 40px; }
  .coupon-row { flex-direction: column; }
  .coupon-row .btn { width: 100%; }
}

.cat-card h3 { position: relative; z-index: 2; margin: 0; font-size: 1.2rem; }



/* ===== Phase: mega / search / rates / sticky cart / blog / shop ===== */
.announce-fx { display:flex; justify-content:center; align-items:center; gap:.5rem; }
.announce-fx-link { color:inherit; display:inline-flex; align-items:center; gap:.45rem; font-weight:500; }
.fx-live-dot { width:8px; height:8px; border-radius:50%; background:#3ddc84; box-shadow:0 0 0 0 rgba(61,220,132,.7); animation:fxPulse 1.6s infinite; }
@keyframes fxPulse { 70% { box-shadow:0 0 0 8px rgba(61,220,132,0); } 100% { box-shadow:0 0 0 0 rgba(61,220,132,0); } }

.nav-mega-wrap { position:relative; }
.nav-mega-trigger { display:inline-flex; align-items:center; gap:.25rem; }
.mega-panel {
  position:absolute; top:calc(100% + .6rem); right:0; min-width:min(720px, 92vw);
  opacity:0; pointer-events:none; transform:translateY(10px) scale(.98);
  transition:opacity .28s ease, transform .35s cubic-bezier(.2,.8,.2,1);
  z-index:80; padding-top:.2rem;
}
.nav-mega-wrap:hover .mega-panel,
.nav-mega-wrap:focus-within .mega-panel { opacity:1; pointer-events:auto; transform:none; }
.mega-panel-inner {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:.8rem;
  background:var(--panel, #12141a); border:1px solid var(--line); border-radius:16px;
  padding:1rem; box-shadow:0 24px 60px rgba(0,0,0,.35); backdrop-filter:blur(12px);
}
.mega-card {
  display:flex; flex-direction:column; gap:.45rem; padding:.55rem; border-radius:12px;
  color:inherit; transition:background .25s, transform .3s;
}
.mega-card:hover { background:rgba(255,255,255,.05); transform:translateY(-3px); }
.mega-card-media { aspect-ratio:4/3; border-radius:10px; overflow:hidden; background:#1a1d24; }
.mega-card-media img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s; }
.mega-card:hover .mega-card-media img { transform:scale(1.06); }
.mega-card-fallback { display:block; width:100%; height:100%; background:linear-gradient(135deg,#222,#111); }
.mega-card strong { font-size:.95rem; }
.mega-card span { color:var(--muted); font-size:.8rem; line-height:1.5; }

.header-search { position:relative; }
.search-panel {
  position:absolute; top:calc(100% + .55rem); left:0; width:min(420px, 86vw);
  background:var(--panel,#12141a); border:1px solid var(--line); border-radius:14px;
  padding:.75rem; box-shadow:0 18px 50px rgba(0,0,0,.35); z-index:90;
  animation:searchIn .28s ease;
}
@keyframes searchIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
.search-results { max-height:360px; overflow:auto; margin-top:.6rem; }
.search-group { margin-bottom:.8rem; }
.search-group strong { display:block; font-size:.75rem; color:var(--muted); margin-bottom:.35rem; }
.search-group a {
  display:flex; gap:.65rem; align-items:center; padding:.45rem; border-radius:10px; color:inherit;
}
.search-group a:hover { background:rgba(255,255,255,.06); }
.search-group img { width:42px; height:42px; object-fit:cover; border-radius:8px; }
.search-group small { display:block; color:var(--muted); }

.sticky-cart {
  position:fixed; top:0; left:0; width:min(400px, 94vw); height:100%; z-index:140;
  background:var(--panel,#101218); border-left:1px solid var(--line);
  transform:translateX(-105%); transition:transform .42s cubic-bezier(.2,.8,.2,1);
  display:flex; flex-direction:column; box-shadow:24px 0 60px rgba(0,0,0,.4);
}
.sticky-cart.is-open { transform:none; }
.sticky-cart-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,.48); z-index:135; backdrop-filter:blur(3px);
}
.sticky-cart-head {
  display:flex; justify-content:space-between; align-items:center;
  padding:1.05rem 1.15rem; border-bottom:1px solid var(--line);
}
.sticky-cart-body { padding:0; flex:1; min-height:0; display:flex; flex-direction:column; overflow:hidden; }

.hero-bg-video {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0;
  opacity:.58; pointer-events:none;
}
.hero-bg-veil {
  position:absolute; inset:0; z-index:1;
  background:
    linear-gradient(180deg, rgba(12,18,28,.38) 0%, rgba(12,18,28,.22) 42%, rgba(12,18,28,.52) 100%);
  pointer-events:none;
}
html[data-theme="light"] .hero-bg-veil {
  background:
    linear-gradient(180deg, rgba(220,232,244,.42) 0%, rgba(240,235,228,.22) 40%, rgba(30,50,70,.38) 100%);
}
/* When hero video is on: let it show through — mute competing overlays */
.morph-hero--has-video .morph-stage,
.morph-hero--has-video .hero-field,
.morph-hero--has-video .morph-particles,
.morph-hero--has-video .hero-grain {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
}
.morph-hero--has-video .hero-bg-video { z-index: 0; }
.morph-hero--has-video .hero-bg-veil { z-index: 1; }
.morph-hero--has-video .morph-canvas-wrap { z-index: 3; position: relative; }
.morph-hero--has-video .morph-copy,
.morph-hero--has-video .hero-stories {
  text-shadow: 0 2px 18px rgba(0,0,0,.45), 0 1px 3px rgba(0,0,0,.35);
}
html[data-theme="light"] .morph-hero--has-video .morph-copy,
html[data-theme="light"] .morph-hero--has-video .hero-stories {
  text-shadow: 0 2px 16px rgba(255,255,255,.55), 0 1px 4px rgba(20,40,60,.25);
}
.morph-hero--has-video .morph-copy .btn-ghost {
  background: rgba(0,0,0,.28);
  border-color: rgba(255,255,255,.35);
  color: #fff !important;
  backdrop-filter: blur(6px);
}
html[data-theme="light"] .morph-hero--has-video .morph-copy .btn-ghost {
  background: rgba(255,255,255,.55);
  border-color: rgba(40,70,110,.28);
  color: var(--ink) !important;
}
.morph-hero .hero-field, .morph-hero .morph-stage, .morph-hero .morph-particles, .morph-hero .hero-grain { z-index:2; }
.morph-hero .morph-canvas-wrap { position:relative; z-index:3; }
.hero-brand-logo {
  display: block;
  width: auto;
  height: 78px;
  max-width: min(90vw, 320px);
  margin-bottom: .8rem;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.35));
  animation: logoFloat 4s ease-in-out infinite;
}
@keyframes logoFloat { 50% { transform:translateY(-4px); } }
.hero-photo-stack .garment { display:block; }

.rates-board {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:.9rem;
}
.rate-tile {
  padding:1rem 1.05rem; border:1px solid var(--line); border-radius:16px;
  background:linear-gradient(160deg, rgba(255,255,255,.04), transparent);
  transition:transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s;
}
.rate-tile:hover { transform:translateY(-5px); border-color:rgba(201,162,39,.45); }
.rate-code { font-size:.75rem; color:var(--muted); letter-spacing:.08em; }
.rate-tile h3 { margin:.2rem 0 .5rem; font-size:1rem; }
.rate-price { font-size:1.25rem; display:block; }
.rate-unit { color:var(--muted); font-size:.8rem; }
.rate-change { display:inline-block; margin-top:.45rem; font-size:.85rem; }
.rate-change.up { color:#3ddc84; }
.rate-change.down { color:#ff6b6b; }

.brand-feature-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:1rem;
}
.brand-feature {
  text-align:center; padding:1.4rem 1rem; border:1px solid var(--line); border-radius:18px;
  background:rgba(255,255,255,.02);
}
.brand-feature-icon {
  width:64px; height:64px; margin:0 auto .9rem; color:var(--sand, #e8dcc4);
  animation:iconBob 3.2s ease-in-out infinite;
}
.brand-feature:nth-child(2) .brand-feature-icon { animation-delay:.4s; }
.brand-feature:nth-child(3) .brand-feature-icon { animation-delay:.8s; }
.brand-feature:nth-child(4) .brand-feature-icon { animation-delay:1.2s; }
.brand-feature-icon svg { width:100%; height:100%; }
@keyframes iconBob { 50% { transform:translateY(-6px) rotate(-3deg); } }
.brand-feature h3 { margin:.2rem 0 .5rem; font-size:1.05rem; }
.brand-feature p { margin:0; color:var(--muted); font-size:.92rem; line-height:1.7; }

.footer-seals { display:flex; align-items:flex-end; gap:1rem; flex-wrap:wrap; margin-top:1rem; }
.zarinpal-seal img { width:92px; height:auto; display:block; }
.footer-bottom-centered {
  flex-direction:column; justify-content:center; text-align:center; gap:.45rem;
}

.shop-grid-layout {
  display:grid; grid-template-columns:280px 1fr; gap:1.5rem; align-items:start;
}
.shop-filters { position:sticky; top:5.5rem; padding:1.1rem; }
.shop-filters-title { margin:0 0 1rem; font-size:1.05rem; }
.filter-price-row { display:grid; grid-template-columns:1fr 1fr; gap:.6rem; }
.filter-check { display:flex; gap:.45rem; align-items:center; margin-top:.55rem; font-size:.92rem; }
.shop-results-meta {
  margin-bottom:1rem; color:var(--muted);
  display:flex; align-items:center; justify-content:space-between; gap:.75rem; flex-wrap:wrap;
}
.shop-pager { display:flex; gap:.5rem; justify-content:center; margin-top:2.5rem; flex-wrap:wrap; }
.pagination {
  --pagination-accent: var(--bronze, #b58b55);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.65rem;
  flex-wrap:wrap;
  margin:2.25rem auto .5rem;
  direction:rtl;
}
.pagination__pages { display:flex; align-items:center; justify-content:center; gap:.4rem; }
.pagination__number,
.pagination__arrow {
  min-width:2.65rem;
  height:2.65rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 .75rem;
  border:1px solid color-mix(in srgb, var(--pagination-accent) 26%, var(--line));
  border-radius:13px;
  background:color-mix(in srgb, var(--surface, #fff) 88%, transparent);
  color:var(--ink);
  text-decoration:none;
  font:inherit;
  font-size:.9rem;
  font-weight:750;
  box-shadow:0 5px 16px rgba(20,25,35,.06);
  transition:transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.pagination__number:hover,
.pagination__arrow:hover {
  transform:translateY(-2px);
  border-color:var(--pagination-accent);
  background:color-mix(in srgb, var(--pagination-accent) 12%, var(--surface, #fff));
  box-shadow:0 9px 22px rgba(20,25,35,.1);
}
.pagination__number.is-current {
  border-color:transparent;
  background:linear-gradient(135deg, color-mix(in srgb, var(--pagination-accent) 82%, #fff), var(--pagination-accent));
  color:#fff;
  box-shadow:0 8px 20px color-mix(in srgb, var(--pagination-accent) 28%, transparent);
}
.pagination__arrow.is-disabled {
  opacity:.42;
  box-shadow:none;
}
.pagination__ellipsis { min-width:1rem; text-align:center; color:var(--muted); }
.pagination__arrow:focus-visible,
.pagination__number:focus-visible { outline:3px solid color-mix(in srgb, var(--pagination-accent) 44%, transparent); outline-offset:2px; }
.shop-filter-fab{ display:none; }

.shop-filter-overlay{
  position:fixed; inset:0; z-index:12050;
  background:rgba(0,0,0,.42);
  opacity:0; pointer-events:none;
  transition:opacity .25s ease;
}
.shop-filter-overlay.is-open{ opacity:1; pointer-events:auto; }
.shop-filter-drawer{
  position:fixed;
  top:0; bottom:0; right:0;
  width:min(400px, 94vw);
  z-index:12060;
  background:var(--bg-elev, #12141a);
  border-inline-start:1px solid var(--line);
  box-shadow:-18px 0 50px rgba(0,0,0,.35);
  transform:translateX(105%);
  transition:transform .32s cubic-bezier(.2,.8,.2,1);
  display:flex; flex-direction:column;
  padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
.shop-filter-drawer.is-open{ transform:none; }
html[data-theme="light"] .shop-filter-drawer{
  background:#fffef9;
  border-color:#e8dcc8;
}
.shop-filter-drawer__head{
  display:flex; align-items:center; justify-content:space-between;
  padding:.9rem 1rem; border-bottom:1px solid var(--line);
  flex:0 0 auto;
}
.shop-filter-drawer__body{
  padding:1rem; overflow:auto; flex:1;
  display:flex; flex-direction:column; gap:1.1rem;
}
.shop-filter-drawer__results{
  border-top:1px solid var(--line);
  padding-top:1rem;
}
.shop-filter-drawer__count{
  margin:0 0 .75rem;
  font-size:.92rem;
  color:var(--muted);
}
.shop-filter-drawer__grid{
  grid-template-columns:repeat(2, minmax(0,1fr)) !important;
  gap:.65rem !important;
}
body.shop-filter-open{ overflow:hidden; }

@media (max-width: 900px) {
  .shop-grid-layout { grid-template-columns:1fr; }
  .shop-filters--desktop { display:none !important; }
  .shop-filter-fab{
    display:inline-flex;
    align-items:center;
    gap:.4rem;
    margin:0;
    min-height:40px;
    padding:.4rem .85rem .4rem .55rem;
    border-radius:999px;
    border:1px solid var(--line);
    background:var(--bg-elev, #16181e);
    color:var(--ink);
    font:inherit;
    font-size:.86rem;
    font-weight:700;
    cursor:pointer;
    box-shadow:0 8px 22px rgba(0,0,0,.18);
  }
  html[data-theme="light"] .shop-filter-fab{
    background:#fff;
    border-color:#e5d9c5;
  }
  .shop-filter-fab__arrow{
    display:grid; place-items:center;
    width:28px; height:28px;
    border-radius:50%;
    background:color-mix(in srgb, var(--bronze) 16%, transparent);
    color:var(--bronze);
    animation: shopFilterArrowPulse 1.35s ease-in-out infinite;
  }
}
@keyframes shopFilterArrowPulse{
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-5px); }
}
@media (min-width:901px){
  .shop-filter-fab,
  .shop-filter-drawer,
  .shop-filter-overlay{ display:none !important; }
}

.blog-hero {
  position:relative; padding:4.5rem 0 2.5rem; overflow:hidden;
  background:radial-gradient(ellipse at 30% 20%, rgba(201,162,39,.18), transparent 50%),
             linear-gradient(180deg, #0c0e13, transparent);
}
.blog-hero-orb {
  position:absolute; width:420px; height:420px; border-radius:50%;
  background:radial-gradient(circle, rgba(232,220,196,.14), transparent 70%);
  top:-120px; left:-80px; animation:orbDrift 8s ease-in-out infinite;
}
@keyframes orbDrift { 50% { transform:translate(30px, 20px) scale(1.08); } }
.blog-magazine {
  display:grid; grid-template-columns:repeat(12, 1fr); gap:1.1rem;
}
.blog-mag-card {
  grid-column:span 4; display:flex; flex-direction:column; color:inherit;
  border:1px solid var(--line); border-radius:18px; overflow:hidden;
  background:rgba(255,255,255,.02); transition:transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.blog-mag-card.is-featured { grid-column:span 12; display:grid; grid-template-columns:1.2fr 1fr; min-height:320px; }
.blog-mag-card:hover { transform:translateY(-6px); box-shadow:0 24px 50px rgba(0,0,0,.28); }
.blog-mag-media { position:relative; overflow:hidden; min-height:180px; background:#151820; }
.blog-mag-card.is-featured .blog-mag-media { min-height:100%; }
.blog-mag-media img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .7s; }
.blog-mag-card:hover .blog-mag-media img { transform:scale(1.05); }
.blog-mag-shine {
  position:absolute; inset:0; background:linear-gradient(120deg, transparent 30%, rgba(255,255,255,.12), transparent 70%);
  transform:translateX(-120%); animation:shineSweep 5s ease-in-out infinite;
}
@keyframes shineSweep { 40%,100% { transform:translateX(120%); } }
.blog-mag-body { padding:1.1rem 1.2rem 1.3rem; }
.blog-mag-body h2 { margin:.2rem 0 .6rem; font-size:1.2rem; line-height:1.5; }
.blog-mag-card.is-featured .blog-mag-body h2 { font-size:clamp(1.4rem, 3vw, 2rem); }
.blog-mag-body p { color:var(--muted); margin:0; line-height:1.75; }
.blog-mag-body time { display:block; margin-top:.8rem; color:var(--muted); font-size:.82rem; }
.blog-mag-fallback { width:100%; height:100%; min-height:180px; background:linear-gradient(145deg,#1c1f26,#2a2318); }
@media (max-width: 900px) {
  .blog-mag-card, .blog-mag-card.is-featured { grid-column:span 12; display:flex; }
}

.combo-list { margin-top:1rem; padding:1rem; border:1px dashed var(--line); border-radius:12px; }
.combo-list ul { list-style:none; margin:.6rem 0 0; padding:0; }
.combo-list li { display:flex; justify-content:space-between; align-items:center; gap:.5rem; padding:.4rem 0; border-bottom:1px solid var(--line); }
.combo-list li:last-child { border-bottom:0; }
.combo-list button { background:none; border:none; color:#ff6b6b; cursor:pointer; }

.flash-stack .flash.is-leaving { opacity:0; transform:translateY(-10px); transition:.4s; }

/* sticky cart items + theme — modern drawer */
.sticky-cart {
  position:fixed; top:0; left:0; width:min(400px, 94vw); height:100%; z-index:140;
  background: var(--panel, #101218); color: var(--ink);
  border-left:1px solid var(--line);
  transform:translateX(-105%); transition:transform .42s cubic-bezier(.2,.8,.2,1);
  display:flex; flex-direction:column;
  box-shadow:24px 0 60px rgba(0,0,0,.4);
}
.sticky-cart.is-open { transform:none; }
html[data-theme="light"] .sticky-cart {
  background: #fffefb; color: #1a1a1a;
  box-shadow:24px 0 50px rgba(30,40,60,.14);
}
.sticky-cart-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,.48); z-index:135; backdrop-filter:blur(3px);
}
.sticky-cart-head {
  display:flex; justify-content:space-between; align-items:center;
  padding:1.05rem 1.15rem; border-bottom:1px solid var(--line);
  background:linear-gradient(180deg, color-mix(in srgb, var(--bronze,#c4a574) 10%, transparent), transparent);
}
.sticky-cart-head-txt { display:flex; flex-direction:column; gap:.12rem; }
.sticky-cart-kicker {
  font-size:.68rem; letter-spacing:.06em; font-weight:700; color:var(--bronze,#c4a574);
}
.sticky-cart-head strong { font-size:1.05rem; font-weight:800; }
.sticky-cart-x { border-radius:10px; }
.sticky-cart-body {
  padding:0; flex:1; min-height:0; display:flex; flex-direction:column; overflow:hidden;
}
.sticky-cart-items {
  display:flex; flex-direction:column; gap:.65rem;
  overflow:auto; padding:1rem 1.1rem .4rem;
  flex:1 1 auto; min-height:0;
}
.sticky-item {
  display:grid; grid-template-columns:68px 1fr auto; gap:.7rem; align-items:center;
  padding:.6rem; border:1px solid var(--line); border-radius:14px;
  background:rgba(127,127,127,.045);
  transition:border-color .2s, transform .2s;
}
.sticky-item:hover { border-color:color-mix(in srgb, var(--bronze,#c4a574) 45%, var(--line)); }
.sticky-item-media {
  width:68px; height:84px; border-radius:11px; overflow:hidden; background:#222;
}
.sticky-item-media img, .sticky-item-media span { width:100%; height:100%; object-fit:cover; display:block; }
.sticky-item-body strong { display:block; font-size:.88rem; line-height:1.4; font-weight:700; }
.sticky-item-body small, .sticky-item-meta { color:var(--muted); font-size:.78rem; display:block; margin-top:.15rem; }
.sticky-item-remove {
  width:32px; height:32px; border-radius:9px; border:1px solid var(--line);
  background:transparent; color:var(--muted); font-size:1.15rem; cursor:pointer; line-height:1;
}
.sticky-item-remove:hover { color:#e10600; border-color:color-mix(in srgb, #e10600 40%, var(--line)); }

.sticky-cart-empty {
  padding:2.2rem 1.2rem; text-align:center; color:var(--muted);
}
.sticky-cart-empty-ico {
  width:64px; height:64px; margin:0 auto .85rem; border-radius:18px;
  display:grid; place-items:center;
  background:color-mix(in srgb, var(--bronze,#c4a574) 12%, transparent);
  color:var(--bronze,#c4a574);
}
.sticky-cart-empty p { margin:0 0 1rem; font-size:.95rem; color:var(--ink); }

.sticky-cart-suggest {
  flex:0 0 auto;
  border-top:1px solid var(--line);
  padding:.85rem 0 .35rem;
  background:color-mix(in srgb, var(--bronze,#c4a574) 5%, transparent);
}
.sticky-cart-suggest-head {
  display:flex; align-items:baseline; justify-content:space-between;
  padding:0 1.1rem .55rem; gap:.5rem;
}
.sticky-cart-suggest-head strong { font-size:.88rem; font-weight:800; }
.sticky-cart-suggest-head span { font-size:.72rem; color:var(--muted); }
.sticky-cart-suggest-track {
  display:flex; gap:.55rem; overflow-x:auto; padding:0 1.1rem .75rem;
  scrollbar-width:none; -webkit-overflow-scrolling:touch;
}
.sticky-cart-suggest-track::-webkit-scrollbar { display:none; }
.sticky-suggest-card {
  flex:0 0 108px; width:108px; text-decoration:none; color:inherit;
  display:flex; flex-direction:column; gap:.3rem;
  padding:.4rem; border-radius:12px; border:1px solid var(--line);
  background:var(--panel, #101218);
  transition:transform .22s, border-color .22s;
}
html[data-theme="light"] .sticky-suggest-card { background:#fff; }
.sticky-suggest-card:hover {
  transform:translateY(-2px);
  border-color:color-mix(in srgb, var(--bronze,#c4a574) 50%, var(--line));
}
.sticky-suggest-card img, .sticky-suggest-ph {
  width:100%; height:92px; object-fit:cover; border-radius:9px; display:block; background:#222;
}
.sticky-suggest-name {
  font-size:.72rem; font-weight:650; line-height:1.35;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.sticky-suggest-price { font-size:.72rem; font-weight:800; color:#e10600; }

.sticky-cart-foot {
  flex:0 0 auto;
  margin-top:auto;
  padding:1rem 1.1rem calc(1rem + env(safe-area-inset-bottom));
  border-top:1px solid var(--line);
  background:color-mix(in srgb, var(--panel,#101218) 92%, #000);
}
html[data-theme="light"] .sticky-cart-foot { background:#fff; }
.sticky-cart-sub {
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom:.85rem; font-size:.92rem;
}
.sticky-cart-sub strong { font-size:1.05rem; font-weight:800; color:#e10600; }
.sticky-cart-actions { display:grid; grid-template-columns:1fr 1fr; gap:.5rem; }
.sticky-cart-actions .btn-primary {
  background:#e10600; border-color:#e10600; color:#fff;
}
.sticky-cart-actions .btn-primary:hover { filter:brightness(.94); }
.sticky-cart-full {
  display:block; text-align:center; margin-top:.75rem;
  color:var(--muted); font-size:.82rem; font-weight:600;
}
.sticky-cart-full:hover { color:var(--ink); }


/* mega menu stay open + animation */
.nav-mega-wrap .mega-panel { padding-top:0; }
.mega-panel-bridge { height:14px; }
.nav-mega-wrap.is-open .mega-panel,
.nav-mega-wrap:hover .mega-panel,
.nav-mega-wrap:focus-within .mega-panel {
  opacity:1; pointer-events:auto; transform:none;
}
.mega-panel-inner {
  animation: megaIn .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes megaIn {
  from { opacity:0; transform:translateY(12px) scale(.97); }
  to { opacity:1; transform:none; }
}
.mega-panel-head {
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom:.8rem; padding:0 .2rem .7rem; border-bottom:1px solid var(--line);
}
.mega-panel-head a { color:var(--sand); font-size:.85rem; }
.mega-panel-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:.8rem;
}
.mega-card { animation: megaCard .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes megaCard {
  from { opacity:0; transform:translateY(10px); }
  to { opacity:1; transform:none; }
}

/* mobile search */
@media (max-width: 900px) {
  .header-search { position:static; }
  .search-panel {
    position:fixed; inset:auto 0 0 0; top:0; left:0; right:0; width:100%;
    min-height:100dvh; border-radius:0; border:0; z-index:160;
    padding:1rem 1rem 2rem; background:var(--bg, #0a0b0d);
    display:flex; flex-direction:column;
  }
  .search-panel[hidden] { display:none !important; }
  body.search-open { overflow:hidden; }
  .search-panel .form-input { font-size:1.05rem; padding:1rem; border-radius:14px; }
  .search-results { flex:1; overflow:auto; margin-top:1rem; max-height:none; }
  .header-actions .header-search .icon-btn { position:relative; z-index:161; }
}


/* Hero circular cover lock */
.morph-hero .hero-photo-frame {
  border-radius: 50% !important;
  overflow: hidden !important;
}
.morph-hero .hero-photo-stack {
  border-radius: 50%;
  overflow: hidden;
}

/* ===== Product detail layout (Armo-inspired) ===== */
.pd-layout.product-detail,
.pd-layout-armo {
  display: grid !important;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr) !important;
  gap: 1.6rem 2.4rem;
  align-items: start;
}
.pd-gallery {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 5.2rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  min-width: 0;
}
.pd-info {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
.pd-main-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #1c1f26, #12141a);
}
.pd-main-thumb > img#mainProductImage,
.pd-main-thumb > #mainProductImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.pd-fallback { width: 100%; height: 100%; background: linear-gradient(145deg, #1c1f26, #12141a); }
.pd-zoom-hint {
  position: absolute;
  left: .7rem;
  top: .7rem;
  z-index: 4;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .45);
  color: #fff;
  cursor: pointer;
}
.pd-thumbs-rail {
  display: flex !important;
  flex-wrap: nowrap;
  gap: .45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: .15rem 0;
}
.pd-thumbs-rail::-webkit-scrollbar { height: 4px; }
.pd-thumbs-rail .gallery-item {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(127, 127, 127, .08);
  cursor: pointer;
}
.pd-thumbs-rail .gallery-item.is-active {
  border-color: var(--bronze, #c4a574);
  box-shadow: 0 0 0 1px var(--bronze, #c4a574);
}
.pd-thumbs-rail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .55rem;
  align-items: center;
  padding: 1rem 0 0;
  font-size: .82rem;
  color: var(--muted);
}
.pd-breadcrumb a { color: var(--muted); }
.pd-breadcrumb a:hover { color: var(--sand); }
.pd-section { padding-top: 1rem; padding-bottom: 1.2rem; }
.pd-title {
  margin: 0 0 .55rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.4;
  font-weight: 700;
}
.pd-lead {
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.75;
  font-size: .95rem;
}
.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  margin: 0 0 .85rem;
  font-size: 1.55rem;
}
.pd-price-row s { color: var(--muted); font-size: 1rem; }
.pd-price-row small { font-size: .85rem; font-weight: 500; color: var(--muted); }

.pd-social-proof {
  margin: 0 0 1rem;
  min-height: 2.4rem;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(127, 127, 127, .04);
}
.pd-sp-track { position: relative; }
.pd-sp-item {
  display: none;
  align-items: center;
  gap: .55rem;
  padding: .65rem .85rem;
  margin: 0;
}
.pd-sp-item.is-active { display: flex; animation: pdSpIn .35s ease; }
.pd-sp-item p { margin: 0; font-size: .9rem; line-height: 1.5; }
.pd-sp-item[data-tone="sales"] { color: #107e18; }
.pd-sp-item[data-tone="views"] { color: #007e94; }
.pd-sp-item[data-tone="wish"] { color: #ef394e; }
.pd-sp-item[data-tone="cart"] { color: #e67e22; }
html[data-theme="light"] .pd-sp-item[data-tone="sales"] { color: #0a6b12; }
.pd-sp-ico { flex: 0 0 auto; font-size: 1rem; line-height: 1; }
@keyframes pdSpIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.pd-stock-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0 0 1.1rem;
}
.pd-stock-badge,
.pd-ship-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.pd-stock-badge.is-in {
  color: #107e18;
  background: rgba(16, 126, 24, .1);
  border-color: rgba(16, 126, 24, .25);
}
.pd-stock-badge.is-out {
  color: #b42318;
  background: rgba(180, 35, 24, .1);
  border-color: rgba(180, 35, 24, .25);
}
.pd-ship-badge {
  color: #0b6e99;
  background: rgba(11, 110, 153, .1);
  border-color: rgba(11, 110, 153, .22);
}

.pd-attr {
  margin-top: .85rem;
  padding: 0;
  border: 0;
  background: transparent;
}
.pd-attr-label {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .55rem;
  font-size: .92rem;
}
.pd-attr-hint { color: var(--muted); font-size: .8rem; }
.pd-variant-label { color: var(--muted); font-size: .88rem; min-height: 1.2em; margin: .45rem 0 0; }
.pd-select-hint {
  margin: .55rem 0 0;
  color: #c2410c;
  font-size: .86rem;
}
.pd-select-hint.is-hidden { display: none; }

.page-product .attr-options {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0;
}
.page-product .attr-options button {
  min-width: 3.1rem;
  min-height: 2.55rem;
  padding: .45rem .75rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: .9rem;
}
.page-product .attr-options button.active {
  border-color: var(--bronze, #c4a574);
  color: var(--bronze, #c4a574);
  box-shadow: inset 0 0 0 1px var(--bronze, #c4a574);
}
.page-product .attr-options button.is-color {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border-radius: 999px;
  padding: .4rem .7rem .4rem .45rem;
}
.page-product .attr-options .color-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(127,127,127,.35);
  display: inline-block;
  flex: 0 0 auto;
}
.pd-color-swatches button .pd-opt-label { font-size: .82rem; }

.pd-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.1rem 0 .9rem;
}
.pd-qty { display: inline-flex; align-items: center; gap: .35rem; }
.pd-qty .form-input { width: 64px; text-align: center; }
.pd-qty-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 1.2rem;
}
.pd-add-btn {
  width: 100%;
  min-height: 54px;
  font-size: 1.05rem;
  border-radius: 10px;
}
.pd-trust {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: .45rem;
}
.pd-trust li {
  position: relative;
  padding-right: 1.15rem;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
}
.pd-trust li::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 0;
  color: #107e18;
  font-weight: 700;
}

.pd-tabs-section { padding-top: 0; }
.pd-tabs {
  display: flex;
  gap: .25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.pd-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: .85rem 1.1rem;
  cursor: pointer;
  font-size: .95rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.pd-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--bronze, #c4a574);
  font-weight: 600;
}
.pd-tab-panel {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 12px 12px;
}
.pd-tab-panel[hidden] { display: none !important; }
.pd-desc-body { line-height: 1.9; color: var(--ink); }
.pd-desc-body p { margin: 0 0 .85rem; }
.pd-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.pd-specs-table th,
.pd-specs-table td {
  padding: .75rem .85rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: top;
}
.pd-specs-table th {
  width: 32%;
  color: var(--muted);
  font-weight: 600;
  background: rgba(127,127,127,.04);
}
.pd-related { padding-top: .4rem; }

.pd-sticky-bar {
  display: none;
  position: fixed;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 110;
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: var(--panel, #12141a);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .2);
  grid-template-columns: 1fr auto;
  gap: .8rem;
  align-items: center;
}
html[data-theme="light"] .pd-sticky-bar { background: #fff; }
.pd-sticky-price { font-weight: 700; }

@media (max-width: 900px) {
  .pd-layout.product-detail,
  .pd-layout-armo {
    grid-template-columns: 1fr !important;
    gap: .9rem;
  }
  .pd-gallery,
  .pd-info {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }
  .pd-main-thumb { aspect-ratio: 1 / 1.02; border-radius: 6px; }
  .pd-thumbs-rail .gallery-item { flex-basis: 58px; width: 58px; height: 58px; }
  .pd-cta-desktop { display: none; }
  .pd-sticky-bar { display: grid; }
  .page-product .main-content { padding-bottom: 5.5rem; }
  .pd-discount-tag { font-size: 1.05rem; padding: .5rem .65rem; }
  .pd-title { font-size: 1.28rem; }
  .pd-tabs { overflow-x: auto; }
}
@media (min-width: 901px) {
  .pd-sticky-bar { display: none !important; }
}

/* legacy thumbs-in (kept for JS setGallery fallback) */
.pd-thumbs-in {
  display: none;
}
.pd-buy-guide {
  margin: .7rem 0 0;
  padding: .65rem .75rem;
  border-radius: 10px;
  background: rgba(196, 165, 116, .12);
  border: 1px solid rgba(196, 165, 116, .28);
  color: var(--ink);
  font-size: .86rem;
  line-height: 1.7;
}
.pd-buy-guide strong { color: var(--bronze); }
.pd-color-rail { display: none; }


.seo-longform { padding-top: 0; }
.seo-longform-body { color: var(--muted); line-height: 1.95; font-size: .95rem; }
.seo-longform-body p { margin: 0 0 1rem; }

.article-hero { padding: 1.2rem 0 .4rem; }
.article-hero h1 { font-size: clamp(1.55rem, 4vw, 2.4rem); line-height: 1.35; margin: .2rem 0 .6rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; color: var(--muted); font-size: .88rem; }
.article-dek { font-size: 1.05rem; color: var(--muted); max-width: 42rem; }
.article-cover { margin: 1rem auto 1.4rem; }
.article-cover img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 8px; }
.article-layout { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 960px) {
  .article-layout:has(.article-toc) { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
  .article-layout .article-body { min-width: 0; max-width: 48rem; }
}
.article-toc {
  position: sticky; top: 5.5rem;
  border: 1px solid var(--line);
  padding: .9rem 1rem;
  background: var(--bg-elev, rgba(255,255,255,.03));
}
.article-toc ol { margin: .5rem 0 0; padding: 0 1rem 0 0; }
.article-toc a { color: var(--muted); }
.article-toc .toc-h3 { margin-right: .8rem; font-size: .9rem; }
.article-body { font-size: 1.05rem; line-height: 2; max-width: 46rem; }
.article-body h2 { font-size: 1.45rem; margin: 1.8rem 0 .7rem; }
.article-body h3 { font-size: 1.2rem; margin: 1.4rem 0 .5rem; }
.article-body h4 { font-size: 1.05rem; margin: 1.1rem 0 .4rem; }
.article-body p { margin: 0 0 1rem; }
.article-body img { max-width: 100%; height: auto; border-radius: 6px; }
.article-body figure { margin: 1.2rem 0; }
.article-body ul, .article-body ol { margin: 0 0 1rem; padding-right: 1.2rem; }
.article-body a { text-decoration: underline; }
.article-body blockquote {
  margin: 1rem 0;
  padding: .2rem 1rem;
  border-right: 3px solid var(--bronze, #c4a574);
  color: var(--muted);
}
.article-body table, .article-body .blog-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.6rem;
  font-size: .92rem;
  line-height: 1.7;
}
.article-body th, .article-body td {
  border: 1px solid var(--line);
  padding: .65rem .75rem;
  text-align: right;
  vertical-align: top;
}
.article-body th {
  background: rgba(196,165,116,.12);
  font-weight: 700;
}
.article-body tbody tr:nth-child(even) td { background: rgba(255,255,255,.03); }
.blog-mag-body h3 { margin: .2rem 0 .6rem; font-size: 1.1rem; line-height: 1.5; }



/* —— Home/product/article banner: 600px + animated transitions —— */
.kd-banner{position:relative;width:100%;height:600px;min-height:600px;max-height:600px;overflow:hidden;background:#0d0d0d}
.kd-banner-slide img{object-fit:cover;object-position:center center;max-width:none}
@media (max-width:768px){.kd-banner{height:280px;min-height:280px;max-height:280px}}


.consult-cta{padding:2.5rem 0}
.consult-cta-inner{display:flex;flex-wrap:wrap;gap:1.4rem;align-items:center;justify-content:space-between;padding:2rem 2.2rem;border-radius:22px;background:linear-gradient(135deg,rgba(229,57,53,.10),rgba(255,255,255,.04));border:1px solid rgba(229,57,53,.22);box-shadow:0 18px 40px -22px rgba(0,0,0,.35)}
.consult-cta-eyebrow{display:inline-block;font-size:.8rem;letter-spacing:.04em;color:#e53935;font-weight:700;margin-bottom:.35rem}
.consult-cta-text h2{margin:0 0 .4rem;font-size:1.5rem;line-height:1.5}
.consult-cta-text p{margin:0;opacity:.85;line-height:1.9}
.consult-cta-actions{display:flex;flex-wrap:wrap;gap:.7rem}
.consult-cta-btn{display:inline-flex;align-items:center;gap:.5rem;padding:.7rem 1.3rem;border-radius:999px;border:1px solid transparent;font:inherit;font-weight:700;cursor:pointer;text-decoration:none;transition:background .2s,color .2s,transform .2s}
.consult-cta-btn svg{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.consult-cta-btn:hover{transform:translateY(-2px)}
.consult-cta-btn--chat,.consult-cta-btn--contact{background:#e53935;color:#fff}
.consult-cta-btn--chat:hover,.consult-cta-btn--contact:hover{background:#b71c1c}
.consult-cta-btn--call{background:transparent;border-color:rgba(229,57,53,.55);color:#e53935}
.consult-cta-btn--call:hover{background:rgba(229,57,53,.1)}
html[data-theme="light"] .consult-cta-text h2,html[data-theme="light"] .consult-cta-text p{color:#0b2a4a}
html[data-theme="dark"] .consult-cta-text h2,html[data-theme="dark"] .consult-cta-text p{color:#fff}
@media (max-width:640px){.consult-cta-inner{padding:1.4rem 1.1rem}.consult-cta-actions{width:100%}.consult-cta-btn{flex:1 1 auto;justify-content:center}}

.trust-popup,.size-guide-modal{position:fixed;inset:0;z-index:13050;display:grid;place-items:center;padding:1rem}
.trust-popup[hidden],.size-guide-modal[hidden]{display:none!important}
.trust-popup-backdrop,.size-guide-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.62);backdrop-filter:none;-webkit-backdrop-filter:none}
.trust-popup-card,.size-guide-card{
  position:relative;z-index:1;width:min(520px,100%);max-height:90vh;overflow:auto;
  background:var(--surface-solid,#14161a);color:var(--ink);
  border:1px solid var(--line);border-radius:16px;padding:1.4rem 1.2rem;
  box-shadow:0 20px 60px rgba(0,0,0,.45);
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
.size-guide-card{width:min(720px,100%)}
html[data-theme="light"] .trust-popup-card,
html[data-theme="light"] .size-guide-card{background:#fff;color:#1a1a1a;border-color:#e6e0d6}
html:not([data-theme="light"]) .trust-popup-card,
html:not([data-theme="light"]) .size-guide-card,
html[data-theme="dark"] .trust-popup-card,
html[data-theme="dark"] .size-guide-card{
  background:#243044!important;
  color:#e8eef6!important;
  border-color:rgba(232,238,246,.12)!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
.trust-popup-x{position:absolute;top:.5rem;left:.5rem;border:0;background:transparent;font-size:1.4rem;cursor:pointer;color:inherit}
.trust-steps{padding-right:1.1rem;margin:1rem 0}
.kd-size-guide{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.8rem}

.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:0}
.theme-toggle .theme-icon{display:none}
html[data-theme="dark"] .theme-toggle .theme-icon-sun,
html:not([data-theme="light"]) .theme-toggle .theme-icon-sun{display:block}
html[data-theme="light"] .theme-toggle .theme-icon-moon{display:block}
html[data-theme="light"] .theme-toggle .theme-icon-sun{display:none}

.attr-options button.is-oos{position:relative;opacity:.55;text-decoration:line-through;color:#c45c5c}
.attr-options button.is-oos::after{content:"";position:absolute;inset:45% 8%;height:2px;background:#c45c5c;transform:rotate(-12deg)}
.kd-swatches button.is-oos .color-dot{box-shadow:inset 0 0 0 2px #c45c5c}

.product-card.is-oos{opacity:.85}
.oos-tag{position:absolute;top:.6rem;right:.6rem;z-index:2;background:#8b1e1e;color:#fff;font-size:.72rem;padding:.25rem .45rem;border-radius:6px}
.product-card{position:relative}
.oos-price{color:#c45c5c;font-weight:600}

.kd-gallery-main.has-zoom{overflow:hidden;cursor:zoom-in}
.kd-gallery-main.has-zoom img{transition:transform .12s ease-out;will-change:transform}


.size-chart-table th,.size-chart-table td{text-align:center;white-space:nowrap}
.captcha-q{margin:.2rem 0 .5rem;font-weight:600}


/* Theme toggle — sun (dark mode → switch to light) / moon (light → dark) */
.theme-toggle#themeToggle,
button.theme-toggle#themeToggle{
  width:40px!important;height:40px!important;min-width:40px;padding:0!important;
  font-size:0!important;line-height:0;color:var(--ink);
  display:inline-flex!important;align-items:center;justify-content:center;
  border:1px solid var(--line);background:var(--surface);cursor:pointer;border-radius:10px;
}
.theme-toggle#themeToggle .theme-icon{
  width:18px;height:18px;flex-shrink:0;display:none!important;
}
html[data-theme="light"] .theme-toggle#themeToggle .theme-icon-moon{display:block!important}
html:not([data-theme="light"]) .theme-toggle#themeToggle .theme-icon-sun{display:block!important}
.theme-toggle .theme-toggle-text{
  font-size:.85rem;line-height:1.2;margin-inline-start:.45rem;color:var(--ink);
}
.panel-side .theme-toggle#themeToggle{
  width:100%!important;height:auto!important;min-height:40px;padding:.55rem .75rem!important;
  font-size:inherit!important;line-height:1.2;justify-content:flex-start;gap:.35rem;
}
.panel-side .theme-toggle#themeToggle .theme-toggle-text{display:inline}


/* Blog cards inside the same product carousel */
.carousel-track .product-card.blog-card .thumb{aspect-ratio:16/10}
.blog-card-excerpt{margin:.35rem 0 0;color:var(--muted);font-size:.82rem;line-height:1.6}


/* Theme toggle CSS-only fallback */
.theme-toggle#themeToggle{position:relative}
.theme-toggle#themeToggle::before{
  content:"";
  width:18px;height:18px;display:block;
  background-color:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4' fill='black'/%3E%3Cg stroke='black' stroke-width='1.8' fill='none' stroke-linecap='round'%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4' fill='black'/%3E%3Cg stroke='black' stroke-width='1.8' fill='none' stroke-linecap='round'%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
}
html[data-theme="light"] .theme-toggle#themeToggle::before{
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M21 14.5A8.5 8.5 0 0110.5 3 7 7 0 1021 14.5z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M21 14.5A8.5 8.5 0 0110.5 3 7 7 0 1021 14.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.theme-toggle#themeToggle:has(.theme-icon)::before{display:none}


/* —— UX fixes 2026-09-18 —— */
/* Theme: only one icon visible; hide CSS fallback when SVGs exist */
.theme-toggle .theme-icon-moon{display:none!important}
.theme-toggle .theme-icon-sun{display:none!important}
html:not([data-theme="light"]) .theme-toggle .theme-icon-sun{display:block!important}
html[data-theme="light"] .theme-toggle .theme-icon-moon{display:block!important}
html[data-theme="light"] .theme-toggle .theme-icon-sun{display:none!important}
.theme-toggle#themeToggle:has(.theme-icon)::before{display:none!important;content:none!important}

/* Carousel: prevent vertical scroll steal on mobile */
.product-carousel,
.product-carousel .carousel-track,
[data-carousel],
[data-carousel] .carousel-track{
  touch-action: manipulation !important;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
}
.carousel-track{
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
}

/* Support FAB higher on mobile so it clears browser chrome / sticky bars */
.chat-fab-wrap:not(.is-dragged){left:1rem;bottom:1.4rem;z-index:130}
@media (max-width:768px){
  .chat-fab-wrap:not(.is-dragged){left:.85rem;bottom:calc(5.2rem + env(safe-area-inset-bottom,0px))}
  .chat-fab{width:52px;height:52px}
}

/* Footer logo always visible */
.footer-brand .brand{display:inline-flex;align-items:center;margin-bottom:.5rem}
.footer-brand .brand-logo{display:block;height:52px;width:auto;max-width:160px}
html[data-theme="light"] .footer-brand .brand-logo-dark{display:none}
html[data-theme="light"] .footer-brand .brand-logo-light{display:block}
html:not([data-theme="light"]) .footer-brand .brand-logo-dark{display:block}
html:not([data-theme="light"]) .footer-brand .brand-logo-light{display:none}

/* —— UX fix4 —— */
button.theme-toggle#themeToggle .theme-icon{display:none!important;width:18px;height:18px}
button.theme-toggle#themeToggle .theme-icon-sun,
button.theme-toggle#themeToggle .theme-icon-moon{position:absolute;inset:0;margin:auto}
html:not([data-theme="light"]) button.theme-toggle#themeToggle .theme-icon-sun{display:block!important}
html[data-theme="light"] button.theme-toggle#themeToggle .theme-icon-moon{display:block!important}
html[data-theme="light"] button.theme-toggle#themeToggle .theme-icon-sun{display:none!important}
html:not([data-theme="light"]) button.theme-toggle#themeToggle .theme-icon-moon{display:none!important}
button.theme-toggle#themeToggle::before,
button.theme-toggle#themeToggle::after{display:none!important;content:none!important}

.product-carousel,
.article-carousel,
[data-carousel]{touch-action:manipulation;overscroll-behavior-y:auto}
.product-carousel .carousel-track,
.article-carousel .carousel-track,
[data-carousel] .carousel-track{
  display:flex;gap:1rem;overflow-x:auto;overflow-y:hidden;
  touch-action:manipulation!important;overscroll-behavior-x:contain;overscroll-behavior-y:auto;
  -webkit-overflow-scrolling:touch;scroll-snap-type:x mandatory;
  scrollbar-width:none
}
.product-carousel .carousel-track::-webkit-scrollbar,
[data-carousel] .carousel-track::-webkit-scrollbar{display:none}

.chat-fab-wrap{z-index:140}
@media (max-width:768px){
  .chat-fab-wrap:not(.is-dragged){bottom:calc(5.8rem + env(safe-area-inset-bottom,0px))!important;left:.9rem!important;right:auto;top:auto}
}

.footer-brand .brand-logo{display:block!important;height:52px;width:auto;max-width:160px;object-fit:contain}
html[data-theme="light"] .footer-brand .brand-logo-dark{display:none!important}
html[data-theme="light"] .footer-brand .brand-logo-light{display:block!important}
html:not([data-theme="light"]) .footer-brand .brand-logo-dark{display:block!important}
html:not([data-theme="light"]) .footer-brand .brand-logo-light{display:none!important}

.kd-banner{display:block!important;visibility:visible!important}

/* —— UX fix5 —— */
.footer-logo-gold,.footer-brand .footer-logo-gold,.footer-brand img.footer-logo-gold{
  display:block!important;height:276px!important;width:auto!important;max-width:min(92vw,720px)!important;
  object-fit:contain;filter:none!important;opacity:1!important;mix-blend-mode:normal!important;
}
.footer-brand .brand-logo-dark,.footer-brand .brand-logo-light{display:none!important}
html[data-theme="light"] .footer-brand .footer-logo-gold,
html:not([data-theme="light"]) .footer-brand .footer-logo-gold{display:block!important}

/* Carousel — native horizontal swipe, independent of page scroll */
.product-carousel,
.article-carousel,
[data-carousel]{
  touch-action:manipulation;
  overscroll-behavior-y:auto;
}
.product-carousel .carousel-track,
.article-carousel .carousel-track,
[data-carousel] .carousel-track{
  display:flex;gap:1rem;
  overflow-x:auto;overflow-y:hidden;
  touch-action:manipulation!important;
  overscroll-behavior-x:contain;
  overscroll-behavior-y:auto;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  cursor:grab;
}
.product-carousel .carousel-track:active,
[data-carousel] .carousel-track:active{cursor:grabbing}
.product-carousel .carousel-track > *,
[data-carousel] .carousel-track > *{scroll-snap-align:start;flex:0 0 auto}

/* Checkout searchable geo combobox */
.kd-combo{position:relative}
.kd-combo-input{
  width:100%;min-height:50px;padding:.75rem 1rem;border-radius:14px;border:1px solid var(--line);
  background:var(--bg-elev);color:var(--ink);font:inherit;font-size:16px;
  box-shadow:0 5px 16px rgba(0,0,0,.08);
  transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease;
}
.kd-combo-input:focus{
  border-color:var(--bronze);
  outline:none;
  box-shadow:0 0 0 4px rgba(91,159,212,.2),0 8px 22px rgba(0,0,0,.12);
}
.kd-combo-input:disabled{
  cursor:not-allowed;
  opacity:.75;
  box-shadow:none;
}
html[data-theme="light"] .kd-combo-input{
  background:#fff;
  color:#1a2838;
  box-shadow:0 5px 16px rgba(40,70,110,.07);
}
.kd-combo-list{
  position:absolute;z-index:40;inset-inline:0;top:calc(100% + 4px);
  max-height:220px;overflow:auto;margin:0;padding:.35rem;list-style:none;
  border:1px solid var(--line);border-radius:14px;background:var(--bg-elev);color:var(--ink);
  box-shadow:0 16px 38px rgba(0,0,0,.24)
}
html[data-theme="light"] .kd-combo-list{
  background:#fff;color:#1a2838;box-shadow:0 16px 38px rgba(40,70,110,.16)
}
.kd-combo-list[hidden]{display:none!important}
.kd-combo-list li{
  padding:.65rem .8rem;border-radius:10px;cursor:pointer;
  transition:background-color .15s ease,color .15s ease,transform .15s ease
}
.kd-combo-list li:hover,.kd-combo-list li.is-active{background:rgba(91,159,212,.2);color:var(--ink);transform:translateX(-2px)}
html[data-theme="light"] .kd-combo-list li:hover,
html[data-theme="light"] .kd-combo-list li.is-active{background:rgba(61,127,184,.12);color:#1a2838}
.kd-combo-list li.is-muted{opacity:.55;cursor:default}

/* Search button — theme aware & premium */
.header-actions #searchToggle.icon-btn,
.header-search .icon-btn#searchToggle{
  width:44px;height:44px;border-radius:12px;
  border:1px solid var(--line);
  background:linear-gradient(145deg,rgba(196,165,116,.18),rgba(196,165,116,.05));
  color:var(--ink);
  box-shadow:0 4px 14px rgba(0,0,0,.12);
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.header-actions #searchToggle.icon-btn:hover{
  transform:translateY(-2px) scale(1.04);
  box-shadow:0 8px 22px rgba(196,165,116,.28);
  border-color:rgba(196,165,116,.55);
}
html[data-theme="light"] .header-actions #searchToggle.icon-btn{
  background:linear-gradient(145deg,#fff8ef,#f3e6d2);
  color:#3a2f22;border-color:#e2d3bc;
}
html:not([data-theme="light"]) .header-actions #searchToggle.icon-btn{
  background:linear-gradient(145deg,rgba(201,162,39,.22),rgba(20,20,22,.9));
  color:#f0e6d2;border-color:rgba(201,162,39,.35);
}

/* Carousel: horizontal only — page scroll independent */
.product-carousel,
.article-carousel,
[data-carousel],
.product-carousel .carousel-track,
[data-carousel] .carousel-track{
  touch-action:manipulation !important;
  overscroll-behavior-y:auto;
}

/* OOS badge animation */
.oos-badge{
  position:absolute;top:.65rem;right:.65rem;z-index:3;
  display:inline-flex;align-items:center;gap:.35rem;
  background:linear-gradient(135deg,#8b1e1e,#c43c3c);
  color:#fff;font-size:.72rem;font-weight:700;letter-spacing:.02em;
  padding:.35rem .55rem;border-radius:999px;
  box-shadow:0 6px 18px rgba(139,30,30,.45);
  animation:oosPulse 1.8s ease-in-out infinite;
}
.oos-badge-pulse{
  width:8px;height:8px;border-radius:50%;background:#fff;
  box-shadow:0 0 0 0 rgba(255,255,255,.7);
  animation:oosDot 1.8s ease-out infinite;
}
@keyframes oosPulse{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.06)}
}
@keyframes oosDot{
  0%{box-shadow:0 0 0 0 rgba(255,255,255,.65)}
  70%{box-shadow:0 0 0 10px rgba(255,255,255,0)}
  100%{box-shadow:0 0 0 0 rgba(255,255,255,0)}
}
.product-card.is-oos{opacity:.92}
.product-card.is-oos .thumb img{filter:grayscale(.35) brightness(.92)}

/* Chat FAB ~50px higher (skip when user-dragged) */
.chat-fab-wrap:not(.is-dragged){bottom:calc(2.4rem + 50px)!important}
@media (max-width:768px){
  .chat-fab-wrap:not(.is-dragged){bottom:calc(5.8rem + env(safe-area-inset-bottom,0px) + 50px)!important}
}

/* ========== FINAL CAROUSEL (uxfix8) ========== */
/* Kill legacy conflicting carousel rules */
.product-carousel,
.article-carousel,
[data-carousel]:not(.kd-carousel),
.product-carousel .carousel-track,
[data-carousel]:not(.kd-carousel) .carousel-track{
  /* legacy kept for safety but new markup uses .kd-carousel */
}

.kd-carousel{
  position:relative;
  display:block;
  width:100%;
  margin:0;
  padding:0 .15rem;
  isolation:isolate;
}
.kd-carousel__viewport{
  width:100%;
  overflow:hidden;
  border-radius:4px;
}
.kd-carousel__track{
  direction:rtl !important;
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:stretch;
  gap:1rem !important;
  width:100%;
  margin:0;
  padding:.35rem .15rem 1.1rem !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  scroll-snap-type:x mandatory !important;
  scroll-behavior:auto;
  -webkit-overflow-scrolling:touch;
  touch-action:manipulation !important;
  overscroll-behavior-x:contain;
  overscroll-behavior-y:auto;
  scrollbar-width:none;
  cursor:grab;
}
.kd-carousel__track::-webkit-scrollbar{display:none !important;width:0;height:0}
.kd-carousel__track:active{cursor:grabbing}

/* Fixed card size — this was the main layout break */
.kd-carousel__track > .product-card{
  flex:0 0 auto !important;
  flex-grow:0 !important;
  flex-shrink:0 !important;
  width:min(240px, 72vw) !important;
  max-width:240px !important;
  min-width:160px !important;
  scroll-snap-align:start !important;
  scroll-snap-stop:normal;
  box-sizing:border-box !important;
}
.kd-carousel__track > .product-card.blog-card{
  width:min(280px, 78vw) !important;
  max-width:280px !important;
}
.kd-carousel__track > .product-card.blog-card .thumb{aspect-ratio:16/10}

.kd-carousel__btn{
  position:absolute;
  top:42%;
  transform:translateY(-50%);
  z-index:5;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.55);
  background:linear-gradient(145deg, #e7c363, #c9a227 58%, #a77b19);
  color:#17140c;
  display:grid;
  place-items:center;
  cursor:pointer;
  box-shadow:0 5px 16px rgba(0,0,0,.24), 0 0 0 3px rgba(201,162,39,.14);
  transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  padding:0;
}
.kd-carousel__btn:hover{
  transform:translateY(-50%) scale(1.08);
  box-shadow:0 8px 20px rgba(0,0,0,.3), 0 0 0 4px rgba(201,162,39,.22);
}
.kd-carousel__btn:active{transform:translateY(-50%) scale(.98)}
.kd-carousel__btn:focus-visible{
  outline:2px solid var(--ink);
  outline-offset:3px;
}
.kd-carousel__btn--prev{inset-inline-start:1.6rem}
.kd-carousel__btn--next{inset-inline-end:1.6rem}

@media (max-width:800px){
  .kd-carousel{padding:0}
  .kd-carousel__btn{display:none !important} /* swipe on mobile */
  .kd-carousel__track{
    padding-inline:0 !important;
    gap:.85rem !important;
  }
  .kd-carousel__track > .product-card{
    width:min(200px, 68vw) !important;
    max-width:200px !important;
  }
  .kd-carousel__track > .product-card.blog-card{
    width:min(230px, 74vw) !important;
    max-width:230px !important;
  }
}

/* ========== UX batch 2026-09-19 ========== */
/* Carousel: allow BOTH page scroll (Y) and swipe (X) — never pan-x alone */
.kd-carousel,
.kd-carousel__viewport,
.kd-carousel__track,
.product-carousel,
.product-carousel .carousel-track,
[data-carousel],
[data-carousel] .carousel-track{
  touch-action: manipulation !important;
  overscroll-behavior-y: auto !important;
  overscroll-behavior-x: contain;
}

/* Category carousel slides */
.kd-carousel--cats .kd-carousel__track > .cat-card,
.kd-carousel__track > .cat-card{
  flex:0 0 auto !important;
  width:min(220px, 70vw) !important;
  max-width:220px !important;
  min-width:160px !important;
  scroll-snap-align:start !important;
  display:block;
  text-decoration:none;
}
@media (max-width:800px){
  .kd-carousel--cats .kd-carousel__track > .cat-card{
    width:min(180px, 62vw) !important;
    max-width:180px !important;
  }
}

/* Article desktop: only 2-col when TOC exists */
.article-layout{
  display:grid !important;
  gap:1.4rem !important;
  grid-template-columns:1fr !important;
}
@media (min-width:900px){
  .article-layout:has(.article-toc){
    grid-template-columns:220px minmax(0,1fr) !important;
  }
  .article-body{
    max-width:46rem !important;
    width:100% !important;
    min-width:0 !important;
  }
  .article-layout:not(:has(.article-toc)) .article-body{
    max-width:48rem !important;
    margin-inline:auto;
  }
}

/* PDP hover zoom lens */
.kd-gallery-main,
#pdMainWrap{
  position:relative;
}
.kd-zoom-lens{
  position:absolute;
  z-index:6;
  pointer-events:none;
  border:2px solid rgba(201,162,39,.85);
  border-radius:50%;
  box-shadow:0 8px 28px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.25);
  background-repeat:no-repeat;
  opacity:0;
  transform:scale(.92);
  transition:opacity .12s ease, transform .12s ease;
  display:none;
}
.kd-zoom-lens.is-on{
  display:block;
  opacity:1;
  transform:scale(1);
}
.kd-gallery-main.has-zoom,
#pdMainWrap.has-zoom{
  overflow:hidden;
  cursor:crosshair;
}
.kd-gallery-main.is-zooming img,
#pdMainWrap.is-zooming img{
  transition:transform .08s linear;
}

/* Premium header search */
.header-search{
  position:relative;
  z-index:80;
}
.header-actions #searchToggle.icon-btn{
  width:46px;height:46px;border-radius:14px;
  border:1px solid rgba(196,165,116,.35);
  background:linear-gradient(145deg,rgba(201,162,39,.2),rgba(20,20,22,.75));
  box-shadow:0 6px 18px rgba(0,0,0,.18);
}
html[data-theme="light"] .header-actions #searchToggle.icon-btn{
  background:linear-gradient(145deg,#fff8ef,#f0e2cc);
  color:#3a2f22;border-color:#e0d0b6;
}
.header-search .search-panel{
  position:absolute;
  top:calc(100% + 10px);
  inset-inline-end:0;
  width:min(420px,92vw);
  padding:1rem;
  border-radius:18px;
  border:1px solid var(--line);
  background:var(--bg-elev, #14161c);
  box-shadow:0 24px 60px rgba(0,0,0,.35);
  backdrop-filter:blur(16px);
}
html[data-theme="light"] .header-search .search-panel{
  background:#fffef9;
  box-shadow:0 20px 50px rgba(60,40,10,.14);
}
.header-search .search-panel .form-input,
#globalSearchInput{
  width:100%;
  border-radius:12px !important;
  padding:.85rem 1rem !important;
  font-size:1rem !important;
  border:1px solid rgba(196,165,116,.35) !important;
  background:rgba(255,255,255,.04) !important;
}
html[data-theme="light"] #globalSearchInput{
  background:#fff !important;
  color:#1c1915 !important;
}
.search-results{
  margin-top:.75rem;
  max-height:min(60vh,420px);
  overflow:auto;
}
.search-group{margin-bottom:.85rem}
.search-group > strong{
  display:block;font-size:.75rem;letter-spacing:.04em;
  color:var(--muted);margin-bottom:.4rem;text-transform:uppercase
}
.search-group a{
  display:flex;gap:.75rem;align-items:center;
  padding:.55rem .6rem;border-radius:12px;text-decoration:none;color:inherit
}
.search-group a:hover{background:rgba(196,165,116,.12)}
.search-group a img{
  width:44px;height:44px;object-fit:cover;border-radius:8px;flex:0 0 auto
}
.search-group a b{display:block;font-size:.92rem}
.search-group a small{color:var(--muted);font-size:.8rem}
body.search-open .search-panel{animation:kdSearchIn .22s ease}
@keyframes kdSearchIn{
  from{opacity:0;transform:translateY(8px) scale(.98)}
  to{opacity:1;transform:none}
}


/* ===== UX 2026-09-19 batch2 ===== */
.mega-panel-inner--links{
  display:flex;flex-direction:column;gap:.15rem;padding:.75rem 1rem;min-width:200px;
}
.mega-panel-inner--links a{
  padding:.55rem .4rem;border-radius:8px;color:inherit;text-decoration:none;
}
.mega-panel-inner--links a:hover{background:rgba(196,165,116,.12)}

.kd-search__panel{
  position:absolute;top:calc(100% + .55rem);left:50%;transform:translateX(-50%);
  width:min(440px,92vw);z-index:200;
}
.kd-search__shell{
  border-radius:18px;padding:.85rem;
  background:linear-gradient(165deg,rgba(28,30,36,.98),rgba(16,17,20,.98));
  border:1px solid rgba(196,165,116,.35);
  box-shadow:0 24px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter:blur(16px);
}
html[data-theme="light"] .kd-search__shell{
  background:linear-gradient(165deg,#fff,#f7f5f0);
  box-shadow:0 20px 50px rgba(20,16,10,.14);
}
.kd-search__field{position:relative;display:flex;align-items:center}
.kd-search__icon{position:absolute;right:.9rem;opacity:.55;pointer-events:none}
.kd-search__input{
  width:100%;padding:.95rem 2.6rem .95rem 2.4rem !important;
  border-radius:12px !important;border:1px solid rgba(196,165,116,.28) !important;
  background:rgba(255,255,255,.04) !important;font-size:1rem !important;
}
.kd-search__hint{
  position:absolute;left:.75rem;font-size:.72rem;opacity:.45;
  border:1px solid rgba(255,255,255,.2);border-radius:6px;padding:.1rem .35rem;
}
.kd-search__meta{
  display:flex;justify-content:space-between;align-items:center;
  margin:.55rem .15rem .35rem;font-size:.78rem;color:var(--muted);
}
.kd-search__close{
  border:0;background:transparent;color:var(--bronze,#c4a574);cursor:pointer;font:inherit;
}
.kd-search__results .search-group{margin-top:.65rem}
.kd-search__results .search-group strong{
  display:block;font-size:.72rem;letter-spacing:.04em;opacity:.7;margin-bottom:.35rem;
}
.kd-search__results a{
  display:flex;gap:.75rem;align-items:center;padding:.55rem .45rem;border-radius:10px;
  text-decoration:none;color:inherit;
}
.kd-search__results a:hover{background:rgba(196,165,116,.12)}
.kd-search__results img{width:42px;height:42px;object-fit:cover;border-radius:8px}
@media (max-width:720px){
  .kd-search__panel{
    position:fixed;inset:0;transform:none;width:100%;left:0;top:0;
    background:rgba(0,0,0,.55);display:grid;place-items:start center;padding:12vh 1rem 1rem;
  }
  .kd-search__panel[hidden]{display:none !important}
  .kd-search__shell{width:min(520px,100%)}
}

/* Panel mobile unlock */
.panel-nav-overlay[hidden]{display:none !important;pointer-events:none !important}
.panel-body.panel-nav-open{overscroll-behavior:none}
@media (max-width:900px){
  .panel-side{pointer-events:auto}
  .panel-shell,.panel-main{max-width:100vw;overflow-x:hidden}
  .panel-stats{grid-template-columns:1fr 1fr !important}
  .table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
}

/* Force article body readable (desktop + mobile) */
.page-article .article-layout{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:1.4rem !important;
}
@media (min-width:900px){
  .page-article .article-layout:has(> .article-toc){
    grid-template-columns:220px minmax(0,1fr) !important;
  }
}
.page-article .article-body,
.article-body{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  width:100% !important;
  max-width:48rem !important;
  min-width:0 !important;
  color:var(--ink) !important;
  font-size:1.05rem !important;
  line-height:2 !important;
  letter-spacing:normal !important;
  word-spacing:normal !important;
}
.page-article .article-body p,
.page-article .article-body li,
.page-article .article-body h2,
.page-article .article-body h3{
  color:inherit !important;
  letter-spacing:normal !important;
}

/* PDP zoom harden */
#pdMainWrap.has-zoom img#mainProductImage,
.kd-gallery-main.has-zoom img{
  transition:transform .08s ease-out;
  will-change:transform;
}
.kd-zoom-lens.is-on{display:block !important;opacity:1 !important;visibility:visible !important}



/* PANEL THEME ISOLATION — panel.css owns colors; kill storefront clashes */
.panel-body .panel-side{
  background:#1d2327 !important;
  border-color:transparent !important;
  color:#fff !important;
}
.panel-body .panel-side a{
  color:#c3c4c7 !important;
  background:transparent !important;
}
.panel-body .panel-side a:hover{
  background:#2c3338 !important;
  color:#fff !important;
}
.panel-body .panel-side a.active{
  background:#2271b1 !important;
  color:#fff !important;
}
html[data-theme="light"] .panel-body .panel-side,
html[data-theme="dark"] .panel-body .panel-side,
html:not([data-theme="light"]) .panel-body .panel-side,
html[data-theme="light"] body.panel-body .panel-side,
html[data-theme="light"] .panel-shell .panel-side{
  background:#1d2327 !important;
  color:#fff !important;
}
html[data-theme="light"] .panel-body .panel-side a,
html[data-theme="dark"] .panel-body .panel-side a{
  color:#c3c4c7 !important;
}
html[data-theme="light"] .panel-body .panel-side a.active,
html[data-theme="dark"] .panel-body .panel-side a.active{
  background:#2271b1 !important;
  color:#fff !important;
}
html[data-theme="light"] .panel-body .wp-menu-label,
html[data-theme="dark"] .panel-body .wp-menu-label{
  color:rgba(255,255,255,.45) !important;
}
html[data-theme="light"] .panel-body .panel-side-head,
html[data-theme="light"] .panel-body .panel-side-head strong,
html[data-theme="dark"] .panel-body .panel-side-head,
html[data-theme="dark"] .panel-body .panel-side-head strong{
  color:#fff !important;
}
html[data-theme="light"] .panel-body .panel-side .theme-toggle,
html[data-theme="dark"] .panel-body .panel-side .theme-toggle{
  color:#fff !important;
  border-color:rgba(255,255,255,.22)!important;
  background:rgba(255,255,255,.08)!important;
}

html[data-theme="light"] .panel-body{
  background:#f0f0f1 !important;
  color:#1d2327 !important;
}
html[data-theme="dark"] .panel-body,
html:not([data-theme="light"]) .panel-body{
  background:#14161a !important;
  color:#f2eee6 !important;
}
html[data-theme="light"] .panel-body .panel-main{background:#f0f0f1 !important;color:#1d2327 !important}
html[data-theme="dark"] .panel-body .panel-main,
html:not([data-theme="light"]) .panel-body .panel-main{background:#14161a !important;color:#f2eee6 !important}

html[data-theme="light"] .panel-body .surface,
html[data-theme="light"] .panel-body .stat-card,
html[data-theme="light"] .panel-body .wp-box,
html[data-theme="light"] .panel-body .ship-card,
html[data-theme="light"] .panel-body .inventory-card{
  background:#fff !important; color:#1d2327 !important; border-color:#c3c4c7 !important;
}
html[data-theme="dark"] .panel-body .surface,
html[data-theme="dark"] .panel-body .stat-card,
html[data-theme="dark"] .panel-body .wp-box,
html[data-theme="dark"] .panel-body .ship-card,
html[data-theme="dark"] .panel-body .inventory-card,
html:not([data-theme="light"]) .panel-body .surface,
html:not([data-theme="light"]) .panel-body .stat-card,
html:not([data-theme="light"]) .panel-body .wp-box,
html:not([data-theme="light"]) .panel-body .ship-card,
html:not([data-theme="light"]) .panel-body .inventory-card{
  background:#1c1f25 !important; color:#f2eee6 !important; border-color:#2f343c !important;
}
.panel-body a.ship-card{color:inherit !important; text-decoration:none !important}

html[data-theme="light"] .panel-body .form-input,
html[data-theme="light"] .panel-body textarea.form-input,
html[data-theme="light"] .panel-body select.form-input{
  background:#fff !important; color:#1d2327 !important; border-color:#c3c4c7 !important;
}
html[data-theme="dark"] .panel-body .form-input,
html[data-theme="dark"] .panel-body textarea.form-input,
html[data-theme="dark"] .panel-body select.form-input,
html:not([data-theme="light"]) .panel-body .form-input,
html:not([data-theme="light"]) .panel-body textarea.form-input,
html:not([data-theme="light"]) .panel-body select.form-input{
  background:#252830 !important; color:#f2eee6 !important; border-color:#2f343c !important;
}
html[data-theme="light"] .panel-body .table th{background:#f6f7f7 !important; color:#1d2327 !important}
html[data-theme="dark"] .panel-body .table th,
html:not([data-theme="light"]) .panel-body .table th{background:#22262e !important; color:#f2eee6 !important}
html[data-theme="light"] .panel-body .table td{color:#1d2327 !important; border-color:#c3c4c7 !important}
html[data-theme="dark"] .panel-body .table td,
html:not([data-theme="light"]) .panel-body .table td{color:#f2eee6 !important; border-color:#2f343c !important}

.panel-body .wp-box-title{
  background:#f6f7f7 !important;
  color:#1d2327 !important;
  border-color:#c3c4c7 !important;
}
html[data-theme="dark"] .panel-body .wp-box-title,
html:not([data-theme="light"]) .panel-body .wp-box-title{
  background:#22262e !important;
  color:#f2eee6 !important;
  border-color:#2f343c !important;
}

.panel-body .btn-primary,
.panel-body button.btn-primary,
.panel-body a.btn-primary{
  background-color:#c9a227 !important;
  background-image:linear-gradient(135deg,#d4b45a,#b8912e) !important;
  color:#12100c !important;
}
.panel-body .btn-ghost,
.panel-body a.btn-ghost,
.panel-body button.btn-ghost{
  background:#fff !important;
  color:#1d2327 !important;
  border:1px solid #c3c4c7 !important;
}
html[data-theme="dark"] .panel-body .btn-ghost,
html:not([data-theme="light"]) .panel-body .btn-ghost{
  background:#1c1f25 !important;
  color:#f2eee6 !important;
  border:1px solid #3a3f48 !important;
}

html[data-theme="light"] .panel-body .panel-main a:not(.btn):not(.btn-primary):not(.btn-ghost){color:#6b4f1d !important}
html[data-theme="dark"] .panel-body .panel-main a:not(.btn):not(.btn-primary):not(.btn-ghost),
html:not([data-theme="light"]) .panel-body .panel-main a:not(.btn):not(.btn-primary):not(.btn-ghost){color:#e2c87a !important}

html[data-theme="light"] .panel-body label,
html[data-theme="light"] .panel-body .form-group label{color:#50575e !important}
html[data-theme="dark"] .panel-body label,
html:not([data-theme="light"]) .panel-body label{color:#a39b8c !important}

html[data-theme="light"] .panel-body .muted{color:#50575e !important}
html[data-theme="dark"] .panel-body .muted,
html:not([data-theme="light"]) .panel-body .muted{color:#a39b8c !important}

html[data-theme="light"] .panel-body h1,
html[data-theme="light"] .panel-body h2,
html[data-theme="light"] .panel-body h3{color:#1d2327 !important}
html[data-theme="dark"] .panel-body h1,
html[data-theme="dark"] .panel-body h2,
html[data-theme="dark"] .panel-body h3,
html:not([data-theme="light"]) .panel-body h1,
html:not([data-theme="light"]) .panel-body h2,
html:not([data-theme="light"]) .panel-body h3{color:#f2eee6 !important}

.panel-body .inventory-thumb{background:#eee !important}
html[data-theme="dark"] .panel-body .inventory-thumb{background:#2a2d33 !important}
.panel-body .fx-chart-wrap{background:#0b0e11 !important; color:#eee !important}
.panel-body .status-pill{
  background:#f0f6fc !important; color:#0a4b78 !important; border-color:#c5d9ed !important;
}
.panel-body .order-status-pill--awaiting_payment{
  background:#fff4d6 !important; color:#805500 !important; border-color:#f0d38a !important;
}
.panel-body .order-status-pill--paid{
  background:#e8f6ed !important; color:#176b3a !important; border-color:#a9d9b8 !important;
}
.panel-body .order-status-pill--processing{
  background:#fff0dc !important; color:#9a4d00 !important; border-color:#f2c58f !important;
}
.panel-body .order-status-pill--shipped{
  background:#e8f1ff !important; color:#1d4ed8 !important; border-color:#b7d0f7 !important;
}
.panel-body .order-status-pill--cancelled,
.panel-body .order-status-pill--refunded{
  background:#fdebed !important; color:#a1242c !important; border-color:#edb7bc !important;
}
.panel-body .order-status-select--awaiting_payment{
  background:#fff4d6 !important; color:#805500 !important; border-color:#f0d38a !important;
}
.panel-body .order-status-select--paid{
  background:#e8f6ed !important; color:#176b3a !important; border-color:#a9d9b8 !important;
}
.panel-body .order-status-select--processing{
  background:#fff0dc !important; color:#9a4d00 !important; border-color:#f2c58f !important;
}
.panel-body .order-status-select--shipped{
  background:#e8f1ff !important; color:#1d4ed8 !important; border-color:#b7d0f7 !important;
}
.panel-body .order-status-select--cancelled,
.panel-body .order-status-select--refunded{
  background:#fdebed !important; color:#a1242c !important; border-color:#edb7bc !important;
}
html[data-theme="dark"] .panel-body .status-pill,
html:not([data-theme="light"]) .panel-body .status-pill{
  background:#2a2d33 !important; color:#f0e6d2 !important; border-color:#3c434a !important;
}

/* Currency chart is always dark */
.panel-body .fx-chart-wrap,
.panel-body .fx-chart-wrap a{color:#e8dcc4 !important}
html[data-theme="light"] .panel-body .fx-chart-wrap a{color:#e8dcc4 !important}

/* ===== Header mega + برگه‌ها (2026-09-20) ===== */
.nav-mega-trigger--btn{
  appearance:none;border:0;background:transparent;cursor:pointer;
  font:inherit;color:inherit;padding:0;display:inline-flex;align-items:center;gap:.25rem;
}
.nav-mega-trigger--btn:hover{color:var(--ink)}
.mega-caret{display:inline-block;transition:transform .25s ease;font-size:.7em;opacity:.7}
.nav-mega-wrap.is-open .mega-caret,
.nav-mega-wrap:hover .mega-caret,
.nav-mega-wrap:focus-within .mega-caret{transform:rotate(180deg)}
.mega-panel-bridge{height:14px;margin-top:-2px}

.nav-mega-wrap--pages .mega-panel{
  right:auto;left:50%;transform:translate(-50%,10px) scale(.98);
  min-width:min(560px,92vw);
}
.nav-mega-wrap--pages.is-open .mega-panel,
.nav-mega-wrap--pages:hover .mega-panel,
.nav-mega-wrap--pages:focus-within .mega-panel{
  transform:translate(-50%,0);
}
.mega-panel-inner--pages{
  display:flex;flex-direction:column;gap:.85rem;
  padding:1rem 1.05rem 1.1rem;
  background:linear-gradient(165deg,rgba(22,24,30,.98),rgba(12,13,16,.98));
  border:1px solid rgba(196,165,116,.28);
  box-shadow:0 28px 70px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.05);
}
html[data-theme="light"] .mega-panel-inner--pages,
html[data-theme="light"] .mega-panel-inner{
  background:linear-gradient(165deg,#fff,#f7f5f0);
  box-shadow:0 22px 55px rgba(20,16,10,.14);
  border-color:rgba(40,30,20,.1);
}
.mega-panel-count{font-size:.78rem;color:var(--muted);font-weight:500}
.mega-pages-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem;
}
.mega-page-card{
  display:flex;align-items:flex-start;gap:.7rem;
  padding:.7rem .75rem;border-radius:12px;color:inherit;text-decoration:none;
  border:1px solid transparent;
  transition:background .22s,border-color .22s,transform .28s;
  animation:megaCard .4s cubic-bezier(.2,.8,.2,1) both;
  animation-delay:calc(var(--i,0)*35ms);
}
.mega-page-card:hover{
  background:rgba(196,165,116,.1);
  border-color:rgba(196,165,116,.28);
  transform:translateY(-2px);
}
.mega-page-ico{
  flex:0 0 2.1rem;width:2.1rem;height:2.1rem;border-radius:10px;
  display:grid;place-items:center;
  font-weight:800;font-size:.95rem;
  background:linear-gradient(145deg,rgba(196,165,116,.35),rgba(196,165,116,.12));
  color:var(--sand,#c4a574);
}
html[data-theme="light"] .mega-page-ico{color:#8a6a3a}
.mega-page-text{min-width:0;display:flex;flex-direction:column;gap:.2rem}
.mega-page-text strong{font-size:.92rem;line-height:1.35;font-weight:700}
.mega-page-text em{
  font-style:normal;font-size:.78rem;line-height:1.5;color:var(--muted);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}

.mega-panel-inner > .mega-panel-head{grid-column:1/-1}
.mega-panel-inner > .mega-panel-grid{display:contents}
.mega-panel-inner:has(> .mega-panel-grid){
  display:flex;flex-direction:column;gap:.75rem;
}
.mega-panel-inner:has(> .mega-panel-grid) > .mega-panel-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.8rem;
}

.mobile-nav-group{margin:.15rem 0}
.mobile-nav-group__btn{
  width:100%;appearance:none;border:0;background:transparent;
  display:flex;justify-content:space-between;align-items:center;
  padding:.85rem 0;font:inherit;color:inherit;cursor:pointer;text-align:right;
}
.mobile-nav-group__btn span{transition:transform .25s;opacity:.65}
.mobile-nav-group.is-open .mobile-nav-group__btn span{transform:rotate(180deg)}
.mobile-nav-group__list{
  display:flex;flex-direction:column;gap:.1rem;
  padding:.15rem 0 .55rem .75rem;border-right:2px solid rgba(196,165,116,.35);
  margin-right:.35rem;
}
.mobile-nav-group__list[hidden]{display:none !important}
.mobile-nav-group__list a{
  padding:.55rem .2rem;font-size:.95rem;color:var(--muted);
}
.mobile-nav-group__list a:hover{color:var(--ink)}

@media (max-width: 900px){
  .nav-mega-wrap .mega-panel{display:none !important}
}
@media (max-width: 640px){
  .mega-pages-grid{grid-template-columns:1fr}
}
@media (min-width: 901px) and (max-width: 1100px){
  .nav-mega-wrap--pages .mega-panel{min-width:min(420px,88vw)}
  .mega-pages-grid{grid-template-columns:1fr}
}
.nav-mega-wrap--pages.is-open .mega-panel,
.nav-mega-wrap--pages:hover .mega-panel,
.nav-mega-wrap--pages:focus-within .mega-panel{
  opacity:1;pointer-events:auto;transform:translate(-50%,0) !important;
}
.mega-panel-inner > .mega-panel-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.8rem}

/* ===== Blue autumn weather layer (ux1030) ===== */
.kd-weather{
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:0;
  transition:opacity .6s var(--ease);
  z-index:1;
}
.kd-weather.is-active{ opacity:1; }
.kd-weather__sky{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(160,195,230,.35) 0%, transparent 42%),
    radial-gradient(ellipse 80% 40% at 70% -5%, rgba(200,140,80,.18), transparent 55%);
  opacity:.85;
}
.kd-weather__clouds{
  position:absolute;
  inset:0;
  overflow:hidden;
}
.kd-cloud{
  position:absolute;
  display:block;
  width:min(48vw, 280px);
  height:min(18vw, 90px);
  border-radius:50%;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(255,255,255,.72), transparent 62%),
    radial-gradient(ellipse at 60% 40%, rgba(230,240,250,.65), transparent 58%),
    radial-gradient(ellipse at 45% 70%, rgba(200,215,235,.5), transparent 55%);
  filter:blur(8px);
  opacity:0;
  will-change:transform, opacity;
}
.kd-weather.is-active .kd-cloud{ opacity:.55; }
.kd-weather.is-home.is-active .kd-cloud{ opacity:.72; }
.kd-cloud--1{ top:6%; right:-10%; animation:kdCloudDrift 48s linear infinite; }
.kd-cloud--2{ top:14%; left:-15%; width:min(56vw,340px); animation:kdCloudDrift 62s linear infinite reverse; animation-delay:-12s; }
.kd-cloud--3{ top:28%; right:20%; width:min(40vw,220px); opacity:.4; animation:kdCloudDrift 55s linear infinite; animation-delay:-28s; }
.kd-cloud--4{ top:8%; left:35%; width:min(36vw,200px); animation:kdCloudDrift 70s linear infinite reverse; animation-delay:-40s; }
.kd-cloud--5{ top:22%; left:55%; width:min(44vw,260px); animation:kdCloudDrift 58s linear infinite; animation-delay:-18s; }
.kd-weather__rain{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:.85;
}
.kd-weather:not(.is-home) .kd-weather__rain{ opacity:.4; }
.kd-weather__mist{
  position:absolute;
  inset:auto 0 0;
  height:35%;
  background:linear-gradient(180deg, transparent, rgba(210,225,240,.25));
  opacity:0;
}
.kd-weather.is-home.is-active .kd-weather__mist{ opacity:1; }
@keyframes kdCloudDrift{
  0%{ transform:translate3d(0,0,0); }
  50%{ transform:translate3d(-18%, 4%, 0); }
  100%{ transform:translate3d(12%, -2%, 0); }
}
html:not([data-theme="light"]) .kd-weather{ opacity:0 !important; visibility:hidden; }
@media (prefers-reduced-motion: reduce){
  .kd-cloud{ animation:none !important; }
  .kd-weather__rain{ display:none !important; }
}

/* Softer dark surfaces (less pure black) */
html:not([data-theme="light"]) .trust-popup-card,
html:not([data-theme="light"]) .size-guide-card{
  background:#243044 !important;
  backdrop-filter:none;
}
html:not([data-theme="light"]) .kd-cine-bg__vignette{
  background:radial-gradient(ellipse at center, transparent 42%, rgba(10,16,28,.28) 100%);
}
html[data-theme="light"] .woo-tabs{ background:#d5e4f2; }
html[data-theme="light"] .morph-stage{
  background:
    radial-gradient(ellipse at 50% 35%, rgba(91,159,212,.16), transparent 55%),
    linear-gradient(160deg, rgba(220,232,244,.55) 0%, rgba(240,230,220,.4) 100%) !important;
}
html[data-theme="light"] .morph-hero--has-video .morph-stage{
  background: transparent !important;
}
html[data-theme="light"] body.page-home .morph-hero{
  isolation:isolate;
}
body.page-home .kd-weather.is-active .kd-weather__sky{
  opacity:1;
}
.btn-primary{
  background:linear-gradient(135deg, var(--bronze), var(--bronze-deep));
  color:var(--text-on-accent);
  font-weight:700;
}
html[data-theme="light"] .panel-body .panel-main a:not(.btn):not(.btn-primary):not(.btn-ghost){
  color:#2a5f96 !important;
}

/* ===== Perf: CSS rain (server CSS, no canvas) + low-tier ===== */
.kd-weather__rain--css{
  position:absolute; inset:0; overflow:hidden; pointer-events:none;
}
.kd-rain-layer{
  position:absolute; inset:-20% 0 0;
  display:block;
  background-image:
    repeating-linear-gradient(
      185deg,
      transparent 0,
      transparent 14px,
      rgba(90,130,175,.28) 15px,
      transparent 16px,
      transparent 34px
    );
  background-size: 28px 48px;
  animation: kdRainFall 0.85s linear infinite;
  opacity:.55;
  will-change: transform;
  transform: translateZ(0);
}
.kd-rain-layer--b{
  background-size: 40px 64px;
  animation-duration: 1.15s;
  animation-direction: reverse;
  opacity:.35;
  left:8%;
}
@keyframes kdRainFall{
  from{ transform: translate3d(0,-8%,0); }
  to{ transform: translate3d(-2%, 8%, 0); }
}
.kd-weather--lite .kd-weather__rain,
.kd-weather.is-paused .kd-rain-layer,
html[data-kd-perf="low"] .kd-weather__rain{
  display:none !important;
}
html[data-kd-perf="low"] .kd-cloud--3,
html[data-kd-perf="low"] .kd-cloud--4,
html[data-kd-perf="low"] .kd-cloud--5{
  display:none !important;
}
html[data-kd-perf="low"] .kd-cloud{
  filter:none;
  animation-duration: 90s !important;
  will-change: auto;
}
html[data-kd-perf="low"] .kd-cine-bg__orb,
html[data-kd-perf="low"] .kd-cine-bg__sweep,
html[data-kd-perf="low"] .kd-cine-bg__grain,
html[data-kd-perf="low"] .kd-cine-bg__particles{
  display:none !important;
}
.kd-cine-bg--static .kd-cine-bg__orb{
  animation:none !important;
  filter:blur(40px);
  opacity:.22;
}
.kd-cine-bg--static .kd-cine-bg__sweep,
.kd-cine-bg--static .kd-cine-bg__grain{ display:none !important; }
@media (max-width: 900px){
  .kd-cine-bg__orb{ animation:none !important; filter:blur(36px); opacity:.22; }
  .kd-cine-bg__sweep, .kd-cine-bg__grain, .kd-cine-bg__particles{ display:none !important; }
  .kd-cloud{ filter:blur(4px); will-change:auto; }
  .kd-cloud--3, .kd-cloud--4, .kd-cloud--5{ display:none !important; }
  .kd-weather__rain{ display:none !important; }
  .hero-bg-video{ transform:translateZ(0); }
}
@media (prefers-reduced-motion: reduce){
  .kd-rain-layer, .kd-cloud{ animation:none !important; }
}

/* —— Carousel image CLS lock (2026-09-28) ——
   Images must never expand cards when they finish loading. */
.product-card .thumb,
.product-card .thumb.js-product-rotator{
  position: relative !important;
  aspect-ratio: 4 / 5 !important;
  width: 100% !important;
  overflow: hidden !important;
  contain: layout paint !important;
}
.product-card.blog-card .thumb{
  aspect-ratio: 16 / 10 !important;
}
.product-card .thumb img,
.product-card .thumb .thumb-fallback{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  display: block !important;
}
.kd-carousel__track > .product-card,
.kd-carousel__track > .kd-carousel__slide.product-card{
  overflow: hidden !important;
  align-self: stretch;
}
.kd-carousel--cats .kd-carousel__track > .cat-card,
.kd-carousel__track > .cat-card{
  position: relative !important;
  aspect-ratio: 3 / 4 !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
  contain: layout paint !important;
}
.kd-carousel--cats .cat-card-media,
.cat-card .cat-card-media{
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  overflow: hidden !important;
}
.kd-carousel--cats .cat-card-media img,
.cat-card .cat-card-media img{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  display: block !important;
}
.kd-carousel--cats .cat-card h3{
  position: relative;
  z-index: 2;
}
/* Legacy product-carousel fallback (if any leftover markup) */
.product-carousel .carousel-track > .product-card{
  flex: 0 0 min(240px, 72vw) !important;
  width: min(240px, 72vw) !important;
  max-width: 240px !important;
  min-width: 160px !important;
  overflow: hidden !important;
}

/* —— Header actions modern (2026-09-28) —— */
.header-actions{
  display:flex;
  align-items:center;
  gap:.35rem;
}
.hd-btn{
  position:relative;
  width:40px;height:40px;
  border-radius:11px;
  border:1px solid var(--line);
  background:var(--bg-elev, #16181e);
  color:var(--ink);
  display:grid;place-items:center;
  cursor:pointer;
  text-decoration:none;
  transition:background .2s, border-color .2s, transform .15s;
  padding:0;
  font:inherit;
}
.hd-btn:hover{
  border-color:color-mix(in srgb, var(--bronze) 45%, var(--line));
  background:color-mix(in srgb, var(--bronze) 10%, var(--bg-elev, #16181e));
}
.hd-btn:active{ transform:scale(.96); }
.hd-btn .badge{
  position:absolute; top:-4px; inset-inline-end:-4px;
  min-width:16px; height:16px; padding:0 4px;
  border-radius:999px; font-size:.65rem; font-weight:700;
  display:grid; place-items:center;
  background:var(--bronze); color:#1a140c;
}
html[data-theme="light"] .hd-btn{
  background:#fff;
  border-color:#e5d9c5;
  color:#2c2419;
}
html[data-theme="light"] .hd-btn:hover{
  background:#faf6ef;
  border-color:#c4a574;
}
.hd-btn.theme-toggle .theme-icon{ width:17px; height:17px; }
.hd-home-btn .hd-home-ico{ display:block; }
.site-header .brand{
  display:inline-flex;
  align-items:center;
  flex-shrink:0;
  max-width: min(42vw, 420px);
  z-index: 2;
}
.site-header .brand-logo{
  height:48px;
  max-width:min(38vw, 280px);
  width:auto;
  object-fit:contain;
  opacity:1 !important;
  visibility:visible !important;
}
@media (min-width:960px){
  .site-header .brand{
    max-width: min(38vw, 620px);
  }
  .site-header .brand-logo{
    height:58px;
    max-width:min(36vw, 420px);
  }
  .site-header .header-inner {
    gap: .65rem;
  }
  .site-header .hd-btn,
  .site-header .icon-btn,
  .site-header .theme-toggle {
    width: 36px;
    height: 36px;
  }
}
@media (max-width:959px){
  .site-header .brand-logo{
    height:40px;
    max-width:min(46vw, 220px);
  }
}
@media (max-width:480px){
  .site-header .brand-logo{
    height:36px;
    max-width:min(52vw, 190px);
  }
}
html:not([data-theme="light"]) .site-header .brand-logo-dark{
  display:block !important;
  filter: brightness(1.55) contrast(1.12) saturate(1.05)
    drop-shadow(0 0 1px rgba(255,255,255,.35))
    drop-shadow(0 6px 18px rgba(0,0,0,.5));
}
html:not([data-theme="light"]) .site-header .brand-logo-light{ display:none !important; }
/* logo-light.png روشن است — روی هدر لایت از نسخهٔ تیره استفاده می‌کنیم */
html[data-theme="light"] .site-header .brand-logo-light{
  display:block !important;
  filter: none;
}
html[data-theme="light"] .site-header .brand-logo-dark{
  display:none !important;
}

/* —— Header shell desktop: نوار کامل، منو بدون برش —— */
@media (min-width: 960px) {
  .site-header-shell {
    align-items: stretch;
  }
  .site-header-shell .announce-bar {
    width: min(100%, 1480px);
  }
  .site-header-shell .site-header {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    overflow: visible;
  }
  .site-header .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .45rem clamp(.5rem, 1.2vw, 1rem);
    max-width: 1480px;
    margin-inline: auto;
  }
  .site-header .brand {
    max-width: min(28vw, 260px);
    min-width: 0;
  }
  .site-header .brand-logo {
    height: 48px !important;
    max-height: calc(var(--header-h) - 12px) !important;
    max-width: min(26vw, 240px) !important;
    width: auto !important;
    object-fit: contain !important;
  }
  .site-header .desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(.5rem, 1.15vw, 1.25rem);
    font-size: .9rem;
    min-width: 0;
    flex-wrap: nowrap;
    overflow: visible;
  }
  .site-header .desktop-nav a {
    white-space: nowrap;
  }
  .site-header .header-actions {
    flex-shrink: 0;
    gap: .3rem;
  }
  .site-header .hd-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
}

@media (max-width: 959px) {
  .site-header-shell .announce-bar,
  .site-header-shell .site-header {
    width: 100%;
    max-width: 100%;
  }
  .site-header .brand-logo {
    height: 38px !important;
    max-height: calc(var(--header-h) - 12px) !important;
    max-width: min(46vw, 170px) !important;
  }
}

/* Search drawer from LEFT */
.search-drawer-overlay{
  position:fixed; inset:0; z-index:160;
  background:rgba(0,0,0,.42);
  opacity:0; pointer-events:none;
  transition:opacity .25s ease;
}
.search-drawer-overlay.is-open{ opacity:1; pointer-events:auto; }
.search-drawer{
  position:fixed;
  top:0; bottom:0; left:0;
  width:min(400px, 92vw);
  z-index:170;
  background:var(--bg-elev, #12141a);
  border-inline-end:1px solid var(--line);
  box-shadow:18px 0 50px rgba(0,0,0,.35);
  transform:translateX(-105%);
  transition:transform .32s cubic-bezier(.2,.8,.2,1);
  display:flex; flex-direction:column;
  padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
.search-drawer.is-open{ transform:none; }
html[data-theme="light"] .search-drawer{
  background:#fffef9;
  border-color:#e8dcc8;
}
.search-drawer-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:.9rem 1rem; border-bottom:1px solid var(--line);
}
.search-drawer-head strong{ font-size:1rem; }
.search-drawer-body{ padding:1rem; overflow:auto; flex:1; }
.search-drawer-input{
  width:100%;
  margin-bottom:.75rem;
  border-radius:10px !important;
  min-height:44px;
}
body.search-open{ overflow:hidden; }

/* Chat FAB icon + drag */
.chat-fab svg{ width:22px; height:22px; display:block; pointer-events:none; }
.chat-fab-wrap{
  touch-action:none;
  transition:box-shadow .2s;
}
.chat-fab-wrap.is-dragging{ z-index:200; }
.chat-fab-wrap.is-dragging .chat-fab{
  box-shadow:0 16px 40px rgba(0,0,0,.35);
  transform:scale(1.05);
}
.chat-fab-wrap.is-dragged{
  right:auto !important;
  bottom:auto !important;
  /* left/top set inline by drag JS */
}
.chat-fab{
  display:grid;
  place-items:center;
  color:inherit;
}
.chat-fab svg{ color: currentColor; }

/* Home category titles — striking, no description clutter */
.kd-carousel--cats .cat-card{
  display:grid !important;
  place-items:end stretch;
  padding:0 !important;
}
.kd-carousel--cats .cat-card h3{
  margin:0;
  padding:.85rem .9rem;
  font-size:clamp(1rem, 2.6vw, 1.25rem);
  font-weight:800;
  letter-spacing:-.02em;
  line-height:1.25;
  color:#fff !important;
  text-shadow:0 2px 14px rgba(0,0,0,.55);
  background:linear-gradient(180deg, transparent 0%, rgba(10,11,13,.78) 100%);
  border:0;
  width:100%;
  box-sizing:border-box;
}
html[data-theme="light"] .kd-carousel--cats .cat-card h3{
  background:linear-gradient(180deg, transparent 0%, rgba(35,28,18,.72) 100%);
  color:#fff !important;
  text-shadow:0 2px 12px rgba(0,0,0,.4);
}
.kd-carousel--cats .cat-card::after{
  content:"";
  position:absolute;
  inset-inline:0; bottom:0; height:55%;
  background:linear-gradient(180deg, transparent, rgba(0,0,0,.45));
  z-index:1;
  pointer-events:none;
}
.kd-carousel--cats .cat-card h3{ position:relative; z-index:2; }
.cat-showcase .cat-banner p:not(.eyebrow){ display:none !important; }
.cat-showcase .cat-banner h2{
  font-size:clamp(1.35rem, 3vw, 1.85rem);
  font-weight:800;
  letter-spacing:-.03em;
  margin:0;
}
.cat-showcase .cat-banner .eyebrow{
  display:inline-block;
  font-size:.72rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--bronze);
  margin:0 0 .35rem;
}

#collections .section-head h2{
  font-size:clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight:800;
  letter-spacing:-.035em;
  line-height:1.15;
  margin:0;
  background:linear-gradient(120deg, var(--sand, #e8d7b5) 0%, var(--bronze, #c9a227) 45%, var(--sand, #e8d7b5) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
html[data-theme="light"] #collections .section-head h2{
  background:linear-gradient(120deg, #5c4526 0%, #9a7a4d 50%, #3d2e18 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
#collections .section-head .eyebrow{
  letter-spacing:.16em;
  font-size:.7rem;
  color:var(--bronze);
}

/* —— Support FAB + Telegram-like chat (2026-09-28) —— */
.chat-fab-wrap{
  position:fixed;
  left:1rem;
  bottom:calc(1.4rem + env(safe-area-inset-bottom,0px));
  z-index:140;
  width:56px;
  height:56px;
}
.chat-fab{
  width:56px;height:56px;
  border-radius:50%;
  border:0;
  background:#e10600 !important;
  color:#fff !important;
  display:grid;place-items:center;
  cursor:pointer;
  box-shadow:0 10px 28px rgba(225,6,0,.42);
  position:relative;
  z-index:2;
}
.chat-fab:hover{ filter:brightness(1.06); }
.chat-fab-pulse{
  position:absolute;inset:-6px;
  border-radius:50%;
  border:1px solid rgba(225,6,0,.55);
  animation:pulse 2s ease-out infinite;
  pointer-events:none;
}
/* Tip floats from FAB center — never shifts the icon */
.chat-fab-tip{
  position:absolute;
  left:50%;
  bottom:calc(100% + 14px);
  z-index:3;
  width:max-content;
  max-width:min(72vw,240px);
  padding:.6rem .85rem;
  border-radius:16px;
  background:#fff;
  color:#1a1a1a;
  font-size:.82rem;
  font-weight:700;
  line-height:1.45;
  box-shadow:0 12px 32px rgba(20,30,50,.2);
  border:1px solid rgba(225,6,0,.18);
  --tip-shift:0px;
  transform:translateX(calc(-50% + var(--tip-shift))) scale(.72);
  transform-origin:bottom center;
  opacity:0;
  pointer-events:none;
  visibility:hidden;
  transition:opacity .28s ease, transform .32s cubic-bezier(.2,.85,.25,1), visibility 0s linear .28s;
}
.chat-fab-tip.is-on{
  opacity:1;
  visibility:visible;
  transform:translateX(calc(-50% + var(--tip-shift))) scale(1);
  transition:opacity .28s ease, transform .32s cubic-bezier(.2,.85,.25,1), visibility 0s;
}
.chat-fab-tip.is-out{
  opacity:0;
  transform:translateX(calc(-50% + var(--tip-shift))) scale(.86);
  visibility:hidden;
  transition:opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}
.chat-fab-tip.is-below{
  bottom:auto;
  top:calc(100% + 14px);
  transform-origin:top center;
}
.chat-fab-tip.is-below::after{
  bottom:auto;
  top:-5px;
  transform:rotate(225deg);
}
.chat-fab-tip::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-5px;
  width:10px;height:10px;
  margin-left:-5px;
  background:#fff;
  border-right:1px solid rgba(225,6,0,.18);
  border-bottom:1px solid rgba(225,6,0,.18);
  transform:rotate(45deg);
}
.chat-fab-tip[hidden]{display:none !important}
html[data-theme="dark"] .chat-fab-tip{
  background:#1c1f26;color:#f2f2f2;
  border-color:rgba(255,255,255,.08);
}
html[data-theme="dark"] .chat-fab-tip::after{
  background:#1c1f26;
  border-color:rgba(255,255,255,.08);
}
.chat-fab-tip-text{
  display:inline;
  white-space:pre-wrap;
}
.chat-fab-tip-caret{
  display:inline-block;
  width:1px;
  height:1em;
  margin-inline-start:1px;
  vertical-align:-.1em;
  background:currentColor;
  opacity:.55;
  animation:chatTipCaret .7s steps(1) infinite;
}
.chat-fab-tip.is-out .chat-fab-tip-caret,
.chat-fab-tip:not(.is-typing) .chat-fab-tip-caret{display:none}
@keyframes chatTipCaret{
  50%{opacity:0}
}

.chat-panel.tg-chat{
  position:absolute;
  left:0;bottom:68px;
  width:min(94vw,380px);
  height:auto;
  max-height:min(78vh,580px);
  display:none;
  flex-direction:column;
  border:0;
  border-radius:18px;
  overflow:hidden;
  background:
    linear-gradient(180deg, rgba(12,14,18,.04), transparent 40%),
    #0e1014;
  box-shadow:0 22px 60px rgba(0,0,0,.45);
  z-index:141;
}
html[data-theme="light"] .chat-panel.tg-chat{
  background:
    linear-gradient(180deg, #dce8f4 0%, #e8eef4 35%, #efe6dc 100%);
  box-shadow:0 22px 50px rgba(30,40,60,.22);
}
.chat-panel.tg-chat.is-open{ display:flex !important; }
.chat-panel.tg-chat.is-room-mode{
  height:min(72vh,560px);
  max-height:min(78vh,580px);
}
.chat-panel.tg-chat.is-form-mode{
  height:auto;
}

.tg-chat-head{
  display:flex;align-items:center;justify-content:space-between;
  gap:.75rem;
  padding:.85rem 1rem;
  background:linear-gradient(180deg,#c00500,#e10600);
  color:#fff;
  border:0;
  flex:0 0 auto;
}
.tg-chat-peer{display:flex;align-items:center;gap:.65rem;min-width:0}
.tg-chat-avatar{
  width:40px;height:40px;border-radius:50%;
  display:grid;place-items:center;
  background:rgba(255,255,255,.2);
  font-weight:800;flex:0 0 auto;
}
.tg-chat-peer strong{display:block;font-size:.95rem}
.tg-chat-status{display:inline-flex;align-items:center;gap:.35rem;font-size:.72rem;opacity:.92}
.tg-dot{
  width:7px;height:7px;border-radius:50%;
  background:#7dffb0;box-shadow:0 0 0 3px rgba(125,255,176,.25);
}
.tg-chat-x{
  width:36px;height:36px;border:0;border-radius:50%;
  background:rgba(255,255,255,.14);color:#fff;cursor:pointer;
  display:grid;place-items:center;
}

.tg-chat-step{
  padding:0;
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column;
}
/* class display must not beat [hidden] */
.tg-chat-step[hidden]{
  display:none !important;
}
.chat-panel.tg-chat.is-form-mode #chatIntro{
  flex:0 0 auto;
}
.chat-panel.tg-chat.is-room-mode #chatRoom{
  flex:1;
  min-height:0;
}
.tg-welcome{padding:1.35rem 1.15rem .35rem;text-align:center}
.tg-welcome-ico{
  width:56px;height:56px;margin:0 auto .55rem;
  display:grid;place-items:center;
  font-size:1.6rem;
  border-radius:18px;
  background:linear-gradient(145deg,rgba(225,6,0,.12),rgba(225,6,0,.04));
  box-shadow:inset 0 0 0 1px rgba(225,6,0,.12);
}
.tg-welcome h3{margin:0 0 .35rem;font-size:1.08rem;font-weight:800;letter-spacing:-.01em}
.tg-welcome p{margin:0;color:var(--muted);font-size:.86rem;line-height:1.6}
.tg-start-form{
  padding:.85rem 1rem 1.15rem;
  display:flex;flex-direction:column;gap:.85rem;
}
.tg-field{display:flex;flex-direction:column;gap:.35rem}
.tg-label{
  font-size:.78rem;font-weight:700;color:var(--muted);
  padding-inline:.15rem;
}
.tg-input-wrap{
  display:flex;align-items:center;gap:.45rem;
  padding:0 .85rem;
  min-height:48px;
  border-radius:14px;
  border:1px solid color-mix(in srgb, var(--line) 80%, #e10600 20%);
  background:rgba(255,255,255,.72);
  box-shadow:0 1px 0 rgba(255,255,255,.5) inset;
  transition:border-color .2s, box-shadow .2s, background .2s;
}
html[data-theme="dark"] .tg-input-wrap{
  background:rgba(255,255,255,.04);
  box-shadow:none;
  border-color:rgba(255,255,255,.1);
}
.tg-input-wrap:focus-within{
  border-color:#e10600;
  box-shadow:0 0 0 3px rgba(225,6,0,.16);
  background:#fff;
}
html[data-theme="dark"] .tg-input-wrap:focus-within{
  background:rgba(255,255,255,.07);
}
.tg-input-ico{color:#e10600;opacity:.85;flex:0 0 auto;display:grid;place-items:center}
.tg-field-input{
  flex:1;min-width:0;border:0!important;background:transparent!important;
  box-shadow:none!important;padding:.7rem 0!important;outline:none;
  font-size:.95rem;font-weight:600;
}
.tg-field.has-error .tg-input-wrap{
  border-color:#e10600;
  box-shadow:0 0 0 3px rgba(225,6,0,.12);
}
.tg-field-err,.tg-form-err{
  font-size:.75rem;color:#e10600;font-weight:700;line-height:1.4;
  padding-inline:.2rem;
}
.tg-form-err{
  margin:0;padding:.55rem .7rem;border-radius:10px;
  background:rgba(225,6,0,.08);
}
.tg-start-btn{
  background:#e10600!important;border-color:#e10600!important;color:#fff!important;
  min-height:48px;border-radius:14px!important;
  display:inline-flex!important;align-items:center;justify-content:center;gap:.5rem;
  font-weight:800!important;letter-spacing:-.01em;
  box-shadow:0 10px 24px rgba(225,6,0,.28);
}
.tg-start-btn:disabled{opacity:.65;cursor:wait}
.tg-loading{
  margin:auto;padding:1.5rem;text-align:center;
  color:var(--muted);font-size:.9rem;font-weight:600;
}

.tg-messages{
  flex:1;min-height:0;overflow:auto;
  padding:.85rem .75rem 0.5rem;
  display:flex;flex-direction:column;gap:.45rem;
  background:
    radial-gradient(circle at 20% 10%, rgba(225,6,0,.06), transparent 40%),
    transparent;
}
.tg-messages .chat-bubble,
.tg-chat .chat-bubble{
  max-width:82%;
  padding:.55rem .75rem .4rem;
  border-radius:14px;
  border:0;
  font-size:.9rem;
  line-height:1.5;
  box-shadow:0 1px 1px rgba(0,0,0,.06);
  animation:rise .28s var(--ease,ease);
}
.tg-chat .chat-bubble.mine{
  align-self:flex-start;
  background:#e10600;color:#fff;
  border-bottom-right-radius:4px;
}
.tg-chat .chat-bubble.theirs{
  align-self:flex-end;
  background:rgba(255,255,255,.92);color:#1a1a1a;
  border-bottom-left-radius:4px;
}
html[data-theme="dark"] .tg-chat .chat-bubble.theirs{
  background:#232833;color:#f0f0f0;
}
.tg-chat .chat-bubble small{
  display:block;margin-top:.2rem;font-size:.68rem;opacity:.7;text-align:left;
}
.kd-chat-product{
  display:grid;grid-template-columns:58px 1fr;gap:.55rem;align-items:center;
  text-decoration:none;color:inherit;min-width:180px;
}
.kd-chat-product img{
  width:58px;height:58px;object-fit:cover;border-radius:10px;background:rgba(0,0,0,.06);
}
.kd-chat-product strong{display:block;font-size:.84rem;line-height:1.35;margin-bottom:.15rem}
.kd-chat-product em{font-style:normal;font-size:.78rem;font-weight:800;color:#fff}
.tg-chat .chat-bubble.theirs .kd-chat-product em{color:#e10600}
.tg-chat .chat-bubble.is-product{padding:.45rem}

.tg-compose{
  display:flex;align-items:flex-end;gap:.35rem;
  padding:.55rem .55rem calc(.55rem + env(safe-area-inset-bottom,0px));
  background:rgba(12,14,18,.78);
  border-top:1px solid rgba(255,255,255,.06);
  backdrop-filter:blur(10px);
}
html[data-theme="light"] .tg-compose{
  background:rgba(255,255,255,.88);
  border-top-color:rgba(0,0,0,.06);
}
.tg-emoji-btn{
  width:40px;height:40px;border:0;border-radius:50%;
  background:transparent;font-size:1.35rem;cursor:pointer;flex:0 0 auto;
}
.tg-input{
  flex:1;min-width:0;border-radius:18px!important;min-height:40px;
  padding:.55rem .85rem!important;border:1px solid var(--line)!important;
  background:var(--bg-elev,rgba(255,255,255,.06))!important;
}
.tg-send-btn{
  width:40px;height:40px;border:0;border-radius:50%;
  background:#e10600;color:#fff;display:grid;place-items:center;
  cursor:pointer;flex:0 0 auto;
  box-shadow:0 6px 16px rgba(225,6,0,.35);
}
.tg-send-btn:hover{filter:brightness(1.06)}

.tg-emoji-sheet{
  max-height:210px;
  border-top:1px solid rgba(255,255,255,.08);
  background:rgba(18,20,26,.96);
  display:flex;flex-direction:column;
}
html[data-theme="light"] .tg-emoji-sheet{background:#fff;border-top-color:rgba(0,0,0,.06)}
.tg-emoji-cats{
  display:flex;gap:.2rem;padding:.4rem .5rem 0;overflow-x:auto;
  scrollbar-width:none;
}
.tg-emoji-cat{
  width:36px;height:32px;border:0;border-radius:8px;
  background:transparent;font-size:1.1rem;cursor:pointer;flex:0 0 auto;
}
.tg-emoji-cat.is-active{background:rgba(225,6,0,.12)}
.tg-emoji-grid{
  display:grid;
  grid-template-columns:repeat(8,minmax(0,1fr));
  gap:.15rem;
  padding:.35rem .5rem .55rem;
  overflow:auto;
  max-height:160px;
}
.tg-emoji-grid button{
  border:0;background:transparent;font-size:1.35rem;
  line-height:1;padding:.25rem;border-radius:8px;cursor:pointer;
}
.tg-emoji-grid button:hover{background:rgba(127,127,127,.12)}

@media (max-width:900px){
  .chat-fab-wrap:not(.is-dragged){
    left:.9rem;
    bottom:calc(5.8rem + env(safe-area-inset-bottom,0px) + 50px)!important;
  }
  .chat-fab-wrap.is-open-chat .chat-panel.tg-chat{
    position:fixed;
    inset:0;
    left:0!important;
    right:0!important;
    top:0!important;
    bottom:0!important;
    width:100%!important;
    max-width:100%!important;
    height:100%!important;
    max-height:100%!important;
    border-radius:0;
    z-index:10050;
  }
  .chat-panel.tg-chat.is-form-mode,
  .chat-panel.tg-chat.is-room-mode{
    height:100%!important;
    max-height:100%!important;
  }
  .chat-fab-wrap.is-open-chat .chat-fab{
    visibility:hidden;
    pointer-events:none;
  }
  body.kd-chat-open-mobile{ overflow:hidden; }
  .chat-fab-wrap.is-open-chat .chat-fab-tip{display:none!important}
}

/* Storefront header — همبرگر سفید روی هدر سرمه‌ای لایت (اولویت بالا) */
html[data-theme="light"] #siteHeader .menu-toggle#menuToggle,
html[data-theme="light"] #siteHeader .menu-toggle {
  color: #fff !important;
}
html[data-theme="light"] #siteHeader .menu-toggle .burger i {
  background: #fff !important;
  background-color: #fff !important;
}
html[data-theme="light"] .nav-open #siteHeader .menu-toggle .burger i {
  background: #fff !important;
  background-color: #fff !important;
}

/* Keep storefront header layout isolated from legacy page styles. */
#siteHeaderShell .site-header {
  min-width: 0;
}

@media (max-width: 959px) {
  #siteHeaderShell {
    width: 100%;
    max-width: 100%;
    padding-inline: 8px;
    gap: 6px;
  }

  #siteHeaderShell .announce-bar {
    width: min(100%, 26rem);
    min-width: 0;
    max-width: 100%;
    padding: .45rem 1rem;
    white-space: normal;
  }

  #siteHeaderShell .site-header {
    height: var(--header-h);
    max-height: var(--header-h);
  }

  #siteHeaderShell .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .25rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-inline: .35rem;
  }

  #siteHeaderShell .header-start {
    display: flex;
    align-items: center;
    gap: .2rem;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  #siteHeaderShell .header-start > .brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    overflow: hidden;
  }

  #siteHeaderShell .header-start .brand-logo {
    display: block;
    width: min(31vw, 132px);
    max-width: 100%;
    height: auto;
    max-height: calc(var(--header-h) - 12px);
    object-fit: contain;
  }

  #siteHeaderShell .header-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: .15rem;
    min-width: 0;
  }

  #siteHeaderShell .header-actions .hd-btn,
  #siteHeaderShell .header-start .menu-toggle,
  #siteHeaderShell .header-start .hd-home-btn {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 360px) {
  #siteHeaderShell .header-start .brand-logo {
    width: min(31vw, 118px);
  }

  #siteHeaderShell .header-actions .hd-btn {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }
}

.site-header .brand-logo {
  height: 60px !important;
  max-height: calc(var(--header-h) - 8px) !important;
  max-width: min(38vw, 340px) !important;
}

.footer-brand .brand-logo,
.footer-brand .brand-logo-dark,
.footer-brand .brand-logo-light {
  display: block !important;
  width: auto !important;
  height: 112px !important;
  max-height: none !important;
  max-width: min(100%, 340px) !important;
  object-fit: contain;
  margin-bottom: .8rem;
}

.footer-brand .brand-logo-dark,
.footer-brand .brand-logo-light {
  display: none !important;
}

html[data-theme="light"] .footer-brand .brand-logo-light,
html:not([data-theme="light"]) .footer-brand .brand-logo-dark {
  display: block !important;
}

#siteHeader .header-actions .hd-home-btn {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
}

@media (max-width: 959px) {
  #siteHeader .header-start .brand-logo {
    width: min(34vw, 132px) !important;
    height: auto !important;
    max-height: calc(var(--header-h) - 8px) !important;
  }

  #siteHeaderShell .header-start > .brand {
    flex: 0 0 auto !important;
    min-width: 0;
    overflow: visible;
  }

  #siteHeader .header-actions .hd-btn {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 360px) {
  #siteHeader .header-start .brand-logo {
    width: min(34vw, 120px) !important;
  }

  #siteHeader .header-actions .hd-btn {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 520px) {
  .site-header .brand-logo {
    max-width: min(48vw, 190px) !important;
  }
}

.sticky-item-quantity {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .12rem;
}

.sticky-item-quantity button {
  width: 1.65rem;
  height: 1.65rem;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bronze) 14%, transparent);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.sticky-item-quantity button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.site-footer {
  --footer-navy: #071629;
  --footer-navy-deep: #040d1a;
  --footer-gold: #d3ae72;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 6rem;
  padding: 5rem 0 0;
  color: #eef3fa;
  border-top: 1px solid rgba(211, 174, 114, .3);
  background: linear-gradient(145deg, #0b2038 0%, var(--footer-navy) 48%, var(--footer-navy-deep) 100%);
}

.site-footer::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 16% 10%, rgba(35, 83, 132, .36), transparent 40%),
    radial-gradient(ellipse at 85% 70%, rgba(16, 54, 91, .3), transparent 42%);
  content: "";
}

.footer-atmosphere {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.footer-atmosphere::after {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(225, 238, 255, .72) .7px, transparent .9px);
  background-size: 43px 43px;
  opacity: .16;
  mask-image: linear-gradient(180deg, #000, transparent 88%);
  content: "";
  animation: footerStars 24s linear infinite;
}

.footer-orb {
  position: absolute;
  width: 32rem;
  aspect-ratio: 1;
  border: 1px solid rgba(211, 174, 114, .12);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 75, 120, .25), transparent 68%);
  filter: blur(1px);
  animation: footerOrb 17s ease-in-out infinite alternate;
}

.footer-orb::before,
.footer-orb::after {
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(173, 205, 235, .09);
  border-radius: inherit;
  content: "";
}

.footer-orb::after { inset: 27%; }
.footer-orb-one { top: -19rem; left: -9rem; }
.footer-orb-two { right: -14rem; bottom: -23rem; animation-delay: -8s; }

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.footer-brand p,
.footer-col p {
  color: rgba(224, 233, 245, .72);
  line-height: 2;
}

.footer-brand > p {
  max-width: 31rem;
  margin: .35rem 0 1.4rem;
}

.footer-col h4 {
  position: relative;
  display: inline-block;
  margin: 0 0 1.2rem;
  padding-bottom: .7rem;
  color: #fff;
  font-size: 1rem;
}

.footer-col h4::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 2.2rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--footer-gold), transparent);
  content: "";
}

.footer-links-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 3rem);
}

.footer-col a {
  width: fit-content;
  max-width: 100%;
  color: rgba(224, 233, 245, .72);
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.footer-col a:hover {
  color: var(--footer-gold);
  transform: translateX(-3px);
}

.footer-col a:not(.enamad-seal):not(.zarinpal-seal):not(.eanjoman-seal) {
  margin-bottom: .7rem;
}

.footer-contact .footer-address { margin: 0 0 .8rem; }
.footer-social-row { margin: 1rem 0 1.25rem; }

.site-footer .social-row a {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin: 0;
  color: #dce8f7;
  border: 1px solid rgba(208, 225, 246, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .045);
  transition: transform .25s ease, color .25s ease, border-color .25s ease, background .25s ease;
}

.site-footer .social-row a:hover {
  transform: translateY(-3px);
  color: var(--footer-gold);
  border-color: rgba(211, 174, 114, .6);
  background: rgba(211, 174, 114, .1);
}

.footer-seals {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: .9rem;
}

.footer-seals > a {
  display: grid;
  min-width: 84px;
  min-height: 96px;
  place-items: center;
  padding: .45rem;
  border: 1px solid rgba(208, 225, 246, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .055);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.footer-seals > a:hover {
  transform: translateY(-4px);
  border-color: rgba(211, 174, 114, .65);
  background: rgba(255, 255, 255, .1);
}

.footer-seals img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 82px;
  object-fit: contain;
}

.footer-seals .enamad-seal img,
.footer-seals .zarinpal-seal img { width: auto; max-width: 100%; max-height: 82px; }
.eanjoman-seal img { width: 92px; height: 82px; object-fit: contain; }

.footer-credits {
  position: relative;
  margin-top: 4rem;
  padding: 1.1rem 0 max(1.2rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(208, 225, 246, .12);
  background: rgba(2, 8, 17, .24);
}

.footer-credits::before {
  position: absolute;
  top: -1px;
  left: 50%;
  width: min(34rem, 55vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--footer-gold), transparent);
  content: "";
  transform: translateX(-50%);
}

.footer-bottom {
  margin-top: 0;
  padding: 0;
  color: rgba(224, 233, 245, .64);
  border: 0;
}

.footer-credit a {
  color: var(--footer-gold);
  border-color: rgba(211, 174, 114, .4);
}

.footer-credit a:hover { color: #f0d7a8; border-color: #f0d7a8; }

@keyframes footerStars {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-43px, 43px, 0); }
}

@keyframes footerOrb {
  from { transform: translate3d(-1.5rem, 0, 0) scale(.96); }
  to { transform: translate3d(1.5rem, 1rem, 0) scale(1.04); }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .footer-links-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .site-footer { margin-top: 4rem; padding-top: 3.5rem; }
  .footer-links-panel { grid-template-columns: 1fr 1fr; gap: 1.7rem 1rem; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-credits { margin-top: 2.7rem; }
  .footer-bottom { width: calc(100% - 2rem); }
}

@media (prefers-reduced-motion: reduce) {
  .footer-atmosphere::after,
  .footer-orb,
  .footer-col a,
  .site-footer .social-row a,
  .footer-seals > a { animation: none; transition: none; }
}

html[data-theme="light"] .site-footer {
  --footer-navy: #071629;
  --footer-navy-deep: #040d1a;
  --footer-gold: #d3ae72;
  color: #eef3fa;
  border-top-color: rgba(211, 174, 114, .3);
  background: linear-gradient(145deg, #0b2038 0%, #071629 48%, #040d1a 100%);
}

.site-footer .footer-brand .brand-logo,
.site-footer .footer-brand .brand-logo-dark,
.site-footer .footer-brand .brand-logo-light {
  display: block !important;
  width: auto !important;
  height: 72px !important;
  max-width: min(100%, 300px) !important;
  max-height: 72px !important;
  margin-bottom: .8rem;
  object-fit: contain;
  object-position: right center;
}

.site-footer .footer-brand .brand-logo-light { display: none !important; }
.site-footer .footer-brand .brand-logo-dark { display: block !important; }

.site-footer .footer-seals > a {
  width: 96px;
  height: 96px;
  min-width: 96px;
  min-height: 96px;
}

.site-footer .footer-seals img,
.site-footer .footer-seals .enamad-seal img,
.site-footer .footer-seals .zarinpal-seal img,
.site-footer .footer-seals .eanjoman-seal img {
  width: 76px;
  height: 76px;
  max-width: 76px;
  max-height: 76px;
  object-fit: contain;
}

.product-card:not(.blog-card) {
  overflow: hidden;
  border: 1px solid rgba(133, 190, 232, .34) !important;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(42, 105, 157, .42), rgba(11, 42, 72, .68)) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 12px 30px rgba(2, 15, 30, .16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.product-card:not(.blog-card):hover {
  border-color: rgba(165, 211, 245, .62) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 18px 38px rgba(2, 15, 30, .24);
}

.product-card:not(.blog-card) .thumb {
  overflow: hidden;
  background: rgba(13, 43, 70, .6) !important;
}

.product-card:not(.blog-card) .body,
.product-card:not(.blog-card) h3,
.product-card:not(.blog-card) .price,
.product-card:not(.blog-card) .price s,
.product-card:not(.blog-card) .price span {
  color: #fff !important;
}

.product-card:not(.blog-card) .price s { opacity: .7; }

.cat-showcase > .container,
#collections > .container {
  padding: clamp(1.15rem, 3vw, 2rem);
  border: 1px solid rgba(133, 190, 232, .24);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(35, 91, 137, .24), rgba(9, 35, 62, .38));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 48px rgba(2, 15, 30, .12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cat-showcase .cat-banner h2,
#collections .section-head h2 {
  color: #fff;
}

.cat-showcase .cat-banner .eyebrow,
#collections .section-head .eyebrow {
  color: #a9cbea;
}

@media (max-width: 560px) {
  .product-card:not(.blog-card) { border-radius: 17px; }
  .cat-showcase > .container,
  #collections > .container { border-radius: 21px; }
}

html[data-theme="light"] .product-card:not(.blog-card),
html[data-theme="light"] .product-card:not(.blog-card):hover {
  border-color: rgba(99, 164, 213, .5) !important;
  background: linear-gradient(155deg, rgba(42, 105, 157, .96), rgba(15, 54, 91, .98)) !important;
  box-shadow: 0 8px 22px rgba(21, 65, 103, .16), inset 0 1px 0 rgba(255, 255, 255, .18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
}

html[data-theme="light"] .product-card:not(.blog-card):hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(21, 65, 103, .22), inset 0 1px 0 rgba(255, 255, 255, .2);
}

html[data-theme="light"] .product-card:not(.blog-card) .thumb {
  background: #173d5e !important;
}

html[data-theme="light"] .product-card:not(.blog-card) .body,
html[data-theme="light"] .product-card:not(.blog-card) h3,
html[data-theme="light"] .product-card:not(.blog-card) .price,
html[data-theme="light"] .product-card:not(.blog-card) .price s,
html[data-theme="light"] .product-card:not(.blog-card) .price span {
  color: #fff !important;
}

html[data-theme="light"] .site-footer,
html[data-theme="light"] .site-footer .footer-brand p,
html[data-theme="light"] .site-footer .footer-col p,
html[data-theme="light"] .site-footer .footer-col h4,
html[data-theme="light"] .site-footer .footer-col a,
html[data-theme="light"] .site-footer .footer-bottom,
html[data-theme="light"] .site-footer .footer-bottom p,
html[data-theme="light"] .site-footer .footer-credit,
html[data-theme="light"] .site-footer .footer-credit a {
  color: #fff !important;
}

html[data-theme="light"] .site-footer .footer-col a:hover,
html[data-theme="light"] .site-footer .footer-credit a:hover {
  color: #f0d7a8 !important;
}

body.page-home .product-card:not(.blog-card),
body.page-home .product-card:not(.blog-card):hover,
body.page-home .cat-showcase > .container,
body.page-home #collections > .container,
body.page-home .widget-guide-teaser__inner,
body.page-home .cat-banner,
body.page-home .cat-mini-product {
  background: rgba(128, 128, 128, .05) !important;
}

body.page-home .product-card:not(.blog-card),
body.page-home .cat-showcase > .container,
body.page-home #collections > .container,
body.page-home .widget-guide-teaser__inner,
body.page-home .cat-banner,
body.page-home .cat-mini-product {
  border-color: rgba(128, 128, 128, .05) !important;
}

body.page-home .product-card:not(.blog-card) .thumb {
  background: rgba(128, 128, 128, .05) !important;
}

body.page-home .product-card:not(.blog-card) .body,
body.page-home .product-card:not(.blog-card) h3,
body.page-home .cat-mini-product,
body.page-home .widget-guide-teaser__inner,
body.page-home .cat-banner h2,
body.page-home #collections .section-head h2,
body.page-home .cat-showcase .cat-banner .eyebrow,
body.page-home #collections .section-head .eyebrow {
  color: #fff !important;
}

body.page-home .product-card:not(.blog-card) .price {
  color: #0a2744 !important;
}

body.page-home .product-card:not(.blog-card) .price s,
body.page-home .product-card:not(.blog-card) .price span {
  color: #52677b !important;
}

html[data-theme="light"] body.page-home .product-card:not(.blog-card) .body,
html[data-theme="light"] body.page-home .product-card:not(.blog-card) h3,
html[data-theme="light"] body.page-home .cat-mini-product,
html[data-theme="light"] body.page-home .widget-guide-teaser__inner,
html[data-theme="light"] body.page-home .cat-banner h2,
html[data-theme="light"] body.page-home #collections .section-head h2,
html[data-theme="light"] body.page-home .cat-showcase .cat-banner .eyebrow,
html[data-theme="light"] body.page-home #collections .section-head .eyebrow {
  color: #173d5e !important;
}

html[data-theme="light"] body.page-home .product-card:not(.blog-card) h3 {
  color: #fff !important;
}

body.page-home .product-card:not(.blog-card),
body.page-home .product-card:not(.blog-card) *,
body.page-home .cat-showcase > .container,
body.page-home #collections > .container {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  animation: none !important;
}

body.page-home .product-card:not(.blog-card),
body.page-home .product-card:not(.blog-card):hover,
body.page-home .cat-showcase > .container,
body.page-home #collections > .container {
  transform: none !important;
  transition: none !important;
}

html[data-theme="dark"] .product-card:not(.blog-card),
html:not([data-theme="light"]) .product-card:not(.blog-card) {
  color: #f8fafc !important;
  background: #172331 !important;
  border-color: #344456 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .24) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-theme="dark"] .product-card:not(.blog-card) .thumb,
html:not([data-theme="light"]) .product-card:not(.blog-card) .thumb {
  background: #101923 !important;
}

html[data-theme="dark"] .product-card:not(.blog-card) h3,
html:not([data-theme="light"]) .product-card:not(.blog-card) h3 {
  color: #f8fafc !important;
}

html[data-theme="dark"] .product-card:not(.blog-card) .price,
html:not([data-theme="light"]) .product-card:not(.blog-card) .price {
  color: #173d5e !important;
  background: #f5f7f9 !important;
  border-color: #d7e0e8 !important;
}

html[data-theme="dark"] .product-card:not(.blog-card) .price s,
html[data-theme="dark"] .product-card:not(.blog-card) .price span,
html:not([data-theme="light"]) .product-card:not(.blog-card) .price s,
html:not([data-theme="light"]) .product-card:not(.blog-card) .price span {
  color: #52677b !important;
}

html[data-theme="light"] .product-card:not(.blog-card) {
  color: #173d5e !important;
  background: #fff !important;
  border-color: #d9e2ea !important;
  box-shadow: 0 4px 14px rgba(23, 61, 94, .1) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-theme="light"] .product-card:not(.blog-card) .thumb {
  background: #f1f4f7 !important;
}

html[data-theme="light"] .product-card:not(.blog-card) h3 {
  color: #173d5e !important;
}

html[data-theme="light"] body.page-home .kd-carousel .product-card:not(.blog-card) h3 {
  color: #173d5e !important;
}

html:not([data-theme="light"]) body.page-home .kd-carousel .product-card:not(.blog-card) h3 {
  color: #fff !important;
}

html:not([data-theme="light"]) body.page-home .cat-products-grid .cat-mini-product__name {
  color: #fff !important;
}

html[data-theme="light"] .product-card:not(.blog-card) .price {
  color: #173d5e !important;
  background: #eef3f7 !important;
  border-color: #d5e0e9 !important;
}

html[data-theme="light"] .product-card:not(.blog-card) .price s,
html[data-theme="light"] .product-card:not(.blog-card) .price span {
  color: #60758a !important;
}

html[data-theme="light"] .product-card:not(.blog-card):hover,
html[data-theme="dark"] .product-card:not(.blog-card):hover,
html:not([data-theme="light"]) .product-card:not(.blog-card):hover {
  transform: translateY(-3px) !important;
}

html[data-theme="light"] .site-footer .footer-credit a {
  border-color: rgba(255, 255, 255, .55);
}

.cat-card {
  isolation: isolate;
  border: 1px solid rgba(185, 220, 247, .48) !important;
  border-radius: 24px !important;
  background: linear-gradient(135deg, rgba(31, 78, 119, .48), rgba(5, 22, 43, .58)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 24px rgba(142, 198, 239, .08), 0 14px 36px rgba(1, 10, 23, .3);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  transition: transform .5s var(--ease), border-color .4s ease, box-shadow .5s ease;
}

.cat-card::before {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(9, 34, 59, .28), rgba(3, 17, 35, .58)),
    linear-gradient(135deg, rgba(106, 175, 226, .12), transparent 55%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.cat-card::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .7;
  background:
    linear-gradient(118deg, transparent 25%, rgba(225, 243, 255, .035) 39%, rgba(255, 255, 255, .2) 42%, rgba(197, 226, 249, .07) 47%, transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, .12), transparent 24%);
  transform: translateX(-120%);
  animation: categoryGlassSweep 7s ease-in-out infinite;
}

.cat-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(215, 239, 255, .78) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), inset 0 0 34px rgba(142, 198, 239, .15), 0 22px 48px rgba(1, 10, 23, .42), 0 0 30px rgba(70, 142, 198, .22);
}

.cat-card .cat-card-media img {
  filter: saturate(.74) brightness(.65) blur(1.5px);
  transform: scale(1.03);
  transition: transform 1s ease, filter .6s ease;
}

.cat-card:hover .cat-card-media img {
  filter: saturate(.9) brightness(.76) blur(.5px);
  transform: scale(1.1);
}

.cat-card h3,
.kd-carousel--cats .cat-card h3 {
  z-index: 3;
  margin: .85rem;
  width: auto;
  padding: .7rem 1rem;
  border: 1px solid rgba(214, 237, 255, .26);
  border-radius: 14px;
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .95);
  background: rgba(3, 18, 36, .72) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 5px 16px rgba(0, 0, 0, .2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cat-showcase > .container,
#collections > .container {
  border-color: rgba(185, 220, 247, .28);
  background: linear-gradient(135deg, rgba(15, 47, 78, .42), rgba(4, 19, 38, .54));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 40px rgba(115, 176, 222, .045), 0 18px 48px rgba(2, 12, 24, .2);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.cat-showcase .cat-banner h2,
#collections .section-head h2 {
  background: none;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.cat-showcase .cat-banner .eyebrow,
#collections .section-head .eyebrow {
  color: #b7d8f2;
}

@keyframes categoryGlassSweep {
  0%, 15% { transform: translateX(-120%); }
  70%, 100% { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
  .cat-card,
  .cat-card::before,
  .cat-card::after,
  .cat-card .cat-card-media img { transition: none; }
  .cat-card::after { animation: none; }
}

html[data-theme="light"] .cat-card {
  border-color: rgba(224, 242, 255, .76) !important;
  background: linear-gradient(135deg, rgba(20, 67, 109, .24), rgba(4, 25, 52, .4)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .68),
    inset 1px 0 0 rgba(255, 255, 255, .2),
    inset 0 0 32px rgba(139, 202, 249, .18),
    0 14px 36px rgba(8, 39, 72, .18);
  backdrop-filter: blur(26px) saturate(155%);
  -webkit-backdrop-filter: blur(26px) saturate(155%);
}

html[data-theme="light"] .cat-card::before {
  background:
    linear-gradient(180deg, rgba(15, 54, 91, .08), rgba(4, 24, 49, .38)),
    linear-gradient(135deg, rgba(219, 241, 255, .2), transparent 58%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

html[data-theme="light"] .cat-card::after {
  opacity: .95;
  background:
    linear-gradient(118deg, transparent 22%, rgba(231, 247, 255, .13) 37%, rgba(255, 255, 255, .62) 42%, rgba(191, 226, 251, .2) 47%, transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, .3), transparent 28%);
  animation-duration: 5.5s;
}

html[data-theme="light"] .cat-card .cat-card-media img {
  filter: saturate(.66) brightness(.53) blur(2px);
}

html[data-theme="light"] .cat-card:hover .cat-card-media img {
  filter: saturate(.78) brightness(.64) blur(1px);
}

html[data-theme="light"] .cat-card h3,
html[data-theme="light"] .kd-carousel--cats .cat-card h3 {
  border-color: rgba(226, 243, 255, .48);
  background: rgba(3, 26, 53, .48) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), 0 8px 22px rgba(2, 20, 42, .18);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

html[data-theme="light"] .cat-showcase > .container,
html[data-theme="light"] #collections > .container {
  border-color: rgba(193, 223, 246, .56);
  background: linear-gradient(135deg, rgba(25, 69, 108, .16), rgba(6, 32, 60, .28));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .46),
    inset 0 0 42px rgba(174, 218, 249, .12),
    0 18px 48px rgba(5, 33, 62, .13);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}

.cat-card {
  border-color: rgba(255, 255, 255, .6) !important;
  background: rgba(224, 231, 238, .24) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .56), inset 0 0 32px rgba(245, 249, 253, .13), 0 16px 38px rgba(6, 24, 43, .2);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.cat-card::before {
  background: linear-gradient(145deg, rgba(237, 243, 248, .2), rgba(20, 42, 63, .22));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cat-card::after {
  opacity: .8;
  animation: categoryGlassSweep 6s ease-in-out infinite;
}

.cat-card h3,
.kd-carousel--cats .cat-card h3 {
  color: #0a2744 !important;
  border-color: rgba(255, 255, 255, .82);
  text-shadow: 0 1px 1px rgba(255, 255, 255, .5);
  background: rgba(239, 243, 247, .82) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 8px 20px rgba(6, 24, 43, .16);
}

.cat-showcase > .container,
#collections > .container {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, .58);
  background: linear-gradient(135deg, rgba(235, 240, 245, .3), rgba(205, 216, 226, .18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .58), inset 0 0 40px rgba(248, 251, 253, .12), 0 18px 48px rgba(7, 27, 47, .12);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.cat-showcase > .container::after,
#collections > .container::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(112deg, transparent 25%, rgba(255, 255, 255, .24) 48%, transparent 68%);
  transform: translateX(-120%);
  animation: categoryGlassSweep 8s ease-in-out infinite;
}

.cat-showcase > .container > *,
#collections > .container > * {
  position: relative;
  z-index: 1;
}

.cat-showcase .cat-banner h2,
#collections .section-head h2 {
  color: #0a2744 !important;
  -webkit-text-fill-color: #0a2744;
  text-shadow: none;
}

.cat-showcase .cat-banner .eyebrow,
#collections .section-head .eyebrow {
  color: #315d80;
}

.product-card:not(.blog-card) {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.product-card:not(.blog-card) .body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  width: 100%;
  min-height: 122px;
  padding: .85rem .8rem 1rem;
  text-align: center;
}

.product-card:not(.blog-card) h3 {
  width: 100%;
  margin: 0;
  color: #fff !important;
  text-align: center;
}

.product-card:not(.blog-card) .price {
  width: fit-content;
  max-width: 100%;
  margin: auto auto 0;
  padding: .42rem .85rem;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  background: #f5f7f9;
  color: #0a2744 !important;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .14), inset 0 1px 0 #fff;
}

.product-card:not(.blog-card) .price s,
.product-card:not(.blog-card) .price span {
  color: #52677b !important;
}

.product-card:not(.blog-card) .price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
}

.product-card:not(.blog-card) .price s {
  display: block;
  width: auto;
  margin: 0;
  line-height: 1.4;
}

.cat-products-section {
  position: relative;
  padding: 1.4rem 0 3rem;
}

.cat-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.cat-mini-product {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  padding: .8rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 18px;
  background: rgba(226, 233, 239, .52);
  color: #0a2744;
  text-align: center;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .48), 0 10px 24px rgba(5, 23, 42, .12);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.cat-mini-product:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, .9);
  box-shadow: inset 0 1px 0 #fff, 0 16px 30px rgba(5, 23, 42, .2);
}

.cat-mini-product__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(7, 33, 57, .3);
}

.cat-mini-product__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.cat-mini-product:hover .cat-mini-product__image img { transform: scale(1.06); }
.cat-mini-product__placeholder { display: block; width: 100%; height: 100%; }
.cat-mini-product__name { color: #0a2744; font-size: .9rem; font-weight: 700; line-height: 1.55; }

.cat-mini-product__price {
  width: fit-content;
  margin-top: auto;
  padding: .32rem .72rem;
  border-radius: 999px;
  background: #f5f7f9;
  color: #0a2744;
  font-size: .82rem;
  font-weight: 800;
}

@media (max-width: 720px) {
  .cat-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .cat-mini-product { padding: .6rem; border-radius: 15px; }
  .cat-mini-product__name { font-size: .82rem; }
  .product-card:not(.blog-card) .body { min-height: 112px; }
}

@media (prefers-reduced-motion: reduce) {
  .cat-card::after,
  .cat-showcase > .container::after,
  #collections > .container::after,
  .cat-mini-product,
  .cat-mini-product__image img { animation: none; transition: none; }
}

.cat-card {
  animation: categoryGlassFrame 6s ease-in-out infinite;
}

.cat-card::before {
  background: linear-gradient(145deg, rgba(237, 243, 248, .08), rgba(20, 42, 63, .08)) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.cat-card::after {
  display: none !important;
  animation: none !important;
}

.cat-card .cat-card-media img,
.cat-card:hover .cat-card-media img,
html[data-theme="light"] .cat-card .cat-card-media img,
html[data-theme="light"] .cat-card:hover .cat-card-media img {
  filter: none !important;
  transform: none;
  transition: transform .8s ease;
}

.cat-card:hover .cat-card-media img { transform: scale(1.045); }

body.page-home .cat-card,
body.page-home .cat-card::before,
body.page-home .cat-card::after,
body.page-home .cat-card h3,
body.page-home .cat-card .cat-card-media img,
body.page-home .cat-showcase > .container,
body.page-home #collections > .container,
body.page-home .cat-showcase > .container::after,
body.page-home #collections > .container::after,
body.page-home .cat-banner,
body.page-home .cat-mini-product,
body.page-home .cat-mini-product__image img,
body.page-home .product-card:not(.blog-card),
body.page-home .product-card:not(.blog-card) *,
body.page-home .widget-guide-teaser__inner {
  animation: none !important;
  transition: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.page-home .cat-card:hover,
body.page-home .cat-mini-product:hover,
body.page-home .product-card:not(.blog-card):hover {
  transform: none !important;
}

body.page-home .cat-card:hover .cat-card-media img {
  transform: none !important;
}

@keyframes categoryGlassFrame {
  0%, 100% {
    border-color: rgba(255, 255, 255, .48);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 14px 34px rgba(6, 24, 43, .18), 0 0 0 rgba(185, 225, 255, 0);
  }
  50% {
    border-color: rgba(226, 243, 255, .95);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 16px 38px rgba(6, 24, 43, .2), 0 0 22px rgba(185, 225, 255, .32);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cat-card { animation: none; }
}

html:not([data-theme="light"]) .kd-carousel--cats .cat-card h3 {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .9) !important;
}

body.page-home .kd-carousel--cats .cat-card h3 {
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .35s ease, box-shadow .35s ease, color .35s ease !important;
}

.kd-carousel--cats .cat-card h3 {
  padding: .72rem 1.5rem !important;
  border-radius: 999px !important;
  font-weight: 800;
  letter-spacing: .02em;
}

.kd-carousel--cats .cat-card:hover h3,
.kd-carousel--cats .cat-card h3:hover {
  transform: translateY(-2px) scale(1.04);
  color: #17140c !important;
  text-shadow: none !important;
  border-color: rgba(255, 240, 190, .9) !important;
  background: linear-gradient(145deg, #e7c363, #c9a227 58%, #a77b19) !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .3), 0 0 0 4px rgba(201, 162, 39, .25) !important;
}

.kd-carousel--cats .kd-carousel__btn {
  border-radius: 50% !important;
}

.kd-carousel--cats .kd-carousel__btn:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, .32), 0 0 0 5px rgba(201, 162, 39, .28) !important;
}

.cat-card .btn {
  border-radius: 999px !important;
}

html:not([data-theme="light"]) body.page-home .cat-showcase .cat-banner h2,
html:not([data-theme="light"]) body.page-home #collections .section-head h2 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html:not([data-theme="light"]) body.page-home .cat-showcase > .container,
html:not([data-theme="light"]) body.page-home #collections > .container {
  background: rgba(255, 255, 255, .05) !important;
}

body.page-home .cat-banner .btn,
body.page-home .cat-banner .btn-ghost,
body.page-home .product-card:not(.blog-card) .btn,
body.page-home .cat-mini-product__price {
  border-radius: 999px !important;
}

body.page-home .cat-banner .btn-ghost {
  padding: .7rem 1.5rem;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .35s ease, box-shadow .35s ease, color .35s ease, border-color .35s ease !important;
}

body.page-home .cat-banner .btn-ghost:hover {
  transform: translateY(-2px) scale(1.04);
  color: #fff !important;
  border-color: #ff6b6b !important;
  background: linear-gradient(135deg, #ff4b4b, #c62828) !important;
  box-shadow: 0 12px 26px rgba(198, 40, 40, .4), 0 0 0 4px rgba(229, 57, 53, .25) !important;
}

.btn,
.btn-primary,
.kd-carousel__btn,
.kd-carousel--cats .cat-card h3,
html[data-theme="light"] .kd-carousel--cats .cat-card h3,
.panel-body .btn-primary,
.panel-body button.btn-primary,
.panel-body a.btn-primary,
.sticky-cart-actions .btn-primary {
  background: linear-gradient(135deg, #e53935, #b71c1c) !important;
  background-color: #c62828 !important;
  border-color: rgba(255, 140, 140, .5) !important;
  color: #fff !important;
}

.btn-ghost {
  background: transparent !important;
  border-color: #e53935 !important;
  color: #e53935 !important;
}

.btn:hover,
.btn-primary:hover,
.kd-carousel__btn:hover,
.kd-carousel--cats .cat-card:hover h3,
.kd-carousel--cats .cat-card h3:hover,
.panel-body .btn-primary:hover,
.panel-body button.btn-primary:hover,
.panel-body a.btn-primary:hover,
.sticky-cart-actions .btn-primary:hover {
  background: linear-gradient(135deg, #ff4b4b, #c62828) !important;
  border-color: #ff8a8a !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(198, 40, 40, .4), 0 0 0 4px rgba(229, 57, 53, .25) !important;
  filter: none !important;
}

.btn-ghost:hover {
  background: linear-gradient(135deg, #e53935, #b71c1c) !important;
  border-color: #ff8a8a !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(198, 40, 40, .35) !important;
}

.kd-carousel__btn svg {
  color: #fff;
}

html body.page-home .cat-banner {
  align-items: center !important;
  padding: 1.1rem 1.5rem !important;
  border: 1px solid rgba(128, 128, 128, .28) !important;
  border-radius: 20px !important;
  background: rgba(128, 128, 128, .14) !important;
  overflow: hidden;
}

.site-footer .footer-seals {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .6rem !important;
  width: 100%;
}

.site-footer .footer-seals > a,
.site-footer .footer-seals > a.enamad-seal {
  display: flex !important;
  flex: 0 0 auto !important;
  width: clamp(84px, 28vw, 104px) !important;
  height: clamp(84px, 28vw, 104px) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: .35rem !important;
  align-items: center;
  justify-content: center;
}

.site-footer .footer-seals img,
.site-footer .footer-seals .enamad-seal img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

body.page-home .product-card:not(.blog-card),
body.page-home .cat-mini-product {
  border-radius: 20px !important;
}

body.page-home .product-card:not(.blog-card) .thumb,
body.page-home .cat-mini-product__image {
  border-radius: 14px !important;
}

html:not([data-theme="light"]) body.page-home .product-card:not(.blog-card),
html:not([data-theme="light"]) body.page-home .cat-mini-product {
  background: #223246 !important;
  border-color: #3a4d64 !important;
}

html:not([data-theme="light"]) body.page-home .product-card:not(.blog-card) .thumb {
  background: #1a2838 !important;
}

html:not([data-theme="light"]) body.page-home .product-card:not(.blog-card) .btn {
  border-radius: 999px !important;
}

/* Homepage buttons: fully rounded corners */
body.page-home .btn {
  border-radius: 999px !important;
}

/* Hero CTA buttons: red by default, dark blue on hover, rounded */
#morphHero .hero-cta .btn {
  background: linear-gradient(135deg, #e53935, #b71c1c) !important;
  border-color: #ff8a8a !important;
  border-radius: 999px !important;
  color: #fff !important;
}
#morphHero .hero-cta .btn:hover {
  background: linear-gradient(135deg, #1d4f80, #0f2c4d) !important;
  border-color: #5b9fd4 !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(15, 44, 77, .4) !important;
}

html:not([data-theme="light"]) body.page-home .cat-mini-product__name,
html:not([data-theme="light"]) body.page-home .product-card:not(.blog-card) h3 {
  color: #fff !important;
}

body.page-home .product-card:not(.blog-card):hover,
body.page-home .cat-mini-product:hover {
  transform: translateY(-3px) !important;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease !important;
}

.sticky-item-quantity span {
  min-width: 1.4rem;
  text-align: center;
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
}

#stickyCartError {
  margin: .4rem 1rem;
  color: #c45c5c;
}

/* Chat launcher polish */
.chat-fab-wrap { z-index:140; width:52px; height:52px; }
.chat-fab {
  width:50px;
  height:50px;
  border:1px solid rgba(255,255,255,.35);
  background:linear-gradient(145deg,#ff5269 0%,#ed1834 52%,#b80d27 100%) !important;
  color:#fff !important;
  box-shadow:0 12px 30px rgba(198,13,40,.38),inset 0 1px 0 rgba(255,255,255,.32);
  transition:transform .24s cubic-bezier(.2,.8,.2,1),box-shadow .24s,filter .24s;
}
.chat-fab:hover {
  transform:translateY(-3px) scale(1.04);
  filter:brightness(1.06);
  box-shadow:0 16px 34px rgba(198,13,40,.46),inset 0 1px 0 rgba(255,255,255,.4);
}
.chat-fab:active { transform:scale(.94); }
.chat-fab svg {
  width:29px;
  height:29px;
  filter:drop-shadow(0 1px 2px rgba(70,0,12,.18));
  transition:transform .28s cubic-bezier(.2,.8,.2,1);
}
.chat-fab:hover svg { transform:rotate(-7deg) scale(1.06); }
.chat-fab-pulse {
  inset:-5px;
  border:1px solid rgba(255,92,116,.52);
  animation:chatFabHalo 2.8s ease-out infinite;
}
@keyframes chatFabHalo {
  0% { opacity:.7; transform:scale(.94); }
  100% { opacity:0; transform:scale(1.34); }
}
.chat-fab-tip {
  width:max-content;
  min-width:200px;
  max-width:min(78vw,270px);
  padding:.72rem .9rem;
  border:1px solid rgba(214,176,109,.42);
  border-radius:17px 17px 7px 17px;
  background:linear-gradient(145deg,#fff 0%,#fbf8f2 100%);
  color:#182235;
  text-align:right;
  direction:rtl;
  unicode-bidi:plaintext;
  box-shadow:0 16px 38px rgba(11,20,36,.22),0 2px 8px rgba(15,24,40,.08);
  transform-origin:bottom left;
}
.chat-fab-tip.is-below { transform-origin:top left; }
.chat-fab-tip::after {
  background:#fbf8f2;
  border-color:rgba(214,176,109,.42);
}
.chat-fab-tip-content { display:grid; gap:.34rem; }
.chat-fab-tip-text {
  display:block;
  max-width:100%;
  color:inherit;
  font-size:.86rem;
  font-weight:800;
  line-height:1.55;
  white-space:normal;
  overflow-wrap:anywhere;
  text-align:right;
}
.chat-fab-tip-status {
  display:inline-flex;
  align-items:center;
  gap:.38rem;
  color:#657187;
  font-size:.69rem;
  font-weight:650;
  line-height:1.3;
}
.chat-fab-tip-status i {
  width:7px;
  height:7px;
  border-radius:50%;
  background:#27b982;
  box-shadow:0 0 0 3px rgba(39,185,130,.12);
}
.chat-fab-tip-caret { display:none !important; }
html[data-theme="dark"] .chat-fab-tip {
  border-color:rgba(217,182,117,.25);
  background:linear-gradient(145deg,#242b38,#171d28);
  color:#f4f6fb;
}
html[data-theme="dark"] .chat-fab-tip::after {
  background:#202735;
  border-color:rgba(217,182,117,.25);
}
html[data-theme="dark"] .chat-fab-tip-status { color:#a8b2c2; }
@media (prefers-reduced-motion:reduce) {
  .chat-fab,.chat-fab svg,.chat-fab-pulse { animation:none !important; transition:none !important; }
}

/* Keep the shared support conversation dark on every site surface and theme. */
.chat-fab-wrap .chat-panel.tg-chat {
  left: 0;
  bottom: 70px;
  width: min(94vw, 410px);
  max-height: min(82vh, 650px);
  border: 1px solid #33445f !important;
  border-radius: 25px;
  background: #111b2b !important;
  color: #e8eef8 !important;
  color-scheme: dark;
  box-shadow: 0 28px 85px rgba(0, 0, 0, .48), 0 6px 22px rgba(37, 99, 235, .12);
}
.chat-fab-wrap .tg-chat-head {
  position: relative;
  min-height: 88px;
  padding: 1rem 1.1rem;
  overflow: hidden;
  border-bottom: 1px solid #34435a !important;
  background: linear-gradient(120deg, #172235, #1b2a40) !important;
  color: #e8eef8 !important;
}
.chat-fab-wrap .tg-chat-head::after {
  position: absolute;
  top: -52px;
  left: 56px;
  width: 190px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255, 255, 255, .045), 0 0 0 46px rgba(255, 255, 255, .035);
  content: "";
  pointer-events: none;
}
.chat-fab-wrap .tg-chat-peer { position: relative; z-index: 1; gap: .75rem; }
.chat-fab-wrap .tg-chat-avatar {
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid #405476;
  border-radius: 16px;
  background: #1b2a40 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .24);
}
.chat-fab-wrap .tg-chat-avatar img { width: 39px; height: 39px; object-fit: contain; filter: brightness(0) invert(1); }
.chat-fab-wrap .tg-chat-peer strong { font-size: .94rem; font-weight: 850; }
.chat-fab-wrap .tg-chat-status { margin-top: .18rem; color: rgba(255, 255, 255, .84); font-size: .68rem; }
.chat-fab-wrap .tg-dot { width: 8px; height: 8px; background: #7cf0bb; box-shadow: 0 0 0 4px rgba(124, 240, 187, .16), 0 0 12px rgba(124, 240, 187, .7); }
.chat-fab-wrap .tg-chat-x {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 13px;
  background: rgba(255, 255, 255, .13);
  backdrop-filter: blur(8px);
  transition: background .16s ease, transform .16s ease;
}
.chat-fab-wrap .tg-chat-x:hover { transform: rotate(90deg); background: rgba(255, 255, 255, .23); }
.chat-fab-wrap #chatIntro,
.chat-fab-wrap #chatRoom { background: #111b2b !important; color: #e8eef8 !important; }
.chat-fab-wrap #chatIntro.tg-chat-step { background-image: linear-gradient(180deg, #172235, #111b2b 65%) !important; }
.chat-fab-wrap .tg-welcome { padding: 1.3rem 1.2rem .45rem; }
.chat-fab-wrap .tg-welcome-ico {
  width: 62px;
  height: 62px;
  margin-bottom: .75rem;
  border: 1px solid #354b70;
  border-radius: 20px;
  background: linear-gradient(145deg, #223653, #2a2851);
  color: #c5d5ff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}
.chat-fab-wrap .tg-welcome h3 { margin-bottom: .35rem; color: #eef4ff !important; font-size: 1.05rem; font-weight: 850; }
.chat-fab-wrap .tg-welcome p,
.chat-fab-wrap .tg-label { color: #aebbd0 !important; }
.chat-fab-wrap .tg-welcome p { max-width: 290px; margin: auto; font-size: .76rem; line-height: 1.8; }
.chat-fab-wrap .tg-start-form { gap: .75rem; padding: .8rem 1.15rem 1.2rem; }
.chat-fab-wrap .tg-label { font-size: .72rem; font-weight: 800; }
.chat-fab-wrap .tg-input-wrap {
  min-height: 50px;
  border-color: #38475e !important;
  border-radius: 14px;
  background: #182438 !important;
  box-shadow: none !important;
}
.chat-fab-wrap .tg-input-wrap:focus-within { background: #1b2b44 !important; }
.chat-fab-wrap .tg-input-ico { color: #9bb7ff; }
.chat-fab-wrap .tg-field-input,
.chat-fab-wrap .tg-input { color: #eef4ff !important; font-size: .86rem; }
.chat-fab-wrap .tg-field-input::placeholder,
.chat-fab-wrap .tg-input::placeholder { color: #8190a8 !important; }
.chat-fab-wrap .tg-start-btn {
  min-height: 50px;
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(110deg, #2563eb, #5948dc) !important;
  box-shadow: 0 9px 21px rgba(53, 89, 204, .25);
  transition: transform .16s ease, box-shadow .16s ease;
}
.chat-fab-wrap .tg-start-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 25px rgba(53, 89, 204, .32); }
.chat-fab-wrap .tg-start-btn svg { transform: scaleX(-1); }
.chat-fab-wrap .tg-form-err { border: 1px solid #7f3543; background: #3a202b; color: #fecdd3; }
.chat-fab-wrap .tg-field-err { color: #fda4af; }
.chat-fab-wrap .tg-messages {
  background: radial-gradient(circle at 90% 0, rgba(37, 99, 235, .13), transparent 36%), #121d2e !important;
}
.chat-fab-wrap .tg-chat .chat-bubble.mine {
  border-radius: 16px 16px 5px 16px;
  border: 1px solid #405476 !important;
  background: linear-gradient(135deg, #263a5c, #302b55) !important;
  color: #eef4ff !important;
  box-shadow: 0 5px 14px rgba(37, 99, 235, .15);
}
.chat-fab-wrap .tg-chat .chat-bubble.theirs {
  border-radius: 16px 16px 16px 5px;
  border: 1px solid #34435a !important;
  background: #202d40 !important;
  color: #e8eef8 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .16);
}
.chat-fab-wrap .tg-compose {
  padding: .65rem .75rem calc(.65rem + env(safe-area-inset-bottom, 0px));
  border-color: #34435a !important;
  background: rgba(17, 27, 43, .96) !important;
}
.chat-fab-wrap .tg-input { min-height: 44px; border-radius: 15px !important; font-size: .83rem; }
.chat-fab-wrap .tg-send-btn { width: 42px; height: 42px; background: linear-gradient(135deg, #2563eb, #5948dc); box-shadow: 0 6px 15px rgba(53, 89, 204, .24); }
.chat-fab-wrap .tg-emoji-btn { border-radius: 12px; color: #c4d0e2 !important; }
.chat-fab-wrap .tg-emoji-sheet {
  max-height: 250px;
  border-color: #34435a !important;
  background: linear-gradient(180deg, #172235, #121d2e) !important;
  color: #e8eef8 !important;
}
.chat-fab-wrap .tg-emoji-sheet[hidden] { display: none !important; }
.chat-fab-wrap .tg-emoji-cats { gap: .35rem; padding: .55rem .65rem .4rem; border-color: #34435a; }
.chat-fab-wrap .tg-emoji-cat { width: 40px; height: 38px; border-radius: 12px; }
.chat-fab-wrap .tg-emoji-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .25rem; padding: .55rem .65rem .7rem; max-height: 190px; }
.chat-fab-wrap .tg-emoji-grid button { aspect-ratio: 1; border-radius: 12px; font-size: 1.45rem; }
.chat-fab-wrap .tg-emoji-btn,
.chat-fab-wrap .tg-emoji-cat,
.chat-fab-wrap .tg-emoji-grid button,
.chat-fab-wrap .tg-welcome-ico {
  font-family: "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
  font-variant-emoji: emoji;
}
.chat-fab-wrap:not(.wholesale-chat-widget) { width: auto; height: auto; }
.chat-fab-wrap:not(.wholesale-chat-widget) .chat-fab {
  width: 60px !important;
  height: 60px !important;
  min-width: 60px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 20px;
  background: linear-gradient(125deg, #2563eb, #5544dc 58%, #7c3aed) !important;
  box-shadow: 0 12px 30px rgba(46, 74, 202, .34), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.chat-fab-wrap:not(.wholesale-chat-widget) .chat-fab:hover {
  transform: translateY(-3px);
  filter: saturate(1.12);
  box-shadow: 0 17px 36px rgba(46, 74, 202, .4), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.chat-fab-wrap:not(.wholesale-chat-widget) .chat-fab svg { width: 22px; height: 22px; }
.chat-fab-wrap:not(.wholesale-chat-widget) .chat-fab-pulse {
  border-color: rgba(91, 124, 255, .48);
  border-radius: 24px;
}
@media (max-width: 900px) {
  .chat-fab-wrap:not(.wholesale-chat-widget) { left: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); }
  .chat-fab-wrap:not(.wholesale-chat-widget).is-open-chat .chat-panel.tg-chat {
    position: fixed !important;
    inset: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    left: 8px !important;
    right: 8px !important;
    top: 8px !important;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 24px !important;
  }
  .chat-fab-wrap:not(.wholesale-chat-widget).is-open-chat .chat-panel.tg-chat.is-room-mode { height: auto !important; max-height: none !important; }
}
@media (max-width: 480px) {
  .chat-fab-wrap:not(.wholesale-chat-widget) { left: .85rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
  .chat-fab-wrap:not(.wholesale-chat-widget) .chat-fab { width: 56px !important; height: 56px !important; min-width: 56px; border-radius: 18px; }
  .chat-fab-wrap:not(.wholesale-chat-widget).is-open-chat .chat-panel.tg-chat {
    inset: 5px 5px calc(5px + env(safe-area-inset-bottom, 0px)) !important;
    left: 5px !important;
    right: 5px !important;
    top: 5px !important;
    bottom: calc(5px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 21px !important;
  }
}

.chat-fab-actions {
  position: absolute;
  z-index: 142;
  left: 0;
  bottom: calc(100% + 12px);
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: .65rem;
}
.chat-fab-actions[hidden],
.chat-gift-backdrop[hidden],
.chat-reward-panel[hidden] { display: none !important; }
.chat-fab-action[hidden] { display:none !important; }
.chat-fab-action {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid rgba(196, 211, 241, .22);
  border-radius: 18px;
  background: linear-gradient(145deg, #1c2b43, #111b2b);
  color: #e8eef8;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .3);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px) scale(.82);
  transition: opacity .2s ease, transform .24s cubic-bezier(.2,.8,.2,1), border-color .2s ease, box-shadow .2s ease;
}
.is-actions-open .chat-fab-action { opacity: 1; transform: translateY(0) scale(1); }
.chat-fab-action:nth-child(2),
.chat-fab-action:nth-child(3) { transition-delay: .04s; }
.chat-fab-action svg { width: 23px; height: 23px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-fab-action--support { color: #a9c1ff; }
.chat-fab-action--gift { color: #f7d58d; }
.chat-fab-action--voice { color:#77e5b8; }
.chat-fab-action:hover,
.chat-fab-action:focus-visible { border-color: rgba(144, 171, 255, .62); box-shadow: 0 15px 34px rgba(0, 0, 0, .4), 0 0 0 3px rgba(91, 124, 255, .16); outline: 0; }
.chat-fab-action-label {
  position: absolute;
  left: calc(100% + 10px);
  padding: .35rem .6rem;
  border: 1px solid #34435a;
  border-radius: 10px;
  background: #172235;
  color: #e8eef8;
  font-size: .7rem;
  font-weight: 750;
  white-space: nowrap;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .2);
}
.chat-gift-backdrop {
  position: fixed;
  z-index: 14999;
  inset: 0;
  border: 0;
  background: rgba(4, 10, 20, .42);
  backdrop-filter: blur(3px);
}
.chat-reward-panel {
  position: fixed;
  z-index: 15001;
  left: 16px;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 32px));
  max-height: min(72vh, 560px);
  overflow: auto;
  border: 1px solid #34435a;
  border-radius: 26px;
  background: radial-gradient(ellipse at 90% 0, rgba(37, 99, 235, .16), transparent 42%), #111b2b;
  color: #e8eef8;
  box-shadow: 0 28px 85px rgba(0, 0, 0, .52);
  opacity: 0;
  transform: translateX(calc(-100% - 36px));
  transition: transform .34s cubic-bezier(.2,.8,.2,1), opacity .22s ease;
}
.is-open-gift .chat-reward-panel { opacity: 1; transform: translateX(0); }
.chat-reward-panel__head {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 82px;
  padding: 1rem;
  border-bottom: 1px solid #34435a;
  background: linear-gradient(120deg, #172235, #1b2a40);
}
.chat-reward-panel__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(247, 213, 141, .28);
  border-radius: 16px;
  background: linear-gradient(145deg, #3d352c, #25283a);
  font-size: 1.5rem;
}
.chat-reward-panel__head div { display: grid; gap: .16rem; flex: 1; }
.chat-reward-panel__head strong { color: #f3f7ff; font-size: .98rem; }
.chat-reward-panel__head div span { color: #aebbd0; font-size: .72rem; }
.chat-reward-panel__head button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #405476;
  border-radius: 12px;
  background: #1b2a40;
  color: #dce6f7;
  font-size: 1.35rem;
  cursor: pointer;
}
.chat-reward-panel__body { display: grid; gap: .8rem; padding: 1.2rem; }
.chat-reward-panel__eyebrow { color: #a9c1ff; font-size: .72rem; font-weight: 800; }
.chat-reward-panel__body h3 { margin: -.45rem 0 0; color: #eef4ff; font-size: 1.15rem; }
.chat-reward-panel__body p { margin: 0; color: #aebbd0; font-size: .86rem; line-height: 1.8; }
.chat-reward-panel__amount {
  width: fit-content;
  padding: .6rem .9rem;
  border: 1px solid rgba(124, 240, 187, .22);
  border-radius: 14px;
  background: rgba(39, 185, 130, .1);
  color: #c8f7df;
  font-size: 1.35rem;
}
.chat-reward-panel__amount small { font-size: .75rem; }
.chat-reward-panel__action,
.chat-reward-panel__status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 46px;
  padding: .65rem .85rem;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 14px;
  background: linear-gradient(120deg, #2563eb, #5948dc);
  color: #f3f7ff;
  font-size: .82rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.chat-reward-panel__status { border-color: #34435a; background: #1b2a40; color: #c4d0e2; }
.chat-reward-panel__status.is-claimed { border-color: rgba(124, 240, 187, .25); background: rgba(39, 185, 130, .12); color: #c8f7df; }
.chat-reward-panel__empty { min-height: 230px; align-content: center; justify-items: center; text-align: center; }
.chat-reward-panel__empty > span { font-size: 2.2rem; }
.chat-reward-panel__empty strong { color: #eef4ff; }
@media (max-width: 900px) {
  .chat-fab-actions { gap: .55rem; }
  .chat-fab-action { width: 50px; height: 50px; border-radius: 16px; }
  .chat-reward-panel {
    inset: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-height: none;
    border-radius: 24px;
  }
}
@media (max-width: 480px) {
  .chat-reward-panel {
    inset: 5px;
    bottom: calc(5px + env(safe-area-inset-bottom, 0px));
    border-radius: 21px;
  }
  .chat-reward-panel__body { padding: 1rem; }
}

/* Homepage carousels: one more visible item per breakpoint */
html body.page-home .kd-carousel__track > .kd-carousel__slide,
html body.page-home .kd-carousel__track > .product-card,
html body.page-home .kd-carousel__track > .cat-card {
  width: calc((100% - 6 * 1rem) / 7) !important;
  max-width: none !important;
  min-width: 0 !important;
}
@media (max-width: 1439px) {
  html body.page-home .kd-carousel__track > .kd-carousel__slide,
  html body.page-home .kd-carousel__track > .product-card,
  html body.page-home .kd-carousel__track > .cat-card {
    width: calc((100% - 5 * 1rem) / 6) !important;
  }
}
@media (max-width: 1203px) {
  html body.page-home .kd-carousel__track > .kd-carousel__slide,
  html body.page-home .kd-carousel__track > .product-card,
  html body.page-home .kd-carousel__track > .cat-card {
    width: calc((100% - 4 * 1rem) / 5) !important;
  }
}
@media (max-width: 967px) {
  html body.page-home .kd-carousel__track > .kd-carousel__slide,
  html body.page-home .kd-carousel__track > .product-card,
  html body.page-home .kd-carousel__track > .cat-card {
    width: calc((100% - 3 * 1rem) / 4) !important;
  }
}
@media (max-width: 800px) {
  html body.page-home .kd-carousel__track > .kd-carousel__slide,
  html body.page-home .kd-carousel__track > .product-card,
  html body.page-home .kd-carousel__track > .cat-card {
    width: calc((100% - 3 * .85rem) / 4) !important;
  }
}
@media (max-width: 731px) {
  html body.page-home .kd-carousel__track > .kd-carousel__slide,
  html body.page-home .kd-carousel__track > .product-card,
  html body.page-home .kd-carousel__track > .cat-card {
    width: calc((100% - 2 * .85rem) / 3) !important;
  }
}
@media (max-width: 495px) {
  html body.page-home .kd-carousel__track > .kd-carousel__slide,
  html body.page-home .kd-carousel__track > .product-card,
  html body.page-home .kd-carousel__track > .cat-card {
    width: calc((100% - .85rem) / 2) !important;
  }
}

/* Light mode: product cards outside the homepage keep their normal (white) colors on hover */
html[data-theme="light"] body:not(.page-home) .product-card:not(.blog-card):hover {
  color: #173d5e !important;
  background: #fff !important;
  border-color: #d9e2ea !important;
  box-shadow: 0 4px 14px rgba(23, 61, 94, .1) !important;
}

/* Product lists (shop, category, search): 5 columns on wide screens */
html body .product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 1rem !important;
}
@media (max-width: 1279px) {
  html body .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 1023px) {
  html body .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 719px) {
  html body .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: .75rem !important;
  }
}

/* Homepage blog carousel: show 5 articles at a time */
html body.page-home .kd-carousel--articles .kd-carousel__track > .product-card {
  width: calc((100% - 4 * 1rem) / 5) !important;
}
@media (max-width: 1203px) {
  html body.page-home .kd-carousel--articles .kd-carousel__track > .product-card {
    width: calc((100% - 3 * 1rem) / 4) !important;
  }
}
@media (max-width: 967px) {
  html body.page-home .kd-carousel--articles .kd-carousel__track > .product-card {
    width: calc((100% - 2 * 1rem) / 3) !important;
  }
}
@media (max-width: 731px) {
  html body.page-home .kd-carousel--articles .kd-carousel__track > .product-card {
    width: calc((100% - .85rem) / 2) !important;
  }
}

/* Homepage product tiles: image column + info column, 4 per row, 2 rows */
html body.page-home .cat-products-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1rem !important;
}
html body.page-home .cat-products-grid .cat-mini-product {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) !important;
  align-items: stretch !important;
  gap: .7rem !important;
  padding: .7rem !important;
  text-align: start !important;
  min-height: 150px;
}
html body.page-home .cat-products-grid .cat-mini-product__image {
  aspect-ratio: auto !important;
  height: 100% !important;
  min-height: 120px;
}
html body.page-home .cat-products-grid .cat-mini-product__info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
}
html body.page-home .cat-products-grid .cat-mini-product__name,
html body.page-home .cat-products-grid .cat-mini-product__desc {
  display: -webkit-box;
  width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  text-align: start;
}
html body.page-home .cat-products-grid .cat-mini-product__name {
  -webkit-line-clamp: 2;
  font-size: .85rem;
  line-height: 1.5;
}
html body.page-home .cat-products-grid .cat-mini-product__desc {
  -webkit-line-clamp: 2;
  font-size: .74rem;
  line-height: 1.6;
  opacity: .75;
}
html body.page-home .cat-products-grid .cat-mini-product__price {
  margin-top: auto !important;
  align-self: flex-start;
}
@media (max-width: 1099px) {
  html body.page-home .cat-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 720px) {
  html body.page-home .cat-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: .7rem !important;
  }
  html body.page-home .cat-products-grid .cat-mini-product {
    grid-template-columns: minmax(0, 1fr) !important;
    align-content: start;
    gap: .55rem !important;
    text-align: center !important;
  }
  html body.page-home .cat-products-grid .cat-mini-product__image {
    width: 100%;
    height: auto !important;
    min-height: 0;
    aspect-ratio: 4 / 3 !important;
  }
  html body.page-home .cat-products-grid .cat-mini-product__image img {
    object-fit: cover;
  }
  html body.page-home .cat-products-grid .cat-mini-product__info {
    align-items: center;
  }
  html body.page-home .cat-products-grid .cat-mini-product__name,
  html body.page-home .cat-products-grid .cat-mini-product__desc {
    text-align: center;
  }
  html body.page-home .cat-products-grid .cat-mini-product__price {
    align-self: center;
  }
}

/* ── هیرو جدید: چیدمان شبکه‌ای (بالا: ستون عکس + اسلایدر، وسط: ۴ عکس، تمام‌عرض، متن/لوگو/دکمه) ── */
html body .kd-hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(1480px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 16px 0 8px;
  box-sizing: border-box;
}
html body .kd-hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}
html body .kd-hero__cell,
html body .kd-hero__wide,
html body .kd-hero__slider {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(127, 127, 127, .08);
}
html body .kd-hero__cell img,
html body .kd-hero__wide img,
html body .kd-hero__wide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
html body .kd-hero__slider {
  aspect-ratio: 16 / 9;
}
html body .kd-hero__slides {
  position: absolute;
  inset: 0;
}
html body .kd-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
html body .kd-hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
html body .kd-hero__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
html body .kd-hero__caption {
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent);
  width: 100%;
  box-sizing: border-box;
  pointer-events: none;
}
html body .kd-hero__caption strong {
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 800;
}
html body .kd-hero__caption span {
  font-size: .95rem;
  opacity: .9;
}
html body .kd-hero__slide-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
html body .kd-hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, .45);
}
html body .kd-hero__nav--prev { inset-inline-start: 10px; }
html body .kd-hero__nav--next { inset-inline-end: 10px; }
html body .kd-hero__dots {
  position: absolute;
  bottom: 10px;
  inset-inline-end: 50%;
  transform: translateX(50%);
  z-index: 2;
  display: flex;
  gap: 6px;
}
html body .kd-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, .5);
}
html body .kd-hero__dot.is-active {
  background: #fff;
  width: 22px;
  border-radius: 6px;
}
html body .kd-hero__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
html body .kd-hero__grid .kd-hero__cell {
  height: 180px;
}
html body a.kd-hero__cell,
html body a.kd-hero__wide {
  display: block;
  color: inherit;
  text-decoration: none;
}
html body .kd-hero__wide {
  width: 100%;
  aspect-ratio: 21 / 8;
}
html body .kd-hero__text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(127, 127, 127, .06);
}
html body .kd-hero__logo {
  width: clamp(120px, 14vw, 200px);
  height: auto;
}
html body .kd-hero__copy {
  flex: 1 1 320px;
  min-width: 0;
}
html body .kd-hero__copy .eyebrow,
html body .kd-hero__copy h1,
html body .kd-hero__copy .morph-lead {
  margin: 0 0 6px;
}
html body .kd-hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
html[data-theme="dark"] body .kd-hero__copy,
html[data-theme="dark"] body .kd-hero__copy h1,
html[data-theme="dark"] body .kd-hero__copy .morph-lead,
html[data-theme="dark"] body .kd-hero__copy .eyebrow {
  color: #fff !important;
}
html[data-theme="light"] body .kd-hero__copy,
html[data-theme="light"] body .kd-hero__copy h1,
html[data-theme="light"] body .kd-hero__copy .morph-lead,
html[data-theme="light"] body .kd-hero__copy .eyebrow {
  color: #14213d !important;
}
html body .kd-hero__copy .brand-accent {
  color: #e53935;
}

@media (min-width: 720px) {
  html body .kd-hero__top {
    height: 450px;
  }
  html body .kd-hero__slider {
    aspect-ratio: auto;
    height: 100%;
  }
  html body .kd-hero__wide {
    aspect-ratio: auto;
    height: 150px;
  }
}
@media (max-width: 1023px) {
  html body .kd-hero__wide {
    aspect-ratio: 16 / 9;
  }
}
@media (max-width: 719px) {
  html body .kd-hero {
    width: calc(100% - 1rem);
    padding: 10px 10px 4px;
    gap: 10px;
  }
  html body .kd-hero__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  html body .kd-hero__slider {
    aspect-ratio: 4 / 5;
  }
  html body .kd-hero__slider {
    aspect-ratio: 4 / 5;
  }
  html body .kd-hero__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
  }
  html body .kd-hero__grid::-webkit-scrollbar {
    display: none;
  }
  html body .kd-hero__grid .kd-hero__cell {
    flex: 0 0 62%;
    scroll-snap-align: start;
  }
  html body .kd-hero__slider {
    aspect-ratio: auto;
    height: 180px;
  }
  html body .kd-hero__wide {
    aspect-ratio: auto;
    height: 70px;
  }
  html body .kd-hero__text {
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  html body .kd-hero__logo {
    margin: 0 auto;
  }
  html body .kd-hero__actions {
    justify-content: center;
  }
  html body .kd-hero__actions .btn {
    flex: 1 1 auto;
  }
}
body a {
  color: #c62828;
}
