/* ==========================================================
   KMR Carpets — Design Tokens
   Palette pulled from the logo: ivory silk background,
   antique-gold lettering, deep bronze/espresso text.
   ========================================================== */
:root {
  --cream:        #FBF7EF;
  --cream-dark:   #F0E8D6;
  --silk:         #F7F1E4;
  --ink:          #2A2016;
  --bronze:       #6B4E2E;
  --gold:         #B8863C;
  --gold-light:   #E3C776;
  --gold-dark:    #8A6216;
  --espresso:     #201811;
  --line:         rgba(107, 78, 46, 0.16);

  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Jost', sans-serif;
  --font-label:   'Jost', sans-serif;

  --radius: 2px;
  --shadow-soft: 0 12px 30px rgba(42, 32, 22, 0.10);
  --shadow-lift: 0 20px 45px rgba(42, 32, 22, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 4vw, 1.7rem); }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.eyebrow {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--gold-dark);
  font-weight: 500;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.bg-cream-dark { background: var(--cream-dark); }
.bg-espresso { background: var(--espresso); color: var(--cream); }
.bg-espresso h1, .bg-espresso h2, .bg-espresso h3 { color: var(--cream); }

.text-center { text-align: center; }
.muted { color: var(--bronze); opacity: 0.85; }

/* ---------- Signature element: woven meander divider ----------
   A repeating key/meander pattern referencing carpet weaving,
   used as a section divider and decorative frame accent. */
.weave-divider {
  width: 100%;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='14' viewBox='0 0 56 14'%3E%3Cpath d='M0 12 L0 2 L8 2 L8 8 L16 8 L16 2 L24 2 L24 12 L32 12 L32 2 L40 2 L40 8 L48 8 L48 2 L56 2' fill='none' stroke='%23B8863C' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.8;
  margin: 0 auto;
}

.weave-frame {
  position: relative;
  padding: 6px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  border-radius: var(--radius);
}
.weave-frame > * { border-radius: var(--radius); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

/* Flat, confident antique-gold block — matches the storefront hero button. */
.btn-gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 6px 18px rgba(138, 98, 22, 0.28);
}
.btn-gold:hover {
  background: var(--gold-dark);
  box-shadow: 0 10px 26px rgba(138, 98, 22, 0.36);
}

/* Larger hero variant with a little more presence. */
.btn-hero { padding: 17px 44px; letter-spacing: 0.2em; font-size: 0.82rem; }

.btn-outline {
  background: transparent;
  border-color: var(--gold-dark);
  color: var(--bronze);
}
.btn-outline:hover { background: var(--gold-dark); color: var(--cream); }

/* Cream outline for use on the dark photographic hero. */
.btn-outline-cream {
  background: transparent;
  border: 1px solid rgba(247, 241, 228, 0.55);
  color: var(--cream);
  padding: 15px 32px;
  border-radius: var(--radius);
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.btn-outline-cream:hover { background: rgba(247, 241, 228, 0.12); border-color: var(--cream); }

.btn-dark {
  background: var(--espresso);
  color: var(--cream);
}
.btn-dark:hover { background: var(--ink); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 16px; font-size: 0.7rem; letter-spacing: 0.1em; }

/* ---------- Navbar ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 239, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  max-width: 1180px;
  margin: 0 auto;
}
/* Mobile: hamburger on the left, logo right beside it, cart pushed to the far right. */
.nav-start { display: flex; align-items: center; }
.brand { display: flex; align-items: center; }
.brand img { height: 38px; width: auto; }
.brand-text { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.03em; color: var(--bronze); }
.nav-actions { display: flex; align-items: center; margin-left: auto; }

.nav-links {
  display: none;
  gap: 28px;
  font-family: var(--font-label);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.nav-links a { padding: 6px 0; position: relative; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  color: var(--ink);
  font-size: 1.15rem;
}
.cart-badge {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--gold-dark);
  color: var(--cream);
  font-size: 0.62rem;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-label);
}

.nav-toggle {
  background: none; border: none; font-size: 1.5rem; color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  margin-left: -6px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 8px 20px 20px;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--font-label); }

