@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&display=swap');
:root{color-scheme:dark;--bg:#03091b;--bg2:#061331;--surface:rgba(9,24,57,.72);--surface2:rgba(11,31,72,.88);--text:#f3f8ff;--muted:#9cb5d8;--line:rgba(53,139,255,.30);--blue:#087cff;--cyan:#20e7ff;--glow:rgba(0,126,255,.22);--shadow:0 18px 55px rgba(0,0,0,.26);--hero-grad:radial-gradient(ellipse at 75% 40%,rgba(0,100,255,.18),transparent 50%),linear-gradient(135deg,#03091b,#061633 55%,#03091b)}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:88px}body{margin:0;background:var(--bg);background-image:var(--hero-grad);background-attachment:fixed;color:var(--text);font-family:"Vazirmatn",Tahoma,sans-serif;transition:background-color .18s ease,color .18s ease;min-height:100vh}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer} .site-header,.icon-btn,.cart-btn,.benefit,.category-card,.empty-products,.closing-banner,footer,.logo-frame,.glow-chip,.secondary-btn,.primary-btn,.mobile-menu{transition:background-color .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease}
.site-header{height:76px;padding:0 clamp(16px,4vw,64px);display:flex;align-items:center;justify-content:space-between;gap:20px;position:sticky;top:0;z-index:20;background:rgba(3,9,27,.82);backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}
.brand-mini{display:flex;align-items:center;gap:10px;font-weight:900;white-space:nowrap}.mini-symbol{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--cyan);border-radius:11px;color:var(--cyan);box-shadow:0 0 20px var(--glow);font-size:19px}
.main-nav{display:flex;gap:clamp(14px,3vw,38px);color:var(--muted);font-size:13px}.main-nav a:hover{color:var(--cyan)}.header-actions{display:flex;align-items:center;gap:9px}.icon-btn,.cart-btn{height:40px;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:12px}.icon-btn{width:40px;font-size:20px}.cart-btn{padding:0 14px;display:flex;align-items:center;gap:10px;font-size:12px}.cart-btn b{display:grid;place-items:center;border-radius:50%;width:22px;height:22px;background:linear-gradient(135deg,var(--blue),var(--cyan));color:#00102a}.menu-toggle{display:none}
.hero{position:relative;overflow:hidden;min-height:570px;padding:54px clamp(18px,7vw,100px) 60px;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:30px}.hero-glow{position:absolute;width:480px;height:480px;right:20%;top:10%;border-radius:50%;background:var(--glow);filter:blur(90px);pointer-events:none}.hero-copy{position:relative;z-index:1;max-width:590px}.eyebrow{display:inline-flex;align-items:center;gap:9px;color:var(--cyan);font-size:11px;font-weight:700;letter-spacing:1.4px}.eyebrow i,.trust-dot{width:7px;height:7px;border-radius:50%;background:var(--cyan);box-shadow:0 0 13px var(--cyan)}h1{font-size:clamp(48px,7vw,84px);line-height:1.1;margin:22px 0 8px;font-weight:900;letter-spacing:-2px;background:linear-gradient(120deg,#fff 20%,#8abaff 56%,var(--cyan));-webkit-background-clip:text;background-clip:text;color:transparent}.hero-tagline{font-size:clamp(19px,2.5vw,27px);font-weight:700;margin:0 0 5px}.hero-en{margin:0;color:var(--cyan);font-size:12px;letter-spacing:3px;font-weight:800;direction:ltr;text-align:right}.hero-desc{color:var(--muted);font-size:14px;line-height:2.1;max-width:430px;margin:25px 0}.hero-actions{display:flex;flex-wrap:wrap;gap:11px}.primary-btn,.secondary-btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:46px;padding:0 20px;border-radius:13px;font-size:13px;font-weight:700}.primary-btn{color:#00132a;background:linear-gradient(115deg,#4c9dff,#27e4ff);box-shadow:0 8px 28px rgba(0,126,255,.24)}.primary-btn:hover{box-shadow:0 8px 34px rgba(0,210,255,.4);transform:translateY(-1px)}.secondary-btn{border:1px solid var(--line);background:var(--surface);color:var(--text)}.trust-line{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:11px;margin-top:27px}
.hero-art{position:relative;display:grid;place-items:center;min-height:440px}.orbit{position:absolute;aspect-ratio:1;border-radius:50%;pointer-events:none}.orbit-outer{width:min(100%,440px);border:1px solid rgba(0,139,255,.75);box-shadow:0 0 22px rgba(0,117,255,.2),inset 0 0 25px rgba(0,117,255,.08)}.orbit-inner{width:min(84%,370px);border:1px solid rgba(32,231,255,.26)}.logo-frame{position:relative;width:min(83%,370px);aspect-ratio:1;border-radius:50%;overflow:hidden;border:1px solid rgba(36,183,255,.72);box-shadow:0 0 35px rgba(0,120,255,.25),0 0 85px rgba(0,220,255,.08);background:#03091b}.logo-frame img{width:100%;height:100%;object-fit:cover;display:block}.glow-chip{position:absolute;border:1px solid var(--line);border-radius:12px;padding:10px 13px;background:var(--surface);backdrop-filter:blur(12px);font-size:10px;color:var(--cyan);box-shadow:var(--shadow)}.chip-one{left:0;top:19%;direction:ltr;letter-spacing:2px}.chip-two{right:0;bottom:19%}
.benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:0 clamp(18px,7vw,100px) 70px}.benefit{display:flex;align-items:center;gap:13px;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--surface);backdrop-filter:blur(12px)}.benefit-icon{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border-radius:13px;background:linear-gradient(135deg,rgba(0,124,255,.22),rgba(32,231,255,.08));border:1px solid var(--line);color:var(--cyan);font-size:23px}.benefit strong,.benefit small{display:block}.benefit strong{font-size:13px}.benefit small{font-size:10px;color:var(--muted);margin-top:5px}
.section-block{padding:20px clamp(18px,7vw,100px) 70px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:24px}.section-heading h2,.closing-banner h2{margin:9px 0 0;font-size:clamp(22px,3vw,32px)}.section-mark{color:var(--muted);font-size:11px;direction:ltr}.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.category-card{position:relative;min-height:170px;padding:23px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(140deg,var(--surface2),var(--surface));overflow:hidden}.category-card:before{content:"";position:absolute;width:120px;height:120px;left:-50px;bottom:-60px;border-radius:50%;background:var(--glow);filter:blur(22px)}.category-card:hover{border-color:var(--cyan);box-shadow:0 12px 35px var(--glow);transform:translateY(-2px)}.category-number{position:absolute;left:20px;top:20px;font-size:10px;color:var(--muted);direction:ltr}.category-symbol{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;color:var(--cyan);border:1px solid var(--line);background:rgba(0,126,255,.12);font-size:22px;margin-bottom:19px}.category-card strong,.category-card small{display:block;position:relative}.category-card strong{font-size:14px}.category-card small{color:var(--muted);font-size:11px;margin-top:7px}.card-arrow{position:absolute;left:20px;bottom:19px;color:var(--cyan)}
.featured-block{padding-top:0}.empty-products{padding:35px 20px;border:1px dashed var(--line);border-radius:18px;text-align:center;background:var(--surface)}.empty-icon{display:block;font-size:29px;color:var(--cyan);margin-bottom:10px}.empty-products strong{font-size:14px}.empty-products p{font-size:12px;color:var(--muted);line-height:2}
.closing-banner{margin:0 clamp(18px,7vw,100px) 55px;padding:28px 32px;display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid var(--line);border-radius:20px;background:radial-gradient(ellipse at left,rgba(0,126,255,.16),transparent 60%),var(--surface)}.closing-banner p{color:var(--muted);font-size:12px}.back-top{white-space:nowrap;border:1px solid var(--line);padding:11px 15px;border-radius:12px;font-size:12px;color:var(--cyan)}
footer{padding:24px clamp(18px,7vw,100px);border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:14px;color:var(--muted);font-size:11px}.footer-brand{color:var(--text);font-weight:900}.footer-brand span{color:var(--cyan);font-size:10px;letter-spacing:2px;direction:ltr;margin-right:8px}.mobile-menu{position:fixed;z-index:30;top:76px;right:12px;left:12px;padding:10px;border:1px solid var(--line);border-radius:15px;background:var(--surface2);box-shadow:var(--shadow);backdrop-filter:blur(16px)}.mobile-menu a{display:block;padding:13px;border-radius:9px;font-size:13px}.mobile-menu a:hover{background:var(--glow);color:var(--cyan)}
body.light{color-scheme:light;--bg:#eef5ff;--bg2:#e6f0ff;--surface:rgba(255,255,255,.76);--surface2:rgba(255,255,255,.91);--text:#10264b;--muted:#526987;--line:rgba(15,105,218,.22);--blue:#086de4;--cyan:#007fbd;--glow:rgba(0,126,255,.13);--shadow:0 18px 45px rgba(20,73,135,.12);--hero-grad:radial-gradient(ellipse at 75% 40%,rgba(0,100,255,.11),transparent 50%),linear-gradient(135deg,#f5f9ff,#e7f1ff 55%,#f8fbff)}
body.light .site-header{background:rgba(245,249,255,.88)}body.light .logo-frame{border-color:rgba(0,110,220,.5)}body.light .primary-btn{color:#fff}
@media(max-width:760px){.site-header{height:64px;padding:0 14px;gap:8px}.main-nav{display:none}.menu-toggle{display:block}.brand-mini{font-size:14px}.mini-symbol{width:32px;height:32px}.header-actions{gap:6px}.icon-btn{width:36px;height:36px}.cart-btn{height:36px;padding:0 10px}.mobile-menu{top:64px}.hero{padding:34px 18px 36px;grid-template-columns:1fr;gap:12px;min-height:unset}.hero-copy{order:1}.hero-art{order:0;min-height:290px}.logo-frame{width:min(68%,260px)}.orbit-outer{width:min(80%,310px)}.orbit-inner{width:min(68%,260px)}.hero-glow{right:5%;top:0;width:300px;height:300px}.hero h1{font-size:53px;margin-top:15px}.hero-tagline{font-size:20px}.hero-en{font-size:10px;letter-spacing:2px}.hero-desc{font-size:13px;margin:18px 0}.trust-line{margin-top:20px}.chip-one{left:3%;top:17%}.chip-two{right:1%;bottom:16%}.benefits{margin:0 14px 45px;grid-template-columns:1fr;gap:9px}.benefit{padding:12px 14px}.benefit-icon{width:37px;height:37px}.section-block{padding:8px 14px 46px}.section-heading{margin-bottom:17px}.category-grid{grid-template-columns:1fr;gap:10px}.category-card{min-height:135px;padding:17px}.category-symbol{margin-bottom:13px;width:38px;height:38px}.category-number{left:16px;top:16px}.card-arrow{left:16px;bottom:15px}.empty-products{padding:27px 16px}.closing-banner{margin:0 14px 38px;padding:22px 18px;align-items:flex-start;flex-direction:column}.closing-banner h2{font-size:22px}.back-top{align-self:flex-start}footer{padding:21px 16px;flex-direction:column;align-items:flex-start;gap:7px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* KALANJ DESIGN REFRESH */
.brand-hero{
  position:relative;isolation:isolate;display:grid;place-items:center;
  min-height:clamp(330px,48vw,570px);padding:34px 16px;overflow:hidden;
  background:radial-gradient(ellipse at 50% 48%,rgba(0,120,255,.19),transparent 54%);
}
.brand-halo{
  position:absolute;width:min(75vw,460px);aspect-ratio:1;border-radius:50%;
  background:rgba(0,135,255,.12);filter:blur(65px);pointer-events:none;
}
.main-logo-frame{
  position:relative;isolation:isolate;width:min(76vw,390px);aspect-ratio:1;
  display:grid;place-items:center;border-radius:50%;overflow:hidden;
  cursor:pointer;touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  filter:drop-shadow(0 0 24px rgba(0,135,255,.22));
}
.main-logo-frame img{
  display:block;width:100%;height:100%;object-fit:contain;
  user-select:none;-webkit-user-drag:none;
}


.section-block{min-width:0}
.section-heading h2{font-weight:800}
.product-section{padding-top:10px}
.product-rail{
  display:flex;gap:15px;overflow-x:auto;overscroll-behavior-x:contain;
  scroll-snap-type:x proximity;scrollbar-width:thin;
  scrollbar-color:rgba(32,180,255,.45) transparent;padding:5px 2px 17px;
  -webkit-overflow-scrolling:touch;
}
.product-rail>.product-card{flex:0 0 clamp(210px,25vw,270px);scroll-snap-align:start}
.product-card{
  min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:19px;
  background:linear-gradient(145deg,var(--surface2),var(--surface));
  box-shadow:0 9px 28px rgba(0,0,0,.13);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.product-card:hover{transform:translateY(-3px);border-color:rgba(32,231,255,.65);box-shadow:0 14px 35px var(--glow)}
.product-picture{
  position:relative;display:grid;place-items:center;min-height:155px;
  overflow:hidden;background:radial-gradient(ellipse at 50% 25%,rgba(0,155,255,.24),transparent 68%),linear-gradient(145deg,#071b3e,#06102a);
}
.product-placeholder{font-size:52px;color:var(--cyan);text-shadow:0 0 25px rgba(32,231,255,.45)}
.picture-two{background:radial-gradient(ellipse at 65% 35%,rgba(0,225,255,.2),transparent 65%),linear-gradient(145deg,#09284a,#07102a)}
.picture-three{background:radial-gradient(ellipse at 35% 30%,rgba(68,91,255,.32),transparent 65%),linear-gradient(145deg,#101a46,#06102a)}
.product-info{padding:14px}
.product-info h3{margin:0;font-size:13px;font-weight:700}
.product-price{margin:8px 0 13px;color:var(--cyan);font-size:12px}
.product-actions{display:flex;align-items:center;gap:8px}
.favorite-btn,.add-cart-btn{
  min-height:36px;border:1px solid var(--line);border-radius:10px;
  color:var(--text);background:var(--surface);padding:0 11px;
}
.favorite-btn{min-width:38px;font-size:19px}
.favorite-btn[aria-pressed="true"]{color:#ff83bc;border-color:#ff83bc}
.add-cart-btn{flex:1;font-size:11px;background:linear-gradient(110deg,rgba(0,124,255,.22),rgba(32,231,255,.09))}
.compact .product-picture{min-height:125px}
.compact .product-info{padding:12px}
.category-row{margin-top:24px}
.category-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.category-title h3{font-size:16px;margin:0}
.category-title>span{color:var(--cyan);font-size:11px}
.brands-section{padding-top:12px}
.brand-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.brand-slot{
  min-height:100px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:7px;text-align:center;padding:14px;border:1px dashed var(--line);
  border-radius:15px;background:var(--surface);color:var(--muted);font-size:11px;
}
.brand-slot>span{font-size:22px;color:var(--cyan)}
.brand-slot strong{font-size:12px;color:var(--text)}
.brand-slot small{font-size:10px}
button:focus-visible,a:focus-visible,.main-logo-frame:focus-visible{
  outline:2px solid var(--cyan);outline-offset:3px;
}
body.light .product-picture{background-color:#e2efff}
@media(min-width:761px){
  .brand-hero{min-height:clamp(390px,42vw,570px)}
  .product-section,.categories-section,.brands-section{padding-left:clamp(28px,7vw,100px);padding-right:clamp(28px,7vw,100px)}
}
@media(max-width:760px){
  .brand-hero{min-height:300px;padding:24px 12px}
  .main-logo-frame{width:min(78vw,310px)}
  .section-heading{align-items:center}
  .section-heading h2{font-size:22px}
  .product-rail{gap:11px}
  .product-rail>.product-card{flex-basis:72vw;max-width:290px}
  .product-rail>.product-card.compact{flex-basis:62vw;max-width:235px}
  .brand-slots{grid-template-columns:1fr}
  .brand-slot{min-height:78px}
  .closing-banner p{line-height:1.9}
}
@media(prefers-reduced-motion:reduce){
  .product-card{transition:none}
}

/* KALANJ — unified neon finish */
.brand-hero {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  isolation: isolate;
}

.brand-halo {
  background: rgba(0, 145, 255, .2);
  filter: blur(72px);
  opacity: .9;
}

.main-logo-frame {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 0 18px rgba(0, 160, 255, .35));
}

body:not(.light) .main-logo-frame {
  filter: drop-shadow(0 0 20px rgba(0, 190, 255, .42));
}

body.light .main-logo-frame {
  filter: drop-shadow(0 0 18px rgba(18, 39, 105, .28));
}

.product-card,
.brand-mini,
.icon-btn,
.cart-btn,
.mobile-menu,
.closing-banner {
  border: 1px solid rgba(0, 190, 255, .52);
  box-shadow: 0 0 12px rgba(0, 135, 255, .09);
}

body.light .product-card,
body.light .brand-mini,
body.light .icon-btn,
body.light .cart-btn,
body.light .mobile-menu {
  border-color: rgba(18, 39, 105, .55);
  box-shadow: 0 0 12px rgba(18, 39, 105, .12);
}

.product-card:hover {
  border-color: rgba(32, 231, 255, .9);
  box-shadow: 0 0 22px rgba(0, 190, 255, .2);
}

body.light .product-card:hover {
  border-color: #172c70;
  box-shadow: 0 0 20px rgba(18, 39, 105, .2);
}

.product-rail {
  scrollbar-width: none;
}

.product-rail::-webkit-scrollbar {
  display: none;
}

footer {
  border-top: 1px solid rgba(0, 190, 255, .4);
  background: transparent;
}

body.light footer {
  border-top-color: rgba(18, 39, 105, .4);
}

@media (prefers-reduced-motion: no-preference) {
  .product-card,
  .icon-btn,
  .cart-btn {
    transition: border-color .22s ease, box-shadow .22s ease,
                transform .22s ease;
  }
}

/* ===== KALANJ: NEON ACROSS THE WHOLE PAGE ===== */
body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 8%, rgba(0, 139, 255, .20), transparent 43%),
    radial-gradient(ellipse at 4% 42%, rgba(0, 220, 255, .10), transparent 35%),
    radial-gradient(ellipse at 96% 73%, rgba(0, 94, 255, .14), transparent 38%),
    repeating-linear-gradient(
      115deg,
      transparent 0,
      transparent 115px,
      rgba(0, 174, 255, .025) 116px,
      rgba(0, 174, 255, .025) 118px,
      transparent 119px,
      transparent 230px
    );
  opacity: 1;
}

body.light::before {
  background:
    linear-gradient(180deg, rgba(19, 40, 105, .055), transparent 24%, rgba(19, 40, 105, .035) 72%, transparent),
    repeating-linear-gradient(
      115deg,
      transparent 0,
      transparent 105px,
      rgba(19, 40, 105, .075) 106px,
      rgba(19, 40, 105, .075) 109px,
      transparent 110px,
      transparent 215px
    ),
    radial-gradient(ellipse at 50% 10%, rgba(19, 40, 105, .12), transparent 48%);
}

/* پس‌زمینهٔ لوگو بدون قاب و سطح جدا */
.brand-hero,
.main-logo-frame {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.brand-hero {
  overflow: hidden;
}

.brand-halo {
  width: min(80vw, 520px);
  background: rgba(0, 160, 255, .18);
  filter: blur(85px);
}

.main-logo-frame {
  filter: drop-shadow(0 0 22px rgba(0, 190, 255, .38));
}

body:not(.light) .main-logo-frame img {
  mix-blend-mode: screen;
}

body.light .main-logo-frame {
  filter: drop-shadow(0 0 20px rgba(19, 40, 105, .30));
}

body.light .main-logo-frame img {
  mix-blend-mode: multiply;
}

/* حاشیهٔ نئونی کارت‌ها در حالت شب */
.product-card {
  border-color: rgba(0, 190, 255, .48);
  box-shadow:
    0 0 0 1px rgba(0, 145, 255, .06),
    0 0 17px rgba(0, 145, 255, .09);
}

body:not(.light) .product-card:hover {
  border-color: rgba(32, 231, 255, .95);
  box-shadow: 0 0 24px rgba(0, 190, 255, .24);
}

/* حاشیهٔ سرمه‌ای در حالت روز */
body.light .product-card {
  border-color: rgba(19, 40, 105, .56);
  box-shadow:
    0 0 0 1px rgba(19, 40, 105, .05),
    0 0 16px rgba(19, 40, 105, .10);
}

body.light .product-card:hover {
  border-color: #172c70;
  box-shadow: 0 0 23px rgba(19, 40, 105, .22);
}

/* نقطه‌های موقعیت کارت‌ها */
.rail-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 27px;
  margin: 2px auto 17px;
  direction: ltr;
}

.rail-dot {
  display: block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  padding: 0;
  border: 1px solid rgba(0, 190, 255, .7);
  border-radius: 50%;
  background: rgba(0, 145, 255, .13);
  box-shadow: 0 0 5px rgba(0, 160, 255, .12);
  cursor: pointer;
  transition:
    width .22s ease,
    border-radius .22s ease,
    background .22s ease,
    box-shadow .22s ease;
}

.rail-dot.active {
  width: 21px;
  flex-basis: 21px;
  border-radius: 8px;
  border-color: #48eaff;
  background: #48eaff;
  box-shadow: 0 0 7px #21dfff, 0 0 17px rgba(33, 223, 255, .72);
}

body.light .rail-dot {
  border-color: rgba(19, 40, 105, .68);
  background: rgba(19, 40, 105, .12);
  box-shadow: 0 0 7px rgba(19, 40, 105, .14);
}

body.light .rail-dot.active {
  border-color: #172c70;
  background: #172c70;
  box-shadow: 0 0 8px rgba(19, 40, 105, .55), 0 0 17px rgba(19, 40, 105, .24);
}

.product-rail {
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.product-rail::-webkit-scrollbar {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .rail-dot {
    transition: none;
  }
}

/* ===== KALANJ: VISIBLE AMBIENT NEON ===== */
body {
  background-color: var(--bg, #03091b);
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: -18%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 22%, rgba(0, 120, 255, .28), transparent 32%),
    radial-gradient(ellipse at 82% 36%, rgba(0, 225, 255, .17), transparent 30%),
    radial-gradient(ellipse at 55% 82%, rgba(0, 80, 255, .23), transparent 34%),
    repeating-linear-gradient(115deg, transparent 0 95px, rgba(0, 190, 255, .045) 97px 100px, transparent 102px 195px);
  opacity: .95;
  background-size: 140% 140%, 130% 130%, 150% 150%, auto;
  animation: kalanjAmbientNight 18s ease-in-out infinite alternate;
}

@keyframes kalanjAmbientNight {
  0% { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  50% { transform: translate3d(1.5%, 1%, 0) scale(1.045); }
  100% { transform: translate3d(-.5%, 1.5%, 0) scale(1.02); }
}

body.light::before {
  background:
    linear-gradient(112deg, transparent 20%, rgba(18, 38, 105, .11) 35%, transparent 49%),
    linear-gradient(112deg, transparent 55%, rgba(18, 38, 105, .075) 68%, transparent 82%),
    radial-gradient(ellipse at 50% 10%, rgba(24, 50, 125, .15), transparent 43%),
    repeating-linear-gradient(115deg, transparent 0 112px, rgba(18, 38, 105, .09) 114px 117px, transparent 119px 225px);
  animation: kalanjAmbientDay 23s ease-in-out infinite alternate;
}

@keyframes kalanjAmbientDay {
  0% { transform: translate3d(1%, -1%, 0) scale(1); }
  100% { transform: translate3d(-1%, 1%, 0) scale(1.035); }
}

/* لوگو با حس شیشه‌ای؛ بدون قاب مستقل */
.brand-hero,
.main-logo-frame {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.main-logo-frame {
  filter:
    drop-shadow(0 0 12px rgba(0, 160, 255, .30))
    drop-shadow(0 0 32px rgba(0, 195, 255, .20));
}

body:not(.light) .main-logo-frame {
  filter:
    drop-shadow(0 0 10px rgba(28, 160, 255, .42))
    drop-shadow(0 0 28px rgba(0, 210, 255, .30))
    drop-shadow(0 0 54px rgba(0, 105, 255, .16));
}

body:not(.light) .main-logo-frame img {
  mix-blend-mode: screen;
}

body.light .main-logo-frame {
  filter:
    drop-shadow(0 0 12px rgba(18, 38, 105, .26))
    drop-shadow(0 0 30px rgba(18, 38, 105, .13));
}

/* پروفایل در هدر */
.profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.profile-btn svg,
.support-float svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* دکمهٔ گرد شناور پشتیبانی */
.support-float {
  position: fixed;
  z-index: 1000;
  left: max(17px, env(safe-area-inset-left));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(48, 218, 255, .9);
  border-radius: 50%;
  color: #a4f5ff;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(4, 39, 82, .96), rgba(3, 13, 37, .97));
  box-shadow: 0 0 12px rgba(0, 190, 255, .45), 0 0 30px rgba(0, 130, 255, .25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .22s ease, box-shadow .22s ease;
}

.support-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 16px rgba(0, 220, 255, .65), 0 0 38px rgba(0, 130, 255, .35);
}

body.light .support-float {
  color: #172c70;
  border-color: #172c70;
  background: rgba(245, 248, 255, .94);
  box-shadow: 0 0 12px rgba(18, 38, 105, .28), 0 0 28px rgba(18, 38, 105, .13);
}

@media (max-width: 760px) {
  .header-actions { gap: 7px; }
  .profile-btn, #themeToggle, #menuToggle {
    min-width: 38px;
    min-height: 38px;
  }
  .support-float {
    width: 52px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none !important; }
}

/* KALANJ — compact sticky logo with smooth scroll */
:root {
  --kalanj-header-h: 76px;
  --kalanj-hero-h: 158px;
  --kalanj-logo-w: 154px;
}

.brand-hero {
  position: sticky !important;
  top: var(--kalanj-header-h) !important;
  z-index: 25 !important;
  box-sizing: border-box !important;
  height: var(--kalanj-hero-h, 158px) !important;
  min-height: 0 !important;
  padding: 5px 0 !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  isolation: isolate;
  transition: height 90ms linear, padding 90ms linear;
}

.brand-hero .brand-halo {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.brand-hero .main-logo-frame {
  width: var(--kalanj-logo-w, 154px) !important;
  max-width: min(42vw, 230px) !important;
  height: auto !important;
  max-height: 100% !important;
  aspect-ratio: 1 / 1;
  flex: 0 1 auto !important;
  margin: 0 auto !important;
  transition: width 90ms linear, filter 180ms ease;
}

.brand-hero .main-logo-frame img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
}

body.logo-compact .brand-hero {
  padding-top: 2px !important;
  padding-bottom: 2px !important;
}

@media (max-width: 760px) {
  :root {
    --kalanj-header-h: 62px;
    --kalanj-hero-h: 138px;
    --kalanj-logo-w: 132px;
  }

  .brand-hero {
    padding: 3px 0 !important;
  }

  .brand-hero .main-logo-frame {
    max-width: 38vw !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-hero,
  .brand-hero .main-logo-frame {
    transition: none !important;
  }
}

/* KALANJ — balanced logo, centered compact state */
@media (max-width: 760px) {
  :root {
    --kalanj-hero-h: 150px;
    --kalanj-logo-w: 146px;
  }
}
@media (min-width: 761px) {
  :root {
    --kalanj-hero-h: 170px;
    --kalanj-logo-w: 170px;
  }
}

/* Reserve the same space as the logo so product cards never slide underneath */
.brand-hero {
  flex-shrink: 0 !important;
  scroll-margin-top: var(--kalanj-header-h) !important;
}

.brand-hero .main-logo-frame {
  position: relative;
  z-index: 1;
  transform: translateY(0);
  will-change: width, transform;
}

/* While scrolling, center the smaller mark in the fixed header */
body.logo-compact .brand-hero {
  z-index: 110 !important;
}

body.logo-compact .brand-hero .main-logo-frame {
  transform: translateY(calc(-1 * var(--kalanj-header-h)));
}

/* Keep the header controls above the page and leave their outer spacing intact */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 120 !important;
}

@media (prefers-reduced-motion: reduce) {
  .brand-hero .main-logo-frame {
    transform: none !important;
  }
}

/* KALANJ FIX: stable layout, centered compact logo, no scroll-jank */
@media (max-width: 760px) {
  :root {
    --kalanj-header-h: 62px;
    --kalanj-hero-h: 150px;
  }

  .brand-hero {
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
  }

  .brand-hero .main-logo-frame {
    position: relative;
    width: 146px !important;
    max-width: 146px !important;
    max-height: 146px !important;
    transform: none !important;
    transition: width 180ms ease-out, max-width 180ms ease-out,
                filter 180ms ease-out !important;
    will-change: width;
  }

  body.logo-compact .brand-hero .main-logo-frame {
    position: fixed !important;
    z-index: 130 !important;
    top: 2px !important;
    left: 50% !important;
    right: auto !important;
    width: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
    height: 58px !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
    object-fit: contain !important;
  }
}

@media (min-width: 761px) {
  .brand-hero {
    height: 170px !important;
    min-height: 170px !important;
    max-height: 170px !important;
    flex-shrink: 0 !important;
  }

  .brand-hero .main-logo-frame {
    width: 170px !important;
    max-width: 170px !important;
    transition: width 180ms ease-out, filter 180ms ease-out !important;
  }

  body.logo-compact .brand-hero .main-logo-frame {
    position: fixed !important;
    z-index: 130 !important;
    top: 5px !important;
    left: 50% !important;
    right: auto !important;
    width: 60px !important;
    max-width: 60px !important;
    height: 60px !important;
    max-height: 60px !important;
    transform: translateX(-50%) !important;
  }
}

/* Keep the header above page content; logo is centered independently */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 120 !important;
}

/* Featured product showcase: shorter cards, informational only */
.kalanj-feature-strip {
  margin-top: 8px !important;
  margin-bottom: 18px !important;
}

.kalanj-feature-strip :is(
  .product-card, .product-item, .showcase-card,
  .featured-card, .slide-card, .swiper-slide
) {
  min-height: 0 !important;
  height: auto !important;
  max-height: 230px !important;
  overflow: hidden !important;
}

.kalanj-feature-strip :is(
  .product-card img, .product-item img, .showcase-card img,
  .featured-card img, .slide-card img, .swiper-slide img
) {
  max-height: 125px !important;
  object-fit: contain !important;
}

.kalanj-feature-strip :is(
  .add-to-cart, .add-cart, .wishlist, .favorite-btn,
  .heart-btn, .wishlist-btn, .favorite, .product-favorite,
  [aria-label*="سبد"], [aria-label*="علاقه"],
  [title*="علاقه"], [title*="سبد"]
) {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .brand-hero .main-logo-frame {
    transition: none !important;
  }
}

/* KALANJ FINAL OVERRIDE: stable hero and separate floating logo */
.brand-hero {
  position: relative !important;
  top: auto !important;
  height: 224px !important;
  min-height: 224px !important;
  max-height: 224px !important;
  padding: 8px 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  flex-shrink: 0 !important;
  z-index: 1 !important;
}

.brand-hero .brand-halo {
  height: 100% !important;
  min-height: 0 !important;
}

.brand-hero .main-logo-frame {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 184px !important;
  max-width: 184px !important;
  height: 184px !important;
  max-height: 184px !important;
  margin: 0 auto !important;
  opacity: 1 !important;
  transform: none !important;
  transition: filter .2s ease !important;
  z-index: 1 !important;
}

/* Disable old rule that made the original logo jump into fixed positioning */
body.logo-compact .brand-hero .main-logo-frame {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 184px !important;
  max-width: 184px !important;
  height: 184px !important;
  max-height: 184px !important;
  transform: none !important;
}

/* Independent logo that smoothly settles into the center of the header */
.kalanj-header-logo {
  position: fixed !important;
  top: 3px !important;
  left: 50% !important;
  right: auto !important;
  width: 58px !important;
  height: 58px !important;
  max-width: 58px !important;
  max-height: 58px !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 150 !important;
  transform: translate3d(-50%, -9px, 0) scale(.82) !important;
  transform-origin: center center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity .2s ease, transform .24s ease, visibility .2s ease !important;
  will-change: transform, opacity;
}

.kalanj-header-logo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.kalanj-header-logo.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate3d(-50%, 0, 0) scale(1) !important;
  pointer-events: auto !important;
}

/* Featured strip: compact, informational cards only */
#featured {
  padding-top: 5px !important;
}

#featured .section-heading {
  margin-bottom: 9px !important;
}

#featured .featured-rail {
  gap: 10px !important;
  padding-top: 3px !important;
  padding-bottom: 12px !important;
  scroll-behavior: auto !important;
  align-items: stretch !important;
}

#featured .featured-rail > .product-card {
  flex: 0 0 178px !important;
  width: 178px !important;
  min-width: 0 !important;
  height: 190px !important;
  min-height: 0 !important;
  max-height: 190px !important;
  overflow: hidden !important;
  transform: none !important;
}

#featured .featured-rail .product-picture {
  height: 104px !important;
  min-height: 104px !important;
  max-height: 104px !important;
  overflow: hidden !important;
}

#featured .featured-rail .product-picture img {
  max-height: 100% !important;
  object-fit: contain !important;
}

#featured .featured-rail .product-info {
  padding: 7px 10px !important;
  gap: 4px !important;
}

#featured .featured-rail .product-actions,
#featured .featured-rail .favorite-btn,
#featured .featured-rail .add-cart-btn {
  display: none !important;
}

#featured .featured-rail .product-card h3 {
  margin: 0 !important;
  font-size: 12px !important;
}

#featured .featured-rail .product-card p {
  margin: 2px 0 !important;
  font-size: 11px !important;
}

@media (max-width: 760px) {
  .brand-hero {
    height: 210px !important;
    min-height: 210px !important;
    max-height: 210px !important;
  }

  .brand-hero .main-logo-frame,
  body.logo-compact .brand-hero .main-logo-frame {
    width: 174px !important;
    max-width: 174px !important;
    height: 174px !important;
    max-height: 174px !important;
  }

  .kalanj-header-logo {
    top: 3px !important;
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
  }

  #featured .featured-rail > .product-card {
    flex-basis: 158px !important;
    width: 158px !important;
    height: 174px !important;
    max-height: 174px !important;
  }

  #featured .featured-rail .product-picture {
    height: 92px !important;
    min-height: 92px !important;
    max-height: 92px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kalanj-header-logo {
    transition: none !important;
  }
}


