﻿/* ─────────────────────────────────────────────
   Yawdi's — Design System
   Palette from brand screenshots
   ───────────────────────────────────────────── */
:root {
  --cream:       #f9f4ed;
  --cream-dark:  #f0e9de;
  --maroon:      #6b1919;
  --maroon-dark: #4a1010;
  --maroon-mid:  #8b2020;
  --gold:        #c8a84b;
  --warm-text:   #2c1a10;
  --muted:       #7a6555;
  --white:       #ffffff;
  --border:      rgba(107,25,25,0.12);
  --shadow-sm:   0 2px 12px rgba(44,26,16,0.08);
  --shadow-md:   0 8px 32px rgba(44,26,16,0.13);
  --shadow-lg:   0 20px 60px rgba(44,26,16,0.18);
  --radius:      16px;
  --radius-sm:   10px;
  --font-display:"Playfair Display", "Georgia", serif;
  --font-body:   "Inter", "Segoe UI", sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--warm-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Type scale ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--maroon-dark);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }

.script { font-style: italic; display: block; font-size: 1.15em; }

.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--maroon);
  opacity: 0.4;
}
.eyebrow.left { justify-content: flex-start; }
.eyebrow.left::before { display: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-maroon { background: var(--maroon); color: var(--white); }
.btn-maroon:hover { background: var(--maroon-dark); }
.btn-outline { background: transparent; color: var(--maroon); border: 2px solid var(--maroon); }
.btn-outline:hover { background: var(--maroon); color: var(--white); }
.btn-white { background: var(--white); color: var(--maroon); }
.btn-white:hover { background: var(--cream); }
.btn-sm { padding: 10px 22px; font-size: 0.8rem; }

/* ── Site Nav ── */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-text);
}
.nav-left a:hover, .nav-right a:hover { color: var(--maroon); }
.nav-right { justify-content: flex-end; }
.nav-icons { display: flex; gap: 18px; align-items: center; }
.nav-icons a { color: var(--warm-text); display: flex; }
.nav-icons a:hover { color: var(--maroon); }
.nav-wordmark { text-align: center; }
.nav-wordmark a {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 900;
  font-style: italic;
  color: var(--maroon-dark);
  letter-spacing: -0.01em;
  line-height: 1;
}
.nav-underline {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-top: 2px;
}
.nav-underline span {
  display: block;
  height: 1px;
  background: var(--maroon);
  opacity: 0.4;
}
.nav-underline span:nth-child(1) { width: 28px; }
.nav-underline span:nth-child(2) { width: 8px; }
.nav-underline span:nth-child(3) { width: 28px; }
.cart-link { position: relative; }
.cart-badge {
  position: absolute;
  top: -6px; right: -8px;
  background: var(--maroon);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.nav-toggle-input { display: none; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--warm-text); border-radius: 2px; }

/* ── Footer value bar ── */
.footer-bar {
  background: var(--maroon-dark);
  color: rgba(255,255,255,0.88);
  padding: 18px 32px;
}
.footer-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 72px;
}
.footer-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Main site footer ── */
.site-footer {
  background: var(--maroon-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 32px 32px;
}
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  font-style: italic;
  color: var(--white);
  display: block;
  margin-bottom: 10px;
}
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
  font-family: var(--font-body);
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a { font-size: 0.88rem; transition: color 0.15s; }
.footer-col ul a:hover { color: var(--white); }
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s, color 0.15s;
}
.footer-social a:hover { border-color: var(--white); color: var(--white); }
.footer-copy {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.45;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
}

/* ═══════════════════════════
   HOME PAGE
═══════════════════════════ */

/* hero */
.hero-home {
  background: var(--cream-dark);
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
}
.hero-home-text {
  padding: 72px 48px 72px 80px;
}
.hero-home-text h1 { margin-bottom: 16px; }
.hero-home-text p { color: var(--muted); font-size: 1.05rem; max-width: 440px; margin-bottom: 28px; }
.hero-home-images {
  position: relative;
  height: 560px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-home-images img {
  position: absolute;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.22));
}
.hero-jar-main  { width: 320px; bottom: -20px; left: 50%; transform: translateX(-50%); z-index: 3; }
.hero-jar-left  { width: 210px; bottom: 30px; left: 0; z-index: 2; opacity: 0.88; }
.hero-jar-right { width: 210px; bottom: 30px; right: 0; z-index: 2; opacity: 0.88; }

