:root {
  --bg: #1a2838;
  --bg-alt: #243648;
  --denim: #2f4a66;
  --denim-light: #3d5f7f;
  --denim-dark: #0f1824;
  --khaki: #c4b49a;
  --khaki-dark: #a69278;
  --khaki-muted: #8b7d6b;
  --accent: #c4b49a;
  --accent-strong: #a69278;
  --stitch: #c94444;
  --stitch-soft: rgba(201, 68, 68, 0.35);
  --text: #ede6dc;
  --muted: #9a9088;
  --on-accent: #0f1824;
  --border-stitch: rgba(201, 68, 68, 0.5);
  --border-khaki: rgba(196, 180, 154, 0.35);
  --radius: 16px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-soft: 0 20px 50px rgba(15, 24, 36, 0.5);
  --shadow-accent: 0 8px 24px rgba(166, 146, 120, 0.22);
  --glass: rgba(26, 40, 56, 0.82);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 55% 45% at 95% 5%, rgba(166, 146, 120, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 120% 80% at 50% -20%, var(--denim) 0%, var(--bg) 48%, var(--denim-dark) 100%);
  color: var(--text);
}

body {
  min-height: 100vh;
  cursor: none;
  overflow-x: hidden;
}

body.menu-open,
body.cart-open,
body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Custom cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  z-index: 10000;
  transition: width 0.15s ease, height 0.15s ease, background 0.15s ease;
}

.custom-cursor.is-hover {
  width: 48px;
  height: 48px;
  background: rgba(196, 180, 154, 0.14);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 7vw;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border-khaki);
  transition: padding var(--transition), background var(--transition);
}

.site-header.is-scrolled {
  padding-block: 12px;
  background: rgba(15, 24, 36, 0.94);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  display: block;
  height: 40px;
  width: auto;
  object-fit: contain;
}

.site-header.is-scrolled .logo-img {
  height: 34px;
}

.footer-logo {
  height: 56px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

body.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 0.88rem;
  font-weight: 500;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-strong), var(--stitch));
  border-radius: 2px;
  transition: width var(--transition);
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

.nav a:hover::after,
.nav a.is-active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Cart toggle */
.cart-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform 0.15s ease;
}

.cart-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.cart-toggle:hover {
  background: rgba(196, 180, 154, 0.12);
  border-color: var(--border-khaki);
  transform: scale(1.05);
}

.cart-toggle.is-bump {
  animation: cartBump 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes cartBump {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.2); }
  60% { transform: scale(0.95); }
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--on-accent);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}

.cart-count.is-visible {
  transform: scale(1);
  opacity: 1;
}

.cart-count.is-pop {
  animation: countPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes countPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Cart drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.cart-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 201;
  width: min(420px, 100vw);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--denim-dark) 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.cart-header-count {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.95rem;
}

.cart-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), transform 0.15s ease;
}

.cart-close:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(90deg);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px;
  gap: 12px;
}

.cart-empty.is-hidden {
  display: none;
}

.cart-empty-icon {
  font-size: 3rem;
  opacity: 0.4;
  animation: emptyBounce 2s ease-in-out infinite;
}

@keyframes emptyBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.cart-empty p {
  margin: 0;
  color: var(--muted);
}

.cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: cartItemIn 0.4s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

.cart-item.is-removing {
  animation: cartItemOut 0.35s ease forwards;
}

