/* ==========================================================================
   Izi D'Oro - Design System & Stylesheet (Mobile-First)
   Identitate: Bucatarie Italiana & Fructe de mare Sibiu
   Culori: Crem (#F8F5ED), Oliva inchisa (#30351C), Teracota (#B84E2C), Bej (#DED4C4)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-cream: #F8F5ED;
  --text-olive: #30351C;
  --text-muted: #646A55;
  --accent-terracotta: #B84E2C;
  --accent-terracotta-hover: #9E3E20;
  --accent-terracotta-light: #FBF0EC;
  --border-beige: #DED4C4;
  --card-bg: #FFFFFF;
  --card-muted: #F2EBE0;
  --success-green: #2B6E3F;
  --success-bg: #EAF4ED;
  
  --font-serif: 'Cormorant Garamond', Garamond, Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-sm: 0 2px 6px rgba(48, 53, 28, 0.05);
  --shadow-md: 0 6px 18px rgba(48, 53, 28, 0.08);
  --shadow-lg: 0 12px 32px rgba(48, 53, 28, 0.12);
  --shadow-modal: 0 20px 50px rgba(48, 53, 28, 0.2);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --header-height: 62px;
  --bottom-bar-height: 68px;
  --container-max: 1920px;
  --side-pad: clamp(14px, 3vw, 56px);
}

@media (min-width: 768px) {
  :root {
    --header-height: 74px;
  }
}

/* Reset & baza */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-cream);
  color: var(--text-olive);
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-bar-height) + 20px);
  overflow-x: hidden;
  width: 100%;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* Utilitare Responsive Display (Mobile-First) */
.d-none {
  display: none !important;
}

@media (min-width: 576px) {
  .d-sm-inline {
    display: inline !important;
  }
  .d-sm-flex {
    display: flex !important;
  }
}

@media (min-width: 768px) {
  .d-md-none {
    display: none !important;
  }
  .d-md-flex {
    display: flex !important;
  }
  .d-md-block {
    display: block !important;
  }
  .hero-desktop.d-md-block {
    display: grid !important;
  }
}

@media (min-width: 992px) {
  .d-lg-flex {
    display: flex !important;
  }
}

@media (min-width: 1200px) {
  .d-xl-inline-flex {
    display: inline-flex !important;
  }
}

/* Tipografie */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-olive);
}

p {
  color: var(--text-muted);
}

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

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

/* Top Announcement Bar */
.top-announcement {
  background-color: var(--text-olive);
  color: #E8EADF;
  text-align: center;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Header & Navigatie Desktop / Mobil */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(248, 245, 237, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-beige);
}

.header-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 10px var(--side-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
}

.logo-title {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: var(--text-olive);
  line-height: 1;
  letter-spacing: -0.5px;
}

.logo-title span {
  color: var(--accent-terracotta);
}

.logo-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 3px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
}

@media (min-width: 992px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-olive);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}

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

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

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

/* Butoane */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  min-height: 44px;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-terracotta);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--accent-terracotta-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184, 78, 44, 0.25);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-olive);
  border-color: var(--border-beige);
}

.btn-outline:hover {
  border-color: var(--text-olive);
  background-color: rgba(48, 53, 28, 0.04);
}

.btn-dark {
  background-color: var(--text-olive);
  color: #FFFFFF;
}

.btn-dark:hover {
  background-color: #1f2312;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  min-height: 38px;
}

.btn-full {
  width: 100%;
}

/* Buton Cos Header */
.cart-btn-header {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-beige);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-olive);
}

.cart-badge {
  background-color: var(--accent-terracotta);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  line-height: 1;
}

/* Hero Section Desktop (Wide Fluid) */
.hero-desktop {
  display: none;
  width: 100%;
  max-width: var(--container-max);
  margin: 24px auto 32px;
  padding: 0 var(--side-pad);
}

@media (min-width: 768px) {
  .hero-desktop {
    display: grid;
    grid-template-columns: 1.05fr 1.2fr;
    gap: clamp(24px, 3.5vw, 56px);
    align-items: center;
  }
}