/* product tiles */
.product-strip { padding: 72px 32px; }
.product-strip-inner { max-width: 1200px; margin: 0 auto; }
.product-strip-header { text-align: center; margin-bottom: 48px; }
.product-strip-header p { color: var(--muted); margin-top: 10px; max-width: 480px; margin-left: auto; margin-right: auto; }
.product-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.product-tile {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-tile-img {
  background: radial-gradient(ellipse, #f5ede0 0%, #ede0cc 100%);
  padding: 28px 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
}
.product-tile-img img {
  max-height: 148px;
  width: auto;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.18));
  transition: transform 0.3s;
}
.product-tile:hover .product-tile-img img { transform: scale(1.06) translateY(-4px); }
.product-tile-info { padding: 14px 12px 18px; }
.product-tile-info h3 { font-size: 0.9rem; color: var(--maroon-dark); margin-bottom: 4px; }
.product-tile-info p { font-size: 0.76rem; color: var(--muted); margin-bottom: 10px; line-height: 1.4; }
.product-tile .btn-sm { width: 100%; justify-content: center; font-size: 0.73rem; }

/* promo banner */
.promo-banner {
  background: var(--maroon);
  color: var(--white);
  padding: 56px 80px;
  overflow: hidden;
}
.promo-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.promo-banner-text .eyebrow { color: rgba(255,255,255,0.6); justify-content: flex-start; }
.promo-banner-text .eyebrow::before { display: none; }
.promo-banner-text .eyebrow::after { background: rgba(255,255,255,0.35); }
.promo-banner-text h2 { color: var(--white); margin-bottom: 12px; }
.promo-banner-text p { opacity: 0.85; margin-bottom: 24px; }
.promo-banner-img { display: flex; justify-content: center; align-items: flex-end; }
.promo-banner-img img { max-height: 300px; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35)); }

/* section util */
.section-pad { padding: 72px 32px; }
.section-pad .inner { max-width: 1200px; margin: 0 auto; }
.section-center { text-align: center; margin-bottom: 40px; }
.section-center p { color: var(--muted); margin-top: 8px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* recipe cards */
.recipe-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.recipe-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.recipe-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.recipe-card-img {
  height: 190px;
  overflow: hidden;
  background: var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
}
.recipe-card-img img { width: 100%; height: 100%; object-fit: cover; }
.recipe-card-img.jar-bg { background: radial-gradient(ellipse, #f5ede0 0%, #ede0cc 100%); }
.recipe-card-img.jar-bg img { width: auto; height: 140px; object-fit: contain; }
.recipe-card-body { padding: 18px; }
.recipe-tag {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--maroon);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.recipe-card-body h3 { font-size: 0.98rem; margin-bottom: 5px; }
.recipe-card-body > p { font-size: 0.83rem; color: var(--muted); }
.recipe-made-with { margin-top: 9px; font-size: 0.76rem; color: var(--muted); }
.recipe-made-with span { color: var(--maroon); font-weight: 600; }
.recipe-stats { display: flex; gap: 12px; margin-top: 9px; color: var(--muted); font-size: 0.78rem; }
.recipe-stat { display: flex; align-items: center; gap: 4px; }

/* about strip */
.about-strip { background: var(--cream-dark); padding: 72px 32px; }
.about-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-strip-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  max-height: 420px;
}
.about-strip-text .eyebrow { justify-content: flex-start; }
.about-strip-text .eyebrow::before { display: none; }
.about-strip-text h2 { margin-bottom: 14px; }
.about-strip-text p { color: var(--muted); margin-bottom: 14px; }

/* ═══════════════════════════
   COMMUNITY PAGE
═══════════════════════════ */
.community-hero {
  background: var(--cream-dark);
  min-height: 400px;
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  overflow: hidden;
  align-items: center;
}
.community-hero-left { padding: 64px 48px 64px 80px; }
.community-hero-left .eyebrow { justify-content: flex-start; }
.community-hero-left .eyebrow::before { display: none; }
.community-hero-left h1 { margin-bottom: 14px; }
.community-hero-left p { color: var(--muted); max-width: 400px; margin-bottom: 24px; }
.community-hero-right { position: relative; overflow: hidden; height: 400px; }
.community-hero-right img { width: 100%; height: 100%; object-fit: cover; }
.community-hero-right::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 80px;
  background: linear-gradient(to right, var(--cream-dark), transparent);
}

/* controls */
.community-controls { max-width: 1200px; margin: 0 auto; padding: 28px 32px 0; }
.community-controls-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 2px solid var(--border);
}
.community-tabs { display: flex; }
.tab-btn {
  background: none; border: none;
  padding: 11px 20px;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
  font-family: var(--font-body);
}
.tab-btn.active { color: var(--maroon); border-bottom-color: var(--maroon); }
.tab-btn:hover { color: var(--maroon); }
.sort-select {
  appearance: none;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 28px 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-family: var(--font-body);
  color: var(--warm-text);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%237a6555'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  margin-bottom: 6px;
}

