:root {
  --bordeaux: #6E1E2B;
  --bordeaux-dark: #551520;
  --gold: #C8962E;
  --cream: #FCF6F2;
  --rose: #F6E2D7;
  --ink: #3C1A10;
  --muted: #7A5A50;
  --line: #ECD9CE;
  --white: #FFFFFF;
  --shadow: 0 6px 24px rgba(60, 26, 16, 0.08);
  --radius: 14px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--bordeaux); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); color: var(--bordeaux); line-height: 1.25; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 40px 20px; }
.center-block { text-align: center; }

/* --- Header --- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { border-radius: 10px; }
.brand-name { font-family: var(--serif); font-weight: bold; font-size: 20px; color: var(--bordeaux); }
.main-nav { display: flex; gap: 22px; margin-left: 8px; }
.main-nav a { color: var(--ink); font-weight: 600; }
.main-nav a:hover { color: var(--bordeaux); }
.search { margin-left: auto; display: flex; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.search input { border: 0; background: transparent; padding: 9px 16px; font: inherit; min-width: 160px; outline: none; }
.search button { border: 0; background: transparent; padding: 0 14px; cursor: pointer; font-size: 15px; }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--bordeaux), var(--bordeaux-dark));
  color: var(--white);
}
.hero-inner { padding: 64px 20px; }
.hero-text { max-width: 640px; }
.hero h1 { color: var(--white); font-size: 44px; margin: 0 0 14px; }
.hero p { font-size: 18px; color: rgba(255,255,255,0.9); margin: 0 0 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary, .btn-ghost, .btn-whatsapp {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: #b9861f; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-ghost:hover { border-color: var(--white); }
.btn-whatsapp { background: #25D366; color: #073; margin-top: 12px; }

/* --- Sections --- */
.section-title { font-size: 26px; margin: 0 0 18px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.see-all { font-weight: 700; }
.page-title { font-size: 32px; margin: 0 0 22px; }

.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow); }
.chip:hover { border-color: var(--gold); color: var(--bordeaux); }

/* --- Banners --- */
.banner-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.banner-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 180px; background: var(--rose); box-shadow: var(--shadow); display: flex; align-items: flex-end; }
.banner-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-caption { position: relative; padding: 16px; width: 100%; color: var(--white); background: linear-gradient(transparent, rgba(60,26,16,0.75)); }
.banner-caption strong { display: block; font-family: var(--serif); font-size: 19px; }
.banner-caption span { font-size: 14px; opacity: 0.9; }

/* --- Product grid --- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(60,26,16,0.14); }
.card-media { position: relative; aspect-ratio: 3 / 4; background: var(--rose); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.no-image { display: flex; align-items: center; justify-content: center; height: 100%; font-family: var(--serif); font-size: 28px; color: var(--bordeaux); opacity: .4; background: var(--rose); }
.badge-promo { position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; z-index: 2; }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.card-cat { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.card-name { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink); margin: 0; line-height: 1.35; }
.card-price { margin-top: auto; display: flex; gap: 10px; align-items: baseline; }
.price-now { font-weight: 800; color: var(--bordeaux); font-size: 17px; }
.price-was { text-decoration: line-through; color: var(--muted); font-size: 14px; }

.empty { color: var(--muted); font-size: 17px; }
.result-count { color: var(--muted); margin: -4px 0 16px; }

/* --- Filters / pager --- */
.filters { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.filters label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.filters select { font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); min-width: 180px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 34px; }
.pager a { font-weight: 700; }
.pager-info { color: var(--muted); }

/* --- Product detail --- */
.crumbs { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--bordeaux); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: start; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--rose); aspect-ratio: 3 / 4; box-shadow: var(--shadow); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main.no-image { display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 48px; color: var(--bordeaux); opacity: .4; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { width: 68px; height: 84px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--rose); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--gold); }

.product-info h1 { font-size: 30px; margin: 6px 0 14px; }
.detail-price { display: flex; gap: 14px; align-items: baseline; margin-bottom: 14px; }
.detail-price .price-now { font-size: 26px; }
.detail-price .price-was { font-size: 18px; }
.stock { font-weight: 700; font-size: 14px; margin: 0 0 20px; }
.stock.in { color: #1a7f45; }
.stock.out { color: #b23b3b; }
.variant-block { margin-bottom: 18px; }
.variant-label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--line); }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.size-pill { border: 1px solid var(--line); border-radius: 8px; padding: 7px 14px; font-weight: 700; background: var(--white); }
.description { margin: 24px 0; }
.description h2 { font-size: 18px; margin: 0 0 8px; }
.description p { color: var(--ink); margin: 0; }
.buy-box { margin-top: 26px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.buy-box p { margin: 0 0 6px; }

/* --- Download strip + store buttons --- */
.download-strip { background: var(--rose); }
.download-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 36px 20px; flex-wrap: wrap; }
.download-text h2 { margin: 0 0 6px; font-size: 24px; }
.download-text p { margin: 0; color: var(--muted); }
.store-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--white);
  padding: 10px 20px; border-radius: 12px; min-width: 190px;
}
.store-btn:hover { background: #2a120a; }
.store-btn.is-soon { background: #9b8178; cursor: default; }
.store-icon { font-size: 22px; line-height: 1; }
.store-label { display: flex; flex-direction: column; font-weight: 700; font-size: 17px; line-height: 1.15; }
.store-label small { font-weight: 500; font-size: 11px; opacity: .85; text-transform: uppercase; letter-spacing: .03em; }

/* --- Footer --- */
.site-footer { background: var(--bordeaux-dark); color: rgba(255,255,255,0.85); margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 46px 20px 28px; }
.footer-brand .brand-name { color: var(--white); }
.site-footer h3 { color: var(--white); font-size: 15px; margin: 0 0 12px; font-family: var(--sans); text-transform: uppercase; letter-spacing: .05em; }
.site-footer a { color: rgba(255,255,255,0.85); display: block; margin-bottom: 8px; }
.site-footer a:hover { color: var(--gold); }
.site-footer .muted { color: rgba(255,255,255,0.65); margin: 6px 0; }
.copyright { border-top: 1px solid rgba(255,255,255,0.15); padding: 18px 20px; font-size: 13px; color: rgba(255,255,255,0.6); }

/* --- Responsive --- */
@media (max-width: 860px) {
  .product-detail { grid-template-columns: 1fr; gap: 26px; }
  .hero h1 { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .brand { margin-right: auto; }
  .brand-name { font-size: 18px; }
  .search { order: 2; width: 100%; margin-left: 0; }
  .search input { flex: 1; min-width: 0; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; margin-left: 0; gap: 0; }
  .header-inner { gap: 12px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .download-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .store-btn { min-width: 0; flex: 1; }
}
