/* =========================================================
   STYLE.CSS — colours & fonts live in :root, change them
   here to re-brand the whole shop for a new client.
   ========================================================= */
:root {
  --bg: #FBF7F2;
  --card: #FFFFFF;
  --text: #2E2326;
  --muted: #8A7C7F;
  --accent: #8C4A5A;     /* main brand colour */
  --accent-soft: #F3DDE3;
  --border: #EADFD8;
  --radius: 16px;
  --font-title: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 6vw; background: var(--card); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.logo { font-family: var(--font-title); font-size: 1.5rem; font-weight: 600; }
.logo em { color: var(--accent); }
nav { display: flex; gap: 24px; font-weight: 500; }
.cart-count {
  background: var(--accent); color: #fff; border-radius: 999px;
  padding: 1px 8px; font-size: .8rem; margin-left: 4px;
}

/* Hero */
.hero { text-align: center; padding: 70px 6vw 40px; }
.eyebrow { text-transform: uppercase; letter-spacing: .15em; font-size: .75rem; color: var(--accent); font-weight: 600; }
.hero h1 { font-family: var(--font-title); font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 500; margin: 10px 0; }
.hero h1 em { color: var(--accent); }
.hero p { color: var(--muted); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 6vw 60px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.filter-btn {
  border: 1px solid var(--border); background: var(--card); padding: 8px 18px;
  border-radius: 999px; cursor: pointer; font: inherit; font-size: .9rem;
}
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.product-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(140,74,90,.12); }
.product-img img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.product-info { padding: 16px 18px 20px; }
.product-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 600; }
.product-info h3 { font-family: var(--font-title); font-weight: 500; font-size: 1.2rem; margin: 4px 0 6px; }
.product-info p { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.product-price { font-weight: 600; }

/* Product page */
.back-link { display: inline-block; margin: 28px 0; color: var(--muted); font-size: .9rem; }
.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-page-img img { border-radius: var(--radius); width: 100%; }
.product-page-info h1 { font-family: var(--font-title); font-weight: 500; font-size: 2.2rem; margin: 6px 0; }
.big-price { font-size: 1.5rem; font-weight: 600; color: var(--accent); }
.description { color: var(--muted); margin: 12px 0 24px; }

.option { margin-bottom: 20px; }
.option label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.option input[type="text"] {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font: inherit; background: var(--card);
}
.option input[type="text"]:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-btn {
  border: 1px solid var(--border); background: var(--card); padding: 9px 16px; border-radius: 10px;
  cursor: pointer; font: inherit; font-size: .9rem;
}
.choice-btn small { color: var(--muted); }
.choice-btn.selected { border-color: var(--accent); background: var(--accent-soft); }
.photo-preview { display: none; width: 120px; height: 120px; object-fit: cover; border-radius: 10px; margin-top: 10px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.qty button { border: none; background: none; width: 40px; height: 40px; font-size: 1.2rem; cursor: pointer; }
.qty span { min-width: 30px; text-align: center; font-weight: 600; }

.form-error { color: #C0392B; font-size: .9rem; min-height: 1.2em; margin-bottom: 8px; }
.btn-primary {
  width: 100%; padding: 15px; border: none; border-radius: 12px; background: var(--accent);
  color: #fff; font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer;
}
.btn-primary:hover { filter: brightness(1.1); }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--text); color: #fff; padding: 12px 22px; border-radius: 999px;
  opacity: 0; transition: .3s; font-size: .9rem;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.site-footer { text-align: center; padding: 30px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--border); }


/* Toast link */
.toast a { color: #F3DDE3; text-decoration: underline; margin-left: 8px; font-weight: 600; }

/* Cart page */
.page-title { font-family: var(--font-title); font-weight: 500; font-size: 2.2rem; margin: 36px 0 24px; }
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.cart-item {
  display: grid; grid-template-columns: 100px 1fr auto; gap: 18px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin-bottom: 16px;
}
.cart-img { width: 100px; height: 100px; object-fit: cover; border-radius: 12px; }
.cart-item-info h3 { font-family: var(--font-title); font-weight: 500; font-size: 1.15rem; margin-bottom: 6px; }
.cart-details { list-style: none; font-size: .88rem; color: var(--muted); }
.cart-details span { color: var(--text); font-weight: 500; }
.cart-photo { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; margin-top: 8px; display: inline-block; }
.remove-btn { background: none; border: none; color: var(--accent); font: inherit; font-size: .85rem; cursor: pointer; margin-top: 8px; padding: 0; text-decoration: underline; display: block; }
.cart-item-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 12px; }
.cart-line-price { font-weight: 600; font-size: 1.05rem; }

.cart-summary {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; position: sticky; top: 90px;
}
.cart-summary h2 { font-family: var(--font-title); font-weight: 500; font-size: 1.3rem; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: .95rem; }
.summary-row.muted { color: var(--muted); }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; font-weight: 600; font-size: 1.1rem; }
.btn-inline { display: block; text-align: center; margin-top: 18px; }
.continue-link { display: block; text-align: center; margin-top: 14px; color: var(--muted); font-size: .9rem; }

