/* ==========================================================================
   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;
}
.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). */

/* ---------- Categories strip ---------- */
.bakery-cats {
  max-width: 1240px;
  margin: 0 auto 80px;
  padding: 0 24px;
}
.bakery-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
}
.bakery-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px;
  transition: transform .3s ease;
}
.bakery-cat-card:hover { transform: translateY(-4px); }
.bakery-cat-thumb {
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--bk-cream-deep);
  border: 6px solid #fff;
  box-shadow: var(--bk-shadow);
  margin-bottom: 14px;
  transition: box-shadow .3s ease;
}
.bakery-cat-card:hover .bakery-cat-thumb {
  box-shadow: 0 22px 50px -22px rgba(94, 58, 34, 0.5);
}
.bakery-cat-name {
  font-family: var(--bk-serif);
  font-size: 18px;
  color: var(--bk-leather-deep);
  letter-spacing: 0.02em;
}
.bakery-cat-count {
  font-size: 12.5px;
  color: var(--bk-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ---------- 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;
}

/* ---------- 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 ---------- */
body.bakery-theme .site-footer,
body.bakery-theme .ast-footer,
body.bakery-theme footer.site-footer {
  background: var(--bk-leather-deep) !important;
  color: var(--bk-cream) !important;
}
body.bakery-theme .site-footer *,
body.bakery-theme .ast-footer *,
body.bakery-theme footer.site-footer * {
  color: inherit !important;
}
body.bakery-theme .site-footer a,
body.bakery-theme footer.site-footer a {
  color: var(--bk-pink-soft) !important;
}
body.bakery-theme .site-footer a:hover,
body.bakery-theme footer.site-footer a:hover {
  color: #fff !important;
  text-decoration: underline;
}
body.bakery-theme .site-footer h2,
body.bakery-theme .site-footer h3,
body.bakery-theme .site-footer h4,
body.bakery-theme footer.site-footer h2,
body.bakery-theme footer.site-footer h3,
body.bakery-theme footer.site-footer h4 {
  color: #fff !important;
  font-family: var(--bk-serif);
  letter-spacing: 0.04em;
}

/* ---------- 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 ---------- */
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-cats-grid { gap: 20px; }
  .bakery-cat-thumb { width: 120px; height: 120px; }
  .bakery-topbar-inner { font-size: 11.5px; gap: 10px; padding: 8px 16px; }
}
