/* ---------- Design tokens (sampled from the reference hero image) ---------- */
:root {
  --cream: #f7f1e3;
  --cream-soft: #f5eee0;
  --maroon: #5c1220;
  --maroon-dark: #440c17;
  --ink: #2e2620;
  --nav-text: #3a3128;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Poppins", "Segoe UI", Arial, sans-serif;

  /* Navbar height — the hero content pushes down by this much so the
     fixed/overlaying navbar never covers the headline. Adjust here if
     the navbar's own padding/logo size changes. */
  --nav-height: clamp(72px, 9vw, 96px);

  /* How far right to nudge the hero text block (headline, subtitle, button).
     0px = flush with the container's normal left edge. Increase to push
     further right, decrease (or set to 0) to pull it back left. */
  --hero-shift-x: 48px;

  /* Letter spacing for the hero headline and the subtitle line beneath it.
     0em = normal. Increase (e.g. 0.05em) for more spread-out text,
     use a negative value (e.g. -0.02em) to tighten it. */
  --hero-title-letter-spacing: 0.075em;
  --hero-subtitle-letter-spacing: 0.06em;

  --feature-bg: #efe6d2;
  --line: rgba(92, 18, 32, 0.18);
  --muted: #7a6f60;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

button { font-family: inherit; }

/* ---------- Navbar ---------- */
.navbar {
  background: var(--cream);
  border-bottom: 1px solid rgba(92, 18, 32, 0.15);
  box-shadow: 0 2px 10px rgba(46, 38, 32, 0.06);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
}

.navbar-inner {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 14px clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
}

.logo img {
  height: clamp(40px, 5vw, 58px);
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 40px);
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: clamp(0.85rem, 0.95vw, 0.98rem);
  font-weight: 500;
  color: var(--nav-text);
  position: relative;
  padding-bottom: 6px;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--maroon);
}

.nav-links a.active {
  color: var(--maroon);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--maroon);
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 24px);
}

.icon-btn {
  position: relative;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn svg {
  width: clamp(18px, 1.6vw, 21px);
  height: clamp(18px, 1.6vw, 21px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  height: clamp(440px, 52vw, 720px);
  overflow: hidden;
  background: var(--cream);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* <picture> is just a swap mechanism for the mobile source — it shouldn't
   participate in layout itself, so the existing img rules keep working
   unchanged whichever source loads. */
.hero-bg picture,
.about-hero-bg picture,
.crafted-card picture {
  display: contents;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% center;
}

/* Scrim: keeps the left side legible over the fabric photo at every width,
   without ever scaling or distorting the image itself. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    var(--cream) 0%,
    var(--cream) 30%,
    rgba(247, 241, 227, 0.82) 42%,
    rgba(247, 241, 227, 0.35) 56%,
    rgba(247, 241, 227, 0) 68%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1600px;
  height: calc(100% - var(--nav-height));
  margin: var(--nav-height) auto 0;
  padding: 0 clamp(20px, 4vw, 56px) 0 calc(clamp(20px, 4vw, 56px) + var(--hero-shift-x));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 1.8vw, 22px);
}

.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--maroon);
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.08;
  letter-spacing: var(--hero-title-letter-spacing);
}

.hero-subtitle {
  margin: 0;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: var(--hero-subtitle-letter-spacing);
}

.hero-subtitle .dot {
  color: var(--maroon);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  background: var(--maroon);
  color: var(--cream);
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  font-weight: 500;
  padding: clamp(12px, 1.4vw, 16px) clamp(22px, 2.4vw, 30px);
  border-radius: 4px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--maroon-dark);
  transform: translateY(-1px);
}

.btn-primary .arrow {
  font-size: 1.1em;
  transition: transform 0.2s ease;
}

.btn-primary:hover .arrow {
  transform: translateX(3px);
}

/* ---------- About page hero ----------
   aspect-ratio is locked to the stored image's own ratio (1774:887) so the
   photo is only ever uniformly scaled, never cropped or stretched — the
   min/max height are just safety bounds for extreme viewport sizes. */
.about-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1774 / 887;
  min-height: 300px;
  max-height: 640px;
  overflow: hidden;
  background: var(--cream);
}

.about-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.about-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    var(--cream) 0%,
    var(--cream) 24%,
    rgba(247, 241, 227, 0.75) 36%,
    rgba(247, 241, 227, 0.25) 48%,
    rgba(247, 241, 227, 0) 60%
  );
}

.about-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1600px;
  height: calc(100% - var(--nav-height));
  margin: var(--nav-height) auto 0;
  padding: 0 clamp(20px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.about-hero-content h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--maroon);
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 1.1;
}

.about-hero-content p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(0.85rem, 1.05vw, 1rem);
  letter-spacing: 0.02em;
}

.about-hero-rule {
  display: block;
  width: 54px;
  height: 2px;
  background: var(--maroon);
  margin-top: 6px;
  opacity: 0.7;
}

/* ---------- Our Story (About page) ---------- */
.our-story {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) clamp(20px, 4vw, 56px);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  margin-bottom: clamp(40px, 5vw, 64px);
}

.story-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.story-text h2 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--maroon);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.25;
}

.story-text p {
  margin: 0 0 clamp(18px, 2.4vw, 26px);
  color: var(--ink);
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  line-height: 1.7;
  max-width: 52ch;
}

.story-image {
  border-radius: 10px;
  overflow: hidden;
}

.story-image img {
  display: block;
  width: 100%;
  height: auto;
}