.cart-empty { text-align: center; padding: 60px 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.cart-empty h2 { font-family: var(--font-title); font-weight: 500; margin-bottom: 6px; }
.cart-empty p { color: var(--muted); }
.cart-empty .btn-inline { display: inline-block; width: auto; padding: 14px 32px; }

/* Cart counter "pop" when it changes */
.cart-count { display: inline-block; transition: transform .2s; }


/* Checkout page */
.checkout-box {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; margin-bottom: 20px;
}
.checkout-box h2 { font-family: var(--font-title); font-weight: 500; font-size: 1.25rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.step-num { background: var(--accent); color: #fff; width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-family: var(--font-body); font-size: .85rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.option input[type="email"], .option input[type="tel"], .option textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: var(--card);
}
.option textarea { resize: vertical; }
.option input:focus, .option textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }

.pay-option {
  display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 10px; cursor: pointer;
}
.pay-option:has(input:checked) { border-color: var(--accent); background: #FDF6F8; }
.pay-option input { accent-color: var(--accent); margin-top: 4px; }
.pay-option small { display: block; color: var(--muted); font-size: .85rem; }

.card-form { display: none; margin-top: 16px; }
.card-form.show { display: block; }
.test-badge { background: #FFF4D6; color: #7A5B00; border-radius: 8px; padding: 8px 12px; font-size: .8rem; font-weight: 600; margin-bottom: 14px; }
.btn-primary:disabled { opacity: .6; cursor: wait; }

.summary-item { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; padding: 6px 0; }
.summary-item small { display: block; color: var(--muted); font-size: .8rem; }

/* Thank-you page */
.thank-you { max-width: 620px; margin: 50px auto 0; text-align: center; }
.thank-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 2rem; display: grid; place-items: center; margin: 0 auto 16px; }
.thank-you h1 { font-family: var(--font-title); font-weight: 500; font-size: 2.4rem; margin: 6px 0 10px; }
.thank-lead { color: var(--muted); margin-bottom: 28px; }
.thank-card { text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.thank-card h2 { font-family: var(--font-title); font-weight: 500; font-size: 1.25rem; margin-bottom: 10px; }
.thank-meta { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 14px; font-size: .9rem; }
.thank-meta p { display: flex; gap: 12px; padding: 3px 0; }
.thank-meta span { color: var(--muted); min-width: 90px; }
.thank-btn { display: inline-block; width: auto; padding: 14px 32px; margin-top: 24px; }


/* Thank-you buttons */
.thank-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-secondary { display: inline-block; padding: 14px 32px; border-radius: 12px; border: 1px solid var(--accent); color: var(--accent); font-weight: 600; margin-top: 24px; }

/* Track page */
.track-page { max-width: 640px; margin: 0 auto; }
.track-page .page-title { text-align: center; margin-bottom: 6px; }
.track-page .thank-lead { text-align: center; }
.track-loading { text-align: center; color: var(--muted); }
.track-card h2 { font-size: 1.4rem; margin: 6px 0 22px; }
.track-card h2 em { color: var(--accent); }
.track-cancelled { background: #FBEAEA; color: #8A2B2B; padding: 12px 16px; border-radius: 10px; margin-bottom: 10px; }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; position: relative; }
.timeline li { text-align: center; font-size: .82rem; color: var(--muted); position: relative; padding-top: 40px; }
.timeline li::before { content: ""; position: absolute; top: 14px; left: -50%; width: 100%; height: 3px; background: var(--border); z-index: 0; }
.timeline li:first-child::before { display: none; }
.timeline li.done::before, .timeline li.current::before { background: var(--accent); }
.timeline .dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--border); display: grid; place-items: center; font-size: .8rem; color: #fff; z-index: 1; }
.timeline li.done .dot, .timeline li.current .dot { background: var(--accent); border-color: var(--accent); }
.timeline li.current { color: var(--text); font-weight: 600; }
.timeline li.current .dot { box-shadow: 0 0 0 5px var(--accent-soft); }

/* WhatsApp floating button */
.whatsapp-btn {
  position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center; z-index: 50;
  box-shadow: 0 6px 20px rgba(0,0,0,.18); transition: transform .2s;
}
.whatsapp-btn:hover { transform: scale(1.08); }

/* Phones */
@media (max-width: 760px) {
  .product-page { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding-top: 44px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 70px 1fr; }
  .cart-img { width: 70px; height: 70px; }
  .cart-item-side { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .cart-summary { position: static; }
  .timeline li { font-size: .7rem; }
  nav { gap: 14px; font-size: .9rem; }
  .logo { font-size: 1.2rem; }
}
