/*
Theme Name:   Botanica Soap Shop
Theme URI:    https://sitesunlimited.net
Description:  A child theme for Twenty Twenty-Five — artisanal soap shop with a warm botanical aesthetic.
Author:       Sites Unlimited
Template:     twentytwentyfive
Version:      1.0.0
Text Domain:  botanica-soap-shop
*/

/* =========================================================
   GOOGLE FONTS IMPORT
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

/* =========================================================
   CSS CUSTOM PROPERTIES
   ========================================================= */
:root {
  --color-cream:       #F7F1E6;
  --color-cream-dark:  #EDE4D3;
  --color-sage:        #6B8C6E;
  --color-sage-light:  #A3BFA6;
  --color-sage-pale:   #D6E5D8;
  --color-terracotta:  #C07B5B;
  --color-terra-light: #DFA98B;
  --color-lavender:    #B9B0CC;
  --color-charcoal:    #2C2A27;
  --color-warm-gray:   #7A7268;
  --color-white:       #FDFAF5;
  --color-border:      #D9CFBE;

  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Lora', 'Georgia', serif;
  --font-accent:   'Cormorant Garamond', Georgia, serif;

  --radius-sm:   4px;
  --radius-md:   10px;
  --radius-lg:   20px;
  --radius-pill: 100px;

  --shadow-soft:  0 4px 24px rgba(44, 42, 39, 0.08);
  --shadow-hover: 0 12px 40px rgba(44, 42, 39, 0.15);
  --shadow-card:  0 2px 16px rgba(44, 42, 39, 0.07);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   BASE / GLOBAL RESETS
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  color: var(--color-charcoal);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-charcoal);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 500;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 3vw, 2rem); }

p {
  font-family: var(--font-body);
  color: var(--color-warm-gray);
  line-height: 1.8;
}

a {
  color: var(--color-sage);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-terracotta);
}

/* =========================================================
   SITE HEADER
   ========================================================= */
.wp-block-template-part[class*="header"],
header.wp-block-template-part,
.site-header {
  background-color: var(--color-white) !important;
  border-bottom: 1px solid var(--color-border);
}

/* Nav Links */
.wp-block-navigation a {
  font-family: var(--font-accent);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-charcoal) !important;
  font-weight: 400;
  transition: color var(--transition);
}

.wp-block-navigation a:hover {
  color: var(--color-sage) !important;
}

/* Site Title */
.wp-block-site-title a {
  font-family: var(--font-display) !important;
  font-size: 1.6rem !important;
  font-style: italic;
  color: var(--color-charcoal) !important;
  letter-spacing: -0.02em;
}

/* Cart icon color */
.wc-block-mini-cart__button {
  color: var(--color-charcoal) !important;
}

/* =========================================================
   HERO / BANNER SECTION (Woo Shop Page Header)
   ========================================================= */
.woocommerce-products-header {
  background: linear-gradient(135deg, var(--color-cream-dark) 0%, var(--color-sage-pale) 100%);
  padding: 80px 40px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.woocommerce-products-header::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-sage-pale) 0%, transparent 70%);
  opacity: 0.5;
}

.woocommerce-products-header::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-terra-light) 0%, transparent 70%);
  opacity: 0.2;
}

.woocommerce-products-header__title {
  font-family: var(--font-display) !important;
  font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
  font-style: italic;
  color: var(--color-charcoal) !important;
  position: relative;
  z-index: 1;
  margin-bottom: 0.5rem;
}

/* =========================================================
   SHOP LAYOUT
   ========================================================= */
.woocommerce,
.woocommerce-page {
  background-color: var(--color-cream);
}

.woocommerce .woocommerce-notices-wrapper,
.woocommerce-page .woocommerce-notices-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Product Grid */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 36px !important;
  padding: 40px 0 !important;
  margin: 0 !important;
  list-style: none !important;
  float: none !important;
  width: 100% !important;
}

