* { box-sizing: border-box; margin: 0; padding: 0; }

/* Theme: black / yellow gaming e-commerce (cybeart.in layout language, Rare Wing colors)
   Black header & sections · yellow accents & CTAs · white product cards */
:root {
  --bg: #ffffff;
  --card: #ffffff;
  --ink: #121212;
  --muted: #555a63;
  --faint: #8a8f98;
  --accent: #eab308;         /* gold - borders & UI accents on white */
  --accent-strong: #ffd200;  /* bright yellow - dark backgrounds & CTAs */
  --accent-text: #a16207;    /* dark amber - readable accent text on white */
  --black: #0b0b0d;
  --danger: #dc2626;
  --ok: #16a34a;
  --border: #e4e5e9;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .07), 0 6px 18px rgba(0, 0, 0, .05);
  --shadow-lift: 0 6px 14px rgba(0, 0, 0, .1), 0 14px 34px rgba(0, 0, 0, .1);
  --font-display: "Oswald", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* motion language - one set of durations/easings for the whole store.
     Controls stay in the 140-220ms band; only full-section reveals go slower. */
  --dur-fast: 140ms;
  --dur: 180ms;
  --dur-slow: 220ms;
  --dur-reveal: 420ms;
  --ease-out: cubic-bezier(.22, .61, .36, 1);   /* enters + hovers */
  --ease-in: cubic-bezier(.55, .06, .68, .19);  /* exits */
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* a11y: respect reduced motion.
   Kills durations globally, then force-restores anything that uses motion to
   become visible - reveal targets must never be left stuck at opacity 0. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .js-reveal [data-reveal] { opacity: 1 !important; transform: none !important; }
  .confirm-check svg path { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
}

/* a11y: visible keyboard focus */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3, .brand, .page-title, .section-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}

html { scroll-behavior: smooth; }

/* ---------- announcement bar ---------- */
.announce-bar {
  background: var(--accent-strong);
  color: #111;
  font-weight: 600;
  text-align: center;
  font-size: .85rem;
  padding: 8px 16px;
  letter-spacing: .02em;
}

/* ---------- header ---------- */
.site-header {
  background: var(--black);
  border-bottom: 3px solid var(--accent-strong);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}
.brand {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: .3em;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.brand::before { content: none; }
.brand { gap: 12px; }
.brand-logo { height: 40px; width: auto; display: block; }
.footer-logo { height: 72px; width: auto; margin-bottom: 6px; }
.site-header nav { display: flex; gap: 24px; align-items: center; }
.site-header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity .15s;
}
.site-header nav a:hover { opacity: .8; }
.cart-badge {
  background: var(--accent-strong);
  color: #111;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  padding: 2px 8px;
  margin-left: 3px;
}

.container { max-width: 1120px; margin: 0 auto; padding: 26px 22px; width: 100%; flex: 1; }

