/* ==========================================================================
   HSR Plate Artisanal Cake Studio - Main Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Color Palette */
  --bg-primary: #120b08;
  --bg-surface: #1e130e;
  --bg-card: #281912;
  --bg-light: #fbf7f2;
  --bg-light-surface: #ffffff;
  
  --text-main: #2b1c14;
  --text-muted: #6e5a4f;
  --text-light: #f7ebe1;
  --text-light-muted: #b8a69a;

  --accent-gold: #d4af37;
  --accent-gold-hover: #f3c948;
  --accent-rose: #e07a5f;
  --accent-rose-dark: #c85a3f;
  --accent-chocolate: #3d2317;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(43, 24, 16, 0.12);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.18);
  --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.25);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button, input, select, textarea {
  font: inherit;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Typography Helpers */
.font-heading { font-family: var(--font-heading); }
.text-gold { color: var(--accent-gold); }
.text-rose { color: var(--accent-rose); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #b89326 100%);
  color: #1a0f0a;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-gold-hover) 0%, var(--accent-gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-light);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.btn-secondary:hover {
  background: var(--accent-chocolate);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--accent-chocolate);
}

.btn-outline:hover {
  background: var(--accent-chocolate);
  color: var(--text-light);
}

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

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 1.1rem 0;
  background: rgba(18, 11, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.header.scrolled {
  padding: 0.75rem 0;
  background: rgba(18, 11, 8, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-badge {
  min-width: 48px;
  height: 44px;
  padding: 0 0.6rem;
  background: linear-gradient(135deg, var(--accent-gold), #8c6e1c);
  color: #120b08;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: var(--shadow-gold);
}

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

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.5px;
  line-height: 1;
}

.logo-sub {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  margin-top: 3px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  color: var(--text-light-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--text-light);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mobile-toggle:hover {
  background: var(--accent-chocolate);
  color: var(--accent-gold);
}

/* Alert Notification */
.alert-banner {
  margin-top: 90px;
  padding: 1rem 1.25rem;
  background: #d4edda;
  color: #155724;
  border-left: 5px solid #28a745;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.alert-banner.error {
  background: #f8d7da;
  color: #721c24;
  border-left-color: #dc3545;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 130px;
  padding-bottom: 80px;
  background: radial-gradient(circle at 70% 30%, #2b1a13 0%, #120b08 70%);
  color: var(--text-light);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-full);
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 4.5vw, 3.8rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero-title span {
  background: linear-gradient(135deg, #fff 30%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(0.98rem, 2vw, 1.15rem);
  color: var(--text-light-muted);
  margin-bottom: 2rem;
  max-width: 540px;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--accent-gold);
  margin-bottom: 0.1rem;
}

.stat-item p {
  font-size: 0.8rem;
  color: var(--text-light-muted);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(212, 175, 55, 0.25);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: var(--transition);
  width: 100%;
}

.image-frame:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.image-frame img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.floating-badge {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(30, 19, 14, 0.94);
  backdrop-filter: blur(10px);
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: var(--shadow-lg);
  max-width: calc(100% - 30px);
}

.badge-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #120b08;
  font-size: 1.1rem;
}

.badge-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
}

.badge-text span {
  font-size: 0.75rem;
  color: var(--accent-gold);
}

/* Feature Strip */
.feature-strip {
  background: var(--bg-surface);
  color: var(--text-light);
  padding: 2.2rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.8rem;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.strip-icon {
  font-size: 1.8rem;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.strip-info h4 {
  font-size: 0.98rem;
  color: var(--text-light);
  font-weight: 600;
}

.strip-info p {
  font-size: 0.82rem;
  color: var(--text-light-muted);
}

/* Section Header */
.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem auto;
}

.section-subtitle {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-rose);
  margin-bottom: 0.4rem;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--text-main);
  margin-bottom: 0.8rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius-full);
  background: var(--bg-light-surface);
  color: var(--text-main);
  border: 1px solid rgba(0,0,0,0.08);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-chocolate);
  color: var(--text-light);
  border-color: var(--accent-chocolate);
  box-shadow: var(--shadow-sm);
}

/* Cake Grid */
.cake-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.8rem;
}

.cake-card {
  background: var(--bg-light-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  position: relative;
}

.cake-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 175, 55, 0.4);
}

