/* Brand fonts, served from this site (see public/fonts/OFL.txt for the licence). Both are variable fonts:
   Fraunces adjusts its shapes to the size it is shown at, Figtree covers every weight used. */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-var-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-var-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg-cream: #FAF6F2;
  --bg-blush: #F4EAE4;
  --bg-card: #FFFFFF;
  --ink-dark: #1E1418;
  --ink-body: #4A3B41;
  --ink-muted: #7D6B72;
  --rose-primary: #8E244D;
  --rose-hover: #70183A;
  --rose-light: #FCEEF3;
  --coral-accent: #C85A53;
  --gold-accent: #C59B27;
  --sage-green: #2E4F44;
  --sage-light: #E8F1EE;
  --mpesa-green: #16A34A;
  --mpesa-light: #DCFCE7;
  --border-soft: #E8DCD5;
  --shadow-sm: 0 4px 14px rgba(30, 20, 24, 0.05);
  --shadow-md: 0 12px 32px rgba(30, 20, 24, 0.09);
  --shadow-lg: 0 24px 54px rgba(30, 20, 24, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type scale: every text size on the site is one of these. Nothing below 13px, except 12px for small uppercase badges. */
  --fs-micro: 0.75rem;      /* 12px  uppercase badges and eyebrows only */
  --fs-label: 0.8125rem;    /* 13px  stock notes, badges, helper text, dense admin text */
  --fs-small: 0.875rem;     /* 14px  table cells, card buttons, secondary text */
  --fs-ui: 0.9375rem;       /* 15px  buttons, menu, pills */
  --fs-body: 1rem;          /* 16px  reading text, form fields */
  --fs-lede: 1.125rem;      /* 18px  hero paragraph, prices */
  --fs-name: 1.25rem;       /* 20px  product names, card titles */
  --fs-heading: 1.5rem;     /* 24px  admin and modal headings */
  --fs-title: clamp(1.75rem, 1.4rem + 1vw, 2rem);            /* 28-32px  section titles */
  --fs-display: clamp(2rem, 1.2rem + 3.2vw, 3.5rem);         /* 32-56px  hero heading only */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

/* Finding 4: Pure warm editorial cream background with minimal noise */
body {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums; /* prices, totals and counts line up in columns */
  background-color: #FAF8F5;
  color: var(--ink-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .serif {
  font-family: var(--font-serif);
  color: var(--ink-dark);
  line-height: 1.18;
}

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

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

.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Icons: one outline set (Lucide + 3 custom), drawn from the sprite in index.html. They take the colour and size of
   the text they sit in, so a label's font-size and colour are all that is needed to restyle its icon. */
.icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
  flex: none;
  margin-inline-end: 0.4em;
}
.icon.trail { margin-inline: 0.35em 0; }
.icon.solo { margin: 0; } /* the only thing in its button or badge: nothing to space it from */
.icon.fill { fill: currentColor; }

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, var(--ink-dark) 0%, var(--rose-primary) 50%, var(--ink-dark) 100%);
  color: #FFF;
  font-size: var(--fs-label);
  font-weight: 500;
  padding: 8px 16px;
  text-align: center;
  letter-spacing: 0.02em;
}

.announcement-bar strong {
  color: #FFD9E6;
}

/* Header & Navigation — Dynamic Single-Row Layout */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 242, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 4px 20px rgba(30, 20, 24, 0.04);
  transition: all 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 8px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(30, 20, 24, 0.06));
}

.brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.5vw, 1.5rem);
  font-weight: 700;
  color: var(--ink-dark);
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.brand-sub {
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--rose-primary);
  font-weight: 700;
  margin-top: 2px;
  white-space: nowrap;
}

.mobile-menu-toggle {
  display: none;
  background: #FFF;
  border: 1.5px solid var(--border-soft);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--ink-dark);
  cursor: pointer;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.nav-link {
  background: transparent;
  border: none;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--ink-body);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link:hover, .nav-link.active {
  background: var(--rose-light);
  color: var(--rose-primary);
}

.mobile-only-nav {
  display: none;
}

.nav-link.builder-highlight {
  background: linear-gradient(135deg, #FCEEF3 0%, #F8E2EA 100%);
  color: var(--rose-primary);
  border: 1px solid rgba(142, 36, 77, 0.22);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ig-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: var(--fs-label);
  font-weight: 700;
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--ink-dark);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.ig-pill:hover {
  border-color: var(--rose-primary);
  color: var(--rose-primary);
  transform: translateY(-1px);
}

.phone-pill {
  background: #FDF2F7;
  border-color: rgba(142, 36, 77, 0.2);
  color: var(--rose-primary);
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rose-primary);
  color: #FFF;
  border: none;
  padding: 8px 15px;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--fs-small);
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(142, 36, 77, 0.25);
  transition: all 0.2s ease;
}

.cart-btn:hover {
  background: var(--rose-hover);
  transform: translateY(-1px);
}

.cart-count-badge {
  background: #FFF;
  color: var(--rose-primary);
  font-size: var(--fs-label);
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

/* Finding 1: Compact Editorial Hero (320-440px desktop, shorter on mobile) */
.editorial-hero {
  padding: 12px 0 8px;
}

.hero-editorial-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 8px 4px;
  box-shadow: none;
  min-height: 320px;
}

.hero-editorial-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-kicker-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--rose-light);
  color: var(--rose-primary);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
  width: fit-content;
}

.hero-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose-primary);
}

/* The small label above a section title: the same pale-rose pill as the hero's "Nairobi florist" tag (sentence case, since these are longer) */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  background: var(--rose-light);
  color: var(--rose-primary);
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1.3;
  padding: 5px 12px;
  border-radius: 14px;
  margin-bottom: 10px;
}
.hero-eyebrow .icon { margin: 0; }

.hero-editorial-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 2.7vw, 2.5rem);
  line-height: 1.12;
  font-weight: 700;
  color: var(--ink-dark);
  margin-bottom: 10px;
}

.hero-editorial-desc {
  font-size: clamp(0.85rem, 1.05vw, 0.94rem);
  color: var(--ink-body);
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 520px;
}

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

.btn-hero-primary {
  background: var(--rose-primary);
  color: #FFF;
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--fs-small);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 8px 22px rgba(142, 36, 77, 0.25);
  transition: all 0.2s ease;
  min-height: 44px;
}

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

.btn-hero-secondary {
  background: #FFF;
  color: var(--rose-primary);
  border: 1.5px solid rgba(142, 36, 77, 0.35);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--fs-small);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
  min-height: 44px;
}

.btn-hero-secondary:hover {
  background: var(--rose-light);
  border-color: var(--rose-primary);
}

.hero-editorial-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  position: relative;
}

/* Frameless transparent floral hero element seamlessly blended into canvas */
.hero-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  overflow: visible !important;
}

.hero-photo-img {
  width: 100%;
  max-width: 450px;
  height: auto;
  object-fit: contain;
  display: block;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  /* Natural realistic ambient drop shadow cast directly onto canvas like in editorial floral design */
  filter: drop-shadow(0 22px 32px rgba(50, 30, 40, 0.16));
  transition: transform 0.4s ease, filter 0.4s ease;
}

.hero-photo-wrap:hover .hero-photo-img {
  transform: translateY(-4px) scale(1.02);
  filter: drop-shadow(0 28px 40px rgba(50, 30, 40, 0.22));
}

/* Supporting Trust Micro-Points under Hero CTA (Visual Direction) */
.hero-micro-points {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: var(--fs-label);
  color: var(--ink-muted);
  font-weight: 500;
  margin-top: 14px;
}

.hero-micro-points span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-primary {
  background: var(--rose-primary);
  color: #FFF;
  border: none;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--fs-small);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(142, 36, 77, 0.22);
  transition: all 0.2s ease;
}

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

.btn-secondary {
  background: #FFF;
  color: var(--ink-dark);
  border: 1.5px solid var(--border-soft);
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--fs-small);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--rose-primary);
  color: var(--rose-primary);
}

/* Main Catalog & Unified Occasion Strip (No Horizontal Scroller, No Double Stack) */
.occasions-strip {
  padding: 24px 0 36px;
}

.catalog-header-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.section-title {
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  font-weight: 700;
}

.section-subtitle {
  color: var(--ink-muted);
  font-size: var(--fs-ui);
  max-width: 640px;
}

/* Sleek Single-Row Occasion & Sentiments Bar */
.occasion-pills {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 8px;
  padding: 2px 2px 8px;
  margin-bottom: 20px;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 2px;
}

.occasion-pills::-webkit-scrollbar {
  display: none;
}

/* app.fadeOccasionEdges sets data-fade to the side(s) that have more pills */
.occasion-pills[data-fade~="end"] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.occasion-pills[data-fade~="start"] { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); }
.occasion-pills[data-fade~="start"][data-fade~="end"] {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent);
}

.occasion-pill-btn {
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: #FFFFFF;
  border: 1.5px solid var(--border-soft);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--ink-body);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(30, 20, 24, 0.03);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.occasion-pill-btn:hover {
  border-color: var(--rose-primary);
  color: var(--rose-primary);
  transform: translateY(-1px);
}

.occasion-pill-btn.active {
  background: var(--rose-primary);
  border-color: var(--rose-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(142, 36, 77, 0.28);
}

.occasion-card-btn {
  flex: 0 0 auto;
  background: #FFFFFF;
  border: 1.5px solid var(--border-soft);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.occasion-card-btn:hover {
  border-color: var(--rose-primary);
  transform: translateY(-1px);
}

.occasion-card-btn.active {
  background: var(--rose-primary);
  border-color: var(--rose-primary);
  color: #FFF;
}

.occasion-card-btn .occ-badge {
  display: none;
}

.occasion-card-btn .occ-name {
  font-weight: 700;
  font-size: var(--fs-label);
}

.search-sort-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.input-search, .select-sort {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border-soft);
  background: #FFF;
  font-size: var(--fs-small);
  color: var(--ink-dark);
  outline: none;
  box-shadow: var(--shadow-sm);
}

.input-search {
  min-width: 240px;
}

.input-search:focus, .select-sort:focus {
  border-color: var(--rose-primary);
}

/* Product Grid & Cards — Dynamic & Responsive */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-bottom: 36px;
  transition: opacity 0.25s ease;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Finding 2: Standardise primary bouquet images to portrait 4:5 ratio */
.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #FAF7F2;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  cursor: pointer;
  image-rendering: auto;
}

.product-card:hover .product-media img {
  transform: scale(1.03);
}

/* Finding 3: Restrained single badge */
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(30, 20, 24, 0.84);
  backdrop-filter: blur(4px);
  color: #FFF;
  font-size: var(--fs-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  border-radius: 999px;
}

.product-badge.free-badge {
  background: var(--sage-green);
}

.product-badge.badge-sold-out {
  background: #6D6569;
}

.gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  background: rgba(30, 20, 24, 0.45);
  padding: 4px 8px;
  border-radius: 999px;
}

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

.gallery-dot.active {
  background: #FFF;
  transform: scale(1.2);
}

.quick-view-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-label);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.quick-view-btn:hover {
  background: var(--rose-primary);
  color: #FFF;
}

