/* ==========================================================================
   Astra Child Bakery — Amandius
   Estetica pasteleria artesanal aplicada a una tienda de cuero.
   Paleta: crema, caramelo/cuero, rosa empolvado, verde oliva apagado.
   ========================================================================== */

:root {
  --bk-cream: #fbf4e8;
  --bk-cream-deep: #f3e7d1;
  --bk-pink: #e8c7b0;
  --bk-pink-soft: #f6dccc;
  --bk-leather: #8b5a3c;
  --bk-leather-deep: #5e3a22;
  --bk-olive: #8a8a5c;
  --bk-ink: #2b2018;
  --bk-muted: #6b5848;
  --bk-line: rgba(91, 58, 34, 0.15);
  --bk-shadow: 0 18px 40px -24px rgba(94, 58, 34, 0.35);
  --bk-radius: 18px;

  --bk-serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --bk-script: "Dancing Script", "Segoe Script", cursive;
  --bk-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
body.bakery-theme {
  background: var(--bk-cream);
  color: var(--bk-ink);
  font-family: var(--bk-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.bakery-theme h1,
body.bakery-theme h2,
body.bakery-theme h3,
body.bakery-theme h4 {
  font-family: var(--bk-serif);
  font-weight: 600;
  color: var(--bk-leather-deep);
  letter-spacing: 0.01em;
}

body.bakery-theme a { color: var(--bk-leather); text-decoration: none; }
body.bakery-theme a:hover { color: var(--bk-leather-deep); }

body.bakery-theme p { color: var(--bk-muted); }

/* ---------- Announcement bar ---------- */
.bakery-topbar {
  background: var(--bk-leather-deep);
  color: var(--bk-cream);
  font-family: var(--bk-sans);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bakery-topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.bakery-topbar .sep { opacity: 0.5; }

/* ---------- Header tune (works with Astra) ---------- */
body.bakery-theme .site-header,
body.bakery-theme .ast-primary-header-bar {
  background: var(--bk-cream) !important;
  border-bottom: 1px solid var(--bk-line);
}
body.bakery-theme .main-header-menu a,
body.bakery-theme .ast-header-navigation-wrap a,
body.bakery-theme #ast-desktop-header .menu-item > a {
  font-family: var(--bk-sans);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12.5px;
  color: var(--bk-ink) !important;
}
body.bakery-theme .main-header-menu a:hover { color: var(--bk-leather) !important; }

body.bakery-theme .site-logo-img img,
body.bakery-theme .custom-logo-link img {
  filter: saturate(0.85);
}

/* Utility buttons */
.bakery-btn {
  display: inline-block;
  padding: 14px 34px;
  font-family: var(--bk-sans);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 12.5px;
  border-radius: 999px;
  transition: transform .25s ease, background-color .25s ease, color .25s ease, box-shadow .25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.bakery-btn-primary {
  background: var(--bk-leather);
  color: var(--bk-cream) !important;
  box-shadow: var(--bk-shadow);
}
.bakery-btn-primary:hover {
  background: var(--bk-leather-deep);
  transform: translateY(-2px);
  color: var(--bk-cream) !important;
}
.bakery-btn-ghost {
  background: transparent;
  color: var(--bk-leather-deep) !important;
  border-color: var(--bk-leather);
}
.bakery-btn-ghost:hover {
  background: var(--bk-leather);
  color: var(--bk-cream) !important;
}

/* ---------- Hero ---------- */
.bakery-hero {
  position: relative;
  margin: 0 0 60px;
  padding: 120px 24px 140px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bk-cream) 0%, var(--bk-pink-soft) 100%);
  isolation: isolate;
}
/* Shop header hero: shorter, lets products appear above fold */
body.bakery-theme.woocommerce-page .bakery-hero { padding: 70px 24px 80px; margin-bottom: 30px; }
.bakery-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(232, 199, 176, 0.55), transparent 40%),
    radial-gradient(circle at 88% 30%, rgba(138, 138, 92, 0.18), transparent 45%),
    radial-gradient(circle at 50% 110%, rgba(139, 90, 60, 0.2), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.bakery-hero-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.bakery-hero-inner {
  position: relative;
  z-index: 2;
}

/* Photo-backed variant: sets --bk-hero-bg inline on the section */
.bakery-hero--photo .bakery-hero-bg {
  background-image: var(--bk-hero-bg);
  background-size: cover;
  background-position: center;
  filter: blur(6px) saturate(0.9) brightness(0.95);
  transform: scale(1.06); /* avoid blur edges */
}
.bakery-hero--photo .bakery-hero-veil {
  background:
    linear-gradient(180deg, rgba(251, 244, 232, 0.55) 0%, rgba(246, 220, 204, 0.72) 60%, rgba(251, 244, 232, 0.88) 100%),
    radial-gradient(ellipse at center, rgba(139, 90, 60, 0.08) 0%, rgba(139, 90, 60, 0.25) 100%);
}
.bakery-hero--photo .bakery-hero-title,
.bakery-hero--photo .bakery-hero-sub {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}
.bakery-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}
.bakery-hero-kicker {
  display: inline-block;
  font-family: var(--bk-script);
  font-size: 28px;
  color: var(--bk-leather);
  margin-bottom: 12px;
  transform: rotate(-2deg);
}
.bakery-hero-title {
  font-family: var(--bk-serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 18px;
  color: var(--bk-leather-deep);
}
.bakery-hero-sub {
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto 32px;
  color: var(--bk-muted);
}
.bakery-hero-ornament {
  margin-top: 36px;
  color: var(--bk-leather);
  opacity: 0.6;
  display: flex;
  justify-content: center;
}
.bakery-hero-ornament svg { width: 160px; height: auto; }

/* ---------- Section heads ---------- */
.bakery-section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 36px;
}
.bakery-kicker {
  display: inline-block;
  font-family: var(--bk-script);
  font-size: 24px;
  color: var(--bk-leather);
  transform: rotate(-2deg);
  margin-bottom: 6px;
}
.bakery-section-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin: 0 0 10px;
}
.bakery-section-head p { color: var(--bk-muted); }