.card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

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

.cake-card:hover .card-img-wrap img {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-rose);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.card-content {
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-rating {
  color: var(--accent-gold);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.card-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  line-height: 1.5;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}

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

.price-amount {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-chocolate);
}

.price-unit {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Custom Cake Builder Section */
.custom-builder-section {
  background: linear-gradient(135deg, #1e130e 0%, #2b1912 100%);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.2rem, 4vw, 2.5rem);
  margin: 2rem auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.builder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.builder-form .form-group {
  margin-bottom: 1.4rem;
}

.builder-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-size: 0.92rem;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 0.65rem;
}

.option-card {
  padding: 0.7rem 0.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.option-card:hover, .option-card.selected {
  background: var(--accent-gold);
  color: #120b08;
  border-color: var(--accent-gold);
  font-weight: 700;
}

.option-card input {
  display: none;
}

.summary-box {
  background: rgba(0,0,0,0.35);
  padding: 1.6rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(212, 175, 55, 0.4);
}

.summary-box h3 {
  font-family: var(--font-heading);
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.summary-list {
  list-style: none;
  margin-bottom: 1.4rem;
}

.summary-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.92rem;
}

.total-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-gold);
}

/* Reviews / Testimonials */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.review-card {
  background: var(--bg-light-surface);
  padding: 1.8rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
}

.review-stars {
  color: var(--accent-gold);
  margin-bottom: 0.8rem;
}

.review-text {
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 1.4rem;
  font-size: 0.94rem;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-chocolate);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.reviewer-info h5 {
  font-size: 0.92rem;
  color: var(--text-main);
}

.reviewer-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* FAQ Section */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-light-surface);
  border-radius: var(--radius-md);
  margin-bottom: 0.9rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
}

.faq-question {
  width: 100%;
  padding: 1.1rem 1.3rem;
  text-align: left;
  background: none;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.faq-answer {
  padding: 0 1.3rem 1.1rem 1.3rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  display: none;
  line-height: 1.6;
}

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

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* Contact & Order Form */
.order-section {
  background: var(--bg-surface);
  color: var(--text-light);
  position: relative;
}

.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.form-box {
  background: var(--bg-card);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light-muted);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-light);
  transition: var(--transition);
  font-size: 0.95rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: rgba(0,0,0,0.4);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  padding: 1rem;
}

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

.modal-card {
  background: var(--bg-light-surface);
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 4vw, 2.2rem);
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.05);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--accent-rose);
  color: white;
}

/* Floating Mobile Order FAB */
.floating-order-fab {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 990;
  background: linear-gradient(135deg, var(--accent-gold), #b89326);
  color: #120b08;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5);
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255,255,255,0.4);
}

/* Footer */
.footer {
  background: #0d0705;
  color: var(--text-light-muted);
  padding: 3.5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--text-light);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.84rem;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */

/* Medium Devices (Tablets & Laptops < 992px) */
@media (max-width: 992px) {
  .hero-grid, .builder-grid, .order-grid, .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero {
    padding-top: 110px;
    padding-bottom: 60px;
    min-height: auto;
  }

  .hero-visual {
    order: -1;
  }

  .image-frame {
    transform: none;
    max-width: 500px;
    margin: 0 auto;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(18, 11, 8, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 3rem 1.5rem;
    gap: 1.8rem;
    transition: var(--transition);
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    font-size: 1.2rem;
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
  }

  .mobile-toggle {
    display: flex;
  }

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

  .floating-order-fab {
    display: flex;
  }
}

/* Small Devices (Mobiles < 640px) */
@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .stat-item h3 {
    font-size: 1.3rem;
  }

  .stat-item p {
    font-size: 0.72rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.6rem;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    -webkit-overflow-scrolling: touch;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

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

  .card-img-wrap {
    height: 200px;
  }

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

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

  .form-control {
    font-size: 16px; /* Prevents iOS auto-zoom */
  }

  .floating-badge {
    bottom: 10px;
    left: 10px;
    padding: 0.6rem 0.9rem;
  }
  
  .badge-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }
  
  .badge-text strong {
    font-size: 0.82rem;
  }

  .badge-text span {
    font-size: 0.7rem;
  }

  /* Modal bottom sheet behavior on small phones */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-card {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
  }
}