/* =========================================================
   PRODUCT CARDS
   ========================================================= */
.woocommerce ul.products li.product {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* Product Image */
.woocommerce ul.products li.product a img {
  width: 100% !important;
  height: 280px !important;
  object-fit: cover !important;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.woocommerce ul.products li.product:hover a img {
  transform: scale(1.04);
}

/* Product image container overflow clip */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
  display: block;
  overflow: hidden;
}

/* Product Info Area */
.woocommerce ul.products li.product .product-info-wrap,
.woocommerce ul.products li.product > a + * {
  padding: 20px 24px 24px;
}

/* Fix TwentyTwentyFive — inject padding via direct children after link */
.woocommerce ul.products li.product {
  display: flex;
  flex-direction: column;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
  font-family: var(--font-display) !important;
  font-size: 1.15rem !important;
  font-weight: 500 !important;
  color: var(--color-charcoal) !important;
  padding: 20px 24px 4px !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

.woocommerce ul.products li.product .price {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  color: var(--color-terracotta) !important;
  font-weight: 500;
  padding: 0 24px 16px;
  display: block;
}

.woocommerce ul.products li.product .price del {
  color: var(--color-lavender) !important;
  font-size: 0.9rem;
  margin-right: 6px;
}

/* "Add to Cart" button on product card */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
  font-family: var(--font-accent) !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  background-color: var(--color-sage) !important;
  color: var(--color-white) !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  padding: 10px 24px !important;
  margin: 0 24px 24px !important;
  cursor: pointer !important;
  transition: background-color var(--transition), transform 0.2s ease !important;
  display: inline-block !important;
  width: calc(100% - 48px) !important;
  text-align: center !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
  background-color: var(--color-terracotta) !important;
  transform: scale(1.02) !important;
}

/* Sale Badge */
.woocommerce ul.products li.product .onsale {
  background-color: var(--color-terracotta) !important;
  color: var(--color-white) !important;
  font-family: var(--font-accent) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  border-radius: var(--radius-pill) !important;
  padding: 4px 14px !important;
  top: 16px !important;
  left: 16px !important;
  right: auto !important;
  min-width: auto !important;
  min-height: auto !important;
  line-height: 1.5 !important;
}

/* =========================================================
   SHOP TOOLBAR (Results Count + Ordering)
   ========================================================= */
.woocommerce-result-count {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--color-warm-gray);
  font-style: italic;
}

.woocommerce-ordering select {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  background-color: var(--color-white);
  color: var(--color-charcoal);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B8C6E' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* =========================================================
   SIDEBAR / WIDGET AREA
   ========================================================= */
.woocommerce-page .widget-title,
.widget-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-charcoal);
  border-bottom: 2px solid var(--color-sage-pale);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.widget_price_filter .ui-slider-handle {
  background: var(--color-sage) !important;
  border-color: var(--color-sage) !important;
}

.widget_price_filter .ui-slider-range {
  background: var(--color-sage-light) !important;
}

/* =========================================================
   SINGLE PRODUCT PAGE
   ========================================================= */
.woocommerce div.product {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-soft);
  max-width: 1100px;
  margin: 40px auto;
}

/* Product title */
.woocommerce div.product .product_title {
  font-family: var(--font-display) !important;
  font-size: clamp(1.8rem, 4vw, 3rem) !important;
  font-style: italic;
  color: var(--color-charcoal) !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  margin-bottom: 12px !important;
}

/* Single product price */
.woocommerce div.product .price {
  font-family: var(--font-accent) !important;
  font-size: 1.6rem !important;
  color: var(--color-terracotta) !important;
}

/* Short description */
.woocommerce div.product .woocommerce-product-details__short-description p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-warm-gray);
  line-height: 1.8;
  border-left: 3px solid var(--color-sage-light);
  padding-left: 16px;
  margin: 20px 0;
}

