/* ==============================================================================
   PATEL CAKE SHOPPE (NAVSARI) - ENHANCED SOFT UI DESIGN SYSTEM
   Artisanal Luxury, Warm Neumorphic Depth, Silky Glassmorphism & Mobile PWA
   ============================================================================== */

:root {
  /* Brand Luxury Palette */
  --color-maroon-deep: #461117;
  --color-maroon-rich: #5C131D;
  --color-maroon-hover: #7A1A27;
  --color-maroon-light: #961C24;
  --color-maroon-subtle: #FBEFEF;
  --color-rose-tint: #F5E2E4;

  /* Vanilla & Bakery Creams */
  --color-cream-light: #FFFDF9;
  --color-cream-base: #FAF7F2;
  --color-cream-dark: #F2ECE3;
  --color-cream-border: rgba(92, 19, 29, 0.08);

  /* Warm Accent Golds & Bronzes */
  --color-gold-base: #C59B27;
  --color-gold-light: #E6C86E;
  --color-gold-dark: #9A7718;

  /* Text & Contrast */
  --color-text-main: #1C1615;
  --color-text-body: #4A3C38;
  --color-text-muted: #7D6B66;
  --color-text-light: #A4938E;

  /* Status Colors */
  --color-veg-green: #15803D;
  --color-veg-bg: #DCFCE7;
  --color-status-pending: #D97706;
  --color-status-baking: #DC2626;
  --color-status-dispatch: #2563EB;
  --color-status-success: #16A34A;

  /* Enhanced Soft Shadows & Neumorphic Depths */
  --shadow-soft-sm: 0 2px 8px rgba(92, 19, 29, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-soft-md: 0 8px 24px -4px rgba(92, 19, 29, 0.07), 0 3px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-soft-lg: 0 16px 36px -6px rgba(92, 19, 29, 0.1), 0 6px 12px -4px rgba(0, 0, 0, 0.04);
  --shadow-soft-float: 0 20px 40px -8px rgba(92, 19, 29, 0.18);
  --shadow-soft-inset: inset 0 2px 4px rgba(0, 0, 0, 0.04), inset 0 -1px 2px rgba(255, 255, 255, 0.6);
  --shadow-soft-pill: 0 4px 14px rgba(92, 19, 29, 0.12);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--color-cream-base);
  color: var(--color-text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Typography Classes */
.font-serif {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
  letter-spacing: 0.02em;
}

.font-script {
  font-family: 'Alex Brush', cursive;
  font-weight: 400;
}

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

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

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

/* Soft Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Soft Cards */
.soft-card {
  background: var(--color-cream-light);
  border: 1px solid var(--color-cream-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft-md);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

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

.soft-inset {
  background: var(--color-cream-base);
  border: 1px solid rgba(92, 19, 29, 0.08);
  box-shadow: var(--shadow-soft-inset);
  border-radius: var(--radius-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-maroon-rich) 0%, var(--color-maroon-deep) 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-soft-pill);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-maroon-hover) 0%, var(--color-maroon-rich) 100%);
  box-shadow: 0 6px 18px rgba(92, 19, 29, 0.25);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-maroon-subtle);
  color: var(--color-maroon-rich);
  border: 1px solid rgba(92, 19, 29, 0.12);
}

.btn-secondary:hover {
  background: var(--color-rose-tint);
  border-color: rgba(92, 19, 29, 0.2);
}

.btn-gold {
  background: linear-gradient(135deg, #DFB943 0%, #C59B27 100%);
  color: #1A1208;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(197, 155, 39, 0.25);
}

.btn-gold:hover {
  filter: brightness(1.05);
}

.btn-outline {
  background: transparent;
  color: var(--color-maroon-rich);
  border: 1.5px solid var(--color-maroon-rich);
}

.btn-outline:hover {
  background: var(--color-maroon-rich);
  color: #FFFFFF;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  border-radius: var(--radius-pill);
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Pure Veg Icon Stamp */
.veg-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #F0FDF4;
  color: var(--color-veg-green);
  border: 1px solid #BBF7D0;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.veg-icon-square {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--color-veg-green);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.veg-icon-dot {
  width: 6px;
  height: 6px;
  background: var(--color-veg-green);
  border-radius: 50%;
}

/* 15-Minute Live Delivery Badge */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #DC2626;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(220, 38, 38, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* Top Announcement Bar */
.top-announcement-bar {
  background: linear-gradient(90deg, #380C10 0%, var(--color-maroon-rich) 50%, #380C10 100%);
  color: #FFFDF9;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 500;
}

/* Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-cream-border);
  box-shadow: var(--shadow-soft-sm);
  transition: all var(--transition-fast);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
  gap: 1.25rem;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}


.brand-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 42px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 600px) {
  .brand-logo-img {
    height: 34px;
    max-width: 165px;
  }
}


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

.brand-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-maroon-deep);
  line-height: 1.1;
  letter-spacing: 0.05em;
}

.brand-location {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-gold-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Location Selector Pill in Header */
.location-selector-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-cream-base);
  border: 1px solid rgba(92, 19, 29, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-maroon-rich);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.location-selector-pill:hover {
  background: var(--color-maroon-subtle);
  border-color: var(--color-maroon-rich);
}

/* Main Nav Links */
.desktop-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.desktop-nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-body);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

