/* ==========================================================================
   Typography: Plus Jakarta Sans and Georgia
   Zero external CDNs, Google Fonts, or network font requests.
   Attribution & SIL Open Font License 1.1 in assets/fonts/
   ========================================================================== */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/plus-jakarta-sans/plus-jakarta-sans-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/plus-jakarta-sans/plus-jakarta-sans-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/plus-jakarta-sans/plus-jakarta-sans-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/plus-jakarta-sans/plus-jakarta-sans-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/plus-jakarta-sans/plus-jakarta-sans-latin-800-normal.woff2') format('woff2');
}



:root {
  --color-white: #ffffff;
  --color-black: #121212;
  --color-black-rgb: 18, 18, 18;
  --color-text-muted: #6b7280;
  --color-text-subtle: #9ca3af;
  --color-gold: #d49b28;
  --color-gold-hover: #b88219;
  --color-gold-light: #fdf8ec;
  --color-gold-border: rgba(212, 155, 40, 0.45);
  
  --color-section-bg: #faf7f2;
  --color-card-bg: #f9f8f5;
  --color-tile-bg: #f0f1f3;
  --color-border: #eeeeee;
  --color-border-subtle: rgba(0, 0, 0, 0.07);
  
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif-italic: Georgia, "Times New Roman", serif;
  
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --transition-fast: 180ms ease;
  --transition-normal: 260ms ease;
  --transition-slow: 400ms ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-white);
  color: var(--color-black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input {
  font-family: inherit;
}

/* Accessible Focus Ring */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* Subtle Gold Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #ffffff;
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: var(--radius-full);
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Editorial Blanco Arch */
.blanco-arch {
  border-radius: 260px 260px 20px 20px;
}

/* Italic Serif Accents (Georgia Italic) */
.hero-title-italic,
.serif-italic,
.serif-italic-gold {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-weight: 400;
}

.hero-title-italic,
.serif-italic-gold {
  color: var(--color-gold);
}

/* ==========================================================================
   Navbar (Sticky with Subtle Glass Effect)
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-subtle);
  height: 72px;
  display: flex;
  align-items: center;
  transition: background-color var(--transition-normal);
}

@media (min-width: 640px) {
  .site-nav {
    height: 80px;
  }
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0;
  transition: opacity var(--transition-fast);
}

.brand-link:hover {
  opacity: 0.88;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  max-width: 165px;
  object-fit: contain;
}

@media (min-width: 640px) {
  .brand-logo-img {
    height: 56px;
    max-width: 210px;
  }
}

/* Nav Menu Links (Plus Jakarta Sans) */
.nav-categories {
  display: none;
  align-items: center;
  gap: 1.75rem;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-black);
}

@media (min-width: 1024px) {
  .nav-categories {
    display: flex;
  }
}

@media (min-width: 1200px) {
  .nav-categories {
    gap: 2.25rem;
  }
}

.nav-category-link {
  padding: 0.25rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-category-link:hover {
  color: var(--color-gold);
}

.nav-category-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-gold);
  transition: width var(--transition-fast);
}

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

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .nav-actions {
    gap: 0.75rem;
  }
}

/* WhatsApp Action Button: Circular on mobile, Pill on desktop */
.whatsapp-order-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--color-black);
  color: var(--color-white);
  border: 1px solid var(--color-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

.whatsapp-order-btn .icon-svg {
  width: 16px;
  height: 16px;
  fill: var(--color-gold);
  transition: transform var(--transition-fast);
}

.whatsapp-order-btn:hover {
  background-color: var(--color-black);
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.whatsapp-order-btn:hover .icon-svg {
  transform: scale(1.08);
}

.whatsapp-order-btn .btn-label {
  display: none;
}

@media (min-width: 640px) {
  .whatsapp-order-btn {
    width: auto;
    padding: 0 1.15rem;
  }
  .whatsapp-order-btn .btn-label {
    display: inline;
  }
}

/* Circular Controls */
.circle-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-black);
  position: relative;
  transition: all var(--transition-normal);
  background-color: transparent;
  flex-shrink: 0;
}

.circle-nav-btn .icon-svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.circle-nav-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background-color: var(--color-gold-light);
}

.cart-count-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 18px;
  height: 18px;
  background-color: var(--color-gold);
  color: var(--color-black);
  font-size: 9px;
  font-weight: 800;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
}

.hamburger-btn {
  display: inline-flex;
}

@media (min-width: 1024px) {
  .hamburger-btn {
    display: none;
  }
}

/* ==========================================================================
   Hero Section (Light Gradient, High Cake Visibility)
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  height: calc(100vh - 72px);
  height: calc(100svh - 72px);
  min-height: 0;
  max-height: none;
  overflow: hidden;
  background-color: var(--color-card-bg);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 640px) {
  .hero-section {
    height: calc(100vh - 80px);
    height: calc(100svh - 80px);
  }
}

.hero-picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

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

/* Hero overlay: limited strictly to text legibility; cake remains 100% natural and untouched */
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  /* Mobile: gentle gradient limited strictly to the bottom text area (fades out completely by 42% height) */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.28) 22%,
    rgba(0, 0, 0, 0.06) 34%,
    transparent 46%
  );
}

@media (min-width: 640px) {
  .hero-overlay {
    align-items: center;
    background: linear-gradient(
      to right,
      rgba(10, 10, 10, 0.54) 0%,
      rgba(10, 10, 10, 0.36) 30%,
      rgba(10, 10, 10, 0.14) 51%,
      transparent 68%
    );
  }
}

.hero-content {
  position: relative;
  max-width: 500px;
  padding-bottom: 2.25rem;
  color: var(--color-white);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

@media (min-width: 640px) {
  .hero-content {
    padding-bottom: 0;
    color: var(--color-white);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
  }
}

/* Badge removed on mobile per instructions */
.hero-badge {
  display: none;
}

@media (min-width: 640px) {
  .hero-badge {
    display: inline-block;
    background-color: var(--color-gold);
    color: var(--color-black);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 0.875rem;
    box-shadow: var(--shadow-xs);
  }
}

.hero-title {
  font-family: var(--font-sans);
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
  max-width: 380px;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
    margin-bottom: 0.875rem;
    max-width: none;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.46);
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.4rem;
  }
}

.hero-desc {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 1.35rem;
  max-width: 440px;
  color: rgba(255, 255, 255, 0.92);
}

@media (min-width: 640px) {
  .hero-desc {
    font-size: 14px;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
  }
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-black);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-black);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  text-shadow: none;
}

.btn-primary:hover:not(:disabled),
.btn-primary:focus-visible:not(:disabled) {
  background-color: var(--color-black);
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  text-shadow: none;
}

@media (min-width: 640px) {
  .btn-secondary {
    background-color: rgba(255, 255, 255, 0.16);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.88);
  }
}

.btn-secondary:hover {
  background-color: var(--color-gold);
  border-color: var(--color-black);
  color: var(--color-black);
}