/* Reassure strip: ahora renderizado con Tailwind CDN (.bakery-reassure-tw). */

/* ---------- Dedicated CTA (wins over body.bakery-theme a color) ---------- */
body.bakery-theme a.bakery-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 38px;
  font-family: var(--bk-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 999px;
  text-decoration: none !important;
  transition: background-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
body.bakery-theme a.bakery-cta::after {
  content: "\2192";
  font-size: 16px;
  transition: transform .25s ease;
}
body.bakery-theme a.bakery-cta:hover::after { transform: translateX(4px); }

/* Variant: pink accent with dark leather ink — stands out on cream bg */
body.bakery-theme a.bakery-cta--pink {
  background: var(--bk-pink) !important;
  color: var(--bk-leather-deep) !important;
  box-shadow: 0 16px 36px -18px rgba(139, 90, 60, 0.45);
  border: 1px solid transparent;
}
body.bakery-theme a.bakery-cta--pink:hover {
  background: var(--bk-leather-deep) !important;
  color: var(--bk-cream) !important;
  transform: translateY(-2px);
  box-shadow: 0 22px 42px -18px rgba(139, 90, 60, 0.6);
}

/* WooCommerce's layout-grid stylesheet ships a bad legacy rule:
 *   .woocommerce-page { width: 48%; }
 * that sets width on BODY when on a shop page. Undo first. */
body.bakery-theme.woocommerce-page,
body.bakery-theme.woocommerce,
body.bakery-theme.woocommerce-js {
  width: 100% !important;
  max-width: 100% !important;
}

body.bakery-theme { overflow-x: hidden; }
/* ID-selector level specificity so nothing overrides */
html body.bakery-theme #page.hfeed.site,
body.bakery-theme #page {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
}
body.bakery-theme #content.site-content,
body.bakery-theme #primary,
body.bakery-theme #primary > main.site-main,
body.bakery-theme .ast-woocommerce-container {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
body.bakery-theme #content .ast-container {
  max-width: 1240px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.bakery-theme .hfeed.site > section[class*="bakery-"],
body.bakery-theme .hfeed.site > .amandius-footer { width: 100% !important; }

/* Also make sure the now-empty .entry-content doesnt show a giant gap */
body.home .entry-content:empty,
body.home .entry-content > p:empty { display: none; }
body.home .entry-header,
body.home .entry-footer { display: none; }

/* ---------- WooCommerce product cards ---------- */
body.bakery-theme .woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 36px 24px;
  padding: 0;
  margin: 0 0 40px !important;
}
body.bakery-theme .woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff;
  border-radius: var(--bk-radius);
  border: 1px solid var(--bk-line);
  box-shadow: 0 8px 22px -18px rgba(94, 58, 34, 0.45);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  text-align: center;
}
body.bakery-theme .woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -20px rgba(94, 58, 34, 0.45);
}
body.bakery-theme .woocommerce ul.products li.product a img {
  margin: 0 !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--bk-cream-deep);
}
body.bakery-theme .woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--bk-serif) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--bk-leather-deep) !important;
  padding: 16px 16px 4px !important;
  margin: 0 !important;
}
body.bakery-theme .woocommerce ul.products li.product .price {
  color: var(--bk-leather) !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  padding: 0 16px 4px !important;
  display: block;
}
body.bakery-theme .woocommerce ul.products li.product .price ins { background: transparent; text-decoration: none; }
body.bakery-theme .woocommerce ul.products li.product .button,
body.bakery-theme .woocommerce ul.products li.product .added_to_cart {
  margin: 0 auto 18px !important;
  display: inline-block;
  padding: 10px 22px !important;
  background: var(--bk-leather) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
}
body.bakery-theme .woocommerce ul.products li.product .button:hover {
  background: var(--bk-leather-deep) !important;
}

