/* =========================
   GLOBAL & RESET
========================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f6eee6;
    color: #4a2c1a;
    line-height: 1.6;
    overflow-x: hidden;
    align-items: center;
}
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 0 50px rgba(0,0,0,0.05);
    background: white;
    animation: fadeInOnly 0.6s ease-in-out;
}


a { text-decoration: none; transition: 0.3s; }

/* =========================
   HEADER & NAVIGATION
========================= */
.main-header {
    width: 100%;
    background: #fff8ef;
    border-bottom: 1px solid #f3e5d5;
    padding: 25px 20px;

    display: flex;
    flex-direction: column;   /* stack logo + nav */
    align-items: center;      /* center horizontally */
    justify-content: center;
    text-align: center;
}

.logo {
    margin-bottom: 15px;
}

.logo img {
    height: 80px;
}

/* Desktop Nav - Visible by default */
.main-nav {
    display: flex;
    gap: 35px;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav a {
    color: #4a2c1a;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.main-nav a:hover {
    color: #d4a373;
}



/* Mobile Nav Overlay */
.nav-mobile {
    display: none; 
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100vh;
    background: #fff8ef;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.nav-mobile.active { display: flex; }

.nav-mobile a { 
    padding: 15px; 
    color: #4a2c1a; 
    font-weight: bold; 
    font-size: 24px; 
}

.close-menu {
    position: absolute;
    top: 25px;
    right: 40px;
    font-size: 35px;
    cursor: pointer;
    color: #6b4226;
}

/* =========================
   HERO SECTION
========================= */
.hero-buttons a {
    display: inline-block;
    padding: 15px 30px;
    margin: 10px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* subtle shadow for premium look */
}

/* Primary button: dark brown */
.btn-primary {
    background-color: #6b4226;
    color: white;
}

/* Secondary button: light baby blue */
.btn-secondary {
    background-color: #9badac;
    color: #4a2c1a;
}

/* Hover effects */
.btn-primary:hover {
    background-color: #52301b;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.btn-secondary:hover {
    background-color: #809291;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .hero-buttons a {
        display: block;
        width: 80%;
        margin: 10px auto;
        padding: 15px 0;
        font-size: 18px;
    }
}
/* =========================
   SECTIONS & GRIDS
========================= */
section { padding: 80px 40px; text-align: center; }

h2 { font-size: 36px; margin-bottom: 40px; position: relative; padding-bottom: 10px; }
h2::after {
    content: '';
    width: 60px; height: 3px; background: #d4a373;
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
}

.featured-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    margin-top: 40px; 
}