/* Add to Cart single */
.woocommerce div.product form.cart .single_add_to_cart_button {
  font-family: var(--font-accent) !important;
  font-size: 1rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  background-color: var(--color-sage) !important;
  color: var(--color-white) !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  padding: 16px 48px !important;
  cursor: pointer !important;
  transition: background-color var(--transition), transform 0.2s ease !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
  background-color: var(--color-terracotta) !important;
  transform: scale(1.02) !important;
}

/* Qty input */
.woocommerce div.product form.cart .qty {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: var(--font-accent);
  font-size: 1.1rem;
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  width: 70px;
  text-align: center;
}

/* Product tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  border-bottom: 2px solid var(--color-border) !important;
  padding: 0 !important;
  margin-bottom: 32px !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-right: 8px !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-family: var(--font-accent) !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--color-warm-gray) !important;
  padding: 12px 24px !important;
  display: block;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--color-sage) !important;
  border-bottom-color: var(--color-sage) !important;
}

/* Related Products */
.related.products > h2,
.upsells.products > h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  color: var(--color-charcoal);
  margin-bottom: 32px;
  position: relative;
}

.related.products > h2::after,
.upsells.products > h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--color-sage);
  margin-top: 8px;
}

/* =========================================================
   CART PAGE
   ========================================================= */
.woocommerce table.cart,
.woocommerce-cart table.cart {
  border-collapse: collapse;
  width: 100%;
}

.woocommerce table.cart th {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-warm-gray);
  border-bottom: 2px solid var(--color-border);
  padding: 16px 12px;
  font-weight: 400;
}

.woocommerce table.cart td {
  border-bottom: 1px solid var(--color-border);
  padding: 20px 12px;
  vertical-align: middle;
}

.woocommerce table.cart img {
  border-radius: var(--radius-md);
  width: 80px !important;
  height: 80px !important;
  object-fit: cover;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background-color: var(--color-sage) !important;
  color: var(--color-white) !important;
  font-family: var(--font-accent) !important;
  font-size: 1rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  border-radius: var(--radius-pill) !important;
  padding: 16px 40px !important;
  transition: background-color var(--transition) !important;
  display: block;
  text-align: center;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background-color: var(--color-terracotta) !important;
}

/* Cart update button */
.woocommerce table.cart .button[name="update_cart"] {
  font-family: var(--font-accent) !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  background-color: transparent !important;
  color: var(--color-warm-gray) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-pill) !important;
  padding: 10px 24px !important;
  transition: all var(--transition) !important;
}

.woocommerce table.cart .button[name="update_cart"]:hover {
  border-color: var(--color-sage) !important;
  color: var(--color-sage) !important;
}

/* =========================================================
   CHECKOUT PAGE
   ========================================================= */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--color-charcoal);
  margin-bottom: 24px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background-color: var(--color-white);
  color: var(--color-charcoal);
  transition: border-color var(--transition);
  width: 100%;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  outline: none;
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(107, 140, 110, 0.15);
}

.woocommerce form .form-row label {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-warm-gray);
  margin-bottom: 6px;
  display: block;
}

/* Place Order button */
#place_order {
  font-family: var(--font-accent) !important;
  font-size: 1.1rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  background-color: var(--color-sage) !important;
  color: var(--color-white) !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  padding: 18px 56px !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: background-color var(--transition), transform 0.2s ease !important;
}

#place_order:hover {
  background-color: var(--color-terracotta) !important;
  transform: scale(1.01) !important;
}

/* =========================================================
   MESSAGES & NOTICES
   ========================================================= */
