/* ============================================
   Jafra — Design System & Styles
   Colors derived from logo.webp
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
  --color-primary: #243838;
  --color-primary-dark: #1a2828;
  --color-primary-light: #3a5555;
  --color-accent: #b04e57;
  --color-accent-hover: #964248;
  --color-accent-soft: rgba(176, 78, 87, 0.14);
  --color-sand: #c9b896;
  --color-sand-light: #ddd0b8;
  --color-gold: #d4a574;
  --color-cream: #f7f2ea;
  --color-cream-dark: #ebe3d6;
  --color-muted: #5c6a6a;
  --color-text: #1c2626;
  --color-surface: #fffdf9;
  --color-white: #ffffff;

  /* Nav colors */
  --nav-bg: #ffffff;
  --nav-bg-scrolled: #ffffff;
  --nav-border: rgba(201, 184, 150, 0.35);
  --nav-text: var(--color-primary);
  --nav-text-hover: var(--color-accent);
  --nav-link-hover-bg: var(--color-accent-soft);
  --nav-accent-bar: linear-gradient(90deg, var(--color-accent), var(--color-gold));

  /* Footer colors */
  --footer-bg: linear-gradient(165deg, #3d2e28 0%, #2e221e 45%, #221a18 100%);
  --footer-accent-bar: linear-gradient(90deg, var(--color-gold), var(--color-accent));
  --footer-text: #f0e8da;
  --footer-text-muted: rgba(240, 232, 218, 0.75);
  --footer-heading: var(--color-gold);
  --footer-border: rgba(212, 165, 116, 0.2);

  /* Main section colors */
  --section-white-bg: #ffffff;
  --section-cream-bg: #f9f5ee;
  --section-sand-bg: linear-gradient(160deg, #f3ebe0 0%, #e8dcc8 100%);
  --section-primary-bg: linear-gradient(135deg, #243838 0%, #3a5555 60%, #2a4040 100%);
  --section-sage-bg: linear-gradient(145deg, #eef3f2 0%, #e4ecea 50%, #f5f0ea 100%);

  --gradient-brand: var(--section-primary-bg);
  --gradient-warm: var(--section-sand-bg);
  --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, #c4646d 100%);
  --gradient-hero: var(--section-sage-bg);

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-soft: 0 12px 40px rgba(36, 56, 56, 0.1);
  --shadow-card: 0 4px 24px rgba(36, 56, 56, 0.07);
  --shadow-nav: 0 6px 32px rgba(26, 40, 40, 0.35);
  --shadow-logo: 0 4px 20px rgba(0, 0, 0, 0.15);

  --nav-height: 112px;
  --container-max: 1200px;
  --section-gap: clamp(3.5rem, 7vw, 6rem);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-surface);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-height);
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

ul {
  list-style: none;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

main {
  flex: 1;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

.section-header p {
  margin-top: 0.75rem;
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(176, 78, 87, 0.3);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(176, 78, 87, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-cream);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-cream);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* ---- Sections ---- */
.section {
  padding-block: var(--section-gap);
}

.section-sand {
  background: var(--section-sand-bg);
}

.section-cream {
  background: var(--section-cream-bg);
}

.section-white {
  background: var(--section-white-bg);
}

.section-primary {
  background: var(--section-primary-bg);
  color: var(--color-cream);
}

.section-primary h2,
.section-primary h3 {
  color: var(--color-cream);
}

/* ---- Cards ---- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(201, 184, 150, 0.3);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(176, 78, 87, 0.25);
}

.card-image {
  aspect-ratio: 4 / 3;
  background: var(--gradient-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  margin-bottom: 0.5rem;
}

.card-body p {
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.card-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: 0.75rem;
}

/* ---- Grid ---- */
.grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

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

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

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

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ---- Navigation ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  transition: box-shadow var(--transition), background var(--transition);
}

.site-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--nav-accent-bar);
  opacity: 0.5;
}

.site-header.scrolled {
  box-shadow: var(--shadow-nav);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: var(--nav-height);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  gap: clamp(0.5rem, 2vw, 1.25rem);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: var(--color-surface);
  border: 1px solid var(--nav-border);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 2vw, 0.5rem);
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--nav-text);
  padding: 0.625rem 1rem;
  border-radius: var(--radius-full);
  position: relative;
  transition: color var(--transition), background var(--transition);
}

.nav-links a::after {
  display: none;
}

.nav-links a:hover {
  color: var(--nav-text-hover);
  background: var(--nav-link-hover-bg);
}

.nav-links a.active {
  color: var(--color-white);
  background: var(--gradient-accent);
  box-shadow: 0 2px 14px rgba(176, 78, 87, 0.4);
}

/* ---- Logo showcase ---- */
.logo-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  box-shadow: var(--shadow-logo);
  border: 1px solid rgba(196, 181, 158, 0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}

.logo-showcase:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-soft);
}

.nav-logo {
  flex-shrink: 0;
  margin-right: auto;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 78px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  background: transparent;
}

.logo-showcase--footer {
  display: inline-flex;
  padding: 0.75rem 1.25rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-lg);
}

