/* BlessingsForever product pages — v2 */

:root {
  --bf-navy: #1a2744;
  --bf-navy-mid: #2a3b5f;
  --bf-gold: #b08d4a;
  --bf-gold-soft: #e6d7b3;
  --bf-ink: #1f2430;
  --bf-muted: #5f6570;
  --bf-paper: #fbf8f1;
  --bf-paper-deep: #f3eee3;
  --bf-line: #e4dccb;
  --bf-white: #fffcf7;
  --bf-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --bf-sans: "Outfit", "Segoe UI", sans-serif;
}

/* ---------- Atmosphere ---------- */
body.bf-product-template,
body.bf-shop-template {
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(176, 141, 74, 0.16), transparent 60%),
    radial-gradient(900px 420px at 95% 0%, rgba(26, 39, 68, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bf-paper) 0%, var(--bf-white) 45%, var(--bf-paper-deep) 100%);
  color: var(--bf-ink);
  font-family: var(--bf-sans);
}

body.bf-product-template .site-content,
body.bf-product-template #content,
body.bf-product-template .ast-container,
body.bf-shop-template .ast-container {
  max-width: 1120px;
}

body.bf-product-template .summary .posted_in,
body.bf-product-template .summary .tagged_as,
body.bf-product-template .summary .product_meta,
body.bf-product-template .summary a[rel="tag"] {
  display: none !important;
}

body.bf-product-template .content-area,
body.bf-product-template #primary {
  float: none;
  width: 100%;
  margin: 0;
}

/* Hide Astra/Woo leftovers that fight the layout */
body.bf-product-template .woocommerce-breadcrumb,
body.bf-product-template .ast-breadcrumbs-wrapper,
body.bf-product-template .summary .product_title:not(.bf-title),
body.bf-product-template .product_meta,
body.bf-product-template .woocommerce-product-rating {
  display: none !important;
}

/* ---------- Shell ---------- */
body.bf-product-template #content .ast-container,
body.bf-product-template .ast-woocommerce-container {
  max-width: 1180px;
  width: 100%;
}

body.bf-product-template div.product {
  display: grid !important;
  grid-template-columns: minmax(280px, 1.05fr) minmax(280px, 0.95fr) !important;
  gap: clamp(1.5rem, 4vw, 3.25rem) !important;
  align-items: start !important;
  margin: 1.25rem auto 2.5rem !important;
  padding: clamp(1.15rem, 2.8vw, 2rem) !important;
  background:
    linear-gradient(160deg, rgba(255, 252, 247, 0.96), rgba(251, 248, 241, 0.92));
  border: 1px solid var(--bf-line);
  box-shadow: 0 24px 60px rgba(26, 39, 68, 0.07);
  float: none !important;
  width: 100% !important;
}

@media (max-width: 921px) {
  body.bf-product-template div.product {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* Kill Astra/Woo float widths that collapse the layout */
body.bf-product-template div.product div.images,
body.bf-product-template div.product .woocommerce-product-gallery,
body.bf-product-template div.product div.summary {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  clear: none !important;
}

body.bf-product-template div.product .woocommerce-tabs,
body.bf-product-template div.product .related.products,
body.bf-product-template div.product .upsells.products {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  float: none !important;
}

/* ---------- Gallery / cover ---------- */
body.bf-product-template .woocommerce-product-gallery {
  margin: 0 !important;
  position: relative;
  background:
    linear-gradient(145deg, #fff 0%, #f7f1e4 100%);
  border: 1px solid var(--bf-line);
  padding: clamp(1rem, 2vw, 1.35rem);
}

body.bf-product-template .woocommerce-product-gallery::before {
  content: "";
  position: absolute;
  inset: auto 1.15rem 1.15rem 1.15rem;
  height: 18px;
  background: linear-gradient(180deg, transparent, rgba(26, 39, 68, 0.08));
  pointer-events: none;
  z-index: 1;
}

body.bf-product-template .woocommerce-product-gallery__wrapper {
  transform: none !important;
}

body.bf-product-template .woocommerce-product-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(26, 39, 68, 0.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 40px rgba(26, 39, 68, 0.12);
}

body.bf-product-template .woocommerce-product-gallery .flex-control-thumbs {
  display: none;
}

/* ---------- Summary ---------- */
body.bf-product-template .summary.entry-summary {
  margin: 0 !important;
  padding: 0.35rem 0.15rem 0.25rem;
  background: transparent;
  border: 0;
}

body.bf-product-template .bf-summary-top {
  margin-bottom: 0.85rem;
}

body.bf-product-template .bf-kicker {
  margin: 0 0 0.55rem;
  font-family: var(--bf-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bf-gold);
}

body.bf-product-template .bf-title {
  margin: 0 0 0.55rem;
  font-family: var(--bf-serif);
  font-weight: 600;
  font-size: clamp(2.05rem, 4.2vw, 3rem);
  line-height: 1.2;
  color: var(--bf-navy);
  letter-spacing: -0.01em;
}

body.bf-product-template .bf-cat {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  color: var(--bf-muted);
}

body.bf-product-template .price {
  margin: 0.75rem 0 0.95rem;
  font-family: var(--bf-serif);
  font-size: 2.15rem;
  font-weight: 600;
  color: var(--bf-navy);
  line-height: 1;
}

body.bf-product-template .bf-lead {
  margin: 0 0 1.15rem;
  max-width: 34rem;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--bf-muted);
}

/* Defensive: hide any leftover Woo short-description block */
body.bf-product-template .summary .woocommerce-product-details__short-description {
  display: none !important;
}

body.bf-product-template form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.15rem;
}

body.bf-product-template .quantity .qty {
  width: 4.2rem;
  min-height: 3rem;
  border: 1px solid var(--bf-line);
  background: var(--bf-white);
  border-radius: 0;
  font-family: var(--bf-sans);
  font-weight: 600;
  color: var(--bf-navy);
}

body.bf-product-template .single_add_to_cart_button.button,
body.bf-product-template .button.alt {
  min-height: 3rem;
  margin: 0 !important;
  padding: 0.9rem 1.55rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--bf-navy) !important;
  color: #fff !important;
  font-family: var(--bf-sans) !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease;
}

