/* ================= FitPower — main styles ================= */
:root {
  --bg: #080808; --bg2: #0f0f0f; --surface: #161616; --surface2: #1d1d1d; --surface3: #242424;
  --line: #2a2a2a; --line2: #333;
  --yellow: #FFD600; --yellow2: #ffe23d; --yellow-dim: rgba(255, 214, 0, .12);
  --text: #f2f2f2; --muted: #9b9b9b; --faint: #6d6d6d;
  --danger: #ff5a5a; --green: #43d17c;
  --font: 'Vazirmatn', system-ui, sans-serif;
  --display: 'Barlow Condensed', 'Vazirmatn', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --t: 180ms var(--ease);
  --radius: 16px;
  --glow: 0 0 40px rgba(255, 214, 0, .12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font);
  overflow-x: hidden; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, select, textarea { font-family: inherit; }
.container { width: min(1240px, 92%); margin-inline: auto; }
.hidden { display: none !important; }

::selection { background: var(--yellow); color: #000; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--yellow); }

/* ---------- cursor glow ---------- */
#cursor-glow {
  position: fixed; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,214,0,.07), transparent 65%);
  transform: translate(-50%, -50%); pointer-events: none; z-index: 1;
  transition: opacity .3s; will-change: transform;
}
@media (hover: none) { #cursor-glow { display: none; } }

/* ---------- loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: var(--bg); overflow: hidden;
}
#loader-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader-inner { position: relative; z-index: 2; text-align: center; }
.loader-logo { position: relative; display: inline-block; overflow: hidden; border-radius: 12px; padding: 8px 18px; }
.loader-logo img { height: 46px; filter: drop-shadow(0 0 24px rgba(255,214,0,.35)); opacity: 0; transform: scale(.85) translateY(10px); animation: logoIn 1s var(--ease) .2s forwards; }
.logo-shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 48%, rgba(255,214,0,.75) 52%, transparent 70%);
  transform: translateX(-130%); animation: shine 1.6s ease-in-out .9s 2;
}
@keyframes logoIn { to { opacity: 1; transform: none; } }
@keyframes shine { to { transform: translateX(130%); } }
.loader-brand { margin-top: 26px; font-family: var(--display); font-size: clamp(38px, 7vw, 64px); font-weight: 800; letter-spacing: .06em; direction: ltr; }
.loader-brand span { display: inline-block; opacity: 0; transform: translateY(40px) rotate(6deg); animation: letterIn .7s var(--ease) forwards; }
.loader-brand span:nth-child(n+4) { color: var(--yellow); }
@keyframes letterIn { to { opacity: 1; transform: none; } }
.loader-bar { width: 220px; height: 2px; background: #262626; margin: 34px auto 0; overflow: hidden; border-radius: 2px; }
.loader-bar span { display: block; height: 100%; width: 40%; background: var(--yellow); border-radius: 2px; animation: barSlide 1.1s ease-in-out infinite; box-shadow: 0 0 12px var(--yellow); }
@keyframes barSlide { 0% { transform: translateX(-220%); } 100% { transform: translateX(320%); } }
.loader-panel { position: absolute; inset: 0; background: var(--bg2); z-index: 3; transform: translateY(0); }
.loader-panel.panel-a { clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%); }
.loader-panel.panel-b { clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%); }
#loader.exit .loader-inner, #loader.exit #loader-canvas { opacity: 0; transition: opacity .4s ease-in; }
#loader.exit .panel-a { transform: translateY(-100%); transition: transform .7s cubic-bezier(.7,0,.2,1) .15s; }
#loader.exit .panel-b { transform: translateY(100%); transition: transform .7s cubic-bezier(.7,0,.2,1) .15s; }

/* ---------- header ---------- */
#header {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
#header .header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
#header .logo-link img { height: 34px; transition: height .3s; }
#header.scrolled { background: rgba(8,8,8,.82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
#header.scrolled .logo-link img { height: 28px; }
#main-nav { display: flex; gap: 4px; margin-inline-start: auto; }
#main-nav a {
  position: relative; padding: 8px 13px; font-size: 14.5px; color: var(--muted); border-radius: 8px;
  transition: color var(--t), background var(--t);
}
#main-nav a::after {
  content: ''; position: absolute; inset-inline: 13px; bottom: 4px; height: 2px; background: var(--yellow);
  border-radius: 2px; transform: scaleX(0); transform-origin: center; transition: transform .3s var(--ease);
}
#main-nav a:hover, #main-nav a.active { color: #fff; }
#main-nav a:hover::after, #main-nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.hbtn {
  position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  color: var(--muted); border: 1px solid transparent;
  transition: color var(--t), background var(--t), border-color var(--t), transform var(--t);
}
.hbtn:hover { color: var(--yellow); background: var(--surface2); border-color: var(--line); }
.hbtn:active { transform: scale(.94); }
.hbtn svg { width: 21px; height: 21px; }
#lang-toggle { width: auto; padding: 0 14px; font-weight: 700; font-size: 14px; letter-spacing: .05em; color: var(--text); }
.cart-count {
  position: absolute; top: 2px; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--yellow); color: #000; font-size: 11px; font-weight: 800; border-radius: 9px;
  display: grid; place-items: center; line-height: 1; transition: transform .3s var(--ease);
}
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.5); } 60% { transform: scale(.9); } }
.menu-btn { display: none; flex-direction: column; gap: 5px; }
.menu-btn span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- mobile nav ---------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 90; background: rgba(8,8,8,.97); backdrop-filter: blur(16px);
  display: flex; flex-direction: column; justify-content: center; padding: 90px 8% 40px;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav a {
  font-size: clamp(26px, 6vw, 36px); font-weight: 800; padding: 10px 0; color: var(--text);
  border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color var(--t);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-nav.open a { opacity: 1; transform: none; }
.mobile-nav a::after { content: '→'; color: var(--yellow); font-size: .6em; }
[dir="rtl"] .mobile-nav a::after { content: '←'; }
.mobile-nav a:hover { color: var(--yellow); }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--yellow); color: #0a0a0a; font-weight: 800; font-size: 15px;
  padding: 14px 30px; border-radius: 14px; overflow: hidden; white-space: nowrap;
  transition: transform var(--t), box-shadow var(--t), background var(--t); will-change: transform;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.5) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .6s ease;
}
.btn:hover { box-shadow: 0 8px 34px rgba(255,214,0,.28); transform: translateY(-2px); }
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-ghost { background: transparent; color: var(--yellow); border: 1.5px solid var(--yellow); }
.btn-ghost:hover { background: var(--yellow-dim); box-shadow: var(--glow); }
.btn-dark { background: var(--surface2); color: var(--text); border: 1px solid var(--line); }
.btn-dark:hover { border-color: var(--yellow); color: var(--yellow); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-sm { padding: 9px 18px; font-size: 13px; border-radius: 10px; }

/* ---------- sections ---------- */
main { padding-top: 72px; min-height: 60vh; }
section { position: relative; padding: 92px 0; }
.sec-head { margin-bottom: 46px; }
.sec-kicker {
  display: inline-flex; align-items: center; gap: 8px; color: var(--yellow); font-weight: 700;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px;
}
.sec-kicker::before { content: ''; width: 26px; height: 2px; background: var(--yellow); border-radius: 2px; }
.sec-title { font-size: clamp(28px, 4.4vw, 44px); font-weight: 900; line-height: 1.25; }
.sec-sub { color: var(--muted); max-width: 640px; margin-top: 10px; font-size: 15.5px; }
.sec-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* footer panel buttons */
.footer-panels { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 26px 0 8px; border-top: 1px solid rgba(255,255,255,.07); margin-top: 34px; }
.panel-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 26px; border-radius: 14px;
  font-weight: 700; font-size: 14px; border: 1px solid rgba(255,255,255,.14); color: var(--muted);
  transition: all .3s var(--ease); position: relative; overflow: hidden;
}
.panel-btn svg { width: 18px; height: 18px; }
.panel-btn::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 0%, rgba(255,214,0,.12), transparent 60%); opacity: 0; transition: opacity .3s; }
.panel-btn:hover { color: #fff; transform: translateY(-3px); }
.panel-btn.admin:hover { border-color: var(--yellow); box-shadow: 0 12px 34px rgba(0,0,0,.5), 0 0 26px rgba(255,214,0,.12); }
.panel-btn.manager:hover { border-color: #7dd3fc; box-shadow: 0 12px 34px rgba(0,0,0,.5), 0 0 26px rgba(125,211,252,.12); }
.panel-btn.admin:hover::before, .panel-btn.manager:hover::before { opacity: 1; }
.panel-btn.admin { color: var(--yellow); border-color: rgba(255,214,0,.3); }
.panel-btn.manager { color: #7dd3fc; border-color: rgba(125,211,252,.3); }

/* product card view-details button */
.p-view {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; cursor: pointer;
  background: rgba(255,214,0,.08); color: var(--yellow); border: 1px solid rgba(255,214,0,.25);
  transition: all .25s var(--ease);
}
.p-view svg { width: 18px; height: 18px; transform: scaleX(var(--flip, 1)); }
[dir="ltr"] .p-view svg { --flip: -1; }
.p-view:hover { background: var(--yellow); color: #080808; transform: scale(1.08); }
.cat-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  background: transparent; color: var(--muted); border: 1px solid rgba(255,255,255,.14);
  padding: 9px 18px; border-radius: 100px; font: inherit; font-size: 14px; cursor: pointer;
  transition: all .25s var(--ease);
}
.chip:hover { color: #fff; border-color: var(--yellow); transform: translateY(-2px); }
.chip.active { background: var(--yellow); color: #080808; border-color: var(--yellow); font-weight: 700; }

/* mask reveal heading */
.mask { display: block; overflow: hidden; }
.mask > span { display: block; transform: translateY(110%); transition: transform .9s var(--ease); }
.mask.in > span { transform: none; }
/* generic scroll reveal */
[data-reveal] { opacity: 0; transition: opacity .8s var(--ease), filter .8s var(--ease); filter: blur(6px); }
[data-reveal].in { opacity: 1; filter: none; }
[data-reveal="zoom"] { transform: scale(.92); transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s var(--ease); }
[data-reveal="zoom"].in { transform: none; }

/* ---------- hero ---------- */
.hero { padding: 130px 0 100px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(700px 420px at 78% 18%, rgba(255,214,0,.09), transparent 60%),
    radial-gradient(500px 380px at 12% 80%, rgba(255,214,0,.05), transparent 60%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 100px;
  border: 1px solid rgba(255,214,0,.35); background: var(--yellow-dim); color: var(--yellow);
  font-size: 13px; font-weight: 700; margin-bottom: 22px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.7); } }
.hero-title { font-size: clamp(40px, 6.4vw, 74px); font-weight: 900; line-height: 1.18; letter-spacing: -.01em; }
.hero-title em { font-style: normal; color: var(--yellow); text-shadow: 0 0 40px rgba(255,214,0,.4); }
.hero-sub { color: var(--muted); font-size: clamp(15px, 1.6vw, 17.5px); max-width: 560px; margin: 22px 0 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 42px; margin-top: 54px; flex-wrap: wrap; }
.hero-stat .num { font-family: var(--display); font-size: 40px; font-weight: 800; color: var(--yellow); line-height: 1; direction: ltr; }
.hero-stat .lbl { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 460px; }
.hero-jar {
  position: relative; z-index: 2; width: min(340px, 78%); border-radius: 24px; border: 1px solid var(--line);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)) drop-shadow(0 0 60px rgba(255,214,0,.13));
  animation: float 6s ease-in-out infinite; opacity: 0; transform: scale(1.18); filter: blur(10px);
  transition: opacity 1.2s var(--ease), transform 1.4s var(--ease);
}
.hero-jar.in { opacity: 1; transform: scale(1); filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)) drop-shadow(0 0 60px rgba(255,214,0,.13)); animation-play-state: running; }
@keyframes float { 50% { translate: 0 -16px; } }
.hero-ring {
  position: absolute; width: 430px; height: 430px; border-radius: 50%;
  border: 1.5px dashed rgba(255,214,0,.28); animation: spin 40s linear infinite;
}
.hero-ring.r2 { width: 540px; height: 540px; border-style: solid; border-color: rgba(255,214,0,.1); animation-duration: 60s; animation-direction: reverse; }
@keyframes spin { to { rotate: 360deg; } }
.hero-orb { position: absolute; width: 140px; height: 140px; border-radius: 50%; filter: blur(40px); opacity: .55; }
.orb-1 { background: rgba(255,214,0,.5); top: 8%; inset-inline-start: 4%; }
.orb-2 { background: rgba(255,214,0,.25); bottom: 10%; inset-inline-end: 6%; width: 200px; height: 200px; }
.hero-chip {
  position: absolute; z-index: 3; background: rgba(22,22,22,.85); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 8px; animation: float 5s ease-in-out infinite reverse;
}
.hero-chip .c-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero-chip.c1 { top: 12%; inset-inline-end: 2%; }
.hero-chip.c2 { bottom: 16%; inset-inline-start: 0; animation-delay: 1.2s; }

