/* ==========================================================================
   BLOOM & BLOSSOM / SHOPLY — MODERN LUXURY FLORAL STOREFRONT
   Crafted with an editorial luxury aesthetic: warm porcelain canvas,
   rich botanical accents, refined typography, and smooth micro-interactions.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Figtree:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --bg: #fbf9f6;
  --bg-elevated: #ffffff;
  --bg-muted: #f3efe9;
  --bg-subtle: #faf7f2;
  --text: #1d1819;
  --text-secondary: #574e50;
  --text-tertiary: #877d80;
  --text-light: #ab9fa2;

  /* Brand Accents */
  --primary: #943853;
  --primary-hover: #7b2a41;
  --primary-muted: #fbeef2;
  --primary-ring: rgba(148, 56, 83, 0.22);
  --accent-gold: #c99b66;
  --accent-gold-light: #fdf8f2;
  --sage: #ebf0eb;
  --sage-dark: #37533c;

  /* Borders & Dividers */
  --border: #ece5dc;
  --border-hover: #d3c8bb;
  --border-light: #f5f0e9;

  /* Functional Status */
  --danger: #b3261e;
  --danger-bg: #fdf0ef;
  --success: #256636;
  --success-bg: #eef7f0;

  /* Typography */
  --font: 'Plus Jakarta Sans', 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

  /* Sizing & Radius */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Ambient Elevations */
  --shadow-xs: 0 1px 2px rgba(29, 24, 25, 0.04);
  --shadow-sm: 0 3px 8px -2px rgba(29, 24, 25, 0.05), 0 1px 3px rgba(29, 24, 25, 0.03);
  --shadow: 0 10px 30px -8px rgba(29, 24, 25, 0.07), 0 2px 6px -1px rgba(29, 24, 25, 0.03);
  --shadow-lg: 0 20px 48px -12px rgba(29, 24, 25, 0.12), 0 4px 12px -2px rgba(29, 24, 25, 0.04);
  --shadow-hover: 0 16px 36px -6px rgba(29, 24, 25, 0.11), 0 6px 14px -3px rgba(29, 24, 25, 0.05);

  /* Layout */
  --header-h: 74px;
  --max-w: 1220px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #f7d6df;
  color: var(--primary-hover);
}

h1, h2, h3, h4, .logo, .display-font {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s var(--ease), opacity 0.18s var(--ease);
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

main {
  flex: 1;
}

.container {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 24px;
  top: -54px;
  background: var(--text);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 500;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 14px;
}

/* ── Announcement Ribbon ────────────────────────────── */
.announce {
  background: var(--text);
  color: #f7f3ee;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.announce .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.announce-sparkle {
  color: var(--accent-gold);
  font-size: 0.875rem;
}

/* ── Floating Glass Header ──────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 120;
  height: var(--header-h);
  background: rgba(251, 249, 246, 0.88);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: color 0.2s var(--ease);
}
.logo span {
  color: var(--primary);
}
.logo:hover {
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a, .nav button {
  position: relative;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
}
.nav a:hover, .nav button:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.035);
}
.nav a.active {
  color: var(--text);
  font-weight: 600;
  background: var(--bg-muted);
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-xs);
  padding: 8px 16px !important;
  border-radius: var(--radius-pill);
}
.cart-link:hover {
  border-color: var(--border-hover) !important;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.cart-link svg {
  width: 18px;
  height: 18px;
  color: var(--text);
}
.cart-text {
  font-weight: 600;
  color: var(--text);
}
.cart-badge {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cart-badge.pop {
  transform: scale(1.25);
}

/* User Profile Chip */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  padding: 4px 12px 4px 5px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-left: 6px;
  transition: all 0.2s var(--ease);
}
.user-chip:hover {
  background: var(--bg-elevated);
  border-color: var(--border-hover);
}
.user-avatar-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.user-first-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-logout-btn {
  margin-left: 6px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.user-logout-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-bg);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--text);
  border-radius: var(--radius-sm);
}
.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: all 0.22s var(--ease);
  position: relative;
  overflow: hidden;
  user-select: none;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(148, 56, 83, 0.28);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(148, 56, 83, 0.36);
  transform: translateY(-1px);
}
.btn-dark {
  background: var(--text);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(29, 24, 25, 0.18);
}
.btn-dark:hover {
  background: #332b2d;
  box-shadow: 0 6px 20px rgba(29, 24, 25, 0.26);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border-color: var(--border-hover);
  color: var(--text);
}
.btn-outline:hover {
  background: var(--bg-elevated);
  border-color: var(--text);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--primary-muted);
  color: var(--primary);
  border-color: rgba(148, 56, 83, 0.12);
}
.btn-ghost:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(148, 56, 83, 0.22);
}
.btn-sm {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 0.875rem;
}
.btn-lg {
  min-height: 54px;
  padding: 16px 32px;
  font-size: 1rem;
}
.btn-block {
  width: 100%;
}

