/* ============================================================
   Uraio Store V1 - Spotify-inspired design system
   Dark theme, mobile-first, dependency-free.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --color-primary: #1DB954;
  --color-primary-dark: #1aa34a;
  --color-primary-soft: rgba(29, 185, 84, .15);
  --color-accent: #1DB954;
  --color-success: #1DB954;
  --color-success-soft: rgba(29, 185, 84, .18);
  --color-danger: #e74c3c;
  --color-danger-soft: rgba(231, 76, 60, .18);
  --color-warning: #f39c12;
  --color-warning-soft: rgba(243, 156, 18, .18);
  --color-info: #3498db;
  --color-info-soft: rgba(52, 152, 219, .18);

  --ink-900: #ffffff;
  --ink-700: #b3b3b3;
  --ink-500: #a7a7a7;
  --ink-400: #727272;
  --line: #282828;
  --surface: #181818;
  --surface-muted: #121212;
  --surface-elevated: #242424;
  --surface-hover: #282828;

  --gold: #f5b800;
  --gold-dark: #e0a600;
  --gold-soft: rgba(245, 184, 0, .12);
  --border: #333;
  --border-focus: #727272;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: none;
  --shadow: none;
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .5);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 2rem);
  --maxw: 1240px;
}

*, ::before, ::after { box-sizing: border-box; }

 html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--surface-muted);
  line-height: 1.55;
  font-size: 16px;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: env(safe-area-inset-top, 0px);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

main { flex: 1; animation: fadeIn .2s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

img { max-width: 100%; display: block; }
img[loading="lazy"] { opacity: 0; transition: opacity .3s ease; }
img[loading="lazy"].loaded, img[loading="lazy"]:not([src=""]) { opacity: 1; }

a { color: var(--ink-900); text-decoration: none; transition: color .15s; -webkit-tap-highlight-color: transparent; }
a:hover { color: var(--color-primary); }

button, input, select, textarea { -webkit-tap-highlight-color: transparent; }

/* Level up interactive focus for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
::selection { background: rgba(29,185,84,.4); color: #fff; }

/* Spotify-style slim dark scrollbar */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #333; border: 3px solid #000; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #555; }
* { scrollbar-width: thin; scrollbar-color: #333 #000; }

/* Smooth reveal for sections */
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.product-card { animation: rise-in .35s ease backwards; }
.product-card:nth-child(2) { animation-delay: .04s; }
.product-card:nth-child(3) { animation-delay: .08s; }
.product-card:nth-child(4) { animation-delay: .12s; }
.product-card:nth-child(5) { animation-delay: .16s; }
.product-card:nth-child(6) { animation-delay: .2s; }
.product-card:nth-child(7) { animation-delay: .24s; }
.product-card:nth-child(8) { animation-delay: .28s; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink-900); }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
h4 { font-size: .95rem; }
p { margin: 0 0 .75rem; color: var(--ink-700); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.page { padding-block: 1.75rem 3rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.75rem; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: .95rem;
  border: none; cursor: pointer;
  transition: all .15s ease;
  text-decoration: none; white-space: nowrap;
  letter-spacing: .02em;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }

.btn-primary { background: var(--color-primary); color: #000; }
.btn-primary:hover { background: #1ed760; color: #000; transform: scale(1.02); }

.btn-outline { background: transparent; color: var(--ink-900); border: 2px solid var(--ink-700); transition: all .15s ease; }
.btn-outline:hover { border-color: var(--ink-900); color: var(--ink-900); background: var(--surface-hover); }

.btn-ghost { background: transparent; color: var(--ink-700); }
.btn-ghost:hover { color: var(--ink-900); background: var(--surface-hover); }

.btn-light { background: var(--ink-900); color: #000; }
.btn-light:hover { background: #fff; transform: scale(1.02); }

.btn-dark { background: var(--ink-700); color: #000; transition: all .15s ease; }
.btn-dark:hover { background: var(--ink-900); transform: scale(1.02); }

.btn-danger { background: var(--color-danger); color: #fff; transition: all .15s ease; }
.btn-danger:hover { background: #c0392b; color: #fff; transform: scale(1.02); }

.btn-block { width: 100%; }
.btn-sm { padding: .45rem 1rem; font-size: .8rem; border-radius: 999px; }
.btn-lg { padding: .85rem 2rem; font-size: 1.05rem; border-radius: 999px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; color: var(--ink-900); }
.field small.hint { color: var(--ink-400); font-size: .8rem; }

.input, select.input, textarea.input {
  width: 100%; padding: .75rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink-900); background: var(--surface-elevated);
  transition: border-color .15s, box-shadow .15s;
  font-size: .95rem;
}
.input:focus { outline: none; border-color: var(--ink-900); box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
.input::placeholder { color: var(--ink-400); }
textarea.input { min-height: 90px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23b3b3b3'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.input-error { border-color: var(--color-danger) !important; }
.error-msg { color: var(--color-danger); font-size: .8rem; margin-top: .3rem; }

.checkline { display: flex; align-items: flex-start; gap: .5rem; font-size: .9rem; color: var(--ink-700); }

/* ---------- Flash / alerts ---------- */
.flash-wrap { position: fixed; top: 1rem; right: 1rem; z-index: 90; display: grid; gap: .5rem; max-width: min(92vw, 380px); }
.alert {
  padding: .85rem 1.2rem; border-radius: var(--radius);
  font-weight: 600; font-size: .9rem;
  background: var(--surface-elevated);
  color: var(--ink-900);
  border-left: 4px solid var(--ink-400);
  animation: flash-in .25s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  cursor: pointer;
}
.alert.dismissing { animation: flash-out .3s ease forwards; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
@keyframes flash-out { to { opacity: 0; transform: translateX(20px); } }
.alert-success { border-left-color: var(--color-success); color: var(--color-success); }
.alert-error { border-left-color: var(--color-danger); color: var(--color-danger); }
.alert-warning { border-left-color: var(--color-warning); color: var(--color-warning); }
.alert-info { border-left-color: var(--color-info); color: var(--color-info); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.topbar { background: var(--color-primary); color: #000; font-size: .78rem; font-weight: 600; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 1rem; }
.topbar a { color: #000; }
.topbar a:hover { color: #000; text-decoration: underline; }
.announce { font-weight: 700; color: #000; white-space: nowrap; }
.tb-sep { color: rgba(0,0,0,.25); font-weight: 400; }
.tb-phone { white-space: nowrap; font-weight: 700; }

.header-main { display: flex; align-items: center; gap: 2rem; padding-block: .85rem; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 900; font-size: 1.3rem; color: #fff; letter-spacing: -.03em; flex-shrink: 0; }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.brand span em { font-style: normal; color: var(--color-primary); }

.header-search { flex: 1; max-width: 520px; margin-left: auto; }
.header-search form { display: flex; background: #18181b; border-radius: 999px; border: 1px solid #333; overflow: hidden; transition: border-color .2s; }
.header-search form:focus-within { border-color: var(--color-primary); }
.header-search .input { border-radius: 0; border: 0; background: transparent; color: #fff; font-weight: 500; padding: .65rem 1rem; flex: 1; }
.header-search .input:focus { outline: none; border: 0; box-shadow: none; background: transparent; }
.header-search .btn { border-radius: 0; background: var(--color-primary); color: #000; font-weight: 800; padding: .65rem 1.4rem; border: 0; }
.header-search .btn:hover { background: #e6a600; }

.header-actions { display: flex; align-items: center; gap: .9rem; margin-left: auto; }
.header-actions .ha { position: relative; display: inline-flex; align-items: center; gap: .35rem; color: var(--ink-700); font-weight: 700; font-size: .9rem; }
.header-actions .ha.search-toggle { display: none; }
.header-actions .ha:hover { color: #fff; }
.cart-badge {
  position: absolute; top: -8px; right: -12px;
  background: var(--color-primary); color: #000; font-size: .7rem; font-weight: 900;
  min-width: 20px; height: 20px; border-radius: 999px;
  display: grid; place-items: center; padding-inline: 5px;
}
.cart-badge.hidden { display: none; }
.cart-badge.bounce { animation: cartBounce .4s ease; }
@keyframes cartBounce { 0% { transform: scale(1); } 30% { transform: scale(1.4); } 60% { transform: scale(.9); } 100% { transform: scale(1); } }

.promo-banner { margin: 0 auto; max-width: var(--maxw); padding-inline: var(--gutter); }
.promo-banner a { display: block; line-height: 0; border-radius: var(--radius); overflow: hidden; }
.promo-banner img { width: 100%; height: auto; display: block; max-height: 120px; object-fit: cover; }

.nav-main { background: #000; border-bottom: 1px solid var(--line); }
.nav-main ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.nav-main ul::-webkit-scrollbar { display: none; }
.nav-main a {
  display: block; padding: .75rem 1rem; color: var(--ink-700);
  font-weight: 700; font-size: .88rem; white-space: nowrap; border-bottom: 2px solid transparent;
  letter-spacing: .01em;
}
.nav-main a:hover { color: #fff; }
.nav-main a.active { color: #fff; border-bottom-color: var(--color-primary); }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: #fff; }

.mobile-menu {
  display: none; flex-direction: column; gap: .15rem;
  border-top: 1px solid var(--line); padding: .5rem var(--gutter) .75rem;
  background: #000;
}
.mobile-menu.open { display: flex; animation: menu-in .2s ease; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mobile-menu a { padding: .6rem .5rem; color: var(--ink-700); font-weight: 700; border-radius: var(--radius-sm); font-size: .95rem; }
.mobile-menu a:hover { background: var(--surface-hover); color: #fff; }

/* Search toggle (mobile-only) */
.search-toggle { display: none; background: none; border: 0; cursor: pointer; font: inherit; }
.search-toggle:hover { color: #fff; }

/* Collapsible mobile search panel */
.mobile-search { background: #000; border-top: 1px solid var(--line); }
.mobile-search form { display: flex; gap: .5rem; padding: .75rem var(--gutter); }
.mobile-search .input { border-radius: 999px; background: #242424; border-color: transparent; color: #fff; font-weight: 500; }
.mobile-search .input:focus { border-color: #fff; background: #2a2a2a; }
.mobile-search .btn { border-radius: 999px; background: #fff; color: #000; font-weight: 800; flex: 0 0 auto; padding-inline: 1.25rem; }
.mobile-search .btn:hover { background: #f0f0f0; }
.mobile-search[hidden] { display: none; }
.mobile-search.open { animation: menu-in .2s ease; }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: var(--ink-500); margin-top: auto; border-top: 1px solid var(--line); }
.site-footer .container { padding-block: 3rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.footer-grid h4 { color: #fff; font-size: .88rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-grid a { display: block; color: var(--ink-700); padding: .25rem 0; font-size: .88rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1rem; display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; font-size: .78rem; color: var(--ink-400); }

/* Footer collapsible on mobile */
.footer-toggle { cursor: pointer; user-select: none; transition: color .15s; }
.footer-toggle:hover { color: #fff; }
.footer-toggle::after { content: '+'; float: right; font-weight: 400; transition: transform .2s; }
.footer-links { overflow: hidden; max-height: 500px; transition: max-height .3s ease; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: none; border: none; }
.card-pad { padding: 1.25rem; }
.card-title { font-weight: 700; font-size: 1.05rem; margin-bottom: .75rem; color: #fff; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; transition: background .2s;
  padding: .75rem;
}
.product-card:hover { background: var(--surface-hover); }
.pc-img-wrap { position: relative; }
.product-card .pc-img { display: block; aspect-ratio: 1; background: var(--surface-elevated); overflow: hidden; border-radius: 6px; }
.product-card .pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, opacity .3s; }
.product-card:hover .pc-img img { transform: scale(1.05); opacity: .85; }
.pc-quickadd {
  position: absolute; right: .9rem; bottom: .9rem;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--color-primary); color: #000; border: none; cursor: pointer;
  display: grid; place-items: center; padding-left: 2px;
  opacity: 0; transform: translateY(12px) scale(.8);
  transition: opacity .2s ease, transform .2s ease, background .15s;
  box-shadow: 0 6px 18px rgba(0,0,0,.55);
  z-index: 2;
}
.product-card:hover .pc-quickadd,
.pc-quickadd:focus-visible { opacity: 1; transform: translateY(0) scale(1); }
.pc-quickadd:hover { background: #1ed760; transform: translateY(0) scale(1.06); }
.pc-quickadd:active { transform: translateY(0) scale(.94); }
.pc-quickadd[disabled] { opacity: .4; cursor: not-allowed; }

/* Wishlist heart overlay on product cards */
.pc-wishlist {
  position: absolute; top: .9rem; right: .9rem; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(18,18,18,.72); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; transform: translateY(-8px) scale(.85);
  transition: opacity .2s ease, transform .2s ease, background .15s, color .15s;
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
  backdrop-filter: blur(4px);
}
.product-card:hover .pc-wishlist,
.pc-wishlist:focus-visible { opacity: 1; transform: translateY(0) scale(1); }
.pc-wishlist:hover { background: rgba(18,18,18,.95); }
.pc-wishlist.saved { color: #e74c3c; }
.pc-wishlist.saved .wl-on { display: ''; }
.wl-on { display: none; }
.pc-wishlist.pop,
.pd-wishlist.pop { animation: wish-pop .3s ease; }
@keyframes wish-pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* Wishlist button on product detail page */
.pd-wishlist.saved { border-color: var(--color-danger); color: var(--color-danger); }
.pd-wishlist.saved:hover { border-color: var(--color-danger); color: var(--color-danger); opacity: .9; }

/* Wishlist page */
.wishlist-badge { position: static; display: inline-block; margin-top: .5rem; }
.wishlist-actions { display: flex; flex-direction: column; gap: .35rem; margin-top: .35rem; }
.wishlist-actions .btn-link-danger { text-align: center; }
.badge-flag { background: var(--color-danger); color: #fff; font-size: .7rem; font-weight: 800; padding: 3px 8px; border-radius: 4px; }
.pc-img-wrap .badge-flag { position: absolute; top: .9rem; left: .9rem; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.badge-out { position: absolute; top: .9rem; left: .9rem; background: rgba(0,0,0,.72); color: #fff; font-size: .66rem; font-weight: 800; padding: 3px 8px; border-radius: 4px; z-index: 2; text-transform: uppercase; letter-spacing: .04em; }
.product-card .pc-body { padding: .7rem .15rem .3rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }

/* ---------- Hero ---------- */
/* ===== Banner ===== */
.banner {
  background: linear-gradient(135deg, #09090b 0%, #18181b 50%, #1c1917 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.banner::before {
  content: '';
  position: absolute;
  top: -50%; left: 30%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,184,0,.15) 0%, transparent 70%);
  pointer-events: none;
}
.banner::after {
  content: '';
  position: absolute;
  bottom: -40%; right: 10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,184,0,.08) 0%, transparent 70%);
  pointer-events: none;
}
.banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.banner-content { max-width: 520px; }
.banner-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(245,184,0,.12);
  border: 1px solid rgba(245,184,0,.25);
  color: #f5b800;
  font-size: .7rem;
  font-weight: 700;
  padding: .3rem .9rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.banner h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -.04em;
  line-height: 1.08;
  margin: 0 0 .8rem;
  font-weight: 800;
}
.banner h1 .hl {
  background: linear-gradient(90deg, #f5b800, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.banner p {
  color: var(--ink-500);
  font-size: 1.05rem;
  max-width: 42ch;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}
.banner-btns {
  display: flex;
  gap: .75rem;
  align-items: center;
  margin-bottom: 2rem;
}
.banner-btns .btn-primary {
  padding: .75rem 1.75rem;
  font-size: .95rem;
  font-weight: 700;
  border-radius: 10px;
  background: #f5b800;
  color: #09090b;
  transition: background .2s, transform .15s;
}
.banner-btns .btn-primary:hover {
  background: #e0a600;
  transform: translateY(-1px);
}
.banner-btns .btn-ghost {
  color: var(--ink-500);
  font-size: .9rem;
  font-weight: 500;
  padding: .75rem 0;
  text-decoration: none;
  transition: color .2s;
}
.banner-btns .btn-ghost:hover { color: #fff; }

.banner-trust {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.bt-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--ink-400);
}
.bt-icon { font-size: .95rem; }

/* Decorative rings */
.banner-decor {
  position: relative;
  width: 220px;
  height: 220px;
}
.bd-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(245,184,0,.12);
}
.bd-ring-1 {
  width: 220px; height: 220px;
  top: 0; left: 0;
  animation: ringPulse 4s ease-in-out infinite;
}
.bd-ring-2 {
  width: 160px; height: 160px;
  top: 30px; left: 30px;
  border-color: rgba(245,184,0,.18);
  animation: ringPulse 4s ease-in-out 1s infinite;
}
.bd-ring-3 {
  width: 100px; height: 100px;
  top: 60px; left: 60px;
  border-color: rgba(245,184,0,.25);
  background: rgba(245,184,0,.06);
  animation: ringPulse 4s ease-in-out 2s infinite;
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: .7; }
}

/* Hero animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------- Section headers ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 2rem 0 1rem; }
.section-head h2 { margin: 0; color: #fff; }
.section-head a { font-weight: 700; font-size: .9rem; color: var(--ink-700); }
.section-head a:hover { color: #fff; }

/* ---------- Category chips ---------- */
.category-row { display: flex; gap: .75rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: none; }
.category-row::-webkit-scrollbar { display: none; }
.category-chip {
  flex: 0 0 auto; display: flex; align-items: center; gap: .5rem;
  padding: .55rem 1.1rem; background: var(--surface-elevated); border: none;
  border-radius: 999px; color: #fff; font-weight: 700; font-size: .88rem;
  transition: all .15s;
}
.category-chip:hover { background: var(--surface-hover); }
.category-chip.active { background: var(--color-primary); color: #000; }
.category-chip .cat-a { font-size: 1.1rem; line-height: 1; }

/* ---------- Catalog page ---------- */
.catalog { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; align-items: start; }
.filters { position: sticky; top: 90px; padding: 1.25rem; }
.filter-group { margin-bottom: 1.5rem; }
.filter-group h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); margin-bottom: .6rem; font-weight: 700; }
.filter-group a { display: block; padding: .4rem .5rem; color: var(--ink-700); font-size: .92rem; font-weight: 500; border-radius: 4px; transition: background .12s, color .12s; }
.filter-group a:hover { color: #fff; background: var(--surface-hover); }
.filter-group a.active { color: var(--color-primary); font-weight: 700; }
.filter-group .count { float: right; color: var(--ink-400); font-size: .8rem; }
.filter-group a.active .count { color: var(--color-primary); }
.clear-filters { display: inline-block; margin-top: .6rem; font-size: .8rem; color: var(--ink-500); text-decoration: underline; }
.clear-filters:hover { color: #fff; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.toolbar .results { color: var(--ink-500); font-size: .9rem; font-weight: 500; }
.sort-label { display: inline-flex; align-items: center; gap: .5rem; }
.sort-label .sort-text { font-size: .82rem; font-weight: 700; color: var(--ink-500); text-transform: uppercase; letter-spacing: .04em; }
.sort-label select.input { width: auto; min-width: 170px; padding-top: .5rem; padding-bottom: .5rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-500); }
.empty-state .es-icon { font-size: 2.5rem; margin-bottom: .5rem; }

/* ---------- Product detail ---------- */
.pd-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.5rem; align-items: start; }
.pd-gallery { display: grid; gap: .75rem; position: sticky; top: 90px; align-self: start; }
.pd-main-img { border-radius: var(--radius); overflow: hidden; background: var(--surface-elevated); aspect-ratio: 4/3; box-shadow: 0 8px 30px rgba(0,0,0,.4); position: relative; }
.pd-main-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.pd-main-img[data-zoomed="true"] img { transform: scale(2); }

.pd-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; border: none; font-size: 1.6rem; cursor: pointer; z-index: 5; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .15s; backdrop-filter: blur(4px); }
.pd-nav:hover { background: rgba(0,0,0,.8); }
.pd-nav-prev { left: 10px; }
.pd-nav-next { right: 10px; }

.pd-zoom-btn { position: absolute; bottom: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; border: none; cursor: pointer; z-index: 5; display: flex; align-items: center; justify-content: center; transition: background .2s; backdrop-filter: blur(4px); }
.pd-zoom-btn:hover { background: rgba(0,0,0,.8); }

.pd-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); }
.pd-lightbox[hidden] { display: none; }
.pd-lb-close { position: absolute; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; border: none; font-size: 1.4rem; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.pd-lb-close:hover { background: rgba(255,255,255,.3); }
.pd-lb-img-wrap { max-width: 90vw; max-height: 85vh; }
.pd-lb-img-wrap img { max-width: 100%; max-height: 85vh; object-fit: contain; border-radius: 8px; }
.pd-lightbox .pd-nav { width: 48px; height: 48px; font-size: 2rem; background: rgba(255,255,255,.15); }
.pd-lightbox .pd-nav:hover { background: rgba(255,255,255,.3); }

.pd-thumbs { display: flex; gap: .6rem; }
.pd-thumb { width: 72px; height: 56px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; cursor: pointer; padding: 0; background: var(--surface-elevated); transition: transform .15s, border-color .15s; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover { transform: translateY(-2px); }
.pd-thumb.active { border-color: var(--color-primary); }

.pd-info h1 { font-size: 1.8rem; color: #fff; }
.pd-meta { color: var(--ink-500); font-size: .88rem; display: flex; gap: 1rem; align-items: center; margin: .4rem 0 1rem; flex-wrap: wrap; }
.pd-price { display: flex; align-items: baseline; gap: .75rem; margin: 1rem 0; }
.pd-price .price { font-size: 2rem; }
.pd-desc { color: var(--ink-700); }
.pd-summary {
  background: var(--surface-elevated); border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky; top: 90px;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.purchase-total { font-size: 1.9rem; font-weight: 900; color: #fff; letter-spacing: -.02em; }
.quantity-input { display: inline-flex; align-items: center; border: 1px solid #727272; border-radius: var(--radius-sm); overflow: hidden; }
.quantity-input button { width: 40px; height: 42px; border: 0; background: var(--surface-elevated); font-size: 1.1rem; cursor: pointer; color: #fff; transition: background .15s; }
.quantity-input button:hover { background: var(--color-primary); color: #000; }
.quantity-input input { width: 52px; text-align: center; border: 0; font: inherit; font-weight: 700; height: 42px; background: var(--surface-elevated); color: #fff; }
.stock-note { font-size: .82rem; }
.stock-note.in { color: var(--color-success); }
.stock-note.low { color: var(--color-warning); }
.stock-bar-wrap { margin: .5rem 0; }
.stock-bar { height: 4px; background: #333; border-radius: 2px; overflow: hidden; margin-bottom: 4px; }
.stock-bar-fill { height: 100%; border-radius: 2px; transition: width .3s; }
.stock-bar-fill.in { background: var(--color-success); }
.stock-bar-fill.low { background: var(--color-warning); }
.stock-note.out { color: var(--ink-500); font-weight: 600; margin-top: .5rem; }
.pd-buy-row { display: flex; gap: .75rem; margin-top: 1.1rem; }
.pd-buy-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem; }

.pd-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.pd-share-btn { background: var(--surface-elevated); border: 1px solid var(--line); border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; color: var(--ink-500); flex-shrink: 0; transition: background .15s, color .15s; }
.pd-share-btn:hover { background: var(--surface-hover); color: #fff; }
.pd-share-toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%); background: var(--color-success); color: #fff; padding: .6rem 1.5rem; border-radius: 8px; font-weight: 600; font-size: .85rem; z-index: 9999; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.copy-toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%); background: var(--color-success); color: #fff; padding: .6rem 1.5rem; border-radius: 8px; font-weight: 600; font-size: .85rem; z-index: 9999; box-shadow: 0 4px 12px rgba(0,0,0,.4); animation: toastIn .2s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(10px); } }
.meta-dot { color: var(--ink-400); }
.pd-actions-row { display: flex; gap: .5rem; margin-top: .5rem; }

.pd-trust-row { display: flex; gap: 1rem; margin-top: 1.2rem; padding: 1rem; background: var(--surface-elevated); border-radius: var(--radius); flex-wrap: wrap; }
.pd-trust-item { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--ink-500); }
.pd-trust-item svg { color: var(--color-primary); flex-shrink: 0; }

/* ---------- Notifications ---------- */
.notif-bell { position: relative; background: none; border: none; padding: 0; margin: 0; cursor: pointer; font: inherit; transition: transform .15s; }
.notif-bell:hover { transform: scale(1.1); }
.notif-badge {
  position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px;
  background: var(--color-danger); color: #fff; font-size: .65rem; font-weight: 800;
  border-radius: 8px; padding: 0 4px; display: grid; place-items: center;
  line-height: 1; box-shadow: 0 0 0 2px var(--surface);
}
.notif-badge:not(:empty) { animation: notifPulse 2s ease infinite; }
@keyframes notifPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.notif-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 360px; max-height: 420px;
  background: var(--surface-elevated); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,.5);
  z-index: 200; overflow: hidden;
  animation: fadeUp .2s ease;
}
.notif-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: .75rem 1rem; border-bottom: 1px solid var(--line);
}
.notif-header strong { font-size: .9rem; color: #fff; }
.notif-mark-all { background: none; border: none; color: var(--color-primary); font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; }
.notif-mark-all:hover { text-decoration: underline; }
.notif-list { max-height: 350px; overflow-y: auto; }
.notif-item {
  display: flex; gap: .75rem; padding: .75rem 1rem;
  border-bottom: 1px solid var(--line); cursor: pointer;
  transition: background .12s; text-decoration: none; color: inherit;
}
.notif-item:hover { background: var(--surface-hover); }
.notif-item.unread { background: rgba(245,184,0,.06); }
.notif-item.unread::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); flex-shrink: 0; margin-top: 6px; }
.notif-item.read::before { content: ''; width: 6px; flex-shrink: 0; }
.notif-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; flex-shrink: 0; }
.notif-icon.order { background: rgba(76,175,80,.15); }
.notif-icon.seller { background: rgba(245,184,0,.15); }
.notif-icon.stock { background: rgba(255,87,34,.15); }
.notif-icon.review { background: rgba(156,39,176,.15); }
.notif-icon.info { background: rgba(33,150,243,.15); }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: .85rem; font-weight: 600; color: #fff; margin-bottom: 2px; }
.notif-text { font-size: .78rem; color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-time { font-size: .7rem; color: var(--ink-400); margin-top: 2px; }
.notif-empty { padding: 2rem; text-align: center; color: var(--ink-500); font-size: .85rem; }
@media (max-width: 900px) {
  .notif-dropdown { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: 100%; max-height: 60vh; border-radius: var(--radius) var(--radius) 0 0; }
}

.pd-tabs-section { margin-top: 2.5rem; }
.pd-tabs-nav { display: flex; gap: 0; border-bottom: 2px solid var(--line); margin-bottom: 1.5rem; }
.pd-tab { background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; padding: .7rem 1.25rem; font: inherit; font-size: .95rem; font-weight: 600; color: var(--ink-500); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.pd-tab:hover { color: #fff; background: rgba(255,255,255,.03); }
.pd-tab.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.pd-tab-panel { animation: fadeUp .25s ease; }
.pd-specs-table { width: 100%; }
.pd-specs-table td { padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.pd-specs-table td:first-child { color: var(--ink-500); width: 140px; font-weight: 600; }
.pd-specs-table tr:last-child td { border-bottom: 0; }
.pd-seller-card { padding: 1.25rem; }
.pd-seller-info { display: flex; align-items: center; gap: 1rem; }
.pd-seller-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--color-primary); color: #000; display: grid; place-items: center; font-size: 1.3rem; font-weight: 800; }
.pd-seller-name { font-size: 1.05rem; color: #fff; }

.pd-rating-summary { display: flex; align-items: center; gap: 1rem; margin: .75rem 0 0; }
.pd-rating-big { font-size: 2.5rem; font-weight: 900; color: var(--color-primary); line-height: 1; }
.pd-reviews-list { margin-top: 1rem; }
.pd-review-item { padding: 1.25rem; background: var(--surface); border-radius: var(--radius); margin-bottom: .75rem; }
.pd-review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.pd-review-title { display: block; margin-bottom: .25rem; color: #fff; }
.pd-review-item .review-body { margin: .4rem 0; }

/* ---------- Catalog ---------- */
.catalog-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.catalog-filter-toggle { display: none; }
.active-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filter-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; background: var(--color-primary-soft); color: var(--color-primary); border-radius: 999px; font-size: .8rem; font-weight: 600; text-decoration: none; transition: background .15s, transform .1s; }
.filter-chip:hover { background: var(--color-primary); color: #000; }
.filter-chip:active { transform: scale(.95); }
.chip-x { font-size: 1rem; line-height: 1; opacity: .7; }
.filter-chip-clear { background: var(--surface-hover); color: var(--ink-500); }
.filter-chip-clear:hover { background: var(--color-danger); color: #fff; }
.price-sep { color: var(--ink-500); padding: 0 .25rem; }
.pagination-ellipsis { color: var(--ink-500); padding: 0 .5rem; }

.pc-seller { font-size: .75rem; color: var(--color-primary); font-weight: 600; margin-bottom: .1rem; }
.pc-rating-count { font-size: .78rem; color: var(--ink-500); }
.pc-new-badge { font-size: .75rem; color: var(--ink-500); font-weight: 600; }

.related h2 { margin-bottom: 1rem; color: #fff; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.cart-head h3 { margin: 0; color: #fff; font-size: 1.05rem; }
.cart-head-count { font-size: .82rem; color: var(--ink-500); font-weight: 600; }
.cart-item { display: grid; grid-template-columns: 90px 1fr auto; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 90px; height: 70px; object-fit: cover; border-radius: 6px; }
.ci-name { font-weight: 700; color: #fff; }
.ci-name a { color: inherit; }
.ci-name a:hover { color: var(--color-primary); }
.ci-meta { color: var(--ink-500); font-size: .85rem; }
.ci-sub { font-weight: 800; color: #fff; text-align: right; white-space: nowrap; }
.cart-item-actions { display: flex; align-items: center; gap: 1rem; }
.btn-link-danger { background: none; border: none; color: var(--ink-500); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.btn-link-danger:hover { color: var(--color-danger); }
.qty-sm button { height: 34px; width: 34px; }
.qty-sm input { height: 34px; width: 44px; }
.summary-box { position: sticky; top: 90px; background: var(--surface); border-radius: var(--radius); padding: 1.25rem; }
.sum-row { display: flex; justify-content: space-between; padding: .4rem 0; font-size: .95rem; color: var(--ink-700); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .8rem; font-weight: 800; color: #fff; font-size: 1.1rem; }

/* ---------- Checkout ---------- */
.co-layout { display: grid; grid-template-columns: 1fr 360px; gap: 1.5rem; align-items: start; }
.payment-option { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid #727272; border-radius: var(--radius-sm); margin-bottom: .55rem; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.payment-option:hover { border-color: #fff; background: var(--surface-hover); transform: translateY(-1px); }
.payment-option:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-soft); }
.payment-option:active { transform: scale(.98); }
.payment-option input { margin-top: 3px; accent-color: var(--color-primary); }
.payment-option .po-label { font-weight: 700; color: #fff; }
.payment-option .po-desc { font-size: .84rem; color: var(--ink-500); }

/* ---------- Order / status ---------- */
.status-pill { display: inline-block; padding: .3rem .75rem; border-radius: 999px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.status-pending { background: var(--color-warning-soft); color: var(--color-warning); }
.status-paid { background: var(--color-success-soft); color: var(--color-success); }
.status-unpaid { background: var(--color-warning-soft); color: var(--color-warning); }
.status-shipped, .status-processing { background: var(--color-info-soft); color: var(--color-info); }
.status-delivered { background: var(--color-success-soft); color: var(--color-success); }
.status-cancelled, .status-failed, .status-refunded { background: var(--color-danger-soft); color: var(--color-danger); }
.status-confirmed { background: var(--color-primary-soft); color: var(--color-primary); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: .75rem; padding-bottom: 1rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--line); flex: 0 0 auto; margin-top: 3px; }
.timeline li.active .dot { background: var(--color-primary); }
.timeline li.current .dot { box-shadow: 0 0 0 4px var(--color-primary-soft); }
.timeline .tl-status { font-weight: 600; font-size: .92rem; color: #fff; }
.timeline .tl-time { font-size: .8rem; color: var(--ink-400); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; background: var(--surface); }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); padding: .75rem 1rem; border-bottom: 1px solid var(--line); font-weight: 700; white-space: nowrap; }
.table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: middle; color: var(--ink-700); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--surface-hover); }
.table td, .table th { color: inherit; }

/* ---------- Fieldset / Legend ---------- */
fieldset { border: none; padding: 0; margin: 0 0 1rem; }
legend { font-weight: 700; font-size: 1rem; color: #fff; margin-bottom: .75rem; display: block; width: 100%; }

/* ---------- Loading button ---------- */
.btn[disabled], .btn.loading { opacity: .6; cursor: not-allowed; pointer-events: none; }
.btn.loading { position: relative; color: transparent !important; }
.btn.loading::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(0,0,0,.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Empty states (rich) ---------- */
.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--ink-500); }
.empty-state .es-icon { font-size: 2.5rem; margin-bottom: .75rem; display: block; }
.empty-state h3 { color: #fff; font-size: 1.1rem; margin-bottom: .4rem; }
.empty-state p { color: var(--ink-500); font-size: .9rem; max-width: 36ch; margin: 0 auto .75rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .85rem; color: var(--ink-500); margin-bottom: 1rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span.sep { color: var(--ink-400); }

/* ---------- Product detail helpers ---------- */
.pd-breadcrumb { font-size: .85rem; color: var(--ink-500); margin-bottom: 1rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.pd-breadcrumb a { color: var(--ink-500); }
.pd-breadcrumb a:hover { color: #fff; }
.stars-empty { opacity: .25; }
.pd-desc-text { white-space: pre-line; }
.review-meta { font-size: .82rem; color: var(--ink-400); }
.review-body { font-size: .92rem; }
.review-author { font-size: .82rem; color: var(--ink-500); }

/* ---------- Account nav partial ---------- */
 acct-nav { display: flex; flex-direction: column; gap: .15rem; }

/* ---------- Cart helpers ---------- */
.cart-item-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }

/* ---------- Checkout helpers ---------- */
.checkout-terms { font-size: .8rem; color: var(--ink-500); line-height: 1.5; }
.discount-amount { color: var(--color-success); font-weight: 700; }

/* ---------- Flash messages mobile fix ---------- */
@media (max-width: 640px) {
  .flash-wrap { top: auto; bottom: 1rem; right: .5rem; left: .5rem; max-width: none; }
}

/* ---------- Responsive table mobile cards ---------- */
@media (max-width: 640px) {
  .table-wrap { border-radius: 0; background: transparent; }
  .table { background: transparent; }
  .table thead { display: none; }
  .table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .3rem .75rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--radius);
    margin-bottom: .5rem;
    border-bottom: none;
  }
  .table td {
    padding: 0;
    border-bottom: none;
    font-size: .85rem;
  }
  .table td:first-child { font-weight: 700; color: #fff; grid-column: 1 / -1; font-size: .95rem; }
  .table td::before { content: attr(data-label); display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-400); font-weight: 700; margin-bottom: .15rem; }
  .table td:not(:first-child)::before { display: block; }
}

/* ---------- Auth pages ---------- */
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(ellipse at 50% 0%, rgba(29,185,84,.08) 0%, #000 60%); }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: 0 8px 32px rgba(0,0,0,.6); padding: 2.25rem; }
.auth-card .brand { justify-content: center; margin-bottom: .25rem; }
.auth-head { text-align: center; margin-bottom: 1.5rem; }
.auth-head h1 { font-size: 1.5rem; color: #fff; }
.auth-head p { color: var(--ink-500); font-size: .9rem; margin: 0; }
.auth-alt { text-align: center; font-size: .9rem; color: var(--ink-500); margin-top: 1.25rem; }
.auth-alt a { color: #fff; font-weight: 700; }

/* ---------- Dashboard shells ---------- */
.dash { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.dash-nav { background: #000; color: var(--ink-500); padding: 1.25rem .9rem; display: flex; flex-direction: column; gap: .15rem; border-right: 1px solid var(--line); }
.dash-nav .dn-brand { display: flex; align-items: center; gap: .5rem; color: #fff; font-weight: 900; font-size: 1.05rem; padding: .25rem .6rem 1rem; }
.dash-nav .dn-brand img { width: 28px; height: 28px; border-radius: 50%; }
.dash-nav a { display: block; padding: .6rem .7rem; border-radius: var(--radius-sm); color: var(--ink-700); font-weight: 600; font-size: .88rem; transition: background .15s, color .15s; }
.dash-nav a:hover { color: #fff; background: var(--surface-hover); }
.dash-nav a.active { color: #fff; background: var(--color-primary); }
.dash-nav .dn-section { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-400); margin: 1rem .7rem .25rem; font-weight: 700; }
.dash-nav .dn-logout { margin-top: auto; }
.dash-main { padding: 1.5rem var(--gutter) 3rem; min-width: 0; background: var(--surface-muted); }
.dash-main h1 { color: #fff; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: var(--surface); border-radius: var(--radius); padding: 1.25rem; }
.stat-card .stat-label { font-size: .78rem; color: var(--ink-500); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.stat-card .stat-value { font-size: 1.7rem; font-weight: 900; margin-top: .25rem; color: #fff; }

/* Seller CTA Card */
.seller-cta-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  margin-top: 1.25rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(255,215,0,.2);
  border-radius: var(--radius);
  color: #fff;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
}
.seller-cta-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(255,215,0,.15);
  transform: translateY(-2px);
}
.seller-cta-icon {
  font-size: 2.2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,215,0,.1);
  border-radius: 14px;
  flex-shrink: 0;
}
.seller-cta-text {
  flex: 1;
}
.seller-cta-text strong {
  display: block;
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: .2rem;
}
.seller-cta-text span {
  font-size: .82rem;
  color: var(--ink-500);
  line-height: 1.4;
}
.seller-cta-arrow {
  font-size: 1.3rem;
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Account ---------- */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; align-items: start; }
.account-nav .card-pad { padding: .25rem; gap: .15rem; display: flex; flex-direction: column; }
.account-nav a { display: flex; align-items: center; gap: .6rem; padding: .65rem .8rem; border-radius: var(--radius-sm); color: var(--ink-700); font-weight: 600; font-size: .92rem; transition: background .15s, color .15s; }
.account-nav a:hover, .account-nav a.active { background: var(--surface-hover); color: #fff; }
.account-greeting { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.wallet-chip { display: inline-flex; align-items: center; gap: .5rem; background: var(--color-success-soft); color: var(--color-success); font-weight: 800; padding: .5rem 1rem; border-radius: 999px; font-size: .9rem; }
.wallet-chip .wc-label { font-weight: 600; color: var(--ink-500); font-size: .78rem; }

.tx-card .tx-row { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.tx-row:last-child { border-bottom: 0; }
.tx-amount { font-weight: 800; }
.tx-amount.credit { color: var(--color-success); }
.tx-amount.debit { color: var(--color-danger); }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 38px; height: 38px; padding-inline: .5rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-700); font-weight: 700; font-size: .9rem; }
.pagination a:hover { border-color: var(--ink-900); color: #fff; background: var(--surface-hover); }
.pagination a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.pagination .current { background: var(--color-primary); border-color: var(--color-primary); color: #000; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--ink-500); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.flex { display: flex; } .flex-col { flex-direction: column; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.muted-box { background: var(--surface); border-radius: var(--radius); padding: 1.25rem; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.trust-strip h3 { color: #fff; font-size: 1rem; margin-bottom: .4rem; }
.trust-strip p { color: var(--ink-500); font-size: .9rem; line-height: 1.5; }

.price-input-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.form-actions { display: flex; gap: .75rem; }

/* ---------- Responsive ---------- */
@media (min-width: 641px) {
  .mobile-search { display: none !important; }
}

@media (max-width: 900px) {
  .catalog, .pd-layout, .cart-layout, .co-layout, .account-layout { grid-template-columns: 1fr; }
  .filters, .summary-box { position: static; }
  .catalog-filter-toggle { display: flex; }
  .filters { display: none; }
  .filters.filters-open { display: block; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 100; overflow-y: auto; padding: 1.5rem; background: var(--surface); }
  .pd-tabs-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pd-tab { white-space: nowrap; padding: .6rem 1rem; font-size: .88rem; }
  .pd-trust-row { gap: .6rem; }
  .pd-trust-item { font-size: .75rem; }
  .pd-title-row { flex-direction: column; gap: .5rem; }
  .pd-rating-summary { margin-top: .5rem; }
  .pd-rating-big { font-size: 2rem; }
  .dash { grid-template-columns: 1fr; }
  .dash-nav { flex-direction: row; overflow-x: auto; padding: .6rem; border-right: none; border-bottom: 1px solid var(--line); }
  .dash-nav .dn-brand, .dash-nav .dn-section, .dash-nav .dn-logout { display: none; }
  .dash-nav a { white-space: nowrap; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: inline-flex; }
  .site-header { position: fixed; top: 0; left: 0; right: 0; padding-top: env(safe-area-inset-top, 0px); }
  .promo-banner { margin-top: calc(56px + env(safe-area-inset-top, 0px)); }
  main { padding-top: 0; }
  .nav-links { display: none; }
}

/* ===== Bottom Nav (mobile) ===== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(9, 9, 11, 0.92);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: .4rem 0 calc(.4rem + env(safe-area-inset-bottom, 0px));
  z-index: 2000;
  justify-content: space-around;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  text-decoration: none;
  color: var(--ink-400);
  font-size: .6rem;
  font-weight: 600;
  padding: .25rem .5rem;
  position: relative;
  transition: color .2s;
  -webkit-tap-highlight-color: transparent;
}
.bn-item svg { transition: transform .15s; }
.bn-item.active { color: #f5b800; }
.bn-item.active svg { transform: scale(1.1); }
.bn-item:active svg { transform: scale(.9); }
.bn-badge {
  position: absolute;
  top: 0; right: .1rem;
  background: #ef4444;
  color: #fff;
  font-size: .55rem;
  font-weight: 800;
  min-width: 14px;
  height: 14px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
.bn-badge.hidden { display: none; }
.bn-dropdown {
  display: none;
  position: fixed;
  bottom: 70px;
  right: 12px;
  min-width: 180px;
  background: #18181b;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.5);
  padding: .4rem 0;
  z-index: 2001;
}
.bn-dropdown.open { display: block; }
.bn-dd-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: .7rem 1rem;
  font-size: .85rem;
  color: #e4e4e7;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.bn-dd-item:active { background: rgba(255,255,255,.06); }
.bn-dd-logout { color: #ef4444; }

@media (max-width: 640px) {
  .header-search { display: none; }
  .header-actions .ha.search-toggle { display: inline-flex; }
  .header-actions .ha span.ha-label { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  /* Always show quick-add on touch */
  .pc-quickadd { opacity: 1; transform: none; }
  .pc-wishlist { opacity: 1; transform: none; }
  .cart-item { grid-template-columns: 70px 1fr; }
  .cart-item img { width: 70px; height: 56px; }
  .ci-sub { grid-column: 2; text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-grid > div { border-bottom: 1px solid var(--line); padding-bottom: .5rem; margin-bottom: .5rem; }
  .footer-links { max-height: 0; transition: max-height .3s ease; }
  .footer-toggle { padding: .75rem 0; display: flex; justify-content: space-between; align-items: center; margin: 0; }
  .footer-toggle::after { content: '+'; font-size: 1.1rem; color: var(--ink-500); transition: transform .2s; }
  .footer-toggle.open::after { content: '−'; }
  .footer-toggle.open + .footer-links { max-height: 500px; }
  .banner { padding: 2rem 0 1.75rem; }
  .banner-inner { grid-template-columns: 1fr; text-align: center; }
  .banner-content { max-width: 100%; }
  .banner h1 { font-size: 1.8rem; }
  .banner p { margin-left: auto; margin-right: auto; }
  .banner-btns { justify-content: center; }
  .banner-btns .btn-ghost { padding: 0; }
  .banner-trust { justify-content: center; gap: .75rem; }
  .bt-item { font-size: .7rem; }
  .banner-decor { display: none; }
  .pd-summary, .pd-gallery { position: static; }
  .sort-label { width: 100%; }
  .sort-label select.input { width: 100%; }
  .bottom-nav { display: flex; }
  body { padding-bottom: 70px; }
  .back-to-top { bottom: 80px; }
}

/* ===== Seller earnings/settings ===== */
.earnings-breakdown { display: flex; flex-direction: column; gap: .6rem; }
.eb-row { display: flex; justify-content: space-between; align-items: center; }
.eb-label { font-size: .9rem; color: var(--ink-700); }
.eb-value { font-size: .9rem; font-weight: 700; color: #fff; }
.eb-divider { height: 1px; background: var(--line); margin: .25rem 0; }
.eb-total .eb-label { font-weight: 700; color: #fff; }
.eb-total .eb-value { font-size: 1.1rem; color: var(--color-primary); }

.settings-info { display: flex; flex-direction: column; gap: .75rem; }
.si-row { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.si-row:last-child { border-bottom: none; }
.si-label { font-size: .85rem; color: var(--ink-500); }
.si-value { font-size: .85rem; font-weight: 600; color: #fff; }
.si-value a { color: var(--color-primary); text-decoration: none; }
.si-value a:hover { text-decoration: underline; }

/* ===== Preloader ===== */
.preloader {
  position: fixed;
  inset: 0;
  background: #09090b;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  transition: opacity .4s ease, visibility .4s ease;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: .7; }
}

/* ===== Pull to Refresh ===== */
.ptr-indicator {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0;
  overflow: hidden;
  z-index: 9998;
  transition: height .2s ease;
  pointer-events: none;
}
.ptr-indicator.pulling { transition: none; }
.ptr-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255,255,255,.15);
  border-top-color: #f5b800;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.ptr-indicator.refreshing .ptr-spinner {
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Back to Top ===== */
.back-to-top {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f5b800;
  color: #09090b;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(245,184,0,.3);
  transition: opacity .3s, transform .3s;
  opacity: 0;
  transform: translateY(10px);
}
.back-to-top.visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:active { transform: scale(.9); }
.back-to-top:hover { background: #1ed760; box-shadow: 0 6px 20px rgba(245,184,0,.4); }

/* ===== Install Banner ===== */
.install-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #18181b;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 1001;
  box-shadow: 0 -4px 20px rgba(0,0,0,.5);
  animation: slideUp .3s ease-out;
}
.install-banner[hidden] { display: none; }
.install-banner-inner {
  display: flex;
  align-items: center;
  gap: .75rem;
  max-width: 600px;
  margin: 0 auto;
}
.install-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}
.install-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}
.install-text strong { font-size: .88rem; color: #fff; }
.install-text span { font-size: .75rem; color: #71717a; }
.install-actions {
  display: flex;
  gap: .4rem;
  flex-shrink: 0;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ===== Bank Transfer ===== */
.bank-details-box {
  background: rgba(245,184,0,.05);
  border: 1px solid rgba(245,184,0,.15);
  border-radius: 12px;
  padding: 1.25rem;
  margin: .75rem 0 1rem;
}
.bank-details-box h4 {
  font-size: .88rem;
  margin-bottom: .75rem;
  color: #fff;
}
.bank-card {
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: .75rem;
}
.bank-card:last-child { margin-bottom: 0; }
.bank-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem 1rem;
  border-bottom: 1px solid var(--line);
}
.bank-card-header strong { font-size: .88rem; }
.bank-card-body { padding: .75rem 1rem; }
.bc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .35rem 0;
  font-size: .85rem;
}
.bc-label { color: var(--ink-500); }
.bc-value { font-weight: 600; color: #fff; }
.bc-account { font-family: monospace; font-size: .95rem; letter-spacing: .05em; }
.bc-amount {
  border-top: 1px solid var(--line);
  margin-top: .35rem;
  padding-top: .6rem;
}
.bc-total { color: var(--color-primary); font-size: 1rem; }
.copy-btn {
  background: var(--color-primary);
  color: #000;
  border: none;
  padding: .2rem .6rem;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.copy-btn:hover { transform: scale(1.05); }
.copy-btn:active { opacity: .7; transform: scale(.95); }
.copy-btn.copied { background: var(--color-success); }

.toggle-label {
  display: flex;
  align-items: center;
  gap: .6rem;
  cursor: pointer;
  font-size: .88rem;
  color: var(--ink-700);
  padding: .5rem 0;
}
.toggle-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

/* ================================================================
   MOBILE POLISH — comprehensive mobile-first improvements
   ================================================================ */

/* ---- Touch targets (WCAG 2.5.5 minimum 44px) ---- */
@media (max-width: 640px) {
  .btn, .btn-primary, .btn-ghost, .btn-sm,
  .pc-quickadd, .pc-wishlist,
  .qty-sm button, .quantity-input button,
  .copy-btn, .btn-link-danger,
  .payment-option,
  .filter-pill, .tag-pill,
  .pagination a, .pagination span {
    min-height: 44px;
    min-width: 44px;
  }

  /* ---- Inputs / selects / textareas ---- */
  .input, select.input, textarea.input {
    font-size: 16px; /* prevents iOS zoom */
    padding: .8rem 1rem;
    min-height: 48px;
  }
  textarea.input { min-height: 120px; }
  select.input { padding-right: 2.5rem; }

  /* ---- Buttons ---- */
  .btn {
    padding: .85rem 1.25rem;
    font-size: .95rem;
    font-weight: 700;
    border-radius: var(--radius);
  }
  .btn-primary { padding: .9rem 1.5rem; }
  .btn-sm { padding: .6rem 1rem; font-size: .85rem; min-height: 40px; }

  /* ---- Product cards ---- */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .product-card { padding: .5rem; }
  .product-card .pc-img { aspect-ratio: 1; border-radius: 4px; }
  .pc-quickadd { width: 42px; height: 42px; right: .6rem; bottom: .6rem; }
  .pc-wishlist { width: 36px; height: 36px; top: .6rem; right: .6rem; }
  .product-card .pc-body { padding: .5rem .1rem .2rem; gap: .2rem; }
  .product-card .pc-body h3 { font-size: .88rem; line-height: 1.3; }
  .product-card .pc-price { font-size: .82rem; gap: .4rem; }
  .pc-old-price { font-size: .72rem; }
  .pc-new-price { font-size: .85rem; }

  /* ---- Category nav ---- */
  .cat-nav { gap: .6rem; padding: .6rem 0; }
  .cat-pill { padding: .5rem .9rem; font-size: .82rem; gap: .35rem; }

  /* ---- Banner ---- */
  .banner { padding: 2rem 0 1.75rem; }
  .banner h1 { font-size: 1.8rem; }
  .banner p { font-size: .9rem; }
  .banner-btns .btn { padding: .8rem 1.5rem; font-size: .9rem; }

  /* ---- Trust strip (below banner) ---- */
  .trust-row { gap: .5rem; padding: .75rem 0; }
  .trust-row span { font-size: .75rem; }
}

/* ---- Product detail — mobile ---- */
@media (max-width: 640px) {
  .pd-layout { grid-template-columns: 1fr; gap: 1.25rem; }

  /* Gallery */
  .pd-gallery { position: static; }
  .pd-main-img { aspect-ratio: 1; border-radius: var(--radius); }
  .pd-nav { width: 36px; height: 36px; font-size: 1.3rem; }
  .pd-nav-prev { left: 6px; }
  .pd-nav-next { right: 6px; }
  .pd-zoom-btn { width: 32px; height: 32px; bottom: 8px; right: 8px; }
  .pd-zoom-btn svg { width: 15px; height: 15px; }
  .pd-thumbs { overflow-x: auto; -webkit-overflow-scrolling: touch; gap: .5rem; padding-bottom: .25rem; scrollbar-width: none; }
  .pd-thumbs::-webkit-scrollbar { display: none; }
  .pd-thumb { width: 60px; height: 48px; flex-shrink: 0; }

  /* Lightbox */
  .pd-lightbox .pd-nav { width: 40px; height: 40px; font-size: 1.6rem; }
  .pd-lb-close { width: 38px; height: 38px; top: 12px; right: 12px; }

  /* Info */
  .pd-info h1 { font-size: 1.3rem; line-height: 1.3; }
  .pd-meta { font-size: .8rem; gap: .6rem; margin-bottom: .75rem; }
  .pd-price { gap: .5rem; margin: .75rem 0; }
  .pd-price .price { font-size: 1.5rem; }
  .pd-price .old-price { font-size: .9rem; }
  .pd-desc { font-size: .9rem; line-height: 1.6; }

  /* Summary / buy box */
  .pd-summary { position: static; padding: 1rem; border-radius: var(--radius); }
  .purchase-total { font-size: 1.4rem; }

  /* Quantity — bigger touch targets */
  .quantity-input button { width: 48px; height: 48px; font-size: 1.2rem; }
  .quantity-input input { width: 52px; height: 48px; font-size: 1rem; }

  /* Buy row — stack vertically */
  .pd-buy-row { flex-direction: column; gap: .5rem; }
  .pd-buy-btn { width: 100%; padding: .9rem; font-size: 1rem; }

  /* Wishlist button */
  .pd-wishlist { width: 100%; justify-content: center; padding: .7rem; gap: .4rem; }

  /* Trust row */
  .pd-trust-row { padding: .75rem; gap: .5rem; }
  .pd-trust-item { font-size: .75rem; gap: .3rem; }
  .pd-trust-item svg { width: 16px; height: 16px; }

  /* Tabs */
  .pd-tabs-section { margin-top: 1.5rem; }
  .pd-tabs-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .pd-tabs-nav::-webkit-scrollbar { display: none; }
  .pd-tab { white-space: nowrap; padding: .6rem 1rem; font-size: .85rem; }

  /* Custom Studio mobile */
  .custom-studio { border-radius: 14px; }
  .studio-header { padding: .75rem 1rem; }
  .studio-header-icon { width: 36px; height: 36px; border-radius: 10px; font-size: 1.1rem; }
  .studio-header-text strong { font-size: .9rem; }
  .studio-tabs { gap: 0; }
  .studio-tab { padding: .5rem .75rem; font-size: .8rem; }
  .studio-controls { padding: .75rem 1rem; }
  .studio-section-title { font-size: .85rem; }
  .color-swatch { width: 28px; height: 28px; }
  .style-pill { padding: .4rem .7rem; font-size: .8rem; }

  /* Reviews */
  .pd-reviews-list { gap: .75rem; }
  .pd-review-item { padding: .75rem; }

  /* Related products */
  .related { margin-top: 2rem; }
  .related h2 { font-size: 1.1rem; }
}

/* ---- Cart — mobile ---- */
@media (max-width: 640px) {
  .cart-layout { grid-template-columns: 1fr; gap: 1rem; }
  .cart-head { padding: .75rem 1rem; }
  .cart-head h3 { font-size: .95rem; }
  .cart-item { grid-template-columns: 64px 1fr; gap: .75rem; padding: .9rem 1rem; }
  .cart-item img { width: 64px; height: 52px; }
  .ci-name { font-size: .88rem; }
  .ci-meta { font-size: .78rem; }
  .ci-sub { grid-column: 2; text-align: left; font-size: .9rem; margin-top: .25rem; }
  .cart-item-actions { flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }

  /* Quantity in cart — bigger */
  .qty-sm { display: inline-flex; align-items: center; }
  .qty-sm button { width: 38px; height: 38px; font-size: 1rem; border-radius: var(--radius-sm); }
  .qty-sm input { width: 44px; height: 38px; font-size: .9rem; }

  /* Remove button */
  .btn-link-danger { font-size: .8rem; min-height: 36px; display: inline-flex; align-items: center; }

  /* Summary box */
  .summary-box { position: static; padding: 1rem; border-radius: var(--radius); }
  .sum-row { font-size: .88rem; }
  .sum-row.total { font-size: 1.05rem; }

  /* Empty cart */
  .empty-state { padding: 2rem 1rem; }
  .empty-state .es-icon { font-size: 2rem; }
  .empty-state h3 { font-size: 1.1rem; }
}

/* ---- Checkout — mobile ---- */
@media (max-width: 640px) {
  .co-layout { grid-template-columns: 1fr; gap: 1rem; }
  .checkout-form { padding: 1rem; }
  .checkout-form fieldset { margin-bottom: 1.25rem; }
  .checkout-form legend { font-size: .95rem; margin-bottom: .5rem; }

  /* Payment options — bigger touch target */
  .payment-option { padding: 1rem; border-radius: var(--radius); gap: .6rem; }
  .payment-option input { width: 20px; height: 20px; margin-top: 0; }
  .po-label { font-size: .92rem; }
  .po-desc { font-size: .82rem; }

  /* Bank transfer cards */
  .bank-details-box { padding: 1rem; border-radius: var(--radius); }
  .bank-card { border-radius: var(--radius); }
  .bank-card-header { padding: .7rem 1rem; }
  .bank-card-header strong { font-size: .9rem; }
  .bank-card-body { padding: .7rem .9rem; }
  .bc-row { padding: .5rem 0; }
  .bc-label { font-size: .8rem; }
  .bc-value { font-size: .88rem; }
  .bc-account { font-size: .9rem; }
  .copy-btn { padding: .4rem .7rem; font-size: .78rem; min-height: 36px; }

  /* Order summary */
  .co-summary { position: static; padding: 1rem; }
  .order-review-item { padding: .6rem 0; }

  /* Place order button */
  .place-order-btn { width: 100%; padding: 1rem; font-size: 1rem; }

  /* Address form */
  .form-grid { grid-template-columns: 1fr; gap: .75rem; }
}

/* ---- Account pages — mobile ---- */
@media (max-width: 640px) {
  .account-layout { grid-template-columns: 1fr; gap: 1rem; }

  /* Account nav — horizontal scroll tabs */
  .account-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .account-nav .card-pad {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    gap: .1rem;
    padding: .3rem;
  }
  .account-nav .card-pad::-webkit-scrollbar { display: none; }
  .account-nav a {
    white-space: nowrap;
    padding: .6rem .9rem;
    font-size: .85rem;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
  }
  .account-nav a.active { background: var(--color-primary); color: #000; }

  /* Greeting header */
  .account-greeting { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .wallet-chip { font-size: .85rem; padding: .4rem .8rem; }

  /* Wallet / orders / address cards */
  .tx-card .tx-row { padding: .6rem .75rem; font-size: .85rem; }
  .order-card { padding: .75rem; }
  .order-card .oc-row { gap: .4rem; }
}

/* ---- Dashboard Top Bar (mobile) ---- */
.dash-topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: #09090b;
  border-bottom: 1px solid rgba(255,255,255,.06);
  align-items: center;
  padding: 0 1rem;
  z-index: 100;
  gap: .75rem;
}
.dtb-menu {
  background: none; border: none; color: #fff;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; cursor: pointer; flex-shrink: 0;
}
.dtb-menu:active { background: rgba(255,255,255,.08); }
.dtb-brand {
  flex: 1; display: flex; align-items: center; gap: .5rem; min-width: 0;
}
.dtb-brand img { width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0; }
.dtb-brand span { font-size: .95rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtb-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.dtb-btn {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: #fff; border-radius: 10px; cursor: pointer;
}
.dtb-btn:active { background: rgba(255,255,255,.08); }

/* ---- Dashboard Overlay (mobile) ---- */
.dash-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 200;
}
.dash-overlay.open { display: block; }

/* ---- Dashboard Bottom Nav (mobile) ---- */
.dash-bottomnav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: #09090b;
  border-top: 1px solid rgba(255,255,255,.06);
  align-items: center;
  justify-content: space-around;
  padding: 0 .25rem;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 100;
}
.dbn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  padding: .35rem .5rem;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255,255,255,.4);
  font-size: .62rem;
  font-weight: 500;
  transition: color .15s;
  -webkit-tap-highlight-color: transparent;
  min-width: 56px;
  border: none; background: none; cursor: pointer;
}
.dbn-item svg { width: 22px; height: 22px; stroke-width: 1.8; }
.dbn-item.active {
  color: #f5b800;
}
.dbn-item.active svg { stroke: #f5b800; }
.dbn-item:active { opacity: .7; }

/* ---- Dashboard — mobile layout ---- */
@media (max-width: 640px) {
  .dash-topbar { display: flex; }
  .dash-bottomnav { display: flex; }

  /* Hide sidebar by default on mobile */
  .dash-nav {
    position: fixed;
    top: 0; left: -280px; bottom: 0;
    width: 280px;
    background: #09090b;
    border-right: 1px solid rgba(255,255,255,.06);
    z-index: 300;
    overflow-y: auto;
    transition: left .3s cubic-bezier(.4,0,.2,1);
    padding: 1rem .75rem;
    flex-direction: column;
  }
  .dash-nav.open { left: 0; }

  /* Push main content */
  .dash { padding-top: 56px; padding-bottom: 64px; }
  .dash-main { padding: 1rem; }

  /* Stat cards */
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .stat-card { padding: .9rem; }
  .stat-card .stat-value { font-size: 1.3rem; }
  .stat-card .stat-label { font-size: .7rem; }

  /* Table cards */
  .table td:first-child { font-size: .88rem; }
  .table td { font-size: .82rem; }

  /* Hide old header bar inside dash */
  .dash .flex.justify-between.items-center.mb-2 { flex-direction: column; align-items: flex-start !important; gap: .25rem; }
}

/* ---- Forms — general mobile polish ---- */
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; gap: .75rem; }
  .price-input-row { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; text-align: center; }

  /* Search bar */
  .header-search { display: none; }
  .search-toggle { display: inline-flex; }
  .mobile-search { padding: 0 .75rem; margin-bottom: .5rem; }
  .mobile-search .input { padding: .75rem 1rem; font-size: .9rem; min-height: 44px; }
}

/* ---- Flash messages — mobile ---- */
@media (max-width: 640px) {
  .flash-wrap { bottom: 80px; top: auto; left: .5rem; right: .5rem; max-width: none; }
  .flash { padding: .7rem 1rem; font-size: .85rem; }
}

/* ---- Misc mobile polish ---- */
@media (max-width: 640px) {
  /* Reduce page padding */
  .page { padding-top: 1rem; padding-bottom: 1rem; }

  /* Card padding */
  .card-pad { padding: 1rem; }

  /* Headings */
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.1rem; }
  h3 { font-size: 1rem; }

  /* Better spacing */
  .mb-3 { margin-bottom: 1rem; }
  .mt-3 { margin-top: 1rem; }

  /* Pagination */
  .pagination { gap: .3rem; }
  .pagination a, .pagination span { min-width: 36px; height: 36px; font-size: .85rem; }

  /* Modal / overlay adjustments */
  .modal-body { padding: 1rem; margin: .5rem; border-radius: var(--radius); }

  /* Better link tapping */
  a { min-height: 24px; display: inline-flex; align-items: center; }

  /* Badge flags */
  .badge-flag { font-size: .65rem; padding: 2px 6px; }

  /* Checkout success */
  .bank-card { margin-top: .75rem; }

  /* ---- Force inline grids to stack ---- */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  /* Exception: stat-grid keeps 2-col */
  .stat-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* ---- Force inline flex to wrap ---- */
  [style*="display:flex"][style*="justify-content:space-between"] {
    flex-wrap: wrap;
  }

  /* ---- Tables: card layout on mobile ---- */
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { width: 100%; border-collapse: collapse; }
  .table thead { display: none; }
  .table tbody tr {
    display: flex; flex-direction: column;
    border-bottom: 1px solid var(--line);
    padding: .75rem 0;
  }
  .table td {
    display: flex; justify-content: space-between; align-items: center;
    padding: .35rem 0; border: none; font-size: .85rem;
    text-align: right;
  }
  .table td::before {
    content: attr(data-label);
    font-weight: 600; color: var(--ink-500); text-align: left;
    flex-shrink: 0; margin-right: .5rem;
    font-size: .8rem;
  }
  .table td:first-child { padding-top: 0; }
  .table td:last-child { padding-bottom: 0; }
  /* Keep action buttons visible */
  .table td:last-child { justify-content: flex-end; }
  /* Hide empty data-label cells (e.g. checkbox, view button) */
  .table td:not([data-label]):empty { display: none; }
  .table td:not([data-label]) {
    justify-content: flex-end; padding: .25rem 0;
  }
  .table td:not([data-label])::before { display: none; }

  /* ---- Admin header responsive ---- */
  .admin-header { flex-direction: column; align-items: flex-start !important; gap: .75rem; }

  /* ---- Grid-2, grid-3, grid-4 responsive ---- */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }

  /* ---- Loyalty / compare / checkout responsive ---- */
  .loyalty-form { flex-direction: column; }
  .loyalty-form .input { width: 100% !important; }
}

/* ============================================================
   Design Studio V4 (Modern Glass)
   ============================================================ */

/* Open Button */
.studio-open-btn {
  background: rgba(245,184,0,.06);
  border: 1.5px solid rgba(245,184,0,.25) !important;
  color: #f5b800 !important;
  font-weight: 700;
  font-size: .95rem;
  padding: .9rem 1.5rem;
  border-radius: 16px;
  cursor: pointer;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  margin-bottom: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  letter-spacing: .01em;
}
.studio-open-btn:hover {
  background: rgba(245,184,0,.12);
  border-color: rgba(245,184,0,.45) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,184,0,.15);
}
.studio-open-btn:active { transform: scale(.98); }

/* Overlay */
.studio-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: overlayFadeIn .3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.studio-overlay[hidden] { display: none; }
@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Close Button */
.studio-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .2s;
  line-height: 1;
}
.studio-close-btn:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

/* Studio in overlay */
.studio-overlay .custom-studio {
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  margin: 0;
  border-radius: 24px;
  animation: studioSlideUp .4s cubic-bezier(.16,1,.3,1);
}
@keyframes studioSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.custom-studio {
  background: rgba(18, 18, 24, .95);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-radius: 20px;
  padding: 0;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04) inset;
}

/* Header */
.studio-header {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(245,184,0,.08) 0%, transparent 100%);
  border-bottom: 1px solid rgba(255,255,255,.05);
  position: relative;
}
.studio-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f5b800 0%, #e6a000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(245,184,0,.3);
}
.studio-header-text { flex: 1; }
.studio-header-text strong {
  color: #fff;
  font-size: 1.05rem;
  display: block;
  letter-spacing: .01em;
  font-weight: 700;
}
.studio-header-text small {
  color: rgba(255,255,255,.35);
  font-size: .78rem;
}

/* Tabs */
.studio-tabs {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,.03);
  padding: 4px;
  margin: 1rem 1.5rem 0;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.04);
}
.studio-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .65rem .5rem;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.35);
  font-size: .82rem;
  font-weight: 500;
  border-radius: 11px;
  cursor: pointer;
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.studio-tab:hover { color: rgba(255,255,255,.65); }
.studio-tab.active {
  background: rgba(245,184,0,.12);
  color: #f5b800;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(245,184,0,.15);
}
.tab-icon { font-size: .95rem; }

/* Body layout */
.studio-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 768px) {
  .studio-body { grid-template-columns: 1fr 280px; }
}

/* Controls */
.studio-controls {
  padding: 1.25rem 1.5rem;
}
.studio-section {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.studio-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.studio-section-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  margin-bottom: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.studio-section-title span:first-child { font-size: .9rem; }
.studio-section-price {
  margin-left: auto;
  font-size: .7rem;
  font-weight: 700;
  color: #f5b800;
  background: rgba(245,184,0,.08);
  padding: .2rem .6rem;
  border-radius: 8px;
  letter-spacing: .02em;
}
.studio-section-price.free {
  color: #4ade80;
  background: rgba(74,222,128,.08);
}

.studio-field {
  margin-bottom: .85rem;
}
.studio-field:last-child { margin-bottom: 0; }
.studio-field label {
  display: block;
  font-size: .72rem;
  color: rgba(255,255,255,.4);
  margin-bottom: .45rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 500;
}
.studio-row {
  display: flex;
  gap: .85rem;
}
@media (max-width: 480px) {
  .studio-row { flex-direction: column; gap: 0; }
}
.studio-field-half { flex: 1; }

/* Text input */
.studio-text-input {
  width: 100%;
  box-sizing: border-box;
  padding: .8rem 1rem;
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.06);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.studio-text-input:focus {
  outline: none;
  border-color: rgba(245,184,0,.4);
  box-shadow: 0 0 0 4px rgba(245,184,0,.06), 0 0 24px rgba(245,184,0,.04);
  background: rgba(255,255,255,.06);
}
.studio-text-input::placeholder {
  color: rgba(255,255,255,.2);
  font-weight: 400;
}
.studio-input-footer {
  display: flex;
  justify-content: space-between;
  margin-top: .4rem;
}
.studio-char-count {
  font-size: .7rem;
  color: rgba(255,255,255,.3);
  font-variant-numeric: tabular-nums;
}

/* Color picker */
.color-picker {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
}
.color-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.06);
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  padding: 0;
  position: relative;
}
.color-swatch:hover {
  transform: scale(1.15);
  border-color: rgba(255,255,255,.2);
}
.color-swatch.active {
  border-color: #f5b800;
  box-shadow: 0 0 0 3px rgba(245,184,0,.25), 0 4px 16px rgba(0,0,0,.4);
  transform: scale(1.1);
}
.swatch-check {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: #000;
  font-weight: 800;
}
.color-swatch.active .swatch-check { display: flex; }

/* Style pills */
.style-pills {
  display: flex;
  gap: .4rem;
}
.style-pill {
  flex: 1;
  padding: .55rem .4rem;
  border: 1.5px solid rgba(255,255,255,.06);
  background: transparent;
  color: rgba(255,255,255,.4);
  border-radius: 10px;
  font-size: .82rem;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.style-pill:hover { border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.7); }
.style-pill.active {
  background: rgba(245,184,0,.1);
  color: #f5b800;
  border-color: rgba(245,184,0,.3);
  font-weight: 700;
}

/* Font size slider */
.size-slider-row {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.size-label-sm { font-size: .7rem; color: rgba(255,255,255,.3); }
.size-label-lg { font-size: 1.15rem; color: rgba(255,255,255,.3); }
.studio-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(255,255,255,.06);
  border-radius: 4px;
  outline: none;
}
.studio-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f5b800;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
  transition: transform .15s;
}
.studio-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.size-value {
  font-size: .72rem;
  color: #f5b800;
  min-width: 34px;
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* File upload */
.file-upload-area {
  position: relative;
  border: 2px dashed rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  background: rgba(255,255,255,.02);
}
.file-upload-area:hover {
  border-color: rgba(245,184,0,.3);
  background: rgba(245,184,0,.03);
}
.file-upload-area.drag-over {
  border-color: #f5b800;
  background: rgba(245,184,0,.06);
  border-style: solid;
}
.file-input-hidden {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.file-upload-content { pointer-events: none; }
.file-upload-icon-wrap {
  color: rgba(255,255,255,.15);
  margin-bottom: .6rem;
  transition: transform .3s;
}
.file-upload-area:hover .file-upload-icon-wrap {
  transform: translateY(-4px);
  color: rgba(245,184,0,.5);
}
.file-upload-text {
  display: block;
  color: rgba(255,255,255,.5);
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: .25rem;
}
.file-upload-hint {
  display: block;
  color: rgba(255,255,255,.25);
  font-size: .72rem;
}
.file-upload-preview {
  display: flex;
  align-items: center;
  gap: .85rem;
  pointer-events: none;
}
.file-upload-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.file-preview-info {
  text-align: left;
  pointer-events: all;
}
.file-preview-name {
  display: block;
  color: rgba(255,255,255,.6);
  font-size: .82rem;
  margin-bottom: .4rem;
  word-break: break-all;
  line-height: 1.3;
}
.file-remove-btn {
  background: rgba(239,68,68,.08);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,.15);
  padding: .35rem .75rem;
  border-radius: 8px;
  font-size: .75rem;
  cursor: pointer;
  transition: all .2s;
  font-weight: 500;
}
.file-remove-btn:hover {
  background: rgba(239,68,68,.18);
  border-color: rgba(239,68,68,.3);
}

/* Position grid */
.position-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: .45rem;
}
.position-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .7rem .3rem;
  background: rgba(255,255,255,.02);
  border: 1.5px solid rgba(255,255,255,.05);
  border-radius: 12px;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  text-align: center;
}
.position-option input { display: none; }
.position-option:hover {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.position-option.active {
  background: rgba(245,184,0,.06);
  border-color: rgba(245,184,0,.4);
  box-shadow: 0 0 0 1px rgba(245,184,0,.2);
}
.position-icon { font-size: 1.3rem; }
.position-label {
  font-size: .68rem;
  color: rgba(255,255,255,.4);
  font-weight: 500;
}
.position-option.active .position-label {
  color: #f5b800;
  font-weight: 600;
}

/* Preview panel */
.studio-preview-panel {
  padding: 1.25rem;
  background: rgba(0,0,0,.15);
  border-top: 1px solid rgba(255,255,255,.04);
}
@media (min-width: 768px) {
  .studio-preview-panel {
    border-top: none;
    border-left: 1px solid rgba(255,255,255,.04);
  }
}
.preview-header {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  margin-bottom: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.preview-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  margin-bottom: .85rem;
}
.preview-base {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.preview-overlay {
  position: absolute;
  pointer-events: none;
  transition: all .3s ease;
}
.preview-text {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  font-weight: bold;
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
  white-space: nowrap;
  max-width: 80%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-image {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  height: 40%;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.6));
}
.preview-position-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,.6);
  font-size: .68rem;
  font-weight: 500;
  padding: .25rem .65rem;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Price breakdown */
.price-breakdown {
  background: rgba(255,255,255,.03);
  border-radius: 12px;
  padding: .85rem;
  border: 1px solid rgba(255,255,255,.04);
}
.breakdown-title {
  font-size: .7rem;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .5rem;
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  padding: .2rem 0;
}
.breakdown-divider {
  height: 1px;
  background: rgba(255,255,255,.06);
  margin: .45rem 0;
}
.breakdown-total {
  font-size: .9rem;
  font-weight: 700;
  color: #f5b800;
}
.breakdown-total span:last-child {
  font-size: 1rem;
}

/* ===== AI Design Generator ===== */
.ai-generate-section {
  margin-top: 1rem;
  padding-top: 1rem;
}
.ai-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1rem 0;
}
.ai-divider::before,
.ai-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.06);
}
.ai-divider span {
  font-size: .68rem;
  font-weight: 600;
  color: rgba(255,255,255,.25);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.ai-prompt-area {
  margin-bottom: .85rem;
}
.ai-generate-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .75rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5b800 0%, #e6a000 100%);
  color: #111;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.ai-generate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,184,0,.25);
}
.ai-generate-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}
.ai-btn-loading {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0,0,0,.15);
  border-top-color: #111;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.ai-result {
  margin-top: .85rem;
  animation: aiResultIn .35s cubic-bezier(.16,1,.3,1);
}
@keyframes aiResultIn {
  from { opacity: 0; transform: scale(.95); }
  to { opacity: 1; transform: scale(1); }
}
.ai-result-preview {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .6rem;
  background: rgba(255,255,255,.03);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.06);
}
.ai-result-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
}
.ai-error {
  margin-top: .5rem;
  padding: .55rem .8rem;
  font-size: .8rem;
  color: #ff6b6b;
  background: rgba(255,107,107,.06);
  border-radius: 10px;
  border: 1px solid rgba(255,107,107,.12);
}

/* ============================================================
   Accessibility & UX Improvements
   ============================================================ */

/* Skip to content link */
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 999;
  padding: .75rem 1.5rem; background: var(--color-primary);
  color: #000; font-weight: 700; border-radius: var(--radius);
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Star rating accessible */
.stars { letter-spacing: 2px; }
.stars[aria-label] { cursor: default; }

/* Hero section */
.hero {
  position: relative; padding: 3rem 0 2rem; text-align: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  border-radius: var(--radius-lg); margin-bottom: 2rem;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(29,185,84,.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(245,184,0,.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 900;
  line-height: 1.1; margin: 0 0 .75rem; color: #fff;
  position: relative;
}
.hero h1 span { color: var(--color-primary); }
.hero p {
  font-size: clamp(.95rem, 2vw, 1.15rem); color: var(--ink-700);
  max-width: 500px; margin: 0 auto 1.5rem; position: relative;
}
.hero-actions {
  display: flex; gap: .75rem; justify-content: center;
  flex-wrap: wrap; position: relative;
}

/* Trust strip */
.trust-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  padding: 1.5rem 0; margin-bottom: 2rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.trust-item {
  text-align: center; padding: .5rem;
}
.trust-item .icon { font-size: 1.5rem; margin-bottom: .35rem; }
.trust-item .label { font-size: .8rem; font-weight: 600; color: var(--ink-900); }
.trust-item .desc { font-size: .72rem; color: var(--ink-500); margin-top: .15rem; }

/* Checkout improvements */
.checkout-layout {
  display: grid; grid-template-columns: 1fr 380px; gap: 2rem;
  max-width: 900px; margin: 0 auto;
}
.checkout-section {
  background: var(--surface-elevated); border-radius: var(--radius);
  padding: 1.5rem; margin-bottom: 1.5rem;
}
.checkout-section h2 {
  font-size: 1rem; color: var(--ink-900); margin: 0 0 1rem;
  padding-bottom: .75rem; border-bottom: 1px solid var(--line);
}
.payment-option {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem; border: 2px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: border-color .15s, background .15s;
  margin-bottom: .5rem;
}
.payment-option:hover, .payment-option.selected {
  border-color: var(--color-primary); background: var(--surface-hover);
}
.payment-option input[type="radio"] {
  width: 18px; height: 18px; accent-color: var(--color-primary);
}
.payment-option .po-label { font-weight: 600; color: var(--ink-900); }
.payment-option .po-desc { font-size: .82rem; color: var(--ink-500); }

/* Order summary card */
.order-summary {
  background: var(--surface-elevated); border-radius: var(--radius);
  padding: 1.5rem; position: sticky; top: 90px;
}
.order-summary h2 {
  font-size: 1rem; color: var(--ink-900); margin: 0 0 1rem;
  padding-bottom: .75rem; border-bottom: 1px solid var(--line);
}
.order-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: .6rem 0; font-size: .9rem; color: var(--ink-700);
}
.order-total {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: .75rem; margin-top: .5rem;
  border-top: 1px solid var(--line); font-weight: 700; color: var(--ink-900);
  font-size: 1.1rem;
}

/* Form group for checkout */
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
}

/* Button loading state */
.btn.loading {
  position: relative; pointer-events: none; opacity: .8;
}
.btn.loading::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border: 2px solid transparent; border-top-color: currentColor;
  border-radius: 50%; animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Better mobile nav */
@media (max-width: 768px) {
  .hero { padding: 2rem 1rem 1.5rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: .9rem; }
  .trust-strip { gap: .5rem; padding: 1rem 0; }
  .trust-item .icon { font-size: 1.2rem; }
  .trust-item .label { font-size: .72rem; }
}

/* ============================================================
   Admin & Utility Classes
   ============================================================ */

/* Inline forms (for table actions) */
.form-inline { display: inline; }

/* Compact card title */
.card-title--compact { padding: 1rem 1.25rem .5rem; }

/* Checkbox group */
.checkbox-group {
  display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .3rem;
}

/* Image thumbnail */
.img-thumb {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line);
}

/* Text utilities */
.text-danger { color: var(--color-danger) !important; }
.text-success { color: var(--color-success) !important; }
.text-warning { color: var(--color-warning) !important; }

/* Gap utilities */
.gap-sm { gap: .5rem; }
.gap-1 { gap: 1rem; }

/* Flex utilities */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* Margin utilities */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }

/* Padding utilities */
.card-pad { padding: 1.25rem; }

/* ============================================================
   Social Auth (Google / Facebook)
   ============================================================ */
.social-auth {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1rem;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all .15s;
  border: 1px solid var(--line);
  min-height: 48px;
}
.social-google {
  background: #fff;
  color: #333;
  border-color: #dadce0;
}
.social-google:hover {
  background: #f7f8f8;
  border-color: #c6c6c6;
}
.social-facebook {
  background: #1877F2;
  color: #fff;
  border-color: #1877F2;
}
.social-facebook:hover {
  background: #166fe5;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1rem 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-divider span {
  font-size: .78rem;
  color: var(--ink-500);
  white-space: nowrap;
}
