:root {
  --bg: #faf6f0;
  --card: #ffffff;
  --ink: #2b2118;
  --muted: #7a6a58;
  --line: #e7ddd0;
  --brown: #9c5f2c;
  --brown-dark: #7c4a20;
  --tan: #c98a4b;
  --accent: #1f6b4a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(60, 40, 20, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, .brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
}

img { max-width: 100%; display: block; }

.topbar {
  background: var(--brown-dark);
  color: #f6ead9;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.4px;
  padding: 8px 16px;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(16px, 5vw, 56px);
  max-width: 1180px;
  margin: 0 auto;
}
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.brand-name { font-size: 1.7rem; letter-spacing: 0.5px; }
.brand-tag { font-size: 0.72rem; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; }

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brown); color: #fff; box-shadow: 0 8px 20px rgba(156, 95, 44, 0.28); }
.btn-primary:hover { background: var(--brown-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Product */
.product {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  max-width: 1180px;
  margin: 16px auto 8px;
  padding: 24px clamp(16px, 5vw, 56px);
}
.gallery { position: sticky; top: 16px; align-self: start; }
.main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: #efe6d8;
  box-shadow: var(--shadow);
}
.thumbs { display: flex; gap: 12px; margin-top: 12px; }
.thumb {
  padding: 0; border: 2px solid transparent; border-radius: 10px;
  background: #efe6d8; cursor: pointer; overflow: hidden; width: 80px; height: 80px;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--brown); }

.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 0.72rem; color: var(--tan); font-weight: 600; margin: 0 0 8px; }
.info h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 10px; }
.rating { color: var(--tan); font-size: 0.95rem; }
.rating span { color: var(--muted); font-size: 0.85rem; }

.price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0; }
.price-usd { font-size: 2rem; font-weight: 700; color: var(--ink); }
.price-tnd { color: var(--muted); font-size: 1.05rem; }

.lead { color: #4a3c2e; }
.usp { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 8px; }
.usp li { position: relative; padding-left: 26px; }
.usp li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.qty-row label { font-weight: 600; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 42px; height: 44px; border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty input { width: 48px; height: 44px; border: 0; text-align: center; font-size: 1rem; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.reassurance { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* Trust */
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  max-width: 1180px; margin: 24px auto; padding: 24px clamp(16px, 5vw, 56px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.trust div { display: flex; flex-direction: column; }
.trust strong { font-size: 0.98rem; }
.trust span { font-size: 0.82rem; color: var(--muted); }

/* Details */
.details {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px);
  max-width: 1180px; margin: 32px auto; padding: 0 clamp(16px, 5vw, 56px);
}
.details h2 { font-size: 1.8rem; margin: 0 0 12px; }
.details p { color: #4a3c2e; }
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 40%; color: var(--muted); font-weight: 600; }

/* Order */
.order {
  max-width: 720px; margin: 40px auto; padding: clamp(24px, 5vw, 40px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.order h2 { font-size: 2rem; margin: 0 0 6px; text-align: center; }
.order-sub { text-align: center; color: var(--muted); margin: 0 0 24px; }
.order-form { display: grid; gap: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: #4a3c2e; }
.field input {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 1rem; background: #fff; color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--tan); box-shadow: 0 0 0 3px rgba(201, 138, 75, 0.15); }

.summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: #f4ece0; border-radius: 10px; margin-top: 4px; }
.summary strong { font-size: 1.05rem; }
.form-error { background: #fbe9e7; color: #a02a16; padding: 10px 14px; border-radius: 10px; font-size: 0.9rem; margin: 0; }

/* FAQ */
.faq { max-width: 720px; margin: 40px auto; padding: 0 clamp(16px, 5vw, 56px); }
.faq h2 { font-size: 1.8rem; text-align: center; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--tan); }
.faq details[open] summary::after { content: "−"; }
.faq p { color: #4a3c2e; margin: 10px 0 0; }

/* Footer */
.footer {
  background: var(--brown-dark); color: #f0e3d2; margin-top: 48px;
  padding: 40px clamp(16px, 5vw, 56px); display: grid; gap: 14px; text-align: center;
}
.footer .brand-name { color: #fff; font-size: 1.6rem; }
.footer p { margin: 4px 0; opacity: 0.85; }
.footer-links { display: flex; gap: 20px; justify-content: center; }
.footer-links a { color: #f0e3d2; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.copyright { font-size: 0.8rem; opacity: 0.7; }

/* Pages merci / echec */
.status-page {
  min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.status-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(28px, 5vw, 48px); max-width: 480px; text-align: center;
}
.status-card .icon { font-size: 3rem; }
.status-card h1 { font-size: 2.2rem; margin: 12px 0 8px; }
.status-card p { color: var(--muted); }
.status-card .btn { margin-top: 20px; }

/* Responsive */
@media (max-width: 880px) {
  .product { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .details { grid-template-columns: 1fr; }
  .trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .grid2 { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
}