.desktop-nav-link:hover, .desktop-nav-link.active {
  color: var(--color-maroon-rich);
}

.desktop-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-maroon-rich);
  border-radius: 2px;
}

/* Header Action Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-icon-btn {
  position: relative;
  background: var(--color-maroon-subtle);
  color: var(--color-maroon-rich);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(92, 19, 29, 0.1);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cart-icon-btn:hover {
  background: var(--color-maroon-rich);
  color: #FFFFFF;
}

.cart-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 3.5rem 0 4rem 0;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, #FAF0EE 0%, var(--color-cream-base) 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
}

.hero-subtitle-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFFFF;
  border: 1px solid rgba(92, 19, 29, 0.1);
  box-shadow: var(--shadow-soft-sm);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-maroon-rich);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--color-maroon-deep);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-headline span.gold-accent {
  color: var(--color-gold-dark);
  font-family: 'Alex Brush', cursive;
  font-weight: normal;
  font-size: 1.3em;
  display: inline-block;
  vertical-align: middle;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--color-text-body);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-features-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-body);
}

.hero-visual-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft-float);
  border: 4px solid #FFFFFF;
}

.hero-visual-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-visual-card:hover img {
  transform: scale(1.03);
}

.hero-floating-tag {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Category Filter Bar */
.category-filter-nav {
  padding: 1rem 0;
  background: var(--color-cream-light);
  border-bottom: 1px solid var(--color-cream-border);
  position: sticky;
  top: 4.25rem;
  z-index: 90;
}

.category-scroll-container {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.25rem 0.5rem;
}

.category-scroll-container::-webkit-scrollbar {
  display: none;
}

.cat-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  background: var(--color-cream-base);
  border: 1px solid rgba(92, 19, 29, 0.1);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-body);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.cat-pill-btn:hover {
  background: var(--color-maroon-subtle);
  color: var(--color-maroon-rich);
}

.cat-pill-btn.active {
  background: linear-gradient(135deg, var(--color-maroon-rich) 0%, var(--color-maroon-deep) 100%);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(92, 19, 29, 0.2);
}

/* Product Cards Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.product-card {
  background: var(--color-cream-light);
  border: 1px solid var(--color-cream-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft-md);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft-lg);
  border-color: rgba(92, 19, 29, 0.16);
}

.product-image-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--color-cream-dark);
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.05);
}

.product-badge-overlay {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 2;
}

.product-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-name {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gold-dark);
  margin-bottom: 0.25rem;
}

.product-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-maroon-deep);
  line-height: 1.3;
  margin-bottom: 0.45rem;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Weight Variant Selector Pills */
.variant-pills-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
}

.variant-pill {
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--color-cream-base);
  border: 1px solid rgba(92, 19, 29, 0.12);
  color: var(--color-text-body);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.variant-pill:hover {
  border-color: var(--color-maroon-rich);
}

.variant-pill.selected {
  background: var(--color-maroon-subtle);
  border-color: var(--color-maroon-rich);
  color: var(--color-maroon-rich);
  font-weight: 700;
}

.product-footer-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(92, 19, 29, 0.06);
}

.product-price-box {
  display: flex;
  flex-direction: column;
}

.product-price-current {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-maroon-deep);
}

.product-price-original {
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-decoration: line-through;
}

