/* ==========================================================================
   SWEET DELIGHTS BAKERY - DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

/* Design Variables */
:root {
  --color-bg-cream: #FFF8F0;
  --color-brand-brown: #8B4513;
  --color-brand-brown-light: #A0522D;
  --color-dark-brown: #3E2723;
  --color-accent-orange: #FF6B35;
  --color-accent-orange-hover: #E85B25;
  --color-accent-orange-alpha: rgba(255, 107, 53, 0.1);
  --color-soft-cream: #FFFDF9;
  --color-white: #FFFFFF;
  --color-gray-light: #F7EFE5;
  --color-gray-medium: #E8D8C8;
  --color-gray-dark: #8D6E63;
  
  --color-success: #2E7D32;
  --color-success-bg: #E8F5E9;
  --color-info: #1565C0;
  --color-info-bg: #E3F2FD;
  
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-full: 9999px;
  
  --shadow-sm: 0 4px 6px -1px rgba(139, 69, 19, 0.05), 0 2px 4px -1px rgba(139, 69, 19, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(139, 69, 19, 0.08), 0 4px 6px -2px rgba(139, 69, 19, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(139, 69, 19, 0.12), 0 10px 10px -5px rgba(139, 69, 19, 0.06);
  --shadow-glow: 0 0 15px rgba(255, 107, 53, 0.4);
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  --header-height: 80px;
}

/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg-cream);
  color: var(--color-dark-brown);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  outline: none;
}

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

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
}

.text-center { text-align: center; }
.accent-text { color: var(--color-accent-orange); }
.hide { display: none !important; }

/* Grid & Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 24px;
  padding-left: 24px;
}

.section-padding {
  padding-top: 60px;
  padding-bottom: 60px;
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 90px;
    padding-bottom: 90px;
  }
}

.divider {
  width: 60px;
  height: 4px;
  background: var(--color-accent-orange);
  border-radius: var(--border-radius-full);
  margin: 16px auto;
}

.section-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent-orange);
  margin-bottom: 8px;
}

.section-title {
  font-size: 32px;
  color: var(--color-brand-brown);
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 40px;
  }
}

.section-paragraph {
  max-width: 720px;
  margin: 0 auto;
  color: var(--color-gray-dark);
  font-size: 18px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: var(--border-radius-full);
  transition: var(--transition-smooth);
  font-size: 15px;
}

.btn-primary {
  background-color: var(--color-accent-orange);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--color-accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-brand-brown);
  border: 2px solid var(--color-brand-brown);
}

.btn-secondary:hover {
  background-color: var(--color-brand-brown);
  color: var(--color-white);
  transform: translateY(-2px);
}

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

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

.whatsapp-btn {
  background-color: #25D366;
  color: var(--color-white) !important;
  border: none;
}

.whatsapp-btn:hover {
  background-color: #20BA56;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}

/* HEADER & NAVIGATION */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(255, 248, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 69, 19, 0.08);
  z-index: 100;
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
  color: var(--color-brand-brown);
  font-family: var(--font-serif);
}

.logo-icon {
  color: var(--color-accent-orange);
}

.desktop-nav {
  display: none;
}

@media (min-width: 992px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 12px;
  }
}

.nav-link {
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--border-radius-full);
  color: var(--color-dark-brown);
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link:hover {
  color: var(--color-accent-orange);
  background-color: rgba(255, 107, 53, 0.05);
}

.nav-link.active {
  color: var(--color-white);
  background-color: var(--color-brand-brown);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Cart Trigger and Badge */
.cart-trigger {
  position: relative;
  background-color: var(--color-white);
  color: var(--color-brand-brown);
  border: 1px solid var(--color-gray-medium);
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-bounce);
}

.cart-trigger:hover {
  border-color: var(--color-accent-orange);
  color: var(--color-accent-orange);
  transform: scale(1.05);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--color-accent-orange);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--color-white);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  background-color: var(--color-white);
  color: var(--color-brand-brown);
  border: 1px solid var(--color-gray-medium);
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* MOBILE NAV DRAWER */
.mobile-nav-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  z-index: 99;
  visibility: hidden;
  opacity: 0;
  transition: var(--transition-smooth);
}

.mobile-nav-drawer.open {
  visibility: visible;
  opacity: 1;
}

.mobile-nav-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background-color: var(--color-soft-cream);
  border-right: 1px solid rgba(139, 69, 19, 0.1);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  transform: translateX(-100%);
  transition: var(--transition-smooth);
  z-index: 101;
}