.logo-showcase--footer img {
  height: 64px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

@media (max-width: 768px) {
  :root {
    --nav-height: 96px;
  }

  .navbar {
    justify-content: flex-end;
  }

  .nav-toggle {
    display: flex;
    order: 2;
  }

  .nav-logo {
    margin-right: auto;
    order: 1;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.375rem;
    background: var(--nav-bg);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    box-shadow: var(--shadow-nav);
    border-bottom: 1px solid var(--nav-border);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .nav-links a:hover {
    background: var(--nav-link-hover-bg);
    color: var(--nav-text-hover);
  }

  .nav-logo img {
    height: 58px;
    max-width: 160px;
  }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--footer-accent-bar);
}

.site-footer::after {
  content: '';
  position: absolute;
  bottom: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: var(--radius-full);
  background: rgba(212, 165, 116, 0.06);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding-bottom: clamp(0.75rem, 1.5vw, 1rem);
  position: relative;
  z-index: 1;
}

.footer-brand img {
  margin-bottom: 0;
}

.footer-brand p {
  color: var(--footer-text-muted);
  font-size: 0.9375rem;
  max-width: 300px;
  line-height: 1.75;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--footer-heading);
  margin-bottom: 0.5rem;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-links a {
  color: var(--footer-text);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

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

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 0.4rem;
  font-size: 0.9375rem;
  color: var(--footer-text-muted);
}

.footer-contact a {
  color: var(--footer-text);
  flex: 1;
  min-width: 0;
  word-break: break-word;
  text-decoration: none;
  line-height: 1.5;
}

.footer-contact a:hover {
  color: var(--color-gold);
  text-decoration: underline;
}

.footer-contact svg {
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.7;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.07);
  color: var(--footer-text);
  border: 1px solid var(--footer-border);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.social-links a:hover {
  background: var(--color-gold);
  color: #2e221e;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--footer-border);
  padding-block: 0.65rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--footer-text-muted);
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin-inline: auto;
  }

  .footer-contact li {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: clamp(480px, 75vh, 680px);
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(176, 78, 87, 0.07) 0%, transparent 45%),
    radial-gradient(ellipse at 10% 80%, rgba(36, 56, 56, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 184, 150, 0.45), transparent);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-box {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(196, 181, 158, 0.3);
  text-align: center;
}

.hero-logo-box img {
  height: clamp(100px, 18vw, 160px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-inline: auto;
}

.hero-logo-box::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
  margin: 1.5rem auto 0;
}

.hero h1 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--color-muted);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 768px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-logo-box {
    padding: 1.5rem 2rem;
  }

  .hero-logo-box img {
    height: 80px;
  }
}

/* ---- Page header (inner pages) ---- */
.page-header {
  background: var(--section-sand-bg);
  padding-block: clamp(3.5rem, 9vw, 6rem);
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(201, 184, 150, 0.35);
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(176, 78, 87, 0.06) 0%, transparent 55%);
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.page-header p {
  color: var(--color-muted);
  max-width: 560px;
  margin-inline: auto;
  font-size: 1.05rem;
}

/* ---- Category cards ---- */
.category-grid {
  align-items: stretch;
}

.category-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.category-card:hover {
  color: inherit;
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(176, 78, 87, 0.25);
}

.category-card-image {
  aspect-ratio: 4 / 3;
  background: var(--color-white);
  overflow: hidden;
  border-bottom: 1px solid rgba(201, 184, 150, 0.25);
}

.category-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  transition: transform var(--transition);
}

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

.category-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.category-count {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.category-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}

.category-card:hover h3 {
  color: var(--color-accent);
}

