@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/PlayfairDisplay.woff2') format('woff2');
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/EBGaramond-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/EBGaramond-SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/EBGaramond-Italic.ttf') format('truetype');
}
* {
  box-sizing: border-box;
}
body {
  font-family: 'EB Garamond', 'Georgia', serif;
  margin: 0;
  color: #2b1a10;
  background: #faf3ea;
}
h1, h2, h3, .site-title {
  font-family: 'Playfair Display', 'Georgia', serif;
}
.site-header {
  background: #3b2314;
  padding: 1rem;
}
.site-title {
  color: #f2d9b1;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.site-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}
main {
  padding: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.site-footer {
  text-align: center;
  padding: 1rem;
  color: #7a6653;
  font-size: 0.85rem;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.filters input, .filters select, .filters button {
  padding: 0.4rem 0.6rem;
  border: 1px solid #c9b79b;
  border-radius: 4px;
}
.filters button {
  background: #8a5a2b;
  color: #fff;
  cursor: pointer;
}
.cigar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 700px) {
  .cigar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.cigar-card {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid #e3d5c0;
  border-radius: 8px;
  padding: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.cigar-card .cigar-photo {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #f2ece0;
  border-radius: 4px;
}
.cigar-card h3 {
  font-size: 1rem;
  margin: 0.5rem 0 0.25rem;
}
.cigar-meta {
  color: #7a6653;
  font-size: 0.85rem;
  margin: 0;
}
table.cigar-params {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  color: #5a4a3a;
  margin: 0.5rem 0;
}
table.cigar-params th {
  text-align: left;
  font-weight: normal;
  padding: 0.2rem 0.5rem 0.2rem 0;
  white-space: nowrap;
}
table.cigar-params td {
  width: 100%;
  padding: 0.2rem 0;
  text-align: right;
}
.cigar-price {
  font-weight: bold;
  color: #8a5a2b;
  margin: 0;
}

/* Background colors depending on the cut ("corte") of the tobacco */
.cigar-photo.cut-ribbon       { background: #f4e9d8; }
.cigar-photo.cut-ready-rubbed { background: #e8f0e2; }
.cigar-photo.cut-flake        { background: #e6eef7; }
.cigar-photo.cut-coarse       { background: #f7e6ea; }
.cigar-photo.cut-loose        { background: #fdf3d9; }
.cigar-photo.cut-mixture      { background: #e9e3f7; }
.cigar-photo.cut-cubo         { background: #e0f3f1; }
.cigar-photo.cut-other        { background: #f2ece0; }

.cigar-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.cut-label {
  margin: 0;
  font-size: 0.75rem;
  color: #7a6653;
  text-align: right;
}

.brand-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  border: 1px solid #e3d5c0;
  padding: 3px;
  z-index: 2;
}
.brand-badge-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
  color: #fff;
  background: #8a5a2b;
}
.cigar-photo-wrap {
  position: relative;
  display: inline-block;
}
.cigar-detail-main {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cigar-detail-main img {
  max-width: 320px;
  border-radius: 8px;
  background: #f2ece0;
  object-fit: contain;
}
.cigar-detail-main .brand-badge {
  width: 56px;
  height: 56px;
}
.cigar-detail-info table {
  border-collapse: collapse;
  margin-top: 1rem;
}
.cigar-detail-info th {
  text-align: left;
  padding: 0.3rem 0.6rem 0.3rem 0;
  color: #7a6653;
}
.cigar-detail-info td {
  padding: 0.3rem 0;
}
.level-bar {
  display: inline-flex;
  gap: 3px;
  vertical-align: middle;
}
.level-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e3d5c0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
}
.level-dot.filled {
  background: #f2ce8e;
}

.age-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3b2314;
  padding: 1rem;
}
.age-gate-box {
  background: #faf3ea;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.age-gate-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}
.age-gate-box h1 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  color: #3b2314;
}
.age-gate-question {
  font-weight: 600;
  font-size: 1.1rem;
  margin: 1.2rem 0 0.8rem;
}
.age-gate-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}
.age-gate-yes, .age-gate-no {
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.age-gate-yes {
  background: #8a5a2b;
  color: #fff;
}
.age-gate-no {
  background: transparent;
  color: #7a6653;
  border: 1px solid #c9b79b;
}
.age-gate-legal {
  font-size: 0.75rem;
  color: #7a6653;
  margin-top: 1rem;
}