.hero-content {
  padding-right: 10px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-terracotta);
  margin-bottom: 12px;
  display: block;
}

.hero-title {
  font-size: clamp(2.4rem, 3.8vw, 4.2rem);
  line-height: 1.06;
  margin-bottom: 18px;
  color: var(--text-olive);
}

.hero-desc {
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  margin-bottom: 26px;
  max-width: 600px;
  color: var(--text-muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image-wrapper img {
  width: 100%;
  height: clamp(320px, 34vw, 500px);
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-image-wrapper:hover img {
  transform: scale(1.02);
}

/* Mobile Hero Bar & Controale */
.mobile-controls {
  padding: 14px var(--side-pad) 10px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .mobile-controls {
    display: none !important;
  }
}

.mobile-greeting {
  margin-bottom: 12px;
}

.mobile-greeting-title {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2px;
}

.mobile-greeting-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Cautare in meniu */
.search-bar-wrap {
  position: relative;
  flex: 1;
  max-width: 480px;
}

.site-header .search-bar-wrap {
  margin-bottom: 0;
}

.site-header .delivery-toggle {
  margin-bottom: 0;
  flex-shrink: 0;
}

.site-header .address-selector-bar {
  margin-bottom: 0;
  max-width: 280px;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-beige);
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  color: var(--text-olive);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 48px;
}

.search-input:focus {
  border-color: var(--accent-terracotta);
  box-shadow: 0 0 0 3px rgba(184, 78, 44, 0.12);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--text-muted);
  pointer-events: none;
}

/* Comutator Livrare / Ridicare */
.delivery-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--card-muted);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 12px;
  border: 1px solid var(--border-beige);
}

.toggle-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
  border: none;
  background: transparent;
  min-height: 40px;
}

.toggle-option.active {
  background-color: var(--accent-terracotta);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

/* Banda Adresa Livrare */
.address-selector-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--card-bg);
  border: 1px solid var(--border-beige);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-olive);
  margin-bottom: 16px;
}

.address-selector-bar:hover {
  border-color: var(--accent-terracotta);
}

.address-selector-bar span {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Slider "Comanda din nou" (Wide Fluid) */
.reorder-section {
  width: 100%;
  max-width: var(--container-max);
  margin: 12px auto 26px;
  padding: 0 var(--side-pad);
}

.section-header-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

.section-title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 600;
}

.reorder-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.reorder-card {
  flex: 0 0 250px;
  scroll-snap-align: start;
  background-color: var(--card-bg);
  border: 1px solid var(--border-beige);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.reorder-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  background-color: var(--card-muted);
}

.reorder-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.reorder-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.2;
}

.reorder-price {
  font-weight: 700;
  color: var(--accent-terracotta);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.btn-reorder-instant {
  width: 100%;
  padding: 8px;
  font-size: 0.85rem;
  border-radius: var(--radius-pill);
  background-color: var(--text-olive);
  color: #FFFFFF;
  border: none;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
}

.btn-reorder-instant:hover {
  background-color: var(--accent-terracotta);
}

/* Categorii Pills (Wide Fluid & Sticky) */
.categories-nav-wrap {
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  background-color: rgba(248, 245, 237, 0.96);
  backdrop-filter: blur(8px);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-beige);
}

.categories-pills {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.cat-pill {
  flex: 0 0 auto;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-olive);
  background-color: var(--card-bg);
  border: 1px solid var(--border-beige);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
}

.cat-pill:hover {
  border-color: var(--text-olive);
}

.cat-pill.active {
  background-color: var(--text-olive);
  color: #FFFFFF;
  border-color: var(--text-olive);
}

/* Grila Produse (Sistem WIDE Responsive in functie de display) */
.products-section {
  width: 100%;
  max-width: var(--container-max);
  margin: 24px auto 48px;
  padding: 0 var(--side-pad);
}

/* Workspace Meniu + Cos Live In-Page */
.menu-workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