.mobile-nav-drawer.open .mobile-nav-content {
  transform: translateX(0);
}

.mobile-nav-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(62, 39, 35, 0.4);
  backdrop-filter: blur(4px);
  z-index: 100;
}

.mobile-nav-link {
  font-size: 18px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--border-radius-md);
  color: var(--color-dark-brown);
  text-align: left;
  transition: var(--transition-smooth);
}

.mobile-nav-link:hover {
  background-color: rgba(255, 107, 53, 0.05);
  color: var(--color-accent-orange);
}

.mobile-nav-link.active {
  background-color: var(--color-brand-brown);
  color: var(--color-white);
}

/* APP MAIN & ROUTING VIEW SECTIONS */
.app-main {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  position: relative;
}

.view-section {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.view-section.active {
  display: block;
}

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

/* PAGE 1: HOME VIEW */
/* Hero Banner */
.hero-banner {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  color: var(--color-white);
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-banner {
    height: 600px;
  }
}

.hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.1); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(62, 39, 35, 0.85) 0%, rgba(62, 39, 35, 0.5) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-content {
    text-align: left;
    margin: 0 0 0 10%;
  }
}

.hero-subtitle {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent-orange);
  margin-bottom: 16px;
  display: block;
}

.hero-title {
  font-size: 40px;
  margin-bottom: 20px;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 56px;
  }
}

.hero-description {
  font-size: 16px;
  margin-bottom: 32px;
  opacity: 0.9;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 19px;
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

@media (min-width: 576px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

/* Welcome Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.info-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-light);
  transition: var(--transition-smooth);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gray-medium);
}

.info-icon-box {
  width: 56px;
  height: 56px;
  background-color: var(--color-accent-orange-alpha);
  color: var(--color-accent-orange);
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.info-card h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-brand-brown);
}

.info-card p {
  color: var(--color-gray-dark);
  font-size: 15px;
  margin-bottom: 4px;
}

/* CAROUSEL SECTION */
.carousel-wrapper {
  position: relative;
  max-width: 800px;
  margin: 40px auto 0;
  padding: 0 16px;
}

.reviews-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: auto;
  min-height: 240px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.95);
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
  display: flex;
  justify-content: center;
}

.carousel-slide.active {
  position: relative;
  opacity: 1;
  transform: scale(1);
  visibility: visible;
}

.review-carousel-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gray-light);
  width: 100%;
  text-align: center;
}

.carousel-quote-icon {
  color: var(--color-accent-orange-hover);
  opacity: 0.15;
  margin-bottom: -16px;
}

.stars-display {
  display: flex;
  justify-content: center;
  gap: 4px;
  color: #FFB300;
  margin-bottom: 16px;
}

.carousel-text {
  font-size: 18px;
  font-family: var(--font-serif);
  font-style: italic;
  margin-bottom: 24px;
  color: var(--color-dark-brown);
  line-height: 1.6;
}

.carousel-author {
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-brand-brown);
}

.carousel-date {
  font-size: 13px;
  color: var(--color-gray-dark);
  margin-top: 4px;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.carousel-btn {
  background-color: var(--color-white);
  color: var(--color-brand-brown);
  border: 1px solid var(--color-gray-medium);
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-bounce);
}

.carousel-btn:hover {
  color: var(--color-accent-orange);
  border-color: var(--color-accent-orange);
  transform: scale(1.05);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: var(--border-radius-full);
  background-color: var(--color-gray-medium);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dot.active {
  background-color: var(--color-accent-orange);
  width: 24px;
}

/* PAGE 2: MENU & PRODUCTS */
.filter-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .filter-controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray-dark);
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 48px;
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-medium);
  border-radius: var(--border-radius-full);
  font-size: 15px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.search-box input:focus {
  border-color: var(--color-accent-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
  background-color: var(--color-soft-cream);
}

.category-tabs {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 8px;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}

.category-tabs::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.tab-btn {
  white-space: nowrap;
  padding: 10px 20px;
  border-radius: var(--border-radius-full);
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-medium);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-brand-brown);
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  border-color: var(--color-accent-orange);
  color: var(--color-accent-orange);
}

.tab-btn.active {
  background-color: var(--color-accent-orange);
  border-color: var(--color-accent-orange);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 576px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Product Card */
.card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-light);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gray-medium);
}