/* KALANJ HEADER MOTION — refined */
.site-header {
  position: sticky;
  isolation: isolate;
  overflow: visible;
  gap: 10px;
}
.site-header > * {
  position: relative;
  z-index: 2;
}
.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  width: 50.5%;
  pointer-events: none;
  background: rgba(3, 9, 27, .94);
  border-bottom: 1px solid var(--line);
  transition: transform .62s cubic-bezier(.22,.8,.22,1),
              background-color .35s ease,
              box-shadow .45s ease;
  will-change: transform;
}
.site-header::before {
  left: 0;
  transform: translateX(-105%);
  border-right: 1px solid rgba(0,220,255,.3);
  border-radius: 0 0 30px 0;
}
.site-header::after {
  right: 0;
  transform: translateX(105%);
  border-left: 1px solid rgba(0,220,255,.3);
  border-radius: 0 0 0 30px;
}
body.logo-compact .site-header::before,
body.logo-compact .site-header::after {
  transform: translateX(0);
  box-shadow: 0 7px 24px rgba(0,150,255,.12);
}
body.logo-compact .site-header {
  background: transparent;
  border-bottom-color: transparent;
}
body.light.logo-compact .site-header::before,
body.light.logo-compact .site-header::after {
  background: rgba(239,247,255,.96);
  border-color: rgba(0,125,255,.25);
}
.header-actions {
  gap: 6px;
  margin-inline-start: 8px;
}
.icon-btn {
  width: 34px;
  height: 34px;
  font-size: 17px;
  border-radius: 10px;
}
.cart-icon-btn {
  width: 38px;
  height: 34px;
  min-width: 38px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 10px;
}
.cart-icon-btn svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}
.cart-icon-btn b {
  width: 17px;
  height: 17px;
  font-size: 10px;
  line-height: 1;
}
.brand-mini,
.main-nav,
.header-actions {
  flex-shrink: 1;
  min-width: 0;
}
.category-row {
  margin-top: 12px !important;
  padding-top: 0 !important;
}
.categories-section > .section-heading {
  margin-bottom: 12px;
}
.category-row + .category-row {
  margin-top: 12px !important;
}
.product-section {
  padding-bottom: 24px !important;
}
@media (max-width: 760px) {
  .site-header {
    padding-inline: 9px;
    gap: 4px;
  }
  .header-actions {
    gap: 4px;
    margin-inline-start: 2px;
  }
  .icon-btn {
    width: 31px;
    height: 31px;
    font-size: 15px;
  }
  .cart-icon-btn {
    width: 34px;
    min-width: 34px;
    height: 31px;
    padding: 0 4px;
  }
  .cart-icon-btn svg {
    width: 17px;
    height: 17px;
  }
  .cart-icon-btn b {
    width: 15px;
    height: 15px;
    font-size: 9px;
  }
  .brand-mini {
    font-size: 12px;
  }
  .mini-symbol {
    width: 27px;
    height: 27px;
  }
  .category-row,
  .category-row + .category-row {
    margin-top: 10px !important;
  }
  .product-section {
    padding-bottom: 18px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-header::before,
  .site-header::after {
    transition-duration: .01ms;
  }
}


/* KALANJ MOTION REPAIR — 2026-10-21 */
html, body {
  max-width: 100%;
  overflow-x: clip;
}
.site-header {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  width: 100% !important;
  height: 76px !important;
  z-index: 1000 !important;
  isolation: isolate;
  overflow: visible !important;
  background: rgba(3, 9, 27, .94) !important;
  border-bottom: 1px solid rgba(0, 205, 255, .22) !important;
  backdrop-filter: blur(14px);
}
body {
  padding-top: 76px !important;
}
.site-header::before,
.site-header::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  width: calc(50% - 42px) !important;
  max-width: calc(50% - 42px) !important;
  background: rgba(3, 9, 27, .96) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(0, 205, 255, .24) !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 0 !important;
  transition: opacity .18s ease !important;
  pointer-events: none !important;
}
.site-header::before { left: 0 !important; right: auto !important; }
.site-header::after { right: 0 !important; left: auto !important; }
body.logo-compact .site-header {
  background: transparent !important;
  border-bottom-color: transparent !important;
}
body.logo-compact .site-header::before,
body.logo-compact .site-header::after {
  opacity: 1 !important;
}
body.light .site-header::before,
body.light .site-header::after {
  background: rgba(239, 247, 255, .97) !important;
  border-bottom-color: rgba(0, 125, 255, .2) !important;
}
.brand-hero .main-logo-frame {
  opacity: calc(1 - var(--kalanj-logo-progress, 0)) !important;
  transform: scale(calc(1 - (var(--kalanj-logo-progress, 0) * .12))) !important;
  transition: none !important;
  will-change: opacity, transform;
}
.kalanj-header-logo {
  position: fixed !important;
  top: 8px !important;
  left: 50% !important;
  right: auto !important;
  width: 58px !important;
  height: 58px !important;
  max-width: 58px !important;
  max-height: 58px !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 1002 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(-50%) scale(.82) !important;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease !important;
  overflow: hidden !important;
  border-radius: 50% !important;
}
.kalanj-header-logo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}
.kalanj-header-logo.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) scale(1) !important;
}
#featured .featured-rail {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#featured .featured-rail::-webkit-scrollbar { display: none !important; }
#featured .featured-rail > .product-card {
  flex: 0 0 calc(100vw - 28px) !important;
  width: calc(100vw - 28px) !important;
  min-width: calc(100vw - 28px) !important;
  max-width: calc(100vw - 28px) !important;
  height: 300px !important;
  max-height: none !important;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}
