/* ============================================
   FOOTWEARVILLE — DESIGN SYSTEM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg:           #FFF8F2;
  --surface:      #FFFFFF;
  --primary:      #1F1147;
  --accent:       #FF5A5F;
  --accent-dark:  #E04147;
  --muted:        #5A5570;
  --border:       #ECE6F0;
  --error:        #C0392B;
  --success:      #27AE60;

  --skeleton-base:    #EFEFED;
  --skeleton-shine:   #F8F8F6;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --text-xs:   0.8125rem;
  --text-sm:   0.9375rem;
  --text-base: 1.0625rem;
  --text-md:   1.1875rem;
  --text-lg:   1.5rem;
  --text-xl:   1.9375rem;
  --text-2xl:  2.5rem;
  --text-3xl:  3.375rem;

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

  --transition: 200ms ease;
  --transition-slow: 400ms ease;

  --max-width: 1200px;
  --nav-height: 64px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: rgba(255,90,95,0.35); color: var(--primary); }
::-moz-selection { background: rgba(255,90,95,0.35); color: var(--primary); }

button, a, input, select, textarea, [role="button"] {
  -webkit-tap-highlight-color: transparent;
}
button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible) { outline: none; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--primary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font-body); font-size: var(--text-base); }

.display-xl { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.display-lg { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.display-md { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500; line-height: 1.3; }
.display-sm { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; line-height: 1.35; }

.body-lg   { font-size: var(--text-md);   line-height: 1.65; }
.body-base { font-size: var(--text-base); line-height: 1.6;  }
.body-sm   { font-size: var(--text-sm);   line-height: 1.55; }
.body-xs   { font-size: var(--text-xs);   line-height: 1.5;  }

.text-muted   { color: var(--muted); }
.text-accent  { color: var(--accent); }
.text-center  { text-align: center; }
.font-medium  { font-weight: 500; }
.font-semi    { font-weight: 600; }

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-5); }
.section { padding: var(--space-12) 0; }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-gap-2  { gap: var(--space-2); }
.flex-gap-3  { gap: var(--space-3); }
.flex-gap-4  { gap: var(--space-4); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary { background: var(--primary); color: var(--surface); }
.btn-primary:hover { background: #2D2D2D; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: var(--surface); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--surface); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--primary); background: var(--border); }
.btn-danger { background: var(--error); color: var(--surface); }
.btn-danger:hover { background: #962419; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-sm { padding: 0.5rem var(--space-4); font-size: var(--text-xs); }
.btn-lg { padding: 1rem var(--space-8); font-size: var(--text-base); }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.form-label { font-size: var(--text-sm); font-weight: 500; color: var(--primary); }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem var(--space-4);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  color: var(--primary);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,90,95,.15);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }

.form-select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%231A1A1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='1,1.5 6,6.5 11,1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: 2.5rem;
  cursor: pointer;
  font-weight: 500;
}

.form-textarea { resize: vertical; min-height: 120px; }
.form-error { font-size: var(--text-xs); color: var(--error); }
.form-hint { font-size: var(--text-xs); color: var(--muted); }

/* ============================================
   CUSTOM SELECT (replaces native form-select via JS)
   ============================================ */