/* Cart Slide-Over Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 22, 21, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--color-cream-light);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer-overlay.open .cart-drawer {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-cream-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-cream-base);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--color-cream-border);
  background: var(--color-cream-base);
}

/* Cart Item Card */
.cart-item-card {
  display: flex;
  gap: 1rem;
  background: var(--color-cream-light);
  border: 1px solid var(--color-cream-border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  box-shadow: var(--shadow-soft-sm);
}

.cart-item-thumb {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(92, 19, 29, 0.15);
  border-radius: var(--radius-pill);
  background: var(--color-cream-base);
  overflow: hidden;
}

.cart-qty-btn {
  width: 1.8rem;
  height: 1.8rem;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-maroon-rich);
  font-weight: 700;
}

.cart-qty-val {
  min-width: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Floating Bottom Cart Bar (Mobile) */
.floating-cart-bar {
  position: fixed;
  bottom: 4.5rem; /* Above mobile bottom nav */
  left: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--color-maroon-deep) 0%, var(--color-maroon-rich) 100%);
  color: #FFFFFF;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 25px rgba(92, 19, 29, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 95;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

.floating-cart-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Bottom Navigation Bar (PWA Experience) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4rem;
  background: rgba(255, 253, 249, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--color-cream-border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
  z-index: 100;
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  width: 20%;
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.mobile-nav-item.active, .mobile-nav-item:hover {
  color: var(--color-maroon-rich);
}

.mobile-nav-item i {
  width: 1.35rem;
  height: 1.35rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 22, 21, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--color-cream-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft-float);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-cream-border);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-cream-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-cream-base);
  flex-shrink: 0;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-body);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-cream-light);
  border: 1.5px solid rgba(92, 19, 29, 0.12);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--color-text-main);
  box-shadow: var(--shadow-soft-inset);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-maroon-rich);
  box-shadow: 0 0 0 3px rgba(92, 19, 29, 0.1);
  background: #FFFFFF;
}

/* Admin Dashboard Specific Styles */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: var(--color-cream-base);
}

