@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital,wght@0,400;1,400&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Retuned to match Sweet Alchemy logo: bolder pink surfaces + saturated dusty rose.
     "navy" name kept for compatibility but value is now a deep warm plum-rose. */
  --navy: #552733;
  --navy-soft: #763B4C;
  --blue: #F5BFCA;
  --blue-deep: #EDA5B5;
  --pink: #C97487;
  --pink-soft: #F2BDC7;
  --rose: #A6404F;
  --cream: #FFEFEE;
  --cream-soft: #FAD9D7;
  --bg: #FFFFFF;
  --text: #3B1C26;
  --text-soft: #7A5660;
  --border: #E8BDC4;
  --shadow: 0 4px 16px rgba(85, 39, 51, 0.10);
  --shadow-lg: 0 14px 36px rgba(85, 39, 51, 0.18);
  --radius: 8px;
  --radius-card: 12px;
  --font-head: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  /* Shop-widget tokens — keep cart drawer + preview modal in palette */
  --primary: #A6404F;
  --primary-dark: #88303D;
  --ink: #552733;
  --muted: #7A5660;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ── Section heads ── */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--rose);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy);
  font-weight: 400;
  margin: 0 0 16px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.section-sub {
  color: var(--text-soft);
  font-size: 16px;
  max-width: 540px;
}
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .section-sub { margin: 0 auto; }

/* ── Header ── */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px;
  gap: 24px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-icon { display: none; }
.logo img[data-logo-image] { max-height: 44px; width: auto; object-fit: contain; }
.logo-text {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.header-nav { flex: 1; }
.header-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}
.header-nav a {
  display: block;
  padding: 10px 18px;
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  position: relative;
  transition: color .2s;
}
.header-nav a:hover, .header-nav a.active { color: var(--rose); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-cart {
  background: var(--bg);
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  position: relative;
  transition: all .2s;
}
.nav-cart:hover { background: var(--navy); color: #fff; }
.nav-cart-badge {
  position: absolute;
  top: -7px; right: -7px;
  background: var(--rose);
  color: #fff;
  font-size: 11px;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.menu-toggle {
  display: none;
  background: none; border: none;
  flex-direction: column; gap: 5px;
  padding: 6px;
}
.menu-toggle span { display: block; width: 22px; height: 1.5px; background: var(--navy); border-radius: 2px; }
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
}
.mobile-menu a {
  padding: 12px 16px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
}
.mobile-menu.open { display: flex; }

/* ── Hero (Bloom & Wild simplified — image left, color panel right) ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}
.hero-image {
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-panel {
  background: var(--blue);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 60px;
}
.hero-eyebrow {
  font-family: var(--font-body);
  color: var(--rose);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  color: var(--navy);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 22px;
  letter-spacing: -1px;
  white-space: pre-line;
  font-style: italic;
}
.hero-subtitle {
  color: var(--navy);
  font-size: 16px;
  margin: 0 0 32px;
  max-width: 460px;
  line-height: 1.7;
  opacity: 0.85;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
  transition: background .2s;
  align-self: flex-start;
}
.btn-primary:hover { background: var(--navy-soft); }

/* ── Categories: round photo circles (simplified — only 5) ── */
.categories-section { padding: 70px 0; background: var(--bg); }
.categories-row {
  display: flex;
  justify-content: center;
  gap: 38px;
  flex-wrap: wrap;
}
.cat-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  width: 130px;
}
.cat-circle-media {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream-soft);
  transition: transform .25s ease, box-shadow .25s ease;
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 1.5px var(--border);
}
.cat-circle:hover .cat-circle-media { transform: translateY(-3px); box-shadow: 0 0 0 1.5px var(--rose); }
.cat-circle-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.cat-circle-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}