@keyframes cartItemIn {
  from {
    opacity: 0;
    transform: translateX(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes cartItemOut {
  to {
    opacity: 0;
    transform: translateX(-20px) scale(0.9);
    max-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }
}

.cart-item-image {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info h4 {
  margin: 0 0 4px;
  font-size: 0.9rem;
  font-family: var(--font-display);
}

.cart-item-price {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
}

.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 999px;
  padding: 2px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), transform 0.1s ease;
}

.qty-btn:hover {
  background: rgba(196, 180, 154, 0.22);
}

.qty-btn:active {
  transform: scale(0.9);
}

.qty-value {
  min-width: 24px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  transition: color var(--transition);
}

.cart-item-remove:hover {
  color: var(--stitch);
}

.cart-footer {
  padding: 20px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-footer.is-hidden {
  display: none;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
}

.cart-shipping span:last-child {
  color: #4ade80;
}

.cart-total-row {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.cart-total,
.cart-subtotal {
  color: var(--accent);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-total.is-updating {
  animation: totalPulse 0.4s ease;
}

@keyframes totalPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); color: var(--accent-strong); }
}

/* Quick view button on product */
.quick-view-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 24, 36, 0.78);
  backdrop-filter: blur(8px);
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease, background var(--transition);
}

.product-card:hover .quick-view-btn {
  opacity: 1;
  transform: scale(1);
}

.quick-view-btn:hover {
  background: rgba(196, 180, 154, 0.22);
  transform: scale(1.1) !important;
}

.add-to-cart-btn.is-added {
  background: rgba(74, 222, 128, 0.15) !important;
  border-color: #4ade80 !important;
  color: #4ade80 !important;
}

/* Product modal */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.product-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.product-modal-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 800px;
  width: 100%;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--bg-alt), var(--denim-dark));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.product-modal.is-open .product-modal-content {
  transform: scale(1) translateY(0);
}

.product-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.5);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.product-modal-close:hover {
  transform: rotate(90deg);
}

.product-modal-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.product-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-modal-info {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.product-modal-info h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.product-modal-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.product-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

/* Checkout modal */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.checkout-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.checkout-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
}

.checkout-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--bg-alt), var(--denim-dark));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  transform: scale(0.92) translateY(24px);
  transition: transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.checkout-modal.is-open .checkout-panel {
  transform: scale(1) translateY(0);
}

.checkout-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.checkout-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}

.progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.4s ease, transform 0.4s ease;
}

.progress-dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(201, 68, 68, 0.35);
}

.progress-line {
  width: 48px;
  height: 2px;
  background: var(--border-khaki);
}

.checkout-panel h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  text-align: center;
}

.checkout-subtitle {
  text-align: center;
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 0.95rem;
}

.checkout-form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checkout-form label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}

.checkout-form input {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 24, 36, 0.65);
  color: var(--text);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.checkout-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 180, 154, 0.15);
}

.checkout-recap {
  padding: 16px;
  border-radius: 12px;
  background: rgba(47, 74, 102, 0.2);
  border: 1px dashed var(--border-stitch);
  font-size: 0.85rem;
  color: var(--muted);
  max-height: 120px;
  overflow-y: auto;
}

.checkout-recap-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

#checkout-submit {
  position: relative;
  min-height: 48px;
}

#checkout-submit.is-loading .btn-text {
  opacity: 0;
}

#checkout-submit.is-loading .btn-loader {
  opacity: 1;
}