/* ── Hero Section ───────────────────────────────────── */
.hero {
  padding-top: 64px;
  padding-bottom: 84px;
  background: linear-gradient(180deg, var(--bg) 0%, #f6f0ea 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -60px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 214, 223, 0.5) 0%, rgba(251, 249, 246, 0) 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 228, 219, 0.45) 0%, rgba(251, 249, 246, 0) 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(40px, 5.5vw, 76px);
  align-items: center;
  position: relative;
}
.hero-text {
  max-width: 590px;
}
.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 22px;
  padding: 6px 16px 6px 10px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #256636;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(37, 102, 54, 0.35);
  animation: pulseRipple 1.8s infinite cubic-bezier(0.4, 0, 0.6, 1);
}
@keyframes pulseRipple {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-text h1 {
  font-size: clamp(2.8rem, 5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  color: var(--text);
  font-weight: 500;
}
.hero-text h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
}
.hero-text p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 34px;
  max-width: 32rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

/* Hero Social Proof Strip */
.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.avatar-group {
  display: flex;
  align-items: center;
}
.avatar-disc {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  border: 2.5px solid #ffffff;
  margin-left: -9px;
  box-shadow: var(--shadow-xs);
  background: var(--bg-muted);
}
.avatar-disc:first-child {
  margin-left: 0;
}
.avatar-disc.av-1 { background: #fbeef2; }
.avatar-disc.av-2 { background: #eef7f0; }
.avatar-disc.av-3 { background: #fdf8f2; }
.avatar-disc.av-4 { background: #f5edf7; }

.proof-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.proof-info .stars {
  font-size: 0.875rem;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.proof-info .stars strong {
  color: var(--text);
  font-weight: 700;
}
.proof-count {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ── Hero Visual Stage ──────────────────────────────── */
.hero-stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.hero-stage-glow {
  position: absolute;
  top: 10%;
  left: 5%;
  right: 5%;
  bottom: 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(148, 56, 83, 0.2) 0%, rgba(201, 155, 102, 0.12) 50%, rgba(251, 249, 246, 0) 75%);
  filter: blur(32px);
  z-index: 1;
  pointer-events: none;
}
.hero-img-card {
  position: relative;
  z-index: 2;
  border-radius: 240px 240px 36px 36px;
  overflow: hidden;
  aspect-ratio: 4 / 5.2;
  max-height: 540px;
  width: 100%;
  background: #f0eae2;
  box-shadow: 0 24px 50px -12px rgba(29, 24, 25, 0.18), 0 8px 20px -4px rgba(29, 24, 25, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.hero-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.85s var(--ease);
}
.hero-img-card:hover img {
  transform: scale(1.04);
}

/* Floating Glass Cards */
.floating-chip {
  position: absolute;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  box-shadow: 0 16px 32px -8px rgba(29, 24, 25, 0.12), 0 4px 12px rgba(29, 24, 25, 0.04);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.floating-chip:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -8px rgba(29, 24, 25, 0.18);
}

.chip-top-right {
  top: 36px;
  right: -24px;
  max-width: 250px;
}
.chip-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}
.chip-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.35;
}
.chip-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
}
.chip-content strong {
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 700;
}
.chip-detail {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.chip-bottom-left {
  bottom: 24px;
  left: -24px;
  max-width: 270px;
}
.chip-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--sage-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chip-bottom-left strong {
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 700;
}
.chip-bottom-left span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.floating-live-pill {
  position: absolute;
  bottom: -16px;
  right: 20px;
  z-index: 11;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}

/* ── Trust Bar Strip ────────────────────────────────── */
.trust-bar {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 38px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease;
}
.trust-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-hover);
}
.trust-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-icon-box.t-sage { background: #eef5f0; color: #2e623b; }
.trust-icon-box.t-rose { background: #fceef2; color: var(--primary); }
.trust-icon-box.t-gold { background: #fdf5ea; color: #a46d2f; }
.trust-icon-box.t-blue { background: #eef4fc; color: #2c599d; }

.trust-item strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.trust-item span {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.4;
}

/* ── Section Structure ──────────────────────────────── */
section {
  padding-top: 96px;
  padding-bottom: 96px;
}
.page-section {
  padding-top: 56px;
  padding-bottom: 96px;
}
.section-title {
  margin-bottom: 44px;
}
.section-title.center {
  text-align: center;
}
.section-title h2 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.section-title p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 36rem;
  line-height: 1.6;
}
.section-title.center p {
  margin-left: auto;
  margin-right: auto;
}
.section-flush-top {
  padding-top: 0;
}

/* ── Product Grid & Modern Product Cards ────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.product-card > a:first-child {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-muted);
}
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}
.product-card:hover img {
  transform: scale(1.05);
}

.product-card .info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}
.card-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 6px;
}
.product-card h3 {
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--text);
  transition: color 0.18s ease;
}
.product-card:hover h3,
.product-card .info a:hover h3 {
  color: var(--primary);
}
.product-card .price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-top: auto;
  margin-bottom: 16px;
}
.card-rating {
  font-size: 0.75rem;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}
.card-rating span {
  color: var(--text-tertiary);
  font-weight: 600;
}
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  margin-bottom: 14px;
}
.card-sub-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #256636;
  background: #eef7f0;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.product-card .card-actions {
  margin-top: auto;
}
.product-card .card-actions .btn {
  width: 100%;
  min-height: 42px;
  padding: 9px 18px;
  font-size: 0.875rem;
  background: var(--bg);
  border-color: var(--border);
  color: var(--text);
}
.product-card .card-actions .btn:hover {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* ── Shop by Category Cards ─────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.category-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-muted);
  box-shadow: var(--shadow-xs);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.category-card:hover img {
  transform: scale(1.06);
}
.category-card h3 {
  position: absolute;
  inset: auto 0 0 0;
  padding: 64px 20px 22px;
  background: linear-gradient(to top, rgba(29, 24, 25, 0.78) 0%, rgba(29, 24, 25, 0.3) 60%, transparent 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding-bottom 0.25s var(--ease);
}
.category-card:hover h3 {
  padding-bottom: 26px;
}
.category-card h3::after {
  content: "→";
  font-family: var(--font);
  font-size: 1.1rem;
  opacity: 0.85;
  transform: translateX(-4px);
  transition: transform 0.25s var(--ease), opacity 0.25s ease;
}
.category-card:hover h3::after {
  opacity: 1;
  transform: translateX(0);
}

/* ── Catalog Filter Tabs & Search Toolbar ───────────── */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.filters.center {
  justify-content: center;
}
.filter-btn {
  min-height: 42px;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s var(--ease);
}
.filter-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
  transform: translateY(-1px);
}
.filter-btn.active {
  background: var(--text);
  color: #ffffff;
  border-color: var(--text);
  box-shadow: 0 4px 12px rgba(29, 24, 25, 0.16);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  margin-bottom: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.search-input-wrap {
  position: relative;
  flex: 1;
  max-width: 380px;
}
.search-input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  pointer-events: none;
}
.search-input-wrap input {
  width: 100%;
  min-height: 42px;
  padding: 8px 16px 8px 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  font-size: 0.9375rem;
  color: var(--text);
  transition: all 0.2s ease;
}
.search-input-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.toolbar .results-count {
  margin: 0;
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
}
.sort {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.sort select {
  min-height: 42px;
  padding: 8px 38px 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231d1819' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
  -webkit-appearance: none;
  appearance: none;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.sort select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

/* ── How Ordering Works ─────────────────────────────── */
.how {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.how-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  max-width: 1020px;
  margin: 0 auto;
}
.how-grid li {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.how-grid li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}
.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(148, 56, 83, 0.28);
}
.how-grid h3 {
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--text);
}
.how-grid p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 20rem;
  margin: 0 auto;
}

/* ── Product Detail Page ────────────────────────────── */
.breadcrumb {
  margin-bottom: 28px;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}
.crumbs a {
  color: var(--text-secondary);
  font-weight: 500;
}
.crumbs a:hover {
  color: var(--primary);
}
.crumbs [aria-current] {
  color: var(--text);
  font-weight: 600;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}
.product-detail > div:first-child {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-muted);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.product-detail img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.product-detail .details {
  padding-top: 4px;
}
.product-detail .card-cat {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.product-detail h1 {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  line-height: 1.12;
}
.product-detail .price {
  font-family: var(--font);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}
.product-detail .lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.qty-row label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
}
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-xs);
}
.qty-control button {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 1.125rem;
  color: var(--text);
  font-weight: 600;
  transition: background 0.15s ease;
}
.qty-control button:hover {
  background: var(--bg-muted);
}
.qty-control input {
  width: 44px;
  height: 44px;
  border: none;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  background: transparent;
  -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.note-field {
  margin-bottom: 28px;
}
.note-field label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.note-field textarea,
.order-note textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  resize: vertical;
  min-height: 94px;
  background: var(--bg-elevated);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.note-field textarea:focus,
.order-note textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

.perks {
  list-style: none;
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  overflow: hidden;
}
.perks li {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
}
.perks li + li {
  border-top: 1px solid var(--border);
}
.perks strong {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
}
.perks span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.related-title {
  margin-top: 96px;
}

/* ── Cart & Checkout Page ───────────────────────────── */
.steps {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  margin: -10px 0 36px;
  padding: 0;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-tertiary);
}
.steps li + li::before {
  content: "";
  width: 48px;
  height: 2px;
  background: var(--border);
  margin: 0 16px;
  border-radius: 2px;
}
.steps .dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-hover);
  font-size: 0.8125rem;
  font-weight: 700;
  background: var(--bg-elevated);
  transition: all 0.2s ease;
}
.steps .current {
  color: var(--text);
  font-weight: 700;
}
.steps .current .dot {
  background: var(--text);
  border-color: var(--text);
  color: #ffffff;
}
.steps .done {
  color: var(--text-secondary);
}
.steps .done .dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 52px;
  align-items: start;
}
.cart-items {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px 24px;
  box-shadow: var(--shadow-xs);
}
.cart-item {
  display: grid;
  grid-template-columns: 104px 1fr auto;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}