.category-card p {
  color: var(--color-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.category-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: color var(--transition);
}

.category-card:hover .category-link {
  color: var(--color-accent);
}

.category-icon {
  width: 72px;
  height: 72px;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(196, 90, 100, 0.25);
}

/* ---- Split section ---- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split-section.reverse {
  direction: rtl;
}

.split-section.reverse > * {
  direction: ltr;
}

.split-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: var(--gradient-warm);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(196, 181, 158, 0.3);
}

.split-content h2 {
  margin-bottom: 1rem;
}

.split-content p {
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.split-content p:last-of-type {
  margin-bottom: 1.5rem;
}

.feature-list {
  margin-top: 1.5rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.feature-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .split-section {
    grid-template-columns: 1fr;
  }

  .split-section.reverse {
    direction: ltr;
  }
}

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

.product-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 1rem;
}

.product-card .card-link {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 600;
  font-size: 0.875rem;
}

/* ---- Shop page ---- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shop-header-meta {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-muted);
  font-weight: 500;
}

.shop-toolbar {
  position: static;
  margin-bottom: 2.5rem;
  padding: 1.25rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 184, 150, 0.35);
  box-shadow: var(--shadow-card);
}

.shop-search-wrap {
  margin-bottom: 1rem;
}

.shop-search {
  width: 100%;
  padding: 0.875rem 1.25rem 0.875rem 2.75rem;
  border: 2px solid var(--color-cream-dark);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235c6a6a' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 1rem center;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.shop-search:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.shop-filter-bar {
  margin-bottom: 0;
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-sand) transparent;
  -webkit-overflow-scrolling: touch;
}

.shop-filter-bar .filter-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.shop-loading {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--color-muted);
}

.shop-loading-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border: 3px solid var(--color-cream-dark);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: shopSpin 0.8s linear infinite;
}

@keyframes shopSpin {
  to { transform: rotate(360deg); }
}

.shop-empty,
.shop-error {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--section-cream-bg);
  border-radius: var(--radius-lg);
  color: var(--color-muted);
}

.shop-catalog {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 4.5rem);
}

.shop-category-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.shop-category-title {
  flex-shrink: 0;
}

.shop-category-title h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.25rem;
}

.shop-category-count {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.shop-category-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--color-sand), transparent);
  border-radius: 1px;
}

.shop-grid {
  align-items: stretch;
}

.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card-image {
  aspect-ratio: 1 / 1;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(201, 184, 150, 0.2);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  transition: transform var(--transition);
}

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

.product-card-placeholder {
  color: var(--color-muted);
  font-size: 0.875rem;
}

.product-category-badge {
  display: inline-block;
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-cream);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.625rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.35;
  min-height: 1.35rem;
}

.product-name {
  flex-shrink: 0;
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
  transition: color var(--transition);
  line-height: 1.35;
  min-height: calc(1.35em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-desc {
  color: var(--color-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-bottom: 0;
  flex: 1 1 auto;
  min-height: calc(1.5em * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 0.625rem;
  margin-top: auto;
  padding-top: 0.75rem;
  min-height: 6.25rem;
  border-top: 1px solid rgba(201, 184, 150, 0.25);
}

.product-card-actions {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr);
  align-items: stretch;
  gap: 0.375rem;
  min-height: 2.75rem;
}

.product-card .card-price {
  margin-top: 0;
  font-size: 1.125rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.card-price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex-shrink: 0;
  gap: 0.1rem;
  min-height: 2.35rem;
  min-width: 0;
}

.card-price-label {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
}

.qty-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-shrink: 0;
  width: 5.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  max-height: 2.75rem;
  padding: 0.125rem;
  background: var(--color-cream);
  border: 1px solid rgba(201, 184, 150, 0.45);
  border-radius: var(--radius-full);
}

.qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.625rem;
  width: 1.625rem;
  height: 1.625rem;
  padding: 0;
  border: none;
  border-radius: var(--radius-full);
  background: var(--color-white);
  color: var(--color-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(36, 56, 56, 0.08);
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (hover: hover) {
  .qty-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.05);
  }
}

.qty-btn:active {
  transform: scale(0.98);
}

.qty-value {
  flex: 1;
  min-width: 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.product-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 2.75rem;
  min-height: 2.75rem;
  max-height: 2.75rem;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(176, 78, 87, 0.22);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.product-add-btn-text {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-add-btn.is-added {
  background: var(--color-primary);
  box-shadow: 0 4px 14px rgba(36, 56, 56, 0.2);
}

@media (min-width: 768px) {
  .product-add-btn {
    font-size: 0.8125rem;
  }
}

/* ---- Cart bar & panel ---- */
.cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(255, 253, 249, 0) 0%, rgba(255, 253, 249, 0.92) 28%, #fffdf9 100%);
  pointer-events: none;
}

.cart-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto;
}