/* ---------- hero (black banner, big red headline) ---------- */
.hero {
  background:
    radial-gradient(60% 120% at 85% 20%, rgba(255, 210, 0, .22) 0%, transparent 60%),
    radial-gradient(45% 90% at 10% 100%, rgba(255, 210, 0, .12) 0%, transparent 60%),
    var(--black);
  border-radius: 12px;
  padding: 52px 44px;
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -40px; top: -60px;
  width: 340px; height: 340px;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.045) 0 2px, transparent 2px 14px);
  transform: rotate(8deg);
  pointer-events: none;
}
.hero-kicker {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .18em;
  font-size: .85rem;
  margin-bottom: 8px;
}
.hero-kicker::first-letter { color: var(--accent-strong); }
.hero h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--accent-strong);
  text-transform: uppercase;
}
.hero-sub { margin-top: 14px; color: #d8d9de; max-width: 560px; font-size: 1.02rem; }
.hero-sub strong { color: #fff; }
.hero-actions {
  display: flex; align-items: center; gap: 22px;
  margin-top: 26px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.btn-hero {
  display: inline-block;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  padding: 13px 34px;
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .95rem;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(255, 255, 255, .25); }
.hero-link {
  color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem;
}
.hero-link:hover { color: var(--accent-strong); }
.hero-link span { color: var(--accent-strong); }

/* ---------- poster banner carousel ---------- */
.banner-carousel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 26px;
  background: var(--black);
  box-shadow: var(--shadow);
}
.banner-track {
  display: flex;
  transition: transform var(--dur-reveal) var(--ease-out);
}
.banner-slide {
  flex: 0 0 100%;
  display: block;
  line-height: 0;
}
.banner-slide img {
  width: 100%;
  aspect-ratio: 16 / 5.5;
  object-fit: cover;
  display: block;
}
.banner-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 1.7rem; line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background .15s;
}
.banner-nav:hover { background: var(--accent-strong); color: #111; }
.banner-prev { left: 12px; }
.banner-next { right: 12px; }
.banner-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 2;
}
.banner-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  padding: 0;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.banner-dot.active { background: var(--accent-strong); transform: scale(1.2); }
@media (max-width: 720px) {
  .banner-slide img { aspect-ratio: 16 / 8; }
  .banner-nav { width: 36px; height: 36px; font-size: 1.4rem; }
}

/* admin banner management */
.banner-row { display: flex; gap: 18px; align-items: flex-start; }
.banner-preview {
  width: 300px; max-width: 40%;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}
.banner-meta { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.banner-link-row { display: flex; gap: 8px; margin-top: 4px; }
.banner-row .design-actions { align-items: center; gap: 12px; }
@media (max-width: 720px) {
  .banner-row { flex-direction: column; }
  .banner-preview { width: 100%; max-width: 100%; }
}

/* ---------- how-it-works: black tiles with red slash ---------- */
.steps-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 44px;
}
.step {
  display: flex; align-items: center; gap: 14px;
  background: var(--black);
  border-radius: 10px;
  padding: 18px 18px;
  color: #fff;
}
.step-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(255, 210, 0, .15);
  color: var(--accent-strong);
}
.step div { display: flex; flex-direction: column; line-height: 1.35; }
.step strong {
  font-family: var(--font-display);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.step strong::before { content: "/ "; color: var(--accent-strong); }
.step .muted { font-size: .82rem; color: #a2a5ad; }

.page-title { font-size: 1.7rem; margin-bottom: 4px; }
.page-sub { color: var(--muted); margin-bottom: 24px; }
.section-title {
  font-size: 1.5rem;
  margin: 30px 0 18px;
  text-align: center;
}
.muted { color: var(--muted); font-size: .92rem; }

/* ---------- flashes ---------- */
.flashes { max-width: 1120px; margin: 14px auto 0; padding: 0 22px; width: 100%; }
.flash {
  padding: 11px 15px; border-radius: 8px; margin-bottom: 8px;
  font-size: .95rem; font-weight: 500;
  border: 1px solid;
}
.flash-ok { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.flash-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

/* ---------- design grid ---------- */
.design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}
.design-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.design-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.design-card.inactive { opacity: .6; }
.design-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f0f0f2;
  display: block;
  text-decoration: none;
  overflow: hidden;
}
.design-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}
.design-card:hover .design-img-wrap img { transform: scale(1.04); }
.hidden-tag {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0, 0, 0, .7); color: #fff;
  font-size: .75rem; padding: 2px 8px; border-radius: 999px;
}
.view-tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent-strong); color: #111;
  font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  padding: 4px 12px; border-radius: 999px;
  opacity: 0; transition: opacity .15s;
}
.design-img-wrap:hover .view-tag { opacity: 1; }
.design-title-link { color: var(--ink); text-decoration: none; }
.design-title-link:hover { color: var(--accent-text); }