#featured .featured-rail > .product-card .product-picture {
  height: 226px !important;
  min-height: 226px !important;
  max-height: 226px !important;
}
#featured .featured-rail > .product-card .product-info {
  min-width: 0;
}
#featured .featured-rail > .product-card .product-actions,
#featured .featured-rail > .product-card .add-cart-btn,
#featured .featured-rail > .product-card .favorite-btn {
  display: none !important;
}
@media (max-width: 760px) {
  .site-header {
    height: 64px !important;
    padding-inline: 9px !important;
  }
  body { padding-top: 64px !important; }
  .kalanj-header-logo {
    top: 5px !important;
    width: 52px !important;
    height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
  }
  #featured .featured-rail > .product-card {
    flex-basis: calc(100vw - 28px) !important;
    width: calc(100vw - 28px) !important;
    min-width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    height: 280px !important;
  }
  #featured .featured-rail > .product-card .product-picture {
    height: 210px !important;
    min-height: 210px !important;
    max-height: 210px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kalanj-header-logo,
  .site-header::before,
  .site-header::after {
    transition: none !important;
  }
}


/* KALANJ — clean showcase and compact header */
#featured .featured-rail > .product-card .product-info,
#featured .featured-rail > .product-card .product-title,
#featured .featured-rail > .product-card .product-name,
#featured .featured-rail > .product-card .product-price,
#featured .featured-rail > .product-card .price,
#featured .featured-rail > .product-card .product-meta {
  display: none !important;
}