body.bakery-theme .woocommerce span.onsale {
  background: var(--bk-pink) !important;
  color: var(--bk-leather-deep) !important;
  border-radius: 999px !important;
  font-family: var(--bk-sans) !important;
  font-size: 11px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  top: 14px !important;
  left: 14px !important;
  right: auto !important;
  min-height: 0 !important;
  padding: 6px 12px !important;
  min-width: 0 !important;
  line-height: 1 !important;
}

/* ---------- Site-wide button palette override ----------
   Astra + WooCommerce inject a blue primary color via CSS vars
   (--ast-btn-bg-color, wc primary). We override everywhere. */
body.bakery-theme {
  --ast-btn-bg-color: var(--bk-leather);
  --ast-btn-bg-h-color: var(--bk-leather-deep);
  --ast-btn-color: #ffffff;
  --ast-btn-color-h: #ffffff;
  --ast-global-color-0: var(--bk-leather);
  --ast-global-color-1: var(--bk-leather-deep);
  --ast-global-color-4: var(--bk-leather);
  --wp--preset--color--vivid-cyan-blue: var(--bk-leather);
  --wp--preset--color--luminous-vivid-orange: var(--bk-leather);
}

body.bakery-theme .wp-block-button__link,
body.bakery-theme .woocommerce a.button,
body.bakery-theme .woocommerce a.button.alt,
body.bakery-theme .woocommerce button.button,
body.bakery-theme .woocommerce button.button.alt,
body.bakery-theme .woocommerce input.button,
body.bakery-theme .woocommerce input.button.alt,
body.bakery-theme .woocommerce #respond input#submit,
body.bakery-theme .woocommerce #respond input#submit.alt,
body.bakery-theme .woocommerce-page a.button,
body.bakery-theme .woocommerce-page button.button,
body.bakery-theme .woocommerce ul.products li.product .button,
body.bakery-theme .wc-block-components-button,
body.bakery-theme .landing-add-to-cart,
body.bakery-theme .single_add_to_cart_button,
body.bakery-theme .checkout-button,
body.bakery-theme .place-order .button {
  background-color: var(--bk-leather) !important;
  background-image: none !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 12px 26px !important;
  font-family: var(--bk-sans) !important;
  font-weight: 500 !important;
  font-size: 12px !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  text-shadow: none !important;
  transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease !important;
  box-shadow: 0 14px 30px -18px rgba(139, 90, 60, 0.55) !important;
}
body.bakery-theme .wp-block-button__link:hover,
body.bakery-theme .woocommerce a.button:hover,
body.bakery-theme .woocommerce button.button:hover,
body.bakery-theme .woocommerce input.button:hover,
body.bakery-theme .woocommerce #respond input#submit:hover,
body.bakery-theme .woocommerce ul.products li.product .button:hover,
body.bakery-theme .wc-block-components-button:hover,
body.bakery-theme .landing-add-to-cart:hover,
body.bakery-theme .single_add_to_cart_button:hover,
body.bakery-theme .checkout-button:hover {
  background-color: var(--bk-leather-deep) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -18px rgba(139, 90, 60, 0.7) !important;
}

/* Focus rings in leather tone, not blue */
body.bakery-theme a:focus-visible,
body.bakery-theme button:focus-visible,
body.bakery-theme input:focus-visible,
body.bakery-theme select:focus-visible,
body.bakery-theme textarea:focus-visible {
  outline: 2px solid var(--bk-leather) !important;
  outline-offset: 2px !important;
}

/* "Added" / loader state */
body.bakery-theme .woocommerce a.added_to_cart {
  color: var(--bk-leather-deep) !important;
  text-decoration: underline !important;
}

/* ---------- Shop archive layout fix ----------
   Astra sets a tight container on shop; widen and re-space. */
body.bakery-theme.woocommerce-page .ast-container,
body.bakery-theme.woocommerce .ast-container {
  max-width: 1240px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}
