/* ============================================================
   GENEVIEVE'S SWEET TREATS — Main Stylesheet
   ============================================================ */

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

:root {
  --sage:        #8EB69E;
  --sage-dark:   #6a9982;
  --sage-light:  #c8ddd1;
  --blush:       #EB9E96;
  --blush-dark:  #d4827a;
  --blush-light: #f7dbd8;
  --tan:         #DBC0AB;
  --tan-light:   #f5ece4;
  --brown:       #583412;
  --brown-light: #7a5230;
  --cream:       #FDF4F0;
  --white:       #ffffff;

  --font-script: 'Pacifico', cursive;
  --font-body:   'Quicksand', sans-serif;

  --shadow-sm: 0 2px 8px rgba(88,52,18,0.08);
  --shadow-md: 0 4px 20px rgba(88,52,18,0.12);
  --shadow-lg: 0 8px 40px rgba(88,52,18,0.16);

  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-full: 9999px;

  --nav-height: 72px;
  --max-width:  1100px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--brown);
  font-size: 16px;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography ------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-script);
  line-height: 1.2;
  color: var(--brown);
}
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blush-dark);
  margin-bottom: 0.5rem;
  display: block;
}

/* --- Layout Helpers --------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}
.btn-primary:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--blush);
  color: var(--white);
  border-color: var(--blush);
}
.btn-secondary:hover {
  background: var(--blush-dark);
  border-color: var(--blush-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--sage-dark);
  border-color: var(--sage);
}
.btn-ghost:hover {
  background: var(--sage);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.8rem; }

/* --- Badges ----------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-sage  { background: var(--sage-light); color: var(--sage-dark); }
.badge-blush { background: var(--blush-light); color: var(--blush-dark); }

/* --- Cards ------------------------------------------------ */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* --- Navbar ----------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  height: var(--nav-height);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo .logo-main {
  height: 56px;
  width: auto;
}

.logo-text-fallback {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-script-text {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--sage);
  font-weight: 700;
}
.logo-sub-text {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blush);
  margin-top: -2px;
}

.nav-links {
  display: none;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brown-light);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--tan-light);
  color: var(--brown);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--tan-light);
  color: var(--brown);
  font-size: 1.1rem;
  transition: all var(--transition);
}
.cart-link:hover { background: var(--tan); }

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

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  z-index: 99;
}
.nav-drawer.open { display: block; }
.nav-drawer ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-drawer a {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--brown-light);
  transition: all var(--transition);
}
.nav-drawer a:hover,
.nav-drawer a.active { background: var(--tan-light); color: var(--brown); }

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

/* --- Footer ----------------------------------------------- */
.footer {
  background: var(--brown);
  color: var(--tan-light);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-logo img { display: none; }

.footer-logo p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  opacity: 0.7;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 1rem;
}

.footer-links li + li { margin-top: 0.5rem; }
.footer-links a {
  font-size: 0.875rem;
  opacity: 0.75;
  transition: opacity var(--transition);
}
.footer-links a:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(219,192,171,0.2);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  opacity: 0.6;
  text-align: center;
}

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

/* ============================================================
   HOME PAGE
   ============================================================ */

/* Hero */
.hero {
  background: var(--blush-light);
  padding: 5rem 0 4rem;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.hero-banner {
  width: 100%;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero h1 { margin-bottom: 1rem; }

.hero p {
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2rem;
  opacity: 0.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Drop Preview Section */
.drop-preview {
  background: var(--white);
}

.drop-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

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

.preview-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
}
.preview-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.preview-card-img {
  aspect-ratio: 1;
  background: var(--tan-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}
.preview-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-card-body {
  padding: 0.85rem 1rem;
}
.preview-card-body .badge { margin-bottom: 0.4rem; }
.preview-card-body h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}
.preview-card-body .price {
  font-size: 0.82rem;
  color: var(--brown-light);
}

/* How It Works snippet */
.how-snippet { background: var(--tan-light); }

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

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

.step {
  text-align: center;
  padding: 1.5rem;
}

.step-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1rem;
}

.step-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blush-dark);
  margin-bottom: 0.3rem;
}

.step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.step p  { font-size: 0.875rem; opacity: 0.8; }

/* About teaser */
.about-teaser {
  background: var(--sage-light);
  display: flex;
  align-items: center;
}