.cart-item:last-child {
  border-bottom: none;
}
.cart-item-img-link {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  background: var(--bg-muted);
}
.cart-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.cart-item:hover img {
  transform: scale(1.05);
}
.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cart-item-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}
.cart-item h3 {
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text);
  transition: color 0.18s ease;
}
.cart-item-info a {
  text-decoration: none;
}
.cart-item-info a:hover h3 {
  color: var(--primary);
}
.cart-item .item-price {
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 700;
}
.cart-item .unit-price-label {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-tertiary);
}
.cart-item .item-note {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 6px;
  font-style: italic;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-block;
  max-width: fit-content;
}
.cart-item .item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.item-total-badge {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--primary);
}
.cart-item .remove-btn {
  background: transparent;
  border: none;
  padding: 4px 6px;
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: color 0.18s ease;
  border-radius: var(--radius-sm);
}
.cart-item .remove-btn:hover {
  color: var(--danger);
}

.cart-summary {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
  box-shadow: var(--shadow);
}
.cart-summary h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 22px;
  letter-spacing: -0.015em;
}
.summary-lines {
  margin-bottom: 16px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.summary-row.total {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 12px;
  margin-bottom: 24px;
}
.summary-note {
  margin-top: 18px;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  text-align: center;
  line-height: 1.5;
}
.deliver-to {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  line-height: 1.6;
}
.deliver-to strong {
  color: var(--text);
}
.cart-empty {
  text-align: center;
  padding: 88px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  max-width: 600px;
  margin: 0 auto;
}
.cart-empty h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
.cart-empty p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 1.0625rem;
}
.back-row {
  margin-bottom: 28px;
}

