/* ============================================================
   Pretty Little Treats — Shared Stylesheet
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Pinyon+Script&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Jost:wght@300;400;500;700&display=swap');

/* ── CSS Variables ── */
:root {
  --bg:          #FFFAF9;
  --accent:      #E8A0AE;
  --accent-dk:   #D48092;
  --gold:        #C9A84C;
  --gold-dk:     #A88C38;
  --text:        #2C1E1E;
  --text-lt:     #8A7070;
  --white:       #ffffff;
  --card-bg:     #FCE8EF;
  --surface:     #F9D8E5;
  --border:      #F0D0DA;
  --shadow:      0 4px 20px rgba(180,100,120,.07);
  --shadow-lg:   0 8px 32px rgba(180,100,120,.12);
  --radius:      16px;
  --radius-lg:   24px;
  --radius-pill: 50px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  color: var(--text);
  line-height: 1.2;
  font-weight: 700;
}

a { color: var(--accent-dk); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-dk); }

img { max-width: 100%; display: block; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--white);
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(201,168,76,.35);
  transition: background .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
}
.btn:hover {
  background: var(--gold-dk);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,.45);
}
.btn:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--accent-dk);
  border: 2px solid var(--accent);
  box-shadow: none;
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(232,160,174,.35);
}

.btn-sm { padding: 10px 22px; font-size: .85rem; }
.btn-lg { padding: 18px 44px; font-size: 1.05rem; }

/* ── Navigation ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,250,249,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(180,100,120,.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 56px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}
.nav-logo:hover .nav-logo-img { opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  padding: 8px 14px;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
  border-radius: var(--radius-pill);
  transition: background .2s, color .2s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--card-bg);
  color: var(--accent-dk);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Cart button */
.cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  transition: background .2s;
}
.cart-btn:hover { background: var(--card-bg); color: var(--accent-dk); }

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--gold);
  color: var(--white);
  font-size: .65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(180,100,120,.10);
}
.mobile-menu.open { display: block; }

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}
.mobile-menu ul a {
  display: block;
  padding: 12px 16px;
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text);
  border-radius: var(--radius);
}
.mobile-menu ul a:hover { background: var(--card-bg); color: var(--accent-dk); }

/* ── Wave / Scalloped Dividers ── */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: 0;
}
.wave-divider svg { display: block; width: 100%; }

.wave-divider--down { transform: none; }
.wave-divider--up   { transform: scaleY(-1); }

/* ── Sections ── */
.section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-full {
  padding: 80px 24px;
}

.section-alt {
  background: var(--card-bg);
  position: relative;
}

.section-accent {
  background: var(--accent);
  color: var(--white);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-lt);
  max-width: 600px;
  margin: 0 auto 40px;
  text-align: center;
}

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

/* ── Hero ── */
.hero {
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 85% 35%, rgba(232,160,174,.20) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 15% 65%, rgba(201,168,76,.10) 0%, transparent 55%),
    radial-gradient(ellipse 100% 70% at 50% 105%, rgba(232,160,174,.16) 0%, transparent 60%),
    var(--bg);
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(201,168,76,.14);
  color: var(--gold-dk);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 400;
  font-style: normal;
  max-width: 820px;
  margin-bottom: 24px;
  line-height: 1.15;
  color: var(--text);
}

.hero p {
  font-size: 1.15rem;
  max-width: 560px;
  color: var(--text-lt);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ── Script heading for interior page heroes ── */
.page-script-heading {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.15;
  margin-bottom: 16px;
}

/* ── Hero Split Layout (homepage) ── */
.hero--split {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 480px);
  justify-content: center;
  gap: 64px;
  align-items: center;
  text-align: left;
  padding: 60px 48px 80px;
}

.hero--split .hero-eyebrow { margin-bottom: 20px; }
.hero--split .hero-cta     { justify-content: flex-start; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-showcase {
  position: relative;
  width: 400px;
  height: 400px;
  flex-shrink: 0;
}

.hero-showcase-img {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(180,100,120,.22);
  background-size: cover;
  background-position: center;
  border: 5px solid var(--white);
}

.hero-showcase-img:nth-child(1) {
  width: 230px;
  height: 230px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.hero-showcase-img:nth-child(2) {
  width: 172px;
  height: 172px;
  bottom: 0;
  left: 0;
  z-index: 2;
}

.hero-showcase-img:nth-child(3) {
  width: 156px;
  height: 156px;
  bottom: 0;
  right: 0;
  z-index: 2;
}

/* ── Image Placeholders ── */
.img-placeholder {
  width: 100%;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fce8f0 0%, #f9dce9 40%, #fce4ed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(232,160,174,.5);
  position: relative;
  overflow: hidden;
}

.img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.30) 0%, transparent 60%);
  pointer-events: none;
}

