/* ====== FONTS: Readex Pro (Arabic) + Plus Jakarta Sans (English) ====== */
:root, [data-theme="dark"] {
  /* Pitch Black luxury system (default) */
  --bg: #080808;
  --card: #121214;
  --card-2: #18181B;
  --line: rgba(39, 39, 42, .8);           /* zinc-800/80 */
  --text: #FFFFFF;
  --sub: #E4E4E7;                          /* off-white subheadings */
  --muted: #9CA3AF;                        /* muted gray captions */
  --accent: #DC2626;                       /* deep crimson — RESERVED: badges / active tabs / CTA hover */
  --accent-soft: rgba(220, 38, 38, .12);
  --glass: rgba(8, 8, 8, .82);
  --shadow: 0 2px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 12px 60px rgba(0,0,0,.55);
  --font-ar: 'Readex Pro', 'Cairo', system-ui, sans-serif;
  --font-en: 'Plus Jakarta Sans', 'Space Grotesk', system-ui, sans-serif;
  color-scheme: dark;
  font-family: var(--font-ar);
  color: var(--text); background: var(--bg);
}
[data-theme="light"] {
  --bg: #fafafa;
  --card: #ffffff;
  --card-2: #f4f4f5;
  --line: rgba(24, 24, 27, .12);
  --text: #09090b;
  --sub: #27272a;
  --muted: #71717a;
  --accent: #DC2626;
  --accent-soft: rgba(220, 38, 38, .08);
  --glass: rgba(255, 255, 255, .85);
  --shadow: 0 2px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 60px rgba(0,0,0,.1);
  color-scheme: light;
}

/* ====== RESET ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--text); overflow-x: hidden; line-height: 1.7; min-height: 100vh; }

/* ====== DYNAMIC STREETWEAR BACKGROUND (SVG watermark) ======
   Hanger outlines + apparel cut-lines + geometric star accents.
   Hardware-accelerated fixed layer @ ~5% opacity — luxury, non-distracting. */
.bg-pattern {
  position: fixed; inset: -40px; z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='1.4'%3E%3C!-- hanger outline --%3E%3Cpath d='M72 62c0-16 10-26 24-26s24 10 24 26'/%3E%3Cpath d='M96 62v46'/%3E%3Cpath d='M79 108h34'/%3E%3C!-- star accent --%3E%3Cpath d='M178 44l6.5 13 14 2.2-10 9.7 2.3 14-12.8-6.7-12.8 6.7 2.3-14-10-9.7 14-2.2z'/%3E%3C!-- apparel cut-line (tee) --%3E%3Cpath d='M132 158l-21-17v-31l21-17h20l21 17v31l-21 17z'/%3E%3Cpath d='M132 153l-12-10M148 158v-42M172 153l12-10'/%3E%3C!-- mini star --%3E%3Cpath d='M44 168l4.5 9 9.5 1.5-7 6.8 1.6 9.7-9.1-4.8-9.1 4.8 1.6-9.7-7-6.8 9.5-1.5z'/%3E%3C!-- sleeve lines --%3E%3Cpath d='M216 74h22M206 216h22M32 224h18'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 260px 260px;
  opacity: .05;
  will-change: transform;
  animation: pattern-drift 90s linear infinite;
}
[data-theme="light"] .bg-pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='none' stroke='%2318181B' stroke-width='1.4'%3E%3Cpath d='M72 62c0-16 10-26 24-26s24 10 24 26'/%3E%3Cpath d='M96 62v46'/%3E%3Cpath d='M79 108h34'/%3E%3Cpath d='M178 44l6.5 13 14 2.2-10 9.7 2.3 14-12.8-6.7-12.8 6.7 2.3-14-10-9.7 14-2.2z'/%3E%3Cpath d='M132 158l-21-17v-31l21-17h20l21 17v31l-21 17z'/%3E%3Cpath d='M132 153l-12-10M148 158v-42M172 153l12-10'/%3E%3Cpath d='M44 168l4.5 9 9.5 1.5-7 6.8 1.6 9.7-9.1-4.8-9.1 4.8 1.6-9.7-7-6.8 9.5-1.5z'/%3E%3Cpath d='M216 74h22M206 216h22M32 224h18'/%3E%3C/g%3E%3C/svg%3E");
  opacity: .06;
}
@keyframes pattern-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-18px, 12px, 0) scale(1.03); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-pattern { animation: none; }
}