/* Finding 3: Product Card Body — Clean 4-Element Visual Hierarchy */
.product-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.product-cat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

/* Running low but still available: a small chip on the photo, so every card body keeps the same shape */
.stock-chip {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #B45309;
  font-size: var(--fs-label);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
}

.product-title {
  font-family: var(--font-serif);
  font-size: var(--fs-name);
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink-dark);
  margin-bottom: 4px;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-title:hover {
  color: var(--rose-primary);
}

.product-desc {
  font-size: var(--fs-label);
  color: var(--ink-muted);
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Restrained compact swatch preview */
.card-swatches-preview {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  cursor: pointer;
}

.swatch-hint-text {
  font-size: var(--fs-micro);
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.swatch-dots-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mini-swatch-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: inline-block;
}

.swatch-more-tag {
  font-size: var(--fs-label);
  color: var(--rose-primary);
  font-weight: 700;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #F0E8E2;
  margin-top: auto;
}

.price-block {
  display: flex;
  flex-direction: column;
}

/* "From" sits above the amount, so price and button always fit side by side with equal padding, even for 5-digit prices */
.price-label {
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink-muted);
}

.price-amount {
  font-size: var(--fs-body);
  font-weight: 800;
  color: var(--rose-primary);
  white-space: nowrap;
}

.add-to-cart-btn {
  background: var(--rose-primary);
  color: #FFF;
  border: none;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: var(--fs-label);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.add-to-cart-btn:hover:not(:disabled) {
  background: var(--rose-hover);
  transform: translateY(-1px);
}

.add-to-cart-btn.btn-select-opt {
  background: #FFF;
  color: var(--rose-primary);
  border: 1.5px solid var(--rose-primary);
}

.add-to-cart-btn.btn-select-opt:hover {
  background: var(--rose-light);
}

.add-to-cart-btn:disabled, .add-to-cart-btn.btn-out-of-stock {
  background: #DDD5D8;
  color: #796E73;
  border: 1px solid #CCC0C4;
  cursor: not-allowed;
  opacity: 0.85;
}

.product-card.is-sold-out {
  opacity: 0.88;
}

.product-card.is-sold-out .product-media img {
  filter: grayscale(15%);
}

/* Custom Bouquet & Bundle Builder Studio */
.builder-section {
  padding: 56px 0;
  background: linear-gradient(180deg, var(--bg-blush) 0%, var(--bg-cream) 100%);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.95fr); /* minmax(0, …): plain fr tracks cannot shrink below their content and pushed the page wider than the screen */
  gap: 32px;
  align-items: start;
}

.builder-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.builder-step-card {
  background: #FFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--rose-primary);
  color: #FFF;
  font-weight: 800;
  font-size: var(--fs-small);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-header h3 {
  font-size: var(--fs-name);
}

.builder-choices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 12px;
}

.choice-tile {
  border: 1.5px solid var(--border-soft);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  background: var(--bg-cream);
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.choice-tile:hover {
  border-color: var(--rose-primary);
}

.choice-tile.selected {
  border-color: var(--rose-primary);
  background: var(--rose-light);
  box-shadow: 0 0 0 2px rgba(142, 36, 77, 0.12);
}

.choice-tile img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 8px;
}

.choice-title {
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--ink-dark);
}

.choice-price {
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--rose-primary);
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.swatch-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border-soft);
  background: #FFF;
  font-size: var(--fs-label);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.swatch-pill.selected {
  background: var(--ink-dark);
  color: #FFF;
  border-color: var(--ink-dark);
}

.builder-summary-card {
  position: sticky;
  top: 100px;
  background: #FFF;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-soft);
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.summary-preview-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  margin-bottom: 14px;
}

.summary-preview-strip img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid var(--border-soft);
  flex-shrink: 0;
}

.summary-line-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
  padding: 14px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  font-size: var(--fs-small);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
/* hanging bullet: a wrapped line lines up with the text, not with the bullet */
.summary-line > span { position: relative; padding-left: 12px; }
.summary-line > span::before { content: "•"; position: absolute; left: 0; }

.gift-card-preview-box {
  background: linear-gradient(135deg, #FFF9FB 0%, #F9EFEA 100%);
  border: 1px dashed var(--rose-primary);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 18px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-body);
  color: var(--ink-dark);
}

/* Delivery Zones & M-Pesa Info Section */
.info-grid-section {
  padding: 56px 0;
}

.dual-info-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start; /* each card keeps its own height instead of stretching to its neighbour's */
}

.info-panel {
  background: #FFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.zones-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: var(--fs-small);
}

.zones-table th, .zones-table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}

.zones-table th {
  font-size: var(--fs-micro);
  text-transform: uppercase;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

.mpesa-card-banner {
  background: linear-gradient(145deg, #0E2A1C 0%, #14432B 100%);
  color: #FFF;
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mpesa-paybill-digits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}

.digit-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
}

.digit-box span {
  display: block;
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #A7F3D0;
}

.digit-box strong {
  font-size: var(--fs-heading);
  letter-spacing: 0.04em;
  color: #FFF;
}

/* Order Tracking View */
.tracking-panel {
  max-width: 780px;
  margin: 40px auto;
  background: #FFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

/* Order tracking */
.track-headline {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid;
  margin: 4px 0 16px;
}
.track-headline .track-icon { font-size: var(--fs-heading); line-height: 1; }
.track-headline strong { display: block; font-size: var(--fs-body); }
.track-headline span:not(.track-icon) { font-size: var(--fs-small); }
.track-headline.progress { background: var(--sage-light); border-color: var(--sage-green); color: var(--sage-green); }
.track-headline.waiting { background: #FEF3C7; border-color: #D97706; color: #92400E; }
.track-headline.problem { background: #FEE2E2; border-color: var(--coral-accent); color: #991B1B; }

.track-photo { display: block; margin: 0 0 16px; }
.track-photo img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
}
.track-photo small { display: block; margin-top: 4px; color: var(--ink-muted); font-size: var(--fs-label); }

.track-timeline { list-style: none; margin: 0 0 16px; padding: 0; }
.track-timeline li { position: relative; display: flex; gap: 12px; padding-bottom: 16px; }
.track-timeline li:last-child { padding-bottom: 0; }
.track-timeline li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: var(--border-soft);
}
.track-timeline li:last-child::before { display: none; }
.track-timeline li.done::before { background: var(--sage-green); }
.track-dot {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-label);
  font-weight: 700;
  background: #FFF;
  border: 2px solid var(--border-soft);
  color: var(--ink-muted);
}
.track-timeline .done .track-dot { background: var(--sage-green); border-color: var(--sage-green); color: #FFF; }
.track-timeline .current .track-dot { background: var(--rose-primary); border-color: var(--rose-primary); color: #FFF; }
.track-step-label { font-weight: 600; font-size: var(--fs-small); color: var(--ink-muted); }
.track-timeline .done .track-step-label, .track-timeline .current .track-step-label { color: var(--ink-dark); }
.track-step-time { font-size: var(--fs-label); color: var(--ink-muted); }

/* Checkout: step bar (sticky top) and pay bar (sticky bottom) */
.chk-steps {
  position: sticky;
  top: -18px; /* cancels the modal's top padding so the bar sits flush */
  z-index: 5;
  display: flex;
  gap: 6px;
  margin: 0 -20px 12px;
  padding: 8px 20px;
  background: #FFF;
  border-bottom: 1px solid var(--border-soft);
}
.chk-step {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 4px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--bg-cream);
  color: var(--ink-muted);
  font-size: var(--fs-label);
  font-weight: 700;
  cursor: pointer;
}
.chk-step span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFF;
  border: 1px solid var(--border-soft);
  font-size: var(--fs-label);
}
.chk-step.done { color: var(--sage-green); border-color: var(--sage-green); background: var(--sage-light); }
.chk-step.done span { background: var(--sage-green); border-color: var(--sage-green); color: #FFF; }
.chk-step span .icon { width: 11px; height: 11px; margin: 0; stroke-width: 3; vertical-align: 0; }
#chk-step-1, #chk-step-2, #chk-step-3, #chk-step-pay { scroll-margin-top: 58px; }

.chk-actions {
  position: sticky;
  bottom: -18px; /* cancels the modal's bottom padding */
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 16px -20px -18px;
  padding: 12px 20px;
  background: #FFF;
  border-top: 1px solid var(--border-soft);
  box-shadow: 0 -6px 14px rgba(30, 20, 24, 0.06);
}
@media (max-width: 680px) {
  .chk-actions { gap: 8px; }
  .chk-actions .btn-primary { flex: 1; justify-content: center; padding: 12px 8px !important; font-size: var(--fs-small) !important; white-space: nowrap; }
  .chk-actions .btn-secondary { flex-shrink: 0; padding: 10px 12px; }
}

/* Admin Portal Styles */
.admin-section {
  padding: 36px 0 64px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.kpi-card {
  background: #FFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.kpi-card span {
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  font-weight: 700;
}

.kpi-card strong {
  display: block;
  font-size: var(--fs-title);
  color: var(--ink-dark);
  margin-top: 6px;
}

/* ==========================================================================
   MODULAR ADMIN SIDEBAR & SHELL LAYOUT (Clean, Professional & Unclustered)
   ========================================================================== */
.admin-shell {
  display: flex;
  min-height: calc(100vh - 80px);
  background: #FDFBF9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  margin-top: 10px;
}

.admin-sidebar {
  width: 270px;
  flex-shrink: 0;
  background: #FFFFFF;
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  height: auto;
  position: relative;
  z-index: 50;
  transition: transform 0.25s ease;
}

.admin-sidebar-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-brand-logo {
  font-size: var(--fs-heading);
  line-height: 1;
}

.admin-brand-title {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  color: var(--rose-primary);
  line-height: 1.2;
}

.admin-brand-sub {
  display: block;
  font-size: var(--fs-label);
  color: var(--ink-muted);
}

.admin-sidebar-close-btn {
  display: none;
  background: none;
  border: none;
  font-size: var(--fs-name);
  cursor: pointer;
  color: var(--ink-muted);
  padding: 4px;
}

.admin-user-card {
  padding: 12px 18px;
  margin: 12px 14px 4px;
  background: var(--bg-cream);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFF;
  border: 1.5px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lede);
  flex-shrink: 0;
}

.admin-user-details {
  min-width: 0;
  flex: 1;
}

.admin-user-details strong {
  display: block;
  font-size: var(--fs-small);
  color: var(--ink-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-role-badge {
  display: inline-block;
  font-size: var(--fs-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rose-primary);
}

.admin-nav-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
}

.admin-nav-group {
  margin-bottom: 18px;
}

.admin-nav-group-title {
  display: block;
  font-size: var(--fs-micro);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  padding: 6px 10px;
  margin-bottom: 4px;
}

.admin-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--ink-body);
  font-size: var(--fs-small);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
  margin-bottom: 2px;
}

.admin-nav-item:hover {
  background: var(--bg-cream);
  color: var(--rose-primary);
}

.admin-nav-item.active {
  background: var(--rose-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(142, 36, 77, 0.25);
}

.admin-nav-item.active .nav-icon {
  filter: none;
}

.nav-icon {
  font-size: var(--fs-body);
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.nav-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-badge {
  background: #DC2626;
  color: #FFF;
  font-size: var(--fs-label);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
}

.admin-sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  background: #FAFAF9;
}

.admin-sidebar-action {
  flex: 1 1 70px;
  padding: 6px 8px;
  font-size: var(--fs-label);
  border: 1px solid var(--border-soft);
  background: #FFF;
  border-radius: 6px;
  cursor: pointer;
  color: var(--ink-body);
  font-weight: 600;
  text-align: center;
  transition: all 0.15s ease;
}

.admin-sidebar-action:hover {
  border-color: var(--rose-primary);
  color: var(--rose-primary);
}

.admin-sidebar-action.logout {
  color: #DC2626;
  border-color: #FCA5A5;
}
.admin-sidebar-action.logout:hover {
  background: #FEF2F2;
}

/* Main Content Area */
.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #FAF8F6;
  padding: 20px 24px 36px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}

.admin-view-title {
  font-family: var(--font-serif);
  font-size: var(--fs-heading);
  margin: 0;
  color: var(--ink-dark);
  line-height: 1.2;
}

.admin-view-subtitle {
  font-size: var(--fs-label);
  color: var(--ink-muted);
  margin: 3px 0 0;
}

.admin-topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* Title block takes the room the buttons leave, so a lone Refresh stays on the title row on a phone */
.admin-topbar > div:first-child { flex: 1 1 280px; min-width: 0; }

.admin-mobile-toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: #FFF;
  border: 1px solid var(--border-soft);
  border-radius: 50%; /* the same round menu button as the shop */
  font-size: var(--fs-name);
  cursor: pointer;
}