.about-teaser-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-teaser-inner { grid-template-columns: 1fr 1fr; }
}

.about-teaser-photo {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.about-teaser-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-teaser-text h2 { margin-bottom: 1rem; font-weight: 300; opacity: 0.8; }
.about-teaser-text p  { margin-bottom: 1.25rem; font-size: 0.95rem; opacity: 0.85; }

/* ============================================================
   SHOP PAGE
   ============================================================ */

.shop-header {
  background: var(--blush-light);
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.shop-header h1 { margin-bottom: 0.5rem; }
.shop-header p  { opacity: 0.8; max-width: 480px; margin: 0 auto; }

.countdown-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  max-width: 540px;
  margin: 3rem auto 0;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.countdown-section p {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-num {
  font-family: var(--font-script);
  font-size: 3rem;
  color: var(--sage-dark);
  line-height: 1;
}

.countdown-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin-top: 0.25rem;
}

.shop-grid-section { padding: 3.5rem 0; }

.shop-filter {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  border: 2px solid var(--tan);
  background: transparent;
  color: var(--brown-light);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--sage);
  background: var(--sage);
  color: var(--white);
}

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

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.product-card-img {
  aspect-ratio: 1;
  background: var(--tan-light);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.04); }

.product-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}

.product-card-body {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-body .tagline {
  font-size: 0.78rem;
  color: var(--blush-dark);
  font-style: italic;
  margin-bottom: 0.3rem;
}

.product-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.product-card-body .starting-price {
  font-size: 0.82rem;
  color: var(--brown-light);
  margin-bottom: 1rem;
  flex: 1;
}

.product-card-body .btn { width: 100%; justify-content: center; }

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */

.product-detail-section { padding: 4rem 0; }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .product-detail-grid { grid-template-columns: 1fr 1fr; }
}

.product-img-wrap {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: var(--tan-light);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
}
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.product-info .breadcrumb {
  font-size: 0.8rem;
  color: var(--brown-light);
  margin-bottom: 1rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}
.product-info .breadcrumb a:hover { color: var(--sage-dark); }

.product-info .badge { margin-bottom: 0.75rem; }

.product-info h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.35rem;
}

.product-info .tagline {
  font-size: 0.9rem;
  color: var(--blush-dark);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.product-info .description {
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.75rem;
  opacity: 0.85;
}

.tier-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brown-light);
  margin-bottom: 0.75rem;
}

.tier-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.tier-option {
  position: relative;
}

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

.tier-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.85rem 0.5rem;
  border: 2px solid var(--tan);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
}

.tier-option label .tier-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brown-light);
  margin-bottom: 0.2rem;
}

.tier-option label .tier-price {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--brown);
}

.tier-option input:checked + label {
  border-color: var(--sage);
  background: var(--sage-light);
}
.tier-option label:hover { border-color: var(--sage-light); }

.cart-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
}

.qty-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--tan);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--white);
}

.qty-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--brown);
  cursor: pointer;
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--tan-light); }

.qty-input {
  width: 44px;
  text-align: center;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brown);
  background: transparent;
  outline: none;
}

.tier-description {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 0.75rem;
  min-height: 2.5rem;
  line-height: 1.6;
}

.label-info-section {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  background: var(--tan-light);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  line-height: 1.6;
}
.label-info-section p { margin-bottom: 0.4rem; }
.label-info-section p:last-child { margin-bottom: 0; }
.label-info-section .disclaimer { opacity: 0.65; font-style: italic; margin-top: 0.5rem; }
.label-info-section strong { color: var(--brown); }

.allergen-section {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  background: var(--blush-light);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
}
.allergen-section strong { display: block; margin-bottom: 0.3rem; color: var(--blush-dark); }
.allergen-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.allergen-tag {
  padding: 0.2rem 0.6rem;
  background: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blush-dark);
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--brown);
  color: var(--white);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ============================================================
   CART PAGE
   ============================================================ */

.cart-section { padding: 3.5rem 0 5rem; }

.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .cart-layout { grid-template-columns: 1fr 340px; }
}

.cart-items { }

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  background: var(--tan-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.cart-item-info .tier { font-size: 0.8rem; color: var(--brown-light); }

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.cart-item-price {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--brown);
}

