/* ============================================================
   SANDY'S SWEET CREATIONS — Stylesheet
   Organized into sections:
   1. Variables & Reset
   2. Navigation
   3. Buttons
   4. Hero
   5. Sections & Layout
   6. Home Page Components
   7. Gallery
   8. Product Detail Page
   9. Cart Page
   10. Order / Contact / Business Card
   11. Toast Notification
   12. Responsive / Mobile
============================================================ */


/* ── 1. VARIABLES & RESET ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Nunito:wght@300;400;500;600&display=swap');

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

:root {
  --rose:        #c2185b;
  --rose-light:  #fce4ec;
  --rose-mid:    #e91e8c;
  --blush:       #fff0f5;
  --gold:        #b8860b;
  --cream:       #fffdf9;
  --text1:       #2d1a1a;
  --text2:       #7a5c5c;
  --border:      #f0d0d8;
  --bg1:         #ffffff;
  --bg2:         #fdf6f8;

  /* Meals/Sauces section accents — see section 13 below */
  --meals-accent:  #c26a1e;
  --meals-bg:      #fdf3ec;
  --sauces-accent: #8a2e2e;
  --sauces-bg:     #fbeeec;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text1);
  transition: background-color .4s ease;
}

/* All pages hidden by default — JS adds .active to show one */
.page {
  display: none;
}
.page.active {
  display: block;
}


/* ── 2. NAVIGATION ── */
nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex;
  align-items: center;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--rose);
  font-style: italic;
  flex: 1;
  cursor: pointer;
}

.nav-brand span {
  color: var(--gold);
  font-style: normal;
  font-size: 12px;
  display: block;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  border-radius: 20px;
  transition: all .15s;
  border: none;
  background: none;
  font-family: 'Nunito', sans-serif;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose);
  background: var(--rose-light);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
}

.nav-cta {
  padding: 9px 20px;
  background: var(--rose);
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: 'Nunito', sans-serif;
  transition: background .15s;
}

.nav-cta:hover {
  background: var(--rose-mid);
}

.cart-btn {
  position: relative;
  padding: 9px 16px;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  color: var(--text1);
  transition: all .15s;
}

.cart-btn:hover {
  border-color: var(--rose);
  color: var(--rose);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--rose);
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}

.cart-count.visible {
  display: flex;
}

.nav-hamburger {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  color: var(--text1);
}


/* ── 3. BUTTONS ── */
.btn-primary {
  padding: 13px 30px;
  background: var(--rose);
  color: #fff;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: 'Nunito', sans-serif;
  transition: background .15s;
}

.btn-primary:hover {
  background: var(--rose-mid);
}

.btn-outline {
  padding: 13px 30px;
  border: 2px solid var(--rose);
  color: var(--rose);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  font-family: 'Nunito', sans-serif;
  transition: all .15s;
}

.btn-outline:hover {
  background: var(--rose-light);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  cursor: pointer;
  margin-bottom: 32px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
  transition: all .15s;
  font-family: 'Nunito', sans-serif;
}

.back-btn:hover {
  color: var(--rose);
  border-color: var(--rose);
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--rose);
  color: #fff;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: 'Nunito', sans-serif;
  transition: background .15s;
}

.submit-btn:hover {
  background: var(--rose-mid);
}


/* ── 4. HERO ── */
.hero {
  padding: 72px 32px 56px;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.hero-tag {
  display: inline-block;
  background: var(--rose-light);
  color: var(--rose);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  color: var(--text1);
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero h1 em {
  color: var(--rose);
  font-style: italic;
}

.hero-sub {
  font-size: 16px;
  color: var(--text2);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.75;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

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

.badge-num {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  color: var(--rose);
  font-weight: 600;
}

.badge-label {
  font-size: 12px;
  color: var(--text2);
  font-weight: 600;
  margin-top: 2px;
}


/* ── 5. SECTIONS & LAYOUT ── */
.section {
  padding: 60px 32px;
}

.section-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 8px;
}

.section-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: var(--text1);
  margin-bottom: 10px;
}

.section-sub {
  text-align: center;
  font-size: 14px;
  color: var(--text2);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

/* Shared form card */
.form-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 18px;
}

.form-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text1);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

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

.form-row.full {
  grid-template-columns: 1fr;
}