/* Header controls: reserve a clear center lane for the logo */
.site-header {
  box-sizing: border-box !important;
}
.site-header .header-actions,
.site-header .header-menu,
.site-header .nav-actions {
  gap: 7px !important;
}
.site-header button,
.site-header .icon-button,
.site-header .menu-button,
.site-header .header-actions a,
.site-header .header-menu a {
  box-sizing: border-box !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 7px !important;
}
.site-header button svg,
.site-header a svg,
.site-header .icon {
  width: 19px !important;
  height: 19px !important;
}
@media (max-width: 760px) {
  .site-header button,
  .site-header .icon-button,
  .site-header .menu-button,
  .site-header .header-actions a,
  .site-header .header-menu a {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    padding: 6px !important;
  }
  .site-header button svg,
  .site-header a svg,
  .site-header .icon {
    width: 17px !important;
    height: 17px !important;
  }
}


/* KALANJ — continuous logo handoff */
.brand-hero .main-logo-frame {
  opacity: calc(1 - var(--kalanj-logo-progress, 0)) !important;
  transform:
    translateY(calc(var(--kalanj-logo-progress, 0) * -8px))
    scale(calc(1 - var(--kalanj-logo-progress, 0) * .20)) !important;
  transform-origin: center top !important;
  will-change: opacity, transform;
}
.kalanj-header-logo {
  opacity: var(--handoff-progress, 0) !important;
  visibility: visible !important;
  transform:
    translateX(-50%)
    translateY(calc((1 - var(--handoff-progress, 0)) * 8px))
    scale(calc(.82 + var(--handoff-progress, 0) * .18)) !important;
  transition: none !important;
}
.kalanj-header-logo.is-visible {
  opacity: var(--handoff-progress, 1) !important;
}


