@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ---------------------------------------------------------------
   Design tokens — ivory background, sage primary, antique gold accent
--------------------------------------------------------------- */
:root {
  --radius: 0.25rem;

  --background: oklch(0.972 0.012 90);
  --foreground: oklch(0.22 0.012 80);

  --card: oklch(0.985 0.008 90);
  --card-foreground: oklch(0.22 0.012 80);

  --primary: oklch(0.42 0.04 145);
  --primary-foreground: oklch(0.985 0.008 90);

  --secondary: oklch(0.93 0.018 90);
  --secondary-foreground: oklch(0.28 0.02 80);

  --muted: oklch(0.94 0.012 90);
  --muted-foreground: oklch(0.48 0.015 80);

  --accent: oklch(0.78 0.09 85);
  --accent-foreground: oklch(0.22 0.012 80);

  --destructive: oklch(0.55 0.2 25);
  --destructive-foreground: oklch(0.985 0.008 90);

  --border: oklch(0.88 0.018 85);
  --input: oklch(0.9 0.014 85);
  --ring: oklch(0.58 0.045 145);

  --font-display: 'Cormorant Garamond', ui-serif, Georgia, serif;
  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  margin: 0;
  font-weight: 500;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
dl, dd, dt, ul { margin: 0; padding: 0; }
ul { list-style: none; }

/* ---------------------------------------------------------------
   Layout helpers
--------------------------------------------------------------- */
.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; }
.max-w-6xl { max-width: 72rem; margin-left: auto; margin-right: auto; }
.max-w-5xl { max-width: 64rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }
.px-section { padding-left: 1.5rem; padding-right: 1.5rem; }

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

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.link-accent {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
}
.link-accent:hover { text-decoration: underline; text-underline-offset: 8px; }

.border-t-soft { border-top: 1px solid color-mix(in oklch, var(--border) 60%, transparent); }
.border-b-soft { border-bottom: 1px solid color-mix(in oklch, var(--border) 60%, transparent); }
.border-y-soft { border-top: 1px solid color-mix(in oklch, var(--border) 60%, transparent); border-bottom: 1px solid color-mix(in oklch, var(--border) 60%, transparent); }

/* ---------------------------------------------------------------
   Header
--------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background-color: color-mix(in oklch, var(--background) 85%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
}

.site-header .inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 1024px) { .site-header .inner { padding: 0 2.5rem; } }

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand:hover {
  transform: translateY(-1px);
}
.brand .name {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--foreground);
  transition: color 0.25s ease;
}
.brand:hover .name {
  color: var(--primary);
}
.brand .tag {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--muted-foreground) 80%, var(--foreground));
  margin-top: 4px;
  font-weight: 500;
  transition: color 0.25s ease;
}
.brand:hover .tag {
  color: var(--accent);
}

.main-nav { display: none; align-items: center; gap: 2.5rem; }
@media (min-width: 768px) { .main-nav { display: flex; } }
.main-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--foreground) 80%, transparent);
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 0.25rem; }

/* Cart trigger button */
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  color: var(--foreground);
  border-radius: 0;
}
.cart-btn:hover { background-color: var(--secondary); }
.cart-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  height: 1.25rem;
  width: 1.25rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------------------------------------
   Buttons
--------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  height: 3rem;
  padding: 0 2rem;
  background: var(--primary);
  color: var(--primary-foreground);
  transition: opacity 0.2s, background-color 0.2s;
}
.btn:hover { opacity: 0.9; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  color: var(--foreground);
}
.btn-ghost:hover { background: var(--secondary); opacity: 1; }

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border-color: color-mix(in oklch, var(--foreground) 20%, transparent);
  height: 2.75rem;
  letter-spacing: 0.2em;
}
.btn-outline:hover { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }

.btn-block { width: 100%; }
.btn-sm { height: 1.75rem; width: 1.75rem; padding: 0; }