.img-placeholder--cupcake   { background: linear-gradient(135deg, #fce0ee 0%, #f9d0e6 60%, #fce8f2 100%); }
.img-placeholder--cookie    { background: linear-gradient(135deg, #fdeee4 0%, #fad8c8 60%, #fde8d8 100%); }
.img-placeholder--strawberry { background: linear-gradient(135deg, #fcdce6 0%, #f9c8d8 40%, #fcd0e0 100%); }
.img-placeholder--generic   { background: linear-gradient(135deg, #fce8f0 0%, #f9e0eb 60%, #fceaf2 100%); }

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  border: 1px solid var(--border);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--gold);
}

.card-title { font-size: 1.3rem; margin-bottom: 8px; }
.card-desc  { font-size: .95rem; color: var(--text-lt); line-height: 1.6; }

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

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

/* ── Photo Treat Cards (homepage) ── */
.treat-card--photo {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.treat-card-photo {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.treat-card-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(44,30,30,.22) 100%);
}

.treat-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

/* ── Gallery Preview ── */
.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.gallery-preview-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.gallery-preview-item:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); }
.gallery-preview-item .img-placeholder { width: 100%; height: 100%; border-radius: 0; }

/* ── Stay Connected ── */
.social-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--text);
  font-weight: 700;
  font-size: .9rem;
  border: 2px solid var(--border);
  transition: border-color .2s, color .2s, transform .2s, box-shadow .2s;
  box-shadow: var(--shadow);
}
.social-link:hover {
  border-color: var(--gold);
  color: var(--gold-dk);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.social-link svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* ── Email Signup ── */
.signup-section { position: relative; overflow: hidden; }

.coming-soon-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,250,249,.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(3px);
  border-radius: var(--radius-lg);
}

.badge-coming-soon {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 8px 24px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(201,168,76,.35);
  margin-bottom: 12px;
}

.email-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  opacity: .4;
  pointer-events: none;
}

.email-form input {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: 'Jost', sans-serif;
  font-size: .95rem;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color .2s;
}
.email-form input:focus { border-color: var(--accent); }

/* ── Page Hero (interior pages) ── */
.page-hero {
  padding: 60px 24px 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 12px; }
.page-hero p  { font-size: 1.1rem; color: var(--text-lt); }

/* ── Menu / Category styles ── */
.category-section { max-width: 1200px; margin: 0 auto; padding: 64px 24px; }

.category-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 40px;
}
.category-header.reverse { direction: rtl; }
.category-header.reverse > * { direction: ltr; }

.category-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.category-img .img-placeholder { height: 100%; border-radius: 0; }

.category-info h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 12px; }
.category-info p  { color: var(--text-lt); margin-bottom: 24px; line-height: 1.8; }
.category-price   { font-size: 1.3rem; font-weight: 700; color: var(--gold); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.product-name { font-size: 1.1rem; font-family: 'Playfair Display', serif; }

.product-controls { display: flex; flex-direction: column; gap: 10px; }

.product-controls select,
.product-controls input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Jost', sans-serif;
  font-size: .9rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color .2s;
  cursor: pointer;
}
.product-controls select:focus,
.product-controls input:focus { border-color: var(--gold); }

.qty-control {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.qty-btn {
  width: 38px;
  height: 38px;
  background: var(--surface);
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, color .2s;
  flex-shrink: 0;
}
.qty-btn:hover { background: var(--gold); color: var(--white); }

.qty-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  text-align: center;
  font-weight: 700;
  min-width: 0;
  padding: 0 !important;
}

.product-price { font-weight: 700; font-size: 1.15rem; color: var(--gold); }

.custom-section { background: var(--card-bg); padding: 80px 24px; text-align: center; }
.custom-inner { max-width: 800px; margin: 0 auto; }

.occasion-tags { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 28px 0; }

.tag {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 2px solid var(--border);
  font-weight: 700;
  font-size: .88rem;
  color: var(--text);
  transition: border-color .2s, color .2s;
}
.tag:hover { border-color: var(--gold); color: var(--gold-dk); }