/* KALANJ — ultra-smooth scroll-driven center reveal */
.site-header {
  overflow: clip !important;
}
.site-header::before,
.site-header::after {
  width: calc(50% - 36px) !important;
  max-width: calc(50% - 36px) !important;
  opacity: var(--kalanj-logo-progress, 0) !important;
  transition: none !important;
  will-change: opacity;
}
.site-header::before {
  transform: translateX(calc(var(--kalanj-logo-progress, 0) * -10px)) !important;
}
.site-header::after {
  transform: translateX(calc(var(--kalanj-logo-progress, 0) * 10px)) !important;
}

/* Logo moves and fades continuously with scroll progress */
.brand-hero .main-logo-frame {
  opacity: calc(1 - var(--kalanj-logo-progress, 0)) !important;
  transform:
    translateY(calc(var(--kalanj-logo-progress, 0) * -14px))
    scale(calc(1 - var(--kalanj-logo-progress, 0) * .24)) !important;
  transition: none !important;
  will-change: opacity, transform;
}
.kalanj-header-logo,
.kalanj-header-logo.is-visible {
  opacity: var(--handoff-progress, 0) !important;
  visibility: visible !important;
  transform:
    translateX(-50%)
    translateY(calc((1 - var(--handoff-progress, 0)) * 10px))
    scale(calc(.78 + var(--handoff-progress, 0) * .22)) !important;
  transition: none !important;
  will-change: opacity, transform;
  backface-visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .brand-hero .main-logo-frame,
  .kalanj-header-logo {
    transition: none !important;
  }
}

/* KALANJ — restore single-layer transparent glass header */
.site-header {
  background: rgba(5, 15, 39, .38) !important;
  -webkit-backdrop-filter: blur(16px) saturate(145%) !important;
  backdrop-filter: blur(16px) saturate(145%) !important;
  border-bottom: 1px solid rgba(72, 195, 255, .20) !important;
  box-shadow: 0 8px 28px rgba(0, 12, 35, .10) !important;
}

/* Keep the two opening wings visually integrated with the glass */
.site-header::before,
.site-header::after {
  background: rgba(5, 15, 39, .38) !important;
  -webkit-backdrop-filter: blur(16px) saturate(145%) !important;
  backdrop-filter: blur(16px) saturate(145%) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(72, 195, 255, .20) !important;
  box-shadow: none !important;
}

/* Do not switch the whole header to a solid background on scroll */
body.logo-compact .site-header {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}

body.logo-compact .site-header::before,
body.logo-compact .site-header::after {
  background: rgba(5, 15, 39, .38) !important;
  -webkit-backdrop-filter: blur(16px) saturate(145%) !important;
  backdrop-filter: blur(16px) saturate(145%) !important;
  border-bottom-color: rgba(72, 195, 255, .20) !important;
}

body.light .site-header {
  background: rgba(237, 247, 255, .40) !important;
  border-bottom-color: rgba(0, 125, 255, .16) !important;
}

body.light .site-header::before,
body.light .site-header::after {
  background: rgba(237, 247, 255, .40) !important;
  border-bottom-color: rgba(0, 125, 255, .16) !important;
}

/* KALANJ — compact banners, preserve original logo size */

/* KALANJ: preserve the original logo dimensions */
.brand-hero .main-logo-frame {
  width: min(76vw, 390px) !important;
  aspect-ratio: 1 / 1 !important;
}
.brand-hero .main-logo-frame img {
  width: 100% !important;
  height: 100% !important;
}

/* Tighten space around the existing logo section */
.brand-hero {
  min-height: 0 !important;
  height: auto !important;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  margin-bottom: 4px !important;
}

/* Make promotional banners shorter */
#featured {
  margin-top: 3px !important;
  margin-bottom: 7px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#featured .featured-rail {
  gap: 8px !important;
  padding-top: 2px !important;
  padding-bottom: 2px !important;
}

#featured .featured-rail > .product-card {
  height: 92px !important;
  min-height: 92px !important;
  max-height: 92px !important;
  padding: 0 !important;
  border-radius: 13px !important;
  overflow: hidden !important;
}

#featured .featured-rail > .product-card .product-picture {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: inherit !important;
  overflow: hidden !important;
}

#featured .featured-rail > .product-card .product-picture img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Hide only text/prices in promotional banners */
#featured .featured-rail > .product-card .product-info,
#featured .featured-rail > .product-card .product-title,
#featured .featured-rail > .product-card .product-name,
#featured .featured-rail > .product-card .product-price,
#featured .featured-rail > .product-card .price {
  display: none !important;
}

/* Move category rows upward and reduce gaps */
#categories,
.categories-section,
.category-section,
.product-section,
.products-section,
.catalog-section {
  margin-top: 5px !important;
  margin-bottom: 7px !important;
  padding-top: 2px !important;
  padding-bottom: 3px !important;
}

.category-row,
.category-grid,
.categories-grid {
  gap: 6px !important;
  margin-top: 4px !important;
  margin-bottom: 6px !important;
}

.category-card {
  padding: 6px !important;
}

/* Mobile: keep the banners wide and shallow */
@media (max-width: 760px) {
  #featured .featured-rail > .product-card {
    flex-basis: calc(100vw - 28px) !important;
    width: calc(100vw - 28px) !important;
    min-width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    height: 84px !important;
    min-height: 84px !important;
    max-height: 84px !important;
  }

  #featured .featured-rail > .product-card .product-picture {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}

/* KALANJ — restore hero logo image */
.brand-hero .main-logo-frame {
  background: transparent !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  visibility: visible !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

.brand-hero .main-logo-frame img {
  display: block !important;
  visibility: visible !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  object-fit: contain !important;
}

/* One integrated glass header — preserve neon opening effect */
.site-header {
  background: rgba(5, 15, 39, .34) !important;
  -webkit-backdrop-filter: blur(17px) saturate(155%) !important;
  backdrop-filter: blur(17px) saturate(155%) !important;
  border-bottom: 1px solid rgba(50, 195, 255, .24) !important;
  box-shadow:
    0 5px 24px rgba(0, 15, 45, .12),
    0 1px 0 rgba(70, 205, 255, .07) !important;
}

/* Remove separate opaque layers; keep the animated neon edges */
.site-header::before,
.site-header::after {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(60, 205, 255, .30) !important;
  box-shadow:
    0 4px 15px rgba(0, 160, 255, .07),
    0 1px 0 rgba(80, 220, 255, .08) !important;
  pointer-events: none !important;
}

body.logo-compact .site-header {
  background: rgba(5, 15, 39, .22) !important;
  -webkit-backdrop-filter: blur(17px) saturate(155%) !important;
  backdrop-filter: blur(17px) saturate(155%) !important;
  border-bottom-color: rgba(50, 195, 255, .16) !important;
  box-shadow: 0 5px 22px rgba(0, 15, 45, .08) !important;
}

body.logo-compact .site-header::before,
body.logo-compact .site-header::after {
  background: transparent !important;
  box-shadow: 0 4px 15px rgba(0, 160, 255, .07) !important;
}

body.light .site-header {
  background: rgba(237, 247, 255, .40) !important;
  border-bottom-color: rgba(0, 125, 255, .20) !important;
}

body.light.logo-compact .site-header {
  background: rgba(237, 247, 255, .32) !important;
}

/* Hide promotional card captions and prices only */
#featured .featured-rail > .product-card .product-info,
#featured .featured-rail > .product-card .product-title,
#featured .featured-rail > .product-card .product-name,
#featured .featured-rail > .product-card .product-price,
#featured .featured-rail > .product-card .price,
#featured .featured-rail > .product-card h2,
#featured .featured-rail > .product-card h3,
#featured .featured-rail > .product-card h4,
#featured .featured-rail > .product-card p,
#featured .featured-rail > .product-card .product-meta {
  display: none !important;
}

/* Keep banner image full-size without a caption area */
#featured .featured-rail > .product-card {
  padding: 0 !important;
  overflow: hidden !important;
}

#featured .featured-rail > .product-card .product-picture {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: inherit !important;
}

#featured .featured-rail > .product-card .product-picture img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Reduce gap between promo banner and category cards */
#featured {
  margin-bottom: 2px !important;
  padding-bottom: 0 !important;
}

#categories,
.categories-section,
.category-section,
.category-grid,
.categories-grid {
  margin-top: 2px !important;
  padding-top: 0 !important;
}

#featured + section,
#featured + .category-section,
#featured + .categories-section {
  margin-top: 2px !important;
  padding-top: 0 !important;
}


/* KALANJ — smooth original logo glow, no black flash */
.brand-hero .main-logo-frame {
  background: transparent !important;
  -webkit-tap-highlight-color: transparent !important;
  transition: opacity 0s, transform 0s !important;
}
.brand-hero .main-logo-frame img {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  -webkit-filter: none !important;
}

/* KALANJ FINAL FIX: restore logo neon sweep */
.brand-hero .main-logo-frame {
  -webkit-tap-highlight-color: transparent !important;
  background: transparent !important;
}



/* KALANJ FINAL FIX: one header surface, split wings only on scroll */
.site-header {
  position: fixed;
  isolation: isolate;
  background: rgba(5, 15, 39, .38) !important;
  -webkit-backdrop-filter: blur(16px) saturate(145%) !important;
  backdrop-filter: blur(16px) saturate(145%) !important;
  border-bottom: 1px solid rgba(72, 195, 255, .20) !important;
  box-shadow: 0 8px 28px rgba(0, 12, 35, .10) !important;
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc(50% - 34px) !important;
  max-width: calc(50% - 34px) !important;
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: 0 !important;
  box-shadow: none !important;
  pointer-events: none !important;
  opacity: 0 !important;
  transition: opacity .18s ease !important;
}

