/* ==========================================================================
   DESIGN SYSTEM - MY RECIPES TODAY
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette - Premium High-Converting US E-Commerce */
  --color-bg-light: #f8fafc;
  --color-bg-dark: #0a192f;
  --color-bg-card: #ffffff;
  --color-primary: #0a192f;       /* Premium Royal Navy */
  --color-primary-light: #112240;
  --color-accent: #67b616;        /* High-Converting Leaf Green */
  --color-accent-hover: #529212;
  --color-text-dark: #0a192f;
  --color-text-light: #f8fafc;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-border-focus: #0a192f;
  --color-success: #10b981;
  --color-error: #ef4444;

  /* Typography */
  --font-serif: 'Poppins', sans-serif;
  --font-sans: 'Poppins', sans-serif;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2.5rem;
  --spacing-xxl: 4rem;

  /* Border Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-premium: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
  --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   BASE & RESET STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.25;
}

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

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

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

button {
  cursor: pointer;
}

input:focus, select:focus, textarea:focus {
  outline: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */
.header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background var(--transition-normal);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.logo-img {
  height: 55px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo span {
  color: var(--color-accent);
  margin-left: 2px;
}

.nav-menu {
  display: flex;
  gap: var(--spacing-xl);
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-dark);
  position: relative;
  padding: var(--spacing-xs) 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-normal);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-accent);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.cart-toggle {
  position: relative;
  padding: var(--spacing-sm);
  border-radius: var(--radius-full);
  transition: background-color var(--transition-fast);
  color: var(--color-primary);
}

.cart-toggle:hover {
  background-color: rgba(27, 61, 43, 0.05);
}

.cart-icon-svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--color-accent);
  color: var(--color-text-light);
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-bg-light);
  transform: translate(2px, -2px);
  transition: transform var(--transition-fast);
}

.cart-badge.bump {
  transform: translate(2px, -2px) scale(1.3);
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.menu-btn span {
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  padding-top: var(--spacing-xxl);
  padding-bottom: var(--spacing-xxl);
  overflow: hidden;
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.85) 100%);
  z-index: 1;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--spacing-xxl);
  align-items: center;
}

.hero-content {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.8s forwards 0.2s;
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: var(--spacing-sm);
  display: inline-block;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
  line-height: 1.15;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-xl);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
}

.hero-image-wrapper {
  position: relative;
  opacity: 0;
  transform: scale(0.95);
  animation: fadeIn 0.8s forwards 0.4s;
  display: flex;
  justify-content: center;
}

.hero-featured-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background-color: var(--color-bg-card);
  color: var(--color-text-dark);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  border-left: 4px solid var(--color-accent);
  z-index: 5;
}

.badge-text h4 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.badge-text p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   BUTTONS & ACTIONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  gap: var(--spacing-sm);
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-text-light);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.6);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-light);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  border-color: var(--color-text-light);
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  transform: translateY(-2px);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   SECTIONS & GRIDS
   ========================================================================== */
.section {
  padding-top: var(--spacing-xxl);
  padding-bottom: var(--spacing-xxl);
}

.section-dark {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.section-dark h2 {
  color: var(--color-text-light);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--spacing-xxl) auto;
}

.section-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--spacing-xs);
  display: block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.section-desc {
  color: var(--color-text-muted);
}

.section-dark .section-desc {
  color: rgba(255, 255, 255, 0.7);
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
}

/* ==========================================================================
   CARDS & PRODUCT LISTINGS
   ========================================================================== */
/* Book Card */
.book-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.book-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
}

.book-card-img-wrap {
  position: relative;
  background-color: #f3f4f6;
  padding: var(--spacing-xl);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.book-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-slow);
}

.book-card:hover .book-card-img {
  transform: scale(1.05) rotate(1deg);
}

.book-badge {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background-color: var(--color-accent);
  color: var(--color-text-light);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.book-card-content {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.book-rating {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--color-accent);
  font-size: 0.85rem;
  margin-bottom: var(--spacing-xs);
}

.book-rating span.rating-count {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  margin-left: 2px;
}

.book-card-title {
  font-size: 1.35rem;
  margin-bottom: var(--spacing-xs);
  color: var(--color-primary);
}

.book-card-author {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
}

.book-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-lg);
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.book-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-serif);
}

.book-price-old {
  font-size: 1rem;
  text-decoration: line-through;
  color: var(--color-text-muted);
  font-weight: 400;
  margin-right: var(--spacing-xs);
}

