/* Axxa Media Affiliate Shopping & Editorial Guides Design System */
/* Corporate Brand Alignment & Refinement — Milestone 03 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@500;600;700;800;900&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&display=swap');

:root {
  /* Official Axxa Media Corporate Brand Tokens */
  --color-corporate-surface: #f7f9fb;
  --color-corporate-surface-container: #eceef0;
  --color-corporate-surface-high: #e6e8ea;
  --color-corporate-on-surface: #191c1e;
  --color-corporate-on-surface-variant: #45464d;

  /* Primary Corporate Blue */
  --color-corporate-blue: #4648d4;
  --color-corporate-blue-hover: #3b3dbf;
  --color-corporate-blue-active: #3032a8;
  --color-corporate-blue-light: rgba(70, 72, 212, 0.08);
  --color-corporate-blue-focus: rgba(70, 72, 212, 0.25);
  --color-corporate-blue-shadow: 0 4px 14px 0 rgba(70, 72, 212, 0.35);

  /* Corporate Header Tokens */
  --color-header-bg: #f7f9fb;
  --color-header-bg-translucent: rgba(247, 249, 251, 0.88);
  --color-header-border: rgba(198, 198, 205, 0.35);
  --color-header-text-black: #000000;
  --color-header-tagline-black: #000000;

  /* Corporate Footer Tokens */
  --color-footer-bg: #131b2e;
  --color-footer-tagline-white: #ffffff;
  --color-footer-text-muted: #94a3b8;
  --color-footer-border: rgba(198, 198, 205, 0.15);

  /* Gold Accent */
  --color-gold: #d4af37;
  --color-gold-hover: #b89726;

  /* Neutrals & Borders */
  --color-bg-page: #f7f9fb;
  --color-bg-surface: #ffffff;
  --color-bg-subtle: #f2f4f6;
  --color-border: #c6c6cd;
  --color-border-light: #e6e8ea;
  --color-text-main: #191c1e;
  --color-text-muted: #45464d;
  --color-text-light: #64748b;
  --color-text-dim: #76777d;

  /* Category Themes */
  --kitchen-accent: #d97706;
  --kitchen-forest: #1b4332;
  --kitchen-bg: #fffbeb;
  --kitchen-border: #fde68a;
  --kitchen-pill: #fef3c7;

  --plants-accent: #059669;
  --plants-forest: #166534;
  --plants-bg: #f0fdf4;
  --plants-border: #bbf7d0;
  --plants-pill: #dcfce7;

  --dogs-accent: #2563eb;
  --dogs-soft-blue: #e0f2fe;
  --dogs-bg: #f0f9ff;
  --dogs-border: #bae6fd;
  --dogs-pill: #e0f2fe;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-editorial: 'Newsreader', Georgia, serif;

  /* Layout & Geometry */
  --max-wrap-width: 1240px;
  --nav-height: 80px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--color-bg-page);
  color: var(--color-text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--color-bg-page);
}

#root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* Accessibility Skip Link */
.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--color-corporate-blue);
  color: #ffffff;
  padding: 10px 18px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s ease;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(70, 72, 212, 0.3);
}
.skip:focus {
  top: 15px;
}