/* community grid */
.community-grid-wrap { max-width: 1200px; margin: 0 auto; padding: 30px 32px 0; }
.community-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.community-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.community-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.community-card-img { height: 185px; overflow: hidden; position: relative; }
.community-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.community-card:hover .community-card-img img { transform: scale(1.04); }
.card-heart-btn {
  position: absolute;
  top: 10px; right: 10px;
  width: 30px; height: 30px;
  background: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.15s;
  border: none;
}
.card-heart-btn:hover { color: var(--maroon); }
.community-card-body { padding: 15px; }
.community-handle { font-size: 0.7rem; color: var(--muted); margin-bottom: 5px; }
.community-card-body h3 { font-size: 0.93rem; margin-bottom: 4px; }
.community-card-body > p { font-size: 0.8rem; color: var(--muted); margin-bottom: 7px; line-height: 1.45; }
.community-made-with { font-size: 0.73rem; color: var(--muted); margin-bottom: 9px; }
.community-made-with span { color: var(--maroon); font-weight: 600; }
.community-card-footer { display: flex; gap: 12px; font-size: 0.76rem; color: var(--muted); }
.community-card-footer span { display: flex; align-items: center; gap: 4px; }

.load-more-wrap { text-align: center; padding: 40px 0 60px; }

/* community CTA */
.community-cta { background: var(--cream-dark); }
.community-cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 280px;
}
.community-cta-img { height: 280px; overflow: hidden; }
.community-cta-img img { width: 100%; height: 100%; object-fit: cover; }
.community-cta-text { padding: 48px 56px; }
.community-cta-text h2 { margin-bottom: 10px; font-size: 1.7rem; }
.community-cta-text p { color: var(--muted); margin-bottom: 20px; }

/* ═══════════════════════════
   RESPONSIVE
═══════════════════════════ */
@media (max-width: 1024px) {
  .product-tiles { grid-template-columns: repeat(3, 1fr); }
  .recipe-row { grid-template-columns: repeat(2, 1fr); }
  .community-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-left {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    padding: 6px 24px 14px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border);
  }
  .nav-left.open { display: flex; }
  .nav-left a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-left a:last-child { border-bottom: none; }
  .nav-inner { grid-template-columns: auto 1fr auto; }
  .nav-hamburger { display: flex; }
  .nav-right { justify-content: flex-end; }
  .hero-home, .community-hero { grid-template-columns: 1fr; }
  .hero-home-images { height: 300px; }
  .hero-jar-main { width: 200px; }
  .hero-jar-left, .hero-jar-right { width: 130px; }
  .promo-banner-inner, .about-strip-inner, .community-cta-inner { grid-template-columns: 1fr; }
  .promo-banner { padding: 48px 24px; }
  .footer-bar-inner { flex-direction: column; gap: 16px; }
  .site-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .product-tiles { grid-template-columns: repeat(2, 1fr); }
  .community-grid { grid-template-columns: 1fr; }
  .hero-home-text, .community-hero-left { padding: 44px 20px; }
  .section-pad { padding: 48px 20px; }
  .recipe-row { grid-template-columns: 1fr; }
  .community-cta-text { padding: 36px 20px; }
}

/* ═══════════════════════════
   SEARCH OVERLAY
═══════════════════════════ */
#yw-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
#yw-search-overlay.open { display: block; }

.yw-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 26, 16, 0.55);
  backdrop-filter: blur(3px);
  animation: yw-fade-in 0.2s ease;
}

.yw-search-panel {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, 96vw);
  max-height: 80vh;
  background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: yw-slide-down 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes yw-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes yw-slide-down {
  from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}
@keyframes yw-slide-left {
  from { transform: translateX(100%); }
  to   { transform: translateX(0);    }
}