.woocommerce-message,
.woocommerce-info {
  background-color: var(--color-sage-pale) !important;
  border-top-color: var(--color-sage) !important;
  color: var(--color-charcoal) !important;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.woocommerce-error {
  background-color: #FDE8E0 !important;
  border-top-color: var(--color-terracotta) !important;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.woocommerce-message a.button,
.woocommerce-info a.button {
  background-color: var(--color-sage) !important;
  color: var(--color-white) !important;
  border-radius: var(--radius-pill) !important;
  font-family: var(--font-accent) !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  font-size: 0.85rem !important;
}

/* =========================================================
   BREADCRUMBS
   ========================================================= */
.woocommerce-breadcrumb {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--color-warm-gray);
}

.woocommerce-breadcrumb a {
  color: var(--color-sage);
}

/* =========================================================
   STAR RATINGS
   ========================================================= */
.woocommerce .star-rating span::before,
.woocommerce .star-rating::before {
  color: var(--color-terracotta) !important;
}

/* =========================================================
   FOOTER
   Twenty Twenty-Five uses block template parts, so we need
   to target the footer template part AND all block elements
   inside it — not just classic .site-footer selectors.
   ========================================================= */

/* Footer wrapper background */
.wp-block-template-part[class*="footer"],
footer.wp-block-template-part,
.site-footer,
[data-slug="footer"] {
  background-color: var(--color-charcoal) !important;
  color: var(--color-cream-dark) !important;
}

/* All text/paragraph blocks inside the footer */
.wp-block-template-part[class*="footer"] p,
.wp-block-template-part[class*="footer"] .wp-block-paragraph,
.wp-block-template-part[class*="footer"] .wp-block-heading,
.wp-block-template-part[class*="footer"] h1,
.wp-block-template-part[class*="footer"] h2,
.wp-block-template-part[class*="footer"] h3,
.wp-block-template-part[class*="footer"] h4,
.wp-block-template-part[class*="footer"] span,
.wp-block-template-part[class*="footer"] li,
footer.wp-block-template-part p,
footer.wp-block-template-part .wp-block-paragraph,
footer.wp-block-template-part span,
footer.wp-block-template-part li,
.site-footer p,
.site-footer span {
  color: var(--color-cream-dark) !important;
}

/* All links inside the footer */
.wp-block-template-part[class*="footer"] a,
.wp-block-template-part[class*="footer"] .wp-block-navigation a,
.wp-block-template-part[class*="footer"] .wp-block-navigation-item a,
footer.wp-block-template-part a,
footer.wp-block-template-part .wp-block-navigation a,
.site-footer a {
  color: var(--color-cream-dark) !important;
  text-decoration: none;
}

/* Footer link hover */
.wp-block-template-part[class*="footer"] a:hover,
.wp-block-template-part[class*="footer"] .wp-block-navigation a:hover,
footer.wp-block-template-part a:hover,
.site-footer a:hover {
  color: var(--color-sage-light) !important;
}

/* Footer nav current page indicator */
.wp-block-template-part[class*="footer"] .wp-block-navigation-item.current-menu-item a,
footer.wp-block-template-part .wp-block-navigation-item.current-menu-item a {
  color: var(--color-sage-light) !important;
}

/* Twenty Twenty-Five sometimes wraps footer content in a group block */
footer .wp-block-group,
footer .wp-block-columns,
footer .wp-block-column {
  color: var(--color-cream-dark);
}

/* =========================================================
   DECORATIVE BOTANICAL DIVIDER (CSS only)
   ========================================================= */
.botanica-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px auto;
  max-width: 240px;
  justify-content: center;
}

.botanica-divider::before,
.botanica-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.botanica-divider-icon {
  color: var(--color-sage);
  font-size: 1.2rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 20px !important;
    padding: 20px 16px !important;
  }

  .woocommerce div.product {
    padding: 24px 20px;
    margin: 20px 16px;
  }

  .woocommerce-products-header {
    padding: 48px 24px 40px;
  }
}