.story-features {
  background: var(--feature-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: clamp(24px, 3vw, 36px) clamp(16px, 2vw, 24px);
}

.story-feature-item {
  text-align: center;
  padding: 0 clamp(10px, 1.6vw, 22px);
  border-left: 1px solid var(--line);
}

.story-feature-item:first-child {
  border-left: none;
}

.story-feature-item .feature-icon {
  color: var(--maroon);
  margin: 0 auto 12px;
  width: clamp(26px, 2.4vw, 32px);
  height: clamp(26px, 2.4vw, 32px);
}

.story-feature-item .feature-icon svg {
  width: 100%;
  height: 100%;
}

.story-feature-item h3 {
  margin: 0 0 6px;
  font-size: clamp(0.88rem, 1vw, 1rem);
  font-weight: 600;
  color: var(--ink);
}

.story-feature-item p {
  margin: 0;
  font-size: clamp(0.74rem, 0.82vw, 0.8rem);
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- Our Values (About page) ---------- */
.our-values {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) clamp(48px, 6vw, 80px);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.values-image {
  border-radius: 10px;
  overflow: hidden;
}

.values-image img {
  display: block;
  width: 100%;
  height: auto;
}

.values-text h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--maroon);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
}

.values-text h2 .rule-line {
  flex: 1;
  height: 1px;
  background: var(--maroon);
  opacity: 0.55;
}

.values-text > p {
  margin: 0 0 clamp(24px, 3vw, 34px);
  color: var(--ink);
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  line-height: 1.7;
  max-width: 48ch;
}

.values-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.value-item .feature-icon {
  color: var(--maroon);
  margin: 0 0 12px;
  width: clamp(26px, 2.4vw, 32px);
  height: clamp(26px, 2.4vw, 32px);
}

.value-item .feature-icon svg {
  width: 100%;
  height: 100%;
}

.value-item h3 {
  margin: 0 0 6px;
  font-size: clamp(0.88rem, 1vw, 1rem);
  font-weight: 600;
  color: var(--ink);
}

.value-item p {
  margin: 0;
  font-size: clamp(0.74rem, 0.82vw, 0.8rem);
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- Features bar ---------- */
.features-bar {
  background: var(--feature-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.feature-item {
  text-align: center;
  padding: 0 clamp(12px, 2vw, 28px);
  border-left: 1px solid var(--line);
}

.feature-item:first-child {
  border-left: none;
}

.feature-icon {
  color: var(--maroon);
  margin: 0 auto 12px;
  width: clamp(28px, 2.6vw, 34px);
  height: clamp(28px, 2.6vw, 34px);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-item h3 {
  margin: 0 0 6px;
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  font-weight: 600;
  color: var(--ink);
}

.feature-item p {
  margin: 0;
  font-size: clamp(0.78rem, 0.85vw, 0.85rem);
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- Collections ---------- */
.collections {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) clamp(20px, 4vw, 56px);
}

.collections-header {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.collections-header h2 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--maroon);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 26px);
}

.collections-header .rule {
  height: 1px;
  width: clamp(36px, 5vw, 72px);
  background: var(--maroon);
  opacity: 0.55;
}

.collections-header p {
  margin: 0;
  font-size: clamp(0.82rem, 0.95vw, 0.92rem);
  color: var(--muted);
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}

.collection-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 4px 14px rgba(46, 38, 32, 0.08);
}

.collection-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.card-swatch {
  position: absolute;
  inset: 0;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

/* Hidden until site-images.js has checked Firestore for an admin override —
   avoids a flash of the wrong (placeholder) image before the real one loads.
   (No transition declared here — it rides on the transition already set
   above, so it doesn't clobber the hover-zoom transform transition.) */
[data-slot] img,
[data-slot] .card-swatch {
  opacity: 0;
}

[data-slot].img-ready img,
[data-slot].img-ready .card-swatch {
  opacity: 1;
}

.swatch-navy { background: linear-gradient(135deg, #2a3450 0%, #1c243a 55%, #131a2b 100%); }
.swatch-camel { background: linear-gradient(135deg, #c8a276 0%, #ab814f 55%, #8a6539 100%); }
.swatch-charcoal { background: linear-gradient(135deg, #565656 0%, #3c3c3c 55%, #262626 100%); }

.card-swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.08) 55%, rgba(0, 0, 0, 0.12) 100%);
}

.card-label {
  position: absolute;
  inset: 0;
  padding: clamp(14px, 1.8vw, 22px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  text-align: center;
}

/* Only the font color is wine — everything else about this overlay stays
   as above. Change these two to retint the caption text. */
.card-label-glass {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 40px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.32);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 16px rgba(46, 38, 32, 0.12);
}

.card-title {
  position: relative;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--maroon);
  font-size: clamp(0.98rem, 1.2vw, 1.2rem);
  line-height: 1.25;
}

.card-arrow {
  position: relative;
  color: var(--maroon);
  font-size: 1.1rem;
  transition: transform 0.25s ease;
}

.collection-card:hover img,
.collection-card:hover .card-swatch {
  transform: scale(1.06);
}

.collection-card:hover .card-arrow {
  transform: translateY(4px);
}

/* ---------- Crafted for the Modern Gentleman ---------- */
.crafted {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) clamp(48px, 6vw, 80px);
}

.crafted-card {
  position: relative;
  min-height: clamp(150px, 15.5vw, 190px);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cream);
  display: flex;
  align-items: center;
}

.crafted-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% center;
}

/* Guarantees the text stays legible no matter how the photo crops at a
   given width — the image's own built-in fade shifts with the card's
   aspect ratio, this one doesn't. Tune the % stops to move where the
   fade starts/ends; they should straddle .crafted-content's left edge
   (currently 46%, from its width: 54%). */
.crafted-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(247, 241, 227, 0) 0%,
    rgba(247, 241, 227, 0) 26%,
    rgba(247, 241, 227, 0.6) 37%,
    rgba(247, 241, 227, 0.95) 46%,
    var(--cream) 56%,
    var(--cream) 100%
  );
}