.cart-bar-toggle {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.875rem 1.125rem;
  border: 1px solid rgba(201, 184, 150, 0.45);
  border-radius: var(--radius-full);
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cart-bar-toggle:hover {
  border-color: rgba(176, 78, 87, 0.35);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.cart-bar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.cart-bar-copy {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  min-width: 0;
}

.cart-bar-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

.cart-bar-count {
  color: var(--color-muted);
  font-weight: 500;
  white-space: nowrap;
}

.cart-bar-sep {
  color: var(--color-sand);
}

.cart-bar-total {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
}

.cart-bar-chevron {
  color: var(--color-muted);
  transition: transform var(--transition);
}

.cart-bar-toggle[aria-expanded="true"] .cart-bar-chevron {
  transform: rotate(180deg);
}

.cart-bar-clear {
  min-height: 3rem;
  padding: 0.875rem 1.125rem;
  border: 1px solid rgba(201, 184, 150, 0.45);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cart-bar-clear:hover {
  background: var(--color-cream);
  color: var(--color-accent);
  border-color: rgba(176, 78, 87, 0.3);
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 940;
  background: rgba(28, 38, 38, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.cart-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

body.cart-drawer-open {
  overflow: hidden;
  padding-bottom: 0 !important;
}

body.cart-drawer-open .cart-bar {
  opacity: 0;
  pointer-events: none;
}

.cart-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  display: flex;
  flex-direction: column;
  max-height: min(92dvh, 720px);
  background: var(--color-white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -12px 48px rgba(36, 56, 56, 0.2);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  touch-action: manipulation;
}

.cart-drawer.is-open {
  transform: translateY(0);
}

.cart-drawer-handle {
  flex-shrink: 0;
  width: 2.75rem;
  height: 0.25rem;
  margin: 0.625rem auto 0;
  border-radius: var(--radius-full);
  background: rgba(201, 184, 150, 0.65);
}

.cart-drawer-header {
  flex-shrink: 0;
}

.cart-drawer-heading {
  min-width: 0;
}

.cart-drawer-subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
  font-weight: 500;
}

.cart-drawer-summary {
  flex-shrink: 0;
  padding: 0 1.25rem 0.75rem;
  border-bottom: 1px solid rgba(201, 184, 150, 0.25);
  background: var(--color-cream);
}

.cart-drawer-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.cart-drawer-summary-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: center;
  padding: 0.625rem 0.5rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(201, 184, 150, 0.3);
}

.cart-drawer-summary-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.cart-drawer-summary-stat strong {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--color-accent);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0 0.5rem;
}

.cart-drawer-footer {
  flex-shrink: 0;
  padding-bottom: calc(1.125rem + env(safe-area-inset-bottom, 0px));
}

.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.125rem;
  border-bottom: 1px solid rgba(201, 184, 150, 0.25);
  background: var(--color-cream);
}

.cart-panel-title {
  font-size: 1.375rem;
  margin: 0;
  color: var(--color-primary);
}

.cart-panel-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cart-panel-close:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.cart-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.cart-panel-empty {
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.cart-drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Drawer item rows */
.cart-drawer-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.875rem;
  align-items: start;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(201, 184, 150, 0.2);
}

.cart-drawer-item-media img,
.cart-drawer-item-media .cart-panel-item-placeholder {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: var(--color-cream);
  border: 1px solid rgba(201, 184, 150, 0.3);
  display: block;
}

.cart-drawer-item-details {
  min-width: 0;
}

.cart-drawer-item-name {
  margin: 0 0 0.25rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
}

.cart-drawer-item-unit {
  margin: 0 0 0.625rem;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.cart-drawer-item-unit span {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cart-drawer-item-calc {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}

.qty-stepper--panel {
  width: 5.75rem;
  height: 2rem;
}

.qty-stepper--panel .qty-btn {
  flex-basis: 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.875rem;
}

.qty-stepper--panel .qty-value {
  font-size: 0.8125rem;
}

.cart-drawer-item-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  text-align: right;
}

.cart-drawer-item-total {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
}

.cart-panel-item-remove {
  min-height: 44px;
  padding: 0.5rem 0.25rem;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color var(--transition);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cart-panel-item-remove:hover {
  color: var(--color-accent);
}

.cart-panel-footer {
  padding: 1rem 1.125rem 1.125rem;
  border-top: 1px solid rgba(201, 184, 150, 0.25);
  background: var(--color-surface);
}

.cart-panel-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.625rem;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.cart-panel-total-row strong {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
}

.cart-panel-total-row--grand {
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(201, 184, 150, 0.35);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
}

.cart-panel-total-row--grand strong {
  font-size: 1.625rem;
}

.cart-panel-total-row--muted {
  color: var(--color-muted);
  font-size: 0.875rem;
}

.cart-panel-note {
  margin: 0 0 0.875rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.cart-panel-cta {
  width: 100%;
  text-decoration: none;
}

.cart-panel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}

@media (min-width: 640px) {
  .cart-drawer {
    left: 50%;
    right: auto;
    width: min(480px, calc(100vw - 2rem));
    transform: translateX(-50%) translateY(100%);
  }

  .cart-drawer.is-open {
    transform: translateX(-50%) translateY(0);
  }
}

.cart-toast {
  position: fixed;
  left: 50%;
  bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
  z-index: 960;
  max-width: min(360px, calc(100vw - 2rem));
  padding: 0.75rem 1.125rem;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-cream);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.cart-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body.cart-bar-visible {
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

.product-card.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.product-card.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .shop-toolbar {
    padding: 1rem;
  }

  .shop-category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .shop-category-line {
    width: 100%;
  }

  /* ---- Cart: mobile ---- */
  body.cart-bar-visible {
    padding-bottom: calc(9rem + env(safe-area-inset-bottom, 0px));
  }

  .cart-bar {
    padding: 0.625rem 0.75rem calc(0.625rem + env(safe-area-inset-bottom, 0px));
  }

  .cart-bar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .cart-bar-toggle {
    min-height: 3.25rem;
    padding: 0.75rem 1rem;
    gap: 0.625rem;
  }

  .cart-bar-label {
    font-size: 0.75rem;
  }

  .cart-bar-total {
    font-size: 1.125rem;
  }

  .cart-bar-clear {
    width: 100%;
    min-height: 2.75rem;
  }

  .cart-drawer {
    max-height: min(94dvh, 720px);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .cart-drawer-header {
    padding: 0.875rem 1rem;
  }

  .cart-drawer-summary {
    padding: 0 1rem 0.625rem;
  }

  .cart-drawer-summary-grid {
    gap: 0.5rem;
  }

  .cart-drawer-summary-stat {
    padding: 0.5rem 0.375rem;
  }

  .cart-drawer-summary-stat strong {
    font-size: 1rem;
  }

  .cart-drawer-item {
    grid-template-columns: 56px 1fr;
    grid-template-areas:
      "media details"
      "actions actions";
    gap: 0.625rem 0.75rem;
    padding: 0.875rem 1rem;
  }

  .cart-drawer-item-media { grid-area: media; }

  .cart-drawer-item-media img,
  .cart-drawer-item-media .cart-panel-item-placeholder {
    width: 56px;
    height: 56px;
  }

  .cart-drawer-item-details { grid-area: details; }

  .cart-drawer-item-aside {
    grid-area: actions;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-left: 0;
    border-top: 1px solid rgba(201, 184, 150, 0.15);
    padding-top: 0.625rem;
    margin-top: 0.125rem;
  }

  .cart-drawer-item-name {
    font-size: 0.875rem;
  }

  .qty-stepper--panel {
    width: 6.75rem;
    height: 2.75rem;
  }

  .qty-stepper--panel .qty-btn {
    flex-basis: 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1rem;
  }

  .cart-panel-footer,
  .cart-drawer-footer {
    padding: 0.875rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .cart-panel-actions {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .cart-panel-cta {
    min-height: 2.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
  }

  .cart-toast {
    bottom: calc(9.5rem + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 1.5rem);
    font-size: 0.8125rem;
  }

  /* Product cards: uniform tap targets, same button width */
  .product-card-actions {
    grid-template-columns: 1fr;
    grid-template-rows: 2.75rem 2.75rem;
    gap: 0.5rem;
    min-height: calc(2.75rem * 2 + 0.5rem);
  }

  .qty-stepper {
    width: 100%;
    max-width: none;
    height: 2.75rem;
    min-height: 2.75rem;
    max-height: 2.75rem;
  }

  .qty-btn {
    flex: 0 0 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.0625rem;
  }

  .product-add-btn {
    height: 2.75rem;
    min-height: 2.75rem;
    max-height: 2.75rem;
    width: 100%;
    font-size: 0.8125rem;
  }

  .product-card-footer {
    min-height: 7.5rem;
  }

  /* Cart page mobile */
  .cart-line {
    padding: 1rem 0.25rem;
  }

  .cart-line-remove {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
  }

  .qty-stepper--lg {
    width: 7.5rem;
    height: 2.75rem;
  }

  .qty-stepper--lg .qty-btn {
    width: 2.25rem;
    height: 2.25rem;
  }

  .cart-summary {
    position: static;
  }

  .cart-page-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-page-actions .btn {
    width: 100%;
    min-height: 2.75rem;
  }
}

@media (max-width: 380px) {
  .cart-bar-label {
    display: none;
  }

  .cart-bar-copy {
    flex-wrap: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-loading-spinner {
    animation: none;
  }

  .product-card.fade-in {
    opacity: 1;
    transform: none;
  }
}

/* ---- Filter bar ---- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  border: 2px solid var(--color-cream-dark);
  border-radius: var(--radius-full);
  background: var(--color-white);
  color: var(--color-primary);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-accent);
  border-color: transparent;
  color: var(--color-white);
  box-shadow: 0 2px 12px rgba(196, 90, 100, 0.25);
}

/* ---- Newsletter ---- */
.newsletter-section {
  background: var(--section-sand-bg);
  padding-block: clamp(3rem, 7vw, 5rem);
}

.newsletter-banner {
  position: relative;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1.5rem, 5vw, 3rem);
  background: linear-gradient(145deg, var(--color-white) 0%, var(--color-cream) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(201, 184, 150, 0.4);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.newsletter-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
}

.newsletter-banner::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: var(--radius-full);
  background: rgba(176, 78, 87, 0.06);
  pointer-events: none;
}

.newsletter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-white);
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(176, 78, 87, 0.35);
  letter-spacing: 0.02em;
}

.newsletter-banner .section-label {
  display: block;
  margin-bottom: 0.625rem;
}

.newsletter-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.newsletter-highlight {
  color: var(--color-accent);
  font-weight: 700;
  position: relative;
  white-space: nowrap;
}

.newsletter-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.newsletter-product {
  display: inline-block;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(36, 56, 56, 0.06);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  border-bottom: 2px solid var(--color-gold);
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 520px;
  margin-inline: auto;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.9375rem 1.375rem;
  border: 2px solid var(--color-cream-dark);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  background: var(--color-white);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.newsletter-form input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.newsletter-form .btn-primary {
  padding-inline: 2rem;
}

@media (max-width: 768px) {
  .newsletter-banner {
    padding: 2rem 1.25rem;
  }

  .newsletter-product {
    display: inline;
    padding: 0;
    background: none;
    border-bottom: none;
    color: var(--color-accent);
  }
}

/* Legacy class kept for compatibility */
.newsletter {
  text-align: center;
}

.newsletter h2 {
  margin-bottom: 0.75rem;
}

.newsletter p {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

/* ---- Value cards ---- */
.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 3px solid var(--color-accent);
}

.value-card .value-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-sand);
  line-height: 1;
  margin-bottom: 0.75rem;
}

/* ---- Team cards ---- */
.team-card {
  text-align: center;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  margin-inline: auto;
  margin-bottom: 1.25rem;
  background: linear-gradient(145deg, var(--color-sand), var(--color-cream));
  border: 3px solid var(--color-white);
  box-shadow: var(--shadow-card);
}

.team-role {
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

.team-bio {
  margin-top: 0.75rem;
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: 2.5rem;
}

/* ---- About page ---- */
.about-intro {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.about-intro-content h2 {
  margin-bottom: 1.25rem;
}

.about-intro-content p {
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.about-intro-content strong {
  color: var(--color-primary);
  font-weight: 600;
}

.about-callout {
  background: var(--gradient-brand);
  color: var(--color-cream);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(196, 181, 158, 0.15);
}

.about-callout::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 180px;
  height: 180px;
  border-radius: var(--radius-full);
  background: rgba(176, 78, 87, 0.15);
  pointer-events: none;
}

.callout-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-cream);
  margin-bottom: 0.5rem;
}

.callout-arabic {
  font-size: 2rem;
  color: var(--color-sand);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.callout-meaning {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.callout-desc {
  font-size: 0.9375rem;
  color: rgba(229, 222, 212, 0.85);
  line-height: 1.65;
}

.timeline {
  position: relative;
  padding-left: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-sand));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 14px;
  height: 14px;
  margin-left: -6px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--color-accent);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.375rem;
}

.timeline-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.timeline-body p {
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.about-quote {
  margin: 0;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3rem);
  background: var(--color-cream);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--shadow-card);
}

.about-quote p {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--color-primary);
}