.yw-search-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.yw-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  color: var(--muted);
}
#yw-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--warm-text);
  background: transparent;
}
#yw-search-input::placeholder { color: var(--muted); }
#yw-search-input::-webkit-search-cancel-button { cursor: pointer; }

.yw-search-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.yw-search-close:hover { color: var(--maroon); background: var(--cream-dark); }

.yw-search-results { overflow-y: auto; padding: 4px 0; }

.yw-search-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.yw-search-item:last-child { border-bottom: none; }
.yw-search-item:hover { background: var(--cream); }

.yw-search-item-link {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  color: inherit;
}
.yw-search-item-img {
  width: 58px;
  height: 58px;
  background: var(--cream-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.yw-search-item-img img { max-height: 50px; width: auto; object-fit: contain; }

.yw-search-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.yw-search-item-type {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--maroon);
}
.yw-search-item-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--warm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yw-search-item-price {
  font-size: 0.82rem;
  color: var(--muted);
}
.yw-search-item-price em { font-style: normal; }

.yw-hl { background: #ffe17a; color: inherit; border-radius: 2px; padding: 0 1px; }

.yw-search-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.yw-search-add-btn { flex-shrink: 0; }

/* ═══════════════════════════
   CART DRAWER
═══════════════════════════ */
#yw-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
#yw-cart-drawer.open { display: block; }

.yw-cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 26, 16, 0.45);
  backdrop-filter: blur(2px);
  animation: yw-fade-in 0.2s ease;
}

.yw-cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(400px, 96vw);
  background: var(--white);
  box-shadow: -6px 0 40px rgba(44, 26, 16, 0.18);
  display: flex;
  flex-direction: column;
  animation: yw-slide-left 0.26s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.yw-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.yw-cart-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--maroon-dark);
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.yw-cart-count {
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--muted);
}
.yw-cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.yw-cart-close:hover { color: var(--maroon); background: var(--cream-dark); }

.yw-cart-body { flex: 1; overflow-y: auto; padding: 4px 0; }

.yw-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 100%;
  min-height: 240px;
  color: var(--muted);
  text-align: center;
  padding: 40px 20px;
}
.yw-cart-empty p { font-size: 0.95rem; }

.yw-cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}
.yw-cart-item:last-child { border-bottom: none; }

.yw-cart-item-img {
  width: 66px;
  height: 66px;
  background: var(--cream-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.yw-cart-item-img img { max-height: 58px; width: auto; object-fit: contain; }

.yw-cart-item-details { flex: 1; min-width: 0; }
.yw-cart-item-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--warm-text);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yw-cart-item-size {
  font-size: 0.74rem;
  color: var(--muted);
  margin: 0 0 10px;
}

.yw-qty-row { display: flex; align-items: center; gap: 8px; }
.yw-qty-btn {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--border);
  background: var(--cream);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-text);
  transition: background 0.12s, border-color 0.12s;
  line-height: 1;
  padding: 0;
}
.yw-qty-btn:hover { background: var(--cream-dark); border-color: var(--maroon); }
.yw-qty-display {
  font-size: 0.88rem;
  font-weight: 600;
  min-width: 22px;
  text-align: center;
}

.yw-cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.yw-cart-item-total {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--maroon-dark);
}
.yw-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: color 0.12s, background 0.12s;
}
.yw-remove-btn:hover { color: var(--maroon); background: var(--cream-dark); }

.yw-cart-footer {
  padding: 18px 22px 24px;
  border-top: 1px solid var(--border);
  background: var(--cream);
  flex-shrink: 0;
}
.yw-cart-totals { display: flex; flex-direction: column; gap: 9px; }
.yw-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--warm-text);
}
.yw-grand-total {
  font-weight: 700;
  font-size: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 4px;
}

/* ═══════════════════════════
   SHOPIFY CART DRAWER (shopify-cart.js)
   Same look as the drawer above; shopify-cart.js builds different markup.
═══════════════════════════ */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(44, 26, 16, 0.45);
  backdrop-filter: blur(2px);
  animation: yw-fade-in 0.2s ease;
}
.cart-overlay[hidden] { display: none; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1001;
  height: 100%;
  width: min(400px, 96vw);
  background: var(--white);
  box-shadow: -6px 0 40px rgba(44, 26, 16, 0.18);
  display: none;
  flex-direction: column;
}
.cart-drawer.open {
  display: flex;
  animation: yw-slide-left 0.26s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-drawer-head h3 {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--maroon-dark);
  margin: 0;
}
.cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.cart-close:hover { color: var(--maroon); background: var(--cream-dark); }