.crafted-content {
  position: relative;
  z-index: 2;
  margin-left: auto;
  width: 54%;
  padding: clamp(18px, 2.4vw, 34px) clamp(24px, 4vw, 56px);
}

.crafted-content h2 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--maroon);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.2;
}

.crafted-content p {
  margin: 0 0 clamp(14px, 1.8vw, 20px);
  max-width: 42ch;
  font-size: clamp(0.78rem, 0.95vw, 0.9rem);
  color: var(--ink);
  line-height: 1.5;
}

.btn-compact {
  padding: clamp(9px, 1vw, 11px) clamp(18px, 1.8vw, 22px);
  font-size: clamp(0.78rem, 0.85vw, 0.85rem);
}

/* ---------- Featured Products ---------- */
.featured {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) clamp(48px, 6vw, 80px);
}

.featured-header {
  position: relative;
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.featured-header h2 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--maroon);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 26px);
}

.featured-header .rule {
  height: 1px;
  width: clamp(36px, 5vw, 72px);
  background: var(--maroon);
  opacity: 0.55;
}

.featured-header p {
  margin: 0;
  font-size: clamp(0.82rem, 0.95vw, 0.92rem);
  color: var(--muted);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}

.product-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--cream);
  color: inherit;
  text-decoration: none;
}

.product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: clamp(12px, 1.6vw, 18px);
}

.product-info h3 {
  margin: 0 0 4px;
  font-size: clamp(0.82rem, 0.95vw, 0.92rem);
  font-weight: 500;
  color: var(--ink);
}

.product-price {
  margin: 0 0 clamp(10px, 1.4vw, 14px);
  font-size: clamp(0.82rem, 0.95vw, 0.92rem);
  font-weight: 600;
  color: var(--maroon);
}

.btn-add-cart {
  width: 100%;
  background: var(--maroon);
  color: var(--cream);
  border: none;
  border-radius: 4px;
  padding: clamp(9px, 1.1vw, 12px) 0;
  font-family: inherit;
  font-size: clamp(0.78rem, 0.85vw, 0.85rem);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-add-cart:hover {
  background: var(--maroon-dark);
}

.btn-add-cart:disabled {
  background: var(--muted);
  cursor: not-allowed;
}

/* Sale / stock badges on a product card's image */
.sale-badge,
.stock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}

.sale-badge {
  background: var(--maroon);
  color: var(--cream);
}

.stock-badge {
  top: auto;
  bottom: 10px;
  background: rgba(46, 38, 32, 0.75);
  color: var(--cream);
}

.product-price--sale {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-now { color: var(--maroon); }
.price-was { color: var(--muted); text-decoration: line-through; font-weight: 500; font-size: 0.9em; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--maroon);
}

.cta-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(24px, 3.4vw, 40px) clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  flex-wrap: wrap;
}

.cta-text h2 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--cream);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}

.cta-text p {
  margin: 0;
  color: rgba(247, 241, 227, 0.8);
  font-size: clamp(0.8rem, 0.95vw, 0.9rem);
}

.btn-shop-now {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  color: var(--maroon);
  font-size: clamp(0.82rem, 0.95vw, 0.9rem);
  font-weight: 600;
  padding: clamp(11px, 1.3vw, 14px) clamp(20px, 2.2vw, 26px);
  border-radius: 4px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-shop-now:hover {
  background: #fff;
  transform: translateY(-1px);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream);
}

.footer-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(32px, 4.5vw, 56px) clamp(20px, 4vw, 56px) clamp(24px, 3vw, 36px);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
}

.footer-col {
  border-left: 1px solid var(--line);
  padding-left: clamp(20px, 3vw, 40px);
}

.footer-brand {
  border-left: none;
  padding-left: 0;
  display: flex;
  align-items: flex-start;
}

.footer-brand img {
  height: clamp(48px, 5vw, 60px);
  width: auto;
}

.footer-col h4 {
  margin: 0 0 clamp(12px, 1.6vw, 18px);
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  font-weight: 600;
  color: var(--ink);
}

.footer-col a {
  display: block;
  margin-bottom: clamp(8px, 1.1vw, 12px);
  font-size: clamp(0.78rem, 0.9vw, 0.86rem);
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--maroon);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.social-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  transition: filter 0.25s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
}

/* Each platform glows in a neon version of its own brand color on hover —
   drop-shadow hugs the icon's own silhouette (no background box behind it),
   change the hex values here to retune a glow. */