.admin-sidebar {
  background: #250B0E;
  color: #FFFDF9;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: #E2D1D3;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 0.35rem;
  transition: all var(--transition-fast);
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.admin-nav-item.active {
  background: linear-gradient(135deg, var(--color-maroon-rich) 0%, #7A1A27 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.admin-main-area {
  padding: 1.75rem 2rem;
  overflow-y: auto;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-cream-border);
}

/* Order Cards in Admin */
.live-order-card {
  background: #FFFFFF;
  border: 1px solid var(--color-cream-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border-left: 5px solid var(--color-status-baking);
  transition: all var(--transition-fast);
}

.live-order-card.status-Pending { border-left-color: var(--color-status-pending); }
.live-order-card.status-Confirmed { border-left-color: #2563EB; }
.live-order-card.status-Preparing { border-left-color: #DC2626; }
.live-order-card.status-Ready { border-left-color: #7C3AED; }
.live-order-card.status-Dispatched { border-left-color: #0891B2; }
.live-order-card.status-Delivered { border-left-color: var(--color-status-success); }
.live-order-card.status-Cancelled { border-left-color: #9CA3AF; }

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-pill.pending { background: #FEF3C7; color: #92400E; }
.status-pill.confirmed { background: #DBEAFE; color: #1E40AF; }
.status-pill.preparing { background: #FEE2E2; color: #991B1B; }
.status-pill.ready { background: #EDE9FE; color: #5B21B6; }
.status-pill.dispatch { background: #CFFAFE; color: #155E75; }
.status-pill.delivered { background: #DCFCE7; color: #166534; }
.status-pill.cancelled { background: #F3F4F6; color: #4B5563; }

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast-msg {
  background: #1C1615;
  color: #FFFFFF;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  pointer-events: auto;
  animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-msg.success { border-left: 4px solid var(--color-veg-green); }
.toast-msg.error { border-left: 4px solid #DC2626; }
.toast-msg.info { border-left: 4px solid var(--color-gold-base); }

@keyframes toast-in {
  from { transform: translateY(15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==============================================================================
   RESPONSIVE DESIGN SYSTEM: PHONE VERTICAL (PORTRAIT) & HORIZONTAL (LANDSCAPE)
   ============================================================================== */

/* Base Phone / Tablet (max-width: 900px) */
@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    display: none;
    position: fixed;
    z-index: 150;
    width: 260px;
  }
  .admin-sidebar.open {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-visual-card img {
    height: 280px;
  }
}

/* Phone Portrait & Small Screens (max-width: 768px) */
@media (max-width: 768px) {
  html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  body {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }

  /* Announcement Bar */
  .top-announcement-bar {
    padding: 0.35rem 0.75rem;
    font-size: 0.72rem;
    flex-direction: column;
    gap: 0.25rem;
    line-height: 1.3;
  }
  .top-announcement-bar span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  /* Site Header */
  .site-header {
    height: 3.85rem;
  }
  .nav-wrapper {
    height: 3.85rem;
    gap: 0.5rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  .desktop-nav-links {
    display: none !important;
  }
  .location-selector-pill {
    display: none !important; /* Hide wide pill on mobile to prevent overflow */
  }
  .brand-group {
    gap: 0.5rem;
  }
  .brand-logo-img {
    height: 34px;
  }
  .brand-title {
    font-size: 1.15rem;
    letter-spacing: 0.03em;
  }
  .brand-location {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
  }
  .header-actions {
    gap: 0.5rem;
  }
  .header-actions .btn-primary {
    display: none !important; /* "Custom" is featured in bottom nav bar */
  }
  .header-actions #headerInstallBtn {
    display: none !important;
  }
  .cart-icon-btn {
    width: 2.35rem;
    height: 2.35rem;
  }

  /* Category Filter Navigation */
  .category-filter-nav {
    top: 3.85rem;
    padding: 0.5rem 0;
    background: rgba(255, 253, 249, 0.98);
  }
  .category-scroll-container {
    padding: 0.2rem 0.85rem;
    gap: 0.45rem;
  }
  .cat-pill-btn {
    padding: 0.42rem 0.85rem;
    font-size: 0.8rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 1.75rem 0 2rem 0;
  }
  .hero-headline {
    font-size: clamp(1.65rem, 6vw, 2.3rem);
    line-height: 1.2;
    margin-bottom: 0.85rem;
  }
  .hero-headline span.gold-accent {
    font-size: 1.15em;
  }
  .hero-description {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
  }
  .hero-features-row {
    gap: 0.75rem;
    margin-top: 1.25rem;
  }
  .hero-visual-card img {
    height: 220px;
  }
  .hero-floating-tag {
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    padding: 0.65rem 0.85rem;
  }
  .hero-floating-tag .font-serif {
    font-size: 0.95rem !important;
  }

  /* Product Catalog Grid */
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.15rem;
    padding: 1.25rem 0 3rem 0;
  }
  .product-image-wrap {
    height: 185px;
  }
  .product-body {
    padding: 1rem;
  }
  .product-title {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
  }
  .product-desc {
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
    -webkit-line-clamp: 2;
  }
  .variant-pills-row {
    gap: 0.35rem;
    margin-bottom: 0.85rem;
  }
  .variant-pill {
    padding: 0.25rem 0.55rem;
    font-size: 0.75rem;
  }
  .product-price-current {
    font-size: 1.25rem;
  }

  /* Slide-Over Cart Drawer */
  .cart-drawer {
    width: 100%;
    max-width: 100%;
  }
  .cart-drawer-header {
    padding: 1rem 1.25rem;
  }
  .cart-drawer-body {
    padding: 1rem 1.25rem;
  }
  .cart-drawer-footer {
    padding: 1rem 1.25rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
  .cart-item-card {
    padding: 0.75rem;
    gap: 0.75rem;
  }
  .cart-item-thumb {
    width: 60px;
    height: 60px;
  }

  /* Floating Bottom Cart Bar (Portrait) */
  .floating-cart-bar {
    bottom: calc(4.35rem + env(safe-area-inset-bottom, 0px));
    left: 0.85rem;
    right: 0.85rem;
    padding: 0.75rem 1.15rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 24px rgba(92, 19, 29, 0.35);
  }

  /* Mobile Bottom Navigation Bar (Portrait) */
  .mobile-bottom-nav {
    display: flex;
    height: 3.85rem;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mobile-nav-item {
    gap: 0.15rem;
    font-size: 0.68rem;
  }
  .mobile-nav-item i {
    width: 1.25rem;
    height: 1.25rem;
  }

  /* Modal Dialogues (Portrait Bottom Sheet on Mobile) */
  .modal-overlay {
    padding: 0.65rem;
    align-items: flex-end;
  }
  .modal-card {
    max-height: 92vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-width: 100%;
  }
  .modal-header {
    padding: 1rem 1.2rem;
  }
  .modal-body {
    padding: 1.15rem;
  }

  /* Responsive Form Grids: Collapse 2-column inputs to 1-column on phone */
  .modal-body div[style*="grid-template-columns: 1fr 1fr"],
  .form-responsive-grid {
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
  }

  .admin-main-area {
    padding: 1rem;
  }
}

/* Extra Compact Phones (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .product-image-wrap {
    height: 180px;
  }
  .brand-logo-img {
    height: 30px;
  }
  .brand-title {
    font-size: 1.05rem;
  }
}

/* ==============================================================================
   PHONE HORIZONTAL (LANDSCAPE) VIEWPORT OPTIMIZATIONS
   Handles phones rotated horizontally (height: 300px - 540px, width: 550px - 950px)
   Prevents vertical crowding & restores full usability!
   ============================================================================== */
@media (orientation: landscape) and (max-height: 540px) {
  body {
    padding-bottom: calc(3.2rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Hide announcement bar in phone landscape to save precious vertical space */
  .top-announcement-bar {
    display: none !important;
  }

  /* Ultra-slim Sticky Header */
  .site-header {
    height: 3.15rem !important;
  }
  .nav-wrapper {
    height: 3.15rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .brand-logo-img {
    height: 26px !important;
  }
  .brand-title {
    font-size: 1rem !important;
  }
  .brand-location {
    display: none !important;
  }
  .location-selector-pill {
    display: none !important;
  }
  .header-actions .btn-primary {
    display: none !important;
  }
  .cart-icon-btn {
    width: 2.15rem !important;
    height: 2.15rem !important;
  }

  /* Compact Sticky Category Filter Bar */
  .category-filter-nav {
    top: 3.15rem !important;
    padding: 0.3rem 0 !important;
  }
  .cat-pill-btn {
    padding: 0.3rem 0.75rem !important;
    font-size: 0.75rem !important;
  }

  /* Compact Hero Section in Landscape */
  .hero-section {
    padding: 1rem 0 1.25rem 0 !important;
  }
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr !important;
    gap: 1.25rem !important;
    align-items: center !important;
  }
  .hero-headline {
    font-size: 1.45rem !important;
    margin-bottom: 0.4rem !important;
    line-height: 1.15 !important;
  }
  .hero-description {
    font-size: 0.82rem !important;
    margin-bottom: 0.65rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  .hero-features-row {
    margin-top: 0.65rem !important;
    gap: 0.65rem !important;
  }
  .hero-visual-card img {
    height: 160px !important;
  }
  .hero-floating-tag {
    bottom: 0.5rem !important;
    left: 0.5rem !important;
    right: 0.5rem !important;
    padding: 0.45rem 0.65rem !important;
  }
  .hero-floating-tag .font-serif {
    font-size: 0.88rem !important;
  }

  /* Multi-column Compact Product Grid in Landscape */
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
    gap: 0.85rem !important;
    padding: 0.85rem 0 2rem 0 !important;
  }
  .product-image-wrap {
    height: 130px !important;
  }
  .product-body {
    padding: 0.75rem !important;
  }
  .product-title {
    font-size: 0.98rem !important;
    margin-bottom: 0.25rem !important;
  }
  .product-desc {
    font-size: 0.75rem !important;
    margin-bottom: 0.45rem !important;
    -webkit-line-clamp: 2 !important;
  }
  .variant-pills-row {
    margin-bottom: 0.5rem !important;
    gap: 0.25rem !important;
  }
  .variant-pill {
    padding: 0.18rem 0.45rem !important;
    font-size: 0.7rem !important;
  }
  .product-price-current {
    font-size: 1.15rem !important;
  }

  /* Slim Mobile Bottom Nav in Landscape */
  .mobile-bottom-nav {
    height: 2.85rem !important;
  }
  .mobile-nav-item i {
    width: 1.05rem !important;
    height: 1.05rem !important;
  }
  .mobile-nav-item span {
    font-size: 0.62rem !important;
  }

  /* Compact Pill-Style Floating Cart Bar in Landscape (Docked to right corner) */
  .floating-cart-bar {
    left: auto !important;
    right: 1rem !important;
    max-width: 320px !important;
    bottom: calc(3.15rem + env(safe-area-inset-bottom, 0px)) !important;
    padding: 0.55rem 0.95rem !important;
    font-size: 0.82rem !important;
    box-shadow: 0 6px 18px rgba(92, 19, 29, 0.4) !important;
  }

  /* Modals in Landscape (Center aligned, scrollable body) */
  .modal-overlay {
    padding: 0.5rem !important;
    align-items: center !important;
  }
  .modal-card {
    max-height: 94vh !important;
    height: 94vh !important;
    max-width: 640px !important;
    border-radius: var(--radius-lg) !important;
  }
  .modal-header {
    padding: 0.65rem 1rem !important;
  }
  .modal-body {
    padding: 0.75rem 1rem !important;
  }
  /* In landscape, 2 columns are great because horizontal width is ample */
  .modal-body div[style*="grid-template-columns: 1fr 1fr"],
  .form-responsive-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.65rem !important;
  }
}


/* Print Invoice Slip for Receipt Printers */
@media print {
  body * {
    visibility: hidden;
  }
  .printable-invoice, .printable-invoice * {
    visibility: visible;
  }
  .printable-invoice {
    position: absolute;
    left: 0;
    top: 0;
    width: 80mm;
    margin: 0;
    padding: 10px;
    font-family: monospace;
    font-size: 12px;
  }
}


/* ==========================================================================
   PATEL THE CAKE SHOPPE - AUTHENTIC PHYSICAL ORDER MEMO SLIP STYLES
   Exact digital replica of the physical red & cream order memo slip
   ========================================================================== */
.order-slip-wrapper {
  max-width: 780px;
  margin: 1.5rem auto 3rem auto;
  padding: 0 0.5rem;
}

.order-slip-container {
  background: #FFFDF9;
  border-radius: 4px;
  box-shadow: 0 10px 35px rgba(92, 19, 29, 0.15), 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #EADBCC;
  position: relative;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1A1A1A;
}

/* Perforated tear-off notepad top binding */
.slip-notepad-top {
  background: #E8F5E9;
  border-bottom: 2px dashed #C81E27;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: #2E7D32;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.slip-outer-frame {
  margin: 0.85rem;
  border: 2.5px solid #C81E27;
  padding: 0.65rem;
  background: #FFFDF9;
  position: relative;
}

.slip-inner-frame {
  border: 1px solid #C81E27;
  padding: 0.75rem;
}

/* Slip Header */
.slip-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #C81E27;
}

.slip-brand-emblem {
  border: 2px solid #C81E27;
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  text-align: center;
  color: #C81E27;
  line-height: 1.1;
  font-weight: 800;
  min-width: 82px;
}

.slip-brand-emblem .tm {
  font-size: 0.55rem;
  display: block;
  text-align: right;
  margin-top: -2px;
}

.slip-brand-emblem .emblem-title {
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.slip-brand-emblem .emblem-sub {
  font-size: 0.55rem;
  letter-spacing: 0.5px;
}

.slip-title-group {
  text-align: center;
  flex: 1;
}

.slip-main-title {
  font-family: 'Cinzel', serif, Georgia;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 900;
  color: #C81E27;
  letter-spacing: 2px;
  line-height: 1;
  margin: 0;
}

.slip-subtitle {
  font-family: 'Cinzel', serif, Georgia;
  font-size: clamp(0.75rem, 1.8vw, 1.05rem);
  font-weight: 800;
  color: #C81E27;
  letter-spacing: 3px;
  margin-top: 0.15rem;
}

.slip-contacts-top {
  text-align: right;
  font-size: 0.72rem;
  font-weight: 700;
  color: #C81E27;
  line-height: 1.35;
}

.slip-contacts-top a {
  color: #C81E27;
  text-decoration: none;
}

/* Red Address Banner Bar */
.slip-address-banner {
  background: #C81E27;
  color: #FFFFFF;
  text-align: center;
  padding: 0.4rem 0.75rem;
  font-size: clamp(0.68rem, 1.6vw, 0.82rem);
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

/* Slip Form Lines with authentic paper dotted underlines */
.slip-fields-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.slip-row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.slip-label {
  color: #C81E27;
  font-weight: 800;
  font-size: 0.92rem;
  white-space: nowrap;
}

.slip-input-line {
  border: none;
  border-bottom: 1.5px dotted #C81E27;
  background: transparent;
  padding: 0.15rem 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1A1A1A;
  flex: 1;
  outline: none;
  font-family: inherit;
  min-width: 140px;
}

.slip-input-line:focus {
  border-bottom: 2px solid #C81E27;
  background: rgba(200, 30, 39, 0.03);
}

.slip-select-line {
  border: none;
  border-bottom: 1.5px dotted #C81E27;
  background: transparent;
  padding: 0.15rem 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1A1A1A;
  outline: none;
  font-family: inherit;
  flex: 1;
  cursor: pointer;
}

.slip-stamp-number {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.45rem;
  font-weight: 900;
  color: #C81E27;
  letter-spacing: 1px;
}

/* Main Two-Column section: Fields on Left, Sp. Remarks Box on Right */
.slip-split-section {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.slip-left-fields {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* Sp. Remarks Box */
.slip-remarks-box {
  border: 1.5px solid #C81E27;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #FFFDF9;
}

.slip-remarks-header {
  border-bottom: 1.5px solid #C81E27;
  text-align: center;
  color: #C81E27;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.25rem 0.5rem;
  background: rgba(200, 30, 39, 0.04);
}

.slip-remarks-body {
  padding: 0.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slip-remarks-textarea {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  resize: vertical;
  font-size: 0.85rem;
  font-family: inherit;
  line-height: 1.4;
  flex: 1;
  min-height: 110px;
}

.slip-photo-upload-wrap {
  border-top: 1px dashed #C81E27;
  padding-top: 0.45rem;
  font-size: 0.75rem;
  text-align: center;
}

/* Bottom Calculation & Terms Section */
.slip-bottom-section {
  display: grid;
  grid-template-columns: 1fr 230px;
  border: 1.5px solid #C81E27;
  margin-top: 0.75rem;
}

.slip-terms-box {
  padding: 0.65rem 0.85rem;
  font-size: 0.73rem;
  line-height: 1.45;
  color: #C81E27;
  border-right: 1.5px solid #C81E27;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-weight: 700;
}

.slip-terms-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.slip-terms-box li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
}

.slip-terms-box li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 1.1rem;
  line-height: 1;
}

/* Right Side Calculation Table */
.slip-calc-table {
  width: 100%;
  border-collapse: collapse;
}

.slip-calc-table tr {
  border-bottom: 1.5px solid #C81E27;
}

.slip-calc-table tr:last-child {
  border-bottom: none;
}

.slip-calc-table td {
  padding: 0.28rem 0.5rem;
  font-size: 0.84rem;
}

.slip-calc-table td.calc-label {
  color: #C81E27;
  font-weight: 800;
  border-right: 1.5px solid #C81E27;
  white-space: nowrap;
  width: 50%;
}

.slip-calc-table td.calc-input-cell {
  padding: 0;
}

.slip-calc-table input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.28rem 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1A1A1A;
  outline: none;
  text-align: right;
  font-family: inherit;
}

.slip-calc-table input:focus {
  background: rgba(200, 30, 39, 0.04);
}

/* Sample Cakes Visual Row */
.slip-sample-cakes-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.65rem 0.5rem 0.4rem 0.5rem;
  border-top: 1.5px solid #C81E27;
  margin-top: 0.65rem;
  gap: 0.5rem;
}

.slip-sample-cake-card {
  text-align: center;
  flex: 1;
}

.slip-sample-cake-img {
  width: 78px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #C81E27;
  display: block;
  margin: 0 auto;
}

.slip-sample-cake-caption {
  font-size: 0.65rem;
  color: #C81E27;
  font-weight: 700;
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bottom Red Footer Strip */
.slip-footer-strip {
  background: #C81E27;
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.85rem;
  font-size: clamp(0.72rem, 1.8vw, 0.84rem);
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
}

/* Action Controls Panel below slip */
.slip-actions-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 680px) {
  .slip-split-section {
    grid-template-columns: 1fr;
  }
  .slip-remarks-box {
    min-height: 140px;
  }
  .slip-bottom-section {
    grid-template-columns: 1fr;
  }
  .slip-terms-box {
    border-right: none;
    border-bottom: 1.5px solid #C81E27;
  }
  .slip-sample-cake-img {
    width: 60px;
    height: 50px;
  }
}

/* Clean Print Stylesheet */
@media print {
  body {
    background: #FFFFFF !important;
  }
  .site-header,
  .top-announcement-bar,
  .mobile-bottom-nav,
  .floating-cart-bar,
  .slip-actions-panel,
  .site-footer {
    display: none !important;
  }
  .order-slip-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .order-slip-container {
    box-shadow: none !important;
    border: none !important;
  }
  .slip-notepad-top {
    display: none !important;
  }
}