.product-image-container {
  position: relative;
  height: 220px;
  overflow: hidden;
  background-color: var(--color-gray-light);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: var(--border-radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-special {
  background-color: var(--color-accent-orange);
  color: var(--color-white);
  box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.stock-status-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 4px 10px;
  border-radius: var(--border-radius-full);
  font-size: 11px;
  font-weight: 700;
}

.in-stock {
  background-color: rgba(46, 125, 50, 0.9);
  color: var(--color-white);
}

.low-stock {
  background-color: rgba(255, 179, 0, 0.9);
  color: var(--color-dark-brown);
}

.out-of-stock {
  background-color: rgba(211, 47, 47, 0.9);
  color: var(--color-white);
}

.product-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 20px;
  color: var(--color-brand-brown);
  margin-bottom: 8px;
  font-family: var(--font-sans);
}

.product-desc {
  font-size: 14px;
  color: var(--color-gray-dark);
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.5;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark-brown);
}

.add-to-cart-btn {
  background-color: var(--color-accent-orange);
  color: var(--color-white);
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-bounce);
}

.add-to-cart-btn:hover:not(:disabled) {
  background-color: var(--color-accent-orange-hover);
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.add-to-cart-btn:disabled {
  background-color: var(--color-gray-medium);
  cursor: not-allowed;
}

/* Skeleton Loading Cards */
.skeleton-card {
  height: 380px;
  background: linear-gradient(90deg, var(--color-white) 25%, var(--color-gray-light) 50%, var(--color-white) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--border-radius-lg);
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* PAGE 3: REVIEWS PAGE */
.reviews-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 992px) {
  .reviews-layout {
    grid-template-columns: 400px 1fr;
    align-items: start;
  }
}

.review-form-card {
  padding: 32px;
  border-radius: var(--border-radius-lg);
}

.review-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-brand-brown);
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--color-bg-cream);
  border: 1px solid var(--color-gray-medium);
  border-radius: var(--border-radius-sm);
  font-size: 15px;
  transition: var(--transition-smooth);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  border-color: var(--color-accent-orange);
  background-color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
  outline: none;
}

.star-rating-selector {
  display: flex;
  gap: 6px;
}

.star-btn {
  color: var(--color-gray-medium);
  transition: var(--transition-bounce);
}

.star-btn:hover, 
.star-btn.active {
  color: #FFB300;
  transform: scale(1.15);
}

/* Reviews Feed */
.reviews-feed-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-gray-medium);
  padding-bottom: 16px;
}

@media (min-width: 576px) {
  .reviews-feed-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.summary-stars-box {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-medium);
  padding: 6px 14px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.reviews-feed-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-feed-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-light);
  transition: var(--transition-smooth);
}

.review-feed-card:hover {
  border-color: var(--color-gray-medium);
  box-shadow: var(--shadow-md);
}

.review-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.review-author-info h4 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark-brown);
}

.review-card-date {
  font-size: 12px;
  color: var(--color-gray-dark);
}

.review-card-text {
  font-size: 14px;
  color: var(--color-gray-dark);
  line-height: 1.5;
}

/* PAGE 4: ADMIN PORTAL */
.admin-login-card {
  max-width: 440px;
  margin: 60px auto;
  padding: 40px 32px;
}

.admin-login-icon {
  width: 72px;
  height: 72px;
  background-color: var(--color-accent-orange-alpha);
  color: var(--color-accent-orange);
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.error-text {
  color: #D32F2F;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: left;
}

/* Dashboard */
.admin-dashboard {
  animation: fadeIn 0.4s ease-out forwards;
}

.admin-dashboard-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--color-gray-medium);
  padding-bottom: 24px;
}

@media (min-width: 768px) {
  .admin-dashboard-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.admin-stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .admin-stats-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-light);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-gray-dark);
  font-weight: 600;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-brand-brown);
}

.admin-tabs {
  display: flex;
  border-bottom: 2px solid var(--color-gray-medium);
  gap: 24px;
  margin-bottom: 24px;
}

.admin-tab-btn {
  font-weight: 600;
  font-size: 15px;
  padding: 12px 4px;
  color: var(--color-gray-dark);
  position: relative;
  transition: var(--transition-smooth);
}

.admin-tab-btn:hover {
  color: var(--color-brand-brown);
}

.admin-tab-btn.active {
  color: var(--color-accent-orange);
}

.admin-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--color-accent-orange);
  border-radius: var(--border-radius-full);
}

.tab-badge {
  background-color: var(--color-accent-orange);
  color: var(--color-white);
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--border-radius-full);
  padding: 2px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.orders-inbox-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

@media (min-width: 576px) {
  .orders-inbox-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.inbox-sound-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

/* Switch Toggle Styling */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-gray-medium);
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--color-white);
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--color-accent-orange);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--color-accent-orange);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Orders List */
.orders-inbox-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.no-items-state {
  text-align: center;
  padding: 48px;
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  border: 1px dashed var(--color-gray-medium);
  color: var(--color-gray-dark);
}