body.bakery-theme.woocommerce-page ul.products,
body.bakery-theme.woocommerce ul.products,
body.bakery-theme .woocommerce ul.products,
body.bakery-theme .woocommerce ul.products.columns-4,
body.bakery-theme .woocommerce-page ul.products.columns-4 {
  display: grid !important;
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 40px 28px !important;
  margin: 0 0 60px !important;
  padding: 0 !important;
  list-style: none !important;
}
@media (max-width: 820px) {
  body.bakery-theme .woocommerce ul.products,
  body.bakery-theme .woocommerce ul.products.columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px 16px !important;
  }
}
@media (max-width: 480px) {
  body.bakery-theme .woocommerce ul.products,
  body.bakery-theme .woocommerce ul.products.columns-4 {
    grid-template-columns: 1fr !important;
  }
}
body.bakery-theme .woocommerce ul.products li.product {
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
}
body.bakery-theme.woocommerce-page #primary {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
}

/* Shop page header tune */
body.bakery-theme .woocommerce .woocommerce-products-header__title,
body.bakery-theme .woocommerce-page .page-title {
  font-family: var(--bk-serif) !important;
  color: var(--bk-leather-deep) !important;
  font-size: clamp(2rem, 3.5vw, 2.8rem) !important;
  text-align: center !important;
  margin: 20px 0 10px !important;
}
body.bakery-theme .woocommerce-result-count {
  text-align: center !important;
  color: var(--bk-muted) !important;
  font-size: 13px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  margin-bottom: 28px !important;
}
body.bakery-theme .woocommerce-ordering { display: flex; justify-content: center; margin-bottom: 30px; }

/* ---------- Single product ---------- */
body.bakery-theme .woocommerce div.product .product_title {
  font-family: var(--bk-serif) !important;
  color: var(--bk-leather-deep) !important;
  font-size: clamp(1.8rem, 3vw, 2.6rem) !important;
}
body.bakery-theme .woocommerce div.product p.price,
body.bakery-theme .woocommerce div.product span.price {
  color: var(--bk-leather) !important;
  font-weight: 600 !important;
  font-size: 22px !important;
}
body.bakery-theme .woocommerce div.product form.cart .button,
body.bakery-theme .woocommerce #respond input#submit,
body.bakery-theme .woocommerce a.button,
body.bakery-theme .woocommerce button.button,
body.bakery-theme .woocommerce input.button {
  background: var(--bk-leather) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 14px 30px !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
  border: none !important;
  transition: background-color .25s ease, transform .25s ease;
}
body.bakery-theme .woocommerce a.button:hover,
body.bakery-theme .woocommerce button.button:hover {
  background: var(--bk-leather-deep) !important;
  transform: translateY(-1px);
}

/* Cart notices */
body.bakery-theme .woocommerce-message,
body.bakery-theme .woocommerce-info,
body.bakery-theme .woocommerce-error {
  background: #fff !important;
  border-top-color: var(--bk-leather) !important;
  color: var(--bk-ink) !important;
  border-radius: var(--bk-radius) !important;
  box-shadow: var(--bk-shadow);
}

/* ---------- Footer (override Astra + amandius-customizations mu-plugin) ---------- */
body.bakery-theme .site-footer,
body.bakery-theme footer.site-footer,
body.bakery-theme .amandius-footer {
  background: var(--bk-leather-deep) !important;
  color: var(--bk-cream) !important;
  font-family: var(--bk-sans) !important;
}
body.bakery-theme .site-footer *,
body.bakery-theme footer.site-footer *,
body.bakery-theme .amandius-footer * {
  color: inherit !important;
  border-color: rgba(251, 244, 232, 0.18) !important;
}
body.bakery-theme .amandius-footer a,
body.bakery-theme .site-footer a,
body.bakery-theme footer.site-footer a {
  color: var(--bk-pink-soft) !important;
  text-decoration: none !important;
  transition: color .2s ease;
}
body.bakery-theme .amandius-footer a:hover,
body.bakery-theme .site-footer a:hover,
body.bakery-theme footer.site-footer a:hover {
  color: #fff !important;
  text-decoration: none !important;
}
body.bakery-theme .amandius-footer h2,
body.bakery-theme .amandius-footer h3,
body.bakery-theme .amandius-footer h4,
body.bakery-theme .site-footer h2,
body.bakery-theme .site-footer h3,
body.bakery-theme .site-footer h4 {
  color: #fff !important;
  font-family: var(--bk-serif) !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  border-bottom-color: rgba(251, 244, 232, 0.22) !important;
}

/* Payment pills */
body.bakery-theme .amandius-footer .payment-methods span {
  background: rgba(251, 244, 232, 0.1) !important;
  color: var(--bk-cream) !important;
  border: 1px solid rgba(251, 244, 232, 0.18) !important;
  border-radius: 999px !important;
  padding: 5px 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
}

