:root {
  --gold: #c9a24b;
  --gold-dark: #a8822f;
  --ink: #1c1917;
  --cream: #faf7f2;
  --gray: #6b645c;
  --line: #e8e1d6;
  --danger: #b3261e;
  --red: #c0392b;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- Announcement ---------- */
.announcement-bar {
  background: var(--ink);
  color: #f5ead0;
  text-align: center;
  font-size: 0.85rem;
  padding: 9px 16px;
  letter-spacing: 0.5px;
}
.announcement-bar strong { color: var(--gold); font-size: 0.95rem; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  position: relative;
}
.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 4px;
  color: var(--ink);
}
.logo::after { content: ""; display: block; height: 2px; width: 100%; background: var(--gold); margin-top: 2px; }

.nav { display: flex; gap: 26px; font-size: 0.9rem; font-weight: 500; }
.nav a { color: var(--gray); transition: color 0.2s; }
.nav a:hover { color: var(--ink); }

.cart-btn {
  background: none;
  border: none;
  position: relative;
  color: var(--ink);
  display: flex;
  align-items: center;
  padding: 6px;
}
.cart-count {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--gold);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(201, 162, 75, 0.18), transparent 60%),
    linear-gradient(180deg, #fffdf9, #f6efe3);
  padding: 90px 0 80px;
  text-align: center;
}
.hero-overline {
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--gold-dark);
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-title em { color: var(--gold-dark); font-style: italic; }
.hero-sub {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto 34px;
}
.hero-sub strong { color: var(--danger); }

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.countdown { display: flex; gap: 12px; }
.cd-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 74px;
  padding: 12px 8px;
  box-shadow: 0 6px 18px rgba(28, 25, 23, 0.06);
}
.cd-box span {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
}
.cd-box small { font-size: 0.7rem; letter-spacing: 1.5px; color: var(--gray); text-transform: uppercase; }

.hero-badges {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  font-size: 0.85rem;
  color: var(--gray);
}
.hero-badges span::before { color: var(--gold-dark); }

/* ---------- Benefits strip ---------- */
.benefits { background: #fff; border-bottom: 1px solid var(--line); padding: 22px 0; }
.benefits-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}
.benefit { display: flex; align-items: center; gap: 12px; }
.benefit svg { width: 26px; height: 26px; color: var(--gold-dark); flex-shrink: 0; }
.benefit strong { display: block; font-size: 0.88rem; font-weight: 600; }
.benefit span { font-size: 0.78rem; color: var(--gray); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  border: none;
  border-radius: 4px;
  transition: all 0.2s;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--ink); border: 1px solid var(--gold); }
.btn-light:hover { background: var(--gold); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Sections ---------- */
#catalogo { padding: 70px 0; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 {
  font-family: var(--serif);
  font-size: 2.3rem;
  margin-bottom: 10px;
}
.section-head p { color: var(--gray); }
.section-head strong { color: var(--danger); }