.site-header::before { left: 0; right: auto; }
.site-header::after  { right: 0; left: auto; }

body.logo-compact .site-header {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body.logo-compact .site-header::before,
body.logo-compact .site-header::after {
  background: rgba(5, 15, 39, .72) !important;
  -webkit-backdrop-filter: blur(16px) saturate(145%) !important;
  backdrop-filter: blur(16px) saturate(145%) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(72, 195, 255, .25) !important;
  opacity: 1 !important;
}

body.light.logo-compact .site-header::before,
body.light.logo-compact .site-header::after {
  background: rgba(237, 247, 255, .82) !important;
  border-bottom-color: rgba(0, 125, 255, .22) !important;
}


/* KALANJ: SMOOTH HEADER TRANSITION */
.site-header::before,
.site-header::after {
  transition:
    opacity .48s cubic-bezier(.22,.75,.25,1),
    transform .58s cubic-bezier(.22,.75,.25,1) !important;
  will-change: opacity, transform;
}

.brand-hero .main-logo-frame {
  transition:
    opacity .42s cubic-bezier(.22,.75,.25,1),
    transform .52s cubic-bezier(.22,.75,.25,1),
    box-shadow .28s ease !important;
  box-shadow: 0 0 0 rgba(0,190,255,0);
  will-change: opacity, transform, box-shadow;
}

.kalanj-header-logo,
.kalanj-header-logo.is-visible {
  transition:
    opacity .42s cubic-bezier(.22,.75,.25,1),
    transform .52s cubic-bezier(.22,.75,.25,1) !important;
  will-change: opacity, transform;
}






/* KALANJ MOTION STABILITY PATCH */
#featured .featured-rail {
  scroll-snap-type: none !important;
  scroll-behavior: auto !important;
  overflow-anchor: none !important;
  overscroll-behavior-x: contain !important;
  touch-action: pan-x pan-y;
}

#featured .featured-rail > .product-card {
  scroll-snap-align: none !important;
  scroll-snap-stop: normal !important;
}

.site-header::before,
.site-header::after {
  transition:
    opacity .48s cubic-bezier(.22,.75,.25,1),
    background-color .48s cubic-bezier(.22,.75,.25,1),
    border-color .48s cubic-bezier(.22,.75,.25,1) !important;
}

.brand-hero .main-logo-frame,
.kalanj-header-logo {
  transition:
    opacity .48s cubic-bezier(.22,.75,.25,1),
    transform .48s cubic-bezier(.22,.75,.25,1),
    box-shadow .35s ease !important;
}

/* KALANJ — FINAL SCROLL-SYNC LOGO OVERRIDE */
.brand-hero .main-logo-frame {
  transform-origin: center top !important;
  transform: scaleY(calc(1 - var(--kalanj-logo-progress, 0))) !important;
  opacity: 1 !important;
  transition: none !important;
  will-change: transform;
}

.kalanj-header-logo,
.kalanj-header-logo.is-visible {
  position: fixed !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  transition: none !important;
  will-change: transform;
  backface-visibility: hidden;
}

.kalanj-header-logo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: fill !important;
}

/* KALANJ — original logo scroll motion: final correction */
.brand-hero .main-logo-frame {
  transform-origin: top left !important;
  opacity: 1 !important;
  transition: none !important;
  will-change: transform;
}

.kalanj-header-logo,
.kalanj-header-logo.is-visible {
  display: none !important;
}

/* KALANJ — remove only the fixed glass from header */
.site-header {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

/* KALANJ — remove remaining fixed transparent header layer only */
.site-header {
  background-image: none !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* KALANJ — remove day-mode fixed header glass only */
body.light .site-header {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* KALANJ MOBILE PERFORMANCE TEST 1 */
@media (max-width: 760px) {
  body {
    background-attachment: scroll !important;
  }

  .site-header,
  body.logo-compact .site-header::before,
  body.logo-compact .site-header::after,
  .glow-chip,
  .benefit,
  .mobile-menu {
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
  }
}


/* KALANJ HEADER BLUR OFF - SAFE FIX 20261022 */
.site-header {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}


/* KALANJ SINGLE LOGO TRANSFORM FIX 20261023 */
/* app.js owns the hero logo transform; keep the center-opening header wings intact. */
.brand-hero .main-logo-frame {
  transform-origin: top left !important;
  opacity: 1 !important;
  transition: none !important;
}


/* KALANJ SINGLE LOGO TRANSFORM FIX 20261023 V2 */
/* Keep logo geometry controlled by app.js; do not alter header wings. */
.brand-hero .main-logo-frame {
  transform: none !important;
  transform-origin: top left !important;
  opacity: 1 !important;
  transition: none !important;
}


/* KALANJ LOGO CSS CONFLICT SAFE FIX 20261023 */
/* The logo transform is controlled only by app.js. Header wings remain untouched. */
.brand-hero .main-logo-frame {
  transform: none !important;
  transform-origin: top left !important;
  opacity: 1 !important;
  transition: none !important;
  animation: none !important;
}

/* KALANJ — subtle header and footer glass */
.site-header {
  background: rgba(12, 22, 42, 0.10) !important;
  -webkit-backdrop-filter: blur(5px) saturate(110%) !important;
  backdrop-filter: blur(5px) saturate(110%) !important;
}

footer {
  background-color: rgba(12, 22, 42, 0.10) !important;
  -webkit-backdrop-filter: blur(5px) saturate(110%) !important;
  backdrop-filter: blur(5px) saturate(110%) !important;
}

body.light .site-header,
body.light footer {
  background-color: rgba(255, 255, 255, 0.10) !important;
}

/* KALANJ MINI LOGO NEON FRAME 20261023 */
.brand-mini {
  position: relative !important;
  isolation: isolate;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 8px 12px !important;
  overflow: visible !important;
}

.brand-mini::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    #76faff 0%,
    #168cff 35%,
    #3157ff 68%,
    #63f5ff 100%
  );
  clip-path: polygon(
    9px 0, calc(100% - 9px) 0,
    100% 9px, 100% calc(100% - 9px),
    calc(100% - 9px) 100%, 9px 100%,
    0 calc(100% - 9px), 0 9px
  );
}

.brand-mini::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  pointer-events: none;
  background: rgba(4, 13, 34, 0.96);
  clip-path: polygon(
    8px 0, calc(100% - 8px) 0,
    100% 8px, 100% calc(100% - 8px),
    calc(100% - 8px) 100%, 8px 100%,
    0 calc(100% - 8px), 0 8px
  );
}

.brand-mini .mini-symbol,
.brand-mini > span {
  position: relative;
  z-index: 1;
}

.brand-mini .mini-symbol {
  border: 1px solid rgba(91, 229, 255, 0.85) !important;
  border-radius: 2px !important;
  box-shadow: 0 0 7px rgba(28, 157, 255, 0.22) !important;
}


/* KALANJ ELECTRIC CLICK 1 */
@keyframes kalanjElectricClick {
  0% {
    box-shadow: 0 0 0 0 rgba(90, 210, 255, 0),
                0 0 0 rgba(0, 145, 255, 0);
  }
  22% {
    box-shadow: 0 0 3px 1px rgba(255, 255, 255, .95),
                0 0 12px 3px rgba(0, 174, 255, .9),
                0 0 23px 5px rgba(0, 110, 255, .48);
  }
  48% {
    box-shadow: 0 0 2px 1px rgba(180, 240, 255, .8),
                0 0 8px 2px rgba(0, 174, 255, .65);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(90, 210, 255, 0),
                0 0 0 rgba(0, 145, 255, 0);
  }
}

.kalanj-electric-click {
  animation: kalanjElectricClick .56s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .kalanj-electric-click {
    animation-duration: .25s;
  }
}
/* END KALANJ ELECTRIC CLICK 1 */


/* KALANJ REMOVE TOUCH BLUE FLASH 1 */
button,
[role="button"],
a,
input[type="button"],
input[type="submit"] {
  -webkit-tap-highlight-color: transparent !important;
}

button:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input[type="button"]:focus:not(:focus-visible),
input[type="submit"]:focus:not(:focus-visible) {
  outline: none !important;
}

/* KALANJ FINAL 3D BUTTONS HEADER COLORS 20261023 */

/* Mini logo: fixed white Persian lettering and permanent navy panel */
.site-header .brand-mini,
body.light .site-header .brand-mini,
.site-header .brand-mini > span:not(.mini-symbol),
body.light .site-header .brand-mini > span:not(.mini-symbol) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.site-header .brand-mini::after {
  background: rgba(4, 13, 34, 0.98) !important;
}

.site-header .brand-mini .mini-symbol,
body.light .site-header .brand-mini .mini-symbol {
  color: #20e7ff !important;
  -webkit-text-fill-color: #20e7ff !important;
  background: rgba(4, 13, 34, 0.98) !important;
  border-color: rgba(91, 229, 255, 0.9) !important;
}