.social-icon--facebook:hover svg {
  filter: drop-shadow(0 0 4px #1877f2) drop-shadow(0 0 10px rgba(24, 119, 242, 0.75));
}

.social-icon--gmail:hover svg {
  filter: drop-shadow(0 0 4px #ea4335) drop-shadow(0 0 10px rgba(234, 67, 53, 0.7));
}

.social-icon--whatsapp:hover svg {
  filter: drop-shadow(0 0 4px #25d366) drop-shadow(0 0 10px rgba(37, 211, 102, 0.75));
}

.social-icon--tiktok:hover svg {
  filter: drop-shadow(0 0 4px #25f4ee) drop-shadow(0 0 10px rgba(37, 244, 238, 0.75));
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(14px, 1.8vw, 20px) clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  margin: 0;
  font-size: clamp(0.72rem, 0.8vw, 0.8rem);
  color: var(--muted);
}

.footer-bottom .heart {
  color: var(--maroon);
}

.dev-credit {
  border-top: 1px solid var(--line);
  background: var(--feature-bg);
}

.dev-credit p {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px clamp(20px, 4vw, 56px);
  text-align: center;
  font-size: clamp(0.7rem, 0.78vw, 0.78rem);
  color: var(--muted);
}

.dev-credit a {
  color: var(--maroon);
  font-weight: 600;
  text-decoration: none;
}

.dev-credit a:hover { text-decoration: underline; }

/* ---------- Floating glass cart ---------- */
.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--maroon);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform 0.2s ease;
}

.cart-badge.show { transform: scale(1); }

.cart-badge.bump { animation: cartBadgeBump 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }

@keyframes cartBadgeBump {
  0% { transform: scale(1); }
  35% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

.cart-trigger.icon-pop {
  animation: cartIconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cartIconPop {
  0% { transform: scale(1); }
  40% { transform: scale(0.8); }
  70% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* Flying dot that travels from an "Add to Cart" button to the cart icon */
.fly-dot {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--maroon);
  background-size: cover;
  background-position: center;
  pointer-events: none;
  z-index: 950;
  box-shadow: 0 0 10px rgba(92, 18, 32, 0.6);
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(46, 38, 32, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 900;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  position: fixed;
  top: 90px;
  right: clamp(12px, 3vw, 40px);
  width: min(380px, calc(100vw - 24px));
  max-height: min(560px, calc(100vh - 110px));
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  z-index: 901;

  background: rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 20px 60px rgba(46, 38, 32, 0.25),
    0 2px 8px rgba(46, 38, 32, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);

  /* --ox / --oy are set from JS to the cart icon's exact position, so the
     panel visually bursts open FROM the icon rather than just fading in. */
  --ox: 100%;
  --oy: 0%;
  clip-path: circle(2% at var(--ox) var(--oy));
  opacity: 0;
  visibility: hidden;
  transition:
    clip-path 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease,
    visibility 0s linear 0.6s;
}

.cart-panel.open {
  clip-path: circle(150% at var(--ox) var(--oy));
  opacity: 1;
  visibility: visible;
  transition:
    clip-path 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
}

.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(92, 18, 32, 0.12);
}

.cart-panel-header h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--maroon);
  font-size: 1.15rem;
}

.cart-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.cart-close:hover { background: rgba(92, 18, 32, 0.1); }
.cart-close svg { width: 15px; height: 15px; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 6px 14px;
}

.cart-empty {
  padding: 50px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 6px;
  border-bottom: 1px solid rgba(92, 18, 32, 0.08);
  animation: cartItemIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cartItemIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.cart-item.removing {
  animation: cartItemOut 0.25s ease forwards;
}

@keyframes cartItemOut {
  to { opacity: 0; transform: translateX(30px) scale(0.9); max-height: 0; padding: 0 6px; margin: 0; }
}

.cart-item .thumb {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.cart-item .item-info {
  flex: 1;
  min-width: 0;
}

.cart-item h4 {
  margin: 0 0 2px;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item .item-price {
  margin: 0;
  font-size: 0.78rem;
  color: var(--maroon);
  font-weight: 600;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(92, 18, 32, 0.07);
  border-radius: 999px;
  padding: 3px 8px;
}

.qty-controls button {
  background: none;
  border: none;
  color: var(--maroon);
  font-size: 0.85rem;
  cursor: pointer;
  width: 14px;
  line-height: 1;
}

.qty-controls button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.5;
}

.item-stock-note {
  margin: 2px 0 0;
  font-size: 0.68rem;
  color: var(--maroon);
}

.qty-controls span {
  font-size: 0.78rem;
  min-width: 12px;
  text-align: center;
}

.remove-item {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  transition: color 0.2s ease;
}

.remove-item:hover { color: var(--maroon); }
.remove-item svg { width: 13px; height: 13px; }

.cart-panel-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(92, 18, 32, 0.12);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  font-size: 0.88rem;
}

.cart-subtotal .label { color: var(--muted); }
.cart-subtotal .amount { font-weight: 600; color: var(--ink); font-size: 1.05rem; }

.checkout-btn {
  width: 100%;
  background: var(--maroon);
  color: var(--cream);
  border: none;
  border-radius: 6px;
  padding: 13px 0;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.checkout-btn:hover { background: var(--maroon-dark); }
.checkout-btn:active { transform: scale(0.98); }

@media (max-width: 480px) {
  .cart-panel { top: 78px; right: 10px; left: 10px; width: auto; }
}

/* ---------- Products page ---------- */
.products-header {
  background: var(--feature-bg);
  border-bottom: 1px solid var(--line);
  /* The navbar is fixed/overlaying, so this first section on the page needs
     its own top padding reserved for it — same trick as the hero sections. */
  padding: calc(var(--nav-height) + clamp(28px, 4vw, 44px)) clamp(20px, 4vw, 56px) clamp(28px, 4vw, 44px);
}

.products-header-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.products-header h1 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--maroon);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.products-header .breadcrumb {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.products-header .breadcrumb a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.products-header .breadcrumb a:hover { color: var(--maroon); }
.products-header .breadcrumb span:first-of-type { margin: 0 6px; }
.products-header .breadcrumb #categoryBreadcrumb { color: var(--maroon); font-weight: 500; }

.products-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 56px) clamp(48px, 6vw, 80px);
}

.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: clamp(24px, 3vw, 36px);
  padding-bottom: clamp(16px, 2vw, 22px);
  border-bottom: 1px solid var(--line);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 1.2vw, 14px);
}