.cart-item-remove {
  background: none;
  border: none;
  font-size: 0.75rem;
  color: var(--blush-dark);
  cursor: pointer;
  padding: 0;
  transition: opacity var(--transition);
}
.cart-item-remove:hover { opacity: 0.6; }

.cart-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.cart-empty .icon { font-size: 3rem; margin-bottom: 1rem; }
.cart-empty h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.cart-empty p { opacity: 0.7; margin-bottom: 1.5rem; }

/* Cart summary */
.cart-summary {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
}

.cart-summary h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--tan-light);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 700;
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.cart-summary .btn { width: 100%; justify-content: center; margin-top: 1.25rem; }

.cart-note {
  margin-top: 1rem;
}
.cart-note label {
  font-size: 0.8rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
  color: var(--brown-light);
}
.cart-note textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--tan);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  resize: vertical;
  min-height: 70px;
  background: var(--cream);
  color: var(--brown);
  outline: none;
  transition: border-color var(--transition);
}
.cart-note textarea:focus { border-color: var(--sage); }

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */

.checkout-section { padding: 3.5rem 0 5rem; }

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .checkout-layout { grid-template-columns: 1fr 360px; }
}

.checkout-form { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 2rem; }

.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--tan-light);
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brown-light);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--tan);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--brown);
  background: var(--cream);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--sage); }

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.delivery-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.delivery-opt input[type="radio"] { position: absolute; opacity: 0; }
.delivery-opt label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem;
  border: 2px solid var(--tan);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
  background: var(--white);
}
.delivery-opt input:checked + label {
  border-color: var(--sage);
  background: var(--sage-light);
  color: var(--sage-dark);
}

#addressFields { display: none; }
#addressFields.visible { display: block; }

.submit-btn { width: 100%; justify-content: center; margin-top: 1.5rem; }

/* Order summary sidebar */
.order-summary-sidebar { position: sticky; top: calc(var(--nav-height) + 1rem); }
.order-summary-box { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 1.75rem; }
.order-summary-box h2 { font-size: 1.4rem; margin-bottom: 1.25rem; }

.summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--tan-light);
}
.summary-item-name { opacity: 0.85; }
.summary-item-price { font-weight: 600; flex-shrink: 0; margin-left: 0.5rem; }

/* ============================================================
   CONFIRMATION PAGE
   ============================================================ */

.confirmation-section {
  padding: 5rem 0;
  text-align: center;
}

.confirmation-box {
  max-width: 580px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 3rem 2rem;
}

.confirm-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.confirmation-box h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.confirmation-box .subtitle { font-size: 1rem; opacity: 0.75; margin-bottom: 2rem; }

.order-ref {
  background: var(--tan-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  margin-bottom: 2rem;
}
.order-ref strong { color: var(--sage-dark); font-size: 1.1rem; }

.confirm-next {
  text-align: left;
  border-top: 1px solid var(--tan-light);
  padding-top: 1.75rem;
  margin-top: 0.5rem;
}

.confirm-next h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.confirm-next ul { display: flex; flex-direction: column; gap: 0.6rem; }
.confirm-next li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.875rem;
  opacity: 0.85;
}
.confirm-next li::before { content: '✓'; color: var(--sage-dark); font-weight: 700; flex-shrink: 0; }

.confirm-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 2rem; }

/* ============================================================
   HOW IT WORKS PAGE
   ============================================================ */

.hiw-hero {
  background: var(--sage-light);
  padding: 4rem 0 3rem;
  text-align: center;
}
.hiw-hero h1 { margin-bottom: 0.5rem; }
.hiw-hero p { max-width: 500px; margin: 0 auto; opacity: 0.8; }

.hiw-steps { padding: 5rem 0; }

.hiw-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}

@media (min-width: 640px) {
  .hiw-step { grid-template-columns: 1fr 1fr; }
  .hiw-step.reverse { direction: rtl; }
  .hiw-step.reverse > * { direction: ltr; }
}