/* Container Wrap */
.wrap {
  width: 100%;
  max-width: var(--max-wrap-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ========================================================
   HEADER BRANDING SPACING (Requirement 2)
   ======================================================== */
.corporate-header {
  background-color: var(--color-header-bg-translucent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-header-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.corporate-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px; /* Balanced spacing with logo */
  text-decoration: none;
  color: var(--color-header-text-black);
  transition: transform 0.2s ease;
}
.brand:hover {
  transform: scale(1.01);
}

.corporate-logo {
  height: 48px;
  width: auto;
  max-width: 50px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}

/* Tight compact corporate lockup without collision */
.corporate-name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 22.5px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-header-text-black);
  line-height: 1.06;
  margin: 0;
  padding: 0;
}

/* ========================================================
   CANONICAL BRAND TAGLINE (Milestone 06)
   Identical typography across Header and Footer
   ======================================================== */
.brand-tagline,
.corporate-name .corporate-tagline,
.footer-tagline {
  display: block;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-transform: none;
  margin-top: 2.5px; /* Exact 2-3px visual gap relative to Axxa Media */
}

.brand-tagline.tagline-header,
.corporate-name .corporate-tagline {
  color: var(--color-header-tagline-black);
}

.brand-tagline.tagline-footer,
.footer-tagline {
  color: var(--color-footer-tagline-white);
}

/* Header Navigation Links */
.links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.links a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.links a:hover {
  color: var(--color-corporate-blue);
  background-color: var(--color-corporate-blue-light);
}

.links a[aria-current="page"],
.links a.active {
  color: var(--color-header-text-black);
  background-color: var(--color-corporate-blue-light);
  font-weight: 700;
  border-bottom: 2px solid var(--color-corporate-blue);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-header-text-black);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.mobile-nav-toggle:hover {
  background-color: var(--color-bg-subtle);
}

/* ========================================================
   GLOBAL BUTTONS
   ======================================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  background-color: var(--color-corporate-blue);
  color: #ffffff !important;
  border: 1px solid var(--color-corporate-blue);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.01em;
}

.button:hover {
  background-color: var(--color-corporate-blue-hover);
  border-color: var(--color-corporate-blue-hover);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: var(--color-corporate-blue-shadow);
}

.button:active {
  background-color: var(--color-corporate-blue-active);
  transform: translateY(0);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-corporate-blue-focus);
}

.button.secondary {
  background-color: #ffffff;
  color: var(--color-text-main) !important;
  border: 1.5px solid var(--color-border);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}

.button.secondary:hover {
  background-color: #ffffff;
  border-color: var(--color-corporate-blue);
  color: var(--color-corporate-blue) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(70, 72, 212, 0.12);
}

.button.secondary:active {
  background-color: var(--color-bg-subtle);
  transform: translateY(0);
}

/* ========================================================
   GLOBAL BUTTONS GROUP & SPACING (Milestone 05)
   ======================================================== */
.buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  margin-bottom: 24px;
}

/* ========================================================
   CATEGORY HERO TITLE & BRAND SIGNATURE (Milestone 05)
   ======================================================== */
.category-hero-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.category-hero-text {
  display: flex;
  flex-direction: column;
}

.category-eyebrow-row {
  margin-bottom: 12px;
}

.category-main-heading {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--color-corporate-on-surface);
  margin-bottom: 14px;
}

.category-brand-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.category-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-main);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.category-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-corporate-blue);
}

.category-brand-descriptor {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.category-brand-descriptor strong {
  color: var(--color-corporate-blue);
  font-weight: 700;
}

.category-lead-copy {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 560px;
  margin-bottom: 12px;
}

.category-hero-buttons {
  margin-top: 18px;
}

/* ========================================================
   CATEGORY HERO PHONE PRESENTATION (Milestone 07)
   Removed colored background panel; 20-30% larger phone;
   transparent background; natural multi-layer shadow.
   ======================================================== */
.category-hero-phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.category-hero-phone-img {
  width: 100%;
  max-width: 375px; /* ~25-30% larger device presentation */
  max-height: 480px; /* increased from 380px (~26% increase) */
  height: auto;
  object-fit: contain;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 20px 32px rgba(15, 23, 42, 0.16)) drop-shadow(0 4px 12px rgba(15, 23, 42, 0.08));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-hero-phone-img:hover {
  transform: translateY(-4px) scale(1.015);
}

@media (max-width: 900px) {
  .category-hero-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .category-hero-phone-img {
    max-height: 420px;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .category-hero-phone-img {
    max-height: 360px;
    max-width: 270px;
  }
}

/* ========================================================
   HERO — ROTATING CAROUSEL & LARGER PHONES (Req 4 & 5)
   ======================================================== */
.hero-carousel-wrapper {
  position: relative;
  width: 100%;
  outline: none;
  overflow: hidden;
}

.hero-carousel-content {
  padding-top: 50px;
  padding-bottom: 50px;
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.hero-text-pane {
  display: flex;
  flex-direction: column;
  min-height: 380px;
  justify-content: center;
}

.hero-slide-indicator-eyebrow {
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--color-corporate-on-surface);
  margin-bottom: 18px;
  transition: opacity 0.3s ease;
}

.hero-title em {
  font-family: var(--font-editorial);
  font-weight: 500;
  font-style: italic;
  color: #1e293b;
}

.hero-description {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 26px;
  max-width: 520px;
}

.hero-cta-buttons {
  margin-bottom: 32px;
}

/* Carousel Indicators & Controls */
.hero-carousel-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.hero-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(236, 238, 240, 0.7);
  padding: 4px;
  border-radius: 24px;
  border: 1px solid var(--color-border-light);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-pill .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-border);
  transition: all 0.2s ease;
}