@media (min-width: 1180px) {
  .menu-workspace {
    grid-template-columns: minmax(0, 1fr) 370px;
  }
}

@media (min-width: 1560px) {
  .menu-workspace {
    grid-template-columns: minmax(0, 1fr) 400px;
  }
}

.app-main-flow {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  min-height: calc(100vh - var(--header-height) - 240px);
}

.app-view-panel {
  width: 100%;
  display: block;
}

.menu-workspace-wide {
  width: 100%;
  display: block;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 1.8vw, 24px);
  width: 100%;
}

@media (min-width: 620px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1360px) {
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1800px) {
  .products-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.category-banner-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  margin-bottom: 8px;
}

.category-breadcrumbs {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.category-breadcrumbs a:hover {
  color: var(--accent-terracotta);
}

.category-breadcrumbs .sep {
  opacity: 0.6;
}

/* Card de Produs (Conform Design 04 Card de Produs) */
.product-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-beige);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  background-color: var(--card-muted);
  overflow: hidden;
}

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

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

.customizable-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text-olive);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
}

.weight-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(48, 53, 28, 0.85);
  color: #FFFFFF;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
}

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

.product-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text-olive);
  line-height: 1.15;
  margin-bottom: 6px;
}

.product-ingredients {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(222, 212, 196, 0.5);
}

.product-price-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-olive);
  white-space: nowrap;
}

.product-unit-hint {
  font-size: 0.72rem;
  color: var(--accent-terracotta);
  font-weight: 600;
  margin-top: 2px;
}

.product-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.qty-stepper-card {
  min-height: 38px;
  height: 38px;
  background-color: var(--bg-cream);
}

.qty-stepper-card .qty-btn {
  width: 30px;
  height: 38px;
  font-size: 1.05rem;
}

.qty-stepper-card .qty-val {
  min-width: 24px;
  font-size: 0.92rem;
}

.btn-choose {
  background-color: var(--accent-terracotta);
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 38px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-choose:hover {
  background-color: var(--accent-terracotta-hover);
}

/* ==========================================================================
   VIZUALIZĂRI INTEGRATE ÎN PAGINĂ (DETALII PRODUS, CONT CLIENT, PAGINI CMS)
   ========================================================================== */

.inline-address-panel {
  width: 100%;
  background: #F4EFE6;
  border-top: 1px solid var(--border-beige);
  border-bottom: 2px solid var(--accent-terracotta);
  padding: 14px var(--side-pad);
}

.inline-address-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.inline-address-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inline-address-label strong {
  color: var(--text-olive);
  font-size: 0.95rem;
}

.inline-address-label span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.inline-address-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 680px;
}

.inline-address-controls .form-control {
  flex: 1;
  min-width: 240px;
  min-height: 42px;
  padding: 8px 14px;
}

.inpage-detail-section {
  width: 100%;
  max-width: var(--container-max);
  margin: 18px auto 32px;
  padding: 28px var(--side-pad);
  background: #FFFFFF;
  border: 1.5px solid var(--border-beige);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  scroll-margin-top: 130px;
}

.inpage-section-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-beige);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

@media (min-width: 960px) {
  .product-detail-layout {
    grid-template-columns: 440px minmax(0, 1fr);
    gap: 36px;
  }
}

.product-detail-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-beige);
  background: var(--bg-cream);
}

.product-detail-media img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.product-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px;
  background: var(--bg-cream);
  border-top: 1px solid var(--border-beige);
}

.product-detail-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.inpage-account-body {
  max-width: 960px;
}

.inpage-cms-article {
  max-width: 960px;
  line-height: 1.75;
  font-size: 1.02rem;
  color: var(--text-olive);
}

/* Antet Categorie cu Descriere SEO Sibiu */
.category-seo-banner {
  background: #FFFFFF;
  border: 1px solid var(--border-beige);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.category-seo-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 6px;
  max-width: 980px;
}