@media (max-width: 480px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.woocommerce ul.products li.product {
  animation: fadeSlideUp 0.5s ease both;
}

.woocommerce ul.products li.product:nth-child(1) { animation-delay: 0.05s; }
.woocommerce ul.products li.product:nth-child(2) { animation-delay: 0.10s; }
.woocommerce ul.products li.product:nth-child(3) { animation-delay: 0.15s; }
.woocommerce ul.products li.product:nth-child(4) { animation-delay: 0.20s; }
.woocommerce ul.products li.product:nth-child(5) { animation-delay: 0.25s; }
.woocommerce ul.products li.product:nth-child(6) { animation-delay: 0.30s; }

/* =========================================================
   PRENA PRE-ORDERS PLUGIN INTEGRATION
   VillaTheme / wordpress.org/plugins/product-pre-orders-for-woo
   ========================================================= */

/* ── Pre-order Badge (product cards + single product) ─── */
/* PRENA outputs .wooscp-btn or its own badge — cover all known class patterns */
.preorder-badge,
.wapf-field .preorder-badge,
span.preorder-badge,
.woocommerce-product-gallery .preorder-badge,
li.product .preorder-badge,
.woo-preorder-label,
.prena-preorder-label,
[class*="preorder-label"],
[class*="preorder-badge"] {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;        /* PRENA places badge top-right by default */
  left: auto !important;
  background-color: var(--color-lavender) !important;
  color: var(--color-white) !important;
  font-family: var(--font-accent) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  border-radius: var(--radius-pill) !important;
  padding: 4px 14px !important;
  min-width: auto !important;
  min-height: auto !important;
  line-height: 1.5 !important;
  z-index: 3 !important;
  box-shadow: none !important;
}

/* When both a Sale badge AND Pre-order badge appear, offset the pre-order one */
li.product .onsale ~ [class*="preorder-badge"],
li.product .onsale ~ [class*="preorder-label"] {
  top: 48px !important;
}

/* ── Pre-order "Add to Cart" Button ──────────────────── */
/* PRENA replaces the default button with its own — these selectors cover it */
.preorder-button,
.woo-preorder-button,
.prena-preorder-button,
[class*="preorder-button"],
.woocommerce ul.products li.product .button.preorder-button,
.woocommerce div.product .preorder-button.single_add_to_cart_button,
.woocommerce .preorder-add-to-cart-button {
  font-family: var(--font-accent) !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  background-color: var(--color-lavender) !important;  /* Distinct from in-stock sage */
  color: var(--color-white) !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  padding: 12px 24px !important;
  cursor: pointer !important;
  transition: background-color var(--transition), transform 0.2s ease !important;
  width: 100% !important;
  text-align: center !important;
  display: block !important;
}

.preorder-button:hover,
.woo-preorder-button:hover,
.prena-preorder-button:hover,
[class*="preorder-button"]:hover,
.woocommerce div.product .preorder-button.single_add_to_cart_button:hover {
  background-color: #9a8fbc !important; /* darker lavender */
  transform: scale(1.02) !important;
}

/* Single product page — PRENA button inherits single_add_to_cart_button sizing */
.woocommerce div.product form.cart .preorder-button {
  padding: 16px 48px !important;
  font-size: 1rem !important;
}

/* ── Availability Date Notice ─────────────────────────── */
/* Shown below the product title on single product page */
.preorder-available-date,
.woo-preorder-available-date,
.prena-available-date,
[class*="preorder-available"],
[class*="preorder-date"] {
  font-family: var(--font-accent) !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.04em !important;
  font-style: italic;
  color: var(--color-lavender) !important;
  display: block;
  margin: 8px 0 16px !important;
}

.preorder-available-date::before,
.prena-available-date::before,
[class*="preorder-available"]::before {
  content: '✦ ';
  color: var(--color-terracotta);
  font-style: normal;
}

/* ── Preorder Notice / Info Box ───────────────────────── */
/* Some PRENA versions output a notice paragraph */
.preorder-notice,
.woo-preorder-notice,
.prena-notice,
[class*="preorder-notice"] {
  background-color: #F0ECF7 !important;          /* very light lavender tint */
  border-left: 3px solid var(--color-lavender) !important;
  border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
  padding: 12px 16px !important;
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  color: var(--color-charcoal) !important;
  margin: 16px 0 !important;
}

/* ── Cart / Checkout — Preorder Line Item Label ───────── */
/* PRENA adds a "(Pre-order)" note to cart line items */
.cart-preorder-label,
.woo-cart-preorder-label,
[class*="cart-preorder"],
.woocommerce-cart .preorder-text,
.woocommerce-checkout .preorder-text {
  font-family: var(--font-accent) !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.06em !important;
  color: var(--color-lavender) !important;
  display: inline-block;
  margin-left: 8px;
}

/* ── Admin Order Column (visual cleanup, not strictly needed) */
.column-preorder span {
  font-family: var(--font-accent);
  font-size: 0.82rem;
  color: var(--color-lavender);
  letter-spacing: 0.06em;
}

/* ── Product card: subtle preorder state indicator ────── */
/* Adds a faint left border accent to preorder cards in the grid */
.woocommerce ul.products li.product.preorder,
.woocommerce ul.products li.product[class*="preorder"] {
  border-left: 3px solid var(--color-lavender) !important;
}

/* =========================================================
   HOMEPAGE — front-page.html styles
   All homepage CSS lives here so the FSE template stays
   as pure block markup with no embedded <style> tags.
   ========================================================= */

/* ── Shared section scaffolding ─────────────────────── */
.bh-section { width: 100%; }
.bh-section-inner { max-width: 1200px; margin: 0 auto; padding: 80px 32px; }
.bh-section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }

.bh-section-eyebrow {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 10px;
  display: block;
}
.bh-section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--color-charcoal);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 16px;
}
.bh-section-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-warm-gray);
  line-height: 1.8;
  margin: 0;
}

/* ── Buttons ─────────────────────────────────────────── */
.bh-btn {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 14px 36px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  border: none;
}
.bh-btn:hover { transform: scale(1.02); }
.bh-btn-primary { background: var(--color-sage); color: var(--color-white); }
.bh-btn-primary:hover { background: var(--color-terracotta); color: var(--color-white); }
.bh-btn-ghost { background: transparent; color: var(--color-charcoal); border: 1px solid var(--color-border); }
.bh-btn-ghost:hover { border-color: var(--color-sage); color: var(--color-sage); }

/* ── 1. Hero ─────────────────────────────────────────── */
.bh-hero {
  min-height: 88vh;
  background: var(--color-cream-dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 32px 80px 60px;
  gap: 40px;
}
.bh-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.bh-orb-1 {
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--color-sage-pale) 0%, transparent 70%);
  opacity: 0.7;
}
.bh-orb-2 {
  bottom: -100px; left: -60px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, #DFA98B 0%, transparent 70%);
  opacity: 0.2;
}
.bh-orb-3 {
  top: 50%; left: 45%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--color-sage-pale) 0%, transparent 60%);
  opacity: 0.35;
  transform: translateY(-50%);
}
.bh-hero-content { position: relative; z-index: 2; }
.bh-hero-eyebrow {
  font-family: var(--font-accent);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 16px;
  display: block;
}
.bh-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  font-weight: 500;
  color: var(--color-charcoal);
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.bh-hero-title em { font-style: italic; color: var(--color-terracotta); }
.bh-hero-body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-warm-gray);
  line-height: 1.8;
  margin-bottom: 32px;
}
.bh-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.bh-hero-trust { display: flex; gap: 20px; flex-wrap: wrap; }
.bh-hero-trust span {
  font-family: var(--font-accent);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--color-warm-gray);
}
.bh-hero-image-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 520px;
}
.bh-hero-image-placeholder {
  width: 380px;
  height: 460px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(145deg, var(--color-sage-pale) 0%, var(--color-sage-light) 50%, var(--color-sage) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 60px rgba(44,42,39,0.15);
  position: relative;
  overflow: hidden;
}
.bh-hero-image-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  border-radius: inherit;
}
.bh-hero-soap-icon { font-size: 5rem; opacity: 0.6; position: relative; z-index: 1; }
.bh-hero-image-card {
  position: absolute;
  background: var(--color-white);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(44,42,39,0.12);
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--color-charcoal);
  white-space: nowrap;
}
.bh-hero-card-1 { top: 10%; left: -20px; }
.bh-hero-card-2 { bottom: 15%; right: -20px; }
.bh-card-icon { font-size: 1.1rem; }