/* Keep page content above the background watermark (only non-fixed layers need this) */
.main-content, .site-footer, .bottom-nav { position: relative; z-index: 2; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4 { font-family: var(--font-en); font-weight: 800; letter-spacing: -.03em; text-transform: uppercase; color: var(--text); }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4 { font-family: var(--font-ar); font-weight: 800; text-transform: none; letter-spacing: 0; }
p, span, label, input, textarea, select, a { font-weight: 400; }
.price, .product-price strong, .detail-price strong, strong b { font-family: var(--font-en); font-weight: 700; color: var(--text); }
[lang="ar"] .price, [lang="ar"] .product-price strong, [lang="ar"] .detail-price strong { font-family: var(--font-ar); font-weight: 700; }
.eyebrow { font-family: var(--font-en); font-weight: 600; font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
[lang="ar"] .eyebrow { font-family: var(--font-ar); letter-spacing: .05em; }
.muted { color: var(--muted); }

/* ====== UTILITY ====== */
.container { max-width: 1280px; margin-inline: auto; padding-inline: 1.5rem; }
.page { display: none; }
.page.active { display: block; }
.section { padding: 5rem 0; }
.main-content { min-height: 60vh; }

/* ====== BUTTONS ====== */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--text); color: var(--bg); border: 2px solid var(--text);
  padding: .85rem 1.8rem; border-radius: 999px;
  font-family: var(--font-en); font-weight: 700; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .04em;
  transition: all .3s cubic-bezier(.2,.8,.2,1); cursor: pointer;
  position: relative;
  overflow: hidden;
}
.button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,.2) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform .5s ease;
}
.button:hover::before { transform: translateX(100%); }
[lang="ar"] .button { font-family: var(--font-ar); text-transform: none; letter-spacing: 0; font-weight: 700; }
.button:hover {
  background: var(--accent); border-color: var(--accent); color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(220,38,38,.35), 0 4px 12px rgba(0,0,0,.3);
}
.button-lg { width: 100%; padding: 1rem 1.8rem; font-size: .95rem; }
.button-outline { background: transparent; color: var(--text); border-color: var(--line); }
.button-outline:hover {
  border-color: var(--accent); color: var(--accent);
  background: rgba(220,38,38,.08);
  box-shadow: 0 8px 30px rgba(220,38,38,.2);
}
.button-ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); padding: .6rem 1.2rem; border-radius: 999px; font-size: .82rem; }
.button-ghost:hover { color: var(--text); border-color: var(--text); }
.button-sm { padding: .55rem 1.1rem; font-size: .76rem; }
.button-danger { background: #e53935; border-color: #e53935; color: #fff; }
.button-danger:hover { background: transparent; color: #e53935; }

/* ====== HEADER ====== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--glass); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  transition: all .3s ease;
}
.site-header:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 72px; }
.brand { display: flex; align-items: center; transition: transform .3s ease; }
.brand:hover { transform: scale(1.05); }
/* Logo: shown as-is with natural colors on every theme (no invert, no white chip) */
.brand-logo { height: 58px; width: auto; object-fit: contain; filter: none; transition: filter .3s ease; }
.brand:hover .brand-logo { filter: drop-shadow(0 4px 12px rgba(220,38,38,.4)); }
.auth-logo { text-align: center; margin-bottom: 1rem; }
.auth-logo-img { height: 120px; width: auto; margin: 0 auto; display: block; filter: none; }
.top-nav { display: flex; gap: 2rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
[lang="ar"] .top-nav { font-family: var(--font-ar); font-weight: 600; }
.top-nav a { transition: all .3s cubic-bezier(.2,.8,.2,1); position: relative; }
.top-nav a:hover, .top-nav a.active { color: var(--text); transform: translateY(-1px); }
.top-nav a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 1px;
  animation: lineExpand .3s ease;
}
@keyframes lineExpand { from { width: 0; left: 50%; right: 50%; } to { width: 100%; left: 0; right: 0; } }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.wish-btn {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; width: 40px; height: 40px; display: grid; place-items: center;
  color: var(--muted); transition: all .3s cubic-bezier(.2,.8,.2,1);
}
.customer-bell {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; width: 40px; height: 40px; display: grid; place-items: center;
  color: var(--muted); transition: all .3s cubic-bezier(.2,.8,.2,1);
}
.theme-toggle {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; width: 40px; height: 40px; display: grid; place-items: center;
  color: var(--muted); transition: all .3s cubic-bezier(.2,.8,.2,1);
}
.theme-toggle:hover { color: var(--text); border-color: var(--text); transform: scale(1.05); }
.customer-bell:hover {
  border-color: var(--accent); color: var(--accent);
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 4px 15px rgba(220,38,38,.25);
}
.customer-bell .notif-count { position: absolute; top: -7px; inset-inline-end: -7px; background: var(--accent); color: #fff; font-size: .6rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; padding-inline: 4px; }

/* ====== ANNOUNCEMENT BANNER ====== */
.announce-bar {
  position: sticky; top: 0; z-index: 45;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: .6rem 3rem .6rem 1rem;
  background: linear-gradient(135deg, var(--accent) 0%, #EF4444 100%);
  color: #fff;
  font-size: .8rem; font-weight: 700; text-align: center;
  box-shadow: 0 4px 20px rgba(220,38,38,.3);
  animation: slideDown .4s ease;
}
.offline-bar {
  position: sticky; top: 0; z-index: 46;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .55rem 1rem;
  background: #44403C; color: #FEF3C7;
  font-size: .78rem; font-weight: 600; text-align: center;
  animation: slideDown .3s ease;
}
@media (max-width: 768px) {
  .offline-bar { font-size: .7rem; padding: .5rem .8rem; }
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.announce-close {
  position: absolute; inset-inline-end: .8rem;
  top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: #fff;
  background: rgba(255,255,255,.15);
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: none; line-height: 1; cursor: pointer;
  transition: all .3s ease;
}
.announce-close:hover {
  background: rgba(255,255,255,.3);
  transform: translateY(-50%) rotate(90deg);
}
.wish-btn:hover {
  border-color: var(--accent); color: var(--accent);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(220,38,38,.25);
}
.wish-btn b { position: absolute; top: -7px; inset-inline-end: -7px; background: var(--accent); color: #fff; font-size: .6rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; padding-inline: 4px; }
.lang-toggle { background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: .75rem; padding: .45rem .75rem; border-radius: 999px; font-weight: 600; transition: all .2s; white-space: nowrap; }
.lang-toggle:hover { color: var(--text); border-color: var(--text); }
.search-wrap { position: relative; }
.search-wrap input {
  width: 180px; background: var(--card);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .5rem 1rem; outline: none; font-size: .82rem;
  transition: all .3s cubic-bezier(.2,.8,.2,1);
}
.search-wrap input:focus {
  border-color: var(--accent);
  width: 220px;
  box-shadow: 0 4px 15px rgba(220,38,38,.15);
}
.search-results { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; width: 260px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: .4rem; display: grid; gap: .1rem; box-shadow: var(--shadow-lg); z-index: 10; }
.search-results a { padding: .6rem .8rem; font-size: .82rem; border-radius: 10px; display: block; }
.search-results a:hover { background: var(--card); }
.auth-button { background: transparent; border: 1px solid var(--line); padding: .5rem 1.1rem; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--muted); transition: all .2s; }
.auth-button:hover { border-color: var(--text); color: var(--text); }
.cart-button {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; width: 40px; height: 40px; display: grid; place-items: center;
  transition: all .3s cubic-bezier(.2,.8,.2,1);
}
.cart-button:hover {
  border-color: var(--accent);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(220,38,38,.25);
}
.cart-button b { position: absolute; top: -7px; inset-inline-end: -7px; background: var(--accent); color: #fff; font-size: .6rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; padding-inline: 4px; }

/* ====== HERO ====== */
.hero {
  position: relative; overflow: hidden; display: flex; align-items: center;
  min-height: 85vh; background: var(--bg);
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--card) 0%, rgba(220,38,38,.08) 100%);
  opacity: .6;
  animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { opacity: .6; transform: scale(1); }
  100% { opacity: .75; transform: scale(1.02); }
}
.hero-inner { position: relative; z-index: 1; padding-block: 6rem; max-width: 700px; }
.hero h1 {
  font-family: var(--font-en);
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1.08; font-weight: 800;
  margin: .8rem 0; text-transform: uppercase;
  text-shadow: 0 4px 20px rgba(0,0,0,.4);
}
[lang="ar"] .hero h1 { font-family: var(--font-ar); font-weight: 900; text-transform: none; }
.hero h1 .hero-line1 { display: block; animation: fadeUp .8s .15s cubic-bezier(.2,.8,.2,1) both; }
.hero h1 em {
  font-style: normal; display: block;
  animation: fadeUp .7s .4s cubic-bezier(.2,.8,.2,1) both;
  background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: var(--muted); font-size: 1.05rem;
  max-width: 480px; line-height: 1.9; margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
}

/* ====== GLOBAL ANIMATION SYSTEM ====== */
@keyframes fadeUp { from { opacity: 0; transform: translate3d(0, 30px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeDown { from { opacity: 0; transform: translate3d(0, -20px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale3d(.88, .88, 1); } to { opacity: 1; transform: scale3d(1, 1, 1); } }
@keyframes subtleFloat { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -6px, 0); } }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ====== HERO TEXT ANIMATION ====== */
.hero .eyebrow { animation: fadeDown .7s cubic-bezier(.2,.8,.2,1) both; }
.hero h1 { animation: none; }
.hero h1 em { animation: fadeUp .7s .35s cubic-bezier(.2,.8,.2,1) both; display: block; }
.hero p { animation: fadeUp .7s .5s cubic-bezier(.2,.8,.2,1) both; }
.hero-cta { animation: scaleIn .6s .7s cubic-bezier(.2,.8,.2,1.2) both; }

/* ====== SCROLL REVEAL (applied via JS Intersection Observer) ====== */
.reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .65s cubic-bezier(.2,.8,.2,1), transform .65s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: translate3d(0, 0, 0); }
.reveal-scale { opacity: 0; transform: scale3d(.9, .9, 1); transition: opacity .5s cubic-bezier(.2,.8,.2,1), transform .5s cubic-bezier(.2,.8,.2,1.2); }
.reveal-scale.visible { opacity: 1; transform: scale3d(1, 1, 1); }

/* stagger delays for product grid children */
.product-grid .product-card:nth-child(1) { transition-delay: .02s; }
.product-grid .product-card:nth-child(2) { transition-delay: .08s; }
.product-grid .product-card:nth-child(3) { transition-delay: .14s; }
.product-grid .product-card:nth-child(4) { transition-delay: .2s; }
.product-grid .product-card:nth-child(5) { transition-delay: .06s; }
.product-grid .product-card:nth-child(6) { transition-delay: .12s; }
.product-grid .product-card:nth-child(7) { transition-delay: .18s; }
.product-grid .product-card:nth-child(8) { transition-delay: .24s; }

/* ====== BUTTON MICRO-INTERACTIONS ====== */
.button:active { transform: scale(.94) !important; transition: transform .1s ease; }
.button:hover { animation: buttonGlow .8s ease; }
@keyframes buttonGlow { 0% { box-shadow: 0 8px 30px rgba(220,38,38,.25); } 50% { box-shadow: 0 8px 50px rgba(220,38,38,.45); } 100% { box-shadow: 0 8px 30px rgba(220,38,38,.25); } }
.button-outline:hover { box-shadow: 0 0 40px rgba(255,255,255,.08), 0 8px 24px rgba(0,0,0,.3); }
.auth-card .button { animation: fadeUp .5s .3s cubic-bezier(.2,.8,.2,1) both; }

/* Cart badge bounce */
@keyframes badgePop { 0% { transform: scale(.5); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }
.cart-button b:not([style*="display:none"]), .wish-btn b:not([style*="display:none"]), .customer-bell .notif-count:not([style*="display:none"]) {
  animation: badgePop .35s cubic-bezier(.2,.8,.2,1.4);
}

/* ====== DRAWER ANIMATION ====== */
.cart-drawer { transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .35s ease; }
.drawer-backdrop { transition: opacity .35s ease; }

/* ====== AUTH CARD ENTRANCE ====== */
.auth-card.auth-glass { animation: scaleIn .55s .1s cubic-bezier(.2,.8,.2,1.2) both; }
.auth-lang-toggle { animation: fadeIn .4s .5s ease both; }
.auth-shape { animation: subtleFloat 6s ease-in-out infinite; }
.auth-shape.s1 { animation-delay: 0s; }
.auth-shape.s2 { animation-delay: -1.5s; }
.auth-shape.s3 { animation-delay: -3s; }
.auth-shape-line { animation: fadeIn 1s 1s ease both; }

/* ====== MODAL POP ====== */
.modal-box { animation: scaleIn .35s cubic-bezier(.2,.8,.2,1.2) both; }

/* ====== TOAST SLIDE ====== */
.toast { animation: fadeUp .35s cubic-bezier(.2,.8,.2,1) both; }

/* ====== SECTION HEADING REVEAL ====== */
.section-heading { animation: fadeUp .6s cubic-bezier(.2,.8,.2,1) both; }

/* ====== PAGE ENTER ====== */
.page.active { animation: fadeIn .35s ease both; }

/* ====== OFFER/BRANCH CARDS ====== */
.branch-card, .admin-card, .value-card, .stat-card { transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .25s ease; }
.branch-card:hover, .admin-card:hover, .value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ====== PRODUCT GRID ====== */
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 2.5rem; }
.section-heading h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.section-heading a { color: var(--muted); font-size: .85rem; font-weight: 600; transition: color .2s; }
.section-heading a:hover { color: var(--text); }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }

/* ====== STICKY CATEGORY PILLS (System Prompt 3) ====== */
.cat-pills-wrap { position: sticky; top: 72px; z-index: 30; background: linear-gradient(var(--bg) 82%, transparent); padding: .4rem 0 .7rem; margin-bottom: .2rem; }
@media (max-width: 768px) { .cat-pills-wrap { top: 60px; } }
.cat-pills { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: .2rem 0; }
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pills button { flex-shrink: 0; background: transparent; border: 1px solid var(--line); color: var(--muted); padding: .5rem 1.1rem; border-radius: 999px; font-size: .78rem; font-weight: 600; transition: all .2s; }
.cat-pills button:hover { color: var(--text); border-color: var(--text); }
.cat-pills button.selected { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ====== ROTATION LOCK OVERLAY (phones — blocks landscape) ====== */
.rotate-overlay { display: none; position: fixed; inset: 0; z-index: 9999; background: var(--bg); align-items: center; justify-content: center; text-align: center; }
@media (max-width: 820px) and (orientation: landscape) {
  .rotate-overlay { display: flex !important; }
  .site-header, .bottom-nav, .main-content, .site-footer, .cart-drawer, .float-cart-bar, .drawer-backdrop, .modal-overlay, .toast, .announce-bar, .optin-banner, .notif-dropdown { display: none !important; }
}
.rotate-card { max-width: 320px; padding: 2rem; }
.rotate-card .rotate-phone { font-size: 4rem; margin-bottom: 1rem; animation: rotateBounce 1.8s ease-in-out infinite; }
@keyframes rotateBounce { 0%,100% { transform: rotate(0deg) translateY(0); } 25% { transform: rotate(-90deg) translateY(-6px); } 75% { transform: rotate(-90deg) translateY(6px); } }
.rotate-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .5rem; }
.rotate-card p { color: var(--muted); font-size: .85rem; line-height: 1.7; }

/* ====== BRANCHES GRID (customer) ====== */
.branches-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 640px) { .branches-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .branches-grid { grid-template-columns: repeat(3, 1fr); } }
.branch-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 1.3rem;
  transition: all .3s cubic-bezier(.2,.8,.2,1);
  position: relative;
  overflow: hidden;
}
.branch-card::after {
  content: '📍';
  position: absolute;
  top: 10px; inset-inline-end: 10px;
  font-size: 1.5rem;
  opacity: .15;
  transition: all .3s ease;
}
.branch-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 50px rgba(220,38,38,.2);
  border-color: var(--accent);
}
.branch-card:hover::after {
  opacity: .4;
  transform: scale(1.2) rotate(12deg);
}
.branch-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.branch-card .branch-addr { font-size: .8rem; color: var(--muted); line-height: 1.8; margin-bottom: .5rem; }
.branch-card .branch-hours { font-size: .74rem; color: var(--accent); font-weight: 600; display: flex; align-items: center; gap: .35rem; }
.branch-card .branch-phone { font-size: .78rem; color: var(--sub); margin-top: .35rem; display: flex; align-items: center; gap: .35rem; }
.branch-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .5rem; }