/* Social icons: warm tone, not blue */
body.bakery-theme .amandius-footer .social-links a {
  background: rgba(251, 244, 232, 0.1) !important;
  color: var(--bk-pink-soft) !important;
  border: 1px solid rgba(251, 244, 232, 0.2) !important;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease !important;
}
body.bakery-theme .amandius-footer .social-links a:hover {
  background: var(--bk-pink) !important;
  color: var(--bk-leather-deep) !important;
  border-color: var(--bk-pink) !important;
  transform: translateY(-2px);
}

/* Bottom strip darker but warm, not navy */
body.bakery-theme .amandius-footer-bottom {
  background: #3d2617 !important;
  color: rgba(251, 244, 232, 0.65) !important;
  border-top: 1px solid rgba(251, 244, 232, 0.08) !important;
  margin-top: 40px !important;
}

/* Astra "below footer" strip that can leak white */
body.bakery-theme .site-below-footer-wrap,
body.bakery-theme .ast-footer-copyright {
  background: var(--bk-leather-deep) !important;
  color: var(--bk-cream) !important;
}

/* ---------- Bakery footer (replaces legacy amandius-footer) ---------- */
.bakery-footer {
  background: var(--bk-leather-deep);
  color: var(--bk-cream);
  padding: 60px 0 0;
  font-family: var(--bk-sans);
  font-size: 14px;
  line-height: 1.75;
  width: 100%;
}
.bakery-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}
.bakery-footer h4 {
  font-family: var(--bk-serif);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(251, 244, 232, 0.2);
}
.bakery-footer p { color: rgba(251, 244, 232, 0.82); margin: 0 0 14px; }
.bakery-footer ul { list-style: none; padding: 0; margin: 0; }
.bakery-footer li { margin: 0 0 6px; }
.bakery-footer a {
  color: var(--bk-pink-soft);
  text-decoration: none;
  transition: color .2s ease;
}
.bakery-footer a:hover { color: #fff; }
.bakery-footer-social { display: flex; gap: 10px; margin-top: 8px; }
.bakery-footer-social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(251, 244, 232, 0.1);
  border: 1px solid rgba(251, 244, 232, 0.2);
  border-radius: 50%;
  color: var(--bk-pink-soft);
  transition: all .25s ease;
}
.bakery-footer-social a:hover {
  background: var(--bk-pink);
  color: var(--bk-leather-deep);
  border-color: var(--bk-pink);
  transform: translateY(-2px);
}
.bakery-footer-pay { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.bakery-footer-pay span {
  background: rgba(251, 244, 232, 0.1);
  border: 1px solid rgba(251, 244, 232, 0.2);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.bakery-footer-bottom {
  margin-top: 40px;
  padding: 18px 24px;
  background: #3d2617;
  color: rgba(251, 244, 232, 0.6);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
}
@media (max-width: 860px) {
  .bakery-footer-inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 520px) {
  .bakery-footer-inner { grid-template-columns: 1fr; text-align: center; }
  .bakery-footer h4 { display: inline-block; }
  .bakery-footer-social,
  .bakery-footer-pay { justify-content: center; }
}

/* ---------- Forms ---------- */
body.bakery-theme input[type="text"],
body.bakery-theme input[type="email"],
body.bakery-theme input[type="tel"],
body.bakery-theme input[type="password"],
body.bakery-theme input[type="search"],
body.bakery-theme input[type="number"],
body.bakery-theme select,
body.bakery-theme textarea {
  background: #fff;
  border: 1px solid var(--bk-line) !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  font-family: var(--bk-sans);
  color: var(--bk-ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
body.bakery-theme input:focus,
body.bakery-theme textarea:focus,
body.bakery-theme select:focus {
  outline: none;
  border-color: var(--bk-leather) !important;
  box-shadow: 0 0 0 3px rgba(139, 90, 60, 0.18);
}

/* ---------- Icons injected by amandius-wishlist mu-plugin (desktop only) ---------- */
@media (min-width: 922px) {
  body.bakery-theme .amandius-header-icons a {
    color: var(--bk-leather-deep) !important;
  }
  body.bakery-theme .amandius-header-icons .badge {
    background: var(--bk-leather) !important;
    color: #fff !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .bakery-hero { padding: 60px 18px 70px; margin-bottom: 40px; }
  .bakery-hero-kicker { font-size: 22px; }
  .bakery-topbar-inner { font-size: 11.5px; gap: 10px; padding: 8px 16px; }
}

/* --- Mobile header fixes (topbar + floating icons + hamburger) --- */
@media (max-width: 921px) {
  /* Topbar: one tight line with just the short claim, extras hidden */
  body.bakery-theme .bakery-topbar { position: relative; z-index: 5; }
  body.bakery-theme .bakery-topbar-inner {
    padding: 7px 14px !important;
    font-size: 11px !important;
    letter-spacing: 0.06em !important;
    white-space: nowrap;
    gap: 6px !important;
    justify-content: center !important;
    flex-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.bakery-theme .bakery-topbar-inner .bk-tb-full { display: none !important; }

  /* Mu-plugin fixes icons at top:8px which collides with our topbar.
     Move them below the topbar (topbar ~38px) and align with the logo row. */
  body.bakery-theme .amandius-header-icons {
    position: fixed !important;
    top: 52px !important;
    right: 54px !important;
    z-index: 100000 !important;
    gap: 10px !important;
  }
  /* Keep all three icons visible on mobile */
  body.bakery-theme .amandius-header-icons .amandius-hicon {
    display: inline-flex !important;
  }
  /* (Icon styles moved to the later block that places them in the topbar) */

  /* Hamburger: cleaner, on-brand */
  body.bakery-theme .ast-mobile-header-content .menu-toggle,
  body.bakery-theme .main-header-menu-toggle,
  body.bakery-theme button.menu-toggle {
    background: transparent !important;
    color: var(--bk-leather-deep) !important;
    border: none !important;
    box-shadow: none !important;
    padding: 6px 8px !important;
    width: auto !important;
    height: auto !important;
  }
  body.bakery-theme .menu-toggle .mobile-menu-toggle-icon,
  body.bakery-theme .menu-toggle svg {
    fill: var(--bk-leather-deep) !important;
    color: var(--bk-leather-deep) !important;
    width: 26px !important;
    height: 26px !important;
  }
  body.bakery-theme .menu-toggle .screen-reader-text { display: none; }

  /* The opened off-canvas / dropdown menu */
  body.bakery-theme .main-header-bar-navigation,
  body.bakery-theme .main-header-bar-navigation .main-header-menu,
  body.bakery-theme #ast-mobile-header .main-header-bar-navigation,
  body.bakery-theme #ast-hf-mobile-menu,
  body.bakery-theme #ast-mobile-header .main-header-menu,
  body.bakery-theme .ast-mobile-header-wrap .main-header-bar-navigation {
    background: var(--bk-cream) !important;
    background-color: var(--bk-cream) !important;
    padding: 14px 0 !important;
  }
  body.bakery-theme .ast-mobile-header-wrap #ast-mobile-header {
    background: var(--bk-cream) !important;
  }
  body.bakery-theme #ast-hf-mobile-menu > li > a,
  body.bakery-theme #ast-mobile-header .menu-item > a,
  body.bakery-theme #ast-hf-mobile-menu .menu-link,
  body.bakery-theme #ast-hf-mobile-menu .sub-menu > li > a {
    font-family: var(--bk-serif) !important;
    font-size: 18px !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    color: var(--bk-leather-deep) !important;
    background: transparent !important;
    background-color: transparent !important;
    padding: 14px 24px !important;
    border-bottom: 1px solid var(--bk-line) !important;
  }
  /* Submenu container: readable cream-tinted surface instead of brown-on-brown */
  body.bakery-theme #ast-hf-mobile-menu .sub-menu,
  body.bakery-theme #ast-hf-mobile-menu .menu-item-has-children .sub-menu,
  body.bakery-theme #ast-hf-mobile-menu > li.menu-item-has-children > ul,
  body.bakery-theme #ast-mobile-header .sub-menu {
    background: var(--bk-cream-deep) !important;
    background-color: var(--bk-cream-deep) !important;
    padding: 6px 0 12px !important;
    margin: 0 !important;
    box-shadow: inset 0 1px 0 rgba(94, 58, 34, 0.08) !important;
  }
  body.bakery-theme #ast-hf-mobile-menu .sub-menu li,
  body.bakery-theme #ast-mobile-header .sub-menu li {
    background: transparent !important;
  }
  body.bakery-theme #ast-hf-mobile-menu .sub-menu a,
  body.bakery-theme #ast-mobile-header .sub-menu a,
  body.bakery-theme #ast-hf-mobile-menu .sub-menu .menu-link {
    font-family: var(--bk-sans) !important;
    font-size: 14.5px !important;
    padding: 12px 40px !important;
    color: var(--bk-leather-deep) !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(94, 58, 34, 0.08) !important;
    text-transform: none !important;
    letter-spacing: 0.04em !important;
    opacity: 1 !important;
  }
  body.bakery-theme #ast-hf-mobile-menu .sub-menu li:last-child a { border-bottom: none !important; }
  body.bakery-theme #ast-hf-mobile-menu .sub-menu a:hover,
  body.bakery-theme #ast-hf-mobile-menu > li > a:hover,
  body.bakery-theme #ast-mobile-header .sub-menu a:hover {
    color: var(--bk-leather) !important;
    background: rgba(232, 199, 176, 0.4) !important;
  }
  /* Submenu chevron tidy */
  body.bakery-theme #ast-hf-mobile-menu .menu-item-has-children > a::after {
    content: "+";
    float: right;
    font-weight: 400;
    color: var(--bk-leather);
  }
  body.bakery-theme #ast-hf-mobile-menu .menu-item-has-children.toggled-on > a::after {
    content: "\2212"; /* minus */
  }

  /* Hero etc smaller on very narrow screens */
  .bakery-hero { padding: 50px 18px 60px; margin-bottom: 30px; }
}

