/* ═══════════════════════════════════════════════════════════════════════════
   CheersBox — Custom Styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- Nav scrolled state (opaque, no bleed-through) --- */
.nav-scrolled {
  background: #1E1B17 !important;
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.08), 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* --- Nav links --- */
.nav-link {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 237, 224, 0.65);
  transition: color 0.25s;
}

.nav-link:hover { color: #C9A84C; }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #C9A84C;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after { width: 100%; }

.mobile-link {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  color: #F3E8D0;
  transition: color 0.2s;
}

.mobile-link:hover { color: #C9A84C; }

/* --- Hamburger --- */
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #F5F0E8;
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.2s;
}

/* --- Buttons (Guinness-inspired — gold on dark, warm fills) --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0C0A08;
  background: linear-gradient(180deg, #D4B94E, #B8963A);
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(184, 150, 58, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #E0C55A, #C9A84C);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(184, 150, 58, 0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(245, 237, 224, 0.6);
  background: transparent;
  border: 1px solid rgba(245, 237, 224, 0.12);
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-ghost:hover {
  color: #C9A84C;
  border-color: rgba(201, 168, 76, 0.35);
  background: rgba(201, 168, 76, 0.05);
  transform: translateY(-1px);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0C0A08;
  background: linear-gradient(180deg, #D4B94E, #B8963A);
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(184, 150, 58, 0.2);
}

.btn-gold:hover {
  background: linear-gradient(180deg, #E0C55A, #C9A84C);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(184, 150, 58, 0.3);
}

.btn-trade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.25rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2A1F17;
  background: linear-gradient(180deg, #F5EDE0, #E8DECE);
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.15);
}

.btn-trade:hover {
  background: linear-gradient(180deg, #fff, #F5EDE0);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

/* --- Product cards (pub-warm, solid) --- */
.product-card {
  overflow: hidden;
  border-radius: 10px;
  background: #2A2622;
  border: 1px solid rgba(245, 237, 224, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
  border-color: rgba(201, 168, 76, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.card-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .card-image { transform: scale(1.05); }

.card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F5EDE0;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 9999px;
}

.card-cta {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #C9A84C;
  transition: color 0.25s;
}

.card-cta:hover { color: #F3E8D0; }

/* --- Pills --- */
.pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(201, 168, 76, 0.5);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: 9999px;
}

/* --- Box cards (2-up, pub warmth) --- */
.box-card {
  min-height: 560px;
  border-radius: 10px;
  border: 1px solid rgba(245, 237, 224, 0.06);
  background: #262220;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.box-card:hover {
  border-color: rgba(201, 168, 76, 0.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(201, 168, 76, 0.05);
}

.box-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: rgba(243, 232, 208, 0.6);
  background: rgba(201, 168, 76, 0.04);
  border-radius: 4px;
  border: 1px solid rgba(201, 168, 76, 0.06);
}

/* --- Why cards (pub vibe) --- */
.why-card {
  padding: 2rem;
  border-radius: 10px;
  background: rgba(38, 34, 32, 0.6);
  border: 1px solid rgba(245, 237, 224, 0.05);
  transition: border-color 0.3s;
}

.why-card:hover { border-color: rgba(201, 168, 76, 0.18); }

.why-icon {
  font-size: 1.75rem;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CELTIC DIVIDERS — Irish knot between sections
   ═══════════════════════════════════════════════════════════════════════════ */
.celtic-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 32px 40px;
  background: #1E1B17;
}

.celtic-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.2), transparent);
}

.celtic-line--green {
  background: linear-gradient(90deg, transparent, rgba(22, 155, 98, 0.25), transparent);
}

.celtic-knot {
  font-size: 1.1rem;
  color: rgba(201, 168, 76, 0.35);
  letter-spacing: 0.1em;
}

