/* ==========================================================================
   SUBLIMINAL FIELDS — COMPLETE SINGLE PRODUCT STOREFRONT
   Target: body.single-product
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET, CONTAINER & FULL-WIDTH FOOTER
   -------------------------------------------------------------------------- */
body.single-product #primary,
body.single-product #main,
body.single-product .site-main,
body.single-product .content-area,
body.single-product .site-content,
body.single-product .page-content,
body.single-product .site-inner,
body.single-product .wrap {
  padding-top: 0 !important;
  margin-top: 0 !important;
  background-color: var(--white, #ffffff) !important;
}

body.single-product main#main-content,
body.single-product div.product {
  max-width: 1220px !important;
  margin: 0 auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

body.single-product header.entry-header,
body.single-product header.page-header,
body.single-product .woocommerce-products-header,
body.single-product .hero-section {
  display: none !important;
}

/* Breadcrumbs */
body.single-product .woocommerce-breadcrumb {
  font-size: 12px !important;
  letter-spacing: 0.3px !important;
  color: #777777 !important;
  margin-bottom: 24px !important;
  padding: 0 !important;
}

body.single-product .woocommerce-breadcrumb a {
  color: #555555 !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

body.single-product .woocommerce-breadcrumb a:hover {
  color: var(--black, #111111) !important;
}

/* Full-Width Footer Correction */
body.single-product footer,
body.single-product footer.site-footer,
body.single-product #colophon,
body.single-product .footer-wrap,
body.single-product .footer-widgets,
body.single-product .site-info {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

body.single-product footer .container,
body.single-product footer .site-info-container,
body.single-product #colophon .wrap {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

/* --------------------------------------------------------------------------
   2. HERO TWO-COLUMN COMPOSITION (Desktop Optimized)
   -------------------------------------------------------------------------- */
body.single-product div.product {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 0 !important;
  position: relative !important;
  margin-top: 24px !important;
}

body.single-product div.product .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
  box-sizing: border-box !important;
}

body.single-product div.product .summary.entry-summary {
  width: 100% !important;
  float: none !important;
  box-sizing: border-box !important;
}

@media (min-width: 992px) {
  body.single-product div.product {
    gap: 48px !important;
  }

  body.single-product div.product .woocommerce-product-gallery {
    width: calc(40% - 24px) !important;
    position: sticky !important;
    top: 32px !important;
  }

  body.single-product div.product .summary.entry-summary {
    width: calc(60% - 24px) !important;
  }
}

/* --------------------------------------------------------------------------
   3. PRODUCT IMAGE GALLERY — FULL OVERRIDE (SUBTLE & NATURAL ASPECT RATIO)
   -------------------------------------------------------------------------- */
/* Force all wrapper containers to adopt natural image heights */
body.single-product .woocommerce-product-gallery,
body.single-product .woocommerce-product-gallery .flex-viewport,
body.single-product div.product .woocommerce-product-gallery__wrapper {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
}

/* Subtle, minimal outer container frame */
body.single-product .woocommerce-product-gallery__wrapper {
  margin: 0 !important;
  padding: 10px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #fafafa !important;
  border: 1px solid rgba(0, 0, 0, 0.04) !important; /* Minimal faint border */
  box-shadow: none !important;
  box-sizing: border-box !important;
}

/* Force image slider items to un-stick from fixed pixel heights */
body.single-product .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image,
body.single-product .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image a {
  height: auto !important;
  min-height: 0 !important;
  display: block !important;
  width: 100% !important;
}

/* Direct image behavior */
body.single-product .woocommerce-product-gallery img,
body.single-product .woocommerce-product-gallery__image img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  border-radius: 6px !important;
  display: block !important;
  margin: 0 auto !important;
  box-shadow: none !important;
}

/* Thumbnails Strip */
body.single-product .flex-control-thumbs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 12px !important;
  padding: 0 !important;
  list-style: none !important;
  height: auto !important;
}

body.single-product .flex-control-thumbs li {
  width: calc(20% - 8px) !important;
  float: none !important;
  margin: 0 !important;
}

body.single-product .flex-control-thumbs img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  padding: 0 !important;
  background: #ffffff !important;
  cursor: pointer !important;
  opacity: 0.7 !important;
  transition: border-color 0.15s ease, opacity 0.15s ease !important;
  box-shadow: none !important;
}

body.single-product .flex-control-thumbs img.flex-active,
body.single-product .flex-control-thumbs img:hover {
  border-color: var(--gold, #c5a059) !important;
  opacity: 1 !important;
  transform: none !important;
  box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   4. PRODUCT SUMMARY AREA & EDITORIAL TYPOGRAPHY
   -------------------------------------------------------------------------- */
body.single-product .summary.entry-summary {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  margin: 0 0 32px 0 !important;
}

/* Title */
body.single-product .product_title,
body.single-product .summary h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: var(--black, #111111) !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
}

@media (min-width: 992px) {
  body.single-product .product_title,
  body.single-product .summary h1 {
    font-size: 38px !important;
  }
}

/* Rating */
body.single-product .woocommerce-product-rating {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 16px !important;
  font-size: 13px !important;
  color: #666666 !important;
}

body.single-product .star-rating {
  color: var(--gold, #c5a059) !important;
  font-size: 14px !important;
  float: none !important;
  margin: 0 !important;
}

/* Price Wrapper */
body.single-product p.price,
body.single-product .summary .price {
  display: flex !important;
  align-items: baseline !important;
  gap: 12px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 34px !important;
  font-weight: 700 !important;
  color: var(--black, #111111) !important;
  margin: 0 0 20px 0 !important;
  line-height: 1 !important;
}

/* Old / Strikethrough Price (smaller) */
body.single-product p.price del,
body.single-product .summary .price del,
body.single-product p.price del .woocommerce-Price-amount,
body.single-product .summary .price del .woocommerce-Price-amount {
  font-size: 20px !important; /* Kept compact */
  font-weight: 400 !important;
  color: #888888 !important;
  opacity: 0.7 !important;
  text-decoration: line-through !important;
}

/* CURRENT / ACTIVE PRICE (Force Big Size) */
body.single-product p.price ins,
body.single-product .summary .price ins,
body.single-product p.price ins .woocommerce-Price-amount,
body.single-product .summary .price ins .woocommerce-Price-amount,
body.single-product p.price > .woocommerce-Price-amount,
body.single-product .summary .price > .woocommerce-Price-amount {
  font-size: 36px !important; /* BIG active price */
  font-weight: 700 !important;
  text-decoration: none !important;
  color: var(--black, #111111) !important;
  background: transparent !important;
}


/* Short Description */
body.single-product .woocommerce-product-details__short-description,
body.single-product .summary .description {
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: #4a4a4a !important;
  margin: 0 0 24px 0 !important;
  padding: 0 0 20px 0 !important;
  border-bottom: 1px solid #f0f0f0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.single-product .woocommerce-product-details__short-description p {
  margin: 0 0 12px 0 !important;
}

body.single-product .woocommerce-product-details__short-description p:last-child {
  margin-bottom: 0 !important;
}

/* Metadata (SKU, Categories, Tags) */
body.single-product .product_meta {
  font-size: 12px !important;
  color: #888888 !important;
  margin-top: 16px !important;
  padding-top: 16px !important;
  border-top: 1px solid #f0f0f0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

body.single-product .product_meta a {
  color: #555555 !important;
  text-decoration: underline !important;
}

/* --------------------------------------------------------------------------
   5. PURCHASE AREA — CTA STACK
   -------------------------------------------------------------------------- */
/* Inline Quantity + Add to Cart Row */
body.single-product form.cart {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

body.single-product form.cart .quantity {
  display: flex !important;
  margin-bottom: 0 !important;
  flex-shrink: 0 !important;
}

body.single-product form.cart .quantity input.qty {
  width: 72px !important;
  height: 54px !important; /* Matches button height */
  text-align: center !important;
  border: 1px solid #dddddd !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  color: var(--black, #111111) !important;
  background: #ffffff !important;
}

/* Primary Add to Cart Button */
body.single-product button.single_add_to_cart_button,
body.single-product .summary button.button.alt {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 54px !important;
  background: var(--black, #111111) !important;
  color: var(--white, #ffffff) !important;
  border: 1px solid var(--black, #111111) !important;
  border-radius: 6px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  margin: 0 !important;
  float: none !important;
}

body.single-product button.single_add_to_cart_button:hover {
  background: var(--gold, #c5a059) !important;
  border-color: var(--gold, #c5a059) !important;
  color: var(--black, #111111) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Secondary Direct Checkout Button */
button.sf-direct-checkout-btn,
body.single-product button.sf-direct-checkout-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 54px !important;
  background: var(--white, #ffffff) !important;
  color: var(--black, #111111) !important;
  border: 1px solid #d0d0d0 !important;
  border-radius: 6px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease !important;
  cursor: pointer !important;
}

button.sf-direct-checkout-btn:hover {
  border-color: var(--black, #111111) !important;
  background: #fcfcfc !important;
  transform: translateY(-1px) !important;
}

/* --------------------------------------------------------------------------
   6. PAYMENT BADGES & WHY BUY FROM US (BELOW CTA)
   -------------------------------------------------------------------------- */
.sf-trust-badge-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin-top: 14px !important;
  padding: 14px 16px !important;
  background: #fbfbfb !important;
  border: 1px solid #eef0f2 !important;
  border-radius: 8px !important;
  text-align: center !important;
}

.sf-trust-headline {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #555555 !important;
  margin: 0 !important;
}

.sf-payment-methods-strip {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.sf-payment-card-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 8px !important;
  background: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 4px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #333333 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

/* Value Proposition Block */
.sf-value-proposition-block {
  margin-top: 20px !important;
  padding: 20px !important;
  background: #ffffff !important;
  border: 1px solid #eef0f2 !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
}

.sf-value-header {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: var(--black, #111111) !important;
  margin-bottom: 16px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

.sf-value-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.sf-value-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  color: #333333 !important;
}

.sf-value-check {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: var(--gold, #c5a059) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: bold !important;
  flex-shrink: 0 !important;
  margin-top: 1px !important;
}

.sf-value-text strong {
  color: var(--black, #111111) !important;
  font-weight: 600 !important;
}

/* --------------------------------------------------------------------------
   7. TABS & DUPLICATE DESCRIPTION TITLE FIX
   -------------------------------------------------------------------------- */
body.single-product .woocommerce-tabs {
  width: 100% !important;
  clear: both !important;
  margin-top: 48px !important;
  padding-top: 40px !important;
  border-top: 1px solid #eeeeee !important;
}

body.single-product .woocommerce-tabs ul.tabs {
  display: flex !important;
  gap: 32px !important;
  padding: 0 0 12px 0 !important;
  margin: 0 0 32px 0 !important;
  list-style: none !important;
  border-bottom: 1px solid #eeeeee !important;
  background: transparent !important;
  overflow-x: auto !important;
}

body.single-product .woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: none !important;
  padding: 0 0 12px 0 !important;
  margin: 0 !important;
  position: relative !important;
  border-radius: 0 !important;
}

body.single-product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #888888 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  padding: 0 !important;
  background: transparent !important;
}

body.single-product .woocommerce-tabs ul.tabs li.active a,
body.single-product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--black, #111111) !important;
  background: transparent !important;
}

body.single-product .woocommerce-tabs ul.tabs li.active::before {
  content: "" !important;
  position: absolute !important;
  bottom: -1px !important;
  left: 0 !important;
  right: 0 !important;
  height: 2px !important;
  background: var(--black, #111111) !important;
}

body.single-product .woocommerce-tabs .panel {
  font-size: 16px !important;
  line-height: 1.8 !important;
  color: #333333 !important;
  max-width: 900px !important;
  margin: 0 auto !important; /* Centered content for desktop reading */
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}


/* Hide duplicate "Description" header inside tab panel */
body.single-product .woocommerce-tabs .panel#tab-description > h2,
body.single-product .woocommerce-tabs .panel.woocommerce-Tabs-panel--description > h2 {
  display: none !important;
}

body.single-product .woocommerce-tabs .panel p {
  margin-bottom: 16px !important;
}

body.single-product .woocommerce-tabs .panel ul,
body.single-product .woocommerce-tabs .panel ol {
  margin: 0 0 20px 20px !important;
  padding: 0 !important;
}

body.single-product .woocommerce-tabs .panel li {
  margin-bottom: 8px !important;
}

/* --------------------------------------------------------------------------
   8. REVIEWS SYSTEM REFINEMENT
   -------------------------------------------------------------------------- */
body.single-product #reviews #comments ol.commentlist {
  padding: 0 !important;
  margin: 0 0 32px 0 !important;
  list-style: none !important;
}

body.single-product #reviews #comments ol.commentlist li {
  padding: 24px 0 !important;
  border-bottom: 1px solid #f0f0f0 !important;
  background: transparent !important;
  margin: 0 !important;
}

body.single-product #reviews .comment-text {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
}

body.single-product #reviews .meta {
  font-size: 13px !important;
  color: #777777 !important;
  margin-bottom: 8px !important;
}

body.single-product #reviews .meta strong {
  color: var(--black, #111111) !important;
  font-weight: 600 !important;
}

body.single-product #review_form_wrapper {
  margin-top: 32px !important;
  padding-top: 24px !important;
  border-top: 1px solid #f0f0f0 !important;
}

/* --------------------------------------------------------------------------
   9. MOBILE RESPONSIVENESS
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  body.single-product p.price ins .woocommerce-Price-amount,
  body.single-product .summary .price ins .woocommerce-Price-amount,
  body.single-product p.price > .woocommerce-Price-amount {
    font-size: 28px !important;
  }

  body.single-product div.product .woocommerce-product-gallery {
    margin-bottom: 24px !important;
  }

  body.single-product .product_title,
  body.single-product .summary h1 {
    font-size: 26px !important;
  }

  body.single-product p.price,
  body.single-product .summary .price {
    font-size: 28px !important;
  }

  body.single-product form.cart {
    flex-direction: column !important;
  }

  body.single-product form.cart .quantity input.qty {
    width: 100% !important;
  }

  body.single-product .woocommerce-tabs {
    margin-top: 36px !important;
    padding-top: 28px !important;
  }

  body.single-product .woocommerce-tabs ul.tabs {
    gap: 20px !important;
  }

  body.single-product .woocommerce-tabs ul.tabs li a {
    font-size: 14px !important;
  }
}

/* Remove container padding from main wrapper on single product pages */
body.single-product main#main-content,
body.single-product main#primary,
body.single-product main.container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Re-apply the side padding ONLY to the product gallery & details area */
body.single-product div.product {
  max-width: 1220px !important;
  margin: 0 auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}