/* ── Checkout Forms & Payment ───────────────────────── */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-xs);
}
.checkout-form .form-row,
.card-fields .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.checkout-section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.payment-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--bg-elevated);
  transition: all 0.2s var(--ease);
}
.payment-option:hover {
  border-color: var(--border-hover);
  background: var(--bg-subtle);
}
.payment-option.active {
  border-color: var(--primary);
  background: var(--primary-muted);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.payment-option input {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.payment-option .pay-label strong {
  display: block;
  font-weight: 700;
  color: var(--text);
}
.payment-option .pay-label span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.card-fields {
  display: none;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
  padding: 24px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card-fields.visible {
  display: flex;
}

.khqr-payment-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 14px;
  background: var(--bg-elevated);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.khqr-payment-panel img {
  display: block;
  width: min(250px, 100%);
  height: auto;
  object-fit: contain;
  margin: 0 auto 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.khqr-payment-panel p {
  max-width: 500px;
  margin: 6px auto;
  line-height: 1.6;
}
.khqr-payment-panel .field-hint {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: 16px;
}

.order-success {
  text-align: center;
  padding: 64px 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.order-success h2 {
  font-size: 2.25rem;
  margin-bottom: 12px;
  color: var(--text);
}
.order-success .order-details {
  text-align: left;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.order-success .order-details strong {
  color: var(--text);
  font-weight: 700;
}

/* ── Auth Page ──────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  background: radial-gradient(circle at 50% 30%, #f6f0e9 0%, var(--bg) 70%);
}
.auth-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 450px;
  box-shadow: var(--shadow-lg);
}
.auth-card h1 {
  font-size: 2rem;
  margin-bottom: 8px;
  text-align: center;
}
.auth-card .subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 0.9375rem;
}
.auth-card .btn {
  width: 100%;
  min-height: 50px;
  margin-top: 10px;
}
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.auth-footer a {
  color: var(--primary);
  font-weight: 600;
}
.demo-pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  margin-top: 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-muted);
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}
.demo-pill-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--primary);
  color: var(--primary);
}
.error-msg, .success-msg {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 20px;
  display: none;
}
.error-msg {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #f3c9c5;
}
.success-msg {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #c4e2cb;
}

/* ── Modern Toast Notification ─────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
  max-width: 90vw;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Chat Concierge Widget ──────────────────────────── */
.chat-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 300;
}
.chat-toggle {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(148, 56, 83, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.chat-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(148, 56, 83, 0.5);
}
.chat-toggle svg {
  width: 24px;
  height: 24px;
}
.chat-panel {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 370px;
  height: 490px;
  max-height: calc(100vh - 120px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: chatOpen 0.28s var(--ease);
}
@keyframes chatOpen {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-panel.open {
  display: flex;
}
.chat-header {
  background: var(--text);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}
.chat-header span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-header span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
}
.chat-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  opacity: 0.85;
}
.chat-header button:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
}
.chat-msg {
  max-width: 84%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.9375rem;
  line-height: 1.46;
}
.chat-msg.user {
  align-self: flex-end;
  background: var(--primary);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}
.chat-msg.admin {
  align-self: flex-start;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-xs);
}
.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}
.chat-input-area input {
  flex: 1;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-pill);
  background: var(--bg);
}
.chat-input-area input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.chat-input-area button {
  padding: 0 22px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: background 0.18s ease;
}
.chat-input-area button:hover {
  background: var(--primary);
}

/* ── Luxurious Dark Floral Footer ───────────────────── */
.footer {
  background: #141112;
  color: #dfd7d5;
  padding-top: 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

/* Newsletter Strip inside Footer */
.footer-newsletter-wrap {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 56px 0;
  background: #1a1617;
}
.footer-newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.newsletter-text h3 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: #ffffff;
  margin-bottom: 6px;
  font-weight: 500;
}
.newsletter-text p {
  color: #a89d9b;
  font-size: 0.9375rem;
  max-width: 480px;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  width: 100%;
}
.newsletter-form input {
  flex: 1;
  min-height: 50px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  color: #ffffff;
  font-size: 0.9375rem;
  outline: none;
  transition: all 0.2s ease;
}
.newsletter-form input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(148, 56, 83, 0.35);
}
.newsletter-form input::placeholder {
  color: #8c8280;
}
.newsletter-form button {
  padding: 0 26px;
  min-height: 50px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s var(--ease);
}
.newsletter-form button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(148, 56, 83, 0.4);
}