@media (max-width: 960px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 999;
    transform: translateX(-100%);
  }
  .admin-sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg); /* only while open: a shadow on the closed panel bled onto the screen edge */
  }
  .admin-sidebar-close-btn {
    display: inline-block;
  }
  .admin-mobile-toggle {
    display: inline-flex;
  }
  .admin-main {
    padding: 16px 14px 28px;
  }
}

/* ==========================================================================
   COLOR CIRCLE SWATCHES (No text pills - pure elegant color circles)
   ========================================================================== */
.color-circle-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 6px;
}

.color-circle-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #E2D9D2;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  position: relative;
  outline: none;
  flex-shrink: 0;
}

.color-circle-swatch:hover {
  transform: scale(1.12);
  border-color: var(--rose-primary);
}

.color-circle-swatch.active {
  border-color: var(--rose-primary);
  box-shadow: 0 0 0 2.5px rgba(142, 36, 77, 0.4);
  transform: scale(1.1);
}

.color-circle-check {
  font-size: var(--fs-label);
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.color-circle-swatch.is-light .color-circle-check {
  color: #1E1418;
  text-shadow: none;
}

/* ==========================================================================
   FLUID & DYNAMIC POPUP MODAL STYLES (No Horizontal Scrolling)
   ========================================================================== */
.modal-card {
  box-sizing: border-box !important;
  max-width: min(100%, 94vw) !important;
  max-height: calc(100vh - 32px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overflow-wrap: break-word; /* (word-break: break-word means "break anywhere" and let prices split as "2,250 K / ES") */
  overscroll-behavior: contain;
}

#quickview-modal-content {
  width: min(740px, 94vw) !important;
  max-height: calc(100vh - 32px) !important;
  padding: 16px 20px;
  border-radius: 16px;
}

.modal-card * {
  box-sizing: border-box;
}

.modal-card input,
.modal-card select,
.modal-card textarea {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.modal-card .form-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
  gap: 12px;
}

.quickview-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
  align-items: start;
}

/* The photo fills its column at the same 4:5 portrait shape as the catalog cards, with the same badge on it */
.qv-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: #FAF7F2;
  margin-bottom: 8px;
}
.qv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qv-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 4px; }
.qv-thumbs img { flex: none; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; cursor: pointer; border: 2px solid transparent; }
.qv-thumbs img.active { border-color: var(--rose-primary); }
#quickview-modal-content select { min-height: 40px; }

/* The Add button stays in reach while the details scroll (it only matters when the modal is taller than the screen) */
.qv-cta {
  position: sticky;
  bottom: 0;
  margin-bottom: -16px;
  padding: 14px 0 16px;
  background: linear-gradient(to top, #FFF 78%, rgba(255, 255, 255, 0));
}

@media (max-width: 680px) {
  #quickview-modal-content {
    width: min(440px, 94vw) !important;
    padding: 14px 16px;
    max-height: calc(100vh - 20px) !important;
  }
  .quickview-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .qv-photo { aspect-ratio: 1 / 1; max-height: 40vh; }
  .qv-cta { margin-bottom: -14px; padding-bottom: 14px; }
}

.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.admin-table-wrap {
  background: #FFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}

.admin-table th, .admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}

.admin-table th {
  background: var(--bg-cream);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: var(--fs-label);
  font-weight: 700;
}

.status-badge.verified {
  background: var(--mpesa-light);
  color: var(--mpesa-green);
}

.status-badge.pending {
  background: #FEF3C7;
  color: #B45309;
}

/* Order Fulfilment Queue & FIFO Filters */
.order-queue-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-cream);
  border-bottom: 1px solid var(--border-soft);
}

.order-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.order-filter-btn {
  background: #FFF;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--ink-body);
  cursor: pointer;
  transition: all 0.2s ease;
}

.order-filter-btn.active {
  background: var(--rose-primary);
  color: #FFF;
  border-color: var(--rose-primary);
}

.queue-badge {
  display: inline-block;
  background: #FEF3C7;
  color: #92400E;
  font-weight: 800;
  font-size: var(--fs-label);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 4px;
}

/* Accounting & Income Statement Module */
.accounting-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 20px;
  background: #FFF;
  border-bottom: 1px solid var(--border-soft);
}

.accounting-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.accounting-pill-btn {
  background: #FFF;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--ink-body);
  cursor: pointer;
  transition: all 0.2s ease;
}

.accounting-pill-btn.active {
  background: var(--forest-green);
  color: #FFF;
  border-color: var(--forest-green);
}

.statement-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-soft);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}

.statement-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: var(--fs-small);
  border-bottom: 1px dashed rgba(30, 20, 24, 0.08);
}

.statement-row.indent {
  padding-left: 20px;
  color: var(--ink-muted);
  font-size: var(--fs-small);
}

.statement-row.subtotal {
  font-weight: 700;
  color: var(--ink-dark);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 9px 0;
}

.statement-row.grand-total {
  font-size: var(--fs-lede);
  font-weight: 800;
  padding: 12px 0 6px;
  border-top: 2px solid var(--ink-dark);
  border-bottom: none;
}

/* Slide-Over Cart & Modals */
.backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 12, 15, 0.45);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.backdrop.open,
.modal-backdrop.open {
  display: flex !important;
}

/* Specific non-blur, high-contrast overlay for cart drawer */
#cart-backdrop {
  background: rgba(18, 12, 15, 0.25);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 490 !important;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  background: #FFF;
  z-index: 500 !important;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  /* Closed: no shadow (it used to bleed into the screen edge) and hidden from keyboard/screen readers once it has slid out */
  visibility: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.28s;
}

.cart-drawer.open {
  transform: translateX(0);
  visibility: visible;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.drawer-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-cream);
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}

.cart-item img {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 2px 8px;
  margin-top: 6px;
}

.qty-controls button {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 800;
  padding: 2px 6px;
}

.modal-card {
  background: #FFF;
  border-radius: var(--radius-md);
  width: min(640px, 94vw);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  position: relative;
}

/* Google Reviews Showcase Section */
.reviews-section {
  padding: 36px 0 28px;
}

.reviews-header-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.reviews-rating-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.google-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-label);
  font-weight: 700;
  color: #1F2937;
}

.reviews-score-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews-score {
  font-size: 2.2rem;
  font-weight: 900;
  color: #111827;
  line-height: 1;
}

.reviews-stars-wrap {
  display: flex;
  flex-direction: column;
}

.reviews-stars {
  color: #F59E0B;
  font-size: var(--fs-name);
  letter-spacing: 2px;
  line-height: 1;
}

.reviews-count {
  font-size: var(--fs-label);
  color: var(--ink-muted);
  margin-top: 3px;
}

.reviews-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.review-card {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(30, 20, 24, 0.03);
  transition: transform 0.2s ease;
}

.review-card:hover {
  transform: translateY(-2px);
  border-color: #4285F4;
}

.review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.review-author-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #FFF;
  font-weight: 800;
  font-size: var(--fs-small);
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-author-name {
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--ink-dark);
}

.review-time {
  font-size: var(--fs-label);
  color: var(--ink-muted);
}

.review-stars-line {
  color: #F59E0B;
  font-size: var(--fs-small);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.review-body-text {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink-body);
}

.close-btn {
  background: var(--bg-cream);
  border: 1px solid var(--border-soft);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: var(--fs-lede);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--ink-dark);
}

.form-field input, .form-field select, .form-field textarea {
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--bg-cream);
  font-size: var(--fs-small);
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--rose-primary);
  background: #FFF;
}

.mpesa-checkout-box {
  background: #F0FDF4;
  border: 1.5px solid #86EFAC;
  border-radius: 14px;
  padding: 18px;
  margin: 16px 0;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--ink-dark);
  color: #FFF;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  font-size: var(--fs-small);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Clean Editorial Footer */
.site-footer {
  background: #191115;
  color: #D8C9D0;
  padding: 56px 0 28px;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Hide public customer footer in administrative & studio management modes */
body.admin-mode .site-footer,
body.admin-mode #site-footer {
  display: none !important;
}

/* ==================== SINGLE-ROW UNIFIED FOOTER ==================== */
.footer-single-row-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.22fr) minmax(180px, 0.88fr) minmax(480px, 2.7fr);
  gap: 16px;
  align-items: stretch; /* Forces equal matching height across all 3 columns */
  margin-bottom: 28px;
}

.footer-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

.footer-col-brand.footer-card {
  justify-content: flex-start;
}

.footer-col-brand .footer-brand-header {
  min-width: 0;
  width: 100%;
}