/* ── Cart Drawer ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44,30,30,.30);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: var(--bg);
  z-index: 1200;
  box-shadow: -8px 0 32px rgba(180,100,120,.14);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-header h2 { font-size: 1.4rem; }

.cart-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-lt);
  padding: 4px;
  line-height: 1;
  border-radius: var(--radius);
  transition: color .2s, background .2s;
}
.cart-close:hover { color: var(--gold-dk); background: var(--card-bg); }

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

.cart-empty { text-align: center; color: var(--text-lt); padding: 40px 0; }
.cart-empty .cart-empty-icon { margin-bottom: 12px; opacity: .4; }

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

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name   { font-weight: 700; font-size: .95rem; margin-bottom: 2px; }
.cart-item-flavor { font-size: .8rem; color: var(--text-lt); }
.cart-item-qty    { font-size: .85rem; color: var(--text-lt); white-space: nowrap; }
.cart-item-price  { font-weight: 700; color: var(--gold); white-space: nowrap; }

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-lt);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.cart-item-remove:hover { background: rgba(232,160,174,.15); color: var(--accent-dk); }

.cart-footer {
  padding: 20px 24px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
}
.cart-subtotal-amount { font-size: 1.2rem; color: var(--gold); }

/* ── Gallery Page ── */
.gallery-section { max-width: 1200px; margin: 0 auto; padding: 60px 24px; }

.gallery-section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}

.gallery-divider {
  width: 60px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0 auto 32px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
}
.gallery-item:hover { transform: scale(1.04); box-shadow: var(--shadow-lg); }
.gallery-item .img-placeholder { height: 100%; border-radius: 0; }

.gallery-coming-soon {
  max-width: 520px;
  margin: 0 auto;
  padding: 64px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.gallery-coming-soon-icon {
  color: var(--accent);
  opacity: .7;
  margin-bottom: 8px;
}
.gallery-coming-soon-heading {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-style: italic;
  color: var(--text);
}
.gallery-coming-soon-text {
  color: var(--text-lt);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ── Checkout Page ── */
.checkout-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}

.checkout-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.checkout-card h2 { font-size: 1.5rem; margin-bottom: 24px; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group label {
  font-weight: 700;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-lt);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Jost', sans-serif;
  font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }

.form-group textarea { resize: vertical; min-height: 90px; }

#card-container {
  min-height: 56px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  margin-bottom: 20px;
}

.order-summary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.order-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: .95rem;
}
.order-summary-item-price { font-weight: 700; color: var(--gold); }

.order-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  color: var(--text-lt);
  margin-top: 6px;
}

.order-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
  border-top: 2px solid var(--border);
  padding-top: 14px;
  margin-top: 8px;
}
.order-total-amount { color: var(--gold); font-size: 1.25rem; }

.checkout-note { font-size: .8rem; color: var(--text-lt); text-align: center; margin-top: 16px; line-height: 1.6; }

.trust-badges {
  margin-top: 20px;
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.trust-secured-row { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--text-lt); }

/* ── Confirmation Page ── */
.confirmation-hero { text-align: center; padding: 80px 24px; max-width: 700px; margin: 0 auto; }
.confirmation-icon { margin-bottom: 20px; }

.order-id-box {
  display: inline-block;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 32px;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--text);
  margin: 20px 0;
  letter-spacing: .08em;
}

.confirmation-summary {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin: 28px auto;
  max-width: 500px;
  text-align: left;
}

/* ── Coming Soon Pages ── */
.coming-soon-page { text-align: center; padding: 100px 24px; max-width: 600px; margin: 0 auto; }
.coming-soon-page .cs-icon { display: none; }
.coming-soon-page h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 16px; }
.coming-soon-page p  { font-size: 1.1rem; color: var(--text-lt); margin-bottom: 32px; }

/* ── Footer ── */
.site-footer {
  background: #0a0a0a;
  color: rgba(255,255,255,.75);
  padding: 48px 24px 28px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: start;
  margin-bottom: 36px;
}

.footer-brand .nav-logo-img { height: 52px; filter: brightness(0) invert(1); }
.footer-brand .nav-logo:hover .nav-logo-img { opacity: 0.80; }
.footer-brand p { font-size: .9rem; margin-top: 10px; max-width: 300px; line-height: 1.7; }

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-nav a {
  color: rgba(255,255,255,.6);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--gold); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-contact-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 2px;
}
.footer-contact-email {
  color: rgba(255,255,255,.85);
  font-size: .88rem;
  word-break: break-all;
  transition: color .2s;
}
.footer-contact-email:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Bundle Builder ── */
.bundle-hero { padding: 72px 24px 0; }
.bundle-hero h1 { font-size: clamp(2.6rem, 6vw, 4rem); font-style: italic; margin-bottom: 14px; }
.bundle-hero p  { font-size: 1.15rem; color: var(--text-lt); max-width: 500px; margin: 0 auto; line-height: 1.8; }