.about-quote span {
  color: var(--color-accent);
  font-weight: 700;
  font-style: normal;
}

.factory-visual {
  display: flex;
  align-items: center;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
}

.stat-card {
  background: var(--color-white);
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--color-accent);
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
}

.stat-unit {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted);
  margin-top: 0.125rem;
}

.stat-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-muted);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.factory-locations {
  margin-top: 1.5rem;
}

.factory-locations li {
  padding: 1rem 1.25rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--color-primary);
  box-shadow: var(--shadow-card);
}

.factory-locations strong {
  display: block;
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.factory-locations span {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.departments-bar {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  text-align: center;
}

.departments-label {
  display: block;
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.65;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 1.25rem;
}

.departments-count {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.dept-dot {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-cream);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}

.goals-section {
  text-align: center;
}

.goals-inner {
  max-width: 900px;
  margin-inline: auto;
}

.goals-inner .section-label {
  color: var(--color-gold);
}

.goals-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(229, 222, 212, 0.9);
  margin-bottom: 2.5rem;
  max-width: 640px;
  margin-inline: auto;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(184, 170, 149, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  transition: background var(--transition), transform var(--transition);
}

.pillar-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  margin-inline: auto;
  margin-bottom: 1rem;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.pillar-card h3 {
  color: var(--color-cream);
  margin-bottom: 0.5rem;
}

.pillar-card p {
  font-size: 0.9375rem;
  color: rgba(229, 222, 212, 0.8);
}

@media (max-width: 768px) {
  .about-intro {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-item {
    padding-left: 1.5rem;
  }

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

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

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.info-block {
  margin-bottom: 1.5rem;
}

.info-block h3 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.375rem;
}

.info-block p {
  color: var(--color-text);
}

.info-block a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-block a:hover {
  color: var(--color-accent);
}

.contact-form {
  background: var(--color-white);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--color-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-cream);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-surface);
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.map-embed {
  margin-top: var(--section-gap);
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(201, 184, 150, 0.4);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  padding: 1rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-cream);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-nav);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ---- Fade-in animation ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Visual Polish Additions ---- */

/* Hero tagline line-height */
.hero p {
  line-height: 1.75;
}

/* Hero logo box: richer shadow + soft glow on hover */
.hero-logo-box {
  box-shadow: 0 20px 64px rgba(36, 56, 56, 0.15), 0 4px 16px rgba(36, 56, 56, 0.08);
}

.hero-logo-box:hover {
  box-shadow: 0 28px 80px rgba(36, 56, 56, 0.2), 0 6px 24px rgba(176, 78, 87, 0.1);
}

/* Section headers: improved max-width and paragraph line-height */
.section-header {
  max-width: 680px;
}

.section-header p {
  line-height: 1.75;
}

/* Product category badge — warmer tint */
.product-category-badge {
  background: var(--color-cream-dark);
  color: var(--color-accent);
}

/* Shop category title: larger h2 */
.shop-category-title h2 {
  letter-spacing: -0.015em;
}

/* About quote: left border thicker, richer background */
.about-quote {
  border-left-width: 5px;
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-cream-dark) 100%);
}