.cat-tab {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cat-tab:hover { border-color: var(--maroon); }

.cat-tab.active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: var(--cream);
}

.toolbar-actions {
  display: flex;
  gap: 12px;
}

.dropdown { position: relative; }

.toolbar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.toolbar-btn:hover { border-color: var(--maroon); }
.toolbar-btn svg { width: 16px; height: 16px; color: var(--maroon); }
.toolbar-btn #sortLabel { color: var(--maroon); font-weight: 600; }

.dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 230px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(46, 38, 32, 0.14);
  padding: 16px 18px;
  z-index: 60;

  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.dropdown-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ---------- Navbar search ---------- */
.search-trigger-wrap {
  position: relative;
  display: flex;
}

.search-panel {
  z-index: 110;
  padding: 10px;
  min-width: 260px;
}

.search-panel form {
  display: flex;
  gap: 8px;
}

.search-panel input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 12px;
  background: #fff;
  color: var(--ink);
}

.search-panel button {
  background: var(--maroon);
  border: none;
  border-radius: 6px;
  width: 38px;
  flex-shrink: 0;
  color: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-panel button svg { width: 16px; height: 16px; }

@media (max-width: 480px) {
  .search-panel { right: -60px; min-width: 240px; }
}

.dropdown-panel h4 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.dropdown-panel h4 + h4,
.dropdown-panel .radio-row + h4 {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--ink);
  padding: 6px 0;
  cursor: pointer;
}

.radio-row input { accent-color: var(--maroon); }

.dropdown-actions {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
}

.link-btn {
  background: none;
  border: none;
  color: var(--maroon);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}

.no-products {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Skeleton loading cards ---------- */
.skeleton-block,
.skeleton-line {
  background: linear-gradient(90deg, var(--feature-bg) 25%, rgba(255, 255, 255, 0.7) 50%, var(--feature-bg) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
  border-radius: 4px;
}

.skeleton-card .product-image.skeleton-block { border-radius: 0; }

.skeleton-line {
  height: 11px;
  margin-bottom: 8px;
}

@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.no-products.coming-soon {
  padding: 90px 20px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--maroon);
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.products-grid .product-card,
.featured-grid .product-card { cursor: pointer; }

.sale-pill {
  background: var(--maroon);
  color: var(--cream);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.option-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.size-options {
  display: flex;
  gap: 8px;
}

.size-btn {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.size-btn:hover { border-color: var(--maroon); }

.size-btn.active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: var(--cream);
}

/* ---------- Product detail page ---------- */
.product-detail-header {
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + clamp(20px, 3vw, 32px)) clamp(20px, 4vw, 56px) 0;
}

.product-detail-header .breadcrumb {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.product-detail-header .breadcrumb a { color: var(--muted); transition: color 0.2s ease; }
.product-detail-header .breadcrumb a:hover { color: var(--maroon); }

.product-not-found {
  max-width: 600px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 70px) clamp(20px, 4vw, 56px) clamp(80px, 10vw, 120px);
  text-align: center;
}

.product-not-found p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-detail {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 32px) clamp(20px, 4vw, 56px) clamp(60px, 7vw, 90px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.product-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product-gallery-grid.single-image { grid-template-columns: 1fr; }

.gallery-img {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
}

.product-gallery-dots { display: none; }

.product-info-col {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.product-detail-category {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.product-detail-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--maroon);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.25;
}

.product-detail-price {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--maroon);
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.product-detail-price .price-was { font-size: 0.62em; }

.product-detail-stock {
  margin: 0 0 26px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #3d7a4a;
}

.product-detail-stock.out { color: var(--maroon); }

.product-detail-option { margin-bottom: 24px; }

.size-option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.size-option-header .option-label { margin-bottom: 0; }

.size-chart-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--maroon);
  text-decoration: underline;
  text-decoration-color: rgba(92, 18, 32, 0.35);
  cursor: pointer;
}

.size-chart-btn:hover { text-decoration-color: var(--maroon); }

.size-chart-modal { text-align: center; }

.size-chart-img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.product-detail-actions { margin-bottom: 32px; }

.product-detail-add { width: 100%; justify-content: center; }

.product-detail-description {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.product-detail-description h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--maroon);
  font-size: 1.1rem;
}

.product-detail-description p {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.7;
}

.related-products {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) clamp(60px, 7vw, 90px);
}

/* ---------- Responsive tuning ----------
   The fabric image itself is never stretched or zoomed — object-fit: cover
   keeps its native ratio at all times. Only the visible crop (object-position)
   and the scrim shift, so on narrower desktop/laptop/tablet widths the drape
   stays fully framed instead of being cut off or ballooned. */