.bundle-section { padding: 64px 0; }
.bundle-inner   { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.bundle-step-header { display: flex; align-items: center; gap: 20px; margin-bottom: 36px; }

.bundle-step-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold);
  opacity: .30;
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}

.bundle-step-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 4px; }
.bundle-step-sub   { color: var(--text-lt); font-size: .95rem; }

.launch-sale-note {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

/* ─ Size Cards ─ */
.size-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.size-card {
  background: var(--white);
  border: 3px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  outline: none;
  position: relative;
}
.size-card:hover,
.size-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
}
.size-card.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,168,76,.20), var(--shadow-lg);
  transform: translateY(-4px);
}

.size-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--gold);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  z-index: 2;
}

.size-card-visual {
  background: linear-gradient(160deg, #FCE8EF 0%, #F9D8E5 60%, #FCE0EC 100%);
  padding: 28px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  position: relative;
}

.size-card--featured .size-card-visual {
  background: linear-gradient(160deg, var(--gold) 0%, var(--gold-dk) 100%);
}

.size-cupcakes {
  font-size: 1.5rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
  word-break: break-all;
  text-align: center;
  max-width: 140px;
  line-height: 1.6;
  opacity: .6;
}

.size-num {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.size-card--featured .size-num { color: var(--white); }

.size-unit {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-lt);
  margin-top: 2px;
}
.size-card--featured .size-unit { color: rgba(255,255,255,.8); }

.size-card-body { padding: 20px 20px 24px; text-align: center; }
.size-desc { color: var(--text-lt); font-size: .9rem; margin-bottom: 10px; }

.size-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.size-per { font-size: .8rem; color: var(--text-lt); margin-bottom: 14px; }

.size-select-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  transition: background .2s, color .2s;
}
.size-card:hover .size-select-label,
.size-card:focus-visible .size-select-label,
.size-card.selected .size-select-label {
  background: var(--gold);
  color: var(--white);
}

/* ─ Slots progress bar ─ */
.slots-bar-wrap { margin-bottom: 32px; }
.slots-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.slots-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dk) 100%);
  border-radius: 3px;
  transition: width .4s cubic-bezier(.4,0,.2,1);
}

/* ─ Flavor Cards ─ */
.flavor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.flavor-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  outline: none;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  aspect-ratio: 3 / 4;
}
.flavor-card:hover,
.flavor-card:focus-visible { transform: translateY(-6px) scale(1.02); box-shadow: 0 16px 48px rgba(0,0,0,.18); }
.flavor-card.flavor-card--active { box-shadow: 0 0 0 4px var(--gold), var(--shadow-lg); }
.flavor-card.flavor-card--locked { opacity: .55; pointer-events: none; }

.flavor-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .4s;
}
.flavor-card:hover .flavor-img { transform: scale(1.05); }