/* Factory locations: richer left accent */
.factory-locations li {
  border-left-width: 4px;
  border-left-color: var(--color-accent);
  transition: transform var(--transition), box-shadow var(--transition);
}

.factory-locations li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-soft);
}

/* Newsletter highlight underline */
.newsletter-highlight {
  text-decoration: underline;
  text-decoration-color: rgba(176, 78, 87, 0.4);
  text-underline-offset: 4px;
}

/* Toast: richer styling */
.toast {
  font-size: 0.9375rem;
  font-weight: 500;
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-md);
}

/* Skip link: improved focus ring */
.skip-link:focus {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
}

/* Callout badge: larger, serif font sizing */
.callout-badge {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
}

/* Dept dots in factory: accent gradient */
.dept-dot {
  background: var(--gradient-accent);
  box-shadow: 0 2px 10px rgba(176, 78, 87, 0.3);
}

/* Page header: slightly richer text hierarchy */
.page-header h1 {
  letter-spacing: -0.02em;
}

.page-header .section-label {
  margin-bottom: 0.625rem;
}


/* Section-label serif variant colour override for dark sections */
.section-primary .section-label--serif,
.goals-section-enhanced .section-label--serif {
  color: var(--color-gold);
}

/* Timeline year: slightly larger for impact */
.timeline-year {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

/* About quote: refined spacing */
.about-quote p {
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  line-height: 1.55;
}

/* Hero content max-width so it doesn't stretch too wide */
.hero-content {
  max-width: 560px;
}

@media (max-width: 768px) {
  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .factory-locations li:hover {
    transform: none;
  }
}

/* ============================================
   Cart, checkout & order confirmation
   ============================================ */

/* ---- Larger qty stepper (cart page) ---- */
.qty-stepper--lg {
  width: 6.5rem;
  height: 2.625rem;
}

.qty-stepper--lg .qty-btn {
  flex-basis: 2rem;
  width: 2rem;
  height: 2rem;
  font-size: 1.0625rem;
}

.qty-stepper--lg .qty-value {
  font-size: 0.9375rem;
}

/* ---- Cart page (cart.html) ---- */
.cart-page {
  max-width: 1080px;
  margin-inline: auto;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.cart-items-head {
  display: none;
  align-items: center;
  gap: 1rem;
  padding: 0 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(201, 184, 150, 0.4);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.cart-items-head-product { flex: 1; }
.cart-items-head-qty { width: 6.5rem; text-align: center; }
.cart-items-head-total { width: 6rem; text-align: right; }

.cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  grid-template-areas:
    "media info remove"
    "media qty total";
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 1.25rem 0.5rem;
  border-bottom: 1px solid rgba(201, 184, 150, 0.25);
}

.cart-line-media {
  grid-area: media;
  align-self: start;
}

.cart-line-media img,
.cart-line-placeholder {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: var(--color-cream);
  border: 1px solid rgba(201, 184, 150, 0.3);
}

.cart-line-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  color: var(--color-muted);
  text-align: center;
  padding: 0.25rem;
}

.cart-line-info { grid-area: info; min-width: 0; }

.cart-line-name {
  margin: 0 0 0.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.cart-line-unit {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.cart-line-unit span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cart-line-qty { grid-area: qty; }

.cart-line-total {
  grid-area: total;
  justify-self: end;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
}

.cart-line-remove {
  grid-area: remove;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.cart-line-remove:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.cart-page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
}

.cart-clear-link {
  background: none;
  border: none;
  padding: 0.5rem 0.25rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.cart-clear-link:hover { color: var(--color-accent); }

/* Order summary */
.cart-summary {
  background: var(--color-white);
  border: 1px solid rgba(201, 184, 150, 0.4);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-card);
}

.cart-summary-title {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.cart-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.cart-summary-row--muted { color: var(--color-muted); font-size: 0.875rem; }

.cart-summary-count {
  font-size: 0.8125rem;
  color: var(--color-muted);
  font-weight: 400;
}

.cart-summary-total {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 184, 150, 0.4);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-primary);
}

.cart-summary-total strong {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent);
}

.cart-summary-cta {
  width: 100%;
  margin-top: 1.25rem;
  text-decoration: none;
}

.cart-summary-note {
  margin: 0.875rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-muted);
  text-align: center;
}