/* stagger children entrance */
.stagger > * { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg2); padding: 16px 0; position: relative; }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 26s linear infinite; direction: ltr; }
.marquee-track span { display: flex; align-items: center; gap: 64px; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: .1em; color: var(--faint); white-space: nowrap; text-transform: uppercase; }
.marquee-track b { color: var(--yellow); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.cat-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 22px; text-align: center; overflow: hidden; cursor: pointer;
  transition: transform var(--t), border-color .3s, box-shadow .3s;
}
.cat-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(300px 140px at 50% -20%, rgba(255,214,0,.14), transparent 70%);
}
.cat-card:hover { transform: translateY(-6px); border-color: rgba(255,214,0,.45); box-shadow: var(--glow); }
.cat-card:hover::before { opacity: 1; }
.cat-card .ic { font-size: 34px; margin-bottom: 14px; display: block; }
.cat-card .cname { font-weight: 800; font-size: 16.5px; }
.cat-card .cnum { color: var(--faint); font-size: 12.5px; margin-top: 5px; }

/* ---------- product cards ---------- */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; }
.p-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transform-style: preserve-3d;
  transition: border-color .3s, box-shadow .35s, background .3s;
}
.p-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: var(--radius); z-index: -1; opacity: 0;
  background: conic-gradient(from 180deg, transparent, var(--yellow), transparent 40%);
  transition: opacity .35s;
}
.p-card::after {
  content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .35s;
  background: radial-gradient(420px 220px at 50% -10%, rgba(255,214,0,.10), transparent 70%);
}
.p-card:hover { border-color: rgba(255,214,0,.55); box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 34px rgba(255,214,0,.10); }
.p-card:hover::before, .p-card:hover::after { opacity: 1; }
.p-card .p-img { position: relative; background: linear-gradient(180deg, #131313, #0c0c0c); overflow: hidden; }
.p-card .p-img img { width: 100%; aspect-ratio: 1/1.05; object-fit: cover; transition: transform .8s var(--ease); }
.p-card:hover .p-img img { transform: scale(1.09); }
.p-badges { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 100px; width: fit-content; }
.badge.new { background: var(--yellow); color: #000; }
.badge.special { background: #ff3860; color: #fff; }
.badge.out { background: #3a3a3a; color: #bbb; }
.p-info { padding: 16px 16px 18px; }
.p-brand { color: var(--yellow); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; min-height: 18px; }
.p-name { font-weight: 800; font-size: 15.5px; margin: 5px 0 10px; min-height: 46px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.p-price { font-weight: 900; font-size: 16px; color: var(--yellow); }
.p-price small { color: var(--faint); font-weight: 400; font-size: 11px; display: block; }
.p-stock { font-size: 11.5px; font-weight: 700; }
.p-stock.in { color: var(--green); } .p-stock.out { color: var(--danger); } .p-stock.low { color: var(--yellow); }
.p-add {
  width: 40px; height: 40px; border-radius: 12px; background: var(--yellow); color: #000; display: grid; place-items: center;
  flex-shrink: 0; transition: transform var(--t), border-radius .3s, background var(--t);
}
.p-add:hover { transform: scale(1.1) rotate(-6deg); }
.p-add svg { width: 19px; height: 19px; }
.p-card.disabled { opacity: .55; }

/* ---------- benefits ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.benefit {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  transition: transform var(--t), border-color .3s, box-shadow .3s; position: relative; overflow: hidden;
}
.benefit:hover { transform: translateY(-5px); border-color: rgba(255,214,0,.4); box-shadow: var(--glow); }
.benefit .b-ic {
  width: 52px; height: 52px; border-radius: 14px; background: var(--yellow-dim); border: 1px solid rgba(255,214,0,.3);
  display: grid; place-items: center; font-size: 24px; margin-bottom: 18px;
}
.benefit h4 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.benefit p { color: var(--muted); font-size: 14px; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-visual { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.about-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(255,214,0,.12), transparent 45%); }
.about-text p { color: var(--muted); font-size: 16px; margin: 18px 0 28px; }

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 48px; }
.service-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform var(--t), border-color .3s, box-shadow .3s; }
.service-card:hover { transform: translateY(-5px); border-color: rgba(255,214,0,.4); box-shadow: var(--glow); }
.service-card h4 { font-size: 17.5px; font-weight: 800; margin: 14px 0 8px; }
.service-card p { color: var(--muted); font-size: 14px; }
.service-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line2); font-size: 13.5px; }
.service-meta .s-price { color: var(--yellow); font-weight: 800; }
.booking-box { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 34px; max-width: 720px; margin-inline: auto; }
.booking-box h4 { font-size: 19px; font-weight: 800; margin-bottom: 20px; }
.booking-box form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.booking-box form .full { grid-column: 1 / -1; }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.g-item { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3.4; background: var(--surface); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.g-item:hover img { transform: scale(1.07); }
.g-item .g-cap { position: absolute; inset-inline: 0; bottom: 0; padding: 30px 14px 12px; font-size: 13px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.empty-note { color: var(--faint); text-align: center; padding: 50px 20px; border: 1px dashed var(--line2); border-radius: var(--radius); }

/* ---------- testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.testi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; transition: transform var(--t), border-color .3s; }
.testi:hover { transform: translateY(-4px); border-color: rgba(255,214,0,.35); }
.testi .stars { color: var(--yellow); letter-spacing: 3px; margin-bottom: 14px; }
.testi p { color: #cfcfcf; font-size: 14.5px; }
.testi .t-name { margin-top: 18px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.testi .t-name::before { content: ''; width: 26px; height: 2px; background: var(--yellow); border-radius: 2px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 780px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: var(--surface); overflow: hidden; transition: border-color .3s; }
.faq-item.open { border-color: rgba(255,214,0,.4); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 19px 22px; font-weight: 700; font-size: 15.5px; text-align: start; }
.faq-q .f-ic { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--yellow); color: var(--yellow); display: grid; place-items: center; font-size: 15px; transition: transform .4s var(--ease), background .3s; }
.faq-item.open .f-ic { transform: rotate(45deg); background: var(--yellow); color: #000; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq-a.open { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 700; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--bg2); border: 1.5px solid var(--line2); border-radius: 12px; padding: 12px 15px;
  color: var(--text); font-size: 14.5px; outline: none; width: 100%;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,214,0,.13); background: #131313; }
.field textarea { min-height: 96px; resize: vertical; }
.field select option { background: var(--surface); }

/* ---------- product page ---------- */
.pd-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 52px; align-items: start; }
.pd-visual { position: sticky; top: 100px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(480px 320px at 50% 30%, rgba(255,214,0,.10), transparent 70%), var(--surface); }
.pd-visual img { width: 100%; }
.pd-info .p-brand { font-size: 13px; }
.pd-title { font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; margin: 8px 0 16px; line-height: 1.3; }
.pd-price-row { display: flex; align-items: center; gap: 18px; margin: 22px 0; }
.pd-price { font-family: var(--display); font-size: 34px; font-weight: 800; color: var(--yellow); }
.pd-price small { font-size: 15px; color: var(--muted); font-family: var(--font); }
.pd-buy { display: flex; gap: 14px; align-items: center; margin: 26px 0; flex-wrap: wrap; }
.qty-box { display: flex; align-items: center; border: 1.5px solid var(--line2); border-radius: 12px; overflow: hidden; }
.qty-box button { width: 42px; height: 46px; font-size: 19px; color: var(--yellow); transition: background var(--t); }
.qty-box button:hover { background: var(--surface2); }
.qty-box input { width: 56px; height: 46px; background: transparent; border: none; color: #fff; text-align: center; font-size: 16px; font-weight: 800; outline: none; }
.pd-tabs { margin-top: 34px; border-top: 1px solid var(--line); }
.pd-tab-btns { display: flex; gap: 6px; margin: 18px 0; flex-wrap: wrap; }
.pd-tab-btn { padding: 9px 18px; border-radius: 100px; font-size: 13.5px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); transition: all var(--t); }
.pd-tab-btn.active { background: var(--yellow); color: #000; border-color: var(--yellow); }
.pd-tab-pane { color: var(--muted); font-size: 14.5px; line-height: 1.9; }
.spec-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--line2); font-size: 14px; }
.spec-row span:last-child { color: var(--text); font-weight: 600; }
.crumbs { display: flex; gap: 10px; align-items: center; color: var(--faint); font-size: 13px; margin-bottom: 30px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); transition: color var(--t); } .crumbs a:hover { color: var(--yellow); }

/* ---------- checkout ---------- */
.co-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
.co-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.co-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 22px; }
.co-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.co-form .full { grid-column: 1 / -1; }
.co-summary .co-line { display: flex; justify-content: space-between; padding: 11px 0; font-size: 14.5px; color: var(--muted); }
.co-summary .co-line b { color: var(--text); }
.co-total { display: flex; justify-content: space-between; padding-top: 16px; margin-top: 6px; border-top: 1px solid var(--line); font-weight: 900; font-size: 17px; }
.co-total .tt { color: var(--yellow); font-family: var(--display); font-size: 24px; }
.co-note { font-size: 12.5px; color: var(--faint); margin-top: 16px; }

/* ---------- order success ---------- */
.success-wrap { max-width: 620px; margin: 40px auto; text-align: center; }
.success-ic {
  width: 86px; height: 86px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(67,209,124,.12); border: 1.5px solid var(--green); color: var(--green); font-size: 38px;
  animation: popIn .7s cubic-bezier(.2, 1.6, .4, 1);
}
@keyframes popIn { from { transform: scale(0); opacity: 0; } }
.success-code {
  font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: .15em; color: var(--yellow);
  background: var(--surface); border: 1px dashed rgba(255,214,0,.4); border-radius: 14px; padding: 16px; margin: 24px 0; direction: ltr;
}
.order-status-pill { display: inline-block; padding: 7px 18px; border-radius: 100px; font-weight: 800; font-size: 13px; }
.order-status-pill.pending { background: rgba(255,214,0,.12); color: var(--yellow); }
.order-status-pill.completed { background: rgba(67,209,124,.12); color: var(--green); }
.order-status-pill.canceled { background: rgba(255,90,90,.12); color: var(--danger); }

/* ---------- cart drawer ---------- */
.cart-drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(410px, 94vw); z-index: 120;
  background: var(--bg2); border-inline-start: 1px solid var(--line); display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .5s cubic-bezier(.5, 0, .1, 1);
}
[dir="rtl"] .cart-drawer { transform: translateX(-105%); }
.cart-drawer.open { transform: none !important; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 18px; font-weight: 800; }
.drawer-items { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line); }
.ci { display: flex; gap: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; animation: itemIn .45s var(--ease); }
@keyframes itemIn { from { opacity: 0; transform: translateY(12px); } }
.ci img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.ci .ci-body { flex: 1; min-width: 0; }
.ci .ci-name { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci .ci-price { color: var(--yellow); font-size: 13px; font-weight: 800; margin-top: 3px; }
.ci .ci-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.ci .qty-box { transform: scale(.85); transform-origin: inline-start; }
.ci .ci-del { color: var(--faint); font-size: 15px; transition: color var(--t); } .ci .ci-del:hover { color: var(--danger); }
.drawer-total { display: flex; justify-content: space-between; font-weight: 900; margin-bottom: 16px; }
.drawer-total .tt { color: var(--yellow); font-size: 18px; font-family: var(--display); }
.drawer-foot .btn { width: 100%; }
#overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); z-index: 110;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
#overlay.show { opacity: 1; visibility: visible; }

/* ---------- footer ---------- */
#footer { border-top: 1px solid var(--line); background: var(--bg2); padding: 70px 0 0; position: relative; overflow: hidden; }
#footer::before { content: ''; position: absolute; top: -140px; inset-inline: 0; height: 140px; background: radial-gradient(600px 140px at 50% 100%, rgba(255,214,0,.07), transparent 70%); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-brand img { height: 40px; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 300px; }
.footer-col h5 { font-size: 15px; font-weight: 800; margin-bottom: 18px; color: var(--yellow); }
.footer-col a, .footer-col span { display: block; color: var(--muted); font-size: 14px; padding: 6px 0; transition: color var(--t), transform var(--t); }
.footer-col a:hover { color: var(--yellow); transform: translateX(4px); }
[dir="rtl"] .footer-col a:hover { transform: translateX(-4px); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--muted); transition: all var(--t);
}
.footer-social a:hover { color: #000; background: var(--yellow); border-color: var(--yellow); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 22px 0; display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap; color: var(--faint); font-size: 13px;
}
.footer-bottom .credit { font-family: var(--display); letter-spacing: .04em; }
.footer-bottom .credit b { color: var(--yellow); }