.category-seo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-badge-pill {
  background: var(--bg-cream);
  border: 1px solid var(--border-beige);
  color: var(--text-olive);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Sectiune Editorial SEO Local Sibiu & FAQ */
.sibiu-seo-section {
  width: 100%;
  max-width: var(--container-max);
  margin: 40px auto 20px;
  padding: 36px var(--side-pad);
  background: #FFFFFF;
  border-top: 1px solid var(--border-beige);
  border-bottom: 1px solid var(--border-beige);
}

.sibiu-seo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
}

@media (min-width: 1024px) {
  .sibiu-seo-grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 44px;
  }
}

.sibiu-seo-heading {
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  color: var(--text-olive);
  line-height: 1.2;
  margin: 8px 0 16px;
}

.sibiu-seo-content p {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--text-olive);
  margin-bottom: 14px;
}

.sibiu-seo-content a {
  color: var(--accent-terracotta);
  text-decoration: underline;
}

.sibiu-seo-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.seo-highlight-box {
  background: var(--bg-cream);
  border: 1px solid var(--border-beige);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.seo-highlight-box strong {
  color: var(--text-olive);
  font-size: 0.95rem;
}

.seo-highlight-box span {
  color: var(--text-muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

.sibiu-seo-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.seo-figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-beige);
  background: var(--bg-cream);
}

.seo-figure.main-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

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

.seo-figure-row .seo-figure img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.seo-figure figcaption {
  padding: 8px 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.sibiu-zones-box {
  background: var(--bg-cream);
  border: 1px solid var(--border-beige);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 28px;
}

.sibiu-zones-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zone-tag {
  background: #FFFFFF;
  border: 1px solid var(--border-beige);
  color: var(--text-olive);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.83rem;
  font-weight: 600;
}

.sibiu-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.faq-card {
  background: var(--bg-cream);
  border: 1px solid var(--border-beige);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.faq-card h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-olive);
  margin-bottom: 8px;
}

.faq-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.customizer-product-head {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.customizer-thumb {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--card-muted);
}

.customizer-title {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

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

/* Sectiuni Personalizare (Marimi, Sosuri, Extras) */
.custom-section {
  margin-bottom: 22px;
}

.custom-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-olive);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-section-title span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Radio Cards pentru Marimi (Medie 33 cm / Family 50 cm) */
.sizes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.size-card-label {
  background-color: var(--card-bg);
  border: 1.5px solid var(--border-beige);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}

.size-card-label:hover {
  border-color: var(--text-olive);
}

.size-card-label.selected {
  border-color: var(--accent-terracotta);
  background-color: var(--accent-terracotta-light);
}

.size-card-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.size-card-price {
  font-weight: 700;
  color: var(--accent-terracotta);
  font-size: 1rem;
}

/* Lista Optiuni Checkbox (Sosuri, Extras) */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--card-bg);
  border: 1px solid var(--border-beige);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
  min-height: 48px;
}

.option-row:hover {
  background-color: var(--card-muted);
}

.option-row.checked {
  border-color: var(--accent-terracotta);
  background-color: var(--accent-terracotta-light);
}

.option-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
}

.custom-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-terracotta);
  cursor: pointer;
}

.option-price {
  font-weight: 700;
  color: var(--accent-terracotta);
  font-size: 0.9rem;
}

/* Modal Footer Sticky cu Calcul Total */
.modal-footer-sticky {
  padding: 14px 20px;
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-beige);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.breakdown-line {
  font-size: 0.825rem;
  color: var(--text-muted);
  text-align: center;
}

.modal-footer-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Stepper Cantitate (- 1 +) */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-cream);
  border: 1px solid var(--border-beige);
  border-radius: var(--radius-pill);
  overflow: hidden;
  min-height: 44px;
}

.qty-btn {
  background: none;
  border: none;
  width: 38px;
  height: 44px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-olive);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s;
}

.qty-btn:hover {
  background-color: var(--border-beige);
}

.qty-val {
  min-width: 32px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
}

/* Toast Notificare Feedback */
.toast-notice {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--text-olive);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 300;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}

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