.no-items-state svg {
  margin-bottom: 12px;
  opacity: 0.5;
}

/* Order Item Card Admin */
.admin-order-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--color-gray-medium);
  padding: 24px;
  transition: var(--transition-smooth);
}

.admin-order-card.status-pending { border-left-color: var(--color-accent-orange); }
.admin-order-card.status-preparing { border-left-color: var(--color-info); }
.admin-order-card.status-ready { border-left-color: #FFB300; }
.admin-order-card.status-delivered { border-left-color: var(--color-success); }

.order-admin-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px solid var(--color-gray-light);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .order-admin-header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.order-id-section h4 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
}

.order-timestamp {
  font-size: 12px;
  color: var(--color-gray-dark);
}

.status-badge-container {
  display: flex;
  gap: 8px;
  align-items: center;
}

.status-indicator {
  padding: 4px 10px;
  border-radius: var(--border-radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-indicator.pending { background-color: var(--color-accent-orange-alpha); color: var(--color-accent-orange); }
.status-indicator.preparing { background-color: var(--color-info-bg); color: var(--color-info); }
.status-indicator.ready { background-color: #FFF9C4; color: #F57F17; }
.status-indicator.delivered { background-color: var(--color-success-bg); color: var(--color-success); }

.order-admin-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .order-admin-details {
    grid-template-columns: 1fr 1fr;
  }
}

.cust-info-block h5,
.items-info-block h5 {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--color-gray-dark);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.cust-info-block p {
  font-size: 14px;
  margin-bottom: 4px;
}

.order-items-table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
}

.order-items-table td {
  padding: 6px 0;
  border-bottom: 1px dashed var(--color-gray-light);
}

.order-items-table tr:last-child td {
  border-bottom: none;
}

.item-qty {
  font-weight: 700;
  color: var(--color-accent-orange);
  width: 30px;
}

.item-price {
  text-align: right;
  color: var(--color-gray-dark);
}

.order-admin-footer {
  margin-top: 20px;
  border-top: 1px solid var(--color-gray-light);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .order-admin-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.order-total-display {
  font-size: 16px;
  font-weight: 700;
}

.order-total-val {
  font-size: 18px;
  color: var(--color-brand-brown);
}

.action-buttons-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-action-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  background-color: var(--color-gray-light);
  color: var(--color-brand-brown);
  border: 1px solid var(--color-gray-medium);
  transition: var(--transition-smooth);
}

.admin-action-btn:hover {
  background-color: var(--color-gray-medium);
}

.admin-action-btn.active-preparing { background-color: var(--color-info); color: var(--color-white); border-color: var(--color-info); }
.admin-action-btn.active-ready { background-color: #FFB300; color: var(--color-white); border-color: #FFB300; }
.admin-action-btn.active-delivered { background-color: var(--color-success); color: var(--color-white); border-color: var(--color-success); }

/* Admin Reviews Manager List */
.admin-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.admin-review-row {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--color-gray-light);
}

@media (min-width: 768px) {
  .admin-review-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.review-row-content {
  flex-grow: 1;
}

.review-row-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.review-row-author {
  font-weight: 700;
  font-size: 14px;
}

.review-row-text {
  font-size: 14px;
  color: var(--color-gray-dark);
}

.review-toggle-btn {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--border-radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
}

.review-toggle-btn.btn-show {
  background-color: var(--color-success-bg);
  color: var(--color-success);
}

.review-toggle-btn.btn-hide {
  background-color: rgba(211, 47, 47, 0.1);
  color: #D32F2F;
}

/* SHOPPING CART SIDEBAR DRAWER */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background-color: var(--color-soft-cream);
  z-index: 150;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: var(--transition-smooth);
  border-left: 1px solid rgba(139, 69, 19, 0.1);
}

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

.cart-sidebar-header {
  height: var(--header-height);
  padding: 0 24px;
  border-bottom: 1px solid var(--color-gray-medium);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-white);
}

.cart-sidebar-header h2 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-brand-brown);
}

.cart-close-btn {
  color: var(--color-brand-brown);
  transition: var(--transition-smooth);
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-close-btn:hover {
  background-color: var(--color-gray-light);
  color: var(--color-accent-orange);
}

.cart-sidebar-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.cart-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(62, 39, 35, 0.4);
  backdrop-filter: blur(4px);
  z-index: 140;
  display: none;
}