/* Keep hero buttons visually unchanged on pointer hover. */
.hero-cta-group .btn-primary:hover:not(:focus-visible) {
  background-color: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}
.hero-cta-group .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--color-white);
}
@media (min-width: 640px) {
  .hero-cta-group .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.88);
  }
}

/* ==========================================================================
   Categories Section (Prominent Header + Mobile Stagger)
   ========================================================================== */
.categories-section {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
  background-color: var(--color-section-bg);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 640px) {
  .categories-section {
    padding-top: 4.5rem;
    padding-bottom: 5rem;
  }
}

.section-eyebrow-center {
  text-align: center;
  margin-bottom: 2.75rem;
}

@media (min-width: 640px) {
  .section-eyebrow-center {
    margin-bottom: 3.5rem;
  }
}

/* Prominent CATEGORIES label */
.section-tag-heading {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-black);
}

@media (min-width: 640px) {
  .section-tag-heading {
    font-size: 1.15rem;
  }
}

/* Category Grid: 2 cols mobile, 3 cols tablet/desktop */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .category-grid {
    gap: 1.875rem;
  }
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-tile {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background-color: var(--color-tile-bg);
  box-shadow: var(--shadow-xs);
  border: 1px solid rgba(18, 18, 18, 0.04);
  transition: border-color var(--transition-fast), box-shadow var(--transition-normal);
}

@media (min-width: 640px) {
  .category-tile {
    border-radius: var(--radius-xl);
  }
}

.category-card:hover .category-tile,
.category-card:focus-visible .category-tile {
  border-color: rgba(212, 155, 40, 0.72);
  box-shadow: 0 10px 24px rgba(18, 18, 18, 0.1);
}

.category-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: var(--color-black);
  margin-top: 0.875rem;
  text-align: center;
  transition: color var(--transition-fast);
}

@media (min-width: 640px) {
  .category-label {
    font-size: 13px;
    margin-top: 1rem;
  }
}

/* ==========================================================================
   Heritage / About Section
   ========================================================================== */
.about-section {
  padding-top: 4rem;
  padding-bottom: 4.5rem;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 1024px) {
  .about-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 5fr 6fr;
    gap: 4.5rem;
  }
}

.about-visual-wrap {
  display: flex;
  justify-content: center;
}

.about-frame-container {
  position: relative;
  width: 100%;
  max-width: 340px;
}

@media (min-width: 640px) {
  .about-frame-container {
    max-width: 390px;
  }
}

.about-arch-frame {
  position: relative;
  overflow: hidden;
  background-color: var(--color-white);
  border: 2px solid var(--color-gold-border);
  box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 4;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

/* Image-area hover works at every laptop/desktop viewport; the card itself never scales. */
.about-img:hover {
  transform: scale(1.035);
}

.product-image-frame {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.product-image-frame > .product-mock-visual,
.product-image-frame > .product-uploaded-image {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.product-image-frame > .product-uploaded-image {
  transition: transform var(--transition-slow);
}

/* The frame is only the image boundary, so card padding and copy never move. */
.product-image-frame:hover > .product-uploaded-image {
  transform: scale(1.045);
}

/* Legacy Overlapping Seal */
.legacy-seal {
  position: absolute;
  bottom: -18px;
  right: -14px;
  width: 96px;
  height: 96px;
  background-color: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--color-gold);
  z-index: 10;
}

@media (min-width: 640px) {
  .legacy-seal {
    bottom: -22px;
    right: -20px;
    width: 110px;
    height: 110px;
  }
}

.seal-eyebrow {
  color: var(--color-gold);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.seal-year {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--color-white);
  line-height: 1.1;
  margin: 2px 0;
}

@media (min-width: 640px) {
  .seal-year {
    font-size: 1.55rem;
  }
}

.seal-city {
  font-size: 7px;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

/* Narrative (Plus Jakarta Sans) */
.about-narrative {
  text-align: left;
}

.about-tagline {
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 11px;
  font-weight: 800;
  display: block;
  margin-bottom: 0.75rem;
}

.about-headline {
  font-family: var(--font-sans);
  font-size: 2.15rem;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.18;
  margin-bottom: 1.35rem;
}

@media (min-width: 640px) {
  .about-headline {
    font-size: 2.75rem;
  }
}

@media (min-width: 1024px) {
  .about-headline {
    font-size: 3.15rem;
  }
}

.about-body-copy {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}

@media (min-width: 640px) {
  .about-body-copy {
    font-size: 15px;
  }
}

.about-body-copy strong {
  color: var(--color-black);
  font-weight: 600;
}

/* Value Bullets */
.about-stats-row {
  margin-top: 1.85rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-black);
}

@media (min-width: 640px) {
  .stat-value {
    font-size: 1.35rem;
  }
}

.stat-label {
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.about-cta-wrap {
  margin-top: 1.85rem;
}

.about-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-black);
  transition: color var(--transition-fast);
}

.about-link-cta .icon-svg {
  width: 14px;
  height: 14px;
  fill: var(--color-gold);
  transition: transform var(--transition-fast);
}

.about-link-cta:hover {
  color: var(--color-gold);
}

.about-link-cta:hover .icon-svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Custom Cakes Section (Gallery / Showcase Only)
   ========================================================================== */
.custom-cakes-section {
  padding-top: 4rem;
  padding-bottom: 4.5rem;
  background-color: var(--color-section-bg);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 640px) {
  .custom-cakes-section {
    padding-top: 5rem;
    padding-bottom: 5.5rem;
  }
}

.custom-cakes-header {
  margin-bottom: 2.25rem;
  text-align: center;
}

@media (min-width: 768px) {
  .custom-cakes-header {
    text-align: left;
    margin-bottom: 3.25rem;
  }
}

.custom-cakes-title {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.2;
}

.custom-cakes-title .serif-italic,
.custom-cakes-title .serif-italic-gold {
  color: var(--color-gold);
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-weight: 400;
}

@media (min-width: 640px) {
  .custom-cakes-title {
    font-size: 2.75rem;
  }
}

@media (min-width: 1024px) {
  .custom-cakes-title {
    font-size: 3.15rem;
  }
}

.custom-cakes-subtitle {
  color: rgba(18, 18, 18, 0.75);
  font-size: 13px;
  font-weight: 400;
  margin-top: 0.5rem;
  max-width: 560px;
}

@media (min-width: 640px) {
  .custom-cakes-subtitle {
    font-size: 14px;
  }
}

/* 4 Showcase Poster Cards: Gallery Only (No Link Affordance) */
.bespoke-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
  align-items: start;
}

@media (min-width: 640px) {
  .bespoke-grid {
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .bespoke-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
  }
}

.bespoke-card {
  display: flex;
  flex-direction: column;
  cursor: default;
}

/* Stagger alternate customize cake cards: subtle offset on mobile, 2rem on desktop */
@media (max-width: 1023px) {
  .bespoke-card:nth-child(even) {
    transform: translateY(12px);
  }
}

@media (min-width: 1024px) {
  .bespoke-card:nth-child(2),
  .bespoke-card:nth-child(4) {
    padding-top: 2rem;
  }
}