/* Recipe Card */
.recipe-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.recipe-card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.recipe-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.recipe-meta-badges {
  position: absolute;
  bottom: var(--spacing-md);
  left: var(--spacing-md);
  display: flex;
  gap: var(--spacing-xs);
}

.recipe-meta-badge {
  background-color: rgba(15, 20, 18, 0.75);
  color: var(--color-text-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 4px;
}

.recipe-card-content {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.recipe-card-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

.recipe-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-lg);
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border);
}

.recipe-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

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

/* ==========================================================================
   RECIPE DETAIL / INTERACTIVE VIEWER
   ========================================================================== */
.recipe-detail-header {
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

.recipe-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
}

.recipe-hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  aspect-ratio: 4/3;
}

.recipe-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-main-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.recipe-title-detail {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.recipe-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-md) 0;
}

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

.stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.stat-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 2px;
}

/* Servings Control */
.servings-control {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  width: max-content;
}

.servings-control-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color var(--transition-fast);
}

.servings-control-btn:hover {
  background-color: var(--color-border);
}

.servings-display {
  font-weight: 600;
  font-size: 1.05rem;
  min-width: 80px;
  text-align: center;
}

/* Cooking Layout Split */
.cooking-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--spacing-xxl);
  margin-top: var(--spacing-xxl);
}

.ingredients-box {
  background-color: #fdfbf7;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
  height: fit-content;
}

.ingredients-box h3 {
  margin-bottom: var(--spacing-lg);
  font-family: var(--font-serif);
  font-size: 1.6rem;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: var(--spacing-sm);
}

.ingredients-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.ingredient-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--spacing-xs);
  border-bottom: 1px dashed var(--color-border);
}

.ingredient-name {
  font-weight: 500;
}

.ingredient-amount {
  font-weight: 700;
  color: var(--color-primary);
}

/* Instructions checklist */
.instructions-box h3 {
  margin-bottom: var(--spacing-lg);
  font-family: var(--font-serif);
  font-size: 1.6rem;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: var(--spacing-sm);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  list-style: none;
}

.step-item {
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
  position: relative;
}

.step-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-primary);
  border-radius: 4px;
  margin-top: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.step-checkbox:checked {
  background-color: var(--color-success);
  border-color: var(--color-success);
}

.step-checkbox::before {
  content: '✓';
  color: white;
  font-weight: bold;
  font-size: 0.85rem;
  display: none;
}

.step-checkbox:checked::before {
  display: block;
}

.step-content {
  flex-grow: 1;
}

.step-number {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 2px;
  display: block;
}

.step-text {
  font-size: 1.05rem;
  transition: color var(--transition-fast), text-decoration var(--transition-fast);
}

.step-checkbox:checked + .step-content .step-text {
  color: var(--color-text-muted);
  text-decoration: line-through;
}

/* Step Timer */
.step-timer {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-sm);
  background-color: rgba(27, 61, 43, 0.05);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  width: max-content;
}

.timer-digits {
  font-family: monospace;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-primary);
  min-width: 50px;
}

.timer-btn {
  background-color: var(--color-primary);
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.timer-btn.active {
  background-color: var(--color-accent);
}

/* Cross Promotion Sidebar */
.cross-promo-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-text-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin-top: var(--spacing-xxl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}

.promo-text h4 {
  font-size: 1.6rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-sm);
}

.promo-text p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
}

/* ==========================================================================
   PRODUCT DETAIL PAGE / E-BOOK
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--spacing-xxl);
  margin-top: var(--spacing-xl);
}

.product-gallery {
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f3f4f6;
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
}

.product-cover-large {
  width: 95%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  margin-bottom: 0;
  transition: transform var(--transition-slow);
}

.product-cover-large:hover {
  transform: scale(1.02) rotate(-1deg);
}

@keyframes pulse-glow {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 14px rgba(190, 18, 60, 0.4);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 6px 22px rgba(190, 18, 60, 0.7);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 14px rgba(190, 18, 60, 0.4);
  }
}

.pulse-button {
  animation: pulse-glow 2s infinite ease-in-out;
}

.pulse-button:hover {
  animation: none;
}

.product-info-wrap {
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 2.8rem;
  margin-bottom: var(--spacing-sm);
}

.product-meta-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.product-pricing {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-md) 0;
}

.product-price-val {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: var(--font-serif);
  color: var(--color-primary);
}

.product-price-old-val {
  font-size: 1.4rem;
  text-decoration: line-through;
  color: var(--color-text-muted);
}

.product-save-badge {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.product-description {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-xl);
  line-height: 1.7;
}

.product-purchase-box {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.bullet-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.bullet-points li {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.95rem;
}

.bullet-points li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: bold;
}

/* Accordion Table of Contents */
.accordion-toc {
  margin-top: var(--spacing-xl);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

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

.accordion-header {
  background-color: #fcfbf9;
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
}

.accordion-header:hover {
  background-color: #f3f2eb;
}

.accordion-icon {
  transition: transform var(--transition-normal);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0 var(--spacing-lg);
  max-height: 0;
  overflow: hidden;
  background-color: white;
  transition: max-height var(--transition-normal) ease-out, padding var(--transition-normal) ease-out;
}

.accordion-item.active .accordion-content {
  padding: var(--spacing-md) var(--spacing-lg);
  max-height: 500px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.toc-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Book Preview Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 20, 18, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  z-index: 1000;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  background-color: var(--color-bg-light);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal.active .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
}

.modal-close {
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
}

.modal-content {
  padding: var(--spacing-xl);
  overflow-y: auto;
  flex-grow: 1;
}

.preview-reader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
}