@media (min-width: 900px) {
  .site-nav-inner { padding: 14px 24px; gap: 24px; }
  .nav-start { display: none; }
  .brand { flex: 0 0 auto; }
  .brand img { height: 44px; }
  /* Links take the middle and stay centered; flex:1 keeps them clear of the
     logo and cart so they never overlap. */
  .nav-links { display: flex; flex: 1 1 auto; justify-content: center; margin: 0; }
  .nav-actions { flex: 0 0 auto; margin-left: 0; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 20%, #ffffff 0%, var(--cream) 45%, var(--cream-dark) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  gap: 36px;
  text-align: center;
}
.hero-logo { width: 150px; margin: 0 auto 8px; opacity: 0.95; }
.hero p.lede {
  max-width: 520px;
  margin: 0 auto;
  color: var(--bronze);
  font-size: 1.05rem;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (min-width: 900px) {
  .hero-inner { text-align: left; grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .hero-copy { text-align: left; }
  .hero p.lede { margin: 0; }
  .hero-ctas { justify-content: flex-start; }
  .hero-logo { margin: 0 0 12px; }
  .hero-visual {
    aspect-ratio: 4/5;
    background: linear-gradient(160deg, var(--gold-light), var(--gold-dark));
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
  }
  .hero-visual img { width: 70%; }
}
.hero-visual { display: none; }
@media (min-width: 900px) { .hero-visual { display: flex; } }

/* ---------- Full-bleed photo hero (homepage) ---------- */
.hero-full {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-color: var(--espresso);
  overflow: hidden;
}
.hero-full .hero-full-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-image: var(--hero-bg-image, none);
}
/* Real <img> used as the hero background — most reliable across servers. */
.hero-full .hero-full-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
/* If the image fails to load, fall back to the warm gradient. */
.hero-full.hero-noimg { background: linear-gradient(160deg, #2a2016 0%, #3a2c1a 45%, #201811 100%); }
.hero-full .hero-full-fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(227,199,118,0.18), transparent 55%),
    linear-gradient(160deg, #2a2016 0%, #3a2c1a 45%, #201811 100%);
}
/* Readability scrim — darker at the base where the copy sits. */
.hero-full::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20,15,10,0.32) 0%, rgba(20,15,10,0.20) 40%, rgba(20,15,10,0.68) 100%);
}
.hero-full-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
  text-align: center;
  color: var(--cream);
}
.hero-full-inner .eyebrow {
  color: var(--gold-light);
  display: block;
  margin-bottom: 18px;
}
.hero-full-inner h1 {
  color: var(--cream);
  font-size: clamp(2.5rem, 9vw, 4.4rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
  margin-bottom: 0.35em;
}
.hero-full-inner p.lede {
  color: rgba(247,241,228,0.9);
  max-width: 440px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}
.hero-full-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 520px) {
  .hero-full { min-height: 82vh; }
  .hero-full-inner { padding: 40px 20px; }
  .hero-full-inner p.lede { font-size: 0.98rem; margin-bottom: 26px; }
  .hero-full-ctas { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; max-width: 320px; margin: 0 auto; }
  .hero-full-ctas .btn,
  .hero-full-ctas .btn-outline-cream { width: 100%; }
  .btn-hero { padding: 16px 32px; }
}

/* ---------- Category strip ---------- */
.cat-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 20px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
  scroll-snap-align: start;
  flex: 0 0 auto;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-label);
  font-size: 0.82rem;
  background: #fff;
  color: var(--bronze);
  transition: background 0.2s, color 0.2s, border-color .2s;
}
.cat-chip.active, .cat-chip:hover {
  background: var(--espresso);
  border-color: var(--espresso);
  color: var(--cream);
}