.bespoke-poster-frame {
  position: relative;
  height: 270px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-white);
  border: 1px solid rgba(18, 18, 18, 0.1);
  box-shadow: var(--shadow-xs);
  cursor: default;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

@media (min-width: 640px) {
  .bespoke-poster-frame {
    height: 350px;
    border-radius: var(--radius-xl);
  }
}

@media (min-width: 1024px) {
  .bespoke-poster-frame {
    height: 420px;
  }
}

.bespoke-panel-svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: filter 220ms ease;
}

/* Clear desktop hover / focus-within state for gallery cards (keeps cursor: default) */
@media (hover: hover) and (pointer: fine) {
  .bespoke-card:hover .bespoke-poster-frame,
  .bespoke-card:focus-within .bespoke-poster-frame {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.06);
    border-color: var(--color-gold);
  }

  .bespoke-card:hover .bespoke-panel-svg,
  .bespoke-card:focus-within .bespoke-panel-svg {
    filter: brightness(1.035);
  }
}

/* Occasion Badge */
.occasion-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 8px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid rgba(18, 18, 18, 0.18);
  box-shadow: var(--shadow-xs);
  z-index: 5;
}

@media (min-width: 640px) {
  .occasion-badge {
    top: 1.15rem;
    left: 1.15rem;
    font-size: 10px;
    padding: 4px 12px;
  }
}

.occasion-badge.tone-white {
  background-color: var(--color-white);
  color: var(--color-black);
}

.occasion-badge.tone-gold {
  background-color: var(--color-gold);
  color: var(--color-black);
}

/* Poster Bottom Details Overlay */
.bespoke-details-overlay {
  position: absolute;
  bottom: 0;
  inset-x: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.52) 60%, transparent 100%);
  padding: 0.875rem;
  color: var(--color-white);
  z-index: 5;
}

@media (min-width: 640px) {
  .bespoke-details-overlay {
    padding: 1.35rem;
  }
}

.bespoke-vol {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-gold);
  display: block;
  margin-bottom: 2px;
}

@media (min-width: 640px) {
  .bespoke-vol {
    font-size: 9px;
  }
}

/* Bespoke Card Titles in Plus Jakarta Sans Bold */
.bespoke-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .bespoke-title {
    font-size: 1.25rem;
  }
}

.bespoke-desc {
  display: none;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .bespoke-desc {
    display: block;
  }
}

/* Single Enquiry CTA Action */
.bespoke-action-wrap {
  margin-top: 2.25rem;
  display: flex;
  justify-content: center;
}

@media (min-width: 640px) {
  .bespoke-action-wrap {
    margin-top: 3rem;
  }
}

.bespoke-enquiry-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background-color: var(--color-black);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.9rem 1.85rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-black);
  transition: all var(--transition-normal);
}

.bespoke-enquiry-btn .icon-svg {
  width: 17px;
  height: 17px;
  fill: var(--color-gold);
  transition: transform var(--transition-fast);
}

.bespoke-enquiry-btn:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.bespoke-enquiry-btn:hover .icon-svg {
  transform: scale(1.08);
}

/* ==========================================================================
   Footer (Tighter Spacing, Sensible Gaps)
   ========================================================================== */
.site-footer {
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  color: var(--color-black);
  padding-top: 2.75rem;
  padding-bottom: 1.75rem;
  margin-top: auto;
}

@media (min-width: 640px) {
  .site-footer {
    padding-top: 3.5rem;
    padding-bottom: 2rem;
  }
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 640px) {
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-top-grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1.4fr) minmax(0, 3fr) minmax(0, 1.6fr);
    gap: 2rem;
    padding-bottom: 2.5rem;
  }
}

/* Footer Col 1: Brand Info */
.footer-brand-wrap {
  display: flex;
  flex-direction: column;
}

.footer-logo-img {
  height: 46px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  margin-bottom: 0.875rem;
}

.footer-brand-desc {
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 310px;
  margin-bottom: 1.15rem;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .footer-brand-wrap .footer-social-links { margin-top: auto; }
}

.footer-hours {
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.7;
}

.social-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-black);
  transition: all var(--transition-fast);
}

.social-circle-btn .icon-svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.social-circle-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background-color: var(--color-gold-light);
}

/* Footer Columns 2 & 3: Lists */
.footer-heading {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-black);
  margin-bottom: 0.875rem;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  display: inline-block;
}

.footer-link:hover {
  color: var(--color-gold);
}

/* Footer Col 4: Locations & Contact */
.footer-locations-col {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-locations-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.location-block {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.location-title {
  font-weight: 700;
  color: var(--color-black);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}

.location-title .icon-svg {
  width: 12px;
  height: 12px;
  fill: var(--color-gold);
  flex-shrink: 0;
}

.location-address {
  padding-left: 1.15rem;
}

.contact-meta-block {
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 12px;
  color: var(--color-text-muted);
}

.contact-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-meta-item .icon-svg {
  width: 12px;
  height: 12px;
  fill: var(--color-gold);
  flex-shrink: 0;
}

/* Footer Bottom Bar (Tight Spacing) */
.footer-bottom-bar {
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 11px;
  color: var(--color-text-muted);
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom-bar {
    flex-direction: row;
    text-align: left;
  }
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 500;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal-link {
  transition: color var(--transition-fast);
}

.footer-legal-link:hover {
  color: var(--color-gold);
}

/* ==========================================================================
   Modals & Drawers
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background-color: var(--color-white);
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--color-border);
  transform: scale(0.96);
  transition: transform var(--transition-normal);
}

@media (min-width: 640px) {
  .modal-box {
    padding: 1.75rem;
  }
}

.modal-overlay.is-active .modal-box {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.25rem;
}

.modal-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-black);
}

.circle-close-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-black);
  transition: all var(--transition-fast);
}

.circle-close-btn .icon-svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.circle-close-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.search-input-wrap {
  position: relative;
  width: 100%;
}

.search-input-wrap .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  fill: var(--color-text-muted);
}

.search-field {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.65rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-field:focus {
  border-color: var(--color-gold);
}

.popular-tags-wrap {
  margin-top: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-size: 11px;
}

.popular-label {
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-right: 0.25rem;
}

.tag-pill {
  background-color: var(--color-tile-bg);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  color: var(--color-black);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.tag-pill:hover {
  background-color: var(--color-gold);
  color: var(--color-black);
}

/* Drawers */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.drawer-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.drawer-panel {
  background-color: var(--color-white);
  width: 100%;
  max-width: 400px;
  height: 100%;
  box-shadow: var(--shadow-2xl);
  border-left: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  overflow-y: auto;
}

@media (min-width: 640px) {
  .drawer-panel {
    padding: 1.75rem;
  }
}

.drawer-overlay.is-active .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--color-border);
}

.drawer-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-black);
}

.drawer-menu-heading {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-black);
}

.drawer-subtitle {
  font-size: 10px;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

/* Empty Bag State */
.drawer-empty-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  text-align: center;
}