/* ── 2. Products section ─────────────────────────────── */
.bh-products-section { background: var(--color-white); border-top: 1px solid var(--color-border); }
.bh-products-section .bh-section-inner { padding-bottom: 0; }
.botanica-product-collection .wc-block-product-template { gap: 24px !important; }
.botanica-product-collection .wc-block-product-template > * {
  background: var(--color-cream) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 12px rgba(44,42,39,.07) !important;
  transition: transform .3s ease, box-shadow .3s ease !important;
}
.botanica-product-collection .wc-block-product-template > *:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 12px 32px rgba(44,42,39,.13) !important;
}
.botanica-product-cat {
  font-family: var(--font-accent) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--color-sage) !important;
}
.botanica-product-title a {
  font-family: var(--font-display) !important;
  font-style: italic !important;
  color: var(--color-charcoal) !important;
  text-decoration: none !important;
}
.botanica-product-title a:hover { color: var(--color-sage) !important; }
.botanica-product-price .price { color: var(--color-terracotta) !important; }
.botanica-product-btn .wp-block-button__link {
  background: var(--color-sage) !important;
  color: var(--color-white) !important;
  border-radius: 100px !important;
  font-family: var(--font-accent) !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  transition: background .25s !important;
}
.botanica-product-btn .wp-block-button__link:hover { background: var(--color-terracotta) !important; }
.botanica-view-all-btn .wp-block-button__link:hover {
  background: var(--color-sage) !important;
  color: var(--color-white) !important;
  border-color: var(--color-sage) !important;
}