.cs { position: relative; width: 100%; }
.cs__native { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.cs__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem var(--space-4);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  text-align: left;
  gap: var(--space-3);
}
.cs__trigger:hover { border-color: var(--accent); }
.cs.is-open .cs__trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,90,95,.15);
}
.cs__label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs__caret { width: 12px; height: 8px; flex-shrink: 0; color: var(--muted); transition: transform var(--transition); }
.cs.is-open .cs__caret { transform: rotate(180deg); color: var(--accent); }
.cs__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  max-height: 280px;
  overflow-y: auto;
}
.cs.is-open .cs__menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cs__item {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--primary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.cs__item:hover { background: #FFF0F0; color: var(--accent-dark); }
.cs__item.is-active { background: rgba(255,90,95,0.12); color: var(--accent-dark); font-weight: 600; }

.card { background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-body { padding: var(--space-5); }

.product-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card__image-wrap { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--skeleton-base); }
.product-card__image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.product-card:hover .product-card__image-wrap img { transform: scale(1.04); }
.product-card__info { padding: var(--space-4); }
.product-card__name { font-size: var(--text-sm); font-weight: 500; color: var(--primary); margin-bottom: var(--space-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card__price { font-size: var(--text-sm); color: var(--accent); font-weight: 600; }
.product-card__category { font-size: var(--text-xs); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-2); }

@keyframes skeleton-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton { background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-shine) 50%, var(--skeleton-base) 75%); background-size: 800px 100%; animation: skeleton-shimmer 1.4s ease-in-out infinite; border-radius: var(--radius-sm); }
.skeleton-card { background: var(--surface); border-radius: var(--radius-md); overflow: hidden; }
.skeleton-image { aspect-ratio: 3 / 4; width: 100%; }
.skeleton-line { height: 14px; margin: var(--space-4) var(--space-4) var(--space-2); }
.skeleton-line-short { height: 12px; width: 50%; margin: 0 var(--space-4) var(--space-4); }

.badge { display: inline-flex; align-items: center; padding: 0.2rem 0.6rem; border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.03em; }
.badge-success  { background: #EAF7EF; color: var(--success); }
.badge-error    { background: #FDECEA; color: var(--error); }
.badge-warning  { background: #FEF9EC; color: #D4850A; }
.badge-neutral  { background: var(--border); color: var(--muted); }
.badge-accent   { background: #FFECEC; color: var(--accent-dark); }

.divider { width: 100%; height: 1px; background: var(--border); margin: var(--space-6) 0; }
.divider-accent { width: 40px; height: 2px; background: var(--accent); margin: var(--space-3) 0 var(--space-5); }

#toast-container { position: fixed; bottom: var(--space-6); left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: var(--space-3); pointer-events: none; width: calc(100% - var(--space-8)); max-width: 400px; }
.toast { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-5); background: var(--primary); color: var(--surface); border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: 500; box-shadow: var(--shadow-lg); pointer-events: all; animation: toast-in 300ms ease forwards; }
.toast.toast-success { background: var(--success); }
.toast.toast-error   { background: var(--error); }
.toast.toast-warning { background: #D4850A; }
.toast.toast-out { animation: toast-out 300ms ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(12px); } }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000;
  display: flex; align-items: flex-end; justify-content: center; padding: 0;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--surface); border-radius: var(--radius-lg) var(--radius-lg) 0 0; width: 100%; max-height: 90vh; overflow-y: auto; padding: var(--space-6) var(--space-5) var(--space-8); transform: translateY(100%); transition: transform var(--transition-slow); }
.modal-overlay.open .modal { transform: translateY(0); }
.modal-handle { width: 40px; height: 4px; background: var(--border); border-radius: var(--radius-full); margin: 0 auto var(--space-5); }
.modal-title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-5); }

/* Confirm dialog */
.confirm-dialog { text-align: center; padding: var(--space-4) var(--space-2) var(--space-2); }
.confirm-dialog__icon { width: 56px; height: 56px; border-radius: 50%; background: #FDECEA; color: var(--error); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-4); }
.confirm-dialog__title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-2); }
.confirm-dialog__desc { color: var(--muted); font-size: var(--text-sm); margin-bottom: var(--space-6); }
.confirm-dialog__actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

.nav { position: sticky; top: 0; z-index: 100; background: var(--surface); height: var(--nav-height); border-bottom: 1px solid var(--border); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); }
.nav__logo { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; letter-spacing: 0.02em; color: var(--primary); }
.nav__logo span { color: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: var(--space-2); }
.nav__icon-btn { width: 40px; height: 40px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; color: var(--primary); transition: background var(--transition); position: relative; }
.nav__icon-btn:hover { background: var(--border); }
.nav__cart-count { position: absolute; top: 4px; right: 4px; width: 16px; height: 16px; background: var(--accent); color: var(--surface); border-radius: var(--radius-full); font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; line-height: 1; }