/* Footer Main Grid */
.footer-main {
  padding-top: 68px;
  padding-bottom: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
}
.footer-brand .logo {
  color: #ffffff;
  margin-bottom: 16px;
  font-size: 1.65rem;
  display: inline-block;
}
.footer-brand .logo span {
  color: var(--primary);
}
.footer-brand p {
  color: #a89d9b;
  font-size: 0.9375rem;
  line-height: 1.68;
  max-width: 320px;
  margin-bottom: 24px;
}

/* Social Icon Pills */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dfd7d5;
  transition: all 0.2s ease;
}
.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}
.social-link svg {
  width: 17px;
  height: 17px;
}

.footer-col h4 {
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffffff;
  margin-bottom: 22px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  margin-bottom: 12px;
}
.footer-col a, .footer-col p {
  color: #a89d9b;
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: color 0.18s ease, transform 0.18s ease;
  display: inline-block;
  text-decoration: none;
}
.footer-col a:hover {
  color: #ffffff;
  transform: translateX(3px);
}
.atelier-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: #a89d9b;
  font-size: 0.9375rem;
}
.atelier-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Payments and Trust bar inside footer */
.footer-trust-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.8125rem;
  color: #8c8280;
}
.payment-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.payment-pill {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #dfd7d5;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: #7d7270;
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  color: inherit;
  transition: color 0.15s ease;
}
.footer-bottom-links a:hover {
  color: #ffffff;
}