.footer-col-brand .footer-brand-header > div {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-col-brand .footer-brand-header h4 {
  font-size: var(--fs-lede);
  white-space: normal;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-col-brand .footer-brand-header span {
  font-size: var(--fs-micro);
  white-space: normal;
  line-height: 1.35;
  letter-spacing: 0.04em;
  display: block;
  margin: 0;
  word-break: normal;
  overflow-wrap: break-word;
}

.footer-col-brand .footer-bio-text {
  font-size: var(--fs-label);
  line-height: 1.45;
  margin-bottom: 12px;
  max-width: 100%;
}

.footer-col-brand .footer-social-pills {
  margin-top: auto; /* Pins social pills flush to the bottom */
  padding-top: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-col-brand .footer-social-chip {
  font-size: var(--fs-label);
  padding: 5px 9px;
  white-space: nowrap;
}

.footer-col-nav.footer-card {
  justify-content: flex-start;
}

.footer-col-nav .footer-heading {
  font-size: var(--fs-lede);
  white-space: nowrap;
  margin-bottom: 10px;
}

.footer-col-nav.footer-card .footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.footer-col-nav.footer-card .footer-links a {
  font-size: var(--fs-label);
  white-space: nowrap;
  line-height: 1.35;
}

.footer-col-studio-map {
  min-width: 0;
  width: 100%;
  height: 100%;
}

.footer-map-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  height: 100%;
  box-sizing: border-box;
}

.footer-map-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  gap: 6px;
}

.footer-map-info .hero-eyebrow {
  background: transparent;
  padding: 0;
  font-size: var(--fs-label);
  white-space: nowrap;
  margin-bottom: 0px;
}

.footer-map-title {
  font-family: var(--font-serif);
  color: #FFFFFF;
  font-size: var(--fs-body);
  line-height: 1.15;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-map-subtitle {
  font-family: var(--font-sans);
  color: #F4B8CE;
  font-size: var(--fs-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 4px;
  white-space: nowrap;
}

.footer-map-details-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-map-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.footer-map-detail-item .loc-icon {
  font-size: var(--fs-small);
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.footer-map-detail-item .footer-meta-label {
  font-size: var(--fs-label);
  white-space: nowrap;
  display: block;
  line-height: 1.1;
}

.footer-detail-text {
  margin: 0;
  font-size: var(--fs-label);
  color: #FFFFFF;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-detail-text strong {
  color: #FFFFFF;
  font-weight: 600;
}

.footer-detail-text a {
  color: #F3E8EE;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.footer-detail-text a:hover {
  color: #F4B8CE;
}

.footer-col-studio-map .location-map-embed-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  height: 100%;
  min-height: 180px;
  max-height: 290px;
  display: flex;
}

.footer-col-studio-map .location-map-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 1240px) {
  .footer-single-row-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-col-studio-map {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer-single-row-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .footer-map-card {
    grid-template-columns: 1fr;
    padding: 16px 14px;
    gap: 14px;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.95fr 1.35fr;
  gap: 36px;
  margin-bottom: 40px;
  align-items: start;
}

.footer-heading {
  font-family: var(--font-serif);
  color: #FFFFFF;
  font-size: var(--fs-lede);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
  height: 28px;
  display: flex;
  align-items: center;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  min-height: 54px;
  min-width: 0;
}

.footer-brand-header img {
  height: 44px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand-header > div {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand-header h4 {
  margin: 0;
  font-family: var(--font-serif);
  color: #FFFFFF;
  font-size: var(--fs-lede);
  line-height: 1.25;
}

.footer-brand-header span {
  display: block;
  font-size: var(--fs-micro);
  color: #F4B8CE;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0;
  white-space: normal;
  line-height: 1.35;
}

.footer-bio-text {
  font-size: var(--fs-small);
  line-height: 1.55;
  color: #B9A7B0;
  margin-bottom: 18px;
  max-width: 340px;
}

.footer-social-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-social-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: var(--fs-label);
  font-weight: 600;
  color: #F3E8EE;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-social-chip:hover {
  background: var(--rose-primary);
  border-color: #F4B8CE;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: var(--fs-small);
}

.footer-links a {
  color: #C9B7C0;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #FFFFFF;
  transform: translateX(3px);
}

/* Column 4: Contact & Details */
.footer-contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-meta-label {
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9A8690;
  font-weight: 700;
}

.footer-contact-val {
  font-size: var(--fs-small);
  color: #F3E8EE;
}

.footer-contact-val strong {
  color: #FFF;
  font-weight: 600;
  display: block;
}

.footer-gmap-btn {
  display: inline-block;
  margin-top: 2px;
  color: #60A5FA;
  font-size: var(--fs-label);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-gmap-btn:hover {
  color: #93C5FD;
  text-decoration: underline;
}

.footer-phone-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.footer-contact-val a {
  color: #F3E8EE;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.footer-contact-val a:hover {
  color: #F4B8CE;
}

.footer-sep {
  opacity: 0.45;
  font-size: var(--fs-label);
}

/* Lipa Na M-Pesa Official Box */
.footer-mpesa-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 6px 10px;
}

.footer-mpesa-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.footer-mpesa-tag {
  background: #059669;
  color: #FFF;
  font-size: var(--fs-label);
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.footer-mpesa-title {
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #A7F3D0;
  font-weight: 700;
}

.footer-mpesa-numbers {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mpesa-field {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.mpesa-label {
  font-size: var(--fs-label);
  color: #B9A7B0;
}

.mpesa-field strong {
  color: #FFFFFF;
  font-size: var(--fs-small);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.footer-mpesa-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.16);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: var(--fs-label);
  color: #9A8690;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: #B9A7B0;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-bottom-links a:hover {
  color: #FFF;
}
  font-size: var(--fs-label);
  color: #9A8690;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bottom-links a {
  color: #C9B7C0;
  font-weight: 600;
  transition: color 0.18s ease;
}

.footer-bottom-links a:hover {
  color: #FFFFFF;
}

/* ==================== VISUAL CMS UPLOADERS & SPLIT-SCREEN LIVE PREVIEW ==================== */
.admin-wide-container {
  max-width: 1540px;
}

.admin-cms-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.admin-cms-workspace.preview-hidden {
  grid-template-columns: minmax(0, 1fr); /* a plain 1fr cannot shrink below the wide orders table and let the panel grow past the phone screen */
}

.admin-cms-workspace.preview-hidden .admin-live-preview-dock {
  display: none;
}

.admin-live-preview-dock {
  position: sticky;
  top: 88px;
  background: #FFFFFF;
  border: 2px solid var(--border-soft);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.live-preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--ink-dark);
  color: #FFFFFF;
  gap: 10px;
  flex-wrap: wrap;
}

.live-preview-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
  display: inline-block;
}

.live-sub {
  font-size: var(--fs-label);
  color: #C9B7C0;
}

.live-preview-controls {
  display: flex;
  gap: 6px;
}

.preview-device-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: var(--fs-label);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preview-device-btn.active,
.preview-device-btn:hover {
  background: var(--rose-primary);
  border-color: #FFBDD3;
}

.live-preview-jumpbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-cream);
  border-bottom: 1px solid var(--border-soft);
  font-size: var(--fs-label);
  color: var(--ink-muted);
  flex-wrap: wrap;
}

.live-preview-jumpbar button {
  background: #FFF;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--ink-body);
  cursor: pointer;
}

.live-preview-jumpbar button:hover {
  border-color: var(--rose-primary);
  color: var(--rose-primary);
}

.live-preview-viewport-wrap {
  background: #EAE2E6;
  height: 75vh;
  min-height: 560px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow: hidden;
  transition: all 0.25s ease;
}

.live-preview-viewport-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #FFF;
  transition: width 0.25s ease;
}

.live-preview-viewport-wrap.mobile-mode {
  padding: 14px 0;
}

.live-preview-viewport-wrap.mobile-mode iframe {
  width: 390px;
  border-radius: 24px;
  border: 6px solid var(--ink-dark);
  box-shadow: var(--shadow-lg);
}

/* Friendly Visual Image Uploader Cards (No Tech / URL Links Needed) */
.cms-image-uploader-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #FFFFFF;
  border: 1.5px dashed var(--border-soft);
  border-radius: 12px;
  transition: all 0.18s ease;
}

.cms-image-uploader-card:hover,
.cms-image-uploader-card.dragover {
  border-color: var(--rose-primary);
  background: var(--rose-light);
}

.cms-uploader-thumb {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg-cream);
  border: 1px solid var(--border-soft);
  flex-shrink: 0;
}

.cms-uploader-thumb.logo-fit {
  object-fit: contain;
  padding: 6px;
  background: #FDF8F9;
}

.cms-uploader-thumb.dark-bg {
  background: var(--ink-dark);
}

.cms-uploader-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.cms-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 9px;
  background: var(--rose-light);
  color: var(--rose-primary);
  border: 1px solid rgba(142, 36, 77, 0.25);
  font-weight: 700;
  font-size: var(--fs-label);
  cursor: pointer;
  width: fit-content;
  transition: all 0.15s ease;
}

.cms-upload-btn:hover {
  background: var(--rose-primary);
  color: #FFFFFF;
}

.cms-upload-hint {
  font-size: var(--fs-label);
  color: var(--ink-muted);
}

/* Visual Gallery Grid in Product Editor */
.cms-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.cms-gallery-item {
  position: relative;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
  background: #FFF;
  display: flex;
  flex-direction: column;
}

.cms-gallery-item img {
  width: 100%;
  height: 115px;
  object-fit: cover;
}

.cms-gallery-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--rose-primary);
  color: #FFF;
  font-size: var(--fs-label);
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.cms-gallery-controls {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  background: var(--bg-cream);
  border-top: 1px solid var(--border-soft);
  gap: 4px;
}

.cms-gallery-controls button {
  font-size: var(--fs-label);
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
  background: #FFF;
  cursor: pointer;
}

.cms-gallery-add-tile {
  border: 2px dashed var(--rose-primary);
  border-radius: 12px;
  background: var(--rose-light);
  color: var(--rose-primary);
  min-height: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  text-align: center;
  font-weight: 700;
  font-size: var(--fs-label);
  cursor: pointer;
  transition: all 0.16s ease;
}

.cms-gallery-add-tile:hover {
  background: var(--rose-primary);
  color: #FFF;
}

/* Visual Row Editors for Variants, Colors & Bouquet Builder Items */
.cms-visual-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cms-visual-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-cream);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  flex-wrap: wrap;
}

.cms-visual-row img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-soft);
  background: #FFF;
}

/* ==================== SIMULATED INSTAGRAM PROFILE, STORIES & GALLERY ==================== */
.ig-feed-section {
  padding: 54px 0;
  border-top: 1px solid var(--border-soft);
}

.ig-simulator-shell {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.ig-profile-header {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
  flex-wrap: wrap;
}

.ig-avatar-ring {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(45deg, #F09433 0%, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888 100%);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.ig-avatar-ring:hover {
  transform: scale(1.04);
}

.ig-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  background: #FFF;
  border: 3px solid #FFF;
  padding: 4px;
}

.ig-profile-info {
  flex: 1;
  min-width: 260px;
}

.ig-handle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.ig-username {
  font-size: var(--fs-heading);
  font-weight: 800;
  color: var(--ink-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ig-verified-badge {
  background: #3897F0;
  color: #FFF;
  font-size: var(--fs-label);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.ig-follow-btn {
  background: #0095F6;
  color: #FFF;
  font-weight: 700;
  font-size: var(--fs-label);
  padding: 7px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ig-follow-btn:hover {
  background: #1877F2;
}

.ig-msg-btn {
  background: #EFEFEF;
  color: var(--ink-dark);
  font-weight: 700;
  font-size: var(--fs-label);
  padding: 7px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.ig-stats-row {
  display: flex;
  gap: 24px;
  margin-bottom: 10px;
  font-size: var(--fs-small);
}

.ig-bio-text {
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--ink-body);
}

/* Instagram Story Highlights Strip */
.ig-stories-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-soft);
}

.ig-story-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  background: none;
  border: none;
  transition: transform 0.2s ease;
}

.ig-story-bubble:hover {
  transform: translateY(-3px);
}

.ig-story-ring {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #F09433 0%, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888 100%);
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.2);
}

.ig-story-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FFF;
}