.toast-icon {
  background-color: var(--success-green);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* Bottom Navigation Bar Mobil */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-bar-height);
  background-color: var(--bg-cream);
  border-top: 1px solid var(--border-beige);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  box-shadow: 0 -4px 16px rgba(48, 53, 28, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 768px) {
  .mobile-bottom-bar {
    display: none !important;
  }
}

.bottom-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  gap: 3px;
  cursor: pointer;
  position: relative;
  flex: 1;
  height: 100%;
  min-height: 44px;
  background: transparent;
  border: none;
}

.bottom-bar-item.active {
  color: var(--accent-terracotta);
}

.bottom-bar-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.bottom-cart-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  background-color: var(--accent-terracotta);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--radius-pill);
}

/* Checkout Rapid 3 Pasi */
.checkout-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.step-item.active {
  color: var(--accent-terracotta);
}

.step-bubble {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--card-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--border-beige);
}

.step-item.active .step-bubble {
  background-color: var(--accent-terracotta);
  color: #FFFFFF;
  border-color: var(--accent-terracotta);
}

.step-divider {
  width: 30px;
  height: 1px;
  background-color: var(--border-beige);
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-olive);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-beige);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-olive);
  outline: none;
  transition: border-color 0.2s;
  min-height: 48px;
}

.form-control:focus {
  border-color: var(--accent-terracotta);
  box-shadow: 0 0 0 3px rgba(184, 78, 44, 0.1);
}

textarea.form-control {
  min-height: 80px;
  resize: vertical;
}

/* Sumar Cos / Comanda */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

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

.cart-item-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--card-muted);
}

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

.cart-item-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 2px;
}

.cart-item-details {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-item-price {
  font-weight: 700;
  color: var(--accent-terracotta);
  font-size: 0.95rem;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  font-size: 1.1rem;
}

.cart-item-remove:hover {
  color: var(--accent-terracotta);
}

.order-summary-box {
  background-color: var(--card-bg);
  border: 1px solid var(--border-beige);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
}

.summary-row.total-row {
  border-top: 1px solid var(--border-beige);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-olive);
}

/* Tracking Comanda & Confirmare */
.order-success-card {
  text-align: center;
  padding: 24px 16px;
}

.success-badge-big {
  width: 64px;
  height: 64px;
  background-color: var(--success-bg);
  color: var(--success-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}

.order-number-display {
  display: inline-block;
  background-color: var(--card-muted);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 10px 0 16px;
  color: var(--accent-terracotta);
}

/* Footer Site (Wide Fluid) */
.site-footer {
  background-color: #252A16;
  color: #DED4C4;
  padding: 50px 0 80px;
  margin-top: 60px;
}

@media (min-width: 768px) {
  .site-footer {
    padding: 60px 0 40px;
  }
}

.footer-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.footer-col p, .footer-col li {
  color: #B4B9A6;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-bottom {
  width: 100%;
  max-width: var(--container-max);
  margin: 36px auto 0;
  padding: 20px var(--side-pad) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: #8F9582;
}

/* ==========================================================================
   SISTEM PREMIUM IN-PAGE: COS LIVE STICKY + SECTIUNE COMANDA 3 PASI
   ========================================================================== */

/* Panou Cos Live in Meniu (Sticky pe Desktop Wide) */
.live-side-cart {
  display: none;
}

@media (min-width: 1180px) {
  .live-side-cart {
    display: block;
    position: sticky;
    top: 148px;
  }
}

.side-cart-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-beige);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
}

.side-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-beige);
  margin-bottom: 14px;
}

.btn-clear-cart {
  background: var(--card-muted);
  border: 1px solid var(--border-beige);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-clear-cart:hover {
  background: var(--danger-bg);
  color: var(--danger-red);
  border-color: var(--danger-red);
}

/* Bara Progres Livrare Gratuita */
.free-delivery-bar-wrap {
  background: var(--bg-cream);
  border: 1px solid var(--border-beige);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.free-delivery-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-olive);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.free-delivery-track {
  width: 100%;
  height: 8px;
  background: var(--border-beige);
  border-radius: 999px;
  overflow: hidden;
}

.free-delivery-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-terracotta), #2D6A4F);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.side-cart-items {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.side-cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-beige);
}

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