/* ── Shop (4 column grid) ── */
.shop-section { padding: 80px 0; background: var(--cream); }
.shop-section .section-head { text-align: center; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--bg);
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card-media {
  aspect-ratio: 1 / 1;
  background: var(--cream-soft);
  overflow: hidden;
}
.product-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.product-card:hover .product-card-media img { transform: scale(1.05); }
.product-card-body {
  padding: 18px 20px 22px;
  text-align: center;
}
.product-name {
  font-family: var(--font-head);
  font-size: 17px;
  color: var(--navy);
  font-weight: 400;
  margin: 0 0 8px;
  line-height: 1.3;
  font-style: italic;
}
.product-price {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 16px;
}
.product-add {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  padding: 10px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .04em;
  border-radius: 999px;
  transition: all .2s;
}
.product-add:hover { background: var(--navy); color: #fff; }

/* ── Feature block (image + text 50/50) ── */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream);
}
.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }
.feature-block-image {
  min-height: 480px;
  overflow: hidden;
}
.feature-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feature-block-text {
  background: var(--pink-soft);
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-block-text h2 {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 400;
  color: var(--navy);
  margin: 0 0 18px;
  line-height: 1.15;
  letter-spacing: -0.4px;
}
.feature-block-text p {
  color: var(--navy);
  font-size: 16px;
  margin: 0 0 28px;
  line-height: 1.7;
  max-width: 460px;
  opacity: 0.85;
}

/* ── Trust bar ── */
.trust-section { padding: 80px 0; background: var(--bg); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-item {
  text-align: center;
  padding: 16px;
}
.trust-item i {
  font-size: 28px;
  color: var(--rose);
  margin-bottom: 14px;
}
.trust-item h4 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--navy);
  font-weight: 400;
  margin: 0 0 8px;
  font-style: italic;
}
.trust-item p { color: var(--text-soft); font-size: 14px; margin: 0; line-height: 1.6; }

/* ── Newsletter ── */
.newsletter-section {
  background: var(--blue);
  padding: 80px 24px;
  text-align: center;
}
.newsletter-section h2 {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--navy);
  margin: 0 0 14px;
  letter-spacing: -0.4px;
}
.newsletter-section p {
  color: var(--navy);
  font-size: 15px;
  max-width: 540px;
  margin: 0 auto 28px;
  opacity: 0.85;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: 999px;
  padding: 6px;
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--navy);
}
.newsletter-form button {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s;
}
.newsletter-form button:hover { background: var(--navy-soft); }

/* ── Footer ── */
.site-footer { background: var(--cream); padding: 64px 0 0; border-top: 1px solid var(--border); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand .logo-text { color: var(--navy); }
.footer-desc { font-size: 14px; color: var(--text-soft); line-height: 1.7; margin: 18px 0 22px; max-width: 320px; }
.footer-heading {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--navy);
  margin: 0 0 18px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: var(--text-soft);
  font-size: 14px;
  transition: color .2s;
}
.footer-links a:hover { color: var(--rose); }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text-soft);
  font-size: 14px;
}
.footer-contact-item i { color: var(--rose); width: 18px; }
.footer-contact-item a { color: inherit; }
.footer-contact-item a:hover { color: var(--rose); }
.footer-social {
  display: flex; gap: 10px; margin-top: 18px;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  transition: all .2s;
  border: 1px solid var(--border);
}
.footer-social a:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-soft);
}

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .header-nav { display: none; }
  .menu-toggle { display: flex; }
  .hero, .feature-block { grid-template-columns: 1fr; }
  .hero-image, .feature-block-image { min-height: 320px; }
  .hero-panel, .feature-block-text { padding: 40px 28px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
}

/* ── Sweet Alchemy brand overrides ── */
/* Use the actual logo image at a comfortable size; hide brand wordmark when image present */
.site-header .logo img[data-logo-image] { max-height: 68px; }
.site-header .logo-text { display: none; }
.footer-brand .logo-text { display: inline-block; }
@media (max-width: 768px) {
  .site-header .logo img[data-logo-image] { max-height: 52px; }
}

/* Slightly soften the primary button by tinting with rose for the bakery vibe (kept on dark for contrast) */
.btn-primary { background: var(--rose); }
.btn-primary:hover { background: #88303D; }
.product-add { border-color: var(--rose); color: var(--rose); }
.product-add:hover { background: var(--rose); color: #fff; }
.newsletter-form button { background: var(--rose); }
.newsletter-form button:hover { background: #88303D; }

/* Footer override: never invert dark/light */
.site-footer { background: var(--cream); }

/* Hide empty social icons via data-social=""+href="#" pattern (renderer hides via 'is-empty' class) */
.footer-social a.is-empty { display: none !important; }

/* Mobile horizontal-overflow safety for hero pre-line title */
@media (max-width: 480px) {
  .hero-title { white-space: normal; }
}

/* Prevent off-canvas cart drawer from causing horizontal scroll on mobile */
html, body { overflow-x: hidden; }

/* Mobile hero: cap image so CTA stays close to above-the-fold on a 390x844 viewport */
@media (max-width: 768px) {
  .hero { grid-template-rows: auto auto; }
  .hero-image { max-height: 320px; min-height: 240px; }
  .hero-image img { height: 320px; }
  .hero-panel { padding: 32px 24px 40px; }
  .hero-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .hero-subtitle { font-size: 14px; margin-bottom: 22px; }
}