.flavor-img--keylime    { background: linear-gradient(160deg, #3a6b1a 0%, #1e4010 60%, #0d2206 100%); }
.flavor-img--pina       { background: linear-gradient(160deg, #c8921a 0%, #8a6010 60%, #5a3c06 100%); }
.flavor-img--choco      { background: linear-gradient(160deg, #3d1a06 0%, #5c2a0a 40%, #2a0e02 100%); }
.flavor-img--cookies    { background: linear-gradient(160deg, #1a1a1a 0%, #333 50%, #111 100%); }
.flavor-img--strawberry { background: linear-gradient(160deg, #c0284a 0%, #8b1a30 60%, #5a0e1e 100%); }
.flavor-img--birthday   { background: linear-gradient(160deg, #b06ad4 0%, #7b3fa8 40%, #e86ca0 100%); }
.flavor-img--redvelvet  { background: linear-gradient(160deg, #7a0a0a 0%, #a01414 40%, #5a0606 100%); }
.flavor-img--banana     { background: linear-gradient(160deg, #f5d76e 0%, #d4a817 60%, #8a6a10 100%); }

.flavor-emoji { font-size: 5rem; filter: drop-shadow(0 4px 12px rgba(0,0,0,.3)); user-select: none; }

.flavor-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
  padding: 52px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.flavor-name {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  text-align: center;
}

.fqty-ctrl {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255,255,255,.35);
  overflow: hidden;
}

.fqty-btn {
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fqty-btn:hover:not(:disabled) { background: rgba(255,255,255,.25); }
.fqty-btn:disabled { opacity: .35; cursor: not-allowed; }

.fqty-count { min-width: 32px; text-align: center; color: #fff; font-weight: 700; font-size: 1rem; }

/* ─ Bundle Bar ─ */
.bundle-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 800;
  background: var(--white);
  border-top: 2px solid var(--border);
  box-shadow: 0 -6px 28px rgba(180,100,120,.10);
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.bundle-bar.visible { transform: translateY(0); }

.bundle-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.bundle-bar-info { flex: 1; min-width: 0; }
.bundle-bar-label  { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.bundle-bar-flavors { font-size: .82rem; color: var(--text-lt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bundle-bar-right   { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.bundle-bar-price   { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--gold); }

.bundle-add-btn:disabled { background: var(--border); color: var(--text-lt); box-shadow: none; cursor: not-allowed; transform: none; }

/* ── Chocolate Type Cards ── */
.choc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 780px; margin: 0 auto; }

.choc-card {
  background: var(--white);
  border: 3px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  cursor: pointer;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  outline: none;
}
.choc-card:hover,
.choc-card:focus-visible { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-lg); }
.choc-card.choc-card--active {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,168,76,.20), var(--shadow-lg);
  transform: translateY(-4px);
}

.choc-swatch { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px; border: 3px solid rgba(0,0,0,.12); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.choc-name  { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.choc-desc  { font-size: .82rem; color: var(--text-lt); line-height: 1.5; }

/* ── About Page ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

.about-hero-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-text h2  { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 16px; }
.about-text p   { color: var(--text-lt); line-height: 1.9; margin-bottom: 16px; }
.about-text p:last-child { margin-bottom: 0; }

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-value {
  text-align: center;
  padding: 28px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about-value-icon { color: var(--gold); display: flex; justify-content: center; margin-bottom: 12px; }
.about-value h3   { font-size: 1.1rem; margin-bottom: 8px; }
.about-value p    { font-size: .9rem; color: var(--text-lt); line-height: 1.6; }

/* ── FAQ Page ── */
.faq-container { max-width: 780px; margin: 0 auto; padding: 60px 24px 80px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  gap: 16px;
  transition: background .2s;
}
.faq-question:hover { background: var(--card-bg); }

.faq-chevron { flex-shrink: 0; color: var(--gold); transition: transform .3s; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer { display: none; padding: 0 24px 20px; color: var(--text-lt); line-height: 1.8; font-size: .95rem; }
.faq-item.open .faq-answer { display: block; }

/* ── Utility ── */
.mt-8  { margin-top:    8px; }
.mt-16 { margin-top:   16px; }
.mt-24 { margin-top:   24px; }
.mt-32 { margin-top:   32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom:16px; }
.mb-24 { margin-bottom:24px; }
.mb-32 { margin-bottom:32px; }

.hidden { display: none !important; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links, .nav-actions .btn { display: none; }
  .hamburger { display: flex; }

  .category-header { grid-template-columns: 1fr; }
  .category-header.reverse { direction: ltr; }

  .checkout-layout { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav   { justify-content: flex-start; }

  .size-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .flavor-grid { grid-template-columns: repeat(2, 1fr); }
  .size-card-visual { min-height: 160px; }
  .size-num { font-size: 3rem; }

  .about-grid   { grid-template-columns: 1fr; gap: 40px; }
  .about-values { grid-template-columns: 1fr 1fr; }

  .hero--split {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 48px 24px 60px;
    gap: 32px;
    min-height: unset;
  }
  .hero--split .hero-cta { justify-content: center; }
  .hero-showcase { width: 300px; height: 300px; }
  .hero-showcase-img:nth-child(1) { width: 170px; height: 170px; }
  .hero-showcase-img:nth-child(2) { width: 130px; height: 130px; }
  .hero-showcase-img:nth-child(3) { width: 116px; height: 116px; }
}

@media (max-width: 640px) {
  .hero { min-height: 70vh; }
  .gallery-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .section      { padding: 52px 16px; }
  .section-full { padding: 52px 16px; }
  .products-grid { grid-template-columns: 1fr 1fr; }

  .size-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .bundle-bar-inner  { flex-direction: column; align-items: stretch; text-align: center; }
  .bundle-bar-right  { justify-content: space-between; }
  .bundle-bar-flavors { white-space: normal; }

  .about-values { grid-template-columns: 1fr; }
  .choc-grid { grid-template-columns: 1fr; max-width: 360px; }
}

@media (max-width: 440px) {
  .gallery-preview-grid { grid-template-columns: 1fr; }
  .gallery-grid  { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .email-form    { flex-direction: column; }
  .flavor-grid   { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