/* ── 3. Ingredients section ──────────────────────────── */
.bh-ingredients-section { background: var(--color-cream); }
.bh-ingredients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.bh-ingredient-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 28px 24px 32px;
  border: 1px solid var(--color-border);
  transition: transform .3s ease, box-shadow .3s ease;
}
.bh-ingredient-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(44,42,39,.1); }
.bh-ingredient-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 1.5rem;
}
.bh-ing-1 { background: var(--color-cream-dark); }
.bh-ing-2 { background: #F5E8F0; }
.bh-ing-3 { background: var(--color-sage-pale); }
.bh-ing-4 { background: #E8EDF0; }
.bh-ingredient-title {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 500;
  color: var(--color-charcoal); margin-bottom: 10px; line-height: 1.3;
}
.bh-ingredient-desc {
  font-family: var(--font-body);
  font-size: 0.87rem; color: var(--color-warm-gray); line-height: 1.7; margin-bottom: 16px;
}
.bh-ingredient-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bh-ingredient-tags li {
  font-family: var(--font-accent);
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-sage); background: var(--color-sage-pale); border-radius: 100px; padding: 3px 10px;
}
.bh-tags-no li { color: var(--color-charcoal); background: var(--color-cream-dark); }
.bh-process-banner {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
  background: var(--color-charcoal); border-radius: 16px; padding: 24px 32px;
}
.bh-process-step { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bh-process-num { font-family: var(--font-accent); font-size: 1.4rem; color: #DFA98B; line-height: 1; }
.bh-process-label {
  font-family: var(--font-accent); font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-cream-dark); white-space: nowrap;
}
.bh-process-arrow { color: var(--color-sage-light); font-size: 1.2rem; padding: 0 4px; opacity: 0.5; margin-top: -12px; }

/* ── 4. Newsletter section ───────────────────────────── */
.bh-newsletter-section {
  background: linear-gradient(135deg, var(--color-sage) 0%, #4a6b4d 100%);
  position: relative; overflow: hidden;
}
.bh-newsletter-section::before {
  content: '';
  position: absolute; top: -120px; right: -120px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
}
.bh-newsletter-inner { max-width: 720px; margin: 0 auto; padding: 80px 32px; text-align: center; position: relative; z-index: 1; }
.bh-newsletter-deco { font-size: 2.5rem; color: var(--color-sage-pale); opacity: 0.4; margin-bottom: 16px; line-height: 1; }
.bh-newsletter-content { margin-bottom: 36px; }
.bh-newsletter-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 500;
  color: var(--color-white); line-height: 1.2; margin-bottom: 14px;
}
.bh-newsletter-title em { font-style: italic; color: #DFA98B; }
.bh-newsletter-sub { font-family: var(--font-body); font-size: 1rem; color: rgba(253,250,245,0.8); line-height: 1.8; margin: 0; }
.bh-newsletter-form { margin-bottom: 28px; }
.bh-newsletter-fields { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; justify-content: center; }
.bh-nl-field { display: flex; flex-direction: column; gap: 6px; }
.bh-nl-field-grow { flex: 1; min-width: 200px; }
.bh-nl-label {
  font-family: var(--font-accent); font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(253,250,245,0.7); text-align: left;
}
.bh-nl-input {
  font-family: var(--font-body); font-size: 0.95rem;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px; padding: 13px 18px; color: var(--color-white);
  outline: none; transition: border-color .25s, background .25s; min-width: 200px;
}
.bh-nl-input::placeholder { color: rgba(253,250,245,0.45); }
.bh-nl-input:focus { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.18); }
.bh-btn-newsletter {
  font-family: var(--font-accent); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--color-terracotta); color: var(--color-white); border: none; border-radius: 100px;
  padding: 13px 28px; align-self: flex-end; white-space: nowrap; cursor: pointer;
  transition: background .3s ease, transform .2s ease;
}
.bh-btn-newsletter:hover { background: #a8643e; transform: scale(1.02); }
.bh-newsletter-fine { font-family: var(--font-body); font-size: 0.8rem; color: rgba(253,250,245,0.5); margin-top: 12px; }
.bh-newsletter-perks { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.bh-newsletter-perks span { font-family: var(--font-accent); font-size: 0.85rem; letter-spacing: 0.06em; color: rgba(253,250,245,0.75); }

/* ── Homepage responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  .bh-hero { grid-template-columns: 1fr; min-height: auto; padding: 60px 32px; }
  .bh-hero-image-wrap { display: none; }
  .bh-hero-content { text-align: center; }
  .bh-hero-actions { justify-content: center; }
  .bh-hero-trust { justify-content: center; }
  .bh-ingredients-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .bh-section-inner { padding: 56px 20px; }
  .bh-hero { padding: 48px 20px; }
  .bh-ingredients-grid { grid-template-columns: 1fr; }
  .bh-process-banner { flex-direction: column; gap: 16px; }
  .bh-process-arrow { transform: rotate(90deg); margin: 0; }
  .bh-newsletter-fields { flex-direction: column; align-items: stretch; }
  .bh-nl-input { min-width: 0; width: 100%; }
  .bh-btn-newsletter { width: 100%; text-align: center; }
}

/* ── Homepage entrance animations ────────────────────── */
@keyframes bhFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bh-hero-eyebrow  { animation: bhFadeUp .6s .1s both; }
.bh-hero-title    { animation: bhFadeUp .6s .2s both; }
.bh-hero-body     { animation: bhFadeUp .6s .35s both; }
.bh-hero-actions  { animation: bhFadeUp .6s .45s both; }
.bh-hero-trust    { animation: bhFadeUp .6s .55s both; }