/* Fallback quiet tile */
.img-fallback {
  opacity: 0.95;
  background: var(--bg-muted);
}

/* ── Responsive Adaptations ─────────────────────────── */
@media (max-width: 1080px) {
  .product-grid, .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cart-layout {
    grid-template-columns: 1fr 360px;
    gap: 36px;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-text {
    margin: 0 auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-social-proof {
    justify-content: center;
  }
  .hero-stage {
    max-width: 420px;
  }
  .chip-top-right {
    top: 14px;
    right: -8px;
  }
  .chip-bottom-left {
    bottom: 14px;
    left: -8px;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .product-detail {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .product-detail > div:first-child {
    position: static;
    max-height: 480px;
  }
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-summary {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 68px;
  }
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .product-grid, .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 14px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    gap: 6px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a, .nav-links button {
    width: 100%;
    text-align: left;
    padding: 14px 18px;
    border-radius: var(--radius);
  }
  .menu-toggle {
    display: block;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .steps {
    margin-bottom: 28px;
  }
  .steps li + li::before {
    width: 20px;
    margin: 0 8px;
  }
  .steps li span:not(.dot) {
    display: none;
  }
  .steps .current span:not(.dot) {
    display: inline;
  }
  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 16px;
  }
  .cart-item img {
    width: 80px;
    height: 80px;
  }
  .cart-item .item-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .how-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .chat-panel {
    width: calc(100vw - 32px);
    right: 0;
    bottom: 70px;
  }
}

@media (max-width: 520px) {
  .hero-text h1 {
    font-size: clamp(2.4rem, 10vw, 3rem);
  }
  .hero-actions .btn {
    width: 100%;
  }
  .chip-top-right, .chip-bottom-left {
    position: static;
    margin: 12px auto 0;
    max-width: 100%;
    width: 100%;
    transform: none !important;
  }
  .floating-live-pill {
    position: static;
    margin: 12px auto 0;
    display: flex;
    justify-content: center;
  }
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .checkout-form .form-row,
  .card-fields .form-row {
    grid-template-columns: 1fr;
  }
  .filters.center {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -20px 28px;
    padding: 0 20px 8px;
    scrollbar-width: none;
  }
  .filters.center::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    flex-shrink: 0;
  }
}

/* ── Order confirmation ─────────────────────────────── */
.order-confirmed {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 36px 48px;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.oc-check { width: 84px; height: 84px; margin-bottom: 18px; }
.oc-check-ring {
  stroke: var(--success); stroke-width: 2.5;
  stroke-dasharray: 151; stroke-dashoffset: 151;
  animation: oc-draw 0.7s var(--ease) forwards;
}
.oc-check-tick {
  stroke: var(--success); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: oc-draw 0.45s var(--ease) 0.55s forwards;
}
@keyframes oc-draw { to { stroke-dashoffset: 0; } }
.order-confirmed h2 { font-size: 2.25rem; margin-bottom: 10px; color: var(--text); }
.oc-lead { max-width: 52ch; margin: 0 auto 26px; color: var(--text-secondary); line-height: 1.6; }

.oc-ref {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  padding: 10px 10px 10px 18px;
  background: var(--success-bg); border: 1px solid #c4e2cb; border-radius: var(--radius-pill);
}
.oc-ref-label { font-size: 0.8125rem; color: var(--success); font-weight: 600; }
.oc-ref code { font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.03em; color: var(--text); }
.oc-copy {
  border: 0; cursor: pointer; padding: 7px 16px; border-radius: var(--radius-pill);
  background: var(--success); color: #fff; font: inherit; font-size: 0.8125rem; font-weight: 600;
}
.oc-copy:hover { filter: brightness(1.1); }
.oc-copy:focus-visible { outline: 3px solid var(--primary-ring); outline-offset: 2px; }

.oc-steps {
  list-style: none; margin: 30px 0 32px; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.oc-steps li {
  position: relative; padding-top: 24px;
  font-size: 0.8125rem; color: var(--text-tertiary); font-weight: 500;
}
.oc-steps li span {
  position: absolute; top: 0; left: 50%; width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%; background: var(--bg-elevated); border: 2px solid var(--border-hover); z-index: 1;
}
.oc-steps li::before {
  content: ""; position: absolute; top: 6px; left: -50%; width: 100%; height: 2px; background: var(--border);
}
.oc-steps li:first-child::before { display: none; }
.oc-steps li.done { color: var(--success); font-weight: 600; }
.oc-steps li.done span { background: var(--success); border-color: var(--success); }

.oc-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; text-align: left; }
.oc-card {
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
}
.oc-card h3 { font-size: 1rem; margin: 0 0 14px; color: var(--text); }
.oc-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.oc-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; }
.oc-item img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; background: var(--bg-muted); }
.oc-item-name { font-size: 0.9375rem; color: var(--text); font-weight: 600; line-height: 1.3; }
.oc-item-name small { display: block; color: var(--text-tertiary); font-weight: 400; margin-top: 2px; }
.oc-item-price { font-weight: 600; color: var(--text); font-size: 0.9375rem; }
.oc-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border);
}
.oc-total strong { font-size: 1.25rem; color: var(--primary); }
.oc-facts { margin: 0; font-size: 0.9375rem; line-height: 1.5; }
.oc-facts dt { color: var(--text-tertiary); font-size: 0.8125rem; margin-top: 12px; }
.oc-facts dt:first-child { margin-top: 0; }
.oc-facts dd { margin: 2px 0 0; color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
.oc-facts dd small { display: block; color: var(--text-secondary); font-weight: 400; }
.oc-note { max-width: 56ch; margin: 24px auto 24px; font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

@media (max-width: 640px) {
  .order-confirmed { padding: 40px 18px 32px; }
  .order-confirmed h2 { font-size: 1.75rem; }
  .oc-grid { grid-template-columns: 1fr; }
  .oc-steps { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .oc-steps li::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .oc-check-ring, .oc-check-tick { animation: none; stroke-dashoffset: 0; }
}
