/* ==========================================================================
   Bellacosashopz — "Vetrina"
   --------------------------------------------------------------------------
   A mosaic showcase, not a ranked list and not an even grid. Large image-led
   tiles of deliberately unequal size, modern sans throughout, soft geometry.
   ========================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --brand-primary:      #2f6f5e;
  --brand-primary-dark: #245849;
  --brand-primary-soft: #e8f2ef;
  --brand-accent:       #d98a3d;
  --brand-accent-dim:   #fbf0e3;
  --brand-success:      #3f7d4e;
  --brand-success-soft: #eaf3ec;

  --brand-ink:   #14201c;
  --brand-ink-2: #4c5b56;
  --brand-ink-3: #7d8b86;
  --brand-line:  #dde7e4;
  --brand-line-2:#eef4f2;

  --brand-bg:    #ffffff;
  --brand-bg-2:  #f2f7f5;

  --brand-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --brand-font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --brand-r:      20px;
  --brand-r-sm:   13px;
  --brand-r-pill: 999px;

  --brand-shadow:    0 2px 6px rgba(20, 32, 28, .06);
  --brand-shadow-lg: 0 14px 36px rgba(20, 32, 28, .12);
  --brand-shadow-hard: 0 0 0 var(--brand-ink);

  --brand-wrap: 1240px;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--brand-font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--brand-ink);
  background: var(--brand-bg);
  -webkit-font-smoothing: antialiased;
}
body.nav-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; letter-spacing: -.025em; margin: 0 0 .45em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--brand-wrap); margin: 0 auto; padding: 0 18px; }

/* ── Top bar ────────────────────────────────────────────────────────────── */
.topbar { background: var(--brand-primary); color: rgba(255,255,255,.92); font-size: .78rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; padding: 10px 18px; }
.topbar b { color: #fff; font-weight: 700; }

/* ── Masthead ───────────────────────────────────────────────────────────── */
.masthead { background: var(--brand-bg); border-bottom: 1px solid var(--brand-line); position: sticky; top: 0; z-index: 20; }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 18px; }
.logo { display: inline-flex; align-items: center; gap: 11px; font-size: 1.32rem; font-weight: 900; letter-spacing: -.03em; color: var(--brand-ink); }
.logo:hover { text-decoration: none; }
.logo-mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  background: var(--brand-primary); color: #fff;
  border-radius: 12px; font-size: 1.2rem; font-weight: 900;
}
.main-nav { display: flex; flex-wrap: wrap; gap: 3px 8px; }
.main-nav a {
  font-size: .9rem; font-weight: 700; color: var(--brand-ink-2);
  padding: 7px 13px; border-radius: var(--brand-r-pill);
}
.main-nav a:hover { background: var(--brand-bg-2); color: var(--brand-primary); text-decoration: none; }
.main-nav a.is-active { background: var(--brand-primary-soft); color: var(--brand-primary-dark); }
.menu-toggle {
  display: none; font: inherit; font-size: .9rem; font-weight: 800;
  background: var(--brand-bg-2); border: 0; border-radius: var(--brand-r-pill);
  color: var(--brand-ink); padding: 9px 16px; cursor: pointer;
}
.nav-overlay { display: none; }

/* ── Category strip ─────────────────────────────────────────────────────── */
.cat-strip { background: var(--brand-bg-2); border-bottom: 1px solid var(--brand-line); }
.cat-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .86rem; font-weight: 700; color: var(--brand-ink-2);
  border: 1px solid var(--brand-line); background: var(--brand-bg);
  border-radius: var(--brand-r-pill); padding: 7px 15px;
}
.cat-chip:hover { border-color: var(--brand-primary); color: var(--brand-primary); text-decoration: none; }
.cat-chip .n { color: var(--brand-ink-3); font-weight: 600; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding: 46px 0 36px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--brand-primary); }
.hero-lead { font-size: 1.12rem; color: var(--brand-ink-2); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 30px; }
.hero-stat strong { display: block; font-size: 1.7rem; font-weight: 900; letter-spacing: -.03em; }
.hero-stat span { font-size: .78rem; font-weight: 600; color: var(--brand-ink-3); }