.ig-story-label {
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--ink-dark);
  text-align: center;
  white-space: nowrap;
}

/* Instagram 3x3 Feed Grid */
.ig-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 22px;
}

.ig-post-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #F4EAE4;
}

.ig-post-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.ig-post-tile:hover img {
  transform: scale(1.06);
}

.ig-post-tag-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(30, 20, 24, 0.76);
  color: #FFF;
  font-size: var(--fs-label);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.ig-post-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 24, 0.58);
  color: #FFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.22s ease;
  padding: 16px;
  text-align: center;
}

.ig-post-tile:hover .ig-post-overlay {
  opacity: 1;
}

.ig-post-counts {
  display: flex;
  gap: 18px;
  font-weight: 800;
  font-size: var(--fs-body);
}

/* Full-Screen Instagram Story Player Modal */
.ig-story-modal-frame {
  width: 100%;
  max-width: 420px;
  height: 84vh;
  max-height: 740px;
  background: #120C0E;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.65);
  color: #FFF;
}

.ig-story-progress-row {
  display: flex;
  gap: 5px;
  padding: 12px 14px 8px;
  z-index: 5;
}

.ig-story-seg {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  overflow: hidden;
}

.ig-story-seg-fill {
  height: 100%;
  background: #FFF;
  width: 0%;
  transition: width 0.25s linear;
}

.ig-story-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 10px;
  z-index: 5;
}

.ig-story-media-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.ig-story-media-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-story-nav-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 38%;
  z-index: 4;
  cursor: pointer;
}

.ig-story-nav-zone.left {
  left: 0;
}

.ig-story-nav-zone.right {
  right: 0;
}

.ig-story-caption-box {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 18px 18px;
  background: linear-gradient(transparent, rgba(18, 12, 14, 0.92) 45%);
  z-index: 5;
}

/* ==================== FAQ ACCORDION & PRIVACY POLICY ==================== */
.faq-privacy-section {
  padding: 36px 0 56px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--bg-cream);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-question-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-size: var(--fs-ui);
  color: var(--ink-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.faq-question-btn:hover {
  color: var(--rose-primary);
}

.faq-answer {
  padding: 0 16px 14px;
  font-size: var(--fs-small);
  color: var(--ink-body);
  line-height: 1.55;
  display: none;
}

.faq-item.open {
  background: #FFF;
  border-color: var(--rose-primary);
  box-shadow: var(--shadow-sm);
}

.faq-item.open .faq-answer {
  display: block;
}

.privacy-policy-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.privacy-block {
  padding: 12px 14px;
  background: var(--bg-cream);
  border-radius: 10px;
  border: 1px solid var(--border-soft);
}

.privacy-block h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--rose-primary);
}

.privacy-block p {
  font-size: var(--fs-label);
  color: var(--ink-body);
}

.contact-card-highlight {
  padding: 16px;
  border-radius: 14px;
  background: var(--rose-light);
  border: 1px solid rgba(142, 36, 77, 0.22);
}

.contact-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: var(--fs-label);
}

/* ==================== DEDICATED INSTAGRAM / TIKTOK VIEWS ==================== */
.btn-tiktok {
  background: #121212;
  color: #FFFFFF;
  border: 1.5px solid #25F4EE;
  box-shadow: 2px 2px 0px #FE2C55;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--fs-small);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-tiktok:hover {
  transform: translateY(-2px);
  background: #000000;
  box-shadow: 3px 3px 0px #FE2C55, -2px -2px 0px #25F4EE;
}

.social-page-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}

.social-switcher-pills {
  display: inline-flex;
  background: #FFF;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  gap: 4px;
}

.social-tab-pill {
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--ink-body);
  cursor: pointer;
  transition: all 0.2s ease;
}

.social-tab-pill.active {
  background: var(--rose-primary);
  color: #FFF;
  box-shadow: var(--shadow-sm);
}

/* Simulated TikTok Profile & Vertical 9:16 Video Feed */
.tiktok-simulator-shell {
  background: #121216;
  color: #F3F4F6;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.tiktok-profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
}

.tiktok-avatar-ring {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #25F4EE 0%, #FE2C55 100%);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.tiktok-avatar-ring:hover {
  transform: scale(1.05);
}

.tiktok-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  background: #FFF;
  border: 3px solid #121216;
  padding: 6px;
}

.tiktok-profile-info {
  flex: 1;
  min-width: 260px;
}

.tiktok-handle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tiktok-username {
  font-size: var(--fs-heading);
  font-weight: 800;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tiktok-follow-btn {
  background: #FE2C55;
  color: #FFF;
  font-weight: 700;
  font-size: var(--fs-small);
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.tiktok-follow-btn:hover {
  opacity: 0.9;
}

.tiktok-msg-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #FFF;
  font-weight: 700;
  font-size: var(--fs-label);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.tiktok-stats-row {
  display: flex;
  gap: 24px;
  margin-bottom: 10px;
  font-size: var(--fs-ui);
  color: #D1D5DB;
}

.tiktok-stats-row strong {
  color: #FFFFFF;
}

.tiktok-bio-text {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: #E5E7EB;
}

.tiktok-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 16px;
  padding-top: 22px;
}

.tiktok-reel-card {
  position: relative;
  aspect-ratio: 9 / 14;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #1F1F26;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tiktok-reel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(254, 44, 85, 0.25);
  border-color: #25F4EE;
}

.tiktok-reel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.tiktok-reel-card:hover img {
  transform: scale(1.06);
}

.tiktok-top-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(254, 44, 85, 0.92);
  color: #FFF;
  font-size: var(--fs-label);
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 2;
  max-width: calc(100% - 78px); /* keeps a long tag clear of the duration pill */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tiktok-duration-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #FFF;
  font-size: var(--fs-label);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
}

.tiktok-play-center {
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-name);
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
  z-index: 2;
}
.tiktok-play-center .icon { margin: 0 0 0 3px; } /* the triangle looks centred when nudged right */

.tiktok-reel-card:hover .tiktok-play-center {
  background: #FE2C55;
  border-color: #FE2C55;
  transform: translate(-50%, -50%) scale(1.1);
}

.tiktok-bottom-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 12px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.92) 48%);
  color: #FFF;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.tiktok-reel-caption {
  font-size: var(--fs-label);
  line-height: 1.35;
  color: #F3F4F6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tiktok-sound-line {
  font-size: var(--fs-label);
  color: #25F4EE;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tiktok-metrics-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-label);
  font-weight: 700;
  color: #FFF;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* Dedicated Bottom Footer Page Links Bar */
.footer-dedicated-pages-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 22px;
  margin-bottom: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
}

.footer-pages-label {
  font-size: var(--fs-small);
  font-weight: 700;
  color: #FFBDD3;
  letter-spacing: 0.03em;
}

.footer-pages-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-page-pill {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.footer-page-pill:hover {
  background: var(--rose-primary);
  border-color: #FFBDD3;
  transform: translateY(-2px);
}

/* Official Live Instagram & TikTok Embed Panels */
.live-embed-panel {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.live-embed-panel.dark {
  background: #18181F;
  border-color: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}

.live-embed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}

.live-embed-panel.dark .live-embed-header {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.live-embed-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-micro);
  font-weight: 800;
  color: #065F46;
  background: #D1FAE5;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.live-iframe-box {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: #FAFAFA;
}

.live-embed-panel.dark .live-iframe-box {
  border-color: rgba(255, 255, 255, 0.15);
  background: #0F0F13;
}

@media (max-width: 1180px) {
  .admin-cms-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-live-preview-dock {
    position: static;
  }
}

@media (max-width: 1080px) {
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
  }
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 0;
  }
  .main-nav {
    display: none;
    order: 4;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-top: 10px;
    border-top: 1px solid var(--border-soft);
  }
  .main-nav.open {
    display: flex;
  }
  .hero-compact-banner {
    grid-template-columns: 1fr;
  }
  .hero-compact-right {
    align-items: flex-start;
  }
}

@media (max-width: 960px) {
  .builder-layout, .dual-info-grid, .footer-grid, .footer-grid-revamped {
    grid-template-columns: 1fr;
  }
  .ig-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid, .contact-details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .main-nav.open .mobile-only-nav {
    display: inline-flex;
  }
}

/* Finding 5: Phone-specific responsive styles around 768px */
@media (max-width: 768px) {
  .site-header {
    padding: 2px 0;
  }
  .header-inner {
    min-height: 64px;
    padding: 6px 0;
  }
  .brand-logo img {
    height: 38px;
  }
  .brand-title {
    font-size: var(--fs-lede);
  }
  .brand-sub {
    font-size: var(--fs-label);
  }
  .mobile-menu-toggle {
    min-height: 44px;
    min-width: 44px;
    padding: 8px 14px;
  }
  .cart-btn {
    min-height: 44px;
    padding: 8px 14px;
  }
  .announcement-bar {
    font-size: var(--fs-label);
    padding: 6px 12px;
    line-height: 1.35;
  }

  /* Compact Editorial Hero Mobile (Finding 1 & 5) */
  .editorial-hero {
    padding: 10px 0 8px;
  }
  .hero-editorial-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 8px 4px;
    border: none;
    background: transparent;
    box-shadow: none;
    min-height: auto;
    max-height: none;
  }
  .hero-editorial-heading {
    font-size: var(--fs-heading);
    line-height: 1.15;
    margin-bottom: 8px;
  }
  .hero-editorial-desc {
    font-size: var(--fs-small);
    margin-bottom: 16px;
    line-height: 1.45;
  }
  .hero-editorial-actions {
    display: flex;
    gap: 10px;
    width: 100%;
  }
  .btn-hero-primary, .btn-hero-secondary {
    flex: 1;
    justify-content: center;
    padding: 11px 14px;
    font-size: var(--fs-small);
    min-height: 44px;
  }
  .hero-photo-wrap {
    max-width: 100%;
    max-height: 240px;
    aspect-ratio: 16 / 9;
    border: none;
    box-shadow: none;
    -webkit-mask-image: radial-gradient(ellipse 94% 94% at 50% 50%, #000 68%, transparent 100%);
    mask-image: radial-gradient(ellipse 94% 94% at 50% 50%, #000 68%, transparent 100%);
  }

  .hero-micro-points {
    font-size: var(--fs-label);
    gap: 6px;
    margin-top: 10px;
  }

  /* Product Catalog Grid on Mobile: Clean 2 columns with proportional cards */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
  }
  .product-body {
    padding: 10px 12px 12px;
  }
  .product-title {
    font-size: var(--fs-body);
    margin-bottom: 2px;
  }
  .product-desc {
    display: none; /* Hide dense descriptor on mobile grid to prevent excessively tall cards */
  }
  .product-footer {
    padding-top: 8px;
  }
  .price-amount {
    font-size: var(--fs-ui);
  }
  .add-to-cart-btn {
    padding: 7px 11px;
    font-size: var(--fs-label);
    min-height: 38px;
  }
  .catalog-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .search-sort-group {
    width: 100%;
    flex-direction: column;
  }
  .input-search, .select-sort {
    width: 100%;
  }
}