@media (max-width: 520px) {
  /* Keep just shipping line on very narrow screens */
  body.bakery-theme .bakery-topbar-inner { font-size: 10.5px !important; padding: 6px 10px !important; }
  body.bakery-theme .bakery-hero-title { font-size: 2.1rem !important; }
  body.bakery-theme .bakery-hero-sub { font-size: 15px !important; }
}

/* ================================================================
   Tailwind-lookalike utilities for our bakery sections.
   Scoped to .bakery-reassure-tw / .bakery-cats-tw / .bakery-featured-tw
   so they do not leak to the rest of the site. Replaces the broken
   Tailwind Play CDN that was shrinking Astra's #page layout.
   ================================================================ */

/* Section shells */
.bakery-reassure-tw,
.bakery-cats-tw,
.bakery-featured-tw {
  position: relative;
  padding: 80px 24px;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}
.bakery-reassure-tw { background: linear-gradient(180deg, var(--bk-cream) 0%, var(--bk-cream) 60%, rgba(246,220,204,0.3) 100%); }
.bakery-cats-tw { background: var(--bk-cream); }
.bakery-featured-tw { background: linear-gradient(180deg, rgba(246,220,204,0.2) 0%, var(--bk-cream) 50%, var(--bk-cream) 100%); }

.bakery-reassure-tw > div,
.bakery-cats-tw > div,
.bakery-featured-tw > div { position: relative; }