.btn-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn-loader::after {
  content: "";
  width: 22px;
  height: 22px;
  border: 2px solid rgba(17, 24, 39, 0.2);
  border-top-color: var(--on-accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.checkout-step--success {
  text-align: center;
  animation: fadeSlideUp 0.6s ease both;
}

.checkout-step--success[hidden] {
  display: none;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-animation {
  margin: 0 auto 24px;
}

.success-circle {
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.success-check {
  width: 80px;
  height: 80px;
}

.success-check-circle {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.2s forwards;
}

.success-check-path {
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeCheck 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.7s forwards;
}

@keyframes strokeCircle {
  to { stroke-dashoffset: 0; }
}

@keyframes strokeCheck {
  to { stroke-dashoffset: 0; }
}

.order-id {
  color: var(--muted);
  font-size: 0.9rem;
}

.order-id strong {
  color: var(--accent);
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(26, 40, 56, 0.96);
  backdrop-filter: blur(12px);
  border: 1px dashed var(--border-stitch);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  color: var(--text);
  font-size: 0.88rem;
  pointer-events: auto;
  animation: toastIn 0.45s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

.toast.is-leaving {
  animation: toastOut 0.35s ease forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateX(40px) scale(0.9);
  }
}

.toast-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.toast-text strong {
  display: block;
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 2px;
}

/* Fly to cart */
.fly-item {
  position: fixed;
  z-index: 250;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border: 2px solid var(--accent);
}

.fly-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fly-item.is-flying {
  opacity: 1;
  transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1), top 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s ease, opacity 0.2s ease 0.5s;
}

/* Typography helpers */
.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.highlight {
  background: linear-gradient(135deg, var(--khaki) 0%, var(--khaki-dark) 60%, var(--stitch) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Sections */
.section {
  padding: 100px 7vw;
}

.page-main > .section:first-child {
  padding-top: 140px;
}

.section-title {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-title h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  min-height: 100vh;
  padding-top: 120px;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
}

.hero-content > p {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 500px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
}

.hero-stats span {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 24px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.15s ease, box-shadow var(--transition);
}

.btn.primary {
  background: linear-gradient(135deg, var(--khaki) 0%, var(--khaki-dark) 100%);
  color: var(--on-accent);
  border-color: transparent;
  box-shadow: var(--shadow-accent);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(166, 146, 120, 0.32);
}

.btn.ghost {
  background: rgba(47, 74, 102, 0.25);
  color: var(--khaki);
  border: 1px dashed var(--border-stitch);
  backdrop-filter: blur(8px);
}

.btn.ghost:hover {
  background: rgba(196, 180, 154, 0.1);
  border-color: var(--stitch);
  transform: translateY(-2px);
}

.btn.small {
  padding: 8px 16px;
  font-size: 0.75rem;
}

.btn.full {
  width: 100%;
}

/* Hero visual */
.hero-visual {
  position: relative;
  min-height: 480px;
}

.hero-main-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-main-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 24, 36, 0.65) 0%, transparent 50%);
  pointer-events: none;
}

.hero-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}

.hero-visual:hover .hero-main-image img {
  transform: scale(1.05);
}

.denim-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px dashed var(--border-stitch);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform var(--transition);
}

.denim-card img {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.denim-card span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 0 4px 4px;
}

.denim-card:hover {
  transform: translateY(-4px) rotate(0deg) !important;
  z-index: 5;
}

.card-1 {
  top: 6%;
  left: -8%;
  transform: rotate(-6deg);
}

.card-2 {
  top: 38%;
  right: -6%;
  transform: rotate(5deg);
}

.card-3 {
  bottom: 8%;
  left: 12%;
  transform: rotate(-2deg);
}

/* Story */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.story-block {
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(36, 54, 72, 0.92), rgba(26, 40, 56, 0.5));
  border: 1px solid var(--border-khaki);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}

.story-block:hover {
  transform: translateY(-6px);
  border-color: rgba(196, 180, 154, 0.22);
}

.story-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.story-block:hover .story-image img {
  transform: scale(1.08);
}

.story-block h3 {
  margin: 0;
  padding: 18px 20px 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.story-block p {
  margin: 0;
  padding: 0 20px 22px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Process */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.step {
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(36, 54, 72, 0.92), rgba(15, 24, 36, 0.65));
  border: 1px solid var(--border-khaki);
  overflow: hidden;
  transition: transform var(--transition);
}

.step:hover {
  transform: translateY(-4px);
}

.step-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.step:hover .step-image img {
  transform: scale(1.06);
}

.step-number {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 14px 18px 6px;
}

.step h3 {
  margin: 0 0 6px;
  padding: 0 18px;
  font-family: var(--font-display);
  font-size: 1rem;
}

.step p {
  margin: 0;
  padding: 0 18px 20px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Boutique */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(36, 54, 72, 0.95), rgba(26, 40, 56, 0.55));
  border: 1px solid var(--border-khaki);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(196, 180, 154, 0.45);
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.06);
}

.product-image .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 24, 36, 0.88);
  backdrop-filter: blur(8px);
  border: 1px dashed var(--border-stitch);
  color: var(--khaki);
}

