/* Reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  color: #111;
  background: #fafafa;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.primary-nav {
  display: none;
  gap: 20px;
}
.primary-nav a, .cta {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}
.primary-nav a:hover, .cta:hover { opacity: 1; }
.cta {
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
}
/* Header actions (CTA + Cart) */
.actions { display: flex; align-items: center; gap: 10px; }
.cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}
.cart:hover { opacity: 1; }
#cart-count {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 12px;
}

/* Premium split hero */
.display { font-family: "Fraunces", serif; font-weight: 600; letter-spacing: -0.01em; }
.split-hero {
  background: #0a0a0a;
  color: #fff;
  padding: 72px 0;
}
.split-hero-inner { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.split-hero-left .eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; opacity: .8; margin-bottom: 10px; }
.split-hero-left .display { font-size: clamp(36px, 5.8vw, 68px); margin: 0 0 12px; }
.split-hero-left .lede { max-width: 640px; color: #d6d6d6; margin: 0 0 20px; }
.split-hero .hero-actions { display: flex; gap: 12px; }
.split-hero-right .panel { background: #0e0e0e; border: 1px solid #1a1a1a; border-radius: 16px; padding: 18px; display: grid; gap: 14px; max-width: 520px; }
.panel-line { height: 1px; background: #1f1f1f; }
.panel-copy .kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .9; margin-bottom: 4px; }
.panel-copy p { margin: 0; color: #cfcfcf; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-weight: 600;
}
.btn.small { padding: 8px 12px; font-size: 14px; }
.btn.primary { background: #111; color: #fff; border-color: #222; }
.btn:hover { filter: brightness(0.98); }

/* Add-to-cart pulse animation */
@keyframes cartPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(22,163,74,0); background-color: rgba(22,163,74,0); }
  40% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(22,163,74,0.22); background-color: rgba(22,163,74,0.20); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(22,163,74,0); background-color: rgba(22,163,74,0); }
}
.add-to-cart.pulse { animation: cartPulse 420ms ease; }

/* Product section */
.product-section { padding: 40px 0 72px; }
.product-section h2 { margin: 0 0 20px; font-size: 28px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
}
.product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.product-card img { width: 100%; height: auto; display: block; }
.product-link { display: block; color: inherit; text-decoration: none; }
.product-card h3 { margin: 12px 12px 4px; font-size: 18px; }
.product-card p { margin: 0 12px 12px; color: #555; }
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-top: 1px solid #f0f0f0;
}
.price { font-weight: 700; }