.bakery-reassure-tw > .relative,
.bakery-cats-tw > .relative,
.bakery-featured-tw > .relative {
  max-width: 1152px;
  margin: 0 auto;
}

.bakery-reassure-tw header,
.bakery-cats-tw header,
.bakery-featured-tw header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}
.bakery-reassure-tw header > span:first-child,
.bakery-cats-tw header > span:first-child,
.bakery-featured-tw header > span:first-child {
  display: block;
  font-family: var(--bk-script);
  color: var(--bk-leather);
  font-size: 28px;
  transform: rotate(-2deg);
  margin-bottom: 6px;
}
.bakery-reassure-tw header h2,
.bakery-cats-tw header h2,
.bakery-featured-tw header h2 {
  font-family: var(--bk-serif);
  color: var(--bk-leather-deep);
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.bakery-reassure-tw header p,
.bakery-cats-tw header p,
.bakery-featured-tw header p {
  color: var(--bk-muted);
  margin: 0 auto;
  max-width: 560px;
}

/* Reassure 4-card grid */
.bakery-reassure-tw .grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.bakery-reassure-tw article {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(139, 90, 60, 0.1);
  border-radius: 18px;
  box-shadow: 0 18px 40px -24px rgba(94, 58, 34, 0.35);
  padding: 28px 24px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.bakery-reassure-tw article:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -22px rgba(94, 58, 34, 0.45);
}
.bakery-reassure-tw article > div:first-child {
  margin: 0 auto 18px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(246, 220, 204, 0.7);
  color: var(--bk-leather-deep);
  display: flex; align-items: center; justify-content: center;
  transition: background-color .25s ease, color .25s ease;
}
.bakery-reassure-tw article:hover > div:first-child {
  background: var(--bk-leather);
  color: var(--bk-cream);
}
.bakery-reassure-tw article > div:first-child svg { width: 28px; height: 28px; }
.bakery-reassure-tw article h3 {
  font-family: var(--bk-serif);
  color: var(--bk-leather-deep);
  font-size: 19px;
  margin: 0 0 8px;
}
.bakery-reassure-tw article p { color: var(--bk-muted); font-size: 14px; margin: 0; }

/* Cats 6-circle grid */
.bakery-cats-tw .grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px;
}
.bakery-cats-tw a.group {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.bakery-cats-tw a.group > span.relative {
  position: relative;
  display: block;
  width: 128px; height: 128px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0 18px 40px -24px rgba(94, 58, 34, 0.45);
  background: var(--bk-cream-deep);
  transition: transform .3s ease, box-shadow .3s ease;
}
.bakery-cats-tw a.group:hover > span.relative {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -22px rgba(94, 58, 34, 0.55);
}
.bakery-cats-tw a.group > span.relative > span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}
.bakery-cats-tw a.group > span:nth-child(2) {
  display: block;
  margin-top: 16px;
  font-family: var(--bk-serif);
  color: var(--bk-leather-deep);
  font-size: 18px;
}
.bakery-cats-tw a.group > span:nth-child(3) {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--bk-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Featured products grid */
.bakery-featured-tw .grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.bakery-featured-tw a.group {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(139, 90, 60, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px -22px rgba(94, 58, 34, 0.4);
  text-decoration: none;
  color: inherit;
  transition: transform .3s ease, box-shadow .3s ease;
}
.bakery-featured-tw a.group:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -22px rgba(94, 58, 34, 0.45);
}
.bakery-featured-tw a.group > span:first-child {
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--bk-cream-deep);
  overflow: hidden;
}
.bakery-featured-tw a.group img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.bakery-featured-tw a.group:hover img { transform: scale(1.05); }
.bakery-featured-tw a.group > span:last-child {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 16px;
}
.bakery-featured-tw a.group > span:last-child > span:nth-child(1) {
  font-family: var(--bk-serif);
  color: var(--bk-leather-deep);
  font-size: 17px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bakery-featured-tw a.group > span:last-child > span:nth-child(2) {
  margin-top: 8px;
  color: var(--bk-leather);
  font-weight: 600;
}
.bakery-featured-tw a.group > span:last-child > span:nth-child(3) {
  margin-top: 16px;
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bk-leather);
  border: 1px solid rgba(139, 90, 60, 0.4);
  border-radius: 999px;
  padding: 8px 18px;
  transition: all .25s ease;
}
.bakery-featured-tw a.group:hover > span:last-child > span:nth-child(3) {
  background: var(--bk-leather);
  color: var(--bk-cream);
  border-color: var(--bk-leather);
}