.nav__links {
  display: none; list-style: none; margin: 0; padding: 0; gap: var(--space-6);
  margin-left: auto; margin-right: var(--space-4);
}
.nav__link { font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.02em; color: var(--primary); text-decoration: none; padding: var(--space-2) 0; position: relative; transition: color 0.2s ease; }
.nav__link:hover { color: var(--accent); }
.nav__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.nav__link:hover::after { transform: scaleX(1); }
.nav__menu-btn { display: inline-flex; }
.nav__mobile-links { list-style: none; margin: 0; padding: var(--space-4) var(--space-6); display: none; flex-direction: column; gap: var(--space-3); background: var(--surface); border-top: 1px solid rgba(0,0,0,0.06); }
.nav__mobile-links.is-open { display: flex; }
.nav__mobile-links a { text-decoration: none; font-weight: 500; color: var(--primary); padding: var(--space-2) 0; font-size: var(--text-base); }
@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__menu-btn { display: none; }
  .nav__mobile-links { display: none !important; }
}

.footer { background: var(--primary); color: rgba(255,255,255,0.75); padding: var(--space-12) 0 var(--space-8); }
.footer__logo { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; color: var(--surface); margin-bottom: var(--space-3); }
.footer__logo span { color: var(--accent); }
.footer__tagline { font-size: var(--text-sm); color: rgba(255,255,255,0.5); margin-bottom: var(--space-8); }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); margin-bottom: var(--space-10); }
.footer__heading { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--surface); margin-bottom: var(--space-4); }
.footer__links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__links a { font-size: var(--text-sm); color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer__links a:hover { color: var(--surface); }
.footer__bottom { padding-top: var(--space-6); border-top: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); }
.footer__copy { font-size: var(--text-xs); color: rgba(255,255,255,0.35); }
.footer__madeby { font-size: var(--text-xs); color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer__madeby a { color: var(--accent); font-weight: 500; }
.footer__madeby a:hover { color: var(--surface); }

.icon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }
.mt-2 { margin-top: var(--space-2); } .mt-4 { margin-top: var(--space-4); } .mt-6 { margin-top: var(--space-6); } .mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); } .mb-4 { margin-bottom: var(--space-4); } .mb-6 { margin-bottom: var(--space-6); }

/* ============================================
   FLOATING WHATSAPP
   ============================================ */
#wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 950;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0,0,0,0.15);
  transition: transform .25s ease, box-shadow .25s ease;
}
#wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 32px rgba(37,211,102,0.55), 0 6px 16px rgba(0,0,0,0.18); }
#wa-float:active { transform: translateY(-1px) scale(1.02); }
#wa-float svg { width: 28px; height: 28px; }
@media (max-width: 640px) {
  #wa-float { bottom: 18px; right: 18px; width: 52px; height: 52px; }
  #wa-float svg { width: 26px; height: 26px; }
}

@media (min-width: 640px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  :root { --nav-height: 72px; }
  .container { padding: 0 var(--space-8); }
  .display-xl { font-size: clamp(var(--text-3xl), 5vw, 4rem); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: repeat(4, 1fr); }
  .modal { border-radius: var(--radius-lg); max-width: 500px; align-self: center; }
  .modal-overlay { align-items: center; }
}
@media (min-width: 1024px) { .section { padding: var(--space-20) 0; } }
@media (max-width: 767px) {
  .footer__bottom { flex-direction: column; align-items: center; text-align: center; gap: var(--space-2); }
  .footer__madeby { width: 100%; text-align: center; padding-bottom: var(--space-12); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Refund policy note in footer */
.footer__refund {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--space-6);
  line-height: 1.6;
  max-width: 640px;
}
.footer__refund a { color: var(--accent); font-weight: 500; }
.footer__refund a:hover { color: var(--surface); }

/* ============================================
   CUSTOM CHECKBOX (shared)
   ============================================ */
.check {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .12s ease;
  position: relative;
}
.check:hover { border-color: var(--accent); }
.check:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 30%, transparent); }
.check:checked {
  background-color: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 8.5 7 12.5 13 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70% 70%;
}
.check:active { transform: scale(0.94); }
.check:disabled { opacity: .5; cursor: not-allowed; }

/* Force any plain checkbox inside box-option / toggle-row to use the custom style */
.box-option input[type="checkbox"],
.toggle-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .12s ease;
  position: relative;
  margin: 0;
}
.box-option input[type="checkbox"]:hover,
.toggle-row input[type="checkbox"]:hover { border-color: var(--accent); }
.box-option input[type="checkbox"]:checked,
.toggle-row input[type="checkbox"]:checked {
  background-color: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 8.5 7 12.5 13 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70% 70%;
}
.box-option input[type="checkbox"]:focus-visible,
.toggle-row input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 30%, transparent);
}