@media (max-width: 1200px) {
  .hero-bg img { object-position: 68% center; }
  .hero::before {
    background: linear-gradient(
      90deg,
      var(--cream) 0%,
      var(--cream) 34%,
      rgba(247, 241, 227, 0.85) 48%,
      rgba(247, 241, 227, 0.3) 64%,
      rgba(247, 241, 227, 0) 78%
    );
  }
}

@media (max-width: 760px) {
  /* Navbar wraps to two rows here, so it needs more reserved height
     above the hero text — bump --hero-shift-x below too if the text
     ever looks too close to the wrapped nav. */
  :root { --nav-height: 128px; }
  .navbar-inner { flex-wrap: wrap; row-gap: 10px; }
  .nav-links { order: 3; flex: 0 0 100%; width: 100%; justify-content: center; gap: 18px; }

  /* Taller on mobile than the old crop-from-desktop-image height — this
     now shows the purpose-shot portrait photo (Hero_bg_mobile.webp) with a
     much gentler crop instead of squeezing it into a short landscape-ish
     band. Cropping only ever happens top/bottom here (object-fit: cover
     with a portrait image in a wider-than-native box maps full width
     1:1) — object-position's vertical value is what actually matters. */
  .hero { height: clamp(480px, 125vw, 680px); }
  .hero-bg img { object-position: center 22%; }
  .hero::before {
    background: linear-gradient(
      180deg,
      var(--cream) 0%,
      var(--cream) 38%,
      rgba(247, 241, 227, 0.88) 55%,
      rgba(247, 241, 227, 0.4) 72%,
      rgba(247, 241, 227, 0) 100%
    );
  }
  .hero-content { justify-content: flex-start; padding-top: clamp(28px, 8vw, 48px); }

  /* About page hero — swaps to the portrait photo (About_Hero_bg_mobile.webp)
     via the <source> in the markup. The desktop version locks aspect-ratio
     to the photo's own ratio so it's never cropped at all (a deliberate,
     explicit requirement there); on mobile a full uncropped portrait photo
     would be excessively tall, so this uses the same fixed-height + gentle
     top-anchored crop approach as the homepage hero instead. */
  .about-hero { aspect-ratio: auto; height: clamp(480px, 125vw, 680px); max-height: none; min-height: 0; }
  .about-hero-bg img { object-position: center 18%; }
  .about-hero-scrim {
    background: linear-gradient(
      180deg,
      var(--cream) 0%,
      var(--cream) 34%,
      rgba(247, 241, 227, 0.85) 50%,
      rgba(247, 241, 227, 0.35) 68%,
      rgba(247, 241, 227, 0) 85%
    );
  }
  .about-hero-content { justify-content: flex-start; padding-top: clamp(28px, 8vw, 48px); }

  /* "Crafted for the Modern Gentleman" — the desktop layout (short strip,
     text pinned to a 54%-wide right-hand column) has no room to work with
     on a phone, so mobile gets its own taller card: photo up top (using
     bg_image_mobile_about_us_section_homepage.webp), text block full-width
     and anchored to the bottom over a solid cream footer the scrim fades
     into. */
  .crafted-card {
    min-height: clamp(440px, 118vw, 580px);
    align-items: flex-end;
  }
  .crafted-bg { object-position: center 28%; }
  .crafted-scrim {
    background: linear-gradient(
      180deg,
      rgba(247, 241, 227, 0) 0%,
      rgba(247, 241, 227, 0) 42%,
      rgba(247, 241, 227, 0.55) 58%,
      rgba(247, 241, 227, 0.92) 74%,
      var(--cream) 88%
    );
  }
  .crafted-content {
    width: 100%;
    margin-left: 0;
    padding: clamp(20px, 6vw, 32px) clamp(20px, 5vw, 28px) clamp(24px, 6vw, 36px);
  }
  .crafted-content p { max-width: none; }

  .features-inner { grid-template-columns: 1fr; row-gap: 22px; }
  .feature-item { border-left: none; border-top: 1px solid var(--line); padding-top: 20px; }
  .feature-item:first-child { border-top: none; padding-top: 0; }

  .collections-grid { grid-template-columns: repeat(2, 1fr); }

  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { justify-content: center; text-align: center; }

  .footer-main { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:nth-child(2) { border-left: none; padding-left: 0; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .story-grid { grid-template-columns: 1fr; }
  .story-image { order: -1; }
  .story-text p { max-width: none; }
  .story-features { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .story-feature-item:nth-child(3) { border-left: none; }

  .values-grid { grid-template-columns: 1fr; }
  .values-text > p { max-width: none; }
  .values-icons { grid-template-columns: 1fr; gap: 22px; }

  .products-toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-actions { justify-content: flex-start; }
  .dropdown-panel:not(.search-panel) { left: 0; right: auto; }
  .search-panel { right: 0; left: auto; max-width: calc(100vw - 24px); }

  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .product-info-col { position: static; }

  .product-gallery-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .product-gallery-grid::-webkit-scrollbar { display: none; }
  .product-gallery-grid.single-image { grid-auto-columns: 100%; }

  .gallery-img {
    scroll-snap-align: center;
    aspect-ratio: 4 / 5;
    border-radius: 12px;
  }

  .product-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
  }

  .gallery-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line);
    border: none;
    padding: 0;
    cursor: pointer;
  }

  .gallery-dot.active { background: var(--maroon); }
}

/* ========================================================================
   Admin panel — internal tool, not linked in the public nav. Same theme
   tokens as the storefront (cream/maroon, same fonts) but its own simple
   header (no cart, no nav links) and a table/form-driven layout.
   ======================================================================== */