.field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .06em;
  display: block;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text1);
  background: var(--bg2);
  font-family: 'Nunito', sans-serif;
  outline: none;
  transition: border-color .15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--rose);
  background: #fff;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}


/* ── 6. HOME PAGE COMPONENTS ── */
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}

.spec-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: all .2s;
}

.spec-card:hover {
  border-color: var(--rose);
  transform: translateY(-3px);
}

.spec-thumb {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.spec-body {
  padding: 20px;
}

.spec-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--text1);
  margin-bottom: 6px;
}

.spec-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.65;
}

.spec-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--rose);
  margin-top: 10px;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}

.testi-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}

.testi-stars {
  color: #f59e0b;
  font-size: 15px;
  margin-bottom: 10px;
}

.testi-quote {
  font-size: 13px;
  color: var(--text1);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 14px;
}

.testi-author {
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
}


/* ── 7. GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}

.gallery-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .2s;
  background: #fff;
}

.gallery-card:hover {
  border-color: var(--rose);
  transform: translateY(-3px);
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

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

.gallery-img-wrap {
  position: relative;
  height: 320px;
  overflow: hidden;
}


.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform .3s;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(194, 24, 91, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}

.gallery-overlay-text {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  border: 2px solid #fff;
  padding: 10px 22px;
  border-radius: 30px;
}

.gallery-info {
  padding: 16px 18px;
}

.gallery-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--text1);
  margin-bottom: 4px;
}

.gallery-tag {
  font-size: 12px;
  color: var(--rose);
  font-weight: 600;
  margin-bottom: 6px;
}

.gallery-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
}

.gallery-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--rose);
  margin-top: 8px;
}


/* ── 8. PRODUCT DETAIL PAGE ── */
.detail-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 32px;
}

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

.detail-img-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: zoom-in;
  background: #fff;
}

.detail-img-wrap img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  display: block;
  transition: transform .2s;
}

.detail-img-wrap:hover img {
  transform: scale(1.02);
}

/* Lightbox for full-size image viewing */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: zoom-out;
  opacity: 0;
  animation: fadeIn .2s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  font-weight: 300;
}

.detail-tag {
  display: inline-block;
  background: var(--rose-light);
  color: var(--rose);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.detail-title {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  color: var(--text1);
  margin-bottom: 8px;
  line-height: 1.2;
}

.detail-price {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--rose);
  font-weight: 600;
  margin-bottom: 16px;
}

.detail-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 24px;
}

.detail-section {
  margin-bottom: 22px;
}

.detail-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.ingredient-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ingredient-pill {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text1);
}

.mod-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mod-row {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}

.mod-row-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.mod-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mod-btn {
  padding: 6px 13px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text2);
  background: transparent;
  font-family: 'Nunito', sans-serif;
  transition: all .15s;
}

.mod-btn:hover,
.mod-btn.selected {
  border-color: var(--rose);
  background: var(--rose-light);
  color: var(--rose);
}

.notes-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
  color: var(--text1);
  background: var(--bg2);
  font-family: 'Nunito', sans-serif;
  outline: none;
  resize: vertical;
  min-height: 80px;
  transition: border-color .15s;
}

.notes-input:focus {
  border-color: var(--rose);
  background: #fff;
}

.add-to-cart-btn {
  width: 100%;
  padding: 15px;
  background: var(--rose);
  color: #fff;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: 'Nunito', sans-serif;
  transition: background .15s;
  margin-top: 6px;
}

.add-to-cart-btn:hover {
  background: var(--rose-mid);
}

.add-to-cart-btn.added {
  background: #2e7d32;
}


/* ── 9. CART PAGE ── */
.cart-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 32px;
}

.cart-empty {
  text-align: center;
  padding: 60px 0;
}

.cart-empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.cart-empty-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--text1);
  margin-bottom: 8px;
}

.cart-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
}

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

.cart-item-name {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--text1);
  margin-bottom: 4px;
}

.cart-item-mods {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 6px;
}

.cart-item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--rose);
}

.cart-item-remove {
  font-size: 12px;
  color: var(--text2);
  cursor: pointer;
  font-weight: 600;
  margin-top: 4px;
  display: inline-block;
}

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