.celtic-knot--green {
  color: rgba(22, 155, 98, 0.35);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PUB SHELF — trade band bottles
   ═══════════════════════════════════════════════════════════════════════════ */

.shelf-board-wide {
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  z-index: 5;
  background: linear-gradient(180deg, #4A3828, #2A1F17);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.shelf-board-wide--top { top: 0; }
.shelf-board-wide--bottom { bottom: 0; }

.shelf-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding-bottom: 8px;
  opacity: 0.18;
}

.shelf-bottle {
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgba(245, 240, 232, 0.35), rgba(245, 240, 232, 0.12));
}

.bottle-tall {
  width: 10px;
  height: 48px;
  border-radius: 3px 3px 1px 1px;
}

.bottle-tall::before {
  content: '';
  display: block;
  width: 5px;
  height: 10px;
  margin: 0 auto;
  margin-top: -10px;
  background: rgba(245, 240, 232, 0.28);
  border-radius: 2px 2px 0 0;
}

.bottle-stout {
  width: 14px;
  height: 36px;
  border-radius: 4px 4px 1px 1px;
}

.bottle-stout::before {
  content: '';
  display: block;
  width: 6px;
  height: 7px;
  margin: 0 auto;
  margin-top: -7px;
  background: rgba(245, 240, 232, 0.22);
  border-radius: 2px 2px 0 0;
}

.bottle-wine {
  width: 10px;
  height: 54px;
  border-radius: 2px 2px 1px 1px;
}

.bottle-wine::before {
  content: '';
  display: block;
  width: 4px;
  height: 14px;
  margin: 0 auto;
  margin-top: -14px;
  background: rgba(245, 240, 232, 0.22);
  border-radius: 1px 1px 0 0;
}

.shelf-glass {
  width: 13px;
  height: 28px;
  background: linear-gradient(180deg, rgba(245, 240, 232, 0.06), rgba(245, 240, 232, 0.18));
  border-radius: 1px 1px 4px 4px;
  border-top: 1px solid rgba(245, 240, 232, 0.08);
}

.shelf-glass::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  margin-top: 28px;
  margin-left: -2.5px;
  background: rgba(245, 240, 232, 0.12);
  border-radius: 1px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Misc
   ═══════════════════════════════════════════════════════════════════════════ */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1E1B17; }
::-webkit-scrollbar-thumb { background: #3A3530; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #4A4540; }

::selection {
  background: rgba(201, 168, 76, 0.25);
  color: #F3E8D0;
}

:focus-visible {
  outline: 2px solid #C9A84C;
  outline-offset: 2px;
}

[x-cloak] { display: none !important; }

/* --- Filter pills (shop page) --- */
.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 237, 224, 0.5);
  background: #262220;
  border: 1px solid rgba(201, 168, 76, 0.08);
  border-radius: 9999px;
  transition: all 0.2s;
}

.filter-pill:hover { color: #C9A84C; border-color: rgba(201, 168, 76, 0.25); }
.filter-pill.active { color: #0C0A08; background: linear-gradient(180deg, #D4B94E, #B8963A); border-color: transparent; font-weight: 700; }

.filter-pill-light {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 1.3rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2A2420;
  background: #ffffff;
  border: 2px solid #C9A84C;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s;
}

.filter-pill-light:hover { background: #2A2420; color: #F5EDE0; border-color: #2A2420; }
.filter-pill-light.active { color: #F5EDE0; background: #2A2420; border-color: #2A2420; font-weight: 700; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); }

/* --- Form inputs --- */
.form-input {
  width: 100%;
  border-radius: 6px;
  background: #262220;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #F3E8D0;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus { border-color: #C9A84C; }
.form-input::placeholder { color: rgba(140, 128, 112, 0.5); }

/* --- Line clamp --- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Scroll Reveal
   ═══════════════════════════════════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Light Sections
   ═══════════════════════════════════════════════════════════════════════════ */
.section-light {
  background: #F5EDE0;
  color: #2A2420;
}

.section-light .text-brand-muted { color: #7A7068; }
.section-light .text-brand-cream { color: #2A2420; }

.section-light .product-card {
  background: #FFFDF9;
  border-color: rgba(201, 168, 76, 0.1);
  box-shadow: 0 2px 16px rgba(42, 31, 23, 0.05);
}

.section-light .product-card:hover {
  border-color: rgba(201, 168, 76, 0.25);
  box-shadow: 0 12px 40px rgba(42, 31, 23, 0.08);
}

.section-light .pill {
  color: rgba(28, 25, 21, 0.5);
  border-color: rgba(28, 25, 21, 0.12);
}

.section-light .btn-primary {
  box-shadow: 0 2px 12px rgba(184, 150, 58, 0.2);
}

.section-light .celtic-divider {
  background: #F3E8D0;
}

.section-light .celtic-line {
  background: linear-gradient(90deg, transparent, rgba(42, 31, 23, 0.15), transparent);
}

.section-light .celtic-knot {
  color: rgba(42, 31, 23, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Variant buttons
   ═══════════════════════════════════════════════════════════════════════════ */
.variant-btn {
  min-width: 80px;
  background: rgba(38, 34, 32, 0.6);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Falling Nuts Animation
   ═══════════════════════════════════════════════════════════════════════════ */
.nuts-rain-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

@keyframes nutFall {
  0% { transform: translateY(-30px) rotate(0deg); opacity: 0; }
  15% { opacity: 0.3; }
  85% { opacity: 0.2; }
  100% { transform: translateY(100%) rotate(360deg); opacity: 0; }
}

.falling-nut {
  position: absolute;
  top: -20px;
  animation: nutFall 4s ease-in forwards;
  opacity: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Category cards (home page)
   ═══════════════════════════════════════════════════════════════════════════ */
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: flex-end;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover img {
  transform: scale(1.05);
}