/* ---------- Product grid & cards ---------- */
.grid-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 400px) { .grid-products { gap: 18px; } }
@media (min-width: 640px) { .grid-products { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
@media (min-width: 1024px) { .grid-products { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.product-thumb {
  aspect-ratio: 1/1;
  background: var(--cream-dark);
  position: relative;
  overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.badge-sale {
  position: absolute; top: 10px; left: 10px;
  background: var(--gold-dark); color: var(--cream);
  font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; font-family: var(--font-label);
}
.product-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-dark); font-family: var(--font-label); }
.product-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.product-price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-now { font-family: var(--font-label); font-weight: 600; font-size: 1.02rem; color: var(--ink); letter-spacing: 0.01em; }

/* Naira symbol is rendered from CSS so no server encoding can corrupt it.
   PHP outputs plain digits inside <span class="naira">…</span>. */
.naira::before { content: "\20A6"; margin-right: 0.05em; }
.price-old { font-size: 0.8rem; color: var(--bronze); text-decoration: line-through; opacity: 0.6; }
.product-actions { padding: 0 14px 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: var(--cream-dark); padding: 56px 0 24px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-grid h4 { color: var(--gold-light); font-family: var(--font-label); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-grid a, .footer-grid p { color: rgba(247, 241, 228, 0.75); font-size: 0.9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(247,241,228,0.12);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: 0.78rem; color: rgba(247, 241, 228, 0.55);
}
.social-row { display: flex; gap: 14px; }
.social-row a { font-size: 1.1rem; color: var(--gold-light); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
label { display: block; font-family: var(--font-label); font-size: 0.8rem; margin-bottom: 6px; color: var(--bronze); }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
textarea { resize: vertical; min-height: 100px; }

.card-panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

/* ---------- Cart ---------- */
.cart-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius); background: var(--cream-dark); }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; width: fit-content; }
.qty-stepper button { background: none; border: none; width: 30px; height: 30px; cursor: pointer; font-size: 1rem; }
.qty-stepper span { width: 28px; text-align: center; font-family: var(--font-label); }

.summary-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; font-family: var(--font-label); }
.summary-line > span:first-child { color: var(--bronze); }
.summary-line > span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary-line.total { font-weight: 600; font-size: 1.15rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.summary-line.total > span:first-child { color: var(--ink); }

/* ---------- Misc utility ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-family: var(--font-label); font-size: 0.9rem; }
.alert-success { background: #E8F3E4; color: #2F6B2A; }
.alert-error { background: #F7E4E0; color: #8A3222; }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 2.6rem; color: var(--gold); margin-bottom: 14px; }

.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table th, table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table th { font-family: var(--font-label); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.06em; color: var(--bronze); }

.status-pill { padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-family: var(--font-label); }
.status-new, .status-pending { background: #FDF0DA; color: #9A6A0C; }
.status-processing { background: #DDEAFB; color: #2A5F9E; }
.status-paid, .status-delivered { background: #E1F3DE; color: #2F6B2A; }
.status-failed, .status-cancelled { background: #F7E1DD; color: #8A3222; }
.status-shipped { background: #ECE1FB; color: #5B379E; }

/* ---------- Admin panel ---------- */
.admin-body { background: var(--cream-dark); min-height: 100vh; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  background: var(--espresso);
  color: var(--cream);
  flex-shrink: 0;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 300;
  overflow-y: auto;
}
.admin-sidebar.open { transform: translateX(0); }
.admin-sidebar .brand-row { display: flex; align-items: center; gap: 10px; padding: 20px; border-bottom: 1px solid rgba(247,241,228,0.1); }
.admin-sidebar .brand-row img { height: 34px; }
.admin-sidebar nav { padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.admin-sidebar nav a {
  padding: 12px 14px; border-radius: var(--radius); color: rgba(247,241,228,0.75);
  font-family: var(--font-label); font-size: 0.9rem; display: flex; align-items: center; gap: 10px;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(184,134,60,0.18); color: var(--gold-light); }

.admin-main { flex: 1; min-width: 0; }
.admin-topbar {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
}
.admin-content { padding: 20px; }

.admin-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 250;
}
.admin-overlay.open { display: block; }

@media (min-width: 992px) {
  .admin-sidebar { position: sticky; transform: translateX(0); }
  .admin-toggle { display: none; }
  .admin-overlay { display: none !important; }
  .admin-content { padding: 28px 32px; }
}

.stat-card {
  background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-soft);
  display: flex; align-items: center; gap: 14px;
}
.stat-card i { font-size: 1.6rem; color: var(--gold-dark); }
.stat-card .stat-value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.stat-card .stat-label { font-size: 0.8rem; color: var(--bronze); font-family: var(--font-label); }

.thumb-sm { width: 46px; height: 46px; object-fit: cover; border-radius: var(--radius); background: var(--cream-dark); }

/* ---------- Fade/reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.in { opacity: 1; transform: translateY(0); }
}

/* ---------- Customer reviews (homepage) ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 640px)  { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; } }

.review-card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin: 0;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.review-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--cream-dark);
  overflow: hidden;
}
.review-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.review-card:hover .review-photo img { transform: scale(1.04); }

.review-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.review-stars { color: var(--gold-dark); font-size: 0.92rem; letter-spacing: 2px; }
.review-body blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--ink);
  position: relative;
}
.review-body blockquote::before {
  content: "\201C";                 /* opening curly quote */
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 2.4rem;
  line-height: 0;
  vertical-align: -0.35em;
  margin-right: 4px;
}
.review-body figcaption {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 6px;
}
.review-name {
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--bronze);
  font-size: 0.95rem;
}
.review-loc {
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
/* Text-only reviews (no photo) get a touch more breathing room. */
.review-card:not(:has(.review-photo)) .review-body { padding-top: 26px; }

/* ---------- Checkout: delivery method selector ---------- */
.delivery-method-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.method-option { cursor: pointer; margin: 0; }
.method-option input { position: absolute; opacity: 0; pointer-events: none; }
.method-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 16px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.method-card i { font-size: 1.5rem; color: var(--bronze); }
.method-title { font-family: var(--font-label); font-weight: 600; color: var(--ink); }
.method-sub { font-size: 0.78rem; color: var(--bronze); }
.method-option input:checked + .method-card {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(184, 134, 60, 0.14);
}
.method-option input:checked + .method-card i { color: var(--gold-dark); }

.pickup-note {
  background: rgba(184, 134, 60, 0.10);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--bronze);
  margin-bottom: 16px;
}
.pickup-note i { color: var(--gold-dark); margin-right: 4px; }
.req-star { color: #b23; }

/* ---------- Out-of-stock product state ---------- */
.badge-oos {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  background: rgba(40, 30, 22, 0.85);
  color: var(--cream);
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
/* Dim the image so out-of-stock items read as unavailable but stay visible. */
.product-card.is-oos .product-thumb img { filter: grayscale(0.55) opacity(0.7); }
.product-card.is-oos .price-now { color: var(--bronze); }

.btn-oos {
  background: var(--cream-dark);
  color: var(--bronze);
  border: 1px solid var(--line);
  cursor: not-allowed;
  opacity: 0.85;
}
.btn-oos:hover { background: var(--cream-dark); box-shadow: none; transform: none; }