.cart-drawer-body { flex: 1; overflow-y: auto; padding: 4px 0; }

.cart-empty {
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 60px 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 66px;
  height: 66px;
  background: var(--cream-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.cart-item-img img { max-height: 58px; max-width: 100%; width: auto; object-fit: contain; }

.cart-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cart-item-info strong {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--warm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-variant { font-size: 0.74rem; color: var(--muted); }
.cart-item-price { font-weight: 700; font-size: 0.9rem; color: var(--maroon-dark); margin-bottom: 6px; }

.cart-qty { display: flex; align-items: center; gap: 8px; }
.cart-qty button {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--border);
  background: var(--cream);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-text);
  transition: background 0.12s, border-color 0.12s;
  line-height: 1;
  padding: 0;
}
.cart-qty button:hover { background: var(--cream-dark); border-color: var(--maroon); }
.cart-qty span { font-size: 0.88rem; font-weight: 600; min-width: 22px; text-align: center; }

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 4px;
  align-self: flex-start;
  transition: color 0.12s, background 0.12s;
}
.cart-item-remove:hover { color: var(--maroon); background: var(--cream-dark); }

.cart-drawer-foot {
  padding: 18px 22px 24px;
  border-top: 1px solid var(--border);
  background: var(--cream);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  color: var(--warm-text);
}
.cart-checkout:disabled { opacity: 0.6; cursor: default; }
.cart-foot-note { font-size: 0.74rem; color: var(--muted); text-align: center; margin: 0; }

/* Option picker on shop cards (gift card amounts) */
.variant-picker { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.variant-pill { position: relative; cursor: pointer; }
.variant-pill input { position: absolute; opacity: 0; pointer-events: none; }
.variant-pill span {
  display: inline-block;
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--warm-text);
  background: var(--white);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.variant-pill:hover span { border-color: var(--maroon); }
.variant-pill input:checked + span { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.variant-pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ═══════════════════════════
   MERCH BAND (shop.html)
═══════════════════════════ */
.merch-section { background: var(--maroon-dark); color: #fff; padding: 80px 32px 88px; }
.merch-inner { max-width: 1100px; margin: 0 auto; }
.merch-header { text-align: center; margin-bottom: 44px; }
.merch-header .eyebrow { color: var(--gold, #c9a24b); }
.merch-header h2 { color: #fff; }
.merch-header h2 em { color: var(--gold, #c9a24b); }
.merch-header p { color: rgba(255,255,255,0.72); max-width: 480px; margin: 12px auto 0; }
.merch-loading { grid-column: 1 / -1; text-align: center; color: rgba(255,255,255,0.6); padding: 40px 0; }

.merch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.merch-card {
  position: relative;
  min-height: 440px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #3a1010;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}
.merch-card > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.merch-card:hover > img { transform: scale(1.04); }
.merch-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,8,8,0) 35%, rgba(30,8,8,0.55) 60%, rgba(30,8,8,0.92) 100%);
  pointer-events: none;
}
.merch-card-body { position: relative; z-index: 1; padding: 28px; width: 100%; }
.merch-card-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold, #c9a24b);
}
.merch-card-body h3 { font-family: var(--font-display); font-size: 1.6rem; color: #fff; margin: 6px 0 8px; }
.merch-card-body p { color: rgba(255,255,255,0.8); font-size: 0.9rem; line-height: 1.55; margin: 0 0 18px; max-width: 34ch; }
.merch-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.merch-card-price { font-size: 1.15rem; font-weight: 700; color: #fff; }
.merch-card-btn { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.85); }
.merch-card-btn:hover { background: #fff; color: var(--maroon-dark); }

@media (max-width: 720px) {
  .merch-section { padding: 60px 16px 68px; }
  .merch-grid { grid-template-columns: 1fr; }
  .merch-card { min-height: 380px; }
}

/* "Add to Cart" success flash */
.btn-added { background: #2d7a2d !important; color: #fff !important; }

/* Product tile two-button row */
.product-tile-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Shared inline form error style (used by admin.html's passcode gate) */
.yw-acct-error {
  font-size: 0.82rem;
  color: #c0392b;
  background: #fdf3f2;
  border: 1px solid #f5c6c0;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 14px;
  line-height: 1.45;
}