/* Empty cart state */
.cart-empty {
  max-width: 460px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  text-align: center;
}

.cart-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-full);
  background: var(--color-cream);
  color: var(--color-sand);
}

.cart-empty h2 {
  margin: 0 0 0.75rem;
  color: var(--color-primary);
}

.cart-empty p {
  margin: 0 0 1.75rem;
  color: var(--color-muted);
  line-height: 1.6;
}

@media (min-width: 860px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .cart-items-head { display: flex; }

  .cart-line {
    grid-template-columns: 80px 1fr 6.5rem 6rem 2rem;
    grid-template-areas: "media info qty total remove";
    gap: 1rem;
  }

  .cart-line-qty { justify-self: center; }

  .cart-summary {
    position: sticky;
    top: calc(var(--nav-height) + 1rem);
  }
}

/* ---- Checkout (checkout.html) ---- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
  max-width: 1080px;
  margin-inline: auto;
}

.checkout-section {
  background: var(--color-white);
  border: 1px solid rgba(201, 184, 150, 0.4);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
}

.checkout-section:last-of-type { margin-bottom: 0; }

.checkout-section-head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.checkout-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(176, 78, 87, 0.3);
}

.checkout-section-head h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.checkout-section-head p {
  margin: 0.1rem 0 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1rem;
}

.form-group .field-optional {
  font-weight: 400;
  color: var(--color-muted);
  font-size: 0.8125rem;
}

.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-cream);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-surface);
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c6a6a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select:focus { border-color: var(--color-accent); }

.field-error {
  display: block;
  min-height: 1rem;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-accent);
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--color-accent);
}

/* Order-type radios */
.order-type-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.order-type-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.order-type-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.order-type-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--color-cream);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.order-type-card strong {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-primary);
}

