:root {
  --ink: #20221e;
  --muted: #66706a;
  --line: #dcd7ca;
  --paper: #f6f2e8;
  --surface: #fffdf9;
  --leaf: #275445;
  --leaf-2: #3d715d;
  --amber: #b88335;
  --wine: #7d3a31;
  --shadow: 0 18px 44px rgba(37, 31, 22, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,0) 220px),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.top-warning {
  padding: 8px 16px;
  background: #31261f;
  color: #f5e7d2;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  position: sticky;
  top: 0;
  z-index: 60;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px clamp(14px, 4vw, 56px);
  background: rgba(246, 242, 232, .96);
  border-bottom: 1px solid rgba(110, 93, 70, .16);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--leaf);
  font-weight: 850;
  font-size: 20px;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--leaf);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(110, 93, 70, .14);
  border-radius: 8px;
  background: rgba(255,255,255,.62);
}

.site-nav a {
  padding: 7px 11px;
  border-radius: 6px;
  color: #3c443d;
  font-size: 14px;
  line-height: 1.1;
  white-space: nowrap;
}
.site-nav a:hover { background: #eef1ea; color: var(--leaf); }

main { min-height: 68vh; }

.hero {
  min-height: 380px;
  display: grid;
  align-items: end;
  padding: 56px clamp(16px, 6vw, 84px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(21, 34, 28, .96), rgba(41, 64, 50, .62), rgba(41, 64, 50, .18)),
    url("/uploads/source/cubancigarwebsite/100-aniversario-lcdh-humidor-f8f7bb07487319-00.jpg") center/cover;
}

.hero-store { min-height: 420px; }
.hero-copy { max-width: 820px; }
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.08;
}
.hero p { margin: 0 0 12px; font-size: 18px; max-width: 720px; }
.eyebrow { margin: 0 0 10px; color: #e7c56a; font-size: 13px; font-weight: 800; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.button,
button {
  border: 0;
  border-radius: 8px;
  background: var(--leaf);
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
}
.button.ghost,
button.ghost {
  background: transparent;
  color: var(--leaf);
  border: 1px solid var(--leaf);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 38px clamp(16px, 5vw, 64px);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.product-results {
  padding: 0 clamp(16px, 5vw, 64px) 34px;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  align-items: stretch;
  gap: 18px;
}

.product-card,
.list-item,
.article-list article,
.reading-panel,
.param-table,
.review-card,
.page-title,
.static-page,
.article-detail {
  background: var(--surface);
  border: 1px solid rgba(110, 93, 70, .18);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(37, 31, 22, .04);
}

.product-card { overflow: hidden; }
.product-card a { display: grid; gap: 12px; padding: 14px; height: 100%; }
.thumb {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #eee9dd;
  border-radius: 6px;
  border: 1px solid rgba(110, 93, 70, .14);
}
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.product-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  min-height: 46px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card p,
.meta,
.source,
.article-link small,
.list-item small,
.store-summary,
.plain-list,
.page-title p { color: var(--muted); }
.product-card p {
  margin: 0;
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}
.product-spec {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  background: #f2f5ef;
  border: 1px solid #e1e6db;
  border-radius: 6px;
}
.product-spec span {
  color: var(--muted);
  font-size: 12px;
}
.product-spec strong {
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.reading-panel {
  align-self: start;
  position: sticky;
  top: 82px;
  padding: 18px;
  background: #eef2e8;
}

.store-meta {
  display: grid;
  gap: 10px;
  margin: 14px 0 16px;
}
.store-meta div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #dfe5d8;
  border-radius: 6px;
}
.store-meta span { color: var(--muted); }
.store-meta strong { color: var(--ink); text-align: right; }
.plain-list { margin: 0; padding-left: 18px; }

.section-band {
  padding: 32px clamp(16px, 5vw, 64px) 44px;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.review-card { padding: 18px; }
.review-card strong { display: block; margin-bottom: 4px; }
.review-card small { color: var(--muted); }

.page-title,
.static-page,
.article-detail {
  padding: 28px clamp(16px, 5vw, 64px);
}

.filters {
  display: grid;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 64px) 24px;
}
.filters-products {
  grid-template-columns: minmax(220px, 1fr) minmax(150px, .45fr) minmax(150px, .45fr) 120px auto;
}
.filters-articles {
  grid-template-columns: minmax(260px, 1fr) auto;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.filters button {
  white-space: nowrap;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 clamp(16px, 5vw, 64px) 48px;
}
.pagination-meta {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.pagination-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.page-btn,
.page-ellipsis {
  min-width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid rgba(110, 93, 70, .22);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
}
.page-btn:hover {
  border-color: var(--leaf);
  color: var(--leaf);
  background: #eef2e8;
}
.page-btn.current {
  border-color: var(--leaf);
  background: var(--leaf);
  color: #fff;
  font-weight: 800;
}
.page-ellipsis {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  padding: 0 4px;
}

.breadcrumb {
  padding: 24px clamp(16px, 5vw, 64px) 0;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(300px, 560px) minmax(0, 1fr);
  gap: 30px;
  padding: 32px clamp(16px, 5vw, 64px);
}
.gallery {
  min-width: 0;
}
.main-product-img {
  width: 100%;
  max-height: 520px;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #eee9dd;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 14px;
}
.thumb-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.thumb-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 6px;
  background: #eee9dd;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.trade-note { display: inline-block; background: #fff3d8; border: 1px solid #e1c477; border-radius: 6px; padding: 8px 10px; }
.param-table { width: 100%; border-collapse: collapse; overflow: hidden; }
.param-table th,
.param-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.param-table th { width: 140px; color: var(--muted); background: #f1f3ee; }
.param-table td { overflow-wrap: anywhere; }
.content-body { padding: 18px clamp(16px, 5vw, 64px) 48px; max-width: 980px; }

.list-grid,
.article-list,
.sitemap-cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 0 clamp(16px, 5vw, 64px) 48px;
}
.list-item,
.article-list article { padding: 18px; }
.article-list {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}
.article-list article a {
  display: grid;
  gap: 8px;
}
.article-list h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}
.article-list p {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.brand-item { text-align: center; }
.brand-logo {
  width: 100%;
  max-width: 220px;
  min-height: 120px;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
  border-radius: 10px;
}
.brand-lettermark {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 18px 12px;
  color: #fff;
  border-radius: 10px;
  font-weight: 800;
}
.brand-lettermark span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255,255,255,.16);
  font-size: 28px;
  line-height: 1;
}
.brand-lettermark small {
  display: block;
  max-width: 100%;
  font-size: 12px;
  line-height: 1.35;
  opacity: .92;
  overflow-wrap: anywhere;
}
.tone-0 { background: linear-gradient(135deg, #2f5d50, #4f816b); }
.tone-1 { background: linear-gradient(135deg, #6b4f2b, #a06e2e); }
.tone-2 { background: linear-gradient(135deg, #4f5867, #7a8796); }
.tone-3 { background: linear-gradient(135deg, #5d3650, #8d5a76); }
.tone-4 { background: linear-gradient(135deg, #4d5533, #7d8850); }
.tone-5 { background: linear-gradient(135deg, #5b4033, #9a6c55); }

.article-detail {
  max-width: 920px;
  margin: 0 auto 36px;
}
.article-detail h1 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.22;
}
.article-detail .meta {
  margin: 0 0 18px;
}
.article-detail .content-body {
  padding: 0;
  max-width: none;
}
.article-detail .breadcrumb {
  padding: 0;
  margin-bottom: 16px;
}
.article-detail .content-body > *:first-child {
  margin-top: 0;
}
.article-detail .content-body p,
.article-detail .content-body li {
  font-size: 17px;
}

.page-title {
  max-width: 980px;
  margin: 24px auto 0;
}
.brand-intro {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  max-width: 980px;
  margin: 24px auto 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid rgba(110, 93, 70, .18);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(37, 31, 22, .04);
}
.brand-intro-logo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.brand-intro-logo.brand-lettermark {
  display: grid;
  background: #2f5d50;
}
.brand-intro-logo.brand-lettermark span {
  width: 58px;
  height: 58px;
}
.brand-intro h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.2;
}
.brand-origin {
  margin: 0 0 8px;
  color: var(--leaf);
  font-weight: 700;
}
.brand-intro p:last-child {
  margin-bottom: 0;
}

.list-grid .list-item {
  display: grid;
  gap: 12px;
}
.sitemap-cols > div {
  display: grid;
  gap: 10px;
}
.sitemap-cols a {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid rgba(110, 93, 70, .18);
  border-radius: 8px;
}

.article-link {
  display: block;
  padding: 12px 0;
  border-top: 1px solid rgba(110, 93, 70, .18);
}
.article-link span { display: block; font-weight: 700; }

.site-footer {
  padding: 28px clamp(16px, 5vw, 64px);
  background: #16231e;
  color: #dfe6df;
}
.site-footer a { color: #fff; }
.site-footer .eeta-notice { margin-top: 12px; font-size: 13px; color: #9aaa9c; }

.age-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(9, 16, 13, .72);
}
.age-modal.show { display: grid; }
.age-dialog {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 8px;
  padding: 26px;
  box-shadow: 0 20px 80px rgba(0,0,0,.35);
}
.age-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 840px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .site-nav.is-open { display: flex; }
  .section-grid,
  .product-detail {
    grid-template-columns: 1fr;
  }
  .product-results {
    grid-template-columns: 1fr;
  }
  .thumb {
    aspect-ratio: 4 / 3;
  }
  .product-specs {
    grid-template-columns: 1fr;
  }
  .reading-panel {
    position: static;
    top: auto;
  }
  .review-grid {
    grid-template-columns: 1fr;
  }
  .filters-products {
    grid-template-columns: 1fr 1fr;
  }
  .filters-products input[name="q"] {
    grid-column: 1 / -1;
  }
  .filters-products button {
    grid-column: 1 / -1;
  }
  .filters-articles {
    grid-template-columns: 1fr;
  }
  .pagination {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .pagination-meta {
    text-align: center;
  }
  .brand-intro {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .brand-intro-logo {
    width: 88px;
    height: 88px;
  }
  .article-detail h1 {
    font-size: 28px;
  }
}