.hero-pill.active {
  background: #ffffff;
  color: var(--color-corporate-blue);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.hero-pill.active .pill-dot {
  background-color: var(--color-corporate-blue);
  transform: scale(1.3);
}

.hero-arrow-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hero-arrow-btn:hover {
  background: var(--color-corporate-blue);
  border-color: var(--color-corporate-blue);
  color: #ffffff;
  transform: scale(1.05);
}

.hero-arrow-btn.play-pause-btn {
  width: 28px;
  height: 28px;
  border-color: transparent;
  background: transparent;
  color: var(--color-text-light);
}
.hero-arrow-btn.play-pause-btn:hover {
  background: var(--color-bg-subtle);
  color: var(--color-text-main);
  transform: none;
}
.hero-arrow-btn.play-pause-btn.is-paused {
  background: var(--color-corporate-blue-light);
  color: var(--color-corporate-blue);
  border: 1px solid rgba(70, 72, 212, 0.25);
}

/* LARGER HERO PHONE SHOWCASE */
.home-phone-showcase.larger-phones {
  position: relative;
  width: 100%;
  height: 560px; /* Noticeably larger: increased from 480px to 560px */
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.hero-ambient-glow {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(65px);
  pointer-events: none;
  z-index: 0;
  transition: background 0.6s ease, transform 0.6s ease;
}
.hero-ambient-glow.glow-kitchen {
  background: radial-gradient(circle, rgba(254, 243, 199, 0.75) 0%, rgba(254, 243, 199, 0) 70%);
}
.hero-ambient-glow.glow-plants {
  background: radial-gradient(circle, rgba(220, 252, 231, 0.75) 0%, rgba(220, 252, 231, 0) 70%);
}
.hero-ambient-glow.glow-dogs {
  background: radial-gradient(circle, rgba(224, 242, 254, 0.85) 0%, rgba(224, 242, 254, 0) 70%);
}

.larger-phones .showcase-phone {
  position: absolute;
  width: auto;
  max-height: 485px;
  object-fit: contain;
  border-radius: 38px;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.45s ease;
  user-select: none;
  will-change: transform, filter, opacity;
}

/* Focal phone styling when slide is active: centerpiece, elevated, front & center */
.larger-phones .role-focal,
.larger-phones .focal-phone {
  left: 50% !important;
  top: 48% !important;
  transform: translate(-50%, -50%) scale(1.06) !important;
  z-index: 10 !important;
  opacity: 1 !important;
  filter: drop-shadow(0 26px 52px rgba(15, 23, 42, 0.28)) !important;
}

/* Supporting left phone: spacious offset to left wing, rotated -7deg, visible face */
.larger-phones .role-supporting-left,
.larger-phones .supporting-left {
  left: 22% !important;
  top: 52% !important;
  transform: translate(-50%, -50%) scale(0.88) rotate(-7deg) !important;
  z-index: 4 !important;
  opacity: 0.88 !important;
  filter: drop-shadow(-12px 20px 30px rgba(15, 23, 42, 0.16)) !important;
}

/* Supporting right phone: spacious offset to right wing, rotated +7deg, visible face */
.larger-phones .role-supporting-right,
.larger-phones .supporting-right {
  left: 78% !important;
  top: 52% !important;
  transform: translate(-50%, -50%) scale(0.88) rotate(7deg) !important;
  z-index: 5 !important;
  opacity: 0.88 !important;
  filter: drop-shadow(12px 20px 30px rgba(15, 23, 42, 0.16)) !important;
}

.larger-phones:hover .role-focal,
.larger-phones:hover .focal-phone {
  transform: translate(-50%, -50%) scale(1.09) !important;
  filter: drop-shadow(0 32px 60px rgba(15, 23, 42, 0.32)) !important;
}

.larger-phones .role-supporting-left:hover,
.larger-phones .supporting-left:hover {
  opacity: 0.98 !important;
  transform: translate(-50%, -53%) scale(0.91) rotate(-5deg) !important;
}

.larger-phones .role-supporting-right:hover,
.larger-phones .supporting-right:hover {
  opacity: 0.98 !important;
  transform: translate(-50%, -53%) scale(0.91) rotate(5deg) !important;
}

/* ========================================================
   Three-Brand Informational Band
   ======================================================== */
.band {
  background-color: var(--color-footer-bg);
  color: #ffffff;
  border-top: 1px solid var(--color-footer-border);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}

.band .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.band .wrap > div {
  padding-left: 18px;
  border-left: 2px solid var(--color-corporate-blue);
}

.band strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.band p {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.45;
}

/* ========================================================
   Generic Sections
   ======================================================== */
.section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 20px;
}

.section-top h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  color: var(--color-corporate-on-surface);
  letter-spacing: -0.015em;
  margin-top: 6px;
}