.order-type-card span {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.order-type-option input:checked + .order-type-card {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  box-shadow: 0 2px 12px rgba(176, 78, 87, 0.15);
}

.order-type-option input:focus-visible + .order-type-card {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Pickup info */
.pickup-info {
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--color-cream);
  border: 1px solid rgba(201, 184, 150, 0.4);
}

.pickup-info h3 {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  color: var(--color-primary);
}

.pickup-info p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-muted);
}

.pickup-info a { color: var(--color-accent); font-weight: 600; }

/* Checkbox rows */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.checkbox-row input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.checkbox-row label {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text);
  cursor: pointer;
}

/* Honeypot — hidden from humans */
.checkout-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Read-only summary line items */
.checkout-summary-items {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.checkout-summary-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(201, 184, 150, 0.2);
  font-size: 0.9375rem;
}

.checkout-summary-qty {
  font-weight: 700;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

.checkout-summary-name {
  color: var(--color-text);
  min-width: 0;
}

.checkout-summary-price {
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-text);
}

/* Checkout sidebar / totals */
.checkout-aside {
  background: var(--color-white);
  border: 1px solid rgba(201, 184, 150, 0.4);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-card);
}

.checkout-aside-title {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.checkout-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.checkout-total-row--grand {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 184, 150, 0.4);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-primary);
}

.checkout-total-row--grand strong {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent);
}

.checkout-total-row--muted { color: var(--color-muted); font-size: 0.8125rem; }

.checkout-submit {
  width: 100%;
  margin-top: 1.25rem;
  position: relative;
}

.checkout-submit--mobile {
  margin-top: 1rem;
}

.checkout-submit--desktop {
  display: none;
}

@media (min-width: 860px) {
  .checkout-submit--mobile {
    display: none;
  }

  .checkout-submit--desktop {
    display: inline-flex;
    margin-top: 1.25rem;
  }

  .checkout-section--agree .checkbox-row {
    margin-bottom: 0;
  }
}

.checkout-submit.is-loading {
  opacity: 0.75;
  cursor: progress;
}

.checkout-submit.is-loading .checkout-submit-label { visibility: hidden; }

.checkout-submit .checkout-spinner { display: none; }

.checkout-submit.is-loading .checkout-spinner {
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.125rem;
  height: 1.125rem;
  margin: -0.5625rem 0 0 -0.5625rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--color-white);
  border-radius: 50%;
  animation: checkout-spin 0.7s linear infinite;
}

@keyframes checkout-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .checkout-submit .checkout-spinner { animation: none; }
}

.checkout-aside-note {
  margin: 0.875rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-muted);
  text-align: center;
}

/* Global error + mailto fallback */
.checkout-error {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  border: 1px solid rgba(176, 78, 87, 0.35);
  color: var(--color-accent-hover);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.checkout-fallback {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--color-cream);
  border: 1px solid rgba(201, 184, 150, 0.5);
}

.checkout-fallback p { margin: 0 0 0.875rem; font-size: 0.9375rem; line-height: 1.5; }
.checkout-fallback .checkout-fallback-ref { font-weight: 700; color: var(--color-primary); }

/* ---- Order confirmation (order-confirmation.html) ---- */
.confirmation {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
}

.confirmation-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-full);
  background: rgba(36, 56, 56, 0.08);
  color: var(--color-primary);
}

.confirmation-ref {
  display: inline-block;
  margin: 1.25rem 0;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  background: var(--color-cream);
  border: 1px dashed rgba(176, 78, 87, 0.45);
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-accent);
}

.confirmation-summary {
  margin: 1.5rem auto 2rem;
  max-width: 420px;
  text-align: left;
  background: var(--color-white);
  border: 1px solid rgba(201, 184, 150, 0.4);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.confirmation-summary dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  margin: 0;
}

.confirmation-summary dt { color: var(--color-muted); font-size: 0.875rem; }
.confirmation-summary dd { margin: 0; text-align: right; font-weight: 600; color: var(--color-text); }

.confirmation-next {
  margin: 2rem auto;
  max-width: 480px;
  text-align: left;
}

.confirmation-next h2 { font-size: 1.5rem; margin: 0 0 0.875rem; color: var(--color-primary); }

.confirmation-next ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text);
  line-height: 1.7;
}

.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .form-row--thirds {
    grid-template-columns: 2fr 1.2fr 1fr;
  }
}

@media (min-width: 860px) {
  .checkout-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .checkout-aside {
    position: sticky;
    top: calc(var(--nav-height) + 1rem);
  }
}

@media (max-width: 520px) {
  .order-type-options { grid-template-columns: 1fr; }
}