.design-body { padding: 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.design-body h3 {
  font-size: 1.02rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.field-label {
  font-size: .72rem; color: var(--faint);
  font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
}

/* image gallery thumbnails (storefront) */
.thumb-strip { display: flex; gap: 7px; padding: 11px 16px 0; }
.thumb {
  width: 52px; height: 40px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: .65;
  transition: opacity .12s, border-color .12s;
}
.thumb:hover { opacity: 1; }
.thumb.active { border-color: var(--accent); opacity: 1; }

/* image gallery management (admin) */
.img-count-tag {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0, 0, 0, .65); color: #fff;
  font-size: .72rem; padding: 2px 8px; border-radius: 999px;
}
.admin-thumbs { display: flex; gap: 7px; padding: 11px 16px 0; flex-wrap: wrap; }
.admin-thumb { position: relative; }
.admin-thumb img {
  width: 52px; height: 40px;
  object-fit: cover; border-radius: 6px; display: block;
}
.thumb-delete {
  position: absolute; top: -6px; right: -6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: none;
  background: var(--danger); color: #fff;
  font-size: .65rem; font-weight: 700; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.add-img-form { display: flex; }
.add-img-btn {
  width: 52px; height: 40px;
  border: 2px dashed #c9cbd2;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--faint);
  cursor: pointer;
}
.add-img-btn:hover { border-color: var(--accent); color: var(--accent-text); }
.add-img-btn input { display: none; }

/* ---------- forms ---------- */
select, input[type="text"], input[type="number"], input[type="tel"],
input[type="email"], input[type="password"], textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid #d6d8de;
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color .12s, box-shadow .12s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(234, 179, 8, .28);
}

/* size rows with per-size quantity */
.size-options { display: flex; flex-direction: column; gap: 7px; }
.size-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 9px;
  border: 1.5px solid #e2e3e8;
  border-radius: 8px;
  font-size: .85rem;
  background: #fff;
  transition: border-color .12s, background .12s;
}
.size-row:hover { border-color: #b9bcc5; }
.size-row.has-qty { border-color: var(--accent); background: #fffbeb; }
.size-row-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.size-option-label { font-weight: 600; line-height: 1.2; }
.size-option-dim { color: var(--faint); font-size: .72rem; white-space: nowrap; }
.size-option-price {
  margin-left: auto; font-weight: 800; white-space: nowrap;
  color: var(--accent-text); font-size: .86rem;
}
.qty-compact { flex-shrink: 0; gap: 4px; }
.qty-compact .qty-btn { width: 26px; height: 26px; font-size: .95rem; border-radius: 6px; }
.qty-compact .qty-input { width: 40px; padding: 3px 2px; font-size: .85rem; }

.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qty-controls { display: flex; align-items: center; gap: 6px; }
.qty-btn {
  width: 34px; height: 34px;
  border: 1.5px solid #d6d8de;
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  transition: background .12s, border-color .12s;
}
.qty-btn:hover { background: #fffbeb; border-color: var(--accent); }
.qty-input { width: 64px; text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  border: 1.5px solid #d6d8de;
  background: #fff;
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background var(--dur-fast) var(--ease-out), transform 100ms var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.btn:hover { background: #f5f5f7; border-color: #b9bcc5; }
.btn:active { transform: scale(.98); }
.btn-primary {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #111;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .92rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
}
.btn-primary:hover { background: #ffe14d; border-color: #ffe14d; box-shadow: 0 5px 16px rgba(0, 0, 0, .16); }
.btn-danger { color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; }
.btn-ghost { background: transparent; }
.btn-lg { padding: 13px 28px; font-size: 1rem; }
.btn-sm { padding: 5px 11px; font-size: .85rem; border-radius: 7px; }
.btn-added {
  background: var(--ok) !important;
  border-color: var(--ok) !important;
  color: #fff !important;
}
button:disabled { opacity: .55; cursor: default; }

/* ---------- cart ---------- */
.cart-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px;
  box-shadow: var(--shadow);
}
.cart-item img { width: 76px; height: 57px; object-fit: cover; border-radius: 8px; background: #f0f0f2; }
.cart-item-info { flex: 1; display: flex; flex-direction: column; }
.cart-item-price { font-weight: 800; min-width: 90px; text-align: right; color: var(--accent-text); }
.remove-btn {
  border: none; background: none; color: var(--faint);
  font-size: 1rem; cursor: pointer; padding: 6px;
}
.remove-btn:hover { color: var(--danger); }
.cart-total { text-align: right; font-size: 1.25rem; margin-bottom: 12px; }

.order-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { grid-template-columns: 1fr 1.2fr 1.2fr; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 5px; }
.order-form .muted { margin-top: 10px; }

/* ---------- confirm ---------- */
.confirm-box {
  max-width: 560px; margin: 30px auto; text-align: center;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 30px; box-shadow: var(--shadow);
}
.confirm-check {
  width: 68px; height: 68px; margin: 0 auto 16px;
  background: var(--ok); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(22, 163, 74, .3);
}
.confirm-no { margin: 8px 0 4px; font-size: 1.05rem; }
.confirm-box .order-table { margin: 20px 0; }
.confirm-box .btn { margin-top: 8px; }

/* ---------- tables ---------- */
.order-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.order-table th, .order-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.order-table th { color: var(--faint); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.order-table tfoot td { border-bottom: none; }
.order-table td:last-child, .order-table th:last-child { text-align: right; }

/* ---------- empty / login ---------- */
.empty-state {
  text-align: center; color: var(--muted);
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 20px; box-shadow: var(--shadow);
}
.empty-state .btn { margin-top: 14px; }
.login-box {
  max-width: 380px; margin: 60px auto;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px; box-shadow: var(--shadow);
}
.login-box h1 { margin-bottom: 16px; font-size: 1.4rem; }

/* ---------- admin ---------- */
.admin-header { display: flex; align-items: center; justify-content: space-between; }
.admin-tabs {
  display: flex; gap: 4px; margin: 16px 0 24px;
  border-bottom: 2px solid var(--border);
}
.admin-tabs a {
  padding: 10px 18px; text-decoration: none; color: var(--muted);
  font-weight: 700; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.admin-tabs a.active { color: var(--accent-text); border-bottom-color: var(--accent); }
.admin-tabs a:hover { color: var(--accent-text); }

.panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 22px;
}
.panel .section-title { margin-top: 0; text-align: left; font-size: 1.15rem; }
.panel.narrow { max-width: 520px; }
.panel hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

.upload-form .form-row { align-items: end; }

.status-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  padding: 7px 15px; border-radius: 999px; text-decoration: none;
  background: #fff; color: var(--ink); font-size: .9rem; font-weight: 600;
  border: 1.5px solid #d6d8de;
  transition: border-color .12s;
}
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--accent-strong); border-color: var(--accent-strong); color: #111; }

.order-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden;
}
.order-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; background: #f8f8fa;
  border-bottom: 1px solid var(--border);
}
.order-card-body { padding: 15px 18px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; }
.order-customer p { margin-bottom: 4px; }
.order-notes {
  background: #fefce8; border: 1px solid #fde68a;
  color: #854d0e;
  border-radius: 8px; padding: 6px 10px; font-size: .9rem; margin-top: 6px;
}

.status-select { width: auto; font-weight: 700; }
.status-new { border-color: var(--accent); color: var(--accent-text); }
.status-confirmed { border-color: #9333ea; color: #9333ea; }
.status-in-production { border-color: #d97706; color: #b45309; }
.status-dispatched { border-color: #0891b2; color: #0e7490; }
.status-delivered { border-color: var(--ok); color: #15803d; }
.status-cancelled { border-color: var(--danger); color: var(--danger); }

.inline-form { display: inline; }
.rename-form { display: flex; gap: 6px; }
.design-actions { display: flex; gap: 8px; margin-top: 4px; }

.sizes-table { width: 100%; border-collapse: collapse; }
.sizes-table th, .sizes-table td { padding: 9px 8px; text-align: left; border-bottom: 1px solid var(--border); }
.sizes-table th { color: var(--faint); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.sizes-table .price-input { max-width: 110px; }
.actions-cell { white-space: nowrap; }
.actions-cell .btn { margin-right: 4px; }
.row-inactive td { opacity: .5; }
.size-add-form { grid-template-columns: 2fr 1.5fr 1fr auto; align-items: end; gap: 12px; display: grid; }

/* ---------- design detail page ---------- */
.back-link { display: inline-block; margin-bottom: 14px; color: var(--muted); text-decoration: none; font-weight: 700; }
.back-link:hover { color: var(--accent-text); }

.detail-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 26px;
  align-items: start;
}
.detail-gallery { position: sticky; top: 92px; }
.detail-main-wrap {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.detail-main-img { width: 100%; display: block; max-height: 70vh; object-fit: contain; background: #f0f0f2; }
.zoom-hint {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0, 0, 0, .75); color: #fff;
  font-size: .8rem; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
  pointer-events: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.detail-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.detail-thumb {
  width: 78px; height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: .65;
  transition: opacity .12s, border-color .12s;
}
.detail-thumb:hover { opacity: 1; }
.detail-thumb.active { border-color: var(--accent); opacity: 1; }

.detail-order {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 13px;
}
.detail-order h1 { font-size: 1.45rem; }

/* ---------- contact / whatsapp ---------- */
.footer-contact {
  display: inline-flex; align-items: center; gap: 7px;
  color: #b9bcc5; text-decoration: none; font-size: .93rem;
  font-weight: 600;
}
.footer-contact:hover { color: #fff; }

.wa-fab {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .45);
  z-index: 50;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 26px rgba(37, 211, 102, .6);
}
@media (max-width: 720px) {
  .wa-fab { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}

/* ---------- shiprocket checkout ---------- */
.srck-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
  margin-bottom: 4px;
}
.srck-box .muted { margin-top: 8px; }
.srck-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--faint); font-size: .85rem;
  margin-top: 16px;
}
.srck-divider::before, .srck-divider::after {
  content: ""; flex: 1; border-top: 1px solid var(--border);
}

/* ---------- payments ---------- */
.pay-amount {
  font-family: var(--font-display);
  font-size: 2.1rem;
  margin: 10px 0 4px;
  color: var(--accent-text);
}
.pay-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
}
.pay-badge-paid { background: #ecfdf5; color: #15803d; border: 1px solid #a7f3d0; }
.pay-badge-unpaid { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.confirm-box .pay-badge-paid { margin-bottom: 8px; font-size: .95rem; padding: 6px 16px; }
.pay-later-link { text-decoration: underline; }
#pay-btn { min-width: 220px; margin-top: 10px; }

/* ---------- policy pages ---------- */
.policy-page { max-width: 760px; margin: 0 auto; }
.policy-body { line-height: 1.7; }
.policy-body p, .policy-body ul { margin-bottom: 12px; }
.policy-body ul { padding-left: 20px; }
.policy-body li { margin-bottom: 8px; }

/* ---------- footer (black) ---------- */
.site-footer {
  color: #b9bcc5;
  margin-top: auto;
  background: var(--black);
}
.footer-grid {
  max-width: 1120px; margin: 0 auto;
  padding: 40px 22px 26px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr 1.1fr;
  gap: 28px;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-brand {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.15rem;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.footer-head {
  font-weight: 700; color: #fff; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .12em;
}
.footer-head::before { content: "/ "; color: var(--accent-strong); }
.footer-col a { color: #b9bcc5; text-decoration: none; font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.footer-col .muted { color: #8a8f98; }
.footer-list { list-style: none; font-size: .93rem; display: flex; flex-direction: column; gap: 5px; }
.footer-list li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  text-align: center;
  padding: 14px 20px;
  color: #8a8f98;
  font-size: .9rem;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .94);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 94vw; max-height: 94vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; color: #fff;
  font-size: 1.6rem; cursor: pointer; z-index: 101;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, .14); border: none; color: #fff;
  font-size: 2.2rem; line-height: 1;
  width: 54px; height: 54px; border-radius: 50%;
  cursor: pointer; z-index: 101;
  transition: background .15s;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, .3); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .form-row, .size-add-form { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-gallery { position: static; }
  .order-card-body { grid-template-columns: 1fr; }
  .container { padding: 18px 14px; }
  .cart-item { flex-wrap: wrap; }
  .hero { padding: 34px 24px; }
  .steps-strip { grid-template-columns: 1fr; gap: 10px; margin-bottom: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .brand { letter-spacing: .2em; font-size: 1.2rem; }
}

/* =========================================================
   MOTION
   Added as a follow-up polish pass. Rules:
   - transform + opacity only, never layout properties
   - one easing/duration language (see :root motion tokens)
   - every automatic motion has a reduced-motion fallback
   ========================================================= */

/* ---------- entry reveal ----------
   Only active when JS is on (html.js-reveal), so content is never
   left invisible if the script fails to run. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}
.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-reveal) var(--ease-out),
              transform var(--dur-reveal) var(--ease-out);
}
/* Stagger is capped at 6 steps - long staggered grids read as slow. */
.js-reveal [data-reveal].is-visible { transition-delay: calc(var(--reveal-i, 0) * 55ms); }

/* ---------- flash messages ----------
   These are the "order placed" / "added to cart" moments, so they
   get the one piece of motion that is allowed to draw the eye. */
@keyframes flash-in {
  from { opacity: 0; transform: translateY(-8px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.flash {
  animation: flash-in var(--dur-slow) var(--ease-out) both;
}
.flashes .flash:nth-child(2) { animation-delay: 60ms; }
.flashes .flash:nth-child(3) { animation-delay: 120ms; }

/* ---------- cart badge bump ----------
   Fires only when the count goes up, so it confirms the add
   instead of twitching on every render. */
@keyframes badge-bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.32); }
  100% { transform: scale(1); }
}
.cart-badge {
  display: inline-block;
  transition: background var(--dur-fast) var(--ease-out);
}
.cart-badge.is-bumped {
  animation: badge-bump var(--dur-slow) var(--ease-out);
}

/* ---------- cart row exit ----------
   Removing an item animates out before the list re-renders, so the
   row that leaves is the row the user clicked. */
.cart-item {
  transition: opacity var(--dur) var(--ease-in),
              transform var(--dur) var(--ease-in);
}
.cart-item.is-removing {
  opacity: 0;
  transform: translateX(-14px);
  pointer-events: none;
}

/* ---------- price change ----------
   Qty +/- updates the number in place; a brief tint confirms which
   value changed without moving anything. */
@keyframes price-pulse {
  0%   { color: var(--accent-text); }
  35%  { color: var(--ok); }
  100% { color: var(--accent-text); }
}
.cart-item-price.is-changed { animation: price-pulse 480ms var(--ease-out); }
@keyframes total-bump {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.07); }
  100% { transform: scale(1); }
}
.cart-total strong { display: inline-block; }
.cart-total.is-changed strong { animation: total-bump var(--dur-slow) var(--ease-out); }

/* ---------- confirm page ----------
   The payoff moment: the circle scales in, then the tick draws. */
@keyframes confirm-pop {
  0%   { opacity: 0; transform: scale(.6); }
  60%  { transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes tick-draw {
  to { stroke-dashoffset: 0; }
}
.confirm-check {
  animation: confirm-pop 380ms var(--ease-out) both;
}
.confirm-check svg path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: tick-draw 340ms var(--ease-out) 260ms forwards;
}
.confirm-box > :not(.confirm-check) {
  animation: flash-in var(--dur-reveal) var(--ease-out) 180ms both;
}