/* Cart Drawer */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(420px, 100%);
  background: #fff;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  display: grid;
  grid-template-rows: auto 1fr auto;
  transform: translateX(100%);
  transition: transform 200ms ease;
  overflow: hidden;
}
.cart-drawer[aria-hidden="false"] { transform: translateX(0); }
.cart-header, .cart-footer {
  padding: 16px;
  border-bottom: 1px solid #eee;
}
.cart-footer { border-bottom: none; border-top: 1px solid #eee; }
.cart-header { display: flex; align-items: center; justify-content: space-between; }
.icon-btn { background: none; border: none; font-size: 24px; line-height: 1; cursor: pointer; }
.cart-body { overflow: auto; padding: 8px 16px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; max-height: 100%; }
.cart-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-item .meta .title { font-weight: 600; }
.cart-item .meta .price-qty { color: #666; font-size: 14px; }
.cart-item .line { display: grid; align-items: center; justify-items: end; gap: 6px; }
.total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cart-actions { display: flex; gap: 10px; }

/* Footer */
.site-footer {
  background: #000;
  color: #bbb;
  padding: 24px 0;
}
.site-footer p { margin: 0; text-align: center; }

/* Product detail */
.product-detail { display: grid; gap: 24px; grid-template-columns: 1fr; }
.product-detail .gallery { display: grid; gap: 12px; }
.product-detail .gallery #main-image { width: 100%; border-radius: 12px; display: block; }
.product-detail .gallery .thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.product-detail .gallery .thumbs img { width: 100%; height: 72px; object-fit: cover; border-radius: 8px; cursor: pointer; }
.product-detail .info .price { font-size: 20px; font-weight: 700; margin: 8px 0 12px; }
.tabs { display: flex; gap: 6px; margin-top: 20px; }
.tab { background: #f2f2f2; border: 1px solid #e6e6e6; padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.tab.active { background: #111; color: #fff; border-color: #111; }
.tab-panels { margin-top: 12px; }
.panel { display: none; color: #444; }
.panel.active { display: block; }

/* Checkout */
.checkout { display: grid; gap: 24px; grid-template-columns: 1fr; }
.checkout-form .field { margin-bottom: 12px; }
.checkout-form .field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkout-form label { display: grid; gap: 6px; font-size: 14px; color: #333; }
.checkout-form input { padding: 10px 12px; border: 1px solid #e6e6e6; border-radius: 10px; font: inherit; }
.checkout-summary { background: #fff; border: 1px solid #EEE; border-radius: 12px; padding: 16px; }
.bank-box { background:#fafafa; border:1px solid #eee; border-radius:12px; padding:12px; margin:12px 0; }
.bank-box .row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:6px 0; border-bottom:1px dashed #e8e8e8; }
.bank-box .row:last-child { border-bottom:none; }

/* Home sections */
.about-section { background: #fff; }
.about-section .section-title { font-family: "Fraunces", serif; font-weight: 600; margin: 0 0 10px; }
.about-section .section-copy { max-width: 800px; color: #444; }
.manifesto { margin: 18px 0 0; font-family: "Fraunces", serif; font-weight: 400; font-size: 20px; color: #111; }
.goals-section { background: #f7f7f7; }
.values { display: grid; grid-template-columns: 1fr; gap: 14px; }
.value { background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 14px; }
.value-title { font-weight: 700; margin-bottom: 4px; }

/* Responsive */
@media (min-width: 640px) {
  .primary-nav { display: flex; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-detail { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .checkout { grid-template-columns: 1fr 0.8fr; }
  .split-hero-inner { grid-template-columns: 1.1fr 1fr; }
}

/* Reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  color: #111;
  background: #fafafa;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.primary-nav {
  display: none;
  gap: 20px;
}
.primary-nav a, .cta {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}
.primary-nav a:hover, .cta:hover { opacity: 1; }
.cta {
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
}
/* Header actions (CTA + Cart) */
.actions { display: flex; align-items: center; gap: 10px; }
.cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}
.cart:hover { opacity: 1; }
#cart-count {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 12px;
}

/* Hero */
/* Premium split hero */
.display { font-family: "Fraunces", serif; font-weight: 600; letter-spacing: -0.01em; }
.split-hero {
  background: #0a0a0a;
  color: #fff;
  padding: 72px 0;
}
.split-hero-inner { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.split-hero-left .eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; opacity: .8; margin-bottom: 10px; }
.split-hero-left .display { font-size: clamp(36px, 5.8vw, 68px); margin: 0 0 12px; }
.split-hero-left .lede { max-width: 640px; color: #d6d6d6; margin: 0 0 20px; }
.split-hero .hero-actions { display: flex; gap: 12px; }
.split-hero-right .panel { background: #0e0e0e; border: 1px solid #1a1a1a; border-radius: 16px; padding: 18px; display: grid; gap: 14px; max-width: 520px; }
.panel-line { height: 1px; background: #1f1f1f; }
.panel-copy .kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .9; margin-bottom: 4px; }
.panel-copy p { margin: 0; color: #cfcfcf; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-weight: 600;
}
.btn.small { padding: 8px 12px; font-size: 14px; }
.btn.primary { background: #111; color: #fff; border-color: #222; }
.btn:hover { filter: brightness(0.98); }

/* Add-to-cart pulse animation */
@keyframes cartPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(22,163,74,0); background-color: rgba(22,163,74,0); }
  40% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(22,163,74,0.22); background-color: rgba(22,163,74,0.20); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(22,163,74,0); background-color: rgba(22,163,74,0); }
}
.add-to-cart.pulse { animation: cartPulse 420ms ease; }

/* Product section */
.product-section { padding: 40px 0 72px; }
.product-section h2 { margin: 0 0 20px; font-size: 28px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
}
.product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.product-card img { width: 100%; height: auto; display: block; }
.product-link { display: block; color: inherit; text-decoration: none; }
.product-card h3 { margin: 12px 12px 4px; font-size: 18px; }
.product-card p { margin: 0 12px 12px; color: #555; }
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-top: 1px solid #f0f0f0;
}
.price { font-weight: 700; }

/* Footer */
.site-footer {
  background: #000;
  color: #bbb;
  padding: 24px 0;
}
.site-footer p { margin: 0; text-align: center; }

/* Home sections */
.about-section { background: #fff; }
.about-section .section-title { font-family: "Fraunces", serif; font-weight: 600; margin: 0 0 10px; }
.about-section .section-copy { max-width: 800px; color: #444; }
.manifesto { margin: 18px 0 0; font-family: "Fraunces", serif; font-weight: 400; font-size: 20px; color: #111; }
.goals-section { background: #f7f7f7; }
.values { display: grid; grid-template-columns: 1fr; gap: 14px; }
.value { background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 14px; }
.value-title { font-weight: 700; margin-bottom: 4px; }

/* Cart Drawer */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 100%);
  background: #fff;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  display: grid;
  grid-template-rows: auto 1fr auto;
  transform: translateX(100%);
  transition: transform 200ms ease;
}
.cart-drawer[aria-hidden="false"] { transform: translateX(0); }
.cart-header, .cart-footer {
  padding: 16px;
  border-bottom: 1px solid #eee;
}
.cart-footer { border-bottom: none; border-top: 1px solid #eee; }
.cart-header { display: flex; align-items: center; justify-content: space-between; }
.icon-btn { background: none; border: none; font-size: 24px; line-height: 1; cursor: pointer; }
.cart-body { overflow: auto; padding: 8px 16px; }
.cart-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-item .meta .title { font-weight: 600; }
.cart-item .meta .price-qty { color: #666; font-size: 14px; }
.cart-item .line { display: grid; align-items: center; justify-items: end; gap: 6px; }
.total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cart-actions { display: flex; gap: 10px; }

/* Product detail */
.product-detail { display: grid; gap: 24px; grid-template-columns: 1fr; }
.product-detail .gallery { display: grid; gap: 12px; }
.product-detail .gallery #main-image { width: 100%; border-radius: 12px; display: block; }
.product-detail .gallery .thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.product-detail .gallery .thumbs img { width: 100%; height: 72px; object-fit: cover; border-radius: 8px; cursor: pointer; }
.product-detail .info .price { font-size: 20px; font-weight: 700; margin: 8px 0 12px; }
.tabs { display: flex; gap: 6px; margin-top: 20px; }
.tab { background: #f2f2f2; border: 1px solid #e6e6e6; padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.tab.active { background: #111; color: #fff; border-color: #111; }
.tab-panels { margin-top: 12px; }
.panel { display: none; color: #444; }
.panel.active { display: block; }

/* Checkout */
.checkout { display: grid; gap: 24px; grid-template-columns: 1fr; }
.checkout-form .field { margin-bottom: 12px; }
.checkout-form .field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkout-form label { display: grid; gap: 6px; font-size: 14px; color: #333; }
.checkout-form input { padding: 10px 12px; border: 1px solid #e6e6e6; border-radius: 10px; font: inherit; }
.checkout-summary { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 16px; }
.bank-box { background:#fafafa; border:1px solid #eee; border-radius:12px; padding:12px; margin:12px 0; }
.bank-box .row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:6px 0; border-bottom:1px dashed #e8e8e8; }
.bank-box .row:last-child { border-bottom:none; }

/* Responsive */
@media (min-width: 640px) {
  .primary-nav { display: flex; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-detail { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .checkout { grid-template-columns: 1fr 0.8fr; }
  .split-hero-inner { grid-template-columns: 1.1fr 1fr; }
}