/* ---------------------------------------------------------------
   Hero
--------------------------------------------------------------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - 5rem);
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; } }

.hero-copy {
  display: flex;
  align-items: center;
  padding: 4rem 1.5rem;
  order: 2;
}
@media (min-width: 1024px) { .hero-copy { padding: 6rem 4rem; order: 1; } }

.hero-copy .inner { max-width: 36rem; }
.hero-copy h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.hero-copy h1 em { color: var(--primary); font-style: normal; }

.hero-copy .lede {
  margin-top: 2rem;
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  max-width: 28rem;
}

.hero-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-image {
  position: relative;
  order: 1;
  min-height: 50vh;
  overflow: hidden;
}
@media (min-width: 1024px) { .hero-image { order: 2; min-height: 100%; } }
.hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-tag {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: color-mix(in oklch, var(--background) 85%, transparent);
  backdrop-filter: blur(6px);
  padding: 0.75rem 1.25rem;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------
   Section scaffolding
--------------------------------------------------------------- */
.section { padding: 5rem 0; }
.section-tight { padding: 4rem 0; }
.section-loose { padding: 7rem 0; }
.bg-secondary-tint { background-color: color-mix(in oklch, var(--secondary) 30%, transparent); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}
.section-head h2 { font-size: 2.25rem; }
@media (min-width: 768px) { .section-head h2 { font-size: 3rem; } }

/* Fragrance strip */
.fragrance-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) { .fragrance-strip { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; } }

.fragrance-tile .frame {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: color-mix(in oklch, var(--secondary) 40%, transparent);
}
.fragrance-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease-out; }
.fragrance-tile:hover img { transform: scale(1.05); }
.fragrance-tile .name { font-family: var(--font-display); font-size: 1.125rem; margin-top: 1rem; }
.fragrance-tile .note { font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted-foreground); }

/* Product grid & card */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
@media (min-width: 1024px) { .product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; } }

.product-card { display: block; }
.product-card .frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: color-mix(in oklch, var(--secondary) 40%, transparent);
  margin-bottom: 1.25rem;
}
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease-out; }
.product-card:hover img { transform: scale(1.05); }
.product-card .type { font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted-foreground); }
.product-card h3 { font-size: 1.25rem; line-height: 1.2; margin-top: 0.25rem; }
.product-card .price { font-size: 0.875rem; color: color-mix(in oklch, var(--foreground) 80%, transparent); margin-top: 0.25rem; }
.product-card .btn-outline { margin-top: 1rem; width: 100%; }

.empty-products {
  text-align: center;
  padding: 6rem 0;
  border: 1px dashed var(--border);
}
.empty-products p:first-child { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.5rem; }
.empty-products p:last-child { font-size: 0.875rem; color: var(--muted-foreground); }

.skeleton-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 640px) { .skeleton-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .skeleton-grid { grid-template-columns: repeat(3, 1fr); } }
.skeleton {
  aspect-ratio: 4 / 5;
  background: color-mix(in oklch, var(--secondary) 40%, transparent);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Story quote */
.story-quote {
  max-width: 56rem;
  margin: 0 auto;
  padding: 7rem 1.5rem;
  text-align: center;
}
.story-quote blockquote {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.35;
  margin: 1.5rem 0 0;
}
@media (min-width: 768px) { .story-quote blockquote { font-size: 2.25rem; } }
.story-quote .attribution { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted-foreground); margin-top: 2rem; }

/* ---------------------------------------------------------------
   Fragrances page
--------------------------------------------------------------- */
.fragrances-intro { max-width: 42rem; margin-bottom: 5rem; }
.fragrances-intro h1 { font-size: 3rem; }
@media (min-width: 768px) { .fragrances-intro h1 { font-size: 3.75rem; } }
.fragrances-intro p { margin-top: 1.5rem; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.7; }

