/* ==========================================================================
   Fritto Misto - Design System & Custom CSS
   ========================================================================== */

:root {
  --bg-primary: #001f35;
  --bg-secondary: #02131e;
  --bg-card: #02131e;
  --bg-card-hover: #031b2b;
  --bg-surface: #062b47;
  --accent-gold: #bd924d;
  --accent-gold-hover: #d4af37;
  --accent-gold-light: #f7edd8;
  --text-white: #ffffff;
  --text-muted: #98a2b3;
  --text-dim: rgba(255, 255, 255, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(189, 146, 77, 0.35);
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

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

/* ==========================================================================
   Top Announcement Bar
   ========================================================================== */
.top-bar {
  background-color: #011524;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-dim);
  padding: 8px 0;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

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

.top-bar-item img {
  opacity: 0.8;
}

.phone-link a {
  color: var(--accent-gold);
  font-weight: 600;
  transition: var(--transition);
}

.phone-link a:hover {
  color: var(--text-white);
}

/* ==========================================================================
   Main Header
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(0, 31, 53, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  transition: var(--transition);
}

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

.logo-link {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* Search Box */
.search-box {
  flex: 1;
  max-width: 540px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  width: 100%;
  height: 44px;
  padding: 0 42px 0 44px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-white);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(189, 146, 77, 0.15);
  background-color: #031726;
}

.search-icon {
  position: absolute;
  left: 16px;
  pointer-events: none;
  opacity: 0.7;
}

.clear-search-btn {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.clear-search-btn:hover {
  color: var(--text-white);
}

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

.cart-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--accent-gold);
  color: #000;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(189, 146, 77, 0.35);
}

.cart-btn:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(189, 146, 77, 0.45);
}

.cart-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent-gold);
}

.cart-price {
  white-space: nowrap;
}

/* ==========================================================================
   Hero Section / Carousel
   ========================================================================== */
.hero-section {
  padding: 24px 0 16px;
}

.carousel {
  position: relative;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  transform: scale(1.03);
  display: flex;
  align-items: center;
}

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

.slide-overlay {
  position: relative;
  z-index: 2;
  padding: 48px;
  max-width: 600px;
  background: linear-gradient(90deg, rgba(0, 31, 53, 0.92) 0%, rgba(0, 31, 53, 0.65) 75%, rgba(0, 31, 53, 0) 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.promo-pill {
  display: inline-block;
  background-color: rgba(189, 146, 77, 0.2);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  width: fit-content;
}

.slide-overlay h2 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
  color: var(--text-white);
}

.slide-overlay p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-gold);
  color: #000;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  width: fit-content;
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(189, 146, 77, 0.4);
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(2, 19, 30, 0.7);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.carousel-control:hover {
  background-color: var(--accent-gold);
  color: #000;
}

.carousel-control.prev {
  left: 20px;
}

.carousel-control.next {
  right: 20px;
}

.carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--accent-gold);
  width: 28px;
  border-radius: 5px;
}

/* ==========================================================================
   Sticky Categories Bar
   ========================================================================== */
.categories-section {
  position: sticky;
  top: 76px;
  z-index: 900;
  background-color: rgba(0, 31, 53, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
}

.categories-wrapper {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.categories-wrapper::-webkit-scrollbar {
  display: none;
}

.categories-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-secondary);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cat-tab:hover {
  background-color: #041c2c;
  color: #fff;
  border-color: rgba(189, 146, 77, 0.4);
}

.cat-tab.active {
  background-color: var(--accent-gold);
  color: #000;
  font-weight: 700;
  border-color: var(--accent-gold);
  box-shadow: 0 4px 12px rgba(189, 146, 77, 0.3);
}

.cat-tab .cat-count {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.15);
  color: inherit;
}

.cat-tab.active .cat-count {
  background-color: rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Main Menu Grid & Header
   ========================================================================== */
.menu-container {
  padding-top: 28px;
  padding-bottom: 60px;
}

.menu-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.active-category-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.category-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
}

.sort-select {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 6px 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 520px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* Product Card - Exact & Enhanced Style */
.product-card {
  background-color: #02131e;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.28s ease-out;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.6);
}

.product-card.in-cart {
  border-color: var(--accent-gold);
}

.product-card .card-media {
  position: relative;
  height: 200px;
  background-color: #010c14;
  overflow: hidden;
  cursor: pointer;
}

.product-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-out;
}

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

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(2, 19, 30, 0.85);
  backdrop-filter: blur(4px);
  color: var(--accent-gold);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(189, 146, 77, 0.4);
}