.hiw-step-visual {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: var(--tan-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  box-shadow: var(--shadow-sm);
}

.hiw-step-content .step-num { color: var(--blush-dark); }
.hiw-step-content h2 { margin: 0.3rem 0 0.75rem; }
.hiw-step-content p { font-size: 0.95rem; opacity: 0.85; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-hero {
  background: var(--blush-light);
  padding: 4rem 0 3rem;
  text-align: center;
}

.about-content {
  padding: 5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

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

.about-photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: var(--tan-light);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-text h2 { margin-bottom: 1rem; }
.about-text p { font-size: 0.95rem; line-height: 1.8; margin-bottom: 1rem; opacity: 0.85; }

.about-values {
  background: var(--tan-light);
  padding: 4rem 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.value-card .icon { font-size: 2.2rem; margin-bottom: 0.75rem; }
.value-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.value-card p { font-size: 0.875rem; opacity: 0.8; }

/* ============================================================
   GALLERY PAGE
   ============================================================ */

.gallery-hero {
  background: var(--tan-light);
  padding: 4rem 0 3rem;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: 3rem 0 5rem;
}

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

.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: var(--tan-light);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }

.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

/* ============================================================
   FAQ PAGE
   ============================================================ */

.faq-hero {
  background: var(--blush-light);
  padding: 4rem 0 3rem;
  text-align: center;
}

.faq-section { padding: 4rem 0 5rem; }

.faq-list { max-width: 700px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  gap: 1rem;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--tan-light); }

.faq-chevron {
  font-size: 0.75rem;
  transition: transform var(--transition);
  flex-shrink: 0;
  color: var(--sage-dark);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  font-size: 0.9rem;
  line-height: 1.75;
  opacity: 0.85;
}
.faq-item.open .faq-answer { max-height: 400px; padding: 0 1.5rem 1.25rem; }

/* ============================================================
   ARCHIVE PAGE
   ============================================================ */

.archive-hero {
  background: var(--sage-light);
  padding: 4rem 0 3rem;
  text-align: center;
}

.archive-section { padding: 4rem 0 5rem; }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.archive-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition);
}
.archive-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.archive-card-header {
  background: var(--tan-light);
  padding: 1.5rem;
  text-align: center;
}
.archive-card-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.archive-card-body { padding: 1.25rem; }

.archive-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--tan-light);
  font-size: 0.875rem;
}
.archive-item:last-child { border-bottom: none; }
.archive-item .badge { font-size: 0.65rem; padding: 0.15rem 0.5rem; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-hero {
  background: var(--blush-light);
  padding: 4rem 0 3rem;
  text-align: center;
}

.contact-section { padding: 4rem 0 5rem; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact-layout { grid-template-columns: 1fr 1fr; }
}

.contact-form-box {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
}
.contact-form-box h2 { margin-bottom: 1.5rem; }

.contact-info h2 { margin-bottom: 1.25rem; }

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-text strong { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.15rem; }
.contact-info-text span { font-size: 0.875rem; opacity: 0.8; }

/* ============================================================
   POLICIES PAGE
   ============================================================ */

.policies-hero {
  background: var(--tan-light);
  padding: 4rem 0 3rem;
  text-align: center;
}

.policies-section { padding: 4rem 0 5rem; }

.policies-content { max-width: 720px; margin: 0 auto; }

.policy-block {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.policy-block h2 { font-size: 1.7rem; margin-bottom: 1rem; }
.policy-block h3 { font-size: 1.3rem; margin: 1.25rem 0 0.5rem; }
.policy-block p  { font-size: 0.9rem; line-height: 1.8; opacity: 0.85; }
.policy-block ul { margin: 0.5rem 0 1rem 1.25rem; }
.policy-block ul li { font-size: 0.9rem; line-height: 1.75; opacity: 0.85; }

/* ============================================================
   PAGE HEADER (generic)
   ============================================================ */

.page-header {
  background: var(--blush-light);
  padding: 3.5rem 0 3rem;
  text-align: center;
}
.page-header h1 { margin-bottom: 0.5rem; }
.page-header p  { opacity: 0.8; max-width: 500px; margin: 0 auto; font-size: 0.95rem; }

/* ============================================================
   UTILITY / MISC
   ============================================================ */

.divider {
  border: none;
  border-top: 1px solid var(--tan);
  margin: 3rem 0;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  font-size: 0.9rem;
  opacity: 0.6;
}

.error-state {
  text-align: center;
  padding: 3rem;
  background: var(--white);
  border-radius: var(--radius-md);
}
.error-state p { opacity: 0.7; }