body.bf-product-template .single_add_to_cart_button.button:hover,
body.bf-product-template .button.alt:hover {
  background: var(--bf-gold) !important;
  color: var(--bf-navy) !important;
  transform: translateY(-1px);
}

body.bf-product-template .bf-highlights {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0.95rem 0 0;
  border-top: 1px solid var(--bf-line);
}

body.bf-product-template .bf-highlights li {
  position: relative;
  margin: 0.45rem 0;
  padding-left: 1.15rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--bf-navy-mid);
}

body.bf-product-template .bf-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--bf-gold);
}

body.bf-product-template .bf-assurance {
  margin: 0;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--bf-muted);
}

/* ---------- Description panel ---------- */
body.bf-product-template .woocommerce-tabs {
  grid-column: 1 / -1;
  margin: 0.35rem 0 0;
  border: 1px solid var(--bf-line);
  background: var(--bf-white);
}

body.bf-product-template .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--bf-line);
  background: linear-gradient(180deg, #faf6ee, #f7f2e8);
}

body.bf-product-template .woocommerce-tabs ul.tabs::before,
body.bf-product-template .woocommerce-tabs ul.tabs li::before,
body.bf-product-template .woocommerce-tabs ul.tabs li::after {
  display: none !important;
}

body.bf-product-template .woocommerce-tabs ul.tabs li {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.bf-product-template .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 0.95rem 1.25rem !important;
  font-family: var(--bf-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bf-muted) !important;
}

body.bf-product-template .woocommerce-tabs ul.tabs li.active a {
  color: var(--bf-navy) !important;
  box-shadow: inset 0 -3px 0 var(--bf-gold);
}

body.bf-product-template .woocommerce-Tabs-panel {
  padding: 1.4rem 1.45rem 1.7rem !important;
}

body.bf-product-template .bf-product-copy .bf-lead {
  margin: 0 0 1.1rem;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--bf-ink);
}

body.bf-product-template .bf-product-copy h2 {
  margin: 1.55rem 0 0.5rem;
  font-family: var(--bf-serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--bf-navy);
}

body.bf-product-template .bf-product-copy p {
  margin: 0 0 0.75rem;
  line-height: 1.65;
  color: var(--bf-muted);
}

body.bf-product-template .bf-product-copy ul {
  margin: 0.35rem 0 1rem 1.1rem;
  color: var(--bf-navy-mid);
}

body.bf-product-template .bf-product-copy li {
  margin: 0.28rem 0;
  line-height: 1.5;
}

/* ---------- Related ---------- */
body.bf-product-template .related.products,
body.bf-product-template .upsells.products {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

body.bf-product-template .related.products > h2,
body.bf-product-template .upsells.products > h2 {
  margin: 0 0 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--bf-line);
  font-family: var(--bf-serif);
  font-size: 1.85rem;
  color: var(--bf-navy);
}

body.bf-product-template ul.products,
body.bf-shop-template ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}

body.bf-product-template ul.products::before,
body.bf-product-template ul.products::after,
body.bf-shop-template ul.products::before,
body.bf-shop-template ul.products::after {
  display: none !important;
}

body.bf-product-template ul.products li.product,
body.bf-shop-template ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  padding: 0.85rem;
  background: var(--bf-white);
  border: 1px solid var(--bf-line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.bf-product-template ul.products li.product:hover,
body.bf-shop-template ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(26, 39, 68, 0.1);
}

body.bf-product-template ul.products li.product img,
body.bf-shop-template ul.products li.product img {
  margin-bottom: 0.75rem;
  border: 1px solid rgba(26, 39, 68, 0.05);
}

body.bf-product-template ul.products li.product .woocommerce-loop-product__title,
body.bf-shop-template ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--bf-serif);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--bf-navy);
  padding: 0;
}

body.bf-product-template ul.products li.product .price,
body.bf-shop-template ul.products li.product .price {
  font-family: var(--bf-serif);
  color: var(--bf-navy);
  font-size: 1.15rem;
}

body.bf-product-template ul.products li.product .button,
body.bf-shop-template ul.products li.product .button {
  border-radius: 0 !important;
  background: var(--bf-navy) !important;
  color: #fff !important;
  font-family: var(--bf-sans) !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

body.bf-shop-template .woocommerce-products-header__title {
  font-family: var(--bf-serif);
  color: var(--bf-navy);
  font-size: clamp(2rem, 4vw, 2.8rem);
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  body.bf-product-template div.product {
    animation: bfRise 0.55s ease both;
  }
  body.bf-product-template .woocommerce-product-gallery img {
    animation: bfFade 0.7s ease both;
  }
}

@keyframes bfRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bfFade {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: scale(1); }
}