/* ============================================
   EMAIL SIGNUP (home)
   ============================================ */
.newsletter {
  padding: var(--space-16) 0;
  background: linear-gradient(135deg, var(--primary) 0%, color-mix(in oklab, var(--primary) 75%, var(--accent)) 100%);
  color: var(--surface);
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, color-mix(in oklab, var(--accent) 35%, transparent) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, color-mix(in oklab, var(--accent) 25%, transparent) 0%, transparent 45%);
  pointer-events: none;
}
.newsletter__inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--space-4);
}
.newsletter .eyebrow { color: var(--accent); }
.newsletter__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  margin: var(--space-3) 0 var(--space-4);
  color: var(--surface);
}
.newsletter__desc {
  color: color-mix(in oklab, var(--surface) 85%, transparent);
  margin-bottom: var(--space-8);
  font-size: var(--text-base);
  line-height: 1.6;
}
.newsletter__form {
  display: flex;
  gap: var(--space-2);
  background: var(--surface);
  padding: 6px;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  max-width: 480px;
  margin: 0 auto;
}
.newsletter__input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0 var(--space-5);
  font-size: var(--text-base);
  color: var(--primary);
  outline: none;
  min-width: 0;
  font-family: inherit;
}
.newsletter__input::placeholder { color: var(--muted); }
.newsletter__btn {
  border: 0;
  background: var(--accent);
  color: var(--surface);
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  cursor: pointer;
  font-size: var(--text-sm);
  letter-spacing: .02em;
  transition: background .18s ease, transform .12s ease;
  white-space: nowrap;
  font-family: inherit;
}
.newsletter__btn:hover:not(:disabled) { background: color-mix(in oklab, var(--accent) 85%, #000); }
.newsletter__btn:active:not(:disabled) { transform: scale(0.97); }
.newsletter__btn:disabled { opacity: .6; cursor: not-allowed; }
.newsletter__note {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: color-mix(in oklab, var(--surface) 70%, transparent);
}
@media (max-width: 540px) {
  .newsletter__form { flex-direction: column; border-radius: var(--radius-md); padding: var(--space-3); }
  .newsletter__input { padding: var(--space-3); text-align: center; }
  .newsletter__btn { width: 100%; }
}

/* ============================================
   AUTH MODAL + ACCOUNT DROPDOWN (added v1.1)
   ============================================ */

.nav__icon-btn { position: relative; }
.nav__account-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2px var(--surface);
}

.auth-overlay {
  position: fixed; inset: 0; background: rgba(20, 16, 40, 0.55);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: var(--space-4);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.auth-overlay.is-open { display: flex; animation: fade-in .18s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.auth-modal {
  position: relative; width: 100%; max-width: 420px;
  background: var(--surface); border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6) var(--space-6);
  box-shadow: 0 24px 60px rgba(20, 16, 40, 0.18);
  animation: pop-in .22s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes pop-in { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

.auth-modal__close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: 0; font-size: 28px; line-height: 1;
  color: var(--muted); cursor: pointer; padding: 4px 10px;
  border-radius: var(--radius-sm);
}
.auth-modal__close:hover { color: var(--primary); background: var(--bg); }

.auth-modal__brand {
  font-family: var(--font-display); font-weight: 700;
  color: var(--primary); font-size: 1.1rem; letter-spacing: .3px;
  text-align: center; margin-bottom: var(--space-4);
}
.auth-modal__title {
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--primary); margin: 0 0 var(--space-2); text-align: center;
}
.auth-modal__sub {
  color: var(--muted); text-align: center; margin: 0 0 var(--space-6);
  font-size: var(--text-sm);
}

.auth-form { display: flex; flex-direction: column; gap: var(--space-3); }
.auth-label { font-size: var(--text-xs); color: var(--muted); font-weight: 500; }
.auth-input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-md); font: inherit; font-size: var(--text-base);
  background: var(--surface); color: var(--primary);
  transition: border-color .15s, box-shadow .15s;
}
.auth-input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.15);
}
.auth-input--code {
  letter-spacing: 14px; text-align: center;
  font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 1.5rem; font-weight: 600;
}
.auth-btn {
  margin-top: var(--space-2); padding: 13px;
  background: var(--accent); color: #fff; border: 0;
  border-radius: var(--radius-md); font-weight: 600; font-size: var(--text-sm);
  cursor: pointer; transition: background .15s;
}
.auth-btn:hover:not(:disabled) { background: var(--accent-dark); }
.auth-btn:disabled { opacity: .6; cursor: not-allowed; }