.admin-navbar .navbar-inner {
  justify-content: flex-start;
  gap: 18px;
}

.admin-tag {
  background: var(--maroon);
  color: var(--cream);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.admin-view-site {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--maroon);
}

.admin-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + clamp(24px, 3vw, 40px)) clamp(20px, 4vw, 56px) clamp(48px, 6vw, 72px);
}

.admin-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(24px, 3vw, 36px);
  flex-wrap: wrap;
}

.admin-toolbar h1 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--maroon);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}

.admin-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--feature-bg);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--line);
}

.admin-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-thumb {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background-color: var(--feature-bg);
}

.admin-row-actions {
  display: flex;
  gap: 14px;
  white-space: nowrap;
}

.admin-row-actions .delete-btn { color: var(--muted); }
.admin-row-actions .delete-btn:hover { color: var(--maroon); }

.tag-out {
  color: var(--maroon);
  font-weight: 500;
  font-size: 0.78rem;
}

.tag-sale {
  background: var(--maroon);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
}

.featured-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.featured-checkbox { accent-color: var(--maroon); }

.admin-empty-note {
  padding: 20px 16px;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- Homepage card images ---------- */
.admin-images-section {
  margin-bottom: clamp(40px, 5vw, 60px);
}

.admin-images-section h2 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--maroon);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}

.admin-images-section > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.85rem;
}

.image-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.image-slot-card {
  display: flex;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}

.image-slot-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--feature-bg);
}

.image-slot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-thumb-lg {
  width: 100%;
  height: 100%;
}

.image-slot-info h4 {
  margin: 0 0 2px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.image-slot-info p {
  margin: 0 0 8px;
  font-size: 0.72rem;
  color: var(--muted);
}

.image-slot-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.upload-btn--sm {
  padding: 6px 12px;
  font-size: 0.74rem;
}

/* ---------- Sale section ---------- */
.admin-sale-section h2 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--maroon);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}

.admin-sale-section > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.85rem;
}

.sale-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.sale-form select,
.sale-percent-input input {
  font-family: inherit;
  font-size: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--cream);
}

.sale-form select { min-width: 260px; }

.sale-percent-input {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.sale-percent-input input { width: 80px; }

/* ---------- Product form modal ---------- */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(46, 38, 32, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 950;
}

.admin-modal-overlay.open { opacity: 1; pointer-events: auto; }

.admin-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--cream);
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(46, 38, 32, 0.3);
  padding: clamp(24px, 3vw, 36px);
  z-index: 951;

  transform: translate(-50%, -50%) scale(0.94);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0s linear 0.3s;
}

.admin-modal.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.order-confirm-modal {
  width: min(400px, calc(100vw - 32px));
  text-align: center;
}

.order-confirm-modal h2 { margin-bottom: 12px; }

.order-confirm-modal p {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.6;
}

.order-confirm-modal .btn-primary {
  width: 100%;
  justify-content: center;
}

.admin-modal h2 {
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--maroon);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(46, 38, 32, 0.06);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s ease;
}

.modal-close-btn:hover { background: rgba(46, 38, 32, 0.12); }
.modal-close-btn svg { width: 14px; height: 14px; }

.form-row { margin-bottom: 16px; }

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.form-row-split .form-row { margin-bottom: 0; }

.admin-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.admin-form label .hint {
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.75rem;
}

.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form select,
.admin-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
}

.admin-form textarea { resize: vertical; }

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}

.checkbox-pill input { accent-color: var(--maroon); }

.yes-no-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.toggle-btn {
  background: none;
  border: none;
  padding: 8px 20px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.toggle-btn.active {
  background: var(--maroon);
  color: var(--cream);
}

.color-builder {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.color-builder input[type="color"] {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px;
  background: none;
  cursor: pointer;
}

.color-builder input[type="text"] { flex: 1; }

.color-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px 5px 6px;
  font-size: 0.78rem;
  color: var(--ink);
}

.chip-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
}

.chip-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0 0 0 4px;
}

.chip-remove:hover { color: var(--maroon); }

.image-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.image-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--feature-bg);
}

.image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-thumb .admin-thumb {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.image-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(20, 15, 12, 0.65);
  color: #fff;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--maroon);
  cursor: pointer;
}

.upload-btn:hover { border-color: var(--maroon); }

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.form-actions-right {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.btn-outline {
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(9px, 1.1vw, 12px) 20px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.btn-outline:hover { border-color: var(--maroon); color: var(--maroon); }

/* ---------- Contact page ---------- */
.contact-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) clamp(20px, 4vw, 56px) clamp(70px, 8vw, 100px);
}

.contact-intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto clamp(36px, 5vw, 56px);
}

.contact-intro h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--maroon);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.contact-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(28px, 3.4vw, 40px) clamp(20px, 2.6vw, 28px);
  background: var(--cream);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  border-color: var(--maroon);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(46, 38, 32, 0.1);
}

.contact-card-icon {
  width: clamp(48px, 5vw, 58px);
  height: clamp(48px, 5vw, 58px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--feature-bg);
  color: var(--maroon);
  margin-bottom: 18px;
}

.contact-card-icon svg {
  width: 46%;
  height: 46%;
}

.contact-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  font-size: 1.15rem;
}

.contact-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--maroon);
  font-size: 0.82rem;
  font-weight: 600;
}

.contact-card-cta .arrow {
  transition: transform 0.25s ease;
}

