
:root {
  --bg: #F4F1EC;
  --surface: #FFFFFF;
  --ink: #141414;
  --primary: #1B3A5C;
  --primary-dk: #122A44;
  --accent: #E8A33D;
  --success: #2E7D5B;
  --muted: #7A7368;
  --line: #E2DCD1;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.mono { font-family: 'Space Grotesk', monospace; letter-spacing: 0.14em; text-transform: uppercase; font-size: 11px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(244,241,236,0.92);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 500;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px; max-width: 1240px; margin: 0 auto; gap: 24px;
}
.logo {
  font-family: var(--serif); font-size: 28px; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px; font-weight: 400;
}
.logo-mark {
  width: 22px; height: 22px; border: 2px solid var(--primary); border-radius: 50%;
  position: relative; display: inline-block;
}
.logo-mark:after {
  content: ""; position: absolute; inset: 4px;
  background: var(--accent); border-radius: 50%;
}
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.nav a:hover { color: var(--accent); }
.header-actions { display: flex; gap: 14px; align-items: center; }
.lang-switch { display: flex; gap: 2px; border: 1px solid var(--line); padding: 3px; border-radius: 999px; }
.lang-switch button {
  border: none; background: none; padding: 5px 12px; border-radius: 999px;
  font-family: var(--sans); font-size: 11px; font-weight: 600; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
}
.lang-switch button.active { background: var(--primary); color: #fff; }

.cart-btn {
  position: relative; background: var(--primary); color: #fff; border: none;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  transition: transform .15s;
}
.cart-btn:hover { background: var(--primary-dk); }
.cart-btn.pulse { animation: pulse 0.5s ease; }
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232,163,61,0.7); }
  50% { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(232,163,61,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232,163,61,0); }
}
.cart-count {
  position: absolute; top: -4px; right: -4px; background: var(--accent); color: var(--ink);
  font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
  border: 2px solid var(--bg);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: 2px;
  font-family: var(--sans); font-weight: 600; font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; border: 1px solid var(--primary);
  background: var(--primary); color: #fff; transition: all .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { background: var(--success); border-color: var(--success); color: #fff; }

/* Hero */
.hero { padding: 80px 0 100px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hero h1 {
  font-family: var(--serif); font-size: clamp(44px, 6vw, 82px);
  line-height: 1; letter-spacing: -0.02em; margin-bottom: 24px; font-weight: 400;
}
.hero h1 em { font-style: italic; color: var(--primary); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 520px; margin-bottom: 36px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 22px; font-weight: 600;
}
.eyebrow:before { content: ""; width: 24px; height: 1px; background: var(--accent); }
.hero-img {
  aspect-ratio: 4/5; background: var(--surface);
  border: 1px solid var(--line); overflow: hidden; position: relative;
  box-shadow: 40px 40px 0 -20px var(--primary);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* Sections */
section { padding: 80px 0; }
.section-title {
  font-family: var(--serif); font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.01em; margin-bottom: 16px; font-weight: 400;
}
.section-sub { color: var(--muted); max-width: 640px; margin-bottom: 48px; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line); }
.feature { background: var(--surface); padding: 32px 26px; }
.feature .num {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em;
  color: var(--accent); font-weight: 700; margin-bottom: 20px;
}
.feature h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 10px; font-weight: 400; }
.feature p { color: var(--muted); font-size: 14px; }

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.product-detail .hero-img { aspect-ratio: 1/1; box-shadow: 30px 30px 0 -15px var(--primary); }
.price-tag {
  font-family: var(--serif); font-size: 48px; margin: 24px 0; font-weight: 400;
  color: var(--primary);
}
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 32px; }
.badge {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 7px 14px; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; font-weight: 500;
}
.qty-row { display: flex; gap: 12px; align-items: stretch; }
.qty-input {
  width: 90px; padding: 14px; border: 1px solid var(--line); background: var(--surface);
  font-family: var(--sans); font-size: 16px; text-align: center;
  font-weight: 600;
}
.info-block { border-top: 1px solid var(--line); padding: 28px 0; }
.info-block h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 14px; font-weight: 400; }
.info-block ul { list-style: none; }
.info-block li { padding: 7px 0 7px 22px; position: relative; color: #333; font-size: 15px; }
.info-block li:before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
}

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.review {
  background: var(--surface); padding: 28px; border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}
.review p { font-size: 15px; margin-bottom: 16px; font-style: italic; color: #333; }
.review .who { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 600;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 15px 16px; border: 1px solid var(--line);
  background: var(--surface); font-family: var(--sans); font-size: 15px; color: var(--ink);
  border-radius: 2px; transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; }
.order-summary {
  background: var(--surface); border: 1px solid var(--line); padding: 32px;
  position: sticky; top: 100px;
}
.order-summary h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 22px; font-weight: 400; }
.order-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-row.total { font-weight: 700; font-size: 20px; border-bottom: none; padding-top: 20px; }