.empty-bag-icon-frame {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-full);
  background-color: var(--color-tile-bg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.empty-bag-icon-frame .icon-svg {
  width: 28px;
  height: 28px;
  fill: var(--color-text-subtle);
}

.empty-bag-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.empty-bag-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 260px;
  margin-bottom: 1.5rem;
}

/* Mobile Nav Drawer Items (Only 6 categories + Custom Cakes) */
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  divide-y: 1px solid var(--color-border);
  margin-top: 1rem;
  flex: 1;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-black);
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast);
}

.mobile-nav-item .icon-svg {
  width: 12px;
  height: 12px;
  fill: var(--color-text-muted);
}

.mobile-nav-item:hover {
  color: var(--color-gold);
}

.mobile-nav-item:hover .icon-svg {
  fill: var(--color-gold);
}

/* ==========================================================================
   Phase 2 Category Listing
   ========================================================================== */
.products-page {
  flex: 1;
  background: #faf7f2;
}

.category-banner {
  width: 100%;
  background: #eee7dc;
  overflow: hidden;
}

.category-banner-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #e7ded0;
}

.category-banner-picture,
.category-banner-picture img {
  display: block;
  width: 100%;
  height: 100%;
}

.category-banner-picture {
  position: absolute;
  inset: 0;
}

.category-banner-picture img {
  object-fit: cover;
}

@media (min-width: 1024px) {
  .category-banner-visual {
    aspect-ratio: auto;
    height: clamp(150px, 20vw, 280px);
  }
}

.category-banner-placeholder {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 65%, rgba(255, 255, 255, 0.48) 0 9%, transparent 9.5%),
    radial-gradient(circle at 76% 38%, rgba(126, 91, 55, 0.18) 0 13%, transparent 13.5%),
    linear-gradient(118deg, #ded1bd, #f3eadc 48%, #ccb99e);
}