/* Header controls keep the same night palette in both themes */
.site-header .icon-btn,
.site-header .cart-btn,
body.light .site-header .icon-btn,
body.light .site-header .cart-btn {
  color: #f3f8ff !important;
  background: linear-gradient(145deg, #102c59 0%, #071630 55%, #030b1d 100%) !important;
  border: 1px solid rgba(53, 174, 255, 0.68) !important;
  box-shadow:
    0 4px 0 #020716,
    0 5px 12px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -2px 4px rgba(0, 0, 0, 0.28) !important;
  text-shadow: 0 1px 5px rgba(32, 231, 255, 0.24);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    filter 150ms ease !important;
}

.site-header .icon-btn svg,
.site-header .cart-btn svg,
body.light .site-header .icon-btn svg,
body.light .site-header .cart-btn svg {
  color: #f3f8ff !important;
  stroke: currentColor;
}

.site-header .icon-btn:hover,
.site-header .cart-btn:hover,
body.light .site-header .icon-btn:hover,
body.light .site-header .cart-btn:hover {
  filter: brightness(1.18);
  border-color: #20e7ff !important;
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 #020716,
    0 9px 20px rgba(0, 140, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.site-header .icon-btn:active,
.site-header .cart-btn:active,
body.light .site-header .icon-btn:active,
body.light .site-header .cart-btn:active {
  transform: translateY(3px) scale(0.98);
  box-shadow:
    0 1px 0 #020716,
    0 2px 5px rgba(0, 0, 0, 0.3),
    inset 0 2px 5px rgba(0, 0, 0, 0.3) !important;
}

/* Restore original flat appearance for card/action buttons.
   Preserve the dedicated 3D header controls above. */
.primary-btn,
.secondary-btn,
.add-cart-btn,
.favorite-btn,
.back-top,
button:not(.icon-btn):not(.menu-toggle),
input[type="button"],
input[type="submit"],
[role="button"] {
  transform: none;
  box-shadow: none;
  transition: filter 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

.primary-btn:hover,
.secondary-btn:hover,
.add-cart-btn:hover,
.favorite-btn:hover,
.back-top:hover,
button:not(.icon-btn):not(.menu-toggle):hover,
input[type="button"]:hover,
input[type="submit"]:hover,
[role="button"]:hover {
  transform: none;
  box-shadow: none;
}

.primary-btn:active,
.secondary-btn:active,
.add-cart-btn:active,
.favorite-btn:active,
.back-top:active,
button:not(.icon-btn):not(.menu-toggle):active,
input[type="button"]:active,
input[type="submit"]:active,
[role="button"]:active {
  transform: none;
  box-shadow: none;
}

/* Keep the light-theme cart counter readable */
.site-header .cart-btn b,
body.light .site-header .cart-btn b {
  color: #00102a !important;
  -webkit-text-fill-color: #00102a !important;
}

/* Accessibility: respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .site-header .icon-btn,
  .site-header .cart-btn,
  .primary-btn,
  .secondary-btn,
  .add-cart-btn,
  .favorite-btn,
  .back-top,
  button,
  [role="button"],
  input[type="button"],
  input[type="submit"] {
    transition: none !important;
  }
}

/* END KALANJ FINAL 3D BUTTONS HEADER COLORS 20261023 */

/* KALANJ — slightly stronger glass in LIGHT theme only */
body.light .site-header,
body.light footer {
  -webkit-backdrop-filter: blur(6px) saturate(110%) !important;
  backdrop-filter: blur(6px) saturate(110%) !important;
}


/* KALANJ VISUAL FIXES — 2026-10-23 */

/* حذف شماره‌های تزئینی کنار دسته‌بندی‌ها */
.category-number {
  display: none !important;
}

/* آیکون سبد در هدر، بدون نوشته */
#cartButton.cart-icon-btn,
#cartButton.cart-ico-btn {
  width: 42px !important;
  min-width: 42px !important;
  height: 40px !important;
  padding: 0 5px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
}
#cartButton > span {
  display: none !important;
}
#cartButton > svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 auto !important;
}
#cartButton > b {
  width: 17px !important;
  height: 17px !important;
  font-size: 10px !important;
}

/* سبد شناور سمت راست؛ پشتیبانی در سمت چپ باقی می‌ماند */
#floating-cart {
  left: auto !important;
  right: max(16px, env(safe-area-inset-right)) !important;
}

/* KALANJ — restore animated preview background */
body::before {
  content: "";
  position: fixed;
  inset: -18%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 22%, rgba(0, 120, 255, .28), transparent 32%),
    radial-gradient(ellipse at 82% 36%, rgba(0, 225, 255, .17), transparent 30%),
    radial-gradient(ellipse at 55% 82%, rgba(0, 80, 255, .23), transparent 34%),
    repeating-linear-gradient(115deg, transparent 0 95px, rgba(0, 190, 255, .045) 97px 100px, transparent 102px 195px);
  opacity: .95;
  background-size: 140% 140%, 130% 130%, 150% 150%, auto;
  animation: kalanjAmbientNight 18s ease-in-out infinite alternate;
}

body.light::before {
  background:
    linear-gradient(112deg, transparent 20%, rgba(18, 38, 105, .11) 35%, transparent 49%),
    linear-gradient(112deg, transparent 55%, rgba(18, 38, 105, .075) 68%, transparent 82%),
    radial-gradient(ellipse at 50% 10%, rgba(24, 50, 125, .15), transparent 43%),
    repeating-linear-gradient(115deg, transparent 0 112px, rgba(18, 38, 105, .09) 114px 117px, transparent 119px 225px);
  animation: kalanjAmbientDay 23s ease-in-out infinite alternate;
}


/* KALANJ HEADER CART — transferred from preview 20261023 */
.site-header #cartButton.cart-icon-btn {
  box-sizing: border-box !important;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  gap: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  font-weight: 400 !important;
}
.site-header #cartButton.cart-icon-btn svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px !important;
}
.site-header #cartButton.cart-icon-btn b {
  position: absolute !important;
  top: -5px !important;
  right: -5px !important;
  width: 17px !important;
  height: 17px !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
}
@media (max-width: 760px) {
  .site-header #cartButton.cart-icon-btn {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
  }
  .site-header #cartButton.cart-icon-btn svg {
    width: 19px !important;
    height: 19px !important;
    flex-basis: 19px !important;
  }
}

/* KALANJ — hide decorative numbered indicators under home product rows */
.rail-dots,
.product-rail-dots,
.slider-dots,
.carousel-dots {
  display: none !important;
}

/* KALANJ — hide 01/02/03 labels beside home product-row titles */
.category-title > span {
  display: none !important;
}


/* KALANJ FIX: show complete product image in featured banner */
#featured .featured-rail > .product-card .product-picture img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}


/* KALANJ FINAL FIX: featured banner image frame */
#featured .featured-rail > .product-card {
  box-sizing: border-box !important;
  height: 300px !important;
  min-height: 300px !important;
  max-height: none !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
#featured .featured-rail > .product-card .product-picture {
  box-sizing: border-box !important;
  display: flex !important;
  flex: 0 0 220px !important;
  width: 100% !important;
  height: 220px !important;
  min-height: 220px !important;
  max-height: 220px !important;
  overflow: hidden !important;
  align-items: center !important;
  justify-content: center !important;
}
#featured .featured-rail > .product-card .product-picture img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}
#featured .featured-rail > .product-card .product-info {
  box-sizing: border-box !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
@media (max-width: 760px) {
  #featured .featured-rail > .product-card {
    height: 280px !important;
    min-height: 280px !important;
  }
  #featured .featured-rail > .product-card .product-picture {
    flex-basis: 200px !important;
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
  }
}


/* KALANJ — integrated header search */
.header-search {
  display:flex; align-items:center; flex:1 1 250px;
  width:100%; max-width:390px; min-width:150px; height:42px;
  overflow:hidden; border:1px solid rgba(65,153,255,.48);
  border-radius:14px; background:rgba(5,17,43,.82);
  box-shadow:inset 0 1px 5px rgba(0,0,0,.18),0 0 16px rgba(30,115,255,.08);
  transition:border-color .2s,box-shadow .2s;
}
.header-search:focus-within {
  border-color:var(--cyan);
  box-shadow:0 0 0 3px rgba(40,155,255,.12),0 0 20px rgba(30,115,255,.16);
}
.header-search input {
  flex:1; width:0; min-width:0; height:100%; padding:0 13px;
  border:0; outline:0; background:transparent; color:var(--text);
  font:inherit; font-size:12px;
}
.header-search input::placeholder { color:var(--muted); opacity:.9; }
.header-search button {
  display:grid; place-items:center; flex:0 0 43px; align-self:stretch;
  border:0; border-right:1px solid rgba(65,153,255,.25); border-radius:0;
  color:#fff; background:linear-gradient(135deg,#1678f8,#08bce8);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2);
}
.header-search button:hover { background:linear-gradient(135deg,#3290ff,#18d0f0); }
.header-search svg {
  width:19px; height:19px; fill:none; stroke:currentColor;
  stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round;
}
body.light .header-search { background:rgba(255,255,255,.94); }
.header-search-results { max-width:1200px; margin:30px auto; padding:0 20px 45px; }
.header-search-results h1 { font-size:22px; }
.search-summary,.search-empty { color:var(--muted); font-size:13px; }
.search-product-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(175px,1fr)); gap:16px; }
.search-product-grid .product-card {
  min-width:0; padding:12px; border:1px solid var(--line);
  border-radius:16px; background:var(--surface); overflow:hidden;
}
.search-product-grid .product-picture {
  display:flex; align-items:center; justify-content:center; min-height:145px;
}
.search-product-grid .product-picture img {
  display:block; width:100%; height:165px; object-fit:contain;
}
.search-product-grid h3 { font-size:13px; line-height:1.9; }
.search-product-grid p { font-size:12px; color:var(--cyan); }
@media(max-width:760px) {
  .site-header { height:auto; min-height:64px; flex-wrap:wrap; gap:8px; padding:8px 12px; }
  .header-search { order:3; flex:0 0 100%; max-width:none; height:39px; }
  .header-actions { margin-right:auto; }
  .mobile-menu { top:108px; }
  .header-search-results { margin-top:20px; padding-right:14px; padding-left:14px; }
  .search-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
}

/* KALANJ: center search inside header without changing header dimensions */
.site-header {
  position: relative !important;
  overflow: visible !important;
}

.site-header .header-search {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  flex: none !important;
  order: 0 !important;
  width: clamp(145px, 25vw, 290px) !important;
  max-width: 290px !important;
  min-width: 0 !important;
  height: 35px !important;
  z-index: 30 !important;
}

@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap !important;
  }

  .site-header .header-search {
    width: clamp(105px, 30vw, 165px) !important;
    max-width: 165px !important;
    height: 31px !important;
  }

  .site-header .header-search input {
    min-width: 0 !important;
    padding: 0 6px !important;
    font-size: 10px !important;
  }

  .site-header .header-search button {
    flex: 0 0 30px !important;
  }
}

/* Shift search box 1cm left without changing header dimensions */
.site-header .header-search {
  left: calc(50% - 1cm) !important;
}

/* KALANJ: move search further left, away from menu buttons */
.site-header .header-search {
  left: calc(50% - 4cm) !important;
}

/* KALANJ: shift search 7cm right from current position */
.site-header .header-search {
  left: calc(50% + 3cm) !important;
}

/* KALANJ: move search 2cm left from current position */
.site-header .header-search {
  left: calc(50% + 1cm) !important;
}

/* KALANJ: restore original header dimensions and keep search in place */
.site-header {
  height: 76px !important;
  min-height: 76px !important;
  flex-wrap: nowrap !important;
  gap: 20px !important;
  padding: 0 clamp(16px, 4vw, 64px) !important;
  position: sticky !important;
  top: 0 !important;
  overflow: visible !important;
}

.site-header .header-search {
  left: calc(50% + 1cm) !important;
  top: 50% !important;
}