.preview-page {
  background-color: white;
  padding: var(--spacing-xl);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  width: 100%;
  max-width: 600px;
}

.preview-header-logo {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-accent);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.preview-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.preview-section-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-xs);
}

/* ==========================================================================
   SHOPPING CART & CHECKOUT PAGE
   ========================================================================== */
.cart-page-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
}

.cart-items-panel {
  background-color: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
}

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

.cart-item-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.cart-item-info h4 {
  font-size: 1.15rem;
  color: var(--color-primary);
}

.cart-item-info p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.cart-item-price {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-top: var(--spacing-xs);
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--spacing-sm);
}

.cart-item-remove {
  color: var(--color-error);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.cart-item-remove:hover {
  text-decoration: underline;
}

/* Checkout Summary Form */
.checkout-panel {
  background-color: #fdfbf7;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
  height: fit-content;
}

.checkout-panel h3 {
  font-size: 1.5rem;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
  font-size: 0.95rem;
}

.checkout-summary-row.total {
  border-top: 1px solid var(--color-border);
  padding-top: var(--spacing-md);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-serif);
}

/* Promo Code Box */
.promo-box {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.form-input {
  background-color: white;
  border: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  width: 100%;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--color-border-focus);
}

.checkout-form-group {
  margin-bottom: var(--spacing-md);
}

.checkout-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-primary);
}

/* Empty Cart State */
.empty-cart-state {
  text-align: center;
  padding: var(--spacing-xxl) var(--spacing-lg);
}

.empty-cart-state h3 {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-md);
}

.empty-cart-state p {
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-xl);
}

/* ==========================================================================
   ORDER SUCCESS / THANK YOU PAGE
   ========================================================================== */
.success-container {
  max-width: 650px;
  margin: var(--spacing-xxl) auto;
  text-align: center;
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xxl) var(--spacing-xl);
  box-shadow: var(--shadow-lg);
}

.success-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg) auto;
}

.success-icon-svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-title {
  font-size: 2.25rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

.success-order-num {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: var(--spacing-xl);
}

.downloads-box {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  text-align: left;
}

.downloads-box h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  font-family: var(--font-serif);
}

.downloads-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  list-style: none;
}

.download-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: var(--spacing-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.download-info h4 {
  font-size: 1rem;
  color: var(--color-primary);
}

.download-info p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: var(--spacing-xxl);
  padding-bottom: var(--spacing-xl);
  border-top: 1px solid #1c2320;
  margin-top: auto;
}

.footer h3, .footer h4 {
  color: var(--color-text-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-family: var(--font-serif);
  margin-bottom: var(--spacing-sm);
}

.footer-brand h3 span {
  color: var(--color-accent);
}

.footer-brand p {
  font-size: 0.9rem;
  margin-bottom: var(--spacing-md);
  max-width: 250px;
}

.footer-title {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--color-accent);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-links a {
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 2px;
}

.footer-newsletter p {
  font-size: 0.9rem;
  margin-bottom: var(--spacing-md);
}

.newsletter-form {
  display: flex;
  gap: 4px;
}

.newsletter-form input {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text-light);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  width: 100%;
}

.newsletter-form input:focus {
  border-color: var(--color-accent);
  background-color: rgba(255, 255, 255, 0.12);
}

.newsletter-form button {
  background-color: var(--color-accent);
  color: var(--color-text-light);
  padding: 10px var(--spacing-md);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background-color var(--transition-fast);
}