.cart-sidebar-overlay.open {
  display: block;
}

/* Empty State */
.empty-cart-state {
  text-align: center;
  padding: 48px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--color-gray-dark);
}

.empty-cart-state svg {
  opacity: 0.3;
}

/* Cart Items */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  gap: 12px;
  background-color: var(--color-white);
  padding: 12px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-gray-light);
}

.cart-item-image {
  width: 64px;
  height: 64px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

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

.cart-item-title {
  font-weight: 700;
  font-size: 14px;
}

.cart-item-price {
  color: var(--color-accent-orange-hover);
  font-weight: 600;
  font-size: 13px;
  margin-top: 2px;
}

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

.quantity-adjuster {
  display: flex;
  align-items: center;
  background-color: var(--color-bg-cream);
  border: 1px solid var(--color-gray-medium);
  border-radius: var(--border-radius-full);
  overflow: hidden;
}

.qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.qty-btn:hover {
  background-color: var(--color-gray-medium);
}

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

.cart-item-remove {
  color: var(--color-gray-dark);
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.cart-item-remove:hover {
  color: #D32F2F;
}

/* Order / Checkout Section */
.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--color-gray-dark);
}

.total-row {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark-brown);
  border-top: 1px dashed var(--color-gray-medium);
  padding-top: 10px;
}

.cart-order-section h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 16px;
  color: var(--color-brand-brown);
}

.radio-group {
  display: flex;
  gap: 16px;
}

.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}

.radio-label input {
  position: absolute;
  opacity: 0;
}

.custom-radio {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-gray-medium);
  border-radius: 50%;
  display: inline-block;
  position: relative;
  transition: var(--transition-smooth);
}

.radio-label input:checked + .custom-radio {
  border-color: var(--color-accent-orange);
}

.radio-label input:checked + .custom-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  background-color: var(--color-accent-orange);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* TOAST / PUSH NOTIFICATION ELEMENT */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
  max-width: 380px;
  width: calc(100vw - 40px);
}

.toast {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-gray-light);
  border-left: 6px solid var(--color-accent-orange);
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  transform: translateX(120%);
  animation: slideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  transition: var(--transition-smooth);
}

.toast.removing {
  transform: translateX(120%);
  opacity: 0;
}

@keyframes slideIn {
  to { transform: translateX(0); }
}

.toast-icon {
  color: var(--color-accent-orange);
  flex-shrink: 0;
  animation: alarmPulse 1.5s infinite;
}

@keyframes alarmPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); color: var(--color-accent-orange-hover); }
  100% { transform: scale(1); }
}

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

.toast-header {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-brand-brown);
  margin-bottom: 4px;
}

.toast-message {
  font-size: 13px;
  color: var(--color-gray-dark);
  line-height: 1.4;
}

.toast-close {
  color: var(--color-gray-dark);
  cursor: pointer;
  opacity: 0.7;
}

.toast-close:hover {
  opacity: 1;
}

/* SUCCESS CHECKMARK ANIMATION & MODALS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(62, 39, 35, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
  animation: fadeInModal 0.3s ease-out forwards;
}

.modal-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-gray-medium);
}

.scale-up {
  animation: scaleUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Checkmark animation */
.success-animation-container {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.success-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: var(--color-success);
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px var(--color-success);
  animation: fillCheckmark .4s ease-in-out .4s forwards, scaleCheckmark .3s ease-in-out .9s forwards;
}

.success-checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: var(--color-success);
  fill: none;
  animation: strokeCheckmark 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeCheckmark 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes strokeCheckmark {
  100% { stroke-dashoffset: 0; }
}

@keyframes fillCheckmark {
  100% { box-shadow: inset 0px 0px 0px 40px var(--color-success-bg); }
}

@keyframes scaleCheckmark {
  0%, 100% { transform: none; }
  50% { transform: scale3d(1.1, 1.1, 1); }
}

.order-receipt-summary {
  background-color: var(--color-bg-cream);
  border-radius: var(--border-radius-md);
  padding: 20px;
  text-align: left;
  margin: 24px 0;
  border: 1px solid var(--color-gray-medium);
}

.order-receipt-summary h4 {
  font-family: var(--font-sans);
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--color-brand-brown);
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--color-gray-dark);
}

.receipt-row.total-receipt-row {
  border-top: 1px dashed var(--color-gray-medium);
  padding-top: 10px;
  margin-top: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--color-dark-brown);
}

.receipt-note {
  font-size: 12px;
  color: var(--color-gray-dark);
  margin-bottom: 24px;
}