.fragrance-detail-list { display: flex; flex-direction: column; gap: 6rem; }
.fragrance-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) { .fragrance-detail { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.fragrance-detail.reverse .frame { order: 2; }
@media (min-width: 1024px) { .fragrance-detail.reverse .frame { order: 2; } }
.fragrance-detail .frame { aspect-ratio: 4 / 5; overflow: hidden; background: color-mix(in oklch, var(--secondary) 40%, transparent); }
.fragrance-detail .frame img { width: 100%; height: 100%; object-fit: cover; }
.fragrance-detail .num { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.75rem; }
.fragrance-detail h2 { font-size: 2.25rem; }
@media (min-width: 768px) { .fragrance-detail h2 { font-size: 3rem; } }
.fragrance-detail .copy { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 1rem; line-height: 1.7; max-width: 28rem; }
.fragrance-notes { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; border-top: 1px solid color-mix(in oklch, var(--border) 60%, transparent); padding-top: 1.5rem; }
.fragrance-notes .row { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; }
.fragrance-notes dt { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted-foreground); padding-top: 0.25rem; }

/* ---------------------------------------------------------------
   About page
--------------------------------------------------------------- */
.about-hero { max-width: 56rem; margin: 0 auto; padding: 5rem 1.5rem; text-align: center; }
@media (min-width: 1024px) { .about-hero { padding: 7rem 2.5rem; } }
.about-hero h1 { font-size: 3rem; line-height: 1.15; }
@media (min-width: 768px) { .about-hero h1 { font-size: 3.75rem; } }
.about-hero p { margin-top: 2rem; font-size: 1rem; color: var(--muted-foreground); line-height: 1.7; }

.about-banner img { width: 100%; height: 60vh; object-fit: cover; }

.about-pillars {
  max-width: 64rem;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) { .about-pillars { grid-template-columns: repeat(3, 1fr); } }
.about-pillars h3 { font-size: 1.5rem; }
.about-pillars p { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.75rem; line-height: 1.7; }

/* ---------------------------------------------------------------
   Contact page
--------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info h1 { font-size: 3rem; }
@media (min-width: 768px) { .contact-info h1 { font-size: 3.75rem; } }
.contact-info > p { margin-top: 1.5rem; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.7; max-width: 28rem; }
.contact-details { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; font-size: 0.875rem; }
.contact-details dt { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 0.25rem; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: color-mix(in oklch, var(--secondary) 30%, transparent);
  padding: 2rem;
  border: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
}
@media (min-width: 1024px) { .contact-form { padding: 3rem; } }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; }
.field input, .field textarea {
  border: 1px solid var(--input);
  background: var(--background);
  border-radius: 0;
  padding: 0 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--foreground);
}
.field input { height: 3rem; }
.field textarea { padding: 0.75rem 1rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--ring); outline-offset: 1px; }

/* ---------------------------------------------------------------
   Product detail page
--------------------------------------------------------------- */
.back-link { font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted-foreground); }
.back-link:hover { color: var(--primary); }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 2rem;
}
@media (min-width: 1024px) { .product-detail-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.product-detail-image { aspect-ratio: 1 / 1; background: color-mix(in oklch, var(--secondary) 40%, transparent); overflow: hidden; }
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info h1 { font-size: 2.5rem; line-height: 1.15; }
@media (min-width: 768px) { .product-detail-info h1 { font-size: 3rem; } }
.product-detail-info .price { font-size: 1.125rem; margin-top: 1rem; }
.product-detail-info .divider { height: 1px; background: var(--border); margin: 2rem 0; }
.product-detail-info .desc { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.7; white-space: pre-line; }
.product-detail-info .btn { margin-top: 2.5rem; width: 100%; height: 3.25rem; }
.product-detail-info .shipping-note { margin-top: 1.5rem; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-foreground); }

.loading-center { min-height: 60vh; display: flex; align-items: center; justify-content: center; }

/* ---------------------------------------------------------------
   Footer
--------------------------------------------------------------- */
.site-footer { margin-top: 8rem; border-top: 1px solid color-mix(in oklch, var(--border) 60%, transparent); background: color-mix(in oklch, var(--secondary) 40%, transparent); }
.footer-grid {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); padding: 4rem 2.5rem; } }
.footer-grid .brand-col { grid-column: span 1; }
@media (min-width: 768px) { .footer-grid .brand-col { grid-column: span 2; } }
.footer-grid .brand-col h3 { font-size: 1.875rem; }
.footer-grid .brand-col .tag { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted-foreground); margin-top: 0.5rem; }
.footer-grid .brand-col p { margin-top: 1.5rem; font-size: 0.875rem; color: var(--muted-foreground); max-width: 24rem; line-height: 1.7; }
.footer-grid h4 { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem; font-family: var(--font-sans); font-weight: 500; }
.footer-grid ul { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; }
.footer-grid ul a:hover { color: var(--primary); }
.footer-grid ul .muted { color: var(--muted-foreground); }