.category-banner-placeholder[data-tone='cocoa'] {
  background: radial-gradient(circle at 70% 44%, rgba(84, 51, 34, 0.28) 0 16%, transparent 16.5%), linear-gradient(118deg, #c5ac95, #eee0d0 52%, #a98268);
}

.category-banner-placeholder[data-tone='savoury'],
.category-banner-placeholder[data-tone='tomato'] {
  background: radial-gradient(circle at 28% 42%, rgba(154, 75, 48, 0.2) 0 14%, transparent 14.5%), linear-gradient(118deg, #d1b095, #f2dfc8 50%, #be9271);
}

.category-banner-placeholder[data-tone='biscuit'] {
  background: radial-gradient(circle at 74% 58%, rgba(157, 111, 53, 0.2) 0 13%, transparent 13.5%), linear-gradient(118deg, #dac09c, #f4e8d4 52%, #c7a77a);
}

.category-banner-placeholder[data-tone='berry'] {
  background: radial-gradient(circle at 30% 48%, rgba(127, 63, 70, 0.17) 0 12%, transparent 12.5%), linear-gradient(118deg, #d4b7b0, #f2e2d8 52%, #c79c91);
}

.product-listing {
  padding: 1.25rem 0 3.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  border: 1px solid #eadfce;
  border-radius: 16px;
  background: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-normal);
}

.product-detail-trigger {
  width: 100%;
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  border-radius: 12px;
}

.product-mock-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: #f4eee5;
}

.product-uploaded-image {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  background: #f4eee5;
}

.product-card-image {
  aspect-ratio: 1;
}

.product-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0.8rem 0.2rem 0.65rem;
  text-align: center;
}

.product-name {
  color: var(--color-black);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.product-description {
  display: -webkit-box;
  min-height: 2.7em;
  margin-top: 0.32rem;
  overflow: hidden;
  color: var(--color-text-muted);
  font-size: 0.68rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-price,
.product-detail-price {
  margin-top: 0.38rem;
  color: var(--color-gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.product-add-button {
  width: 100%;
  min-height: 44px;
  padding: 0.72rem 0.6rem;
  border: 1px solid var(--color-black);
  border-radius: 9999px;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  transition: color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.product-add-button:hover:not(:disabled),
.product-add-button:focus-visible:not(:disabled) {
  background: var(--color-black);
  border-color: var(--color-gold);
  color: var(--color-gold);
  box-shadow: var(--shadow-sm);
}

.product-add-button:disabled {
  cursor: not-allowed;
  background: #e7e1d8;
  color: #766f67;
}

.product-card.is-unavailable .product-mock-visual {
  filter: saturate(0.45);
  opacity: 0.72;
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover,
  .product-card:focus-within {
    border-color: rgba(212, 155, 40, 0.72);
    box-shadow: 0 12px 28px rgba(18, 18, 18, 0.11);
  }

}

.catalogue-fallback {
  max-width: 680px;
  margin: 2rem auto;
  padding: 2.5rem 1.5rem;
  border: 1px solid #eadfce;
  border-radius: 16px;
  background: var(--color-white);
  text-align: center;
}

.catalogue-fallback h1 {
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.catalogue-fallback p {
  margin-top: 0.6rem;
  color: var(--color-text-muted);
}

.fallback-category-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.3rem;
}

.fallback-category-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
}

.fallback-category-links a:hover {
  background: var(--color-gold);
}

/* Product detail extends the shared accessible modal mechanics. */
.product-detail-overlay {
  overflow-y: auto;
}

.product-detail-modal {
  position: relative;
  max-width: 780px;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: 0.75rem;
}

.product-detail-toolbar { display: contents; }

.product-detail-close {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.product-detail-image {
  overflow: hidden;
  border-radius: 16px;
}

.product-modal-visual {
  aspect-ratio: 4 / 3;
}

.product-modal-image {
  aspect-ratio: 4 / 3;
}

.product-detail-copy {
  padding: 0.85rem 0.35rem 0.15rem;
  text-align: center;
}

.product-detail-name {
  font-size: 1.3rem;
  line-height: 1.25;
}

.product-detail-description {
  margin-top: 0.35rem;
  color: var(--color-text-muted);
  font-size: 0.86rem;
}

.product-detail-price {
  margin: 0.45rem 0 0.6rem;
  font-size: 1rem;
}

.product-quantity {
  width: max-content;
  display: grid;
  grid-template-columns: 42px 44px 42px;
  align-items: center;
  margin: 0 auto 0.875rem;
  overflow: hidden;
  border: 1px solid #ded4c5;
  border-radius: var(--radius-full);
  background: var(--color-white);
}

.product-quantity-button {
  min-height: 42px;
  color: var(--color-black);
  font-size: 1.1rem;
  font-weight: 600;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.product-quantity-button:hover:not(:disabled),
.product-quantity-button:focus-visible:not(:disabled) {
  background: var(--color-gold-light);
  color: var(--color-gold-hover);
}

.product-quantity-button:disabled {
  cursor: not-allowed;
  color: var(--color-text-subtle);
}

.product-quantity-value {
  color: var(--color-black);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

@media (min-width: 640px) {
  .product-listing {
    padding: 1.75rem 0 4.5rem;
  }

  .product-grid {
    gap: 1.2rem;
  }

  .product-card {
    padding: 0.65rem;
  }

  .product-name {
    font-size: 0.95rem;
  }

  .product-description {
    font-size: 0.75rem;
  }

  .product-price {
    font-size: 0.92rem;
  }

  .product-detail-modal {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
    align-items: center;
    gap: 1.6rem;
    padding: 1rem;
  }

  .product-modal-visual {
    aspect-ratio: 1;
  }

  .product-detail-copy {
    padding: 1rem 1rem 1rem 0;
    text-align: left;
  }

  .product-quantity {
    margin-left: 0;
  }

  .product-detail-name {
    font-size: 1.65rem;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Cart and guest checkout */
.commerce-body { background: var(--color-section-bg); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.commerce-page { width: 100%; min-height: 70vh; padding-top: 2.25rem; padding-bottom: 4rem; background: var(--color-section-bg); }
.commerce-heading { max-width: 620px; margin-bottom: 2rem; }
.commerce-heading h1, .receipt h1 { margin-top: 0.25rem; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.commerce-heading > p:last-child { margin-top: 0.5rem; color: var(--color-text-muted); }
.eyebrow { color: var(--color-gold-hover); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; }
.order-card, .commerce-empty { border: 1px solid #eadfce; border-radius: 12px; background: var(--color-white); padding: 1.25rem; }
.commerce-empty { max-width: 640px; margin: 3rem auto; text-align: center; }
.commerce-empty p { margin: 0.5rem 0 1.25rem; color: var(--color-text-muted); }
.text-button, .text-link { min-height: 44px; color: #76500b; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.order-card > h2, .checkout-payment > h2 { margin-bottom: 1rem; font-size: 1.15rem; font-weight: 800; }
.summary-total { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 1px solid #eadfce; font-size: 1.06rem; }
.totals-note { color: var(--color-text-muted); font-size: 0.72rem; line-height: 1.55; }
.btn-block { width: 100%; margin-top: 1rem; }
#cartDrawer .drawer-panel { padding-bottom: 0; overflow: hidden; }
.drawer-empty-body.cart-drawer-body { min-height: 0; display: flex; align-items: stretch; justify-content: flex-start; padding: 0; overflow-y: auto; -ms-overflow-style: none; scrollbar-width: none; text-align: left; }
.drawer-empty-body.cart-drawer-body::-webkit-scrollbar { display: none; width: 0; height: 0; }
.drawer-cart-list { width: 100%; display: grid; align-content: start; text-align: left; }
.drawer-cart-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0.85rem; padding: 1rem 0; border-bottom: 1px solid #e8dfd2; font-size: 0.8rem; }
.drawer-cart-visual { min-height: 72px; border-radius: 9px; }
.drawer-cart-copy { min-width: 0; display: grid; align-content: center; gap: 0.18rem; }
.drawer-cart-copy > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-cart-copy > small { color: var(--color-text-muted); }
.drawer-cart-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.3rem; }
.drawer-quantity { display: grid; grid-template-columns: 34px 30px 34px; align-items: center; overflow: hidden; border: 1px solid #ded4c5; border-radius: var(--radius-full); }
.drawer-quantity button { display: grid; min-height: 34px; place-items: center; padding: 0; color: var(--color-black); line-height: 0; }
.drawer-quantity-icon { display: block; width: 14px; height: 14px; overflow: visible; }
.drawer-quantity button:disabled { color: var(--color-text-subtle); }
.drawer-quantity output { display: grid; min-height: 34px; place-items: center; font-size: 0.72rem; font-weight: 800; line-height: 1; transform: translateY(1px); }
.drawer-remove { min-height: 34px; color: var(--color-text-muted); font-size: 0.68rem; text-decoration: underline; text-underline-offset: 3px; }
.drawer-cart-summary { position: sticky; bottom: 0; width: 100%; margin-top: auto; padding: 0.85rem 0 1.5rem; border-top: 1px solid #ded4c5; background: var(--color-white); box-shadow: 0 -10px 22px rgba(18, 18, 18, 0.04); }
.drawer-cart-summary .summary-total { padding: 0 0 0.45rem; border: 0; }
.drawer-cart-summary p { margin-bottom: 0.85rem; color: var(--color-text-muted); font-size: 0.68rem; line-height: 1.5; }
.drawer-cart-summary .btn-primary { width: 100%; min-height: 44px; }
@media (max-width: 639px) { #cartDrawer .drawer-panel { max-width: none; } }
.checkout-layout, .checkout-column { display: grid; gap: 1rem; }
.checkout-payment { min-width: 0; }
.delivery-notice { display: grid; gap: 0.25rem; margin-bottom: 1.25rem; padding: 0.9rem 1rem; border-left: 3px solid var(--color-gold); background: var(--color-gold-light); font-size: 0.8rem; }
.delivery-notice small { color: var(--color-text-muted); }
.field { display: grid; gap: 0.35rem; margin-top: 1rem; }
.field label { font-size: 12px; font-weight: 700; }
.optional { color: var(--color-text-muted); font-size: 0.7rem; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 0.72rem 0.8rem; border: 1px solid #d8cebf; border-radius: 8px; background: var(--color-white); color: var(--color-black); font-family: var(--font-sans); font-size: 13px; }
.field textarea { resize: vertical; }
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field textarea:-webkit-autofill,
.field textarea:-webkit-autofill:hover,
.field textarea:-webkit-autofill:focus { border: 1px solid #d8cebf; border-radius: 8px; -webkit-box-shadow: 0 0 0 1000px var(--color-white) inset; -webkit-text-fill-color: var(--color-black); caret-color: var(--color-black); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #a33221; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid rgba(168, 115, 16, 0.35); outline-offset: 1px; border-color: #b38a42; }
.field-error { min-height: 1em; color: #8b291d; font-size: 0.72rem; }
.payment-options { display: grid; gap: 0.65rem; }
.payment-card { display: flex; align-items: flex-start; gap: 0.75rem; min-height: 72px; padding: 0.9rem; border: 1px solid #d8cebf; border-radius: 8px; background: var(--color-white); cursor: pointer; }
.payment-card:has(input:checked) { border-color: var(--color-gold); }
.payment-card input { width: 20px; height: 20px; accent-color: #a87310; }
.payment-card span { display: grid; gap: 0.22rem; }
.payment-card strong { font-size: 14px; }
.payment-card small { color: var(--color-text-muted); font-size: 12px; }
.checkout-summary-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.checkout-summary-header h2 { font-size: 1.15rem; }
.checkout-summary-header .text-button { min-height: 32px; flex: 0 0 auto; font-size: 12px; }
.checkout-items { display: grid; }
.checkout-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid #eee5d8; }
.checkout-item span { min-width: 0; display: grid; gap: 0.2rem; }
.checkout-item-name, .checkout-item-price { font-size: 13px; }
.checkout-item-price { flex: 0 0 auto; white-space: nowrap; text-align: right; }
.checkout-item small { color: var(--color-text-muted); font-size: 12px; }
.checkout-item:last-child { border-bottom: 0; }
.checkout-summary .summary-total { padding: 0.8rem 0 0; border-top: 1px solid #eadfce; font-size: 13px; font-weight: 700; }
.checkout-summary .summary-total { color: var(--color-gold); }
.checkout-summary .summary-total strong { color: var(--color-gold); font-size: 13px; font-weight: 700; }
.placeholder-notice { margin-bottom: 1rem; padding: 0.7rem; background: #f7f1e7; color: var(--color-text-muted); font-size: 13px; }
.payment-details > h2, .payment-details dt { font-size: 14px; }
.payment-details > p, .payment-details dd { font-size: 13px; }
.payment-details dl { display: grid; gap: 0.8rem; margin-bottom: 1rem; }
.payment-details dl div { padding-bottom: 0.7rem; border-bottom: 1px solid #eee5d8; }
.payment-details dt { font-weight: 800; }
.payment-details dd { margin-top: 0.25rem; color: var(--color-text-muted); line-height: 1.6; }
.review-check { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.8rem; }
.review-check input { flex: 0 0 auto; width: 20px; height: 20px; accent-color: #a87310; }
.form-status { margin-top: 0.5rem; color: #8b291d; font-size: 0.75rem; }
.checkout-loading { padding: 0.75rem 0; color: var(--color-text-muted); font-size: 13px; }
.btn-primary:disabled { cursor: not-allowed; opacity: 0.45; }
.confirmation-page { min-height: 100svh; display: grid; place-items: center; padding: 1rem; background: var(--color-section-bg); }
.confirmation-card { width: min(100%, 560px); padding: 1.5rem; border: 1px solid #eadfce; border-radius: var(--radius-lg); background: var(--color-white); }
.confirmation-header { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.45rem; text-align: center; }
.confirmation-check { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border: 1px solid var(--color-gold); border-radius: 50%; color: var(--color-gold-hover); font-size: 1rem; font-weight: 800; visibility: hidden; }
.confirmation-card.has-confirmation .confirmation-check { visibility: visible; }
.confirmation-card h1 { font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.2; }
.confirmation-status { min-height: 1.25rem; margin-top: 0.25rem; color: var(--color-text-muted); font-size: 13px; }
.confirmation-details-heading { margin-top: 1.35rem; font-size: 14px; font-weight: 700; }
.confirmation-items { display: grid; gap: 0.65rem; margin: 1.25rem 0; padding: 0; list-style: none; }
.confirmation-items li { padding-bottom: 0.65rem; border-bottom: 1px solid #eee5d8; font-size: 13px; }
.confirmation-items li:last-child { border-bottom: 0; }
.confirmation-total { display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.85rem; border-top: 1px solid #eadfce; font-size: 13px; font-weight: 700; }
.confirmation-payment { margin: 0.85rem 0 1rem; color: var(--color-text-muted); font-size: 13px; }
.confirmation-action { width: 100%; min-height: 44px; }

@media (min-width: 768px) {
  .checkout-layout { grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); align-items: start; gap: 1.25rem; }
  .checkout-right { position: sticky; top: 104px; }
  .checkout-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
  .checkout-details > h2, .checkout-details > .delivery-notice, .checkout-details > .field-full { grid-column: 1 / -1; }
  .payment-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.drawer-cart-image {
  width: 72px;
  min-height: 72px;
  aspect-ratio: 1;
  border-radius: 9px;
}

.checkout-item-visual,
.checkout-item-image {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 9px;
}

.checkout-item-image {
  object-fit: cover;
}


/* Unified product imagery and buying controls */
.product-card-image,
.product-modal-image {
  aspect-ratio: 1;
}

.product-detail-modal {
  align-items: stretch;
}

.product-modal-visual {
  aspect-ratio: 1;
}

.product-detail-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.product-detail-price {
  margin: 0.9rem 0 1.15rem;
  font-size: 1.35rem;
  line-height: 1.2;
}

.product-size-picker {
  min-inline-size: 0;
  margin-top: .85rem;
  padding: 0;
  border: 0;
}

.product-size-picker legend {
  padding: 0;
  margin: 0 0 .45rem;
  color: var(--color-black);
  font-size: .78rem;
  font-weight: 700;
}

.product-size-choices {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.product-size-button {
  box-sizing: border-box;
  display: grid;
  flex: 0 0 3.5rem;
  inline-size: 3.5rem;
  block-size: 3.5rem;
  place-items: center;
  padding: .25rem;
  border: 1px solid #ded4c5;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-black);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.product-size-label {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.product-size-button:hover:not(:disabled),
.product-size-button[aria-pressed="true"] {
  border-color: var(--color-gold);
  background: var(--color-gold-light);
}

.product-size-button[aria-pressed="true"] {
  box-shadow: inset 0 0 0 1px var(--color-gold);
}

.product-size-button:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}

.product-size-button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.product-purchase-actions {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
}

.product-purchase-actions .product-quantity {
  display: grid;
  height: 48px;
  flex: 0 0 auto;
  grid-template-columns: 42px 44px 42px;
  margin: 0;
  border-color: #ded4c5;
  border-radius: var(--radius-full);
}

.product-purchase-actions .product-quantity-button,
.product-purchase-actions .product-quantity-value {
  display: grid;
  min-height: 46px;
  place-items: center;
  padding: 0;
}

.product-purchase-actions .product-quantity-button {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-black);
  box-shadow: none;
}

.product-purchase-actions .product-quantity-button:hover:not(:disabled),
.product-purchase-actions .product-quantity-button:focus-visible:not(:disabled) {
  background: var(--color-gold-light);
  color: var(--color-gold-hover);
}

.product-purchase-actions .product-quantity-button:focus-visible {
  outline-offset: -3px;
}

.product-quantity-icon {
  display: block;
  width: 17px;
  height: 17px;
  overflow: visible;
}

.product-purchase-actions .product-quantity-value {
  color: var(--color-black);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(1px);
}

.product-add-toast {
  position: fixed;
  z-index: 100;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  min-height: 48px;
  max-width: min(360px, calc(100vw - 2.5rem));
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(212, 155, 40, 0.55);
  border-radius: 12px;
  background: #121212;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  font-size: 0.84rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.75rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.product-add-toast::before {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-black);
  content: "✓";
  font-size: 0.72rem;
  font-weight: 900;
}

.product-add-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 639px) {
  .product-add-toast {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    max-width: none;
  }
}

.product-purchase-actions .product-add-button {
  flex: 1 1 auto;
  min-height: 48px;
}

@media (min-width: 640px) {
  .product-modal-visual,
  .product-modal-image {
    aspect-ratio: 1;
  }

  .product-detail-copy {
    padding: 1rem 1rem 1rem 0;
  }

  .product-purchase-actions .product-quantity {
    margin: 0;
  }
}

@media (max-width: 639px), (pointer: coarse) and (max-height: 500px) {
  .product-detail-overlay {
    align-items: flex-end;
    padding: 0;
    overflow: hidden;
  }

  .product-detail-modal {
    --product-sheet-gutter: 0.875rem;
    display: block;
    width: min(100%, 27rem);
    max-height: calc(100vh - 1.5rem);
    max-height: calc(100dvh - max(1.5rem, env(safe-area-inset-top, 0px)));
    padding: 0 var(--product-sheet-gutter);
    border-bottom: 0;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .product-detail-modal::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .product-detail-toolbar {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    justify-content: flex-end;
    margin-inline: calc(-1 * var(--product-sheet-gutter));
    padding: var(--product-sheet-gutter) var(--product-sheet-gutter) 0.5rem;
    background: var(--color-white);
  }

  .product-detail-close {
    position: static;
    box-shadow: none;
  }

  .product-detail-image .product-image-frame {
    aspect-ratio: 1;
  }

  .product-detail-image .product-image-frame:hover > .product-modal-image {
    transform: none;
  }

  .product-detail-copy {
    display: contents;
    text-align: left;
  }

  .product-detail-copy .product-detail-name {
    margin-top: 0.85rem;
  }

  .product-detail-name,
  .product-detail-description {
    overflow-wrap: anywhere;
  }

  .product-size-picker {
    margin-top: 0.65rem;
  }

  .product-size-button {
    flex-basis: 3.25rem;
    inline-size: 3.25rem;
    block-size: 3.25rem;
    padding: 0.0625rem;
    font-size: 0.7rem;
  }

  .product-detail-price {
    margin: 0.65rem 0 0.85rem;
    font-size: 1.2rem;
  }

  .product-purchase-actions {
    position: sticky;
    z-index: 1;
    bottom: 0;
    gap: 0.625rem;
    margin: 0 calc(-1 * var(--product-sheet-gutter));
    padding: 0.625rem var(--product-sheet-gutter) calc(0.625rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--color-border);
    background: var(--color-white);
  }

  .product-purchase-actions .product-quantity {
    grid-template-columns: 44px 34px 44px;
  }

  .product-purchase-actions .product-add-button {
    width: auto;
    min-width: 0;
  }
}


/* Checkout: editorial two-column order flow */
.checkout-body {
  background: #fff;
}

.checkout-page {
  padding-top: 1rem;
  padding-bottom: 3rem;
}

.checkout-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #6f6a63;
  font-size: 0.86rem;
  font-weight: 700;
}

.checkout-intro {
  margin: 1.2rem 0 2rem;
}

.checkout-intro .eyebrow {
  color: var(--color-gold-hover);
}

.checkout-intro h1 {
  margin-top: 0.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.65rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.checkout-shell {
  display: grid;
  overflow: hidden;
  border: 1px solid #e8dfd2;
  border-radius: 16px;
  background: var(--color-white);
}

.checkout-main,
.checkout-order {
  min-width: 0;
  padding: 1.5rem;
}

.checkout-main > h2,
.checkout-order h2,
.checkout-cod-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  font-weight: 400;
  line-height: 1.15;
}

.checkout-main .delivery-notice {
  margin-top: 1rem;
}

.checkout-field-grid {
  display: grid;
  gap: 1rem;
}

.checkout-main .field {
  margin-top: 1rem;
}

.checkout-main .field label {
  color: #35312c;
}

.checkout-main .field input,
.checkout-main .field select,
.checkout-main .field textarea {
  border-color: #e0d8cc;
  border-radius: 10px;
  background: #fff;
}

.checkout-cod-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
  border: 1px solid #e8dbb8;
  border-radius: 10px;
  background: #fdfaf3;
}

.checkout-cod-icon {
  display: grid;
  place-items: center;
  min-height: 100%;
  border-right: 1px solid #e8dbb8;
  color: var(--color-gold-hover);
}

.checkout-cod-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(50%) sepia(68%) saturate(626%) hue-rotate(1deg) brightness(93%) contrast(88%);
}

.checkout-cod-card > div:last-child {
  padding: 1rem 1rem 1rem 0;
}

.checkout-cod-card h2 {
  color: #966e0a;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
}

.checkout-cod-card p {
  margin-top: 0.35rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.checkout-submit {
  margin: 1.75rem -1.5rem -1.5rem;
  padding: 1.5rem;
  border-top: 1px solid #e8dfd2;
}

.checkout-submit .review-check {
  font-size: 0.86rem;
}

.checkout-submit .btn-primary {
  min-height: 52px;
}

.checkout-order {
  border-top: 1px solid #e8dfd2;
}

.checkout-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e8dfd2;
}

.checkout-order-head .text-button {
  min-height: 36px;
  font-size: 0.78rem;
}

.checkout-items {
  display: grid;
}

.checkout-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  justify-content: initial;
  gap: 1rem;
  padding: 1.25rem 0;
}

.checkout-item-visual,
.checkout-item-image {
  width: 72px;
  height: 72px;
  flex: none;
  aspect-ratio: 1;
  border-radius: 10px;
}

.checkout-item > span {
  align-content: center;
}

.checkout-item-name {
  color: var(--color-black);
  font-size: 0.95rem;
  line-height: 1.35;
}

.checkout-item small {
  font-size: 0.8rem;
}

.checkout-totals {
  margin-top: auto;
  border-top: 1px solid #e8dfd2;
}

.checkout-totals div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid #e8dfd2;
  font-size: 0.9rem;
}

.checkout-totals dt {
  color: #5f5951;
}

.checkout-totals dd {
  margin: 0;
  color: var(--color-black);
  font-weight: 700;
  text-align: right;
}

.checkout-totals .checkout-total-row {
  border-bottom: 0;
  color: var(--color-black);
  font-size: 1rem;
  font-weight: 800;
}

.checkout-totals .checkout-total-row dt,
.checkout-totals .checkout-total-row dd {
  color: var(--color-black);
}

.checkout-total-note {
  margin-top: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .checkout-shell {
    grid-template-columns: minmax(0, 1.28fr) minmax(360px, 0.92fr);
  }

  .checkout-main,
  .checkout-order {
    padding: 2.4rem;
  }

  .checkout-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkout-order {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    border-top: 0;
    border-left: 1px solid #e8dfd2;
  }

  .checkout-submit {
    margin: 2rem -2.4rem -2.4rem;
    padding: 2rem 2.4rem;
  }
}


/* CMS-driven category navigation and cards */
.category-tile-dynamic { overflow: hidden; background: #f4eee5; }
.category-tile-dynamic > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.categories-section .container { max-width: 1760px; }
.category-grid { max-width: none; }
@media (min-width: 768px) { .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; } }

.catalogue-loading {
  grid-column: 1 / -1;
  padding: 2rem 0;
  color: var(--color-text-muted);
  text-align: center;
}



/* Checkout keeps the original Cake Kitchen layout; only shared shell and balanced order media are added. */
.checkout-body { background: var(--color-section-bg); }
.checkout-order-head .text-button:empty { display: none; }
.checkout-items { overscroll-behavior: contain; }
@media (min-width: 900px) {
  .checkout-item { grid-template-columns: 68px minmax(0, 1fr); }
  .checkout-item-visual { width: 68px; height: 68px; }
  .checkout-order .checkout-items { max-height: 25rem; overflow-y: auto; padding-right: .25rem; }
}

/* Image-only custom cake artwork retains the existing poster-card visual treatment. */
.custom-cakes-image-gallery { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.custom-cakes-section .bespoke-poster-frame {
  height: auto;
  aspect-ratio: 3 / 4;
  background: var(--color-card-bg);
}
.custom-cakes-section .bespoke-poster-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Catalogue search: no suggested or popular-search content. */
.search-results { margin-top: 1rem; max-height: min(52vh, 28rem); overflow-y: auto; }
.search-result-list { list-style: none; display: grid; gap: .5rem; }
.search-result-list a { display: block; padding: .7rem .9rem; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-sm); transition: border-color var(--transition-fast), background-color var(--transition-fast); }
.search-result-list a:hover { border-color: var(--color-gold-border); background: var(--color-gold-light); }
.search-category-title { margin: .85rem 0 .5rem; font-size: .82rem; font-weight: 700; }
.search-category-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.search-category-links a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .45rem .8rem; border: 1px solid var(--color-gold-border); border-radius: var(--radius-full); font-weight: 700; }
.search-category-links a:hover { background: var(--color-gold-light); }
.search-view-all { margin-top: .75rem; color: var(--color-black); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.search-view-all:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 3px; }


/* Desktop checkout refinement: same layout, deliberately compact type and spacing. */
@media (min-width: 900px) {
  .checkout-page { max-width: 1180px; padding-top: 1.5rem; padding-bottom: 2.5rem; }
  .checkout-back { min-height: 36px; font-size: .85rem; }
  .checkout-intro { margin: .65rem 0 1.35rem; }
  .checkout-intro .eyebrow { font-size: .67rem; letter-spacing: .14em; }
  .checkout-intro h1 { margin-top: .25rem; font-size: clamp(2.25rem, 3.2vw, 3.25rem); line-height: 1.05; }
  .checkout-shell { border-radius: 12px; }
  .checkout-main, .checkout-order { padding: 1.75rem; }
  .checkout-main > h2, .checkout-order h2 { font-size: clamp(1.45rem, 1.8vw, 1.85rem); }
  .delivery-notice { margin-top: .75rem; padding: .7rem .85rem; font-size: .84rem; }
  .checkout-main .field { margin-top: .8rem; }
  .checkout-field-grid { gap: .8rem; }
  .field { gap: .35rem; }
  .field label { font-size: .82rem; }
  .field input, .field select { min-height: 2.85rem; padding: .58rem .75rem; font-size: .9rem; }
  .field textarea { min-height: 5.25rem; padding: .65rem .75rem; font-size: .9rem; }
  .checkout-cod-card { margin-top: 1rem; }
  .checkout-cod-card h2 { font-size: .98rem; }
  .checkout-cod-card p, .checkout-total-note { font-size: .8rem; }
  .checkout-submit { margin: 1.25rem -1.75rem -1.75rem; padding: 1.25rem 1.75rem; }
  .checkout-submit .btn-primary { min-height: 46px; }
  .review-check { font-size: .86rem; }
  .checkout-order-head { padding-bottom: .9rem; }
  .checkout-item { gap: .8rem; padding: .85rem 0; }
  .checkout-item-name, .checkout-totals { font-size: .88rem; }
  .checkout-totals div { padding: .72rem 0; }
}

.custom-cakes-section .bespoke-poster-frame > img[hidden] { display: none; }

/* Cart feedback stays centred without covering the full mobile viewport. */
.product-add-toast {
  left: 50%;
  right: auto;
  transform: translate(-50%, .75rem);
}
.product-add-toast.is-visible { transform: translate(-50%, 0); }
@media (max-width: 639px) {
  .product-add-toast {
    left: 50%;
    right: auto;
    width: max-content;
    max-width: calc(100vw - 2rem);
  }
}

/* The submit action follows the complete order review on mobile. */
.checkout-submit { margin: 0; padding: 1.5rem; }
@media (min-width: 768px) {
  .checkout-main { grid-column: 1; grid-row: 1; }
  .checkout-order { grid-column: 2; grid-row: 1 / 3; }
  .checkout-submit {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    margin: 0;
    padding: 1.5rem 2.4rem;
  }
}
@media (min-width: 900px) {
  .checkout-submit { margin: 0; padding: 1.25rem 1.75rem; }
}

/* Cake Kitchen receipt. Amounts and status come only from the saved server receipt. */
.confirmation-page { padding: clamp(1rem, 3vw, 2rem); }
.confirmation-card {
  width: min(100%, 580px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #e4d8c4;
  box-shadow: var(--shadow-md);
}
.confirmation-header {
  padding: clamp(1.25rem, 4vw, 1.8rem);
  background: #fff;
}
.receipt-logo { width: auto; height: 48px; object-fit: contain; margin-bottom: .45rem; }
.confirmation-check {
  width: 36px;
  height: 36px;
  font-size: 1.05rem;
  background: var(--color-gold-light);
}
.confirmation-card h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 1.95rem);
}
.confirmation-status { max-width: 32rem; color: #665f53; font-size: .8rem; }
.receipt-content { padding: 0 clamp(1rem, 4vw, 1.8rem) clamp(1.25rem, 4vw, 1.8rem); }
.receipt-heading { margin-bottom: .55rem; font-size: .73rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.receipt-items {
  list-style: none;
  padding: 0 .9rem;
  border: 1px solid #e9e0d3;
  border-radius: 10px;
  background: #faf7f2;
}
.receipt-item { display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid #e9e0d3; }
.receipt-item:last-child { border-bottom: 0; }
.receipt-item-name { display: block; font-size: .82rem; font-weight: 700; }
.receipt-item-detail { display: block; margin-top: .2rem; color: #746d62; font-size: .73rem; }
.receipt-item-amount { white-space: nowrap; font-size: .82rem; font-weight: 700; }
.receipt-totals {
  margin-top: .85rem;
  padding: .75rem .9rem;
  border: 1px solid #e8dbb8;
  border-radius: 10px;
  background: #fdfaf3;
}
.receipt-totals > div { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; font-size: .8rem; }
.receipt-totals dt { color: #665f53; }
.receipt-totals dd { margin: 0; font-weight: 700; text-align: right; }
.receipt-totals .receipt-grand-total { margin-top: .35rem; padding-top: .65rem; border-top: 1px solid #e9e0d3; font-size: .9rem; }
.receipt-grand-total dt, .receipt-grand-total dd { color: var(--color-black); font-weight: 800; }
.receipt-payment { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-top: 1px solid #e9e0d3; font-size: .8rem; }
.receipt-payment strong { text-align: right; }
.receipt-content .confirmation-action { margin-top: 1rem; min-height: 44px; }