.cart-total-bar {
  background: var(--rose-light);
  border: 1px solid #f8bbd0;
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 14px;
}

.cart-total-label {
  font-size: 14px;
  color: var(--rose);
  font-weight: 600;
}

.cart-total-price {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--rose);
  font-weight: 600;
}

.cart-note {
  font-size: 12px;
  color: var(--text2);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.7;
}


/* ── 10. CONTACT & BUSINESS CARD ── */
.contact-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 32px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 32px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
}

.contact-icon {
  font-size: 30px;
  margin-bottom: 10px;
}

.contact-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 5px;
}

.contact-val {
  font-size: 14px;
  color: var(--text1);
  font-weight: 600;
}

.bc-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 32px;
}

.business-card {
  width: 100%;
  max-width: 400px;
  background: var(--rose);
  border-radius: 18px;
  padding: 30px 32px;
  margin: 0 auto 20px;
  color: #fff;
}

.bc-name {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-style: italic;
  margin-bottom: 2px;
}

.bc-title {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: 22px;
  font-weight: 600;
}

.bc-divider {
  height: 1px;
  background: rgba(255, 255, 255, .3);
  margin-bottom: 22px;
}

.bc-detail {
  font-size: 13px;
  margin-bottom: 8px;
  opacity: .92;
}

.bc-tagline {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-style: italic;
  opacity: .8;
  margin-top: 18px;
}

.bc-back {
  width: 100%;
  max-width: 400px;
  background: var(--gold);
  border-radius: 18px;
  padding: 30px 32px;
  margin: 0 auto 28px;
  color: #fff;
  text-align: center;
}

.bc-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-style: italic;
}

.bc-back-tag {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .8;
  margin-top: 4px;
  font-weight: 600;
}

.bc-back-items {
  margin-top: 22px;
  font-size: 13px;
  opacity: .92;
  line-height: 2.2;
}

/* ── 10b. ADMIN PAGE ── */
.admin-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 32px;
}


/* ── 11. TOAST NOTIFICATION ── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #2e7d32;
  color: #fff;
  padding: 13px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  opacity: 0;
  transition: all .3s;
  z-index: 999;
  white-space: nowrap;
  pointer-events: none;
}

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


/* ── 12. RESPONSIVE / MOBILE ── */
@media (max-width: 700px) {
  .detail-grid         { grid-template-columns: 1fr; }
  .gallery-grid        { grid-template-columns: 1fr; }
  .specialty-grid      { grid-template-columns: 1fr 1fr; }
  .testi-grid          { grid-template-columns: 1fr 1fr; }
  .contact-grid        { grid-template-columns: 1fr; }
  .form-row            { grid-template-columns: 1fr; }
  .hero h1             { font-size: 34px; }
  nav                  { padding: 0 16px; }

  .nav-brand            { font-size: 15px; }
  .nav-brand span        { display: none; }
  .nav-cta              { display: none; }
  .nav-hamburger        { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 10px 16px 18px;
    box-shadow: 0 12px 20px rgba(45, 26, 26, 0.08);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-link { text-align: left; padding: 12px 14px; border-radius: 10px; }
}

@media (max-width: 480px) {
  .specialty-grid { grid-template-columns: 1fr; }
  .testi-grid     { grid-template-columns: 1fr; }
}


/* ── 13. TOP-LEVEL SECTION SWITCHER (Home / Sweets / Meals / Sauces / Contact / Business Card) ──
   Scoped entirely to new selectors below — nothing above this point
   is touched, so the existing dessert aesthetic is unaffected.
─────────────────────────────────────────────────── */

/* All sections hidden by default — JS adds .active to show one, same
   pattern as the existing .page/.page.active rule above */
.site-section {
  display: none;
}
.site-section.active {
  display: block;
}

.top-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: var(--text1);
  transition: background-color .35s ease;
}

.switch-logo {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15px;
  color: #fff;
  opacity: .8;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s;
}
.switch-logo:hover { opacity: 1; }

.switch-primary {
  display: flex;
  gap: 8px;
}

.switch-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,.25);
  flex-shrink: 0;
}

.switch-secondary {
  display: flex;
  gap: 4px;
}

.switch-btn {
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  border-radius: 20px;
  border: none;
  background: none;
  font-family: 'Nunito', sans-serif;
  transition: all .15s;
  white-space: nowrap;
}

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