/* Cart page */
.cart-item {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 26px;
  align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line);
}
.cart-item .thumb { width: 110px; height: 110px; background: var(--primary); border-radius: 2px; overflow: hidden; }
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 6px; font-weight: 400; }
.cart-item .meta { font-size: 14px; color: var(--muted); }
.cart-item .price { font-family: var(--serif); font-size: 24px; font-weight: 400; color: var(--primary); }
.cart-remove {
  background: none; border: none; color: var(--accent); cursor: pointer;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  margin-top: 10px; font-weight: 600; padding: 0;
}
.empty-cart { text-align: center; padding: 100px 20px; color: var(--muted); }
.empty-cart h2 { font-family: var(--serif); font-size: 34px; margin-bottom: 20px; font-weight: 400; color: var(--ink); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none;
  padding: 26px 0; font-family: var(--serif); font-size: 22px;
  font-weight: 400; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; color: var(--ink); gap: 20px;
}
.faq-icon {
  width: 26px; height: 26px; border: 1px solid var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 16px; flex-shrink: 0;
  transition: transform .3s, background .2s, color .2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer p { padding-bottom: 26px; color: var(--muted); }

/* Prose / legal */
.prose { max-width: 800px; margin: 0 auto; }
.prose h1 { font-family: var(--serif); font-size: 48px; margin-bottom: 20px; font-weight: 400; }
.prose h2 { font-family: var(--serif); font-size: 26px; margin: 40px 0 12px; font-weight: 400; color: var(--primary); }
.prose p { margin-bottom: 16px; color: #333; }
.prose ul { margin: 0 0 16px 24px; }
.prose li { margin-bottom: 8px; color: #333; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 70px 0 0; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-grid h4 {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 20px; font-weight: 700;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; color: #333; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand .logo { font-size: 30px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.trust-badges span {
  font-size: 10px; letter-spacing: 0.12em; padding: 6px 11px;
  border: 1px solid var(--line); text-transform: uppercase;
  color: var(--muted); border-radius: 999px;
}
.footer-bottom {
  border-top: 1px solid var(--line); padding: 24px 0;
  display: flex; justify-content: space-between; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  flex-wrap: wrap; gap: 10px;
}

/* ============ CART DRAWER ============ */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(20,20,20,0.4);
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 900;
  backdrop-filter: blur(2px);
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; right: 0; width: min(440px, 100%);
  height: 100vh; background: var(--surface); z-index: 1000;
  transform: translateX(100%); transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0,0,0,0.1);
}
.cart-drawer.open { transform: translateX(0); }
.drawer-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 28px; border-bottom: 1px solid var(--line);
}
.drawer-header h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.drawer-close {
  background: none; border: none; cursor: pointer; font-size: 24px;
  color: var(--muted); line-height: 1; padding: 4px;
}
.drawer-close:hover { color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 28px; }
.drawer-empty { text-align: center; color: var(--muted); padding: 60px 0; }
.drawer-item {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center;
}
.drawer-item .thumb { width: 72px; height: 72px; background: var(--primary); border-radius: 2px; overflow: hidden; }
.drawer-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.drawer-item h4 { font-family: var(--serif); font-size: 17px; font-weight: 400; margin-bottom: 4px; line-height: 1.2; }
.drawer-item .meta { font-size: 12px; color: var(--muted); }
.drawer-item .price { font-family: var(--serif); font-size: 17px; color: var(--primary); text-align: right; }
.drawer-item .remove {
  background: none; border: none; color: var(--accent); cursor: pointer;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  margin-top: 6px; padding: 0; font-weight: 600;
}
.drawer-footer { padding: 24px 28px; border-top: 1px solid var(--line); background: var(--bg); }
.drawer-total { display: flex; justify-content: space-between; margin-bottom: 18px; align-items: baseline; }
.drawer-total .label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.drawer-total .value { font-family: var(--serif); font-size: 28px; color: var(--primary); }
.drawer-footer .btn { width: 100%; }
.drawer-footer .btn + .btn { margin-top: 10px; }

/* ============ TOAST ============ */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--primary); color: #fff; padding: 16px 24px;
  border-radius: 4px; z-index: 2000; min-width: 300px; max-width: 92vw;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast-icon {
  width: 32px; height: 32px; background: var(--success); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 16px; color: #fff;
}
.toast-body { flex: 1; }
.toast-title { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.toast-sub { font-size: 12px; opacity: 0.8; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .product-detail, .checkout-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-img { box-shadow: 24px 24px 0 -12px var(--primary); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .hero { padding: 50px 0 60px; }
}
@media (max-width: 560px) {
  .feature-grid, .footer-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 90px 1fr; }
  .cart-item .price { grid-column: 1 / -1; text-align: right; margin-top: -10px; }
  .container { padding: 0 20px; }
  .header-inner { padding: 16px 20px; }
}