/* Responsive breakpoints for these sections */
@media (max-width: 1023px) {
  .bakery-cats-tw .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bakery-featured-tw .grid,
  .bakery-reassure-tw .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .bakery-reassure-tw,
  .bakery-cats-tw,
  .bakery-featured-tw { padding: 56px 16px; }
  .bakery-reassure-tw .grid,
  .bakery-featured-tw .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bakery-cats-tw .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .bakery-cats-tw a.group > span.relative { width: 100px; height: 100px; }
}
@media (max-width: 480px) {
  .bakery-reassure-tw .grid { grid-template-columns: 1fr; }
  .bakery-featured-tw .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* User prefers the legacy amandius-footer; hide our bakery-footer */
body.bakery-theme .bakery-footer { display: none !important; }

/* --- Mobile: icons live inside the sticky brown topbar --- */
@media (max-width: 921px) {
  /* Topbar sticky + hosts the icons */
  body.bakery-theme .bakery-topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: var(--bk-leather-deep) !important;
    padding: 0 !important;
  }
  body.bakery-theme .bakery-topbar-inner {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 6px 16px !important;
    max-width: none !important;
    font-size: 0 !important;
    min-height: 42px;
  }
  /* Hide all the topbar text spans on mobile, only keep icons */
  body.bakery-theme .bakery-topbar-inner > span { display: none !important; }

  /* Icons live inside the topbar via JS; style the moved instance */
  body.bakery-theme .amandius-header-icons.in-topbar {
    position: static !important;
    top: auto !important; right: auto !important;
    z-index: auto !important;
    gap: 22px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
  }
  /* Any non-moved instance stays hidden so we don't get duplicates */
  body.bakery-theme .amandius-header-icons:not(.in-topbar) {
    display: none !important;
  }
  /* White icons on brown */
  body.bakery-theme .amandius-hicon {
    background: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
    width: 30px !important;
    height: 30px !important;
    border: none !important;
    padding: 0 !important;
  }
  body.bakery-theme .amandius-hicon:hover {
    color: var(--bk-pink-soft) !important;
    opacity: 1 !important;
  }
  body.bakery-theme .amandius-hicon svg {
    width: 20px !important;
    height: 20px !important;
    stroke: currentColor !important;
    fill: none !important;
    color: inherit !important;
  }
  body.bakery-theme .amandius-icon-badge {
    background: var(--bk-pink) !important;
    color: var(--bk-leather-deep) !important;
    top: -5px !important;
    right: -6px !important;
    font-weight: 700 !important;
    font-size: 10px !important;
    min-width: 15px !important;
    height: 15px !important;
    line-height: 15px !important;
  }

  /* Header (logo + hamburger row) no longer sticky */
  body.bakery-theme header.site-header,
  body.bakery-theme #masthead {
    position: relative !important;
    box-shadow: none !important;
  }
}