/* Finding 5: Phone-specific responsive styles around 480px and below */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }
  .hero-editorial-heading {
    font-size: var(--fs-heading);
  }
  .hero-editorial-actions {
    flex-direction: column;
  }
  .btn-hero-primary, .btn-hero-secondary {
    width: 100%;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .product-body {
    padding: 8px 10px 10px;
  }
  .product-title {
    font-size: var(--fs-ui);
  }
  .price-amount {
    font-size: var(--fs-small);
  }
  .add-to-cart-btn {
    padding: 6px 8px;
    font-size: var(--fs-label);
    min-height: 36px;
  }
  .quick-view-btn {
    width: 36px;
    height: 36px;
    font-size: var(--fs-label);
  }
  .cart-drawer {
    width: 100%;
    max-width: 100%;
  }
}

/* =========================================================
   CUSTOM BOUQUET BUILDER PALETTE SWATCHES
   ========================================================= */
.builder-palette-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.builder-palette-swatch {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  position: relative;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  outline: none;
  touch-action: manipulation;
}

.builder-palette-swatch:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--rose-primary), 0 4px 8px rgba(0, 0, 0, 0.14);
}

.builder-palette-swatch.selected {
  transform: scale(1.18);
  box-shadow: 0 0 0 2.5px var(--rose-primary), 0 4px 10px rgba(142, 36, 77, 0.35);
  border-color: #FFFFFF;
}

.builder-palette-swatch.is-light {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.08);
}

.builder-palette-swatch.is-light.selected {
  box-shadow: 0 0 0 2.5px var(--rose-primary), 0 4px 10px rgba(142, 36, 77, 0.3);
}

.palette-swatch-check {
  font-size: var(--fs-small);
  font-weight: 900;
  line-height: 1;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 3px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

.builder-palette-swatch.is-light .palette-swatch-check {
  color: #1E1418;
  text-shadow: none;
}

/* =========================================================
   WHOLESALE FLOWERS & B2B COMMERCIAL SUPPLY SECTION
   ========================================================= */
.wholesale-section {
  padding: 72px 0 80px;
  background: linear-gradient(180deg, var(--bg-cream) 0%, #F5ECE4 100%);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.wholesale-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: flex-start;
}

.wholesale-intro {
  display: flex;
  flex-direction: column;
}

.wholesale-perks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 28px;
}

.wholesale-perk-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.7);
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.wholesale-perk-icon {
  font-size: var(--fs-heading);
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.wholesale-perk-item strong {
  display: block;
  font-size: var(--fs-small);
  color: var(--ink-dark);
  margin-bottom: 3px;
}

.wholesale-perk-item p {
  font-size: var(--fs-label);
  color: var(--ink-muted);
  line-height: 1.4;
  margin: 0;
}

.wholesale-direct-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn-whatsapp-wholesale {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0F7D46; /* WhatsApp's #25D366 is only 2:1 against white text; this green is 5:1 */
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 10px rgba(15, 125, 70, 0.25);
}

.btn-whatsapp-wholesale:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 125, 70, 0.35);
  color: #FFFFFF;
}

.btn-call-wholesale {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  color: var(--ink-dark);
  border: 1.5px solid var(--border-soft);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-call-wholesale:hover {
  border-color: var(--ink-dark);
  color: var(--ink-dark);
}

.wholesale-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-soft);
  box-shadow: 0 10px 30px rgba(30, 20, 24, 0.05);
  padding: 32px;
}

.wholesale-card-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}

.wholesale-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 6px;
}

.whl-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-label);
  color: var(--ink-body);
  background: var(--bg-cream);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
  cursor: pointer;
  user-select: none;
}

.whl-check-item input[type="checkbox"] {
  accent-color: var(--rose-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.wholesale-success-box {
  background: #F0FDF4;
  border: 1.5px solid #BBF7D0;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.whl-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--forest-green);
  color: #FFFFFF;
  font-size: var(--fs-heading);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 4px 12px rgba(46, 79, 68, 0.25);
}

.whl-success-ref-pill {
  display: inline-block;
  background: #DCFCE7;
  color: #166534;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: var(--fs-label);
  margin: 10px 0;
}

@media (max-width: 900px) {
  .wholesale-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .wholesale-perks-grid {
    grid-template-columns: 1fr;
  }
  .wholesale-checkbox-grid {
    grid-template-columns: 1fr;
  }
  .wholesale-card {
    padding: 20px 16px;
  }
}

/* =========================================================
   STUDIO LOCATION & GOOGLE MAPS SECTION
   ========================================================= */
.location-map-section {
  padding: 56px 0 72px;
  background: var(--bg-cream);
}

.location-map-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 10px 30px rgba(30, 20, 24, 0.05);
}

.location-details-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0 24px;
}

.location-detail-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.loc-icon {
  font-size: var(--fs-name);
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.location-detail-item strong {
  display: block;
  font-size: var(--fs-ui);
  color: var(--ink-dark);
  margin-bottom: 3px;
}

.location-detail-item p {
  font-size: var(--fs-label);
  color: var(--ink-muted);
  line-height: 1.45;
  margin: 0;
}

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

.location-map-embed-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--border-soft);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.location-map-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--ink-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.location-map-badge a {
  color: #1A73E8;
  text-decoration: underline;
  font-weight: 600;
}

@media (max-width: 900px) {
  .location-map-card {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }
}

/* =========================================================
   B2B QUOTATION, INVOICING & LEADS STYLES
   ========================================================= */
.inv-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: var(--fs-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.inv-badge-paid { background: #DCFCE7; color: #15803D; }
.inv-badge-partial { background: #FEF08A; color: #854D0E; }
.inv-badge-sent { background: #DBEAFE; color: #1D4ED8; }
.inv-badge-draft { background: #F3F4F6; color: #4B5563; }
.inv-badge-lead-new { background: #EDE9FE; color: #6D28D9; }
.inv-badge-lead-quoted { background: #E0E7FF; color: #4338CA; }

.invoice-paper-view {
  background: #FFF;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 32px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.invoice-paper-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid var(--bg-cream);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: var(--fs-small);
}

.invoice-table th {
  background: var(--bg-cream);
  text-align: left;
  padding: 8px 12px;
  font-size: var(--fs-micro);
  color: var(--ink-muted);
  text-transform: uppercase;
}

.invoice-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
}

.invoice-totals-box {
  margin-left: auto;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
}

/* ==================== UPCOMING DELIVERIES DISPATCH BOARD ==================== */
.upcoming-deliveries-board {
  background: #FFFDF9;
  border: 1px solid #FDE68A;
  border-left: 5px solid #F59E0B;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 14px 18px 0;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
}

.upcoming-board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.delivery-count-chip {
  font-size: var(--fs-label);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #FEF3C7;
  color: #92400E;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.delivery-count-chip.alert {
  background: #FEE2E2;
  color: #B91C1C;
  animation: pulse-alert 2s infinite;
}

@keyframes pulse-alert {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

.delivery-count-chip.highlight {
  background: #E0E7FF;
  color: #3730A3;
}

.upcoming-deliveries-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.upcoming-delivery-pill {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr); /* same left column on every card, so the details line up (320 fits "Midday Slot (11:00 AM – 2:00 PM)" and the status chip on one line) */
  align-items: start;
  gap: 8px 18px;
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.upcoming-delivery-pill.due-today {
  border-left: 4px solid #EF4444;
  background: #FFFBFB;
}

.upcoming-delivery-pill.due-tomorrow {
  border-left: 4px solid #3B82F6;
}

.upcoming-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}

/* the time slot always has its own line, so the status chip lands on the same line on every card */
.upcoming-slot {
  flex: 1 0 100%;
  color: var(--ink-muted);
  font-size: var(--fs-label);
}

.due-badge {
  font-size: var(--fs-label);
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.today-badge {
  background: #FEE2E2;
  color: #B91C1C;
}

.tomorrow-badge {
  background: #DBEAFE;
  color: #1E40AF;
}

.upcoming-details {
  flex: 1;
  min-width: 200px;
}

.upcoming-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 680px) {
  .upcoming-deliveries-board { margin: 10px 6px 0; padding: 10px; border-left-width: 4px; } /* less nesting padding: the cards get the width */
  .upcoming-delivery-pill { grid-template-columns: minmax(0, 1fr); padding: 10px; }
  .btn-cal-sync, .btn-wa-dispatch, .btn-quick-advance { min-height: 40px; }
  .wide-only { display: none; } /* "Add to Calendar" so the two tool buttons share a row */
}

.btn-cal-sync {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--ink-dark);
  background: #FFF;
  border: 1px solid var(--border-soft);
  padding: 7px 11px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-cal-sync:hover {
  background: var(--bg-cream);
  border-color: var(--ink-muted);
}

.btn-wa-dispatch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--ink-dark);
  background: #FFF;
  border: 1px solid var(--border-soft);
  padding: 7px 11px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-wa-dispatch:hover {
  background: var(--bg-cream);
  border-color: var(--ink-muted);
}

.btn-quick-advance {
  border: none;
  font-size: var(--fs-label);
  font-weight: 700;
  color: #FFF;
  background: var(--rose-primary);
  padding: 7px 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn-quick-advance:hover {
  opacity: 0.9;
}

.btn-quick-advance:disabled {
  background: #E2E8F0;
  color: #64748B;
  cursor: not-allowed;
  opacity: 1;
}

/* ==================== ADMIN TOP MODULE SWITCHER ==================== */
.admin-module-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.admin-module-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 2px solid var(--border-soft);
  background: #FFFFFF;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(30, 20, 24, 0.04);
}

.admin-module-btn .module-icon {
  font-size: var(--fs-title);
  line-height: 1;
  flex-shrink: 0;
}

.admin-module-btn .module-info strong {
  display: block;
  font-size: var(--fs-body);
  font-weight: 800;
  color: var(--ink-dark);
  line-height: 1.25;
}

.admin-module-btn .module-info .module-sub {
  display: block;
  font-size: var(--fs-label);
  color: var(--ink-muted);
  margin-top: 4px;
  line-height: 1.35;
}

.admin-module-btn:hover {
  border-color: var(--rose-primary);
  background: #FFFDFE;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(142, 36, 77, 0.08);
}

.admin-module-btn.active {
  border-color: var(--rose-primary);
  background: #FFF5F8;
  box-shadow: 0 4px 16px rgba(142, 36, 77, 0.12);
}

.admin-module-btn.active .module-info strong {
  color: var(--rose-primary);
}

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

/* ==================== A4 INVOICE & QUOTATION PRINT ENGINE ==================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 8mm 12mm 8mm 12mm;
  }

  html, body {
    width: 210mm !important;
    height: auto !important;
    background: #FFFFFF !important;
    color: #1E1418 !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Hide absolutely everything on the webpage */
  body * {
    visibility: hidden !important;
  }

  /* Expose ONLY the invoice modal container and document contents */
  #view-invoice-modal-backdrop,
  #view-invoice-modal-backdrop * {
    visibility: visible !important;
  }

  #view-invoice-modal-backdrop {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    height: auto !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    box-shadow: none !important;
    overflow: visible !important;
    z-index: 999999 !important;
  }

  #view-invoice-modal-content {
    position: static !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
  }

  /* Completely suppress screen-only elements */
  .no-print,
  .invoice-modal-toolbar,
  .close-btn {
    display: none !important;
  }

  /* A4 Paper View */
  .invoice-paper-view {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: #FFFFFF !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
    font-size: 8.5pt !important;
    line-height: 1.35 !important;
  }

  .invoice-paper-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    border-bottom: 2px solid #8E244D !important;
    padding-bottom: 8px !important;
    margin-bottom: 12px !important;
  }

  .invoice-paper-header img {
    height: 48px !important;
    width: auto !important;
    display: block !important;
  }

  .invoice-paper-header h2 {
    font-size: var(--fs-heading) !important;
    margin: 0 0 2px !important;
    color: #8E244D !important;
  }

  .invoice-details-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
  }

  .invoice-details-card {
    background: #FAF6F2 !important;
    border: 1px solid #EFE6E0 !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-size: 8pt !important;
    -webkit-print-color-adjust: exact !important;
  }

  .invoice-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 10px 0 !important;
    font-size: 8pt !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .invoice-table th {
    background: #F4EAE4 !important;
    color: #4A3B43 !important;
    padding: 5px 8px !important;
    font-size: 7.5pt !important;
    border-bottom: 1.5px solid #D5C2CC !important;
    -webkit-print-color-adjust: exact !important;
  }

  .invoice-table td {
    padding: 5px 8px !important;
    border-bottom: 1px solid #E5D7DE !important;
  }

  .invoice-totals-box {
    width: 240px !important;
    margin-left: auto !important;
    font-size: 8pt !important;
    padding-top: 6px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .invoice-instructions-box {
    margin-top: 12px !important;
    padding: 8px 12px !important;
    background: #FAF6F2 !important;
    border: 1px solid #EFE6E0 !important;
    border-radius: 6px !important;
    font-size: 7.5pt !important;
    line-height: 1.35 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    -webkit-print-color-adjust: exact !important;
  }
}