.featured-card { 
    background: white; 
    padding: 20px; 
    border-radius: 15px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.featured-card img { width: 100%; height: 250px; object-fit: cover; border-radius: 10px; }

/* =========================
   FLOATING ORDER BUTTON
========================= */
.floating-order {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 20px 35px;
    border-radius: 50px;
    background: #6b4226;
    color: white;
    font-weight: bold;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
}

/* =========================
   NEWSLETTER & FOOTER
========================= */
.newsletter { background: #9badac; }
.newsletter-form { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.newsletter-form input { padding: 15px 25px; border-radius: 30px; border: none; width: 350px; }
.newsletter-form button { padding: 15px 30px; border-radius: 30px; border: none; background: #6b4226; color: white; cursor: pointer; font-weight: bold; }

footer { padding: 40px; background: #4a2c1a; color: white; text-align: center; }

/* Newsletter message */
.newsletter-msg{
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #4a2c1a;
  opacity: 0.95;
}
.newsletter-msg.is-error{
  color: #b02a2a;
}
.newsletter-form button[disabled]{
  opacity: 0.7;
  cursor: not-allowed;
}

/* =========================
   RESPONSIVE OVERRIDES
========================= */
@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .hamburger { display: block; }
    .hero-content h1 { font-size: 38px; }
    .newsletter-form { flex-direction: column; align-items: center; }
    .newsletter-form input { width: 100%; }
    
    .floating-order {
        right: 50%;
        transform: translateX(50%);
        width: 80%;
        justify-content: center;
    }
}

@keyframes fadeInOnly {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =========================
   SOCIAL
========================= */
.social {
    background: #9badac; /* Light baby blue background */
    text-align: center;
    padding: 60px 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 25px;
}

/* Circle buttons with shadow/glow effect */
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;         /* bigger on desktop */
    height: 70px;
    border-radius: 50%;
    color: white;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* soft shadow */
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Glow effect on hover */
.social-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(0,0,0,0.35), 0 0 15px rgba(255,255,255,0.2);
}

/* Colored backgrounds for each social platform */
.facebook { background: #3b5998; }
.instagram { background: #e1306c; }
.tiktok { background: #000; }

/* Responsive tweaks for mobile */
@media (max-width: 768px) {
    .social-btn {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

/* MENU GRID */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 40px auto;
}

/* MENU CARD */
.menu-item {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  overflow: hidden;                 /* makes image corners clean */
  text-align: center;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}

.menu-item:hover {
  transform: translateY(-5px);
}

/* Only exists when there IS an image */
.menu-item__media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Always exists */
.menu-item__body {
  padding: 18px 20px 20px;
}

.menu-item__name {
  font-size: 20px;
  margin: 0 0 8px;
  font-weight: 700;
}

.menu-item__price {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: #6b4226;
}

/* =========================
   CIRCLE ORDER BUTTON
========================= */

.order-cta {
    text-align: center;
    padding: 80px 20px;
    background: #9badac; /* same soft blue */
}

.circle-order-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 180px;
    height: 180px;
    margin: 40px auto 0;
    border-radius: 50%;
    background: #6b4226;
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

.circle-order-btn i {
    font-size: 32px;
    margin-bottom: 10px;
}

.circle-order-btn span {
    font-size: 16px;
    padding: 0 20px;
}

/* Hover Effect */
.circle-order-btn:hover {
    background: #52301b;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 45px rgba(0,0,0,0.35);
}

/* =========================
   EMPTY MENU STATE (Animated)
========================= */

.menu-empty {
  grid-column: 1 / -1;
  background: #fff8ef;
  border-radius: 20px;
  padding: 60px 30px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
  border: 2px dashed #e6d5c3;

  /* Animation */
  opacity: 0;
  transform: translateY(25px);
  animation: fadeSlideUp 0.8s ease forwards;
}

.menu-empty i {
  font-size: 48px;
  color: #d4a373;
  margin-bottom: 20px;

  /* Gentle float animation */
  animation: floatIcon 3s ease-in-out infinite;
}

.menu-empty h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #4a2c1a;
}

.menu-empty p {
  font-size: 16px;
  color: #6b4226;
  opacity: 0.9;
}

/* Fade + slide animation */
@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Soft floating icon */
@keyframes floatIcon {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* =========================
   ORDER PAGE (Premium)
========================= */

.order-section {
  padding: 70px 30px;
}

.order-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.order-panel__header {
  text-align: center;
  margin-bottom: 15px;
}

.order-subtext {
  margin-top: 8px;
  color: #6b4226;
  opacity: 0.9;
  font-size: 14px;
}

/* Cart column cards */
.cart-panel {
  position: sticky;
  top: 18px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cart-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.06);
  padding: 18px;
  border: 1px solid #f3e5d5;
  animation: fadeSlideUp 0.6s ease forwards;
}

.cart-card h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.cart-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cart-clear-btn {
  border: none;
  background: #fff8ef;
  color: #6b4226;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}

.cart-clear-btn:hover {
  transform: translateY(-1px);
  background: #f3e5d5;
}

/* Menu item "Add" button + stepper */
.menu-item__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 0 20px 18px;
}

.add-btn {
  border: none;
  background: #6b4226;
  color: white;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0,0,0,0.10);
  transition: 0.2s;
}

.add-btn:hover {
  background: #52301b;
  transform: translateY(-2px);
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff8ef;
  border: 1px solid #f3e5d5;
  border-radius: 12px;
  padding: 8px 10px;
}

.stepper button {
  border: none;
  background: white;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 900;
  color: #6b4226;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  transition: 0.2s;
}

.stepper button:hover {
  transform: translateY(-1px);
}

.stepper span {
  min-width: 22px;
  text-align: center;
  font-weight: 800;
  color: #4a2c1a;
}

/* Cart items list */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-empty {
  background: #fff8ef;
  border: 2px dashed #e6d5c3;
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  color: #6b4226;
  opacity: 0.95;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #fff8ef;
  border: 1px solid #f3e5d5;
  text-align: left;
}

.cart-row strong {
  display: block;
  color: #4a2c1a;
}

.cart-row small {
  color: #6b4226;
  opacity: 0.9;
}

.cart-row__right {
  text-align: right;
  min-width: 110px;
}

.cart-row__remove {
  border: none;
  background: transparent;
  color: #c0392b;
  cursor: pointer;
  font-weight: 800;
  margin-top: 6px;
}

.cart-total {
  font-weight: 900;
  font-size: 20px;
  color: #4a2c1a;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #f3e5d5;
  padding: 12px;
  text-align: center;
}

.cart-note {
  margin-top: 8px;
  font-size: 13px;
  color: #6b4226;
  opacity: 0.9;
  text-align: center;
}

/* Form */
.form-grid {
  display: grid;
  gap: 12px;
}

.form-field label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  color: #4a2c1a;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #f3e5d5;
  outline: none;
  background: #fff;
}

.form-field input:focus,
.form-field select:focus {
  border-color: #d4a373;
  box-shadow: 0 0 0 3px rgba(212,163,115,0.22);
}


/* Primary CTA */
.order-primary-btn {
  width: 100%;
  margin-top: 14px;
  border: none;
  padding: 14px 16px;
  border-radius: 16px;
  background: #6b4226;
  color: white;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0,0,0,0.15);
  transition: 0.25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.order-primary-btn:hover {
  transform: translateY(-3px);
  background: #52301b;
}

/* After order note */
.after-order-note {
  margin-top: 12px;
  font-size: 13px;
  color: #6b4226;
  opacity: 0.9;
  text-align: center;
}

/* Responsive */
@media (max-width: 950px) {
  .order-layout {
    grid-template-columns: 1fr;
  }
  .cart-panel {
    position: static;
  }
}

/* ORDER PAGE: stack layout (menu first, cart/details underneath) */
.order-layout--stack {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Make cart panel full width in stacked mode */
.cart-panel--stack {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 25px;
}

/* Optional: keep cards aligned nicely */
.order-panel,
.cart-card {
  max-width: 1000px;
  margin: 0 auto;
}


/* =========================
   FIX: MOBILE SECTION PADDING (prevents "off-center" look)
========================= */
@media (max-width: 768px) {
  section {
    padding: 55px 18px; /* override the global 80px 40px */
  }

  .order-section {
    padding: 55px 18px;
  }

  /* ensure menu grid isn't constrained oddly */
  .menu-grid {
    width: 100%;
    max-width: 100%;
    margin: 24px auto;
  }

  /* Prevent any accidental horizontal shifting */
  .page-wrapper {
    overflow-x: hidden;
  }
}

/* =========================
   FIX: POPUP CENTERING + LOCK SCROLL
========================= */
body.modal-open {
  overflow: hidden;
  height: 100vh;
}

/* Hidden by default. JS sets display:flex */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 999999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 18px; /* spacing from edges on tiny screens */
}

.popup {
  width: min(520px, 92vw);
  max-height: 85vh;
  overflow: auto;

  background: #fff;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  padding: 22px;
  border: 1px solid #f3e5d5;

  animation: popupIn 0.25s ease forwards;
}

@keyframes popupIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.popup h3 { margin-bottom: 10px; color: #4a2c1a; }
.popup p { margin: 8px 0; color: #6b4226; }

.popup .popup-total {
  font-weight: 900;
  font-size: 18px;
  color: #4a2c1a;
  background: #fff8ef;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #f3e5d5;
}

.popup button {
  margin-top: 14px;
  width: 100%;
  border: none;
  padding: 12px 14px;
  border-radius: 14px;
  background: #6b4226;
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.popup button:hover {
  background: #52301b;
}

/* =========================
   ADMIN: ORDER DETAILS LIST
========================= */
.order-items {
  margin-top: 14px;
  background: #fff8ef;
  border: 1px solid #f3e5d5;
  border-radius: 16px;
  padding: 14px;
  text-align: left;
}

.order-items-title {
  font-weight: 900;
  color: #4a2c1a;
  margin-bottom: 10px;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(243,229,213,0.9);
  margin-bottom: 8px;
}

.order-item-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-item-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}

.order-item-sub {
  font-size: 12px;
  color: #6b4226;
  opacity: 0.95;
}

.order-items-empty {
  padding: 12px;
  border-radius: 12px;
  border: 2px dashed #e6d5c3;
  text-align: center;
  color: #6b4226;
}

.newsletter-msg {
  margin-top: 14px;
  font-weight: 700;
  color: #2d6a4f;
  background: rgba(45, 106, 79, 0.10);
  border: 1px solid rgba(45, 106, 79, 0.18);
  padding: 10px 12px;
  border-radius: 14px;
  display: inline-block;
}

.newsletter-msg.is-error {
  color: #b02a37;
  background: rgba(176, 42, 55, 0.10);
  border-color: rgba(176, 42, 55, 0.18);
}

/* =========================
   ABOUT / MEET THE BAKER
========================= */
.about-baker {
    padding: 80px 40px;
    background: #fff8ef;
}

.about-baker-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 35px;
    align-items: center;
}

.about-baker-text {
    text-align: left;
}

.about-baker-tag {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(212, 163, 115, 0.18);
    color: #6b4226;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.about-baker-text h2 {
    text-align: left;
    margin-bottom: 20px;
}

.about-baker-text h2::after {
    left: 0;
    transform: none;
}

.about-baker-text p {
    margin-bottom: 16px;
    color: #5a3824;
    font-size: 16px;
    line-height: 1.8;
}

.about-baker-card {
    background: white;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.07);
    text-align: center;
    border: 1px solid #f3e5d5;
}

.about-baker-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #6b4226;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}

.about-baker-card h3 {
    font-size: 22px;
    margin-bottom: 14px;
    color: #4a2c1a;
}

.about-baker-card p {
    color: #6b4226;
    font-size: 15px;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 900px) {
    .about-baker-inner {
        grid-template-columns: 1fr;
    }

    .about-baker-text,
    .about-baker-card {
        text-align: center;
    }

    .about-baker-text h2 {
        text-align: center;
    }

    .about-baker-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
}