/* ---------- Filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}
.filter-btn {
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray);
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--gold); color: var(--ink); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: #f5ead0; }

/* ---------- Toolbar ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}
.toolbar-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.search-box input {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  min-width: 220px;
  color: var(--ink);
  outline: none;
}
.search-box input:focus { border-color: var(--gold); }
#sort {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  outline: none;
  cursor: pointer;
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 26px;
}
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(28, 25, 23, 0.1); }

.card-discount {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--red);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 4px;
  z-index: 2;
}

.card-img-wrap { background: #f4efe6; padding: 22px; }
.gallery-btn {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
}
.gallery-btn img { height: 210px; object-fit: contain; margin: 0 auto; cursor: zoom-in; }

.thumb-row { display: flex; gap: 8px; margin-top: 12px; }
.thumb {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
  width: 52px;
  height: 52px;
  transition: border-color 0.2s;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.active, .thumb:hover { border-color: var(--gold); }

.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-brand { font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; margin-bottom: 4px; }
.card-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; min-height: 2.8em; }
.card-name a:hover { color: var(--gold-dark); }
.card-tag { font-size: 0.72rem; color: var(--gold-dark); margin-bottom: 12px; font-weight: 600; }
.card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.card-meta .card-tag { margin-bottom: 0; }
.card-size {
  font-size: 0.7rem;
  color: var(--gray);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-price-row { margin-top: auto; margin-bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price-now { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--ink); }

.share-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--gray);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  white-space: nowrap;
  transition: all 0.2s;
}
.share-btn:hover { border-color: var(--gold); color: var(--gold-dark); }

.buy-row { display: flex; gap: 10px; margin-top: 16px; }
.qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.qty button {
  width: 32px;
  height: 44px;
  border: none;
  background: #fff;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1;
}
.qty button:hover { background: var(--cream); }
.qty .qty-val { min-width: 34px; text-align: center; font-weight: 600; font-size: 0.9rem; }

.add-btn {
  flex: 1;
  background: var(--ink);
  color: #f5ead0;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 1px;
  transition: background 0.2s;
  padding: 0 12px;
}
.add-btn:hover { background: var(--gold-dark); color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(560px, 92vw);
  max-height: 82vh;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: #fff;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
}

.card-notes {
  margin: 4px 0 12px;
  font-size: 0.8rem;
  color: var(--gray);
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}
.card-notes summary {
  cursor: pointer;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  user-select: none;
}
.card-notes p { margin: 6px 0 0; line-height: 1.5; }

.wa-btn {
  margin-top: 8px;
  display: block;
  text-align: center;
  background: #25d366;
  color: #fff;
  padding: 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: background 0.2s;
}
.wa-btn:hover { background: #1eb457; }

.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 80;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Promo banner ---------- */
.promo-banner {
  background: var(--ink);
  color: #f5ead0;
  padding: 60px 0;
  text-align: center;
}
.promo-inner h2 { font-family: var(--serif); font-size: 2rem; margin-bottom: 10px; }
.promo-inner p { color: #bdb3a2; margin-bottom: 26px; }

/* ---------- Footer ---------- */
.footer { background: #14110e; color: #d8cfc0; padding-top: 60px; }
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
  padding-bottom: 40px;
}
.footer h3 { font-family: var(--serif); color: #fff; letter-spacing: 3px; margin-bottom: 14px; font-size: 1.3rem; }
.footer h4 { color: var(--gold); letter-spacing: 2px; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 12px; }
.footer-col p { font-size: 0.88rem; color: #bdb3a2; margin-bottom: 8px; }
.footer-col a { display: block; font-size: 0.88rem; color: #bdb3a2; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #2a251f;
  padding: 20px 0;
  text-align: center;
  font-size: 0.78rem;
  color: #8a8072;
}

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  z-index: 90;
}
.cart-overlay.show { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(400px, 92vw);
  background: var(--cream);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
}
.cart-drawer.open { transform: translateX(0); }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.cart-head h3 { font-family: var(--serif); font-size: 1.4rem; }
.cart-close { background: none; border: none; font-size: 2rem; color: var(--gray); line-height: 1; }
.cart-close:hover { color: var(--ink); }

.cart-items { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 18px; }

.cart-item { display: flex; gap: 14px; align-items: center; }
.cart-item img { width: 64px; height: 64px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info .ci-name { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-info .ci-price { font-size: 0.85rem; color: var(--danger); font-weight: 700; }
.ci-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.ci-qty button {
  width: 26px; height: 26px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 5px;
  font-size: 1rem;
  line-height: 1;
}
.ci-qty span { min-width: 24px; text-align: center; font-weight: 600; font-size: 0.9rem; }
.ci-remove { background: none; border: none; color: var(--gray); font-size: 1.1rem; padding: 6px; }
.ci-remove:hover { color: var(--red); }

.cart-foot { border-top: 1px solid var(--line); padding: 20px 24px; }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cart-total strong { font-family: var(--serif); font-size: 1.5rem; color: var(--danger); }
.cart-note { font-size: 0.78rem; color: var(--gray); text-align: center; margin-top: 10px; }

.cart-empty { text-align: center; color: var(--gray); padding: 40px 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink);
  color: #f5ead0;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  z-index: 200;
  opacity: 0;
  transition: all 0.35s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 8px 0;
  }
  .nav a { padding: 12px 20px; font-size: 0.95rem; }
  .hero { padding: 60px 0; }
}