.auth-row { display: flex; justify-content: space-between; margin-top: var(--space-1); }
.auth-link {
  background: none; border: 0; padding: 4px 0;
  color: var(--muted); font-size: var(--text-xs); cursor: pointer;
  text-decoration: underline;
}
.auth-link:hover { color: var(--primary); }
.auth-error {
  margin: 0; padding: 10px 12px; background: #fff1f1; color: var(--error);
  border: 1px solid #ffd5d5; border-radius: var(--radius-md);
  font-size: var(--text-xs);
}
.auth-footer {
  margin: var(--space-6) 0 0; text-align: center;
  color: var(--muted); font-size: 11px;
}

/* Account dropdown */
.account-menu {
  position: fixed; min-width: 220px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(20, 16, 40, 0.12);
  padding: 6px; z-index: 999; opacity: 0; transform: translateY(-4px);
  transition: opacity .15s, transform .15s;
}
.account-menu.is-open { opacity: 1; transform: none; }
.account-menu__email {
  padding: 10px 12px 8px; font-size: var(--text-xs); color: var(--muted);
  border-bottom: 1px solid var(--border); margin-bottom: 4px;
  word-break: break-all;
}
.account-menu__item {
  display: block; width: 100%; text-align: left;
  padding: 10px 12px; font-size: var(--text-sm);
  color: var(--primary); text-decoration: none;
  background: none; border: 0; border-radius: var(--radius-sm);
  cursor: pointer; font: inherit;
}
.account-menu__item:hover { background: var(--bg); }
.account-menu__item--danger { color: var(--error); }
.account-menu__item--danger:hover { background: #fff1f1; }

/* ============================================
   ACCOUNT PAGE
   ============================================ */

.account-shell { padding: var(--space-10) 0 var(--space-16); }
.account-shell__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-6); flex-wrap: wrap; gap: var(--space-4);
}
.account-shell__header h1 {
  font-family: var(--font-display); margin: 0;
  color: var(--primary); font-size: var(--text-2xl);
}
.account-shell__email { color: var(--muted); font-size: var(--text-sm); }

.account-tabs {
  display: flex; gap: 4px; border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-6); overflow-x: auto;
}
.account-tab {
  padding: 12px 18px; background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--muted); font-weight: 500; cursor: pointer; font: inherit;
  white-space: nowrap;
}
.account-tab.is-active { color: var(--primary); border-bottom-color: var(--accent); }

.account-panel { display: none; }
.account-panel.is-active { display: block; }

.acc-empty {
  padding: var(--space-10) var(--space-6); text-align: center;
  border: 1px dashed var(--border); border-radius: var(--radius-lg);
  color: var(--muted);
}
.acc-empty h3 {
  font-family: var(--font-display); color: var(--primary);
  margin: 0 0 var(--space-2);
}