.switch-btn.active {
  color: var(--text1);
  background: #fff;
}

.switch-btn-sm {
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  cursor: pointer;
  border-radius: 16px;
  border: none;
  background: none;
  font-family: 'Nunito', sans-serif;
  transition: all .15s;
  white-space: nowrap;
}

.switch-btn-sm:hover {
  color: #fff;
}

.switch-btn-sm.active {
  color: var(--text1);
  background: #fff;
}

/* Per-section accent on the switcher bar — active state wins by
   default; a hover preview (data-preview) is declared after these so
   it always overrides whatever's currently active, then reverts
   cleanly on mouseleave. Home/Contact/Business Card have no rule here
   and simply fall back to the neutral background above. */
.top-switch[data-active="sweets"] { background: var(--rose); }
.top-switch[data-active="meals"]  { background: var(--meals-accent); }
.top-switch[data-active="sauces"] { background: var(--sauces-accent); }

.top-switch[data-preview="sweets"] { background: var(--rose); }
.top-switch[data-preview="meals"]  { background: var(--meals-accent); }
.top-switch[data-preview="sauces"] { background: var(--sauces-accent); }

/* Coming-soon placeholder pages (Meals/Sauces) pick up their section's
   accent below; the base rules here are the shared neutral fallback. */
.coming-soon {
  max-width: 520px;
  margin: 90px auto;
  padding: 0 24px;
  text-align: center;
}

.coming-soon-emoji {
  font-size: 44px;
  margin-bottom: 14px;
}

.coming-soon-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--text1);
  margin-bottom: 14px;
}

.coming-soon-text {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 26px;
}

.coming-soon-btn {
  display: inline-block;
  padding: 13px 30px;
  background: var(--text1);
  color: #fff;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  transition: background .15s;
}

.coming-soon-btn:hover {
  background: #000;
}

#section-meals .coming-soon-title { color: var(--meals-accent); }
#section-meals .coming-soon-btn   { background: var(--meals-accent); }
#section-meals .coming-soon-btn:hover { background: #a85918; }

#section-sauces .coming-soon-title { color: var(--sauces-accent); }
#section-sauces .coming-soon-btn   { background: var(--sauces-accent); }
#section-sauces .coming-soon-btn:hover { background: #6f2424; }

/* Subtle whole-page tint while browsing Meals/Sauces — same lightness
   as the base cream, just warmed toward that section's accent. */
body.theme-meals  { background: var(--meals-bg); }
body.theme-sauces { background: var(--sauces-bg); }


/* ── 14. HOME HUB (landing page) ── */
.hub-hero {
  text-align: center;
  padding: 70px 24px 40px;
}

.hub-logo {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 34px;
  color: var(--text1);
  margin-bottom: 10px;
}

.hub-tag {
  font-size: 14px;
  color: var(--text2);
  max-width: 440px;
  margin: 0 auto;
}

.hub-tiles {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 50px;
}

.hub-tile {
  flex: 1;
  min-width: 220px;
  max-width: 260px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.hub-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(45, 26, 26, 0.12);
}

.hub-tile[data-theme-name="sweets"]:hover  { border-color: var(--rose); }
.hub-tile[data-theme-name="meals"]:hover   { border-color: var(--meals-accent); }
.hub-tile[data-theme-name="sauces"]:hover  { border-color: var(--sauces-accent); }

.hub-tile-emoji {
  font-size: 40px;
  margin-bottom: 12px;
}

.hub-tile-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--text1);
  margin-bottom: 6px;
}

.hub-tile-sub {
  font-size: 12px;
  color: var(--text2);
}

.hub-secondary {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-bottom: 60px;
}

.hub-secondary button {
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: all .15s;
}

.hub-secondary button:hover {
  color: var(--text1);
  border-color: var(--text1);
}

@media (max-width: 700px) {
  .top-switch {
    justify-content: flex-start;
    padding: 10px 16px;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .switch-logo, .switch-divider { flex-shrink: 0; }
  .switch-btn { padding: 8px 12px; font-size: 12px; }
  .switch-btn-sm { padding: 6px 10px; font-size: 11px; }
  .hub-tiles { flex-direction: column; align-items: center; }
  .coming-soon { margin: 50px auto; }
}