.hero-pick {
  background: var(--brand-bg-2); border-radius: var(--brand-r);
  padding: 18px; box-shadow: var(--brand-shadow);
}
.hero-pick-tag {
  display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  color: #fff; background: var(--brand-primary); border-radius: var(--brand-r-pill);
  padding: 5px 12px; margin-bottom: 12px;
}
.hero-pick img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border-radius: var(--brand-r-sm); margin-bottom: 14px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--brand-font); font-size: .92rem; font-weight: 800;
  padding: 12px 22px; border: 0; border-radius: var(--brand-r-pill); cursor: pointer;
  transition: background .14s ease, color .14s ease, transform .14s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-primary:hover { background: var(--brand-primary-dark); }
.btn-accent { background: var(--brand-accent); color: #fff; }
.btn-accent:hover { background: var(--brand-ink); }
.btn-ghost { background: var(--brand-bg-2); color: var(--brand-ink); }
.btn-ghost:hover { background: var(--brand-line); }
.btn-white { background: #fff; color: var(--brand-primary-dark); }
.btn-white:hover { background: var(--brand-primary-soft); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

/* ── Bands ──────────────────────────────────────────────────────────────── */
.band { padding: 46px 0; }
.band-tight { padding: 30px 0; }
.band-alt { background: var(--brand-bg-2); }
.band-no-top { padding-top: 0; }
.band-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.band-head h2 { margin: 0; }
.band-link { font-size: .92rem; font-weight: 800; }
.eyebrow { display: inline-block; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--brand-accent); margin-bottom: 8px; }

/* ── Page hero + prose ──────────────────────────────────────────────────── */
.page-hero { padding: 38px 0 26px; }
.page-hero h1 { max-width: 24ch; }
.crumbs { font-size: .84rem; color: var(--brand-ink-3); margin-bottom: 12px; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; font-size: 1.05rem; }
.lede { font-size: 1.14rem; color: var(--brand-ink-2); }
.big-copy { font-size: 1.3rem; line-height: 1.5; color: var(--brand-ink-2); font-weight: 500; }

/* ── Lists ──────────────────────────────────────────────────────────────── */
.plain-list, .tick-list, .warn-list, .spec-list { list-style: none; padding: 0; margin: 0 0 1em; }
.plain-list li, .tick-list li, .warn-list li { position: relative; padding-left: 28px; margin-bottom: 9px; }
.tick-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-primary); font-weight: 900; }
.warn-list li::before { content: "!"; position: absolute; left: 0; display: grid; place-items: center; width: 18px; height: 18px; top: 5px; background: var(--brand-accent-dim); color: var(--brand-accent); border-radius: 50%; font-size: .72rem; font-weight: 900; }
.plain-list li::before { content: "•"; position: absolute; left: 4px; color: var(--brand-primary); font-weight: 900; }
.spec-list li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--brand-line); }
.spec-list .spec { color: var(--brand-ink-3); }

