/* CSS variables for consistent luxury bakery design system */
:root {
  --primary: #2c1b18;          /* Rich chocolate brown */
  --primary-light: #4c3530;
  --primary-rgb: 44, 27, 24;
  --accent: #d97706;           /* Golden caramel/amber */
  --accent-hover: #b45309;
  --accent-light: #fef3c7;
  --bg: #fdfbf7;               /* Vanilla cream base */
  --bg-card: #ffffff;
  --text: #2c1b18;
  --text-muted: #6b5753;
  --border: #f0e6dc;
  --shadow-sm: 0 1px 3px rgba(44, 27, 24, 0.05);
  --shadow-md: 0 4px 20px -2px rgba(44, 27, 24, 0.08);
  --shadow-lg: 0 10px 30px -5px rgba(44, 27, 24, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 680px;
}

.grid {
  display: grid;
  gap: 32px;
}

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

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

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

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

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

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

/* Common button styles with smooth hover transitions */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: 'Outfit', sans-serif;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

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

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

/* Sticky Header with Glassmorphism */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

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

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

.logo-serif {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--primary);
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 2px;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
}

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

.order-btn-nav {
  background-color: var(--primary);
  color: var(--bg);
  padding: 8px 18px;
  border-radius: var(--radius-lg);
  font-size: 14px;
}

.order-btn-nav:hover {
  background-color: var(--accent);
  color: #ffffff;
}

/* Hero section */
.hero {
  position: relative;
  padding: 120px 0 100px 0;
  color: #ffffff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 650px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out;
}

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

.hero-subtitle {
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 36px;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out;
}

/* Feature highlight cards */
.features {
  padding: 60px 0;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.feature-card {
  text-align: center;
  padding: 24px;
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  margin-bottom: 8px;
}

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

/* Menu section & Dessert cards */
.menu-section {
  padding: 100px 0;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  text-align: center;
  margin-bottom: 12px;
}

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

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.menu-grid {
  margin-top: 40px;
}

.menu-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.menu-card-img-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

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

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

.menu-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--primary);
  color: var(--bg);
  padding: 4px 12px;
  border-radius: var(--radius-lg);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

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

.menu-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 10px;
}

.menu-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.menu-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.menu-card-price-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.menu-card-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.menu-card-price.tbd {
  font-size: 15px;
  background-color: var(--bg);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
}

/* Order Form Section */
.order-section {
  padding: 100px 0;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border);
}

.order-card-wrapper {
  background-color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

@media (max-width: 500px) {
  .order-card-wrapper {
    padding: 24px 16px;
  }
}

.order-form {
  margin-top: 36px;
}

/* Inputs and Forms */
.form-group {
  margin-bottom: 24px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
}

.label-optional {
  text-transform: none;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0;
}

.form-help {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

textarea {
  height: 100px;
  resize: vertical;
}

/* Radio Group styling */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 500px) {
  .radio-group {
    flex-direction: row;
  }
}

.radio-label {
  flex: 1;
  position: relative;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.radio-design {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  transition: var(--transition);
}

.radio-label input[type="radio"]:checked + .radio-design {
  border-color: var(--accent);
  background-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.size-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

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

/* Checkbox Grid styling */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.checkbox-label {
  position: relative;
  cursor: pointer;
  margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}

.checkbox-design {
  display: block;
  padding: 12px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  color: var(--text-muted);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-design {
  border-color: var(--accent);
  background-color: var(--accent-light);
  color: var(--accent-hover);
  font-weight: 600;
}

.customer-info-section {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding-top: 24px;
}

.subsection-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  margin-bottom: 16px;
}

/* Order Summary Card */
.order-summary-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 24px;
  margin: 32px 0;
}

.summary-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
}

#summary-toppings-list {
  max-width: 60%;
  text-align: right;
  font-style: italic;
  color: var(--text-muted);
}

.summary-divider {
  border-top: 1px dashed var(--border);
  margin: 16px 0;
}

.total-row {
  font-size: 18px;
  font-weight: 700;
}

.price-highlight {
  color: var(--accent);
}

.price-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.4;
}

/* Modal Popup Dialog */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(44, 27, 24, 0.6);
  backdrop-filter: blur(8px);
}

.modal-content {
  background-color: var(--bg);
  margin: 10% auto;
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: slideUp 0.4s ease-out;
}

.modal-success-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin-bottom: 12px;
}

.modal-text {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.modal-details {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}

.modal-details p {
  font-size: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid #fdfdfd;
}

.modal-details p:last-child {
  margin-bottom: 0;
}

.success-total-price {
  color: var(--accent);
  font-size: 16px !important;
  border-top: 1px solid var(--border) !important;
  padding-top: 8px;
  margin-top: 8px;
}

.modal-subtext {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Footer styling */
.footer {
  background-color: var(--primary);
  color: var(--bg);
  padding: 48px 0;
  border-top: 1px solid var(--primary-light);
}

.footer-links {
  margin-top: 16px;
}

.footer-link-admin {
  color: rgba(253, 251, 247, 0.6);
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition);
}

.footer-link-admin:hover {
  color: var(--accent);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.loading-spinner {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-style: italic;
}

/* Language Selector */
.lang-selector {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: rgba(44, 27, 24, 0.05);
  padding: 4px 8px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-left: 12px;
}

.lang-btn {
  background: none;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 10px;
  transition: var(--transition);
}

.lang-btn.active {
  background-color: var(--primary);
  color: var(--bg);
}

.lang-divider {
  font-size: 11px;
  color: var(--border);
  user-select: none;
}