.newsletter-form button:hover {
  background-color: var(--color-accent-hover);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* ==========================================================================
   ANIMATIONS & EFFECTS
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-xl);
  }

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

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

  .hero-image-wrapper {
    order: -1;
  }

  .product-grid, .recipe-grid, .cooking-layout, .cart-page-layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .product-gallery {
    position: relative;
    top: 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }
}

@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: var(--spacing-lg) var(--spacing-xl);
    gap: var(--spacing-md);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    display: flex;
  }

  .header-container {
    justify-content: center;
    position: relative;
  }

  .header-actions {
    position: static;
  }

  .menu-btn {
    display: flex;
    position: absolute;
    left: var(--spacing-lg);
  }

  .cart-toggle {
    position: absolute;
    right: var(--spacing-lg);
  }

  .btn {
    padding: 0.75rem 1.2rem;
    font-size: 0.85rem;
    white-space: nowrap;
    min-height: 44px;
  }

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

  .newsletter-form {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .newsletter-form button {
    width: 100%;
    padding: 12px;
  }

  .menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }

  .recipe-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  .cross-promo-banner {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-lg);
  }

  .cart-item {
    grid-template-columns: 60px 1fr;
    gap: var(--spacing-md);
  }

  .cart-item-actions {
    grid-column: 2;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-sm);
  }
}

/* ==========================================================================
   ADVANCED INTERACTIVE FEATURES STYLING
   ========================================================================== */

/* Review star form */
.star-rating-form {
  display: flex;
  gap: 6px;
  font-size: 1.6rem;
  cursor: pointer;
  color: #cbd5e1;
  margin-bottom: var(--spacing-sm);
  justify-content: flex-start;
}
.star-rating-form .star-select {
  transition: transform var(--transition-fast), color var(--transition-fast);
}
.star-rating-form .star-select:hover {
  transform: scale(1.15);
}
.star-rating-form .star-select.active {
  color: var(--color-accent);
}

/* Upload input styling */
.upload-box {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  background-color: var(--color-bg-light);
  margin-bottom: var(--spacing-md);
}
.upload-box:hover {
  border-color: var(--color-accent);
  background-color: white;
}
.upload-box svg {
  width: 32px;
  height: 32px;
  color: var(--color-text-muted);
  margin: 0 auto 8px auto;
}

/* Meal Planner Side Drawer */
.planner-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  height: 100vh;
  background-color: white;
  box-shadow: -5px 0 25px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  border-left: 1px solid var(--color-border);
}
.planner-drawer.active {
  transform: translateX(0);
}
.planner-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}
.planner-drawer-close {
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}
.planner-drawer-close:hover {
  color: var(--color-error);
}
.planner-items-list {
  list-style: none;
  overflow-y: auto;
  flex-grow: 1;
  margin-bottom: var(--spacing-lg);
}

/* Floating Badged Action Buttons on recipes.html */
.planner-floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--color-primary);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.planner-floating-btn:hover {
  background-color: var(--color-accent);
  transform: scale(1.05);
}
.planner-floating-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--color-accent);
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.spinner-floating-btn {
  position: fixed;
  bottom: 95px;
  right: 20px;
  background-color: #10b981;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.spinner-floating-btn:hover {
  background-color: #059669;
  transform: scale(1.05);
}

/* Spinner Wheel Modal and Elements */
.spinner-wheel-container {
  position: relative;
  width: 290px;
  height: 290px;
  margin: var(--spacing-xl) auto;
}
.spinner-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px solid var(--color-primary);
  background: conic-gradient(
    var(--color-primary-light) 0deg 120deg,
    var(--color-accent) 120deg 240deg,
    #10b981 240deg 360deg
  );
  position: relative;
  box-shadow: var(--shadow-lg);
}
.spinner-label {
  position: absolute;
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  width: 110px;
  text-align: center;
}
.spinner-label-1 {
  top: 50px;
  left: 95px;
  transform: rotate(60deg);
}
.spinner-label-2 {
  top: 155px;
  left: 145px;
  transform: rotate(180deg);
}
.spinner-label-3 {
  top: 155px;
  left: 35px;
  transform: rotate(300deg);
}
.spinner-pointer {
  position: absolute;
  top: -15px;
  left: calc(50% - 15px);
  width: 30px;
  height: 30px;
  background-color: #f59e0b;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  z-index: 10;
}
.spinner-center {
  position: absolute;
  top: calc(50% - 25px);
  left: calc(50% - 25px);
  width: 50px;
  height: 50px;
  background-color: var(--color-bg-light);
  border: 4px solid var(--color-primary);
  border-radius: 50%;
  z-index: 5;
}