.contact-card:hover .contact-card-cta .arrow {
  transform: translateX(4px);
}

/* ---------- Info pages (Track Order, Returns) ---------- */
.info-page {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) clamp(20px, 4vw, 56px) clamp(70px, 8vw, 100px);
}

.info-block {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(24px, 3.4vw, 36px);
  margin-bottom: 24px;
}

.info-block h2 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--maroon);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.info-block p {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.7;
}

.info-block p:last-child { margin-bottom: 0; }

.info-note {
  border-radius: 10px;
  background: var(--feature-bg);
  padding: 14px 18px;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0 0 14px;
}

.info-note strong { color: var(--maroon); }

.inline-link {
  color: var(--maroon);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(92, 18, 32, 0.35);
  text-underline-offset: 3px;
}

.inline-link:hover { text-decoration-color: var(--maroon); }

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
}

.step-text {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.6;
  padding-top: 4px;
}

.info-block .btn-primary { margin-top: 6px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 22px;
  background: var(--cream);
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--maroon);
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ---------- Checkout page ---------- */
.checkout-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 56px) clamp(48px, 6vw, 80px);
}

.checkout-empty {
  text-align: center;
  padding: clamp(60px, 10vw, 100px) 20px;
}

.checkout-empty p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

.checkout-block {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(18px, 2.4vw, 26px);
  margin-bottom: 20px;
}

.checkout-block h2 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--maroon);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.checkout-block .form-row input,
.checkout-block .form-row textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
}

.checkout-block .form-row label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-row-split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.form-row-split-2 .form-row { margin-bottom: 0; }
.checkout-block .form-row { margin-bottom: 16px; }
.checkout-block .form-row:last-child { margin-bottom: 0; }

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.payment-option:has(input:checked) {
  border-color: var(--maroon);
  background: rgba(92, 18, 32, 0.04);
}

.payment-option input { margin-top: 3px; accent-color: var(--maroon); }

.payment-option-label strong {
  display: block;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.payment-option-label small {
  color: var(--muted);
  font-size: 0.76rem;
}

.easypaisa-panel {
  margin-top: 14px;
  padding: 14px;
  background: var(--feature-bg);
  border-radius: 8px;
}

.easypaisa-note {
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: var(--ink);
  line-height: 1.5;
}

.easypaisa-details {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.easypaisa-details div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.easypaisa-details span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.easypaisa-details strong {
  color: var(--maroon);
  font-size: 0.92rem;
}

.checkout-submit {
  width: 100%;
  justify-content: center;
}

.checkout-summary { position: sticky; top: calc(var(--nav-height) + 16px); }

.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.checkout-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-item .thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--feature-bg);
}

.checkout-item .item-info { flex: 1; min-width: 0; }

.checkout-item h4 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-item .item-info p {
  margin: 2px 0 0;
  font-size: 0.74rem;
  color: var(--muted);
}

.checkout-item .item-total {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--maroon);
  white-space: nowrap;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.checkout-total-row span:last-child { font-size: 1.15rem; color: var(--maroon); }

/* ---------- Admin login gate ---------- */
.admin-logout-btn {
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 16px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.admin-logout-btn:hover { border-color: var(--maroon); color: var(--maroon); }

.admin-login-screen {
  min-height: calc(100vh - var(--nav-height));
  padding-top: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-login-card {
  width: min(360px, calc(100vw - 40px));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(28px, 4vw, 36px);
  background: var(--cream);
}

.admin-login-card h1 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--maroon);
  font-size: 1.4rem;
}

.admin-login-card > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-login-card .form-row { margin-bottom: 16px; }
.admin-login-card label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.admin-login-card input {
  width: 100%;
  font-family: inherit;
  font-size: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

.admin-login-card .btn-primary { width: 100%; justify-content: center; }

.admin-login-error {
  margin: 0 0 14px;
  font-size: 0.8rem;
  color: var(--maroon);
}

/* ---------- Image size warning (admin product form) ---------- */
.image-size-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.image-size-note.over-limit { color: var(--maroon); font-weight: 600; }

/* ---------- Orders (admin) ---------- */
.muted-small { color: var(--muted); font-size: 0.75rem; }

.tag-status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: capitalize;
}

.tag-status--pending { background: var(--feature-bg); color: var(--ink); }
.tag-status--confirmed { background: #e5f3e8; color: #3d7a4a; }
.tag-status--cancelled { background: rgba(92, 18, 32, 0.1); color: var(--maroon); }

@media (max-width: 760px) {
  .form-row-split { grid-template-columns: 1fr; }
  .image-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-toolbar { align-items: flex-start; }
  .admin-toolbar #addProductBtn { width: 100%; justify-content: center; }

  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .form-row-split-2 { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }

  /* ---------- Admin panel ---------- */
  .admin-navbar .navbar-inner { justify-content: space-between; }
  .admin-view-site { margin-left: 0; }
  .admin-tag { display: none; }

  .admin-table-wrap { -webkit-overflow-scrolling: touch; }

  .image-slot-card { flex-direction: column; }
  .image-slot-thumb { width: 100%; height: 140px; }

  .sale-form { flex-direction: column; align-items: stretch; }
  .sale-form select { min-width: 0; }
  .sale-form .btn-compact { width: 100%; justify-content: center; }

  .color-builder { flex-wrap: wrap; }
  .color-builder input[type="text"] { flex: 1 1 140px; }

  .form-actions { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .form-actions-right { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .form-actions #deleteProductBtn { text-align: center; }
}