.order-card, .stock-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-5);
  margin-bottom: var(--space-4);
}
.order-card__head, .stock-card__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: var(--space-4); margin-bottom: var(--space-4); flex-wrap: wrap;
}
.order-card__id, .stock-card__id {
  font-weight: 700; color: var(--primary); font-size: var(--text-base);
}
.order-card__date, .stock-card__meta {
  color: var(--muted); font-size: var(--text-xs); margin-top: 2px;
}
.order-status {
  display: inline-block; padding: 4px 10px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px;
}
.order-status--pending { background: #FFF4E0; color: #C58A00; }
.order-status--confirmed, .order-status--paid { background: #E6F8EE; color: var(--success); }
.order-status--shipped { background: #E5EEFD; color: #1B5BC6; }
.order-status--delivered { background: #E6F8EE; color: var(--success); }
.order-status--cancelled, .order-status--expired { background: #fff1f1; color: var(--error); }
.order-status--active { background: #FFEEEE; color: var(--accent-dark); }
.order-status--release_requested { background: #E5EEFD; color: #1B5BC6; }

.order-items { display: flex; flex-direction: column; gap: var(--space-3); }
.order-item {
  display: flex; gap: var(--space-3); align-items: center;
  padding: var(--space-2) 0; border-top: 1px solid var(--border);
}
.order-item:first-child { border-top: 0; padding-top: 0; }
.order-item__img {
  width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm);
  background: var(--skeleton-base);
}
.order-item__info { flex: 1; min-width: 0; }
.order-item__name { font-weight: 600; color: var(--primary); margin: 0; font-size: var(--text-sm); }
.order-item__meta { color: var(--muted); font-size: var(--text-xs); margin: 2px 0 0; }
.order-item__price { font-weight: 600; color: var(--primary); white-space: nowrap; }

.order-card__totals {
  margin-top: var(--space-4); padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.order-card__totals .total { font-weight: 700; color: var(--primary); font-size: var(--text-md); }

.stock-card__progress {
  margin: var(--space-3) 0;
  height: 6px; background: var(--border); border-radius: var(--radius-full); overflow: hidden;
}
.stock-card__progress-bar { height: 100%; background: var(--accent); transition: width .3s; }
.stock-card__countdown { color: var(--muted); font-size: var(--text-xs); }
.stock-card__actions { display: flex; gap: var(--space-2); margin-top: var(--space-4); flex-wrap: wrap; }

.profile-form { max-width: 520px; }
.profile-form .form-group { margin-bottom: var(--space-4); }
.profile-form .form-label { display: block; margin-bottom: 6px; font-size: var(--text-xs); color: var(--muted); font-weight: 500; }
.profile-form .form-input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-md); font: inherit; font-size: var(--text-sm);
  background: var(--surface); color: var(--primary);
}
.profile-form .form-input:disabled { background: var(--bg); color: var(--muted); }

/* ============================================
   CHECKOUT — DELIVERY OPTION (stockpile / immediate)
   ============================================ */

.delivery-options {
  display: grid; gap: var(--space-3); margin: var(--space-3) 0 var(--space-6);
}
@media (min-width: 640px) { .delivery-options { grid-template-columns: 1fr 1fr; } }

.delivery-option {
  position: relative; display: block;
  border: 2px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5); cursor: pointer;
  transition: border-color .15s, background .15s;
  background: var(--surface);
}
.delivery-option:hover { border-color: var(--accent); }
.delivery-option input[type="radio"] {
  position: absolute; opacity: 0; pointer-events: none;
}
.delivery-option--active { border-color: var(--accent); background: #FFF9F9; }
.delivery-option__head { display: flex; align-items: center; gap: 10px; }
.delivery-option__title {
  font-weight: 600; color: var(--primary); font-size: var(--text-sm); margin: 0;
}
.delivery-option__desc { color: var(--muted); font-size: var(--text-xs); margin: 6px 0 0; line-height: 1.5; }

.info-icon-btn {
  background: none; border: 0; padding: 0; margin-left: auto;
  cursor: pointer; color: var(--muted); display: inline-flex;
}
.info-icon-btn:hover { color: var(--accent); }

.info-popup {
  position: fixed; inset: 0; background: rgba(20, 16, 40, 0.55);
  display: none; align-items: center; justify-content: center;
  z-index: 1001; padding: var(--space-4); backdrop-filter: blur(4px);
}
.info-popup.is-open { display: flex; }
.info-popup__card {
  background: var(--surface); border-radius: var(--radius-lg);
  max-width: 460px; width: 100%; padding: var(--space-6);
  box-shadow: 0 24px 60px rgba(20, 16, 40, 0.18);
}
.info-popup__card h3 { font-family: var(--font-display); color: var(--primary); margin: 0 0 var(--space-3); }
.info-popup__card p { color: var(--muted); line-height: 1.6; margin: 0 0 var(--space-3); font-size: var(--text-sm); }
.info-popup__card ul { color: var(--muted); padding-left: 20px; margin: 0 0 var(--space-4); font-size: var(--text-sm); line-height: 1.7; }
.info-popup__card .btn { width: 100%; }