/* Grocery list compiled styling */
.grocery-list-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
  max-height: 350px;
  overflow-y: auto;
  padding-right: var(--spacing-sm);
}

.grocery-item .step-checkbox:checked + span {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

/* Mobilization shifts for side panels */
@media (max-width: 480px) {
  .planner-drawer {
    width: 100%;
  }
}

/* Featured Bundle Card Premium Styling */
.book-card.featured-bundle-card {
  border: 2px solid var(--color-accent);
  position: relative;
  box-shadow: 0 10px 25px rgba(190, 18, 60, 0.15);
  background: linear-gradient(to bottom, #fff, var(--color-bg-light));
  transform: scale(1.02);
  overflow: visible;
}

.book-card.featured-bundle-card:hover {
  transform: translateY(-5px) scale(1.04);
}

.book-card.featured-bundle-card .book-badge {
  background-color: var(--color-primary);
  color: white;
  border: 1px solid var(--color-accent);
}

.book-card.featured-bundle-card::before {
  content: '★ BEST SELLER ★';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 1px;
  z-index: 12;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* E-commerce Upsell Widget for Checkout Page */
.upsell-container {
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
  border: 1px dashed var(--color-accent);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: var(--spacing-xl);
  box-shadow: 0 4px 20px rgba(190, 18, 60, 0.05);
  text-align: left;
}

.upsell-title {
  color: var(--color-accent);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 6px 0 !important;
}

.upsell-text {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0 0 1.25rem 0 !important;
}

.upsell-text strong {
  color: var(--color-text-dark);
}

.upsell-items-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.upsell-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.upsell-item:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.upsell-item-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.upsell-item-img {
  width: 45px;
  height: 55px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.upsell-item-title {
  margin: 0 0 2px 0 !important;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
}

.upsell-item-price {
  margin: 0 !important;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.add-upsell-btn {
  background-color: var(--color-accent);
  color: white !important;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 6px rgba(190, 18, 60, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.add-upsell-btn:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(190, 18, 60, 0.25);
}

@media (max-width: 768px) {
  .upsell-container {
    padding: var(--spacing-md);
  }
  .upsell-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
  .add-upsell-btn {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   QUICK-CART SIDEBAR DRAWER STYLING
   ========================================================================== */
.quick-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  height: 100vh;
  background-color: white;
  box-shadow: -8px 0 30px rgba(15, 23, 42, 0.15);
  z-index: 1100;
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  border-left: 1px solid var(--color-border);
}

.quick-cart-drawer.active {
  transform: translateX(0);
}

.quick-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

#quick-cart-close {
  font-size: 1.75rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  line-height: 1;
}

#quick-cart-close:hover {
  color: var(--color-error);
}

.quick-cart-items-list {
  list-style: none;
  overflow-y: auto;
  flex-grow: 1;
  margin-bottom: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding-right: 4px;
}

.quick-cart-item {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--spacing-md);
}

.quick-cart-item-img {
  width: 50px;
  height: 65px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.quick-cart-item-info {
  flex-grow: 1;
}

.quick-cart-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 4px 0 !important;
  color: var(--color-primary);
  font-family: var(--font-sans);
  line-height: 1.4;
}

.quick-cart-item-price {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0 !important;
}

.quick-cart-footer {
  border-top: 1px solid var(--color-border);
  padding-top: var(--spacing-lg);
  background-color: white;
}

.quick-cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
}

@media (max-width: 480px) {
  .quick-cart-drawer {
    width: 100%;
  }
}

/* ==========================================================================
   GUIDED COOKING STYLINGS
   ========================================================================== */
.guided-progress-bar-wrap {
  width: 100%;
  background-color: var(--color-border);
  height: 6px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--spacing-xl);
}

.guided-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.guided-step-content {
  padding: var(--spacing-xl) 0;
}

#unit-toggle-btn {
  border-color: var(--color-border);
  color: var(--color-text-dark);
  transition: all var(--transition-fast);
}

#unit-toggle-btn:hover {
  background-color: var(--color-border);
  transform: translateY(-2px);
}

/* Gilded highlight for unit toggle */
#unit-toggle-btn.imperial {
  background-color: #fef3c7;
  border-color: #f59e0b;
  color: #d97706;
}

#unit-toggle-btn.imperial:hover {
  background-color: #fde68a;
  color: #b45309;
}