.footer-bottom { border-top: 1px solid color-mix(in oklch, var(--border) 60%, transparent); }
.footer-bottom .inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
@media (min-width: 768px) { .footer-bottom .inner { flex-direction: row; padding: 1.5rem 2.5rem; } }
.footer-bottom .made { letter-spacing: 0.2em; text-transform: uppercase; }

/* ---------------------------------------------------------------
   Cart drawer
--------------------------------------------------------------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 28rem;
  background: var(--background);
  z-index: 51;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -8px 0 30px rgba(0,0,0,0.08);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header { padding: 1.5rem 1.5rem 0; flex-shrink: 0; }
.cart-drawer-header h2 { font-size: 1.5rem; }
.cart-drawer-header p { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.25rem; }
.cart-drawer-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  width: 2rem;
  height: 2rem;
}
.cart-drawer-close:hover { color: var(--foreground); }

.cart-drawer-body { flex: 1; display: flex; flex-direction: column; padding: 1.5rem; min-height: 0; }
.cart-empty { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted-foreground); }
.cart-empty svg { margin: 0 auto 1rem; opacity: 0.5; }

.cart-items { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 1.5rem; padding-right: 0.5rem; }
.cart-item { display: flex; gap: 1rem; }
.cart-item .thumb { width: 5rem; height: 5rem; flex-shrink: 0; background: var(--secondary); overflow: hidden; }
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .meta { flex: 1; min-width: 0; }
.cart-item .meta h4 { font-size: 1.125rem; line-height: 1.2; }
.cart-item .meta .price { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.25rem; }
.qty-controls { display: flex; align-items: center; gap: 0.25rem; margin-top: 0.5rem; }
.qty-controls span { width: 2rem; text-align: center; font-size: 0.875rem; }
.cart-item .remove-btn { background: transparent; border: none; color: var(--muted-foreground); width: 1.75rem; height: 1.75rem; flex-shrink: 0; }
.cart-item .remove-btn:hover { color: var(--destructive); }

.cart-summary { flex-shrink: 0; padding-top: 1.5rem; border-top: 1px solid var(--border); margin-top: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.cart-summary .subtotal { display: flex; justify-content: space-between; align-items: baseline; }
.cart-summary .subtotal span:first-child { font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-foreground); }
.cart-summary .subtotal span:last-child { font-family: var(--font-display); font-size: 1.5rem; }

/* ---------------------------------------------------------------
   Toast
--------------------------------------------------------------- */
.toast-container {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}
.toast {
  background: var(--foreground);
  color: var(--background);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 16rem;
  animation: toast-in 0.2s ease-out;
}
.toast .title { font-weight: 500; }
.toast .desc { font-size: 0.8rem; opacity: 0.8; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------------------------------------------------------
   Spinner
--------------------------------------------------------------- */
.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Utility */
.hidden { display: none !important; }

/* ---------------------------------------------------------------
   WhatsApp Floating Bubble
--------------------------------------------------------------- */
.whatsapp-bubble {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s;
  animation: whatsapp-entrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) both, whatsapp-pulse 2.5s infinite;
}

.whatsapp-bubble:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: color-mix(in oklch, var(--primary) 85%, #000);
}

.whatsapp-bubble svg {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
}

.whatsapp-bubble:hover svg {
  transform: rotate(8deg) scale(1.1);
}

@keyframes whatsapp-entrance {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 0 0 0 rgba(66, 126, 92, 0.4);
  }
  70% {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 0 0 12px rgba(66, 126, 92, 0);
  }
  100% {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 0 0 0 rgba(66, 126, 92, 0);
  }
}

/* Adjust responsiveness to avoid blocking screen elements on mobile */
@media (max-width: 640px) {
  .whatsapp-bubble {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.75rem;
  }
  .whatsapp-bubble span {
    display: none; /* Icon only on small screens */
  }
}