/* ==========================================
   BALANCE SHEET & BANK RECONCILIATION STYLES
   ========================================== */
.balancesheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 16px 0;
}

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

.balancesheet-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-soft);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.balancesheet-card.assets-card {
  border-top: 4px solid #059669;
}

.balancesheet-card.liab-card {
  border-top: 4px solid #DC2626;
}

.balancesheet-section-title {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--ink-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 16px 0;
}

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

.recon-box {
  background: #FFFFFF;
  border: 1.5px solid var(--border-soft);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.recon-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: var(--fs-label);
  font-weight: 700;
}
.recon-badge.matched {
  background: #DCFCE7;
  color: #166534;
}
.recon-badge.unmatched {
  background: #FEF3C7;
  color: #92400E;
}
.recon-badge.credit {
  background: #EFF6FF;
  color: #1D4ED8;
}
.recon-badge.debit {
  background: #FEE2E2;
  color: #991B1B;
}

/* ==========================================================================
   STUDIO PHOTO LAB & WATERMARK MODULE (4:5 PORTRAIT & WARM ATELIER CREAM)
   ========================================================================== */
.photolab-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.photolab-nav-tabs {
  display: flex;
  gap: 10px;
  background: #FFFFFF;
  padding: 8px;
  border-radius: 12px;
  border: 1.5px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.photolab-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-size: var(--fs-small);
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: var(--ink-muted);
  transition: all 0.2s ease;
}

.photolab-tab-btn:hover {
  background: var(--bg-cream);
  color: var(--ink-dark);
}

.photolab-tab-btn.active {
  background: var(--rose-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(142, 36, 77, 0.24);
}

.photolab-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 380px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 980px) {
  .photolab-workspace {
    grid-template-columns: 1fr;
  }
}

.photolab-canvas-viewport {
  background: #F1ECE6;
  background-image: 
    linear-gradient(45deg, #E8E2DA 25%, transparent 25%), 
    linear-gradient(-45deg, #E8E2DA 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #E8E2DA 75%), 
    linear-gradient(-45deg, transparent 75%, #E8E2DA 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  border: 1.5px solid var(--border-soft);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 520px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
}

.photolab-canvas-card {
  max-width: 420px;
  width: 100%;
  aspect-ratio: 4 / 5;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
  border-radius: 12px;
  overflow: hidden;
  background: #FFFDF9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#photolab-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.photolab-canvas-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: var(--fs-label);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.photolab-controls-dock {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.photolab-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-soft);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.photolab-card-title {
  font-size: var(--fs-ui);
  font-weight: 800;
  color: var(--ink-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.photolab-btn-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.photolab-pill-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: #FFFFFF;
  font-size: var(--fs-label);
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-dark);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.photolab-pill-btn:hover {
  background: var(--bg-cream);
  border-color: var(--rose-primary);
}

.photolab-pill-btn.active {
  background: #FDF2F4;
  border-color: var(--rose-primary);
  color: var(--rose-primary);
}

/* 9-Point Watermark Position Grid */
.photolab-pos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 140px;
}

.photolab-pos-cell {
  aspect-ratio: 1;
  border: 1px solid var(--border-soft);
  background: #F8FAFC;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-label);
  transition: all 0.15s ease;
}

.photolab-pos-cell:hover {
  background: #E2E8F0;
}

.photolab-pos-cell.active {
  background: var(--rose-primary);
  color: #FFFFFF;
  border-color: var(--rose-primary);
  box-shadow: 0 2px 6px rgba(142, 36, 77, 0.3);
}

/* Bulk Watermark Dropzone */
.bulk-dropzone {
  border: 2px dashed #CBD5E1;
  border-radius: 16px;
  padding: 36px 20px;
  text-align: center;
  background: #F8FAFC;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bulk-dropzone:hover, .bulk-dropzone.dragover {
  border-color: var(--rose-primary);
  background: #FFFDF9;
}

.bulk-dropzone-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FDF2F4;
  color: var(--rose-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-title);
  margin-bottom: 4px;
}

.bulk-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.bulk-result-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.bulk-result-thumb {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #FFFDF9;
  object-fit: cover;
  display: block;
}

.bulk-result-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.bulk-result-title {
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--ink-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bulk-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0 6px;
}

.bulk-progress-bar-fill {
  height: 100%;
  background: var(--forest-green);
  transition: width 0.3s ease;
}

/* Quick New Product & Color Tag Pills in Photo Lab */
.quick-new-prod-box {
  background: #FFFDF9;
  border: 1.5px solid var(--rose-primary);
  border-radius: 12px;
  padding: 14px;
  margin-top: 10px;
  box-shadow: 0 4px 14px rgba(142, 36, 77, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-color-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.color-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--border-soft);
  background: #FFFFFF;
  font-size: var(--fs-label);
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-dark);
  transition: all 0.15s ease;
}

.color-tag-pill:hover {
  border-color: var(--rose-primary);
  background: var(--bg-cream);
}

.color-tag-pill.active {
  background: #FDF2F4;
  border-color: var(--rose-primary);
  color: var(--rose-primary);
  box-shadow: 0 0 0 2px rgba(142, 36, 77, 0.2);
}

.color-tag-pill .color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: inline-block;
}

.photolab-rmbg-controls {
  background: #F0FDF4;
  border: 1.5px solid #BBF7D0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 10px;
}






/* =========================================================
   PHONE POLISH
   ========================================================= */

/* The builder's single column was a plain 1fr track, which cannot shrink below its widest content;
   it made the whole page ~100px wider than a phone (sideways scrolling). */
@media (max-width: 960px) {
  .builder-layout, .dual-info-grid, .footer-grid, .footer-grid-revamped, .form-grid, .contact-details-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .builder-steps, .builder-step-card { min-width: 0; }
}
@media (max-width: 900px) {
  .wholesale-wrapper, .location-map-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .footer-single-row-grid, .footer-map-card { grid-template-columns: minmax(0, 1fr); }
}

/* Sticky bag bar: phones only, shown by app.updateMobileBagBar() once the bag has items */
.mobile-bag-bar { display: none; }
@media (max-width: 680px) {
  .mobile-bag-bar.visible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 200; /* under the checkout / quick view overlays (300) and the bag drawer (490) */
    padding: 13px 16px;
    border: none;
    border-radius: 14px;
    background: var(--rose-primary);
    color: #FFF;
    font: inherit;
    font-size: var(--fs-small);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(142, 36, 77, 0.35);
  }
  body.has-bag-bar { padding-bottom: 80px; }
}

/* Quick view's phone layout was also a plain 1fr track (the existing rule is !important, so this one has to be too) */
@media (max-width: 680px) {
  .quickview-grid { grid-template-columns: minmax(0, 1fr) !important; }
}
/* 320-360px phones: let the pay button's label wrap instead of running past the edge */
@media (max-width: 380px) {
  .chk-actions .btn-primary { white-space: normal; font-size: var(--fs-label) !important; line-height: 1.2; }
}

@media (max-width: 480px) {
  /* Header on one row: logo and name on the left, Menu and Bag as icons on the right */
  .header-inner { min-height: 0; gap: 8px; padding: 6px 14px; } /* 14px = the page gutter; 0 here pushed the logo and Bag to the screen edges */
  .brand-logo { gap: 8px; min-width: 0; }
  .brand-logo img { height: 34px; }
  .brand-title { font-size: var(--fs-body); }
  .brand-sub { display: none; }
  .header-actions { display: flex; gap: 6px; flex-shrink: 0; }
  .btn-label { display: none; }
  .mobile-menu-toggle, .cart-btn { min-width: 44px; justify-content: center; padding: 8px 12px; }

  /* Shorter hero so products are on the first screen: buttons side by side, smaller picture */
  .editorial-hero { padding: 4px 0; }
  .hero-editorial-card { gap: 6px; padding: 4px 0; }
  .hero-editorial-desc { margin-bottom: 10px; }
  .hero-editorial-actions { flex-direction: row; gap: 8px; }
  .btn-hero-primary, .btn-hero-secondary { width: auto; flex: 1; padding: 10px 8px; font-size: var(--fs-label); }
  .hero-photo-wrap { aspect-ratio: auto; max-height: 136px; }
  .hero-photo-img { height: 136px; width: auto; max-width: 100%; margin: 0 auto; filter: drop-shadow(0 8px 12px rgba(50, 30, 40, 0.16)); } /* the desktop shadow (22px down, 32px blur) was sized for a 450px image and showed as a box around this small one */

  /* Catalog intro: title, then search and sort on one row */
  #catalog-title { font-size: var(--fs-name) !important; }
  #catalog-subtitle { display: none; }
  .search-sort-group { flex-direction: row; gap: 8px; }
  .search-sort-group .input-search { flex: 1 1 0; min-width: 0; width: auto; }
  .search-sort-group .select-sort { flex: 0 0 40%; min-width: 0; width: auto; text-overflow: ellipsis; }

  /* Small phones (320px): long button labels wrap instead of running off the screen; the zones table gets room and scrolls inside its panel if needed */
  .btn-primary, .btn-secondary { max-width: 100%; white-space: normal; }
  .info-panel { padding: 16px; overflow-x: auto; }
  .zones-table { font-size: var(--fs-label); }
  .zones-table th, .zones-table td { padding: 8px 6px; }

  /* Instagram / TikTok pages: the tab switcher and TikTok button fit a 320px screen */
  .social-switcher-pills { display: flex; }
  .social-tab-pill { flex: 1; padding: 8px 10px; }
  .btn-tiktok { max-width: 100%; white-space: normal; padding: 10px 16px; }

  /* Product cards: price above a full-width button (a side-by-side row was clipped), badge never runs under the quick-view icon */
  .product-cat-row { display: none; } /* the category line is only for wider screens */
  .product-footer { flex-direction: column; align-items: stretch; gap: 6px; }
  .product-footer .add-to-cart-btn { width: 100%; }
  /* Badge: sentence case so "Customer favourite" fits, and up to two lines before it is cut; it never runs under the quick view icon */
  .product-badge {
    max-width: calc(100% - 62px);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.2;
    font-size: var(--fs-label);
    padding: 5px 10px;
    border-radius: 12px;
  }
  .product-footer .add-to-cart-btn { min-height: 42px; }
  .price-block { flex-direction: row; align-items: baseline; gap: 5px; } /* stacked under the badge-height photo it reads better on one line: "From 2,250 KES" */
  .occasion-pill-btn { padding-block: 10px; }
  .qv-photo .product-badge { max-width: calc(100% - 20px); } /* no quick view icon on the photo here */
}

