/* ===== Tokens ===== */
:root {
  --bg: #10161F;
  --bg-panel: #171F2B;
  --bg-panel-raised: #1E2734;
  --line: #2A3442;
  --ink: #F2EFE7;
  --ink-soft: #A7B0BC;
  --ink-faint: #6C7684;
  --blue: #4B96DC;
  --blue-deep: #2E6CA8;
  --kraft: #D8CBAF;
  --danger: #D2664D;
  --success: #6FAE85;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-display: "Archivo Black", sans-serif;
  --font-body: "Work Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
img { max-width: 100%; display: block; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.btn-primary { background: var(--blue); color: #0A0F16; }
.btn-primary:hover:not(:disabled) { background: #5FA3E6; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--kraft);
  color: var(--kraft);
}
.btn-outline:hover { background: var(--kraft); color: #10161F; }
.btn-full { width: 100%; }

.icon-btn {
  background: var(--bg-panel-raised);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 14px;
}
.icon-btn:hover { color: var(--ink); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: rgba(16, 22, 31, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--font-display);
  font-size: 20px;
  text-decoration: none;
  color: var(--ink);
}
.logo span { color: var(--blue); }
.main-nav { display: flex; gap: 28px; }
.main-nav a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
.main-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.locale-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.locale-btn {
  background: transparent;
  border: none;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
}
.locale-btn.active { background: var(--blue); color: #0A0F16; }
.locale-btn:not(.active):hover { color: var(--ink); }

.cart-toggle {
  background: var(--bg-panel-raised);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  padding: 9px 16px;
  font-size: 15px;
  cursor: pointer;
  font-family: var(--font-mono);
}
#cartCount { color: var(--blue); font-weight: 700; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 140px 32px 90px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center 30%;
}
.hero-text { max-width: 620px; position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin: 14px 0 20px;
  line-height: 1.05;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.hero p { color: var(--ink); font-size: 17px; max-width: 480px; margin-bottom: 30px; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }

/* ===== Section shared ===== */
main { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.section-head { margin: 90px 0 36px; }
.section-head h2, .custom-section h2, .faq-section h2 { font-size: 1.9rem; margin: 0 0 8px; }
.section-sub { color: var(--ink-soft); margin: 0; }

/* ===== Product grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}
.product-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--blue-deep); }
.product-card-img {
  aspect-ratio: 4/3;
  background: #0B0F16;
  position: relative;
  overflow: hidden;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--blue);
  color: #0A0F16;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
}
.product-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card-body h3 { font-size: 1.05rem; margin: 0; font-family: var(--font-body); font-weight: 700; }
.product-subtitle { font-size: 13px; color: var(--ink-faint); margin: 0; }
.product-price {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--blue);
  margin-top: auto;
  padding-top: 10px;
}

/* ===== Trust strip ===== */
.trust-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 40px;
  padding: 22px 32px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}

/* ===== About section ===== */
.about-section { margin: 90px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.about-text h2 { font-size: 1.9rem; margin: 10px 0 16px; }
.about-text p { color: var(--ink-soft); font-size: 15.5px; }
.about-photo-wide { margin-top: 30px; }
.about-photo-wide img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-wide img { aspect-ratio: 4/3; }
}

/* ===== Custom section layout ===== */
.custom-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.custom-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.custom-photo-caption {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 10px;
}
@media (max-width: 860px) {
  .custom-layout { grid-template-columns: 1fr; }
  .custom-photo { display: none; }
}

/* ===== Custom + FAQ sections ===== */
.custom-section {
  margin: 90px 0;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
}
.custom-inner { max-width: 640px; }
.custom-section p, .faq-section p { color: var(--ink-soft); }

/* ===== Contact form (custom orders) ===== */
.contact-form { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; max-width: 520px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--bg);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { outline: none; border-color: var(--blue); }
.contact-form button[type="submit"] { align-self: flex-start; }
.form-status { font-size: 13.5px; margin: 0; }
.form-status-success { color: var(--success); }
.form-status-error { color: var(--danger); }

@media (max-width: 520px) {
  .contact-form .form-row { grid-template-columns: 1fr; }
}

/* ===== Size picker (product modal) ===== */
.size-picker { margin: 4px 0 18px; }
.size-picker-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-pill {
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.size-pill small { color: var(--ink-faint); margin-left: 2px; }
.size-pill:hover { border-color: var(--blue-deep); }
.size-pill.selected { background: var(--blue); border-color: var(--blue); color: #0A0F16; }
.size-pill.selected small { color: #0A0F16; opacity: 0.7; }
.size-required-note { color: var(--danger); font-size: 13px; margin: 8px 0 0; }

.faq-section { margin: 90px 0; }
.faq-section details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq-section summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  list-style: none;
}
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after { content: "+"; float: right; color: var(--blue); }
.faq-section details[open] summary::after { content: "–"; }
.faq-section p { margin: 10px 0 0; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 56px 32px 30px;
}
.footer-cols {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
}
.footer-cols > div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols h4 { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin: 0 0 4px; }
.footer-cols a { text-decoration: none; color: var(--ink-soft); font-size: 14px; }
.footer-cols a:hover { color: var(--ink); }
.footer-cols p { color: var(--ink-soft); font-size: 14px; margin: 8px 0 0; }
.footer-bottom {
  text-align: center;
  color: var(--ink-faint);
  font-size: 13px;
  margin-top: 50px;
  font-family: var(--font-mono);
}

/* ===== Modals shared ===== */
.modal {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  background: var(--bg-panel);
  color: var(--ink);
  box-shadow: var(--shadow);
  max-width: 760px;
  width: 92vw;
}
.modal::backdrop { background: rgba(6, 9, 14, 0.7); backdrop-filter: blur(2px); }
.modal-card { position: relative; padding: 28px; }
.modal-close { position: absolute; top: 18px; right: 18px; }

/* ===== Product Modal ===== */
.product-modal-body { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.product-modal-gallery img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  background: #0B0F16;
}
.product-modal-info h2 { font-size: 1.5rem; margin: 0 0 4px; font-family: var(--font-body); font-weight: 700; }
.product-modal-info .product-subtitle { margin-bottom: 14px; }
.product-modal-info .product-price { display: block; font-size: 1.4rem; margin: 14px 0; }
.product-modal-info p.desc { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 22px; }

@media (max-width: 640px) {
  .product-modal-body { grid-template-columns: 1fr; }
}

/* ===== Cart Drawer ===== */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(6, 9, 14, 0.6);
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: 400px;
  max-width: 92vw;
  background: var(--bg-panel);
  border-left: 1px solid var(--line);
  z-index: 31;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--line);
}
.cart-drawer-head h2 { font-size: 1.2rem; margin: 0; font-family: var(--font-body); font-weight: 700; }

.cart-items { flex: 1; overflow-y: auto; padding: 12px 22px; display: flex; flex-direction: column; gap: 16px; }
.cart-item { display: flex; gap: 12px; align-items: center; }
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); background: #0B0F16; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { margin: 0; font-size: 14px; font-weight: 700; }
.cart-item-info .cart-item-price { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); }
.qty-control { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-control button {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}
.qty-control span { font-family: var(--font-mono); font-size: 13px; min-width: 18px; text-align: center; }
.remove-item {
  background: none; border: none; color: var(--ink-faint);
  cursor: pointer; font-size: 12px; text-decoration: underline;
  margin-top: 4px;
}
.remove-item:hover { color: var(--danger); }
.cart-empty { color: var(--ink-faint); text-align: center; padding: 40px 0; font-size: 14px; }

.cart-footer { padding: 18px 22px 24px; border-top: 1px solid var(--line); }
.cart-shipping-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.cart-shipping-field select {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 400;
  color: var(--ink);
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--bg);
}
.cart-shipping-field select:focus { outline: none; border-color: var(--blue); }
.cart-total-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 14.5px; margin-bottom: 4px; color: var(--ink-soft); }
.cart-total-row-final { font-size: 17px; color: var(--ink); font-weight: 500; padding-top: 6px; margin-top: 4px; border-top: 1px solid var(--line); }
.cart-note { color: var(--ink-faint); font-size: 12px; margin: 0 0 14px; }
.checkout-error { color: var(--danger); font-size: 13px; margin-top: 10px; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .site-header { padding: 16px 18px; }
  .main-nav { display: none; }
  .hero { padding: 60px 20px 60px; }
  main { padding: 0 18px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .custom-section { padding: 36px 24px; }
}