.section-top p {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 460px;
  line-height: 1.55;
}

/* ========================================================
   Choose Your Corner: Category Brand Grid
   ======================================================== */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.brand-card {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.brand-card.kitchen {
  border-top: 4px solid var(--kitchen-accent);
}
.brand-card.kitchen:hover {
  border-color: var(--kitchen-accent);
}

.brand-card.plants {
  border-top: 4px solid var(--plants-accent);
}
.brand-card.plants:hover {
  border-color: var(--plants-accent);
}

.brand-card.dogs {
  border-top: 4px solid var(--dogs-accent);
}
.brand-card.dogs:hover {
  border-color: var(--dogs-accent);
}

.home-card-phone {
  width: 100%;
  height: 240px;
  object-fit: contain;
  padding: 24px;
  transition: transform 0.3s ease;
}

.brand-card.kitchen .home-card-phone {
  background: radial-gradient(circle at center, #fef3c7 0%, #fffbeb 100%);
}
.brand-card.plants .home-card-phone {
  background: radial-gradient(circle at center, #dcfce7 0%, #f0fdf4 100%);
}
.brand-card.dogs .home-card-phone {
  background: radial-gradient(circle at center, #e0f2fe 0%, #f0f9ff 100%);
}

.brand-card:hover .home-card-phone {
  transform: scale(1.04);
}

.brand-card > div {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.brand-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-corporate-on-surface);
  margin-bottom: 10px;
}

.brand-card p {
  font-size: 14.5px;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.read {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-corporate-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease, gap 0.2s ease;
}

.brand-card:hover .read {
  color: var(--color-corporate-blue-hover);
  gap: 8px;
}

/* ========================================================
   From the Notebook: Editorial Guides
   ======================================================== */
.guides {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 32px;
}

.guide {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.guide:hover {
  border-color: var(--color-corporate-blue);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(70, 72, 212, 0.08);
}

.guide .number {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-corporate-blue);
  margin-bottom: 12px;
}

.guide h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-corporate-on-surface);
  margin-bottom: 12px;
}

.guide p {
  font-size: 14.5px;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.guide .read {
  margin-top: auto;
}

/* ========================================================
   Prelaunch / Practical Comparison Banner
   ======================================================== */
.prelaunch {
  background: linear-gradient(135deg, #131b2e 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  border: 1px solid rgba(198, 198, 205, 0.2);
  box-shadow: 0 12px 32px rgba(19, 27, 46, 0.16);
}

.prelaunch .eyebrow {
  color: #a5b4fc;
}

.prelaunch h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.prelaunch p {
  font-size: 15.5px;
  color: #cbd5e1;
  max-width: 580px;
  line-height: 1.6;
}

.prelaunch .button {
  background-color: var(--color-corporate-blue);
  border-color: var(--color-corporate-blue);
  color: #ffffff !important;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(70, 72, 212, 0.35);
}

.prelaunch .button:hover {
  background-color: var(--color-corporate-blue-hover);
  border-color: var(--color-corporate-blue-hover);
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* ========================================================
   Retailers Preview & Directory
   ======================================================== */
.retailers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

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

.retailer {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.retailer:hover {
  border-color: var(--color-corporate-blue);
  box-shadow: 0 10px 24px rgba(70, 72, 212, 0.08);
  transform: translateY(-3px);
}

.retailer-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-corporate-on-surface);
  margin-bottom: 8px;
}

.retailer p {
  font-size: 14.5px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  flex-grow: 1;
}

.retailer .note {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-corporate-blue);
  margin-bottom: 18px;
}

.retailer a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-corporate-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  transition: all 0.2s ease;
}

.retailer a:hover {
  color: var(--color-corporate-blue-hover);
  gap: 8px;
}

p.note {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.5;
}

p.note a {
  color: var(--color-corporate-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
p.note a:hover {
  color: var(--color-corporate-blue-hover);
}

/* ========================================================
   FOOTER BRANDING SPACING & CLEANUP (Req 3)
   ======================================================== */
footer {
  background-color: var(--color-footer-bg);
  color: #cbd5e1;
  padding: 56px 0 40px;
  margin-top: auto;
  border-top: 1px solid var(--color-footer-border);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 28px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 1px; /* Tightly grouped vertically */
}

.footer-brand-block strong {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  display: block;
  letter-spacing: -0.02em;
  line-height: 1.1;
}


.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-note {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 12px;
  max-width: 820px;
}

/* ========================================================
   Interactive Shopping List System
   ======================================================== */
.shopping-list-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  margin-top: 36px;
}

.shopping-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-light);
}

.shopping-list-header h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-corporate-on-surface);
}