/* ====== PRODUCT CARD v2 (System Prompt 3) ====== */
.skeleton { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.08) 50%, transparent 80%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -20% 0; } }
.product-image .img-stack { position: absolute; inset: 0; }
.product-image .img-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease; }
.product-image .img-stack img.front { opacity: 1; }
.product-card:hover .img-stack img.back, .product-image.tapped .img-stack img.back { opacity: 1; }
.product-card:hover .img-stack img.front, .product-image.tapped .img-stack img.front { opacity: 0; }
.product-size-bar { display: flex; justify-content: center; gap: .25rem; padding: .3rem .5rem .5rem; flex-wrap: wrap; }
.product-size-bar button { background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: .6rem; font-weight: 700; padding: .25rem .45rem; border-radius: 6px; transition: all .2s; cursor: default; }
.product-size-bar button:hover { border-color: var(--accent); color: var(--accent); }
.product-badge.best { background: #fff; color: #000; }
.product-badge.new { background: var(--accent); color: #fff; }
.wish-chip { position: absolute; top: 10px; inset-inline-end: 10px; background: var(--glass); backdrop-filter: blur(8px); border: 1px solid var(--line); width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; font-size: .9rem; z-index: 3; transition: all .2s; }
.wish-chip:hover { transform: scale(1.12) rotate(12deg); border-color: var(--accent); }
.product-card {
  min-width: 0; display: flex; flex-direction: column;
  background: var(--card); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  transition: all .3s cubic-bezier(.2,.8,.2,1);
  cursor: pointer;
  position: relative;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, transparent 0%, rgba(220,38,38,.4) 50%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s ease;
}
.product-card .product-size-bar { padding: .2rem .6rem .5rem; }
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(220,38,38,.25), 0 8px 20px rgba(0,0,0,.4);
  border-color: rgba(220,38,38,.5);
}
.product-card:hover::before { opacity: 1; }
.product-image { aspect-ratio: 3/4; overflow: hidden; position: relative; background: var(--card); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.product-card:hover .product-image img { transform: scale(1.08) rotate(1deg); }
.product-badge { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--text); color: var(--bg); font-size: .65rem; font-weight: 700; padding: .25rem .55rem; border-radius: 6px; z-index: 2; }
.product-badge.fire { background: #dc2626; color: #fff; }
.product-cat { position: absolute; bottom: 10px; inset-inline-start: 10px; background: var(--glass); backdrop-filter: blur(8px); font-size: .6rem; font-weight: 600; padding: .25rem .55rem; border-radius: 6px; border: 1px solid var(--line); z-index: 2; }
.product-cat-inline { display: block; font-size: .6rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-info { padding: .9rem 1rem; display: flex; flex-direction: column; gap: .35rem; }
.product-info-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.product-info h3 { font-size: .85rem; font-weight: 700; line-height: 1.4; flex: 1; text-transform: none; color: var(--text); word-break: break-word; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-type-chip, .product-type-badge { display: inline-block; font-size: .58rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .12rem .45rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); margin-bottom: .3rem; white-space: nowrap; }
.product-type-chip.kids, .product-type-badge.kids { color: #dc2626; border-color: rgba(220,38,38,.55); }
.product-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.product-price .old { font-size: .68rem; color: var(--muted); text-decoration: line-through; }
.product-price strong { font-size: .88rem; font-weight: 700; }
.quick-add { margin: 0 1rem .9rem; background: rgba(0,0,0,.04); border: 1px solid var(--line); padding: .5rem; border-radius: 999px; font-size: .75rem; font-weight: 700; text-align: center; color: var(--muted); transition: all .2s; cursor: pointer; }
.quick-add:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ====== CATALOG ====== */
.catalog h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.catalog-tools { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 2rem 0; flex-wrap: wrap; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.filters button { background: transparent; border: 1px solid var(--line); color: var(--muted); padding: .5rem 1rem; border-radius: 999px; font-size: .78rem; font-weight: 600; transition: all .2s; }
.filters button:hover { color: var(--text); border-color: var(--text); }
.filters button.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.catalog-tools input { width: 230px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1rem; outline: none; font-size: .82rem; }
.catalog-tools input:focus { border-color: var(--text); }

/* ====== PRODUCT DETAIL (v2 - System Prompt 4) ====== */
.product-detail { padding: 4rem 0 6rem; }
.product-detail-inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 3rem; align-items: start; }
/* Gallery */
.detail-media { position: relative; }
.detail-image {
  aspect-ratio: 3/4; border-radius: 18px; overflow: hidden;
  background: var(--card); cursor: zoom-in; position: relative;
  border: 1px solid var(--line);
  transition: all .3s ease;
}
.detail-image:hover {
  box-shadow: 0 12px 40px rgba(220,38,38,.2);
  border-color: rgba(220,38,38,.3);
}
.detail-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.detail-image:hover img { transform: scale(1.08); }
.detail-image img.zoomed { transform: scale(2); cursor: zoom-out; }
.detail-image .zoom-hint { position: absolute; bottom: .8rem; inset-inline-end: .8rem; background: rgba(10,10,10,.7); border: 1px solid var(--line); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: .95rem; backdrop-filter: blur(6px); pointer-events: none; }
.detail-thumbs { display: flex; gap: .6rem; margin-top: .7rem; overflow-x: auto; padding-bottom: .2rem; scrollbar-width: none; }
.detail-thumbs::-webkit-scrollbar { display: none; }
.detail-thumbs button { flex: 0 0 auto; width: 64px; height: 80px; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); background: var(--card); padding: 0; cursor: pointer; transition: border-color .2s; }
.detail-thumbs button.active { border-color: var(--accent); }
.detail-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
/* Copy */
.detail-copy .eyebrow { margin-bottom: .4rem; }
.detail-copy h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: .6rem; }
.detail-price { display: flex; align-items: center; gap: .8rem; margin: .5rem 0 1rem; flex-wrap: wrap; }
.detail-price .old { font-size: 1rem; color: var(--muted); text-decoration: line-through; }
.detail-price strong { font-size: 1.5rem; font-weight: 700; }
.detail-price .discount-badge { background: #dc2626; color: #fff; font-size: .7rem; font-weight: 700; padding: .2rem .5rem; border-radius: 5px; }
.detail-copy > p.detail-desc { color: var(--muted); line-height: 2; margin: 1rem 0 1.5rem; }
/* Selectors */
.size-picker { display: grid; gap: .6rem; margin: 1.1rem 0; }
.size-picker > span { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.size-picker div { display: flex; gap: .5rem; flex-wrap: wrap; }
.size-picker .size-pill { min-width: 44px; height: 44px; padding: 0 .7rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; font-weight: 700; font-size: .85rem; transition: all .2s; cursor: pointer; }
.size-picker .size-pill:hover { border-color: var(--accent); transform: translateY(-1px); }
.size-picker .size-pill.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.size-picker .size-pill:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
/* Qty */
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin: 1rem 0; }
.qty-row > span { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.piece-row { border: 1px solid var(--line); border-radius: 14px; padding: .8rem; margin: .6rem 0; background: var(--card); }
.piece-row-head { font-size: .72rem; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .4rem; }
.piece-row .size-picker { margin: 0 0 .4rem; }
.piece-row .color-picker { margin: 0; }
.qty-ctl { display: flex; align-items: center; gap: .3rem; }
.qty-ctl button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: all .2s; }
.qty-ctl button:hover { border-color: var(--accent); color: var(--accent); }
.qty-ctl b { min-width: 30px; text-align: center; font-size: 1.05rem; }
.detail-add-row { display: flex; gap: .8rem; margin: 1.5rem 0 .5rem; }
.add-cart-main { width: 100%; }
.detail-wish { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-size: 1.2rem; cursor: pointer; transition: all .2s; }
.detail-wish:hover { border-color: var(--accent); }
.detail-wish.wished { color: #dc2626; border-color: #dc2626; }
/* Accordions */
.detail-acc { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.detail-acc .acc-item { border-bottom: 1px solid var(--line); }
.detail-acc .acc-head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem .2rem; background: none; border: none; cursor: pointer; font-size: .95rem; font-weight: 700; color: var(--text); }
.detail-acc .acc-head i { font-style: normal; font-size: 1.1rem; color: var(--muted); transition: transform .3s; }
.detail-acc .acc-item.open .acc-head i { transform: rotate(45deg); }
.detail-acc .acc-item .acc-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.detail-acc .acc-item.open .acc-body { max-height: 240px; }
.detail-acc .acc-body p { padding: 0 .2rem 1.1rem; color: var(--muted); font-size: .9rem; line-height: 1.9; margin: 0; }
/* Sticky mobile action bar */
/* ====== CART / CHECKOUT ====== */
.checkout-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: start; }
.cart-lines { margin-top: 1.5rem; display: grid; gap: .5rem; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto auto; gap: 1rem; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: .9rem; }
.cart-line img { width: 72px; height: 92px; object-fit: cover; border-radius: 10px; }
.cart-line h3 { font-size: .85rem; font-weight: 700; text-transform: none; color: var(--text); }
.cart-line span { color: var(--muted); font-size: .75rem; }
.cart-line strong { font-size: .88rem; font-weight: 700; }
.cart-line button { color: var(--muted); font-size: 1.3rem; padding: .2rem; }
.cart-line button:hover { color: #e53935; }
.checkout-form { border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem; background: var(--card); position: sticky; top: 88px; }
.checkout-form h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 1rem; color: var(--text); }
.checkout-form label { display: grid; gap: .3rem; margin: .8rem 0; font-size: .78rem; color: var(--muted); font-weight: 600; }
.checkout-form input, .checkout-form textarea, .checkout-form select { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; outline: none; transition: border-color .2s; }
.checkout-form input:focus, .checkout-form textarea:focus, .checkout-form select:focus { border-color: var(--text); }
.checkout-form textarea { min-height: 85px; resize: vertical; }
.checkout-main { display: grid; grid-template-columns: 1.25fr .75fr; gap: 2rem; align-items: start; }
.checkout-form .req { color: #dc2626; }
/* COD highlight */
.cod-box { display: flex; align-items: center; gap: .7rem; border: 1px dashed rgba(220,38,38,.5); background: rgba(220,38,38,.07); border-radius: 12px; padding: .75rem .9rem; margin-top: 1rem; }
.cod-box b { font-size: .85rem; color: var(--text); white-space: nowrap; }
.cod-box span { font-size: .72rem; color: var(--muted); line-height: 1.6; }
/* Payment methods */
.pay-methods { display: grid; gap: .5rem; margin-top: 1rem; }
.pay-label { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.pay-opt { display: flex; align-items: center; gap: .8rem; border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; cursor: pointer; transition: all .2s; background: var(--bg); }
.pay-opt:hover { border-color: var(--text); }
.pay-opt.selected { border-color: var(--accent); background: rgba(220,38,38,.06); }
.pay-icon { font-size: 1.3rem; }
.pay-opt b { font-size: .85rem; display: block; color: var(--text); }
.pay-opt small { font-size: .7rem; color: var(--muted); }
.visa-note { background: rgba(245,158,11,.1); border: 1px dashed rgba(245,158,11,.4); color: var(--text); font-size: .78rem; border-radius: 10px; padding: .6rem .8rem; margin-top: .6rem; line-height: 1.7; }
/* Admin stats */
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 1rem; }
.stat-card { border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; background: var(--card); }
.stat-card b { display: block; font-size: 1.3rem; font-weight: 800; color: var(--text); font-family: var(--font-en); }
.stat-card span { font-size: .72rem; color: var(--muted); font-weight: 600; }
.stat-card.stat-alert { border-color: rgba(220,38,38,.5); background: rgba(220,38,38,.07); }
.stat-card.stat-alert b { color: #dc2626; }
.stat-card.stat-warn { border-color: rgba(245,158,11,.5); background: rgba(245,158,11,.07); }
.stat-card.stat-warn b { color: #f59e0b; }
/* Admin product images */
.ap-images { display: flex; gap: .5rem; flex-wrap: wrap; margin: .3rem 0 .6rem; }
.ap-img { position: relative; width: 72px; height: 92px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.ap-img img { width: 100%; height: 100%; object-fit: cover; }
.ap-img button { position: absolute; top: 2px; inset-inline-end: 2px; background: rgba(0,0,0,.65); color: #fff; border: 0; width: 20px; height: 20px; border-radius: 50%; font-size: .8rem; line-height: 1; cursor: pointer; }
.ap-img b { position: absolute; bottom: 0; left: 0; right: 0; background: #dc2626; color: #fff; font-size: .55rem; text-align: center; padding: .15rem 0; text-transform: uppercase; }
@media (max-width: 820px) {
  .admin-stats { grid-template-columns: 1fr 1fr; }
}
/* ====== FOOTER (System Prompt 7) ====== */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
  padding: 3.5rem 0 1.5rem; margin-top: 4rem;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: .4;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-brand .footer-logo {
  width: 74px; height: 74px; object-fit: contain; margin-bottom: .8rem;
  border-radius: 12px; background: #fff; padding: 8px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.footer-brand .footer-logo:hover {
  transform: scale(1.05) rotate(-5deg);
  box-shadow: 0 8px 25px rgba(220,38,38,.3);
}
.footer-brand p { color: var(--muted); font-size: .9rem; margin-bottom: .3rem; }
.footer-est { display: block; font-family: var(--font-en); font-size: .62rem; letter-spacing: .14em; color: var(--muted); font-weight: 600; margin-bottom: 1rem; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--muted);
  transition: all .3s cubic-bezier(.2,.8,.2,1);
  position: relative;
}
.footer-social a::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: scale(.8);
  transition: all .3s ease;
  z-index: -1;
}
.footer-social a:hover::before { opacity: .2; transform: scale(1.3); }
.footer-social a:hover {
  color: #fff; border-color: var(--accent); background: var(--accent);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px rgba(220,38,38,.4);
}
.footer-col { display: flex; flex-direction: column; gap: .55rem; }
.footer-col h4 { font-family: var(--font-en); font-size: .72rem; letter-spacing: .12em; color: var(--muted); margin-bottom: .4rem; }
.footer-col a { color: var(--sub); font-size: .84rem; transition: color .2s, padding-inline-start .2s; }
.footer-col a:hover { color: var(--text); padding-inline-start: 4px; }
.footer-version { display: inline-block; margin-inline-start: .35rem; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .72rem; letter-spacing: .04em; color: var(--muted); opacity: .85; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.2rem; text-align: center; color: var(--muted); font-size: .74rem; }
/* Legal pages */
.legal-inner h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; margin: .4rem 0 1rem; }
.legal-inner h3 { font-size: .98rem; font-weight: 700; margin: 1.2rem 0 .4rem; color: var(--text); }
.legal-inner p { color: var(--muted); line-height: 2; font-size: .88rem; max-width: 720px; }
.legal-table { width: 100%; max-width: 720px; border-collapse: collapse; margin-top: .6rem; font-size: .82rem; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: start; }
.legal-table th { background: var(--card); color: var(--text); font-weight: 700; }
.legal-table td { color: var(--muted); }
/* Profile card (System Prompt 7) */
.profile-card { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 1.2rem 1.3rem; margin-bottom: 1.8rem; }
.profile-row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .84rem; }
.profile-row:last-of-type { border-bottom: 0; }
.profile-row span { color: var(--muted); }
.profile-row b { color: var(--text); text-align: end; }
.profile-edit-box { border: 1px dashed rgba(220,38,38,.4); background: rgba(220,38,38,.04); border-radius: 14px; padding: 1rem; margin-bottom: 1.8rem; }
.profile-edit-box h3 { font-size: .9rem; font-weight: 700; margin-bottom: .6rem; }
.profile-edit-box label { display: grid; gap: .25rem; margin: .6rem 0; font-size: .74rem; color: var(--muted); font-weight: 600; }
.profile-edit-box input, .profile-edit-box textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; outline: none; color: var(--text); }
.profile-edit-box input:focus, .profile-edit-box textarea:focus { border-color: var(--accent); }
.o-thumbs { display: flex; gap: .3rem; margin-top: .4rem; }
.o-thumb { width: 34px; height: 42px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.o-items { display: block; margin-top: .2rem; line-height: 1.5; }
/* Tracking timeline */
.track-timeline { display: grid; gap: .35rem; margin: 1rem 0; padding-inline-start: .4rem; }
.tl-step { display: flex; align-items: center; gap: .7rem; padding: .55rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: var(--card); opacity: .45; }
.tl-step.done { opacity: 1; border-color: rgba(34,197,94,.45); }
.tl-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); display: grid; place-items: center; font-size: .68rem; color: #22c55e; flex: 0 0 auto; }
.tl-step.done .tl-dot { background: #22c55e; border-color: #22c55e; color: #fff; }
.tl-step b { font-size: .8rem; color: var(--text); }
.track-cancelled { background: rgba(220,38,38,.1); border: 1px solid rgba(220,38,38,.4); color: #dc2626; border-radius: 12px; padding: .9rem; margin: 1rem 0; font-size: .85rem; line-height: 1.8; }
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .footer-brand { grid-column: 1 / -1; }
}
/* Order summary sidebar */
.order-summary { border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; background: var(--card); position: sticky; top: 88px; }
.order-summary h2 { font-size: 1rem; font-weight: 800; margin-bottom: 1rem; }
.os-items { display: grid; gap: .7rem; max-height: 320px; overflow-y: auto; padding-inline-end: .2rem; }
.os-item { display: grid; grid-template-columns: 48px 1fr auto; gap: .7rem; align-items: center; }
.os-item img { width: 48px; height: 60px; object-fit: cover; border-radius: 8px; }
.os-item b { font-size: .78rem; display: block; color: var(--text); }
.os-item span { font-size: .7rem; color: var(--muted); }
.os-item strong { font-size: .78rem; font-weight: 700; }
.os-totals { margin-top: 1rem; }
.os-totals .os-grand { font-size: 1.05rem; padding-top: .6rem; border-top: 1px solid var(--line); margin-top: .4rem; }
.os-eta { margin-top: 1rem; font-size: .76rem; color: var(--accent); font-weight: 600; text-align: center; background: rgba(220,38,38,.08); border-radius: 10px; padding: .55rem; }
/* Status badges */
.status-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; font-weight: 700; padding: .28rem .6rem; border-radius: 999px; white-space: nowrap; }
.status-badge.st-pending { background: rgba(245,158,11,.15); color: #f59e0b; border: 1px solid rgba(245,158,11,.4); }
.status-badge.st-ok { background: rgba(34,197,94,.15); color: #22c55e; border: 1px solid rgba(34,197,94,.4); }
.status-badge.st-bad { background: rgba(220,38,38,.15); color: #dc2626; border: 1px solid rgba(220,38,38,.4); }
/* Order status action buttons (accept / prepare / reject) */
.status-actions { display: flex; gap: .35rem; margin-top: .45rem; flex-wrap: wrap; }
.st-btn { border: 1px solid var(--line); background: transparent; color: var(--text); font-weight: 700; font-size: .72rem; border-radius: 8px; padding: .35rem .6rem; cursor: pointer; transition: all .18s ease; white-space: nowrap; }
.st-btn:hover { transform: translateY(-1px); filter: brightness(1.15); }
.st-btn:active { transform: scale(.96); }
.st-accept { border-color: rgba(34,197,94,.45); color: #22c55e; }
.st-accept:hover { background: rgba(34,197,94,.14); box-shadow: 0 4px 14px rgba(34,197,94,.25); }
.st-proc { border-color: rgba(245,158,11,.45); color: #f59e0b; }
.st-proc:hover { background: rgba(245,158,11,.14); box-shadow: 0 4px 14px rgba(245,158,11,.25); }
.st-reject { border-color: rgba(220,38,38,.45); color: #dc2626; }
.st-reject:hover { background: rgba(220,38,38,.14); box-shadow: 0 4px 14px rgba(220,38,38,.25); }
.st-done { border-color: rgba(16,185,129,.5); color: #10b981; }
.st-done:hover { background: rgba(16,185,129,.15); box-shadow: 0 4px 14px rgba(16,185,129,.28); }
/* Account order rows */
.order-row.o-row { grid-template-columns: 1.1fr .7fr 1.2fr; gap: .8rem; align-items: center; }
.o-id b { display: block; font-size: .85rem; color: var(--text); font-family: var(--font-en); }
.o-id span, .o-total span { font-size: .7rem; }
.o-total strong { display: block; font-size: .9rem; color: var(--text); }
.o-status { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; text-align: end; }
.o-reason { color: #dc2626; font-size: .7rem; line-height: 1.5; }
/* Order success modal */
.order-success { text-align: center; padding: 1rem 0; }
.check-burst { margin: 0 auto 1rem; width: 88px; height: 88px; display: grid; place-items: center; }
.check-circle { width: 72px; height: 72px; border-radius: 50%; background: #22c55e; color: #fff; font-size: 2rem; font-weight: 800; display: grid; place-items: center; animation: popIn .5s cubic-bezier(.2,.7,.2,1.4), pulseRing 1.6s ease-out .5s infinite; }
@keyframes popIn { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.45); } 70% { box-shadow: 0 0 0 22px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.order-success h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: .5rem; }
.order-success .order-id { font-size: .9rem; color: var(--muted); margin-bottom: .8rem; }
.order-success .order-id b { color: var(--accent); }
.order-success .review-msg { background: rgba(245,158,11,.1); border: 1px dashed rgba(245,158,11,.4); border-radius: 12px; padding: .8rem; font-size: .85rem; color: var(--text); line-height: 1.8; }
.order-success .review-msg small { color: var(--muted); font-size: .74rem; }
.order-success .review-items { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin: .8rem 0; }
.order-success .review-items span { background: var(--card); border: 1px solid var(--line); font-size: .7rem; border-radius: 999px; padding: .25rem .6rem; color: var(--muted); }
.order-success .eta { color: var(--accent); font-weight: 600; font-size: .82rem; margin-bottom: 1rem; }
.order-success .actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.totals { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; display: grid; gap: .5rem; font-size: .82rem; color: var(--muted); }
.totals span, .totals strong { display: flex; justify-content: space-between; }
.totals strong { font-size: 1rem; color: var(--text); font-weight: 700; }

/* ====== AUTH ====== */
.auth-page {
  min-height: 100vh; place-items: center; padding: 3rem 1rem;
  background: var(--bg); position: relative; overflow: hidden;
}
.page.active.auth-page { display: grid; }
.auth-page::before {
  content: ''; position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  border: 1px solid var(--line);
  top: -150px; inset-inline-end: -120px; opacity: .5;
  animation: floatShape 8s ease-in-out infinite alternate;
}
@keyframes floatShape {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-20px, 20px) scale(1.05); }
}
.auth-page::after {
  content: ''; position: absolute;
  width: 300px; height: 300px; border-radius: 50%;
  border: 1px solid var(--line);
  bottom: -80px; inset-inline-start: -80px; opacity: .4;
  animation: floatShape 6s ease-in-out infinite alternate-reverse;
}
.auth-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.auth-shape {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%; opacity: .35;
  background: radial-gradient(circle, rgba(220,38,38,.08) 0%, transparent 70%);
}
.auth-shape.s1 { width: 180px; height: 180px; top: 18%; inset-inline-start: 8%; }
.auth-shape.s2 { width: 80px; height: 80px; top: 28%; inset-inline-end: 12%; }
.auth-shape.s3 { width: 40px; height: 40px; bottom: 30%; inset-inline-start: 22%; }
.auth-shape-line {
  position: absolute; border: 0;
  border-top: 1px solid var(--line); opacity: .25;
  width: 200px; transform: rotate(-35deg);
}
.auth-shape-line.l1 { top: 15%; inset-inline-end: -40px; }
.auth-shape-line.l2 { bottom: 22%; inset-inline-start: -60px; transform: rotate(20deg); width: 260px; }
/* ====== AUTH: glassmorphism luxury card (System Prompt 2) ====== */
.auth-card {
  width: min(420px, 100%); background: var(--card);
  border: 1px solid var(--line); border-radius: 22px;
  padding: 2.2rem; position: relative; z-index: 1;
  box-shadow: var(--shadow-lg);
}
.auth-card.auth-glass {
  background: rgba(24, 24, 27, .7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(63, 63, 70, .8);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
  position: relative;
  overflow: hidden;
}
.auth-card.auth-glass::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(220,38,38,.15) 0%, transparent 50%);
  animation: authGlow 6s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes authGlow {
  0% { transform: translate(0, 0) scale(1); opacity: .3; }
  100% { transform: translate(10%, 10%) scale(1.1); opacity: .5; }
}
[data-theme="light"] .auth-card.auth-glass {
  background: rgba(255,255,255,.75);
  border-color: rgba(24,24,27,.12);
}
.auth-card h1 {
  font-size: 1.6rem; font-weight: 800;
  margin: .4rem 0 .2rem;
  position: relative;
  z-index: 1;
}
.auth-card > p {
  color: var(--muted); font-size: .82rem;
  margin-bottom: .3rem;
  position: relative;
  z-index: 1;
}
.auth-note { font-size: .75rem; color: var(--muted); }
/* language toggle inside the auth card (top corner) */
.auth-lang-toggle {
  position: absolute; top: 1rem; inset-inline-end: 1rem;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  color: var(--muted); font-size: .72rem; font-weight: 600;
  padding: .4rem .7rem; border-radius: 999px;
  transition: all .2s; cursor: pointer;
}
.auth-lang-toggle:hover { color: var(--text); border-color: var(--text); }
/* floating labels */
.field { position: relative; margin: .9rem 0; }
.field input {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 1.15rem .95rem .55rem;
  outline: none;
  font-size: .9rem;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
[data-theme="light"] .field input { border-color: rgba(24,24,27,.18); }
.field input:focus {
  border-color: rgba(255,255,255,.45);
  box-shadow: 0 0 0 3px rgba(255,255,255,.08);
}
[data-theme="light"] .field input:focus { border-color: rgba(24,24,27,.4); box-shadow: 0 0 0 3px rgba(24,24,27,.06); }
.field label {
  position: absolute; top: .95rem; inset-inline-start: .95rem;
  color: var(--muted); font-size: .85rem; font-weight: 500;
  pointer-events: none;
  transition: all .18s ease;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: .35rem; inset-inline-start: .9rem;
  font-size: .62rem; font-weight: 700;
  color: var(--muted); letter-spacing: .02em;
}
.pw-wrap { position: relative; display: flex; }
.pw-wrap input { flex: 1; }
.pw-toggle { position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 1.2rem; cursor: pointer; padding: 4px; line-height: 1; }
.auth-card .button { width: 100%; margin-top: 1rem; }
.auth-card .button-google { margin-top: .5rem; background: transparent; }
.auth-switch { text-align: center; margin-top: 1.2rem; font-size: .8rem; color: var(--muted); }
.auth-switch a { color: var(--text); font-weight: 700; text-decoration: underline; }
.form-error { background: #fee2e2; border: 1px solid #fecaca; color: #991b1b; border-radius: 10px; padding: .65rem .85rem; font-size: .76rem; margin-top: .8rem; }

/* ====== ACCOUNT ====== */
.account-page h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; margin: .4rem 0 .2rem; }
.account-page h2 { font-size: 1.1rem; font-weight: 800; margin: 2.5rem 0 1rem; }
.account-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.account-head p { color: var(--muted); }
.account-info { display: grid; gap: .5rem; margin: 1rem 0; padding: 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.account-info span { font-size: .82rem; color: var(--muted); }
.account-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.theme-toggle { display: flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 600; padding: .55rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 999px; color: var(--text); transition: all .2s; cursor: pointer; }
.theme-toggle:hover { border-color: var(--text); }
.orders-table { display: grid; gap: .5rem; }
.order-row { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 1rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; font-size: .82rem; color: var(--muted); }
.order-row span:last-child { font-weight: 600; color: var(--text); }

/* ====== OFFERS ====== */
.offers-hero { padding: 3rem 0; text-align: center; }
.offers-hero h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; }
.offers-hero p { color: var(--muted); margin-top: .5rem; }

/* ====== ABOUT ====== */
.about-page h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
.about-page > .container > p { color: var(--muted); font-size: 1.05rem; line-height: 2.1; max-width: 680px; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.value-card {
  padding: 1.5rem; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px;
  transition: all .3s cubic-bezier(.2,.8,.2,1);
  position: relative;
  overflow: hidden;
}
.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 0;
  background: var(--accent);
  transition: height .3s ease;
}
.value-card:hover {
  transform: translateX(8px);
  border-color: var(--accent);
  box-shadow: -8px 12px 40px rgba(220,38,38,.2);
}
.value-card:hover::before { height: 100%; }
.value-card h3 { font-size: .95rem; font-weight: 800; margin-bottom: .4rem; }
.value-card p { font-size: .82rem; color: var(--muted); }

/* ====== LEGAL ====== */
.legal-inner { max-width: 680px; margin: 3rem auto; }
.legal-inner h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; margin-bottom: 1.5rem; }
.legal-inner p { color: var(--muted); line-height: 2.1; margin-bottom: 1rem; }

/* ====== LOADING ====== */
.loading-screen {
  min-height: 100vh; display: grid; place-content: center;
  justify-items: center; gap: 1rem; color: var(--muted);
  font-size: .85rem; background: var(--bg);
  position: fixed; inset: 0; z-index: 999;
}
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s cubic-bezier(.6,.2,.4,.8) infinite;
  box-shadow: 0 0 20px rgba(220,38,38,.3);
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-screen span {
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: .7; }
  50% { opacity: 1; }
}

/* ====== CART DRAWER ====== */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 60; }
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }
/* Cart drawer: uses logical inset-inline-end so it follows RTL/LTR automatically.
   No transform tricks → no visual jump when switching language. */
.cart-drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(400px, 92vw); background: var(--bg); border-inline-start: 1px solid var(--line); z-index: 70; display: flex; flex-direction: column; transition: inset-inline-end .35s cubic-bezier(.2,.7,.2,1); }
.cart-drawer:not(.open) { inset-inline-end: calc(-100vw - 24px); }
.cart-drawer.open { inset-inline-end: 0; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 1rem; font-weight: 800; }
.drawer-close { font-size: 1.5rem; color: var(--muted); }
.drawer-lines { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; display: grid; gap: .5rem; }
.drawer-line { display: grid; grid-template-columns: 56px 1fr auto; gap: .8rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.drawer-line img { width: 56px; height: 70px; object-fit: cover; border-radius: 8px; }
.drawer-line h4 { font-size: .82rem; font-weight: 700; text-transform: none; color: var(--text); }
.drawer-line span { color: var(--muted); font-size: .7rem; display: block; }
.drawer-line strong { font-size: .82rem; font-weight: 700; }
.drawer-line button { color: var(--muted); font-size: 1.2rem; align-self: start; }
.drawer-foot { padding: 1.2rem 1.4rem; border-top: 1px solid var(--line); display: grid; gap: .8rem; }
.drawer-foot span { display: flex; justify-content: space-between; font-size: .9rem; font-weight: 700; }
.drawer-foot .button { margin: 0; }

/* ====== TOAST ====== */
.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%);
  z-index: 80; background: var(--text); color: var(--bg);
  font-size: .82rem; font-weight: 700;
  padding: .8rem 1.5rem; border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.1);
  animation: toastBounce .5s cubic-bezier(.2,.8,.2,1);
  backdrop-filter: blur(10px);
}
@keyframes toastBounce {
  0% { opacity: 0; transform: translate(-50%, 20px) scale(.9); }
  60% { opacity: 1; transform: translate(-50%, -5px) scale(1.02); }
  100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
.toast.error {
  background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
  color: #fff;
  box-shadow: 0 8px 30px rgba(229,57,53,.5);
}

/* ====== FLOATING CART BAR (mobile, System Prompt 3) ====== */
.float-cart-bar { position: fixed; bottom: 76px; left: 50%; transform: translateX(-50%); z-index: 55; align-items: center; gap: .8rem; background: var(--glass); backdrop-filter: blur(20px); border: 1px solid var(--line); border-radius: 999px; padding: .55rem .9rem .55rem 1.1rem; box-shadow: var(--shadow-lg); animation: toast-in .3s ease; max-width: 92vw; display: none; }
.float-cart-bar.has-items { display: flex; }
@media (min-width: 769px) { .float-cart-bar.has-items { display: none; } }
.float-cart-bar .float-cart-info { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.float-cart-bar .float-cart-info b { color: var(--text); font-weight: 700; }
.float-cart-bar .button { padding: .5rem 1.1rem; font-size: .74rem; margin: 0; }
.toast.error { background: #e53935; color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ====== FOOTER ====== */
.site-footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; background: var(--card); }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer-inner strong { font-size: 18px; font-weight: 800; }
.footer-inner p { color: var(--muted); font-size: .82rem; margin-top: .4rem; }
.footer-version { color: var(--muted); font-size: .7rem; margin-inline-start: .5rem; opacity: .7; }
.stat-version { background: linear-gradient(135deg, rgba(220,38,38,.12), rgba(220,38,38,.04)) !important; border-color: rgba(220,38,38,.35) !important; }
.stat-version b { color: #dc2626 !important; font-family: monospace; letter-spacing: .04em; }
.footer-shop-links { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.footer-shop-links a { color: var(--sub); font-size: .84rem; transition: color .2s, padding-inline-start .2s; }
.footer-shop-links a:hover { color: var(--text); padding-inline-start: 4px; }
.footer-links { display: grid; gap: .5rem; justify-items: start; }
.footer-links a { color: var(--muted); font-size: .82rem; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-inner > small { color: var(--muted); grid-column: 1 / -1; font-size: .72rem; margin-top: 1.5rem; }

/* ====== ADMIN ====== */
.admin-page { padding: 2.5rem 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.admin-top h1 { font-size: 1.8rem; font-weight: 800; }
.admin-top p { color: var(--muted); font-size: .85rem; }
.admin-actions { display: flex; gap: .6rem; align-items: center; }
.notif-bell-btn { font-size: 1.3rem; padding: .4rem; border-radius: 50%; position: relative; transition: background .2s; }
.notif-bell-btn:hover { background: var(--accent-soft); }
.notif-count { position: absolute; top: -2px; inset-inline-end: -2px; background: #dc2626; color: #fff; font-size: .55rem; font-weight: 700; min-width: 16px; height: 16px; border-radius: 999px; display: grid; place-items: center; padding-inline: 3px; }
.notif-dropdown { position: absolute; top: 100%; inset-inline-end: 0; width: 320px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); max-height: 360px; overflow-y: auto; z-index: 50; margin-top: 8px; }
.notif-item { padding: .8rem 1rem; border-bottom: 1px solid var(--line); font-size: .8rem; cursor: pointer; }
.notif-item:hover { background: var(--accent-soft); }
.notif-item strong { display: block; font-size: .78rem; margin-bottom: .2rem; }
.notif-item span { color: var(--muted); font-size: .68rem; }
.notif-empty { padding: 1.5rem; text-align: center; color: var(--muted); font-size: .8rem; }
.notif-item { position: relative; padding-inline-end: 2.2rem; }
.notif-dismiss { position: absolute; inset-inline-end: .6rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1rem; background: none; border: none; cursor: pointer; }
.notif-dismiss:hover { color: var(--accent); }
/* Admin notifications modal */
.notif-modal-box { width: min(520px, 100%); padding: 1.6rem; }
.offer-badge { position: absolute; top: 10px; inset-inline-start: 10px; background: #dc2626; color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .04em; padding: .3rem .6rem; border-radius: 999px; box-shadow: 0 4px 14px rgba(220,38,38,.35); }
#offers-products { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
#offers-products .offer-card { transition: transform .22s ease, box-shadow .22s ease; }
#offers-products .offer-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.notif-modal-hint { font-size: .72rem; color: var(--muted); margin: -.5rem 0 1rem; line-height: 1.6; }
#admin-notif-list { display: flex; flex-direction: column; gap: .5rem; }
.admin-notif-row { position: relative; display: flex; align-items: center; gap: .6rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .75rem .9rem; padding-inline-end: 2.6rem; transition: all .18s ease; }
.admin-notif-row:hover { border-color: var(--accent); transform: translateY(-1px); }
.admin-notif-row .notif-dismiss { position: absolute; inset-inline-end: .7rem; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: .9rem; color: var(--muted); }
.admin-notif-row .notif-dismiss:hover { background: var(--accent); color: #fff; }
.admin-notif-main { flex: 1; cursor: pointer; display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.admin-notif-main strong { font-size: .85rem; }
.admin-notif-main span { font-size: .75rem; color: var(--muted); }
.admin-notif-badge { align-self: flex-start; font-size: .62rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; background: rgba(220,38,38,.14); color: #dc2626; border: 1px solid rgba(220,38,38,.4); }
.admin-notif-badge.st-pending { background: rgba(245,158,11,.14); color: #f59e0b; border-color: rgba(245,158,11,.4); }
.notif-wa-btn { margin-top: .5rem; width: 100%; }
.notif-empty { text-align: center; padding: 2rem 1rem; color: var(--muted); font-size: .85rem; }
.customer-notif-dd { position: fixed; top: 64px; inset-inline-end: 1rem; width: 320px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); max-height: 380px; overflow-y: auto; z-index: 90; }

/* ====== CART DRAWER v2 (System Prompt 4) ====== */
.ship-progress { padding: .4rem 1.4rem; }
.ship-bar { height: 6px; background: var(--card-2); border-radius: 999px; overflow: hidden; }
.ship-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s ease; }
.ship-progress small { display: block; margin-top: .4rem; color: var(--muted); font-size: .7rem; }
.promo-row { display: flex; gap: .4rem; padding: .2rem 1.4rem .6rem; }
.promo-row input { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .45rem .8rem; font-size: .75rem; outline: none; }
.promo-row input:focus { border-color: var(--accent); }
.qty-ctl { display: inline-flex; align-items: center; gap: .35rem; margin-top: .3rem; }
.qty-ctl button { width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 8px; font-size: .9rem; display: grid; place-items: center; color: var(--text); }
.qty-ctl button:hover { border-color: var(--accent); color: var(--accent); }
.qty-ctl b { font-size: .8rem; min-width: 16px; text-align: center; }

/* ====== MESSAGE POPUP ====== */
.msg-popup { text-align: center; }
.msg-popup h2 { margin-bottom: .6rem; }
.msg-popup #msg-modal-body { color: var(--muted); font-size: .9rem; line-height: 1.9; margin-bottom: 1.2rem; }
.msg-popup .button { width: 100%; margin-top: .5rem; }
.admin-tabs { display: flex; gap: .3rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.admin-tabs button { padding: .7rem 1.2rem; font-size: .82rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; transition: all .2s; white-space: nowrap; }
.admin-tabs button:hover { color: var(--text); }
.admin-tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }
.admin-panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem; margin-bottom: 1.5rem; }
.admin-panel h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 1.2rem; }
.admin-form { display: grid; gap: .9rem; max-width: 600px; }
.admin-form label { display: grid; gap: .3rem; font-size: .78rem; color: var(--muted); font-weight: 600; }
.admin-form input, .admin-form textarea, .admin-form select { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; outline: none; color: var(--text); font-size: .84rem; transition: border-color .2s, box-shadow .2s; }
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.admin-form textarea { min-height: 80px; resize: vertical; }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.deliv-govs { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: .5rem; max-height: 340px; overflow-y: auto; padding: .2rem; }
.deliv-row { display: flex; align-items: center; gap: .5rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .4rem .6rem; }
.deliv-row span { font-size: .8rem; font-weight: 600; flex: 1; }
.deliv-row input { width: 84px; background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; padding: .45rem .55rem; outline: none; color: var(--text); }
.deliv-row input:focus { border-color: var(--accent); }

/* ====== POLISHED INPUTS (admin panels, modals, everywhere) ====== */
.admin-panel input[type="text"], .admin-panel input[type="number"], .admin-panel input[type="url"], .admin-panel input[type="tel"], .admin-panel select {
  background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: .55rem .75rem; outline: none; color: var(--text); font-size: .82rem; transition: border-color .2s;
}
.admin-panel input:focus, .admin-panel select:focus { border-color: var(--accent); }
.admin-panel textarea { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: .65rem .8rem; outline: none; color: var(--text); font-size: .82rem; resize: vertical; min-height: 60px; }
.admin-panel textarea:focus { border-color: var(--accent); }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.admin-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; display: flex; flex-direction: column; gap: .6rem; }
.admin-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; }
.admin-card h3 { font-size: .9rem; font-weight: 700; text-transform: none; color: var(--text); }
.admin-card .meta { font-size: .75rem; color: var(--muted); display: flex; gap: .8rem; flex-wrap: wrap; }
.admin-card .actions { display: flex; gap: .4rem; margin-top: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.admin-table th { text-align: start; padding: .7rem .6rem; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--muted); font-size: .7rem; text-transform: uppercase; }
.admin-table td { padding: .7rem .6rem; border-bottom: 1px solid var(--line); }
.admin-table tr:hover td { background: var(--accent-soft); }
.notice { padding: .7rem .9rem; border-radius: 10px; font-size: .78rem; background: var(--accent-soft); color: var(--text); }
.notice-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
[data-theme="dark"] .notice-success { background: #052e16; color: #86efac; border-color: #166534; }
.upload-box { border: 2px dashed var(--line); border-radius: 12px; padding: 1.5rem; text-align: center; cursor: pointer; transition: border-color .2s; }
.upload-box:hover { border-color: var(--text); }
.upload-box input[type="file"] { display: none; }
.upload-box small { display: block; margin-top: .4rem; color: var(--muted); font-size: .7rem; }
.uploaded-preview { width: 100%; max-width: 200px; border-radius: 10px; margin-top: .5rem; }

/* ====== SIZE CHECKBOXES (ADMIN) ====== */
.size-checks { display: grid; gap: .4rem; align-content: start; }
.size-checks > span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.size-check-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.size-cb { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 600; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; transition: all .2s; }
.size-cb:hover { border-color: var(--text); transform: translateY(-1px); }
.size-cb:has(input:checked) { background: var(--accent); border-color: var(--accent); color: #fff; }
.size-cb input { accent-color: var(--text); }
.color-dot { width: 18px; height: 18px; border-radius: 50%; display: inline-block; border: 1px solid rgba(255,255,255,.18); flex: none; }
.color-picker { display: flex; flex-direction: column; gap: .5rem; margin: 1rem 0; }
.color-picker > span { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.color-picker > div { display: flex; flex-wrap: wrap; gap: .5rem; }
.color-swatch { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .75rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: .8rem; font-weight: 600; color: var(--text); transition: all .2s; }
.color-swatch i { width: 16px; height: 16px; border-radius: 50%; background: var(--sw, #ccc); border: 1px solid rgba(255,255,255,.22); flex: none; }
.color-swatch:hover { border-color: var(--text); transform: translateY(-1px); }
.color-swatch.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.admin-label { display: grid; gap: .3rem; font-size: .78rem; color: var(--muted); font-weight: 600; margin: .8rem 0; }
.admin-label input, .admin-label select, .admin-label textarea { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; outline: none; color: var(--text); font-size: .84rem; transition: border-color .2s, box-shadow .2s; width: 100%; }
.admin-label input:focus, .admin-label select:focus, .admin-label textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ====== MODAL ====== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6); backdrop-filter: blur(8px);
  display: grid; place-items: center; z-index: 80; padding: 1rem;
  animation: fadeIn .3s ease;
}
.modal-box {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 18px; padding: 2rem;
  width: min(500px, 100%); max-height: 85vh;
  overflow-y: auto; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
  animation: modalSlideUp .4s cubic-bezier(.2,.8,.2,1);
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-box h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 1rem; }
.modal-box .detail-row { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; font-size: .82rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.modal-box .detail-row.full { grid-template-columns: 1fr; }
.modal-box .detail-row span:first-child { color: var(--muted); }
.modal-close-btn {
  position: absolute; top: 1rem; inset-inline-end: 1rem;
  font-size: 1.5rem; color: var(--muted);
  cursor: pointer;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: all .3s ease;
}
.modal-close-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: rotate(90deg) scale(1.1);
}

/* ====== BOTTOM NAV ====== */
.bottom-nav { display: none; }
@media (max-width: 768px) {
  .top-nav { display: none; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: var(--glass); backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 20px rgba(0,0,0,.15);
  }
  .bottom-nav a, .bottom-nav button {
    display: flex; flex-direction: column; align-items: center; gap: .15rem;
    padding: .65rem 0; font-size: 1.1rem; color: var(--muted);
    background: none; border: 0;
    transition: all .3s cubic-bezier(.2,.8,.2,1);
    position: relative;
  }
  .bottom-nav a.active, .bottom-nav a:hover {
    color: var(--accent);
    transform: translateY(-3px);
  }
  .bottom-nav a.active::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 30px; height: 3px;
    background: var(--accent);
    border-radius: 0 0 3px 3px;
  }
  .bottom-nav span { font-size: .6rem; display: flex; align-items: center; gap: .2rem; }
  .bottom-nav b { background: var(--accent); color: #fff; border-radius: 999px; font-size: .52rem; min-width: 14px; height: 14px; display: grid; place-items: center; padding-inline: 3px; }
  .main-content { padding-bottom: 72px; }
  .toast { bottom: 84px; }
  .header-inner { height: 60px; }
  .brand-logo { height: 48px !important; }
  .search-wrap, .auth-button { display: none; }
  .checkout-inner, .product-detail-inner { grid-template-columns: 1fr; gap: 2rem; }
  .checkout-main { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner > small { grid-column: 1; }
  .order-row { grid-template-columns: 1fr 1fr; }
  .order-row.o-row { grid-template-columns: 1fr; align-items: start; }
  .o-status { align-items: flex-start; text-align: start; }
  .account-actions { flex-direction: column; }
  .admin-tabs { gap: 0; }
  .admin-tabs button { padding: .6rem .8rem; font-size: .72rem; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-form-row { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
  .hero-inner { padding-block: 3rem; }
  .about-values { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
}

/* ====== OPT-IN BANNERS (push notifications + PWA install) ====== */
.optin-banner {
  position: fixed; bottom: 88px; left: 50%; transform: translateX(-50%); z-index: 95;
  width: min(92vw, 540px); display: flex; align-items: center; gap: .8rem;
  padding: .95rem 1.1rem; background: var(--glass); backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .5);
  animation: optinUp .38s cubic-bezier(.2, .9, .3, 1);
}
@keyframes optinUp { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.optin-banner .optin-icon { font-size: 1.7rem; flex-shrink: 0; line-height: 1; }
.optin-banner .optin-body { flex: 1; min-width: 0; }
.optin-banner .optin-body b { display: block; font-size: .92rem; font-weight: 700; }
.optin-banner .optin-body > span { display: block; font-size: .74rem; color: var(--muted); margin-top: .15rem; }
.optin-banner .optin-body .desktop-tip { display: block; margin-top: .35rem; font-size: .66rem; color: var(--muted); opacity: .85; line-height: 1.5; }
.optin-banner .optin-actions { display: flex; align-items: center; gap: .55rem; flex-shrink: 0; }
.optin-banner .optin-close { background: none; border: 0; color: var(--muted); font-size: .72rem; cursor: pointer; padding: .4rem .2rem; white-space: nowrap; transition: color .2s; }
.optin-banner .optin-close:hover { color: var(--accent); }
.optin-banner.denied { border-color: #7f1d1d; }
.optin-banner.denied .optin-icon { filter: grayscale(1); }

/* iOS install steps modal */
.ios-steps { padding-inline-start: 1.2rem; line-height: 2; font-size: .92rem; margin: 1rem 0; color: var(--text); }
.ios-steps b { color: var(--accent); }

@media (max-width: 768px) {
  /* sits above the toast (bottom 84px) and the bottom nav */
  .optin-banner { bottom: 134px; flex-wrap: wrap; padding: .8rem .9rem; }
  .optin-banner .optin-actions { width: 100%; justify-content: space-between; }
  .optin-banner .desktop-tip { display: none !important; }
}

/* ====== PRODUCT CARD MOBILE UX ====== */
@media (max-width: 768px) {
  /* sizes are always visible on touch screens (no hover) */
  .product-size-bar { opacity: 1; transform: none; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .product-size-bar::-webkit-scrollbar { display: none; }
  .product-size-bar button { font-size: .66rem; padding: .34rem .58rem; flex-shrink: 0; }
  .quick-add { padding: .6rem .5rem; font-size: .78rem; }
  /* bell dropdown: full-width sheet under the header (JS also positions it) */
  .notif-dropdown { position: fixed; top: 64px; left: .6rem; right: .6rem; width: auto; max-width: none; }
}