@media (max-width: 760px) {
  .site-header {
    height: 64px !important;
    min-height: 64px !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding: 0 14px !important;
  }

  .site-header .header-search {
    left: calc(50% + 1cm) !important;
    top: 50% !important;
  }

  .mobile-menu {
    top: 64px !important;
  }
}

/* KALANJ: keep the original header fixed at the top */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
}

/* Keep page content from sitting underneath the fixed header */
body {
  padding-top: 76px !important;
}

@media (max-width: 760px) {
  body {
    padding-top: 64px !important;
  }
  .mobile-menu {
    top: 64px !important;
    z-index: 1001 !important;
  }
}

/* KALANJ: restore native sticky header behavior */
.site-header {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;
  width: auto !important;
  z-index: 20 !important;
  height: 76px !important;
  min-height: 76px !important;
  padding: 0 clamp(16px, 4vw, 64px) !important;
  flex-wrap: nowrap !important;
  gap: 20px !important;
}

/* Keep search at the position already approved */
.site-header .header-search {
  position: absolute !important;
  left: calc(50% + 1cm) !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  flex: none !important;
  order: 0 !important;
}

/* Original mobile header dimensions */
@media (max-width: 760px) {
  .site-header {
    height: 64px !important;
    min-height: 64px !important;
    padding: 0 14px !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }

  .site-header .header-search {
    left: calc(50% + 1cm) !important;
    top: 50% !important;
  }

  body {
    padding-top: 0 !important;
  }

  .mobile-menu {
    top: 64px !important;
  }
}

/* Sticky header does not need fixed-header body compensation */
body {
  padding-top: 0 !important;
}

/* KALANJ: keep only the search field dark in light theme */
body.light .site-header .header-search {
  background: rgba(9, 24, 57, .94) !important;
  border-color: rgba(53, 139, 255, .45) !important;
}

body.light .site-header .header-search input {
  background: transparent !important;
  color: #f3f8ff !important;
}

body.light .site-header .header-search input::placeholder {
  color: #9cb5d8 !important;
  opacity: 1 !important;
}




/* KALANJ — small round quantity badge on the existing header cart */
#floating-cart-count {
  display: none !important;
}

#cartButton {
  position: relative !important;
}

#cartButton > #nav-cart-count {
  display: none;
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  z-index: 5 !important;
  box-sizing: border-box !important;
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #ffffff !important;
  border-radius: 50% !important;
  background: #ef3340 !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 16px !important;
  text-align: center !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}

#cartButton > #nav-cart-count:not(:empty) {
  display: inline-flex;
}

#cartButton > #nav-cart-count {
  visibility: hidden;
}

#cartButton > #nav-cart-count[data-count]:not([data-count="0"]) {
  visibility: visible;
}


/* KALANJ FINAL HEADER CART BADGE — keep existing icon unchanged */
#cartButton > #nav-cart-count {
  position: absolute !important;
  top: -5px !important;
  right: -5px !important;
  z-index: 20 !important;
  box-sizing: border-box !important;
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 !important;
  border: 1px solid #fff !important;
  border-radius: 50% !important;
  background: #ef3340 !important;
  color: #fff !important;
  font: 800 10px/16px sans-serif !important;
  text-align: center !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
}


/* KALANJ — glossy neon-red add-to-cart buttons
   Preserve the existing 10px corners and button layout. */
.product-card .add-cart-btn.add-to-cart-btn {
  border: 1px solid rgba(255, 65, 85, .95) !important;
  border-radius: 10px;
  background:
    linear-gradient(135deg,
      rgba(255, 40, 65, .30),
      rgba(95, 5, 28, .58) 55%,
      rgba(255, 70, 90, .20)) !important;
  color: #fff !important;
  text-shadow: 0 0 7px rgba(255, 70, 90, .65);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.20),
    inset 0 0 12px rgba(255,35,65,.12),
    0 0 5px rgba(255,35,65,.48),
    0 0 12px rgba(255,25,55,.20) !important;
  transition: background 180ms ease, border-color 180ms ease,
              box-shadow 180ms ease, filter 180ms ease !important;
}
.product-card .add-cart-btn.add-to-cart-btn:hover {
  border-color: #ff6477 !important;
  background:
    linear-gradient(135deg,
      rgba(255, 45, 70, .42),
      rgba(115, 8, 32, .68) 55%,
      rgba(255, 80, 100, .30)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.26),
    0 0 7px rgba(255,35,65,.62),
    0 0 17px rgba(255,25,55,.30) !important;
  filter: brightness(1.08);
}

/* KALANJ — responsive, interactive neon-red product cart button */
.product-card .add-cart-btn.add-to-cart-btn {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 38px !important;
  height: auto !important;
  padding: 8px 10px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  line-height: 1.65 !important;
  text-align: center !important;
  font-size: clamp(10px, 2.7vw, 12px) !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  border-radius: 10px !important;
  transition: background 180ms ease, box-shadow 180ms ease,
              border-color 180ms ease, filter 180ms ease,
              transform 120ms ease !important;
}
.product-card .product-actions {
  min-width: 0 !important;
  flex-wrap: wrap !important;
}
.product-card .add-cart-btn.add-to-cart-btn:hover {
  filter: brightness(1.18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 0 8px rgba(255,35,65,.65),
    0 0 18px rgba(255,25,55,.35) !important;
}
.product-card .add-cart-btn.add-to-cart-btn:active {
  transform: scale(.97) !important;
  filter: brightness(1.28) !important;
  box-shadow: inset 0 0 12px rgba(255,255,255,.15),
              0 0 12px rgba(255,35,65,.65) !important;
}
.product-card .add-cart-btn.add-to-cart-btn:focus-visible {
  outline: 2px solid #ff8796 !important;
  outline-offset: 3px !important;
}
@media (max-width: 380px) {
  .product-card .add-cart-btn.add-to-cart-btn {
    padding: 7px 5px !important;
    font-size: 10px !important;
  }
}

/* KALANJ — show responsive cart buttons in featured product cards */
#featured .featured-rail .product-actions {
  display: flex !important;
}
#featured .featured-rail .add-cart-btn.add-to-cart-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  white-space: normal !important;
}



/* ==========================================================
   KALANJ UI PATCH
   Product image / lightbox / checkout controls
   ========================================================== */

/* Product image frame */
.product-page-image {
    position: relative;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    border-radius: 20px;
    background: rgba(5, 15, 38, .72);
    border: 1px solid rgba(65, 170, 255, .22);
}

.product-page-image #main-product-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    cursor: zoom-in;
    padding: 10px;
    box-sizing: border-box;
}

/* Thumbnails */
.product-thumbnails {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 2px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.product-thumbnail {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 13px;
    border: 1px solid rgba(100, 170, 255, .24);
    background: rgba(5, 15, 38, .75);
    cursor: pointer;
    transition: border-color .18s ease, transform .18s ease;
}

.product-thumbnail.active {
    border-color: #26baff;
    box-shadow: 0 0 0 1px rgba(38, 186, 255, .22);
}

.product-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-thumbnail:active {
    transform: scale(.96);
}

/* Full-screen lightbox */
#product-lightbox.product-lightbox {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    display: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 64px 58px;
    margin: 0 !important;
    overflow: hidden;
    background: rgba(1, 5, 17, .96);
    isolation: isolate;
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
}

#product-lightbox.product-lightbox.open {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

#lightbox-product-image {
    display: block;
    position: relative;
    z-index: 1;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center;
    margin: auto;
    border-radius: 12px;
    user-select: none;
    -webkit-user-drag: none;
}

#product-lightbox button {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(100, 190, 255, .35);
    border-radius: 50%;
    color: #fff;
    background: rgba(12, 30, 60, .88);
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

#product-lightbox .lightbox-close {
    top: max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    font-size: 30px;
}

#product-lightbox .lightbox-prev {
    left: max(12px, env(safe-area-inset-left));
    top: 50%;
    transform: translateY(-50%);
}

#product-lightbox .lightbox-next {
    right: max(12px, env(safe-area-inset-right));
    top: 50%;
    transform: translateY(-50%);
}

body.lightbox-open {
    overflow: hidden !important;
    touch-action: none;
}

/* Checkout cards */
.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(75, 160, 255, .19);
    border-radius: 17px;
    background: rgba(7, 18, 43, .72);
    box-sizing: border-box;
}

.checkout-item-image {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 13px;
    background: rgba(1, 9, 25, .8);
    border: 1px solid rgba(100, 170, 255, .18);
}

.checkout-item-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 5px;
    box-sizing: border-box;
}

.checkout-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #9bc9ee;
    font-size: 13px;
}

.checkout-item-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-item-info > strong {
    color: #eef7ff;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

/* Quantity stepper */
.checkout-quantity {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 7px;
    flex-wrap: wrap;
}

.checkout-quantity button {
    min-width: 40px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(70, 175, 255, .36);
    border-radius: 12px;
    color: #eaf7ff;
    background: rgba(15, 48, 87, .88);
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease;
    -webkit-tap-highlight-color: transparent;
}

.checkout-quantity button:active {
    background: rgba(0, 130, 220, .5);
}

.checkout-quantity span {
    min-width: 38px;
    text-align: center;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.checkout-quantity button.remove-cart-item {
    width: auto;
    min-width: 70px;
    height: 40px;
    padding: 0 13px;
    margin-inline-start: 5px;
    border-color: rgba(255, 95, 110, .38);
    color: #ffb5bd;
    background: rgba(115, 25, 43, .25);
    font-size: 13px;
    font-weight: 600;
}

.checkout-item > strong:last-child {
    flex: 0 0 auto;
    color: #72d4ff;
    font-size: 14px;
    line-height: 1.8;
    text-align: end;
}

/* Responsive */
@media (max-width: 640px) {
    .product-page-image {
        aspect-ratio: 1 / 1;
        border-radius: 16px;
    }

    .product-thumbnail {
        flex-basis: 66px;
        width: 66px;
        height: 66px;
    }

    #product-lightbox.product-lightbox {
        padding: 60px 42px;
    }

    #product-lightbox button {
        width: 40px;
        height: 40px;
    }

    .checkout-item {
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 11px;
        padding: 11px;
    }

    .checkout-item-image {
        width: 76px;
        height: 76px;
        grid-row: 1 / span 2;
    }

    .checkout-item-info {
        grid-column: 2;
    }

    .checkout-item > strong:last-child {
        grid-column: 2;
        text-align: start;
    }

    .checkout-quantity {
        gap: 6px;
    }

    .checkout-quantity button {
        width: 38px;
        min-width: 38px;
        height: 38px;
    }

    .checkout-quantity button.remove-cart-item {
        min-width: 64px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #product-lightbox,
    .product-thumbnail,
    .checkout-quantity button {
        transition: none !important;
    }
}