/* iOS zooms the page when a field under 16px gets focus; on phones every shop field is 16px so the layout stays put */
@media (max-width: 480px) {
  body:not(.admin-mode) input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),
  body:not(.admin-mode) select,
  body:not(.admin-mode) textarea { font-size: var(--fs-body) !important; }
}

/* =========================================================
   ADMIN: TODAY PAGE
   ========================================================= */
/* Cards flow down the columns (in order) instead of sitting in rows, so a short card never leaves a hole beside a tall one */
.today-grid {
  columns: 320px;
  column-gap: 14px;
}
.today-card {
  break-inside: avoid;
  margin-bottom: 14px;
  background: #FFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.today-card header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.today-card h3 { font-size: var(--fs-body); margin: 0; }
.today-count {
  min-width: 28px;
  text-align: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: #FEF3C7;
  color: #92400E;
  font-weight: 800;
  font-size: var(--fs-small);
}
.today-count.zero { background: #DCFCE7; color: #166534; }
.today-card ul { list-style: none; margin: 0; padding: 0; }
.today-card li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-top: 1px solid #F0E8E2; }
.today-card li:first-child { border-top: none; }
.today-when { flex: 0 0 84px; font-size: var(--fs-label); font-weight: 700; color: var(--rose-primary); white-space: nowrap; }
.today-when em { display: block; font-style: normal; font-size: var(--fs-micro); letter-spacing: 0.06em; text-transform: uppercase; color: #B91C1C; }
.today-card li div { min-width: 0; flex: 1; }
.today-card li strong, .today-card li small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today-card li strong { font-size: var(--fs-small); }
.today-card li small { font-size: var(--fs-label); color: var(--ink-muted); }
.today-empty, .today-more, .today-note { font-size: var(--fs-label); color: var(--ink-muted); margin: 0; }
.today-card .btn-secondary { align-self: flex-start; margin-top: auto; padding: 6px 12px; font-size: var(--fs-label); }

/* Today page: the money summary is one compact row so the action cards are visible without scrolling */
#admin-kpi-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px !important; }
#admin-kpi-grid .kpi-card { padding: 12px 16px; }
#admin-kpi-grid .kpi-card strong { font-size: var(--fs-name); white-space: nowrap; } /* "23,550 KES" stays on one line */

/* Stats cards on a phone: two across instead of five full-width cards pushing everything down */
@media (max-width: 680px) {
  /* On a phone the action cards come first and the money summary follows them */
  #admin-cms-workspace { order: 1; }
  #admin-kpi-grid { order: 2; margin: 16px 0 0 !important; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi-card { padding: 12px; }
  .kpi-card strong { font-size: var(--fs-lede); }
}

/* The admin portal is a full-screen app: no public announcement bar or header above it */
body.admin-fullscreen .announcement-bar,
body.admin-fullscreen .site-header { display: none !important; }
body.admin-fullscreen .admin-section { padding: 0; }
body.admin-fullscreen .admin-shell { min-height: 100vh; margin-top: 0; border: none; border-radius: 0; box-shadow: none; }

/* Orders queue on a phone: each order is a card (column headings become small labels) instead of a 910px-wide table */
@media (max-width: 680px) {
  #admin-orders-panel table.admin-table, #admin-orders-panel table.admin-table tbody,
  #admin-orders-panel table.admin-table tr, #admin-orders-panel table.admin-table td { display: block; width: 100%; box-sizing: border-box; }
  #admin-orders-panel table.admin-table thead { display: none; }
  #admin-orders-panel table.admin-table tbody tr {
    width: auto;
    margin: 10px;
    padding: 6px 14px;
    background: #FFF;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
  }
  #admin-orders-panel table.admin-table td { padding: 10px 0; border: none; border-top: 1px dashed #F0E8E2; }
  #admin-orders-panel table.admin-table td:first-child { border-top: none; }
  #admin-orders-panel table.admin-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    font-size: var(--fs-micro);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
  }
}

/* Hero: same-day countdown and starting price */
.hero-deadline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hero-deadline span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: var(--fs-label);
  font-weight: 700;
}
.hero-deadline .hero-deadline-open { background: #FEF3C7; color: #92400E; }
.hero-deadline .hero-deadline-open.urgent { background: #FEE2E2; color: #991B1B; }
.hero-deadline .hero-deadline-closed { background: var(--bg-cream); color: var(--ink-muted); border: 1px solid var(--border-soft); }
.hero-deadline .hero-from { background: var(--sage-light); color: var(--sage-green); }
@media (max-width: 480px) {
  .hero-deadline { margin-top: 8px; }
  .hero-deadline span { font-size: var(--fs-label); padding: 4px 10px; }
  .hero-deadline .hero-from { display: none; } /* phones: prices are in the product cards right below */
}

/* =========================================================
   TYPE: how the scale is used on the storefront
   Headings are Fraunces 600; everything else is Figtree. Sizes come from the --fs-* tokens at the top of this file.
   ========================================================= */
h1, h2, h3, h4, .serif { font-weight: 600; }
.hero-editorial-heading, .section-title, .product-title { font-weight: 600; } /* these classes set their own bold; Fraunces looks best at 600 */
.nav-link { font-size: var(--fs-small); }
.hero-editorial-heading { font-size: var(--fs-display); line-height: 1.06; letter-spacing: -0.015em; }
.hero-editorial-desc { font-size: var(--fs-lede); line-height: 1.55; }
.btn-hero-primary, .btn-hero-secondary { font-size: var(--fs-body); }
.section-title { font-size: var(--fs-title); letter-spacing: -0.01em; }
.section-subtitle { font-size: var(--fs-body); }
.occasion-pill-btn { font-size: var(--fs-ui); }
.product-title { font-size: var(--fs-name); }
.price-amount { font-size: var(--fs-lede); font-weight: 700; }
.add-to-cart-btn { font-size: var(--fs-small); }
.product-cat-row { font-size: var(--fs-label); text-transform: none; letter-spacing: 0; } /* sentence case at 13px reads better than 11px capitals */
@media (max-width: 480px) {
  .product-title { font-size: var(--fs-body); }   /* 16px on a phone card (it was 14.7px in a thin display face) */
  .price-amount { font-size: var(--fs-body); }
  .add-to-cart-btn { font-size: var(--fs-label); }
  #catalog-title { font-size: var(--fs-name) !important; }
  .hero-editorial-desc { font-size: var(--fs-body); margin-bottom: 10px; }       /* keep the hero short on a phone */
  .btn-hero-primary, .btn-hero-secondary { font-size: var(--fs-ui); }
}


/* 320-360px phones: keep the logo, Menu and Bag on one row (they dropped to a second row at 320) */
@media (max-width: 360px) {
  .header-inner { flex-wrap: nowrap; gap: 6px; padding: 6px 12px; }
  .brand-logo { flex: 1 1 0; }
  .brand-logo img { height: 30px; }
  .brand-title { font-size: var(--fs-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cart-btn { padding: 8px 10px; }
}

/* Admin header on a phone: Refresh is just an icon (its name is in the aria-label) */
@media (max-width: 480px) {
  #admin-refresh-btn { min-width: 44px; min-height: 44px; padding: 8px; justify-content: center; }
  #admin-refresh-btn .icon { margin: 0; }
}

/* Products list with the live preview open: the list only has about half the width, so it drops the Category and Sizes & Colors columns (close the preview to see them) */
.admin-cms-workspace:not(.preview-hidden) .products-table :is(th, td):nth-child(2),
.admin-cms-workspace:not(.preview-hidden) .products-table :is(th, td):nth-child(5) { display: none; }
.admin-cms-workspace:not(.preview-hidden) .products-table :is(th, td) { padding-left: 8px; padding-right: 8px; }
.admin-cms-workspace:not(.preview-hidden) .products-table input[type="number"] { width: 64px !important; }
.admin-cms-workspace:not(.preview-hidden) .products-table td .btn-secondary { padding: 6px 10px; }

/* (after the base .btn-cal-sync / .btn-wa-dispatch rules so it wins) */
@media (max-width: 680px) {
  .btn-cal-sync, .btn-wa-dispatch { padding-inline: 9px; }
}

/* ---------- Track page ---------- */
.track-card {
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 18px;
  background: var(--bg-cream);
}
.track-placed { font-size: var(--fs-label); color: var(--ink-muted); margin-left: 8px; }
.track-info { font-size: var(--fs-small); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.social-tab-pill { white-space: nowrap; }

@media (max-width: 480px) {
  /* No card inside a card: on a phone the result cards sit straight on the page, full width */
  .tracking-panel { padding: 0; margin: 8px auto 24px; background: transparent; border: none; box-shadow: none; }
  .tracking-panel form > .btn-primary { flex: 1 1 100%; justify-content: center; }
  #track-subtitle em { display: none; } /* the same privacy note shows on each result */
  .track-card { padding: 16px; }
  .track-placed { display: block; margin: 2px 0 0; }
  .track-info { grid-template-columns: 1fr; }
  .social-switcher-pills { width: 100%; } /* the two tabs share the row */

  /* Delivery zones: one row per zone (name and fee, time underneath) instead of a three-column table that wraps to three lines */
  .zones-table thead { display: none; }
  .zones-table, .zones-table tbody { display: block; }
  .zones-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
  .zones-table td { display: block; padding: 0; border: none; }
  .zones-table td:nth-child(1) { grid-column: 1; }
  .zones-table td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; min-width: 5.5em; max-width: 9em; }
  .zones-table td:nth-child(2) { grid-column: 1 / -1; margin-top: 2px; color: var(--ink-muted); font-size: var(--fs-label); }
}

/* Phone: the sort box needs room for its 16px text ("Sort: Featured"); the search box gives up a little */
@media (max-width: 480px) {
  .search-sort-group .select-sort { flex: 0 0 46%; padding-left: 12px; }
}

/* 320-360px: search and sort stack, so neither is cut off at 16px */
@media (max-width: 360px) {
  .search-sort-group { flex-direction: column; }
  .search-sort-group .input-search, .search-sort-group .select-sort { flex: 0 0 auto; width: 100%; }
}