.shopping-filter-tabs {
  display: flex;
  gap: 6px;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active {
  background: var(--color-corporate-blue);
  border-color: var(--color-corporate-blue);
  color: #ffffff;
}

.shopping-add-form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  margin-bottom: 24px;
}

.input-field {
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14.5px;
  color: var(--color-text-main);
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field:focus {
  border-color: var(--color-corporate-blue);
  box-shadow: 0 0 0 3px var(--color-corporate-blue-focus);
}

.items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shopping-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--color-bg-page);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  transition: background 0.2s ease;
}

.shopping-item-row:hover {
  background: #f1f5f9;
}

.shopping-item-row.purchased {
  opacity: 0.6;
}

.shopping-item-row.purchased .item-name {
  text-decoration: line-through;
  color: var(--color-text-dim);
}

.item-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-grow: 1;
}

.item-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-corporate-blue);
}

.item-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text-main);
}

.item-spec {
  font-size: 13px;
  color: var(--color-text-light);
  margin-left: 6px;
}

.item-notes {
  font-size: 12.5px;
  color: var(--color-text-dim);
  display: block;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
}

.qty-btn {
  background: transparent;
  border: none;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  color: var(--color-corporate-blue);
  padding: 2px 6px;
}

.qty-text {
  font-size: 13px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.delete-btn {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.delete-btn:hover {
  background: #fee2e2;
}

.empty-state {
  text-align: center;
  padding: 36px 20px;
  color: var(--color-text-light);
}

.empty-state p {
  margin-bottom: 16px;
  font-size: 15px;
}

/* ========================================================
   Unit Price Calculator Experience
   ======================================================== */
.unit-calc-container {
  max-width: 860px;
  margin: 0 auto;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.package-card {
  background: var(--color-bg-surface);
  border: 1.5px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.package-card.winner {
  border-color: #10b981;
  background: #f0fdf4;
}

.package-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-corporate-on-surface);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.comparison-result-card {
  background: var(--color-bg-surface);
  border: 2px solid var(--color-corporate-blue);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(70, 72, 212, 0.1);
  margin-top: 24px;
}

.winner-badge {
  display: inline-block;
  background: #10b981;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.savings-highlight {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--color-corporate-on-surface);
  margin-bottom: 12px;
}

.error-banner {
  background: #fef2f2;
  border: 1px solid #f87171;
  color: #b91c1c;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 24px;
}

/* ========================================================
   Editorial Guide Reading Page
   ======================================================== */
.editorial-container {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 40px;
  padding-bottom: 80px;
}

.guide-breadcrumbs {
  font-size: 13.5px;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.guide-breadcrumbs a {
  color: var(--color-corporate-blue);
  text-decoration: none;
}
.guide-breadcrumbs a:hover {
  text-decoration: underline;
}

.editorial-header {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 32px;
}

.editorial-header h1 {
  font-size: clamp(30px, 4vw, 46px);
  margin-top: 10px;
  margin-bottom: 16px;
}

.guide-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  color: var(--color-text-light);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.reconstructed-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-corporate-blue-light);
  color: var(--color-corporate-blue);
  border: 1px solid rgba(70, 72, 212, 0.2);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.article-body {
  font-size: 17.5px;
  line-height: 1.75;
  color: #1e293b;
}

.article-body p {
  margin-bottom: 24px;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-corporate-on-surface);
  margin-top: 40px;
  margin-bottom: 16px;
}

.article-body ul {
  margin-left: 24px;
  margin-bottom: 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.editorial-tip-box {
  background: #f8fafc;
  border-left: 4px solid var(--color-corporate-blue);
  padding: 18px 22px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 28px 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--color-corporate-on-surface);
}

/* ========================================================
   Responsive Breakpoints & Mobile Drawer
   ======================================================== */
@media (max-width: 1440px) {
  .home-phone-showcase.larger-phones {
    height: 520px;
  }
  .larger-phones .showcase-phone {
    max-height: 460px;
  }
}

@media (max-width: 1024px) {
  .hero-carousel-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-text-pane {
    min-height: auto;
    align-items: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-buttons {
    justify-content: center;
    margin-bottom: 24px;
  }

  .hero-carousel-controls {
    justify-content: center;
  }

  .home-phone-showcase.larger-phones {
    height: 460px;
  }

  .larger-phones .showcase-phone {
    max-height: 410px;
  }

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

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

  .category-hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .category-hero-text {
    align-items: center;
  }

  .category-eyebrow-row,
  .category-brand-badge-row {
    justify-content: center;
  }

  .category-lead-copy {
    margin-left: auto;
    margin-right: auto;
  }

  .category-hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .corporate-header .nav {
    min-height: 68px;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
    gap: 6px;
  }

  .links.mobile-open {
    display: flex;
  }

  .links a {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: var(--color-text-main);
  }

  .links a[aria-current="page"],
  .links a.active {
    background-color: var(--color-corporate-blue-light);
    color: var(--color-corporate-blue);
    border-bottom: none;
    border-left: 3px solid var(--color-corporate-blue);
  }

  .band .wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-grid, .guides, .retailers {
    grid-template-columns: 1fr !important;
  }

  .prelaunch {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .prelaunch .button {
    width: 100%;
  }

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

  .shopping-add-form {
    grid-template-columns: 1fr;
  }

  .home-phone-showcase.larger-phones {
    height: 380px;
  }

  .larger-phones .showcase-phone {
    max-height: 330px;
  }

  .larger-phones .role-supporting-left,
  .larger-phones .supporting-left {
    left: 22% !important;
    transform: translate(-50%, -50%) scale(0.80) rotate(-5deg) !important;
  }
  .larger-phones .role-supporting-right,
  .larger-phones .supporting-right {
    left: 78% !important;
    transform: translate(-50%, -50%) scale(0.80) rotate(5deg) !important;
  }
}

@media (max-width: 480px), (max-width: 430px), (max-width: 390px), (max-width: 360px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .corporate-logo {
    height: 40px;
    max-width: 42px;
  }

  .corporate-name {
    font-size: 19px;
  }

  .brand-tagline,
  .corporate-name .corporate-tagline,
  .footer-tagline {
    font-size: 11px;
    line-height: 1.15;
    margin-top: 2px;
  }

  .hero-carousel-content {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .hero-title {
    font-size: clamp(26px, 7vw, 32px);
  }

  .hero-description {
    font-size: 15px;
  }

  .home-phone-showcase.larger-phones {
    height: 310px;
  }

  .larger-phones .showcase-phone {
    max-height: 270px;
  }

  .larger-phones .role-focal,
  .larger-phones .focal-phone {
    transform: translate(-50%, -50%) scale(1.04) !important;
  }

  .larger-phones .role-supporting-left,
  .larger-phones .supporting-left {
    left: 19% !important;
    transform: translate(-50%, -50%) scale(0.76) rotate(-4deg) !important;
  }
  .larger-phones .role-supporting-right,
  .larger-phones .supporting-right {
    left: 81% !important;
    transform: translate(-50%, -50%) scale(0.76) rotate(4deg) !important;
  }

  .button {
    width: 100%;
  }

  .buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .buttons .button {
    width: 100%;
    justify-content: center;
  }

  .category-brand-badge-row {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .category-main-heading {
    font-size: clamp(28px, 8vw, 38px);
  }

  .category-lead-copy {
    font-size: 15.5px;
  }

  .hero-carousel-controls {
    flex-direction: column;
    gap: 12px;
  }
}

/* ========================================================
   PRODUCT-TO-RETAILER SHOPPING MODAL & ACTIONS (Milestone 06)
   Corporate Blue design system rounded-rectangle buttons
   ======================================================== */
.shop-product-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--color-primary-blue, #1d4ed8);
  color: #ffffff;
  border: 1px solid var(--color-primary-blue, #1d4ed8);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  width: 100%;
  transition: background 0.15s ease, transform 0.1s ease;
}

.shop-product-card-btn:hover {
  background: #1e40af;
  color: #ffffff;
  border-color: #1e40af;
  transform: translateY(-1px);
}

.shop-item-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.shop-item-btn:hover {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}

/* Modal Backdrop & Container */
.retailer-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.retailer-modal-container {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 24px 28px;
  border: 1px solid #e2e8f0;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.retailer-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 12px;
}

.retailer-modal-title-wrap {
  flex: 1;
}

.retailer-modal-category-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #64748b;
  display: block;
  margin-bottom: 4px;
}

.retailer-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #131b2e;
  margin: 0;
  line-height: 1.25;
}

.retailer-modal-close-btn {
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.retailer-modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Product Summary Banner */
.retailer-product-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

.product-summary-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-summary-details {
  flex: 1;
  min-width: 0;
}

.product-summary-name {
  font-size: 16px;
  font-weight: 700;
  color: #131b2e;
  line-height: 1.3;
}

.product-summary-meta {
  font-size: 13px;
  color: #64748b;
  margin-top: 3px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.summary-qty {
  font-weight: 600;
  color: #0f172a;
}

.summary-sep {
  color: #cbd5e1;
}

.summary-spec, .summary-notes {
  color: #475569;
}

.retailer-selection-instruction {
  font-size: 14px;
  color: #475569;
  margin-bottom: 16px;
  line-height: 1.5;
}

.retailer-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.retailer-option-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.retailer-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.retailer-name-bold {
  font-size: 16px;
  font-weight: 700;
  color: #131b2e;
}

.retailer-destination-pill {
  font-size: 11px;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.retailer-card-info {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 12px;
  line-height: 1.4;
}

.retailer-select-btn {
  background: var(--color-primary-blue, #1d4ed8);
  color: #ffffff;
  border: 1px solid var(--color-primary-blue, #1d4ed8);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: all 0.15s ease;
}

.retailer-select-btn:hover {
  background: #1e40af;
  border-color: #1e40af;
  color: #ffffff;
}

/* Simulation Notice & Details */
.simulation-notice-banner {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.simulation-banner-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #92400e;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.simulation-banner-text {
  font-size: 12.5px;
  color: #78350f;
  margin: 0;
  line-height: 1.4;
}

.handoff-details-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  background: #f8fafc;
  margin-bottom: 20px;
}

.handoff-details-heading {
  font-size: 14px;
  font-weight: 700;
  color: #131b2e;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px 0;
}

.handoff-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
}

.handoff-detail-row.full-width {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.handoff-detail-row .detail-label {
  color: #64748b;
  font-weight: 500;
}

.handoff-detail-row .detail-value {
  color: #0f172a;
  font-weight: 600;
  text-align: right;
}

.destination-type-code {
  background: #eff6ff;
  color: #1d4ed8;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11.5px;
  font-family: monospace;
}

.destination-url-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 10px;
  word-break: break-all;
  font-size: 11.5px;
  color: #334155;
  width: 100%;
}

.handoff-status-indicator {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #059669;
  font-weight: 500;
}

.retailer-modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.modal-secondary-btn {
  font-size: 13px;
  padding: 8px 14px;
}

.modal-primary-btn {
  font-size: 13px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 480px) {
  .retailer-modal-container {
    padding: 18px 16px;
  }
  .retailer-cards-grid {
    grid-template-columns: 1fr;
  }
  .retailer-modal-actions {
    flex-direction: column;
  }
  .retailer-modal-actions button,
  .retailer-modal-actions a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ========================================================
   BULK SHOPPING & "SHOP ENTIRE LIST" MODAL (Milestone 07)
   ======================================================== */
.shopping-header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.shop-entire-list-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--color-primary-blue, #1d4ed8);
  color: #ffffff;
  border: 1px solid var(--color-primary-blue, #1d4ed8);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(29, 78, 216, 0.2);
  transition: all 0.15s ease;
}

.shop-entire-list-btn:hover {
  background: #1e40af;
  border-color: #1e40af;
  color: #ffffff;
  transform: translateY(-1px);
}

.bulk-modal-container {
  max-width: 680px;
}

.bulk-review-subtitle {
  font-size: 14px;
  color: #475569;
  margin-bottom: 16px;
  line-height: 1.5;
}

.bulk-empty-notice {
  text-align: center;
  padding: 36px 16px;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.bulk-selection-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 8px;
}

.bulk-selection-counter strong {
  color: var(--color-primary-blue, #1d4ed8);
}

.bulk-selection-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bulk-link-btn {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
}

.bulk-link-btn:hover {
  text-decoration: underline;
}

.bulk-warning-callout {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #b45309;
  margin-bottom: 14px;
}

.bulk-items-list-container {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 20px;
  background: #ffffff;
}

.bulk-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  gap: 12px;
  transition: background 0.15s ease;
}

.bulk-item-row:last-child {
  border-bottom: none;
}

.bulk-item-row.excluded {
  background: #f8fafc;
  opacity: 0.65;
}

.bulk-checkbox-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
}

.bulk-item-info {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
}

.bulk-item-name {
  font-weight: 600;
  color: #0f172a;
  margin-right: 6px;
}

.bulk-item-name.text-muted {
  color: #94a3b8;
  text-decoration: line-through;
}

.bulk-item-unit {
  font-size: 12px;
  color: #64748b;
}

.bulk-item-notes {
  display: block;
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
}

.bulk-item-qty-adjust {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 2px;
}

.bulk-retailer-selection-section {
  margin-bottom: 22px;
}

.bulk-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #131b2e;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.bulk-section-caption {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
}

.bulk-retailers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.bulk-retailer-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.15s ease;
}

.bulk-retailer-card:hover {
  border-color: #93c5fd;
  transform: translateY(-1px);
}

.bulk-retailer-card.selected {
  border-color: var(--color-primary-blue, #1d4ed8);
  background: #eff6ff;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.12);
}

.bulk-retailer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.bulk-retailer-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #131b2e;
}

.bulk-selected-pill {
  font-size: 10px;
  font-weight: 700;
  background: #1d4ed8;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 10px;
}

.bulk-capabilities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.capability-tag {
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.capability-tag.verified {
  background: #ecfdf5;
  color: #047857;
}

.capability-tag.notice {
  background: #f1f5f9;
  color: #475569;
}

.bulk-cart-auth-note {
  font-size: 10px;
  line-height: 1.25;
  margin-top: 4px;
}

.text-amber-700 {
  color: #b45309;
}

.text-emerald-700 {
  color: #047857;
}

/* Simulation view styling */
.bulk-simulation-banner {
  margin-bottom: 18px;
}

.bulk-req-doc {
  font-size: 11.5px;
  color: #b45309;
  margin: 0;
  line-height: 1.35;
}

.bulk-breakdown-section {
  margin-bottom: 20px;
}

.bulk-breakdown-title {
  font-size: 14px;
  font-weight: 700;
  color: #131b2e;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.bulk-simulation-items-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.bulk-sim-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
  gap: 12px;
  font-size: 13px;
}

.bulk-sim-item-card:last-child {
  border-bottom: none;
}

.bulk-sim-item-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.bulk-sim-index {
  color: #64748b;
  font-weight: 600;
  font-size: 12px;
}

.bulk-sim-details {
  display: flex;
  flex-direction: column;
}

.bulk-sim-name {
  color: #0f172a;
  font-size: 13px;
}

.bulk-sim-meta {
  color: #64748b;
  font-size: 11.5px;
}

.bulk-sim-item-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.bulk-sim-status-badge {
  font-size: 11px;
  color: #047857;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 500;
}

.bulk-item-search-link {
  font-size: 11.5px;
  color: #2563eb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.bulk-item-search-link:hover {
  text-decoration: underline;
}

.bulk-copyable-box {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 20px;
}

.bulk-copyable-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12.5px;
  color: #94a3b8;
}

.bulk-copy-btn {
  background: #1e293b;
  color: #ffffff;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.bulk-copy-btn:hover {
  background: #334155;
}

.bulk-copy-btn.copied {
  background: #059669;
  border-color: #059669;
}

.bulk-copyable-pre {
  margin: 0;
  font-family: monospace;
  font-size: 11.5px;
  line-height: 1.5;
  max-height: 110px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: #cbd5e1;
}

@media (max-width: 768px) {
  .shopping-header-controls {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .shop-entire-list-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