.product-info {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 12px;
}

.price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}

/* Custom */
.custom-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.ba-arrow {
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0.6;
}

.ba-item {
  border-radius: var(--radius);
  border: 1px dashed var(--border-stitch);
  background: linear-gradient(160deg, rgba(36, 54, 72, 0.88), rgba(15, 24, 36, 0.55));
  overflow: hidden;
}

.ba-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.ba-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ba-item:hover .ba-image img {
  transform: scale(1.04);
}

.ba-item h3 {
  margin: 0;
  padding: 14px 16px 6px;
  font-family: var(--font-display);
}

.ba-item p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.ba-item.after {
  border-color: var(--stitch);
}

.custom-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(36, 54, 72, 0.92), rgba(26, 40, 56, 0.55));
  border: 1px solid var(--border-khaki);
  backdrop-filter: blur(12px);
}

.custom-form label {
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
}

.custom-form select,
.custom-form textarea {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 24, 36, 0.65);
  color: var(--text);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.92rem;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.custom-form select:focus,
.custom-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 180, 154, 0.15);
}

/* Footer */
.site-footer {
  padding: 40px 7vw;
  border-top: 1px solid var(--border-khaki);
  background: rgba(15, 24, 36, 0.65);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-inner > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.05s; }
.reveal:nth-child(3) { transition-delay: 0.1s; }

/* Stagger children */
.story-grid .story-block,
.process-steps .step,
.product-grid .product-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.story-grid.visible .story-block,
.process-steps.visible .step,
.product-grid.visible .product-card {
  opacity: 1;
  transform: translateY(0);
}

.story-grid .story-block:nth-child(1),
.process-steps .step:nth-child(1),
.product-grid .product-card:nth-child(1) { transition-delay: 0.1s; }

.story-grid .story-block:nth-child(2),
.process-steps .step:nth-child(2),
.product-grid .product-card:nth-child(2) { transition-delay: 0.2s; }

.story-grid .story-block:nth-child(3),
.process-steps .step:nth-child(3),
.product-grid .product-card:nth-child(3) { transition-delay: 0.3s; }

.process-steps .step:nth-child(4) { transition-delay: 0.4s; }

.product-grid .product-card:nth-child(4) { transition-delay: 0.4s; }
.product-grid .product-card:nth-child(5) { transition-delay: 0.5s; }
.product-grid .product-card:nth-child(6) { transition-delay: 0.6s; }
.product-grid .product-card:nth-child(7) { transition-delay: 0.7s; }
.product-grid .product-card:nth-child(8) { transition-delay: 0.8s; }

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 100px;
  }

  .hero-visual {
    order: -1;
    min-height: 380px;
    max-width: 420px;
    margin: 0 auto;
  }

  .card-1 { left: 0; }
  .card-2 { right: 0; }
}

@media (max-width: 960px) {
  .story-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .custom-layout {
    grid-template-columns: 1fr;
  }

  .before-after {
    grid-template-columns: 1fr;
  }

  .ba-arrow {
    text-align: center;
    transform: rotate(90deg);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .header-actions {
    gap: 12px;
  }

  .nav {
    position: fixed;
    inset: 0;
    top: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    background: rgba(15, 24, 36, 0.97);
    backdrop-filter: blur(20px);
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
  }

  body.menu-open .nav {
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    font-family: var(--font-display);
    font-size: 1.4rem;
  }

  body {
    cursor: auto;
  }

  .custom-cursor {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header,
  .section {
    padding-inline: 5vw;
  }

  .process-steps,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 20px;
  }

  .denim-card {
    display: none;
  }

  .hero-visual {
    min-height: 320px;
  }

  .product-modal-content {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .story-block,
  .step,
  .product-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-main-image img,
  .story-image img,
  .product-image img {
    transition: none !important;
  }

  .cart-drawer,
  .cart-item,
  .fly-item,
  .toast,
  .product-modal-content,
  .checkout-panel {
    transition: none !important;
    animation: none !important;
  }
}