.card-badge.promo-badge {
  background: linear-gradient(135deg, #e53935 0%, #ff6f00 100%);
  color: #ffffff;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.45);
  animation: pulse-promo 2.2s infinite ease-in-out;
}

@keyframes pulse-promo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.cat-tab.promo-tab {
  background: linear-gradient(135deg, rgba(229, 57, 53, 0.15), rgba(255, 111, 0, 0.15));
  border-color: rgba(229, 57, 53, 0.5);
  color: #ff5252;
}

.cat-tab.promo-tab.active {
  background: linear-gradient(135deg, #e53935, #ff6f00);
  border-color: transparent;
  color: #ffffff;
}

.old-price {
  font-size: 13px;
  color: #8898aa;
  text-decoration: line-through;
  margin-right: 6px;
  font-weight: 400;
}

.product-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.product-title {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.product-title:hover {
  color: var(--accent-gold);
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.product-tags .tag {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11.5px;
  font-weight: 500;
  padding: 1px 6px;
}

.product-description {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
  min-height: 35px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.product-price {
  color: #fff;
  font-size: 19px;
  font-weight: 800;
}

.product-price span {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-gold);
  margin-left: 2px;
}

/* Card Add To Cart Action */
.add-btn {
  background-color: var(--accent-gold);
  border: none;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: #000;
}

.add-btn:hover {
  background-color: var(--accent-gold-hover);
  transform: scale(1.06);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #031c2d;
  border-radius: 8px;
  padding: 3px;
  border: 1px solid var(--accent-gold);
}

.qty-control button {
  width: 28px;
  height: 28px;
  border: none;
  background-color: var(--accent-gold);
  color: #000;
  font-weight: 800;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.qty-control button:hover {
  background-color: #fff;
}

.qty-control span {
  font-weight: 700;
  font-size: 14px;
  padding: 0 4px;
  color: #fff;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state h3 {
  font-size: 20px;
  margin: 16px 0 8px;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ==========================================================================
   About Us & Location Sections
   ========================================================================== */
.about-section {
  background-color: #011320;
  padding: 70px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

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

.about-text h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 24px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-icon {
  font-size: 24px;
  background-color: rgba(189, 146, 77, 0.15);
  border: 1px solid rgba(189, 146, 77, 0.3);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item strong {
  display: block;
  font-size: 15px;
  color: #fff;
}

.feature-item span {
  font-size: 13px;
  color: var(--text-muted);
}

.about-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  object-fit: cover;
}

/* Location Section */
.location-section {
  padding: 60px 0;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 800px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
}

.location-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.location-card h3 {
  font-size: 24px;
  margin: 10px 0 20px;
}

.location-detail {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 12px;
  line-height: 1.5;
}

.location-detail a {
  color: var(--accent-gold);
  font-weight: 700;
}

.loc-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
  background-color: #010e18;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 0;
  color: var(--text-dim);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 50px;
}

@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

.footer-logo {
  height: 40px;
  margin-bottom: 16px;
}

.brand-col p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 320px;
}

.payment-methods {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  transition: var(--transition);
}

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

.contact-col p {
  font-size: 14px;
  margin-bottom: 8px;
}

.phone-highlight a {
  color: var(--accent-gold);
  font-size: 18px;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   Slide-out Cart Drawer
   ========================================================================== */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: -460px;
  width: 440px;
  max-width: 90vw;
  height: 100vh;
  background-color: #011422;
  border-left: 1px solid var(--border-subtle);
  z-index: 2100;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.close-cart-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}

.delivery-progress {
  padding: 14px 20px;
  background-color: rgba(189, 146, 77, 0.08);
  border-bottom: 1px solid rgba(189, 146, 77, 0.2);
  font-size: 12.5px;
}

.progress-bar-bg {
  height: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-top: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #bd924d, #f5d061);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: flex;
  gap: 12px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 10px;
  border-radius: var(--radius-md);
  align-items: center;
}

.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.cart-item-price {
  font-size: 13px;
  color: var(--accent-gold);
  font-weight: 700;
}

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

.cart-item-actions button {
  width: 24px;
  height: 24px;
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}

.cart-item-actions button:hover {
  background-color: var(--accent-gold);
  color: #000;
}

.remove-item-btn {
  color: #e53935 !important;
  background: none !important;
  font-size: 18px;
  margin-left: 4px;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border-subtle);
  background-color: #01111d;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.cart-summary-line.total-line {
  font-size: 17px;
  color: #fff;
  font-weight: 700;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.total-amount {
  color: var(--accent-gold);
  font-size: 20px;
}

.btn-checkout {
  width: 100%;
  padding: 14px;
  background-color: var(--accent-gold);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 15px;
  color: #000;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 14px;
}

.btn-checkout:hover:not(:disabled) {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
}

.btn-checkout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   Modals (Product Detail & Checkout)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal-container {
  background-color: #011422;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 740px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-card);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background-color: var(--accent-gold);
  color: #000;
}

/* Product Modal Layout */
.modal-product-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  padding: 24px;
}

@media (max-width: 680px) {
  .modal-product-layout {
    grid-template-columns: 1fr;
  }
}

.modal-product-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.modal-details h2 {
  font-size: 22px;
  margin-bottom: 8px;
  color: #fff;
}

.modal-price-line {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-gold);
  margin: 12px 0 16px;
}

.modal-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 14px 0 6px;
}

.modal-ingredients {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.modal-allergens {
  font-size: 12px;
  color: #f7a072;
  background-color: rgba(247, 160, 114, 0.08);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(247, 160, 114, 0.2);
  margin-top: 14px;
  line-height: 1.4;
}

/* Checkout Modal */
.checkout-modal-box {
  max-width: 580px;
}

.checkout-content {
  padding: 32px;
}

.checkout-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dim);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background-color: #031828;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-row-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.delivery-toggle,
.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.toggle-option,
.pay-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background-color: #031828;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.toggle-option.active,
.pay-radio.active {
  border-color: var(--accent-gold);
  background-color: rgba(189, 146, 77, 0.12);
  color: var(--accent-gold);
}

.toggle-option input,
.pay-radio input {
  display: none;
}

.checkout-total-banner {
  background-color: rgba(189, 146, 77, 0.15);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  font-size: 16px;
}

.checkout-total-banner strong {
  font-size: 22px;
  color: var(--accent-gold);
}

.btn-submit-order {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 800;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--accent-gold);
  color: #000;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Language Switchers (Header & Footer)
   ========================================================================== */
.lang-switcher-header {
  display: flex;
  align-items: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.active {
  background-color: var(--accent-gold);
  color: #000;
  box-shadow: 0 2px 8px rgba(189, 146, 77, 0.3);
}

/* Footer Language Selector */
.footer-lang-selector {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-lang-label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 10px;
  font-weight: 600;
}

.footer-lang-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #031828;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.footer-lang-btn .flag {
  font-size: 16px;
  line-height: 1;
}

.footer-lang-btn:hover {
  border-color: var(--accent-gold);
  color: #fff;
  background-color: rgba(189, 146, 77, 0.08);
}

.footer-lang-btn.active {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(189, 146, 77, 0.35);
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(1, 16, 27, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-gold);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
  z-index: 2500;
  padding: 18px 0;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

@media (max-width: 900px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

.cookie-text-col {
  flex: 1;
}

.cookie-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.cookie-icon {
  font-size: 20px;
}

.cookie-header h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.cookie-text-col p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .cookie-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.btn-cookie-accept {
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}

.btn-cookie-ghost {
  background-color: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-cookie-ghost:hover {
  border-color: #fff;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-cookie-outline {
  background-color: transparent;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  color: var(--accent-gold);
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-cookie-outline:hover {
  background-color: rgba(189, 146, 77, 0.15);
  color: #fff;
}

/* ==========================================================================
   Cookie Preferences Modal
   ========================================================================== */
.cookie-modal-box {
  max-width: 620px;
}

.cookie-modal-content {
  padding: 32px;
}

.cookie-modal-content h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
}

.cookie-modal-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 22px;
}

.cookie-categories-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 26px;
}

.cookie-cat-item {
  background-color: #031828;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: var(--transition);
}

.cookie-cat-item:hover {
  border-color: rgba(189, 146, 77, 0.3);
}

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

.cookie-cat-header strong {
  font-size: 14.5px;
  color: #fff;
}

.badge-required {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background-color: rgba(189, 146, 77, 0.2);
  color: var(--accent-gold);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-left: 8px;
}

.cookie-cat-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Switch toggle style */
.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: rgba(255, 255, 255, 0.15);
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
}

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

input:checked + .slider:before {
  transform: translateX(20px);
  background-color: #000;
}

.switch.disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.switch.disabled .slider {
  cursor: not-allowed;
}

.cookie-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Legal Modals (GDPR Privacy Policy & Terms)
   ========================================================================== */
.legal-modal-box {
  max-width: 800px;
}

.legal-modal-content {
  padding: 36px;
}

.legal-modal-content h2 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-modal-body {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  max-height: 58vh;
  overflow-y: auto;
  padding-right: 12px;
}

.legal-modal-body h4 {
  font-size: 16px;
  color: var(--accent-gold);
  margin: 20px 0 10px;
}

.legal-modal-body ul {
  padding-left: 20px;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-modal-body a {
  color: var(--accent-gold);
  text-decoration: underline;
}

.legal-modal-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   GDPR Checkbox in Checkout Form
   ========================================================================== */
.gdpr-form-group {
  margin: 20px 0 16px;
  padding: 12px 14px;
  background-color: rgba(3, 24, 40, 0.6);
  border: 1px solid rgba(189, 146, 77, 0.25);
  border-radius: var(--radius-sm);
}

.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--text-dim) !important;
  line-height: 1.45;
  margin-bottom: 0 !important;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent-gold);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label a {
  color: var(--accent-gold);
  text-decoration: underline;
  font-weight: 600;
}

.checkbox-label a:hover {
  color: var(--accent-gold-hover);
}