/* ---------- modal ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.65); backdrop-filter: blur(5px);
  display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .3s;
}
.modal-back.show { opacity: 1; }
.modal {
  width: min(460px, 100%); background: var(--surface); border: 1px solid var(--line2); border-radius: 22px;
  padding: 34px; transform: translateY(26px) scale(.97); transition: transform .4s var(--ease);
  max-height: 88vh; overflow-y: auto;
}
.modal-back.show .modal { transform: none; }
.modal h3 { font-size: 20px; font-weight: 900; margin-bottom: 22px; }
.modal .modal-close { position: absolute; top: 18px; inset-inline-end: 18px; }

/* ---------- toasts ---------- */
#toasts { position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--surface2); border: 1px solid rgba(255,214,0,.35); border-radius: 14px; padding: 14px 20px;
  font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.5);
  animation: toastIn .45s var(--ease); max-width: 340px;
}
.toast.err { border-color: rgba(255,90,90,.5); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } }
.toast.out { animation: toastOut .35s ease-in forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ---------- maintenance view ---------- */
.maint-wrap { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; position: relative; overflow: hidden; }
.maint-wrap img { height: 54px; margin: 0 auto 28px; filter: drop-shadow(0 0 30px rgba(255,214,0,.3)); }
.maint-wrap h1 { font-size: clamp(26px, 5vw, 42px); font-weight: 900; margin-bottom: 14px; }
.maint-wrap p { color: var(--muted); max-width: 420px; margin-inline: auto; }

/* flying cart dot */
.fly-dot {
  position: fixed; z-index: 400; width: 16px; height: 16px; border-radius: 50%; background: var(--yellow);
  box-shadow: 0 0 18px var(--yellow); pointer-events: none;
  transition: transform .7s cubic-bezier(.3, -0.2, .6, 1.4), opacity .7s;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; order: -1; }
  .hero { padding-top: 110px; }
  .pd-grid, .co-grid, .about-grid { grid-template-columns: 1fr; }
  .pd-visual { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  #main-nav { display: none; }
  .menu-btn { display: flex; }
  section { padding: 64px 0; }
  .booking-box form, .co-form { grid-template-columns: 1fr; }
  .co-form .full { grid-column: auto; }
}
@media (max-width: 560px) {
  .hero-stats { gap: 26px; }
  .grid-products { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .p-name { font-size: 13.5px; min-height: 40px; }
  .p-info { padding: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-stat .num { font-size: 30px; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; filter: none; transform: none; }
  .stagger > * { opacity: 1; transform: none; }
  .mask > span { transform: none; }
  .hero-jar { opacity: 1; transform: none; }
}

/* ---------- cart & checkout additions ---------- */
.p-actions { display: flex; align-items: center; gap: 8px; }
.p-add[disabled] { opacity: .4; pointer-events: none; }
.pd-buy .qty-box { height: 48px; }
.ci .ci-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 4px; flex-wrap: wrap; }
.ci .ci-meta b { color: var(--text); font-weight: 800; }
.ci .ci-meta .ci-sum { color: var(--yellow); }
.field .req { color: var(--danger); }
.field .err { display: none; color: var(--danger); font-size: 12px; }
.field.bad .err { display: block; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--danger); }
.field select:disabled { opacity: .5; }
.co-paybar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 28px; background: var(--surface); border: 1px solid rgba(255,214,0,.35); border-radius: 20px; padding: 22px 28px; }
.co-paytotal { display: flex; align-items: baseline; gap: 14px; font-weight: 800; }
.co-paytotal .tt { color: var(--yellow); font-family: var(--display); font-size: 26px; }
@media (max-width: 560px) { .co-paybar { padding: 18px; } .co-paybar .btn { width: 100%; } }