.side-cart-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-beige);
}

.side-cart-totals {
  margin-bottom: 14px;
}

.side-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.side-total-row.grand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-olive);
  padding-top: 8px;
  border-top: 1px dashed var(--border-beige);
}

.side-total-row.grand strong {
  color: var(--accent-terracotta);
}

/* Sectiune In-Page: Cos & Comanda in 3 Pasi */
.inpage-order-section {
  width: 100%;
  max-width: var(--container-max);
  margin: 24px auto 64px;
  padding: 32px var(--side-pad);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-cream) 100%);
  border-top: 2px solid var(--border-beige);
  border-bottom: 2px solid var(--border-beige);
  scroll-margin-top: 130px;
}

.inpage-order-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

/* Stepper Interactiv In-Page */
.inpage-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid var(--border-beige);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.inpage-step-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 200px;
}

.inpage-step-btn:hover {
  background: var(--bg-cream);
}

.inpage-step-btn.active {
  background: #FDF6F3;
  border-color: var(--accent-terracotta);
}

.inpage-step-btn.completed {
  background: var(--success-bg);
  border-color: rgba(45, 106, 79, 0.3);
}

.inpage-step-btn .step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--card-muted);
  color: var(--text-olive);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.inpage-step-btn.active .step-num {
  background: var(--accent-terracotta);
  color: #FFFFFF;
}

.inpage-step-btn.completed .step-num {
  background: var(--success-green);
  color: #FFFFFF;
}

.inpage-step-btn .step-text {
  display: flex;
  flex-direction: column;
}

.inpage-step-btn .step-text strong {
  font-size: 0.95rem;
  color: var(--text-olive);
}

.inpage-step-btn .step-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.step-connector {
  height: 2px;
  width: 32px;
  background: var(--border-beige);
  flex-shrink: 0;
  display: none;
}

@media (min-width: 900px) {
  .step-connector {
    display: block;
  }
}

/* Grid 2 Coloane in sectiunea de comanda */
.inpage-order-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

@media (min-width: 1024px) {
  .inpage-order-grid {
    grid-template-columns: minmax(0, 1fr) 390px;
  }
}

@media (min-width: 1440px) {
  .inpage-order-grid {
    grid-template-columns: minmax(0, 1fr) 430px;
  }
}

.inpage-order-main {
  background: #FFFFFF;
  border: 1px solid var(--border-beige);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.5vw, 32px);
  box-shadow: var(--shadow-sm);
}

.summary-sticky-card {
  background: #FFFFFF;
  border: 1px solid var(--border-beige);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 148px;
}

.summary-mini-list {
  max-height: 260px;
  overflow-y: auto;
  margin-bottom: 16px;
  padding-right: 4px;
  border-bottom: 1px solid var(--border-beige);
}

.summary-mini-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  padding: 8px 0;
  border-bottom: 1px dashed var(--card-muted);
}

.summary-calc-rows .calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  padding: 6px 0;
  color: var(--text-muted);
}

.summary-calc-rows .calc-row.total {
  border-top: 2px dashed var(--border-beige);
  margin-top: 10px;
  padding-top: 14px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-olive);
}

.summary-calc-rows .calc-row.total strong {
  color: var(--accent-terracotta);
}

/* Bara Plutitoare Cos pe Mobil / Tableta */
.floating-cart-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 76px;
  background-color: var(--text-olive);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(30, 34, 18, 0.35);
  z-index: 125;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

@media (min-width: 768px) {
  .floating-cart-bar {
    bottom: 20px;
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (min-width: 1180px) {
  .floating-cart-bar {
    display: none !important;
  }
}

.floating-cart-info {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex: 1;
}

.floating-cart-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-terracotta);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-cart-cta {
  padding: 10px 16px;
  font-size: 0.92rem;
  white-space: nowrap;
}