/* ══════════════════════════════════════════════════════════════════════════
   THE VETRINA — mosaic of unequal, image-led tiles. Scoped to .grid-mosaic so
   the shop and guide listings keep a calm, even grid.
   ══════════════════════════════════════════════════════════════════════════ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }

.grid-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; grid-auto-rows: 190px; }

.tile {
  display: flex; flex-direction: column;
  background: var(--brand-bg); border: 1px solid var(--brand-line);
  border-radius: var(--brand-r); overflow: hidden;
  transition: box-shadow .16s ease, transform .16s ease;
}
.tile:hover { box-shadow: var(--brand-shadow-lg); transform: translateY(-2px); }
.tile-media { position: relative; display: block; background: #fff; }
.tile-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.tile-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  background: var(--brand-primary); color: #fff;
  border-radius: var(--brand-r-pill); padding: 5px 11px;
}
.tile-badge.hot { background: var(--brand-accent); }
.tile-body { padding: 15px 17px 17px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile-cat { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-ink-3); }
.tile-body h3 { font-size: 1.05rem; margin: 0; }
.tile-body h3 a { color: var(--brand-ink); }
.tile-summary { font-size: .9rem; color: var(--brand-ink-2); margin: 0; flex: 1; }
.tile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* the mosaic tiles: image-forward, unequal spans */
.grid-mosaic .tile { position: relative; }
.grid-mosaic .tile-media { flex: 1; overflow: hidden; }
.grid-mosaic .tile-media img { height: 100%; aspect-ratio: auto; object-fit: cover; }
.grid-mosaic .tile-body {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(20,32,28,.92), rgba(20,32,28,.55) 55%, rgba(20,32,28,0));
  color: #fff; padding: 40px 16px 14px; gap: 4px;
}
.grid-mosaic .tile-body h3, .grid-mosaic .tile-body h3 a { color: #fff; }
.grid-mosaic .tile-cat { color: rgba(255,255,255,.72); }
.grid-mosaic .tile-summary { display: none; }
.grid-mosaic .tile-actions { display: none; }
.grid-mosaic .tile-badge { background: var(--brand-accent); }

/* the feature tile: 2x2 */
.grid-mosaic .tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.grid-mosaic .tile:nth-child(1) .tile-body { padding: 54px 24px 22px; }
.grid-mosaic .tile:nth-child(1) .tile-body h3 { font-size: 1.6rem; }
.grid-mosaic .tile:nth-child(4) { grid-column: span 2; }

.rating { display: flex; align-items: center; gap: 7px; font-size: .85rem; color: var(--brand-ink-3); }
.grid-mosaic .rating { color: rgba(255,255,255,.82); }
.stars { color: #e8a33d; letter-spacing: .05em; }
.price-row { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.price { font-size: 1.25rem; font-weight: 900; letter-spacing: -.02em; }
.grid-mosaic .price { color: #fff; }
.price-was { font-size: .88rem; color: var(--brand-ink-3); text-decoration: line-through; }
.price-note { font-size: .8rem; color: var(--brand-ink-3); }
.stock { font-size: .78rem; font-weight: 700; color: var(--brand-success); }

/* ── Categories as pillars ──────────────────────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pillar { display: block; padding: 22px; background: var(--brand-bg); border: 1px solid var(--brand-line); border-radius: var(--brand-r); }
.pillar:hover { text-decoration: none; border-color: var(--brand-primary); box-shadow: var(--brand-shadow); }
.pillar .num { display: block; font-size: 1.5rem; font-weight: 900; color: var(--brand-primary); }
.pillar h3 { margin: 4px 0 6px; }
.pillar p { margin: 0; font-size: .88rem; color: var(--brand-ink-2); }

/* ── Deal band / CTA ────────────────────────────────────────────────────── */
.deal-band { background: var(--brand-primary); color: #fff; padding: 44px 0; border-radius: 0; }
.deal-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.deal-band h2 { margin: 0 0 6px; color: #fff; }
.deal-band p { margin: 0; color: rgba(255,255,255,.85); }
.deal-band .eyebrow { color: var(--brand-accent-dim); }
.cta-band { padding: 40px 0; }
.cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 30px; background: var(--brand-bg-2); border-radius: var(--brand-r); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Product detail ─────────────────────────────────────────────────────── */
.buy-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.buy-media { background: var(--brand-bg-2); border-radius: var(--brand-r); overflow: hidden; }
.buy-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.buy-info { display: flex; flex-direction: column; gap: 13px; }
.buy-price .price { font-size: 1.9rem; }
.buy-summary { color: var(--brand-ink-2); }
.buy-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.affiliate-note { font-size: .8rem; color: var(--brand-ink-3); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.count { font-weight: 800; font-size: .95rem; color: var(--brand-ink-3); }
.sep { color: var(--brand-line); padding: 0 6px; }

/* ── Filters / sort ─────────────────────────────────────────────────────── */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 24px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--brand-ink); color: #fff; padding: 46px 0 22px; margin-top: 54px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand .logo { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.72); font-size: .9rem; }
.footer-disclosure { font-size: .8rem !important; color: rgba(255,255,255,.55) !important; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col strong { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-accent); margin-bottom: 3px; }
.footer-col a { color: rgba(255,255,255,.8); font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); }
.footer-bottom p { margin: 0; font-size: .8rem; color: rgba(255,255,255,.55); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (min-width: 861px) {
  .hero-grid { grid-template-columns: 1.3fr .7fr; }
}

@media (max-width: 980px) {
  .grid-mosaic { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; }
  .grid-mosaic .tile:nth-child(4) { grid-column: span 1; }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .buy-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; z-index: 40;
    flex-direction: column; gap: 2px; background: var(--brand-bg);
    border-bottom: 1px solid var(--brand-line); padding: 10px 18px 16px;
  }
  .main-nav.is-open { display: flex; }
  .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(20,32,28,.4); z-index: 30; }
  .nav-overlay.is-open { display: block; }

  .grid-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 12px; }
  .grid-mosaic .tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .hero { padding: 32px 0 26px; }
  .band { padding: 34px 0; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .grid-mosaic { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .grid-mosaic .tile:nth-child(1) { grid-column: span 1; grid-row: span 1; }
}
