/**
 * Modern Single Product Page Styling
 * 
 * File: wp-content/themes/eo-astra-child/assets/css/single-product.css
 * Version: 2.0.0
 * Date: 2025-06-25
 * 
 * BALANCED COLOR STRATEGY:
 * - RED (#d7040f): Reserved for primary actions (Add to Cart button, current page nav)
 * - BLACK (#1a1a1a): Used for headings, labels, icons for professional look
 * - GRAY: Used for borders, backgrounds, and secondary elements
 * - This creates better visual hierarchy and reduces red overuse
 * 
 * This CSS modernizes the single product page layout and styling
 * Provides clean, professional, mobile-responsive design with balanced branding
 */

/*==============================================================================
  CSS VARIABLES - SINGLE PRODUCT
==============================================================================*/
:root {
  /* Single product specific variables */
  --product-container-max-width: 1200px;
  --product-gallery-max-width: 500px;
  --product-info-padding: 40px;
  --product-card-radius: 12px;
  --product-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --product-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --product-border: 1px solid #e8e8e8;

  /* Spacing */
  --section-spacing: 60px;
  --element-spacing: 24px;

  /* Review variables */
  --review-card-bg: #fafafa;
  --review-border: 1px solid #e5e5e5;
  --review-spacing: 20px;
}

/*==============================================================================
  BREADCRUMB MODERNIZATION
==============================================================================*/
.ast-breadcrumbs-wrapper {
  background: transparent !important;
  padding: 20px 0 !important;
  margin-bottom: 30px !important;
  border-bottom: 1px solid var(--border-light) !important;
}

.ast-breadcrumbs .trail-items {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.ast-breadcrumbs .trail-item {
  font-size: 14px !important;
  color: #666 !important;
  margin: 0 !important;
}

.ast-breadcrumbs .trail-item:not(:last-child)::after {
  content: "/" !important;
  margin-left: 8px !important;
  color: #999 !important;
}

.ast-breadcrumbs .trail-item a {
  color: #666 !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.ast-breadcrumbs .trail-item a:hover {
  color: var(--accent-black, #1a1a1a) !important;
}

.ast-breadcrumbs .trail-end {
  font-weight: 600 !important;
  color: var(--accent-black, #1a1a1a) !important;
}

/*==============================================================================
  MAIN PRODUCT CONTAINER
==============================================================================*/
.single-product .ast-woocommerce-container {
  max-width: var(--product-container-max-width) !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  display: block !important;
  position: relative !important;
  width: 100% !important;
}

/* Main product page wrapper */
.single-product .woocommerce {
  display: block !important;
  width: 100% !important;
}

/* Ensure all sections stack properly below the main product grid */
.single-product .product ~ * {
  width: 100% !important;
  clear: both !important;
  max-width: var(--product-container-max-width, 1200px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.single-product #product-88,
.single-product .product {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  grid-template-areas:
    "gallery summary"
    "accordion accordion" !important;
  gap: var(--section-spacing) !important;
  align-items: start !important;
  margin-bottom: var(--section-spacing) !important;
  background: #fff !important;
  border-radius: var(--product-card-radius) !important;
  box-shadow: var(--product-shadow) !important;
  padding: var(--product-info-padding) !important;
  border: var(--product-border) !important;
  transition: box-shadow 0.3s ease !important;
  min-height: 500px !important;
  width: 100% !important;
  max-width: 100% !important;
}

.single-product .product:hover {
  box-shadow: var(--product-shadow-hover) !important;
}

/*==============================================================================
  ENHANCED PRODUCT GALLERY MODERNIZATION
==============================================================================*/
.single-product .woocommerce-product-gallery {
  position: relative !important;
  margin: 0 !important;
  border-radius: var(--product-card-radius) !important;
  overflow: hidden !important;
  background: #f8f9fa !important;
  grid-area: gallery !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 500px !important;
  display: flex !important;
  flex-direction: column !important;
  align-self: start !important;
  justify-self: start !important;

  /* CRITICAL: Ensure gallery stays in grid area */
  float: none !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
}

.single-product .woocommerce-product-gallery__wrapper {
  position: relative !important;
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  /* CRITICAL: Override FlexSlider inline styles */
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

/* FlexSlider viewport override */
.single-product .flex-viewport {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  overflow: hidden !important;
  height: auto !important;
  max-width: 100% !important;
}

/* FlexSlider container override */
.single-product
  .woocommerce-product-gallery
  .flex-viewport
  .woocommerce-product-gallery__wrapper {
  width: 100% !important;
  transform: none !important;
  transition: none !important;
  display: flex !important;
  flex-wrap: nowrap !important;
}

/* Enhanced main gallery image - override all inline styles */
.single-product .woocommerce-product-gallery__image {
  width: 100% !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  position: relative !important;

  /* CRITICAL: Override inline styles that break grid layout */
  float: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  left: auto !important;
  right: auto !important;

  /* Additional overrides for JavaScript-set inline styles */
  min-width: auto !important;
  max-width: 100% !important;
}

.single-product .woocommerce-product-gallery__image img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 450px !important;
  object-fit: contain !important;
  border-radius: var(--product-card-radius) !important;
  transition: transform 0.4s ease !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.single-product .woocommerce-product-gallery__image:hover img {
  transform: scale(1.03) !important;
}

/* Enhanced thumbnail navigation */
.single-product .flex-control-nav {
  display: flex !important;
  justify-content: center !important;
  gap: 12px !important;
  padding: 20px !important;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.single-product .flex-control-nav li {
  margin: 0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  border: 2px solid transparent !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

.single-product .flex-control-nav li:hover,
.single-product .flex-control-nav li.flex-active {
  border-color: var(--primary-color) !important;
  transform: scale(1.05) !important;
}

.single-product .flex-control-nav li img {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover !important;
  display: block !important;
  transition: all 0.3s ease !important;
}

/* Fix for flexslider */
.single-product .flex-viewport {
  overflow: visible !important;
  border-radius: var(--product-card-radius) !important;
}

.single-product .woocommerce-product-gallery__wrapper {
  transition: none !important;
  transform: none !important;
}

/* Enhanced zoom trigger */

/* Gallery trigger (zoom button) */
.single-product .woocommerce-product-gallery__trigger {
  position: absolute !important;
  top: 15px !important;
  right: 15px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: none !important;
  border-radius: 50% !important;
  width: 50px !important;
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px) !important;
  z-index: 5 !important;
}

.single-product .woocommerce-product-gallery__trigger:hover {
  background: var(--primary-color) !important;
  color: white !important;
  transform: scale(1.1) !important;
}

/*==============================================================================
  DUPLICATE PREVENTION - CRITICAL FIX
==============================================================================*/
/* Hide duplicate titles beyond the first one */
.single-product .summary .product_title:not(:first-of-type),
.single-product .summary .entry-title:not(:first-of-type) {
  display: none !important;
}

/* Hide duplicate prices beyond the first one */
.single-product .summary .price:not(:first-of-type) {
  display: none !important;
}

/* Hide duplicate cart forms beyond the first one */
.single-product .summary .cart:not(:first-of-type) {
  display: none !important;
}

/* Hide duplicate short descriptions beyond the first one */
.single-product
  .summary
  .woocommerce-product-details__short-description:not(:first-of-type) {
  display: none !important;
}

/* Hide duplicate meta beyond the first one */
.single-product .summary .product_meta:not(:first-of-type) {
  display: none !important;
}

/* Hide duplicate category links beyond the first one */
.single-product .summary .single-product-category:not(:first-of-type) {
  display: none !important;
}

/*==============================================================================
  PRODUCT INFORMATION SECTION
==============================================================================*/
.single-product .summary.entry-summary {
  grid-area: summary !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: var(--element-spacing) !important;
  width: 100% !important;
  max-width: 100% !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  align-self: start !important;
  justify-self: start !important;
}

/* Product Title - Unified */
.single-product .product_title,
.single-product .entry-title.product_title {
  font-family: "Inter-Bold", sans-serif !important;
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  color: var(--accent-black, #1a1a1a) !important;
  margin: 0 0 16px 0 !important;
  line-height: 1.2 !important;
  order: 1 !important;
}

/* Product Price */
.single-product .summary .price {
  order: 2 !important;
  margin: 0 0 24px 0 !important;
  padding: 20px !important;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  border-radius: 12px !important;
  border: var(--product-border) !important;
}

/* Short Description */
.single-product .woocommerce-product-details__short-description {
  order: 3 !important;
  padding: 24px !important;
  background: #f8f9fa !important;
  border-radius: 12px !important;
  border: var(--product-border) !important;
  margin: 0 0 24px 0 !important;
}

/* Add to Cart Form */
.single-product .summary .cart {
  order: 4 !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 24px !important;
  background: #fff !important;
  border: var(--product-border) !important;
  border-radius: 12px !important;
  margin: 0 0 24px 0 !important;
  flex-wrap: wrap !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Custom Fields (UPC and Brand) */
.single-product .eo-custom-fields {
  order: 5 !important;
  padding: 20px !important;
  background: #f8f9fa !important;
  border-radius: 12px !important;
  border: var(--product-border) !important;
  margin: 0 0 24px 0 !important;
  display: grid !important;
  gap: 12px !important;
}

/* Enhanced Custom Fields (UPC and Brand) */
.single-product .eo-custom-fields {
  order: 5 !important;
  padding: 24px !important;
  background: #f8f9fa !important;
  border-radius: 12px !important;
  border: var(--product-border) !important;
  margin: 0 0 24px 0 !important;
  display: block !important;
  position: relative !important;
}

.single-product .eo-fields-title {
  font-family: "Inter-Bold", sans-serif !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  color: var(--accent-black, #1a1a1a) !important;
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
  border-bottom: 2px solid rgba(26, 26, 26, 0.1) !important;
  padding-bottom: 8px !important;
}

/* Product Categories */
.single-product .single-product-category {
  order: 6 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 !important;
}

.single-product .summary .price .woocommerce-Price-amount {
  font-family: "Inter-Bold", sans-serif !important;
  font-size: 2.2rem !important;
  font-weight: 700 !important;
  color: var(--price-color) !important;
  display: block !important;
}

.single-product .summary .price .woocommerce-Price-currencySymbol {
  font-size: 1.8rem !important;
  margin-right: 4px !important;
}

/* Quantity Selector - Neutral Design */
.single-product .quantity,
.single-product .quantity.buttons-added {
  border: 2px solid var(--border-medium, #d0d0d0) !important;
  border-radius: 8px !important;
  background: #fff !important;
  transition: all 0.3s ease !important;
  margin-right: 16px !important;
}

.single-product .quantity:hover,
.single-product .quantity.buttons-added:hover,
.single-product .quantity:focus-within,
.single-product .quantity.buttons-added:focus-within {
  border-color: var(--accent-black, #1a1a1a) !important;
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1) !important;
}

/* Override any conflicting quantity styles for single product */
.single-product .quantity input.qty,
.single-product .quantity.buttons-added input.qty,
.single-product .quantity input[type="number"],
.single-product .quantity.buttons-added input[type="number"] {
  border: none !important;
  border-left: 1px solid var(--border-medium, #d0d0d0) !important;
  border-right: 1px solid var(--border-medium, #d0d0d0) !important;
  background: transparent !important;
  text-align: center !important;
  width: 80px !important;
  min-width: 80px !important;
  max-width: 80px !important;
  height: 42px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--text-primary, #333) !important;
  order: 2 !important;
}

.single-product .quantity .qty-adjust,
.single-product .quantity.buttons-added .qty-adjust {
  background: var(--bg-medium, #f1f3f4) !important;
  color: var(--text-primary, #333) !important;
  border: none !important;
  width: 44px !important;
  height: 42px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
}

.single-product .quantity .minus,
.single-product .quantity.buttons-added .minus {
  order: 1 !important;
  border-radius: 6px 0 0 6px !important;
}

.single-product .quantity .plus,
.single-product .quantity.buttons-added .plus {
  order: 3 !important;
  border-radius: 0 6px 6px 0 !important;
}

.single-product .quantity .qty-adjust:hover,
.single-product .quantity.buttons-added .qty-adjust:hover {
  background: var(--accent-dark, #2d2d2d) !important;
  color: white !important;
  transform: scale(1.05) !important;
}

/* Enhanced Add to Cart Button */
.single-product .single_add_to_cart_button {
  flex: 1 !important;
  min-width: 250px !important;
  min-height: 56px !important;
  padding: 18px 40px !important;
  font-family: "Inter-Bold", sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    #b5030d 100%
  ) !important;
  color: white !important;
  border: none !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 6px 20px rgba(215, 4, 15, 0.4) !important;
  position: relative !important;
  overflow: hidden !important;
}

.single-product .single_add_to_cart_button:hover {
  background: linear-gradient(
    135deg,
    #b5030d 0%,
    var(--primary-color) 100%
  ) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(215, 4, 15, 0.5) !important;
}

.single-product .single_add_to_cart_button:active {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 15px rgba(215, 4, 15, 0.4) !important;
}

/* Loading state for add to cart */
.single-product .single_add_to_cart_button.loading {
  pointer-events: none !important;
  opacity: 0.8 !important;
}

.single-product .single_add_to_cart_button.loading::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 20px !important;
  height: 20px !important;
  margin: -10px 0 0 -10px !important;
  border: 2px solid transparent !important;
  border-top-color: #fff !important;
  border-radius: 50% !important;
  animation: spin 1s linear infinite !important;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Short Description moved to order 4 above */
.single-product .woocommerce-product-details__short-description p {
  margin: 0 0 12px 0 !important;
  line-height: 1.6 !important;
  color: #555 !important;
}

.single-product .woocommerce-product-details__short-description p:last-child {
  margin-bottom: 0 !important;
}

.single-product .woocommerce-product-details__short-description strong {
  color: var(--accent-black, #1a1a1a) !important;
  font-weight: 600 !important;
}

/* Add to Cart Form - Ensure it's visible */
.single-product .summary .cart {
  order: 3 !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 24px !important;
  background: #fff !important;
  border: var(--product-border) !important;
  border-radius: 12px !important;
  margin: 0 0 24px 0 !important;
  flex-wrap: wrap !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Short Description */
.single-product .woocommerce-product-details__short-description {
  order: 4 !important;
  padding: 24px !important;
  background: #f8f9fa !important;
  border-radius: 12px !important;
  border: var(--product-border) !important;
  margin: 0 0 24px 0 !important;
}

/* Custom Fields (UPC and Brand) */
.single-product .eo-custom-fields {
  order: 5 !important;
  padding: 20px !important;
  background: #f8f9fa !important;
  border-radius: 12px !important;
  border: var(--product-border) !important;
  margin: 0 0 24px 0 !important;
  display: grid !important;
  gap: 12px !important;
}

.single-product .eo-field {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.single-product .eo-field:last-child {
  border-bottom: none !important;
}

.single-product .eo-field-label {
  font-family: "Inter-Bold", sans-serif !important;
  font-weight: 600 !important;
  color: var(--accent-black, #1a1a1a) !important;
  min-width: 60px !important;
  font-size: 14px !important;
}

.single-product .eo-field-value {
  font-weight: 500 !important;
  color: #555 !important;
  font-size: 14px !important;
  padding: 4px 12px !important;
  background: #fff !important;
  border-radius: 6px !important;
  border: 1px solid #e0e0e0 !important;
}

/* Product Categories */
.single-product .single-product-category {
  order: 6 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 !important;
}

.single-product .single-product-category a {
  padding: 6px 12px !important;
  background: var(--primary-color) !important;
  color: white !important;
  text-decoration: none !important;
  border-radius: 20px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

.single-product .single-product-category a:hover {
  background: var(--primary-color-dark, #b5030d) !important;
  transform: translateY(-1px) !important;
}

/*==============================================================================
  PRODUCT ACCORDION (REPLACES TABS) - FULL WIDTH
==============================================================================*/
.single-product .eo-product-accordion {
  background: #fff !important;
  border-radius: var(--product-card-radius) !important;
  box-shadow: var(--product-shadow) !important;
  margin: var(--section-spacing) 0 !important;
  border: var(--product-border) !important;
  width: 100% !important;
  clear: both !important;
  overflow: hidden !important;

  /* CRITICAL: Use accordion grid area to span full width */
  grid-area: accordion !important;

  /* CRITICAL: Ensure full width container spanning entire page */
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  position: relative !important;

  /* Force full container width */
  box-sizing: border-box !important;
  left: 0 !important;
}

/* Accordion content styling for full width */
.single-product .eo-accordion-inner {
  width: 100% !important;
  max-width: 100% !important;
  padding: var(--product-info-padding) !important;
  box-sizing: border-box !important;
}

.single-product .eo-accordion-content {
  width: 100% !important;
  max-width: 100% !important;
}

.single-product .eo-accordion-item {
  border-bottom: 1px solid var(--border-light) !important;
}

.single-product .eo-accordion-item:last-child {
  border-bottom: none !important;
}

.single-product .eo-accordion-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 20px 30px !important;
  background: #f8f9fa !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  border: none !important;
  outline: none !important;
}

.single-product .eo-accordion-header:hover {
  background: rgba(26, 26, 26, 0.05) !important;
}

.single-product .eo-accordion-header h3 {
  font-family: "Inter-Bold", sans-serif !important;
  font-size: 1.3rem !important;
  color: var(--accent-black, #1a1a1a) !important;
  margin: 0 !important;
  padding: 0 !important;
  font-weight: 600 !important;
}

.single-product .eo-accordion-icon {
  font-size: 1.5rem !important;
  font-weight: bold !important;
  color: var(--accent-black, #1a1a1a) !important;
  transition: transform 0.3s ease !important;
  line-height: 1 !important;
}

.single-product .eo-accordion-header[aria-expanded="true"] .eo-accordion-icon {
  transform: rotate(45deg) !important;
}

.single-product .eo-accordion-content {
  max-height: 0 !important;
  overflow: hidden !important;
  transition: max-height 0.3s ease !important;
}

.single-product .eo-accordion-content.active,
.single-product .eo-accordion-content.eo-accordion-open {
  max-height: 2000px !important;
}

.single-product .eo-accordion-inner {
  padding: 40px 60px !important;
  background: #fff !important;
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
  margin: 0 !important;
  overflow: visible !important;
}

.single-product .eo-accordion-inner h2 {
  font-family: "Inter-Bold", sans-serif !important;
  font-size: 1.8rem !important;
  color: var(--primary-color) !important;
  margin: 0 0 20px 0 !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid var(--border-light) !important;
}

.single-product .eo-accordion-inner h3 {
  font-family: "Inter-Bold", sans-serif !important;
  font-size: 1.4rem !important;
  color: #333 !important;
  margin: 25px 0 15px 0 !important;
}

.single-product .eo-accordion-inner h4 {
  font-family: "Inter-Bold", sans-serif !important;
  font-size: 1.2rem !important;
  color: #333 !important;
  margin: 20px 0 10px 0 !important;
}

.single-product .eo-accordion-inner p {
  line-height: 1.7 !important;
  color: #555 !important;
  margin-bottom: 16px !important;
}

.single-product .eo-accordion-inner ul {
  margin: 16px 0 !important;
  padding-left: 30px !important;
}

.single-product .eo-accordion-inner ul li {
  color: #555 !important;
  margin-bottom: 8px !important;
  line-height: 1.6 !important;
}

.single-product .eo-accordion-inner hr {
  border: none !important;
  height: 1px !important;
  background: var(--border-light) !important;
  margin: 30px 0 !important;
}

.single-product .eo-accordion-inner strong {
  color: var(--primary-color) !important;
  font-weight: 600 !important;
}

/*==============================================================================
  SUPPLEMENT FACTS PANEL COMPONENT
==============================================================================*/

/* Supplement Facts Panel Container */
.eo-supplement-facts-panel {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin: 16px 0;
  font-family: "Inter", sans-serif;
}

/* Serving Information */
.eo-supplement-facts-panel .serving-size,
.eo-supplement-facts-panel .servings-per-container {
  margin: 0 0 12px 0;
  font-size: 14px;
  line-height: 1.4;
}

.eo-supplement-facts-panel .serving-size strong,
.eo-supplement-facts-panel .servings-per-container strong {
  color: #1a1a1a;
  font-weight: 600;
  margin-right: 8px;
}

/* Responsive Table Container */
.eo-supplement-facts-panel .responsive-table {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

/* Supplement Facts Table */
.eo-supplement-facts-panel .supplement-facts-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  background: #fff;
  font-size: 14px;
}

.eo-supplement-facts-panel .supplement-facts-table thead th {
  background: #f8f9fa;
  color: #1a1a1a;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid #e0e0e0;
  font-size: 14px;
}

.eo-supplement-facts-panel .supplement-facts-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
}

.eo-supplement-facts-panel .supplement-facts-table tbody tr:last-child {
  border-bottom: none;
}

.eo-supplement-facts-panel .supplement-facts-table td {
  padding: 10px 16px;
  vertical-align: top;
  border: none;
}

.eo-supplement-facts-panel .supplement-facts-table .ingredient-name {
  font-weight: 500;
  color: #333;
  width: 60%;
}

.eo-supplement-facts-panel .supplement-facts-table .ingredient-amount {
  font-weight: 600;
  color: #1a1a1a;
  text-align: right;
  width: 40%;
}

.eo-supplement-facts-panel .supplement-facts-table .amount {
  margin-right: 4px;
}

.eo-supplement-facts-panel .supplement-facts-table .measurement {
  font-size: 13px;
  color: #666;
}

/* Other Ingredients Section */
.eo-supplement-facts-panel .other-ingredients {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.eo-supplement-facts-panel .other-ingredients p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.eo-supplement-facts-panel .other-ingredients strong {
  color: #1a1a1a;
  font-weight: 600;
  margin-right: 8px;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
  .eo-supplement-facts-panel {
    padding: 16px;
    margin: 12px 0;
  }
  
  .eo-supplement-facts-panel .supplement-facts-table {
    font-size: 13px;
  }
  
  .eo-supplement-facts-panel .supplement-facts-table thead th,
  .eo-supplement-facts-panel .supplement-facts-table td {
    padding: 8px 12px;
  }
  
  .eo-supplement-facts-panel .serving-size,
  .eo-supplement-facts-panel .servings-per-container,
  .eo-supplement-facts-panel .other-ingredients p {
    font-size: 13px;
  }
}

@media screen and (max-width: 480px) {
  .eo-supplement-facts-panel .supplement-facts-table thead th,
  .eo-supplement-facts-panel .supplement-facts-table td {
    padding: 6px 8px;
  }
  
  .eo-supplement-facts-panel .supplement-facts-table {
    font-size: 12px;
  }
  
  .eo-supplement-facts-panel .ingredient-name {
    width: 65%;
  }
  
  .eo-supplement-facts-panel .ingredient-amount {
    width: 35%;
  }
}

/* Suggested Use Accordion Styling */
.eo-suggested-use-accordion .eo-accordion-inner h4 {
  color: var(--primary-color);
  font-weight: 600;
  margin: 0 0 12px 0;
  font-size: 16px;
}

.eo-suggested-use-accordion .eo-accordion-inner p {
  line-height: 1.6;
  margin-bottom: 12px;
  color: #333;
}

.eo-suggested-use-accordion .eo-accordion-inner hr {
  margin: 20px 0;
  border: none;
  border-top: 1px solid #e0e0e0;
}

/* Accordion content display states */
.eo-accordion-content.active,
.eo-accordion-content.eo-accordion-open {
  display: block;
}

.eo-supplement-accordion .eo-accordion-header[aria-expanded="true"] {
  background: #f8f9fa;
  border-bottom: 1px solid var(--primary-color);
}

.eo-supplement-accordion .eo-accordion-header[aria-expanded="true"] .eo-accordion-icon {
  color: var(--primary-color);
  transform: rotate(0deg);
}

/* Enhanced accordion priority styling */
.eo-supplement-accordion {
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  margin-bottom: 16px;
}

.eo-suggested-use-accordion {
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  margin-bottom: 12px;
}

.eo-ingredients-accordion,
.eo-description-accordion {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 8px;
}

/* Hide old tabs */
.single-product .woocommerce-tabs {
  margin-top: var(--section-spacing) !important;
  width: 100% !important;
  max-width: 100% !important;
  box-shadow: var(--product-shadow) !important;
  border-radius: var(--product-card-radius) !important;
  overflow: hidden !important;
}

.single-product .woocommerce-tabs .tabs {
  display: flex !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #f8f9fa !important;
  border-radius: var(--product-card-radius) var(--product-card-radius) 0 0 !important;
  border-bottom: var(--product-border) !important;
}

.single-product .woocommerce-tabs .tabs li {
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.single-product .woocommerce-tabs .tabs li a {
  display: block !important;
  padding: 20px 30px !important;
  color: #666 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  border-bottom: 3px solid transparent !important;
}

.single-product .woocommerce-tabs .tabs li.active a,
.single-product .woocommerce-tabs .tabs li a:hover {
  color: var(--primary-color) !important;
  background: #fff !important;
  border-bottom-color: var(--primary-color) !important;
}

.single-product .woocommerce-tabs .woocommerce-Tabs-panel {
  padding: 40px !important;
  background: #fff !important;
  border-radius: 0 0 var(--product-card-radius) var(--product-card-radius) !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.single-product .woocommerce-tabs .woocommerce-Tabs-panel h2 {
  font-family: "Inter-Bold", sans-serif !important;
  font-size: 1.8rem !important;
  color: var(--primary-color) !important;
  margin: 0 0 24px 0 !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid var(--border-light) !important;
}

.single-product .woocommerce-tabs .woocommerce-Tabs-panel p {
  line-height: 1.7 !important;
  color: #555 !important;
  margin-bottom: 16px !important;
}

.single-product .woocommerce-tabs .woocommerce-Tabs-panel h3 {
  font-family: "Inter-Bold", sans-serif !important;
  font-size: 1.3rem !important;
  color: #333 !important;
  margin: 32px 0 16px 0 !important;
}

.single-product .woocommerce-tabs .woocommerce-Tabs-panel hr {
  border: none !important;
  height: 1px !important;
  background: var(--border-light) !important;
  margin: 32px 0 !important;
}

/*==============================================================================
  REVIEWS SECTION MODERNIZATION (After Description)
==============================================================================*/
.single-product #stamped-main-widget {
  background: #fff !important;
  border-radius: var(--product-card-radius) !important;
  box-shadow: var(--product-shadow) !important;
  padding: 40px !important;
  margin: var(--section-spacing) 0 !important;
  border: var(--product-border) !important;
  width: 100% !important;
  clear: both !important;
  grid-column: 1 / -1 !important;
  order: 2 !important; /* After accordion description */
}

.single-product .stamped-header-title {
  font-family: "Inter-Bold", sans-serif !important;
  font-size: 2rem !important;
  color: var(--primary-color) !important;
  margin: 0 0 30px 0 !important;
  padding-bottom: 15px !important;
  border-bottom: 2px solid var(--border-light) !important;
}

.single-product .stamped-summary {
  display: grid !important;
  grid-template-columns: 1fr 2fr !important;
  gap: 40px !important;
  margin-bottom: 40px !important;
  padding: 30px !important;
  background: var(--review-card-bg) !important;
  border-radius: 12px !important;
  border: var(--review-border) !important;
}

.single-product .summary-overview {
  text-align: center !important;
  padding: 20px !important;
  background: #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.single-product .stamped-summary-text-1 {
  font-size: 3rem !important;
  font-weight: 700 !important;
  color: var(--primary-color) !important;
  display: block !important;
  margin-bottom: 8px !important;
}

.single-product .stamped-summary-starrating {
  margin: 12px 0 !important;
  font-size: 20px !important;
}

.single-product .stamped-summary-starrating .stamped-fa {
  color: #ffc107 !important;
  margin: 0 2px !important;
}

.single-product .stamped-summary-ratings {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.single-product .summary-rating {
  display: grid !important;
  grid-template-columns: 50px 1fr 40px !important;
  align-items: center !important;
  gap: 12px !important;
}

.single-product .summary-rating-title {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #666 !important;
}

.single-product .summary-rating-bar {
  background: #e9ecef !important;
  height: 8px !important;
  border-radius: 4px !important;
  overflow: hidden !important;
}

.single-product .summary-rating-bar-content {
  height: 100% !important;
  background: var(--primary-color) !important;
  border-radius: 4px !important;
  transition: width 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  padding-right: 8px !important;
  color: white !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  min-width: 0 !important;
}

.single-product .summary-rating-count {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #666 !important;
  text-align: center !important;
}

/* Individual Reviews */
.single-product .stamped-review {
  background: #fff !important;
  border: var(--review-border) !important;
  border-radius: 12px !important;
  padding: 24px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  transition: box-shadow 0.3s ease !important;
}

.single-product .stamped-review:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

.single-product .stamped-review-header {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin-bottom: 16px !important;
  flex-wrap: wrap !important;
}

.single-product .stamped-review-avatar-content {
  width: 50px !important;
  height: 50px !important;
  background: var(--primary-color) !important;
  color: white !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  font-size: 18px !important;
}

.single-product .stamped-review .author {
  font-family: "Inter-Bold", sans-serif !important;
  font-size: 16px !important;
  color: #333 !important;
  margin: 0 !important;
}

.single-product .stamped-review .created {
  color: #666 !important;
  font-size: 14px !important;
  margin-left: auto !important;
}

.single-product .stamped-review-header-starratings {
  margin: 8px 0 !important;
  font-size: 16px !important;
  width: 100% !important;
  order: 10 !important;
}

.single-product .stamped-review-header-starratings .stamped-fa {
  color: #ffc107 !important;
  margin: 0 1px !important;
}

.single-product .stamped-review-content-body {
  line-height: 1.6 !important;
  color: #555 !important;
  margin: 0 !important;
  padding: 16px 0 !important;
}

.single-product .stamped-review-header-title {
  font-family: "Inter-Bold", sans-serif !important;
  font-size: 18px !important;
  color: var(--primary-color) !important;
  margin: 0 0 12px 0 !important;
}

/* Review Actions */
.single-product .stamped-summary-actions-newreview {
  background: var(--primary-color) !important;
  color: white !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
  margin-top: 20px !important;
}

.single-product .stamped-summary-actions-newreview:hover {
  background: var(--primary-color-dark, #b5030d) !important;
  transform: translateY(-2px) !important;
}

/*==============================================================================
  RELATED PRODUCTS MODERNIZATION
==============================================================================*/
.single-product .related.products {
  margin: var(--section-spacing) 0 !important;
  padding: 40px !important;
  background: #fff !important;
  border-radius: var(--product-card-radius) !important;
  box-shadow: var(--product-shadow) !important;
  border: var(--product-border) !important;
  width: 100% !important;
  clear: both !important;
  grid-column: 1 / -1 !important;
  order: 3 !important; /* After reviews */
}

.single-product .related.products h2 {
  font-family: "Inter-Bold", sans-serif !important;
  font-size: 2rem !important;
  color: var(--primary-color) !important;
  text-align: center !important;
  margin: 0 0 40px 0 !important;
  padding-bottom: 15px !important;
  border-bottom: 2px solid var(--border-light) !important;
}

.single-product .related.products .products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 25px !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: stretch !important;
  grid-auto-rows: 1fr !important;
}

/* Ensure related product cards match site-wide styling */
.single-product .related.products .products li.product {
  background: #fff !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--wc-card-border-radius) !important;
  box-shadow: var(--wc-card-shadow) !important;
  transition: var(--transition) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 400px !important;
}

.single-product .related.products .products li.product:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

.single-product
  .related.products
  .products
  li.product
  .astra-shop-thumbnail-wrap {
  width: 100% !important;
  position: relative !important;
  overflow: hidden !important;
  background: #f9f9f9 !important;
  border-radius: var(--wc-card-border-radius) var(--wc-card-border-radius) 0 0 !important;
}

.single-product
  .related.products
  .products
  li.product
  .astra-shop-thumbnail-wrap
  img {
  width: 100% !important;
  height: 250px !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.3s ease !important;
}

.single-product
  .related.products
  .products
  li.product:hover
  .astra-shop-thumbnail-wrap
  img {
  transform: scale(1.05) !important;
}

.single-product
  .related.products
  .products
  li.product
  .astra-shop-summary-wrap {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 20px !important;
}

.single-product
  .related.products
  .products
  li.product
  .woocommerce-loop-product__title {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--accent-black, #1a1a1a) !important;
  margin: 0 0 12px 0 !important;
  line-height: 1.3 !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: flex-start !important;
  text-align: center !important;
}

.single-product .related.products .products li.product .price {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--price-color) !important;
  margin: 8px 0 16px 0 !important;
  text-align: center !important;
}

.single-product .related.products .products li.product .button {
  background: var(--primary-color) !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 20px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: all 0.3s ease !important;
  margin-top: auto !important;
}

.single-product .related.products .products li.product .button:hover {
  background: var(--primary-color-dark, #b5030d) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(215, 4, 15, 0.3) !important;
}

/*==============================================================================
  TABLET RESPONSIVE (1024px and below)
==============================================================================*/
@media (max-width: 1024px) {
  :root {
    --product-info-padding: 30px;
    --section-spacing: 40px;
  }

  .single-product #product-88,
  .single-product .product {
    gap: 40px !important;
    padding: 30px !important;
  }
}

/*==============================================================================
  MOBILE RESPONSIVE
==============================================================================*/
@media (max-width: 768px) {
  :root {
    --product-info-padding: 15px;
    --section-spacing: 25px;
    --element-spacing: 12px;
  }

  .single-product #product-88,
  .single-product .product {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "gallery"
      "summary"
      "accordion" !important;
    gap: 20px !important;
    padding: 15px !important;
    min-height: auto !important;
  }

  /* Ensure gallery area is properly sized on mobile */
  .single-product .woocommerce-product-gallery {
    grid-area: gallery !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    display: block !important;
    visibility: visible !important;
  }

  .single-product .product_title,
  .single-product .entry-title.product_title {
    font-size: 2rem !important;
  }

  .single-product .summary .price .woocommerce-Price-amount {
    font-size: 1.8rem !important;
  }

  .single-product .summary .cart {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .single-product .single_add_to_cart_button {
    min-width: auto !important;
    width: 100% !important;
    min-height: 50px !important;
    font-size: 16px !important;
  }

  /* Mobile gallery improvements - Show full main image */
  .single-product .woocommerce-product-gallery {
    min-height: 400px !important;
    height: auto !important;
  }

  /* Ensure main gallery images are properly sized on mobile - CRITICAL FIX */
  .single-product .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: 380px !important;
    max-height: 380px !important;
    max-width: 100% !important;
    min-height: 300px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
  }

  /* Ensure the gallery wrapper shows the main image properly */
  .single-product .woocommerce-product-gallery__wrapper {
    height: auto !important;
    min-height: 400px !important;
  }

  /* Fix FlexSlider viewport on mobile - CRITICAL: Override inline height */
  .single-product .flex-viewport {
    height: 400px !important;
    min-height: 400px !important;
    max-height: none !important;
    overflow: visible !important;
  }

  /* Mobile thumbnail navigation positioning */
  .single-product .flex-control-nav {
    gap: 8px !important;
    padding: 15px !important;
    justify-content: center !important;
    margin-top: 15px !important;
  }

  .single-product .flex-control-nav li img {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    border: 2px solid transparent !important;
    transition: border-color 0.3s ease !important;
  }

  .single-product .flex-control-nav li.flex-active img {
    border-color: var(--primary-color, #d7040f) !important;
  }

  /* Ensure main image container is properly displayed */
  .single-product
    .woocommerce-product-gallery
    .flex-viewport
    .woocommerce-product-gallery__wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 400px !important;
    height: 400px !important;
  }

  /* Hide non-active slides on mobile to show only current image */
  .single-product .woocommerce-product-gallery__image:not(.flex-active-slide) {
    display: none !important;
  }

  /* Ensure active slide takes full container space */
  .single-product .woocommerce-product-gallery__image.flex-active-slide {
    display: flex !important;
    width: 100% !important;
    height: 400px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* CRITICAL: Force proper mobile image sizing regardless of inline styles */
  .single-product .woocommerce-product-gallery__image[style*="height"] img {
    width: 100% !important;
    height: 380px !important;
    object-fit: contain !important;
    max-width: 100% !important;
    max-height: 380px !important;
  }

  /* Override any FlexSlider-generated inline styles on mobile */
  .single-product .woocommerce-product-gallery__image[style] {
    height: 380px !important;
    min-height: 380px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Mobile review widget improvements */
  .single-product .stamped-summary {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    padding: 15px !important;
    margin: 20px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .single-product .summary-rating {
    grid-template-columns: 50px 1fr 25px !important;
    gap: 6px !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .single-product .stamped-review {
    margin-bottom: 15px !important;
    padding: 12px !important;
    border-radius: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .single-product .stamped-review-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
  }

  .single-product .stamped-review .created {
    margin-left: 0 !important;
    order: -1 !important;
    font-size: 12px !important;
  }

  .single-product .stamped-review-content-body {
    font-size: 13px !important;
    line-height: 1.4 !important;
    padding: 10px 0 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }

  .single-product .stamped-review-header-title {
    font-size: 16px !important;
    margin-bottom: 8px !important;
  }

  .single-product .related.products .products {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 20px !important;
  }

  .single-product .related.products .products li.product {
    min-height: 350px !important;
  }

  .single-product
    .related.products
    .products
    li.product
    .astra-shop-thumbnail-wrap
    img {
    height: 200px !important;
  }

  /* Mobile accordion improvements */
  .single-product .eo-product-accordion {
    margin: 30px 0 !important;
  }

  .single-product .eo-accordion-header {
    padding: 16px 20px !important;
  }

  .single-product .eo-accordion-header h3 {
    font-size: 1.1rem !important;
  }

  .single-product .eo-accordion-inner {
    padding: 20px !important;
  }

  /* Mobile stamped widget container */
  .single-product #stamped-main-widget {
    padding: 15px !important;
    margin: 20px 0 !important;
    border-radius: 8px !important;
  }

  .single-product #stamped-main-widget .stamped-container {
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .single-product .woocommerce-tabs .tabs {
    flex-direction: column !important;
  }

  .single-product .woocommerce-tabs .tabs li a {
    padding: 15px 20px !important;
    border-bottom: 1px solid var(--border-light) !important;
  }

  .single-product .woocommerce-tabs .woocommerce-Tabs-panel {
    padding: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
  }
}

@media (max-width: 480px) {
  :root {
    --product-info-padding: 15px;
    --section-spacing: 25px;
    --element-spacing: 12px;
  }

  /* CRITICAL: Extra small mobile image fixes */
  .single-product .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: 320px !important;
    max-height: 320px !important;
    min-height: 250px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
  }

  .single-product .woocommerce-product-gallery__image[style] {
    height: 320px !important;
    min-height: 320px !important;
  }

  .single-product .flex-viewport {
    height: 320px !important;
    min-height: 320px !important;
  }

  .single-product .woocommerce-product-gallery__wrapper {
    height: 320px !important;
    min-height: 320px !important;
  }

  /* Extra small mobile review fixes */
  .single-product .stamped-summary {
    padding: 15px 10px !important;
  }

  .single-product .stamped-review {
    padding: 12px !important;
    font-size: 13px !important;
  }

  .single-product .stamped-review-header {
    gap: 8px !important;
  }

  .single-product .stamped-review-content-body {
    font-size: 13px !important;
    padding: 10px 0 !important;
  }

  .single-product .ast-woocommerce-container {
    padding: 0 10px !important;
  }

  .single-product #product-88,
  .single-product .product {
    padding: 15px !important;
    margin-bottom: 25px !important;
    gap: 20px !important;
  }

  .single-product .product_title,
  .single-product .entry-title.product_title {
    font-size: 1.6rem !important;
  }

  .single-product .summary .cart {
    padding: 15px !important;
  }

  .single-product .woocommerce-product-details__short-description {
    padding: 15px !important;
  }

  .single-product .eo-custom-fields {
    padding: 15px !important;
  }

  .single-product .woocommerce-tabs {
    margin: 20px 0 !important;
  }

  /* Fix mobile review widget overflow and spacing */
  .single-product .stamped-badge {
    font-size: 12px !important;
    padding: 4px 8px !important;
  }

  .single-product .stamped-review-header-starratings {
    font-size: 14px !important;
    margin: 6px 0 !important;
  }

  .single-product .stamped-summary-actions-newreview {
    padding: 10px 20px !important;
    font-size: 14px !important;
    margin-top: 15px !important;
  }

  .single-product #stamped-main-widget {
    padding: 20px !important;
    margin: 20px 0 !important;
  }

  .single-product .related.products {
    padding: 20px !important;
    margin: 20px 0 !important;
  }

  .single-product .related.products .products {
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
  }

  .single-product .related.products .products li.product {
    min-height: 320px !important;
  }

  .single-product
    .related.products
    .products
    li.product
    .astra-shop-summary-wrap {
    padding: 15px !important;
  }

  .single-product
    .related.products
    .products
    li.product
    .astra-shop-thumbnail-wrap
    img {
    height: 180px !important;
  }

  .single-product
    .related.products
    .products
    li.product
    .woocommerce-loop-product__title {
    font-size: 14px !important;
    min-height: 40px !important;
  }
}

/*==============================================================================
  LOADING STATES & ANIMATIONS
==============================================================================*/
.single-product .product {
  animation: fadeInUp 0.6s ease-out !important;
}

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

.single-product .woocommerce-tabs,
.single-product #stamped-main-widget,
.single-product .related.products {
  animation: fadeIn 0.8s ease-out !important;
  animation-delay: 0.2s !important;
  animation-fill-mode: both !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/*==============================================================================
  UX OPTIMIZATION & PERFORMANCE
==============================================================================*/

/* Optimize render performance */
.single-product .product {
  contain: layout style paint !important;
}

/* Smooth scrolling for internal links */
.single-product .woocommerce-tabs .tabs a[href^="#"] {
  scroll-behavior: smooth !important;
}

/* Loading state for images */
.single-product .woocommerce-product-gallery img {
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  ) !important;
  background-size: 200% 100% !important;
  animation: loading 1.5s infinite linear !important;
}

.single-product .woocommerce-product-gallery img[src] {
  background: none !important;
  animation: none !important;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Enhance button feedback */
.single-product .single_add_to_cart_button {
  position: relative !important;
  overflow: hidden !important;
}

.single-product .single_add_to_cart_button::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  ) !important;
  transition: left 0.5s !important;
}

.single-product .single_add_to_cart_button:hover::before {
  left: 100% !important;
}

/* Optimize quantity selector feedback */
.single-product .quantity input.qty {
  transition: all 0.2s ease !important;
}

.single-product .quantity input.qty:focus {
  transform: scale(1.02) !important;
  background: rgba(255, 255, 255, 0.95) !important;
}

/* Visual hierarchy improvements */
.single-product .summary > * {
  opacity: 1 !important;
  animation: fadeInSequence 0.6s ease-out forwards !important;
}

.single-product .summary > *:nth-child(1) {
  animation-delay: 0.1s !important;
}
.single-product .summary > *:nth-child(2) {
  animation-delay: 0.2s !important;
}
.single-product .summary > *:nth-child(3) {
  animation-delay: 0.3s !important;
}
.single-product .summary > *:nth-child(4) {
  animation-delay: 0.4s !important;
}
.single-product .summary > *:nth-child(5) {
  animation-delay: 0.5s !important;
}

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

/*==============================================================================
  ACCORDION JAVASCRIPT FUNCTIONALITY
==============================================================================*/

/* Auto-open first accordion by default */
.single-product .eo-accordion-item:first-child .eo-accordion-header {
  background: rgba(215, 4, 15, 0.05) !important;
}

/* Removed: This rule prevented the first accordion from closing */

.single-product
  .eo-accordion-item:first-child
  .eo-accordion-header[aria-expanded="false"]
  .eo-accordion-icon {
  transform: rotate(45deg) !important;
}

/*==============================================================================
  ACCESSIBILITY ENHANCEMENTS
==============================================================================*/
.single-product .single_add_to_cart_button:focus,
.single-product .stamped-summary-actions-newreview:focus {
  outline: 2px solid var(--primary-color) !important;
  outline-offset: 2px !important;
}

.single-product .woocommerce-tabs .tabs li a:focus {
  outline: 2px solid var(--primary-color) !important;
  outline-offset: -2px !important;
}

/* High contrast support */
@media (prefers-contrast: high) {
  .single-product .product,
  .single-product .woocommerce-tabs,
  .single-product #stamped-main-widget,
  .single-product .related.products {
    border-color: #000 !important;
  }

  .single-product .stamped-review {
    border-color: #000 !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .single-product .product,
  .single-product .woocommerce-tabs,
  .single-product #stamped-main-widget,
  .single-product .related.products,
  .single-product .woocommerce-product-gallery__image img,
  .single-product .single_add_to_cart_button,
  .single-product .summary > *,
  .single-product .woocommerce-product-gallery img,
  .single-product .quantity input.qty {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .single-product .single_add_to_cart_button::before {
    display: none !important;
  }
}
/* ==============================================================================
   CRITICAL GALLERY FIXES - Add to your CSS
   ============================================================================== */

/* 1. FORCE MAIN IMAGE VISIBILITY - Override ALL FlexSlider inline styles */
.single-product .woocommerce-product-gallery__image[style] {
  width: 100% !important;
  height: auto !important;
  min-height: 400px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  position: relative !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  transition: none !important;
}

/* 2. FORCE FLEXSLIDER WRAPPER VISIBILITY */
.single-product .woocommerce-product-gallery .flex-viewport[style] {
  height: auto !important;
  min-height: 400px !important;
  max-height: none !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  width: 100% !important;
}

/* 3. FORCE GALLERY WRAPPER PROPER DISPLAY */
.single-product .woocommerce-product-gallery__wrapper[style] {
  width: 100% !important;
  height: auto !important;
  min-height: 400px !important;
  transform: none !important;
  transition: none !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 4. ENSURE MAIN IMAGE IS VISIBLE AND PROPERLY SIZED */
.single-product .woocommerce-product-gallery__image img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 450px !important;
  min-height: 200px !important;
  object-fit: contain !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 auto !important;
  border-radius: 8px !important;
}

/* 5. FIX DUPLICATE GALLERY - Hide the list-style thumbnail navigation that appears below */
.single-product .woocommerce-product-gallery ol.flex-control-nav {
  display: none !important;
}

/* 6. HIDE ANY DUPLICATE GALLERY CONTAINERS */
.single-product
  .woocommerce-product-gallery
  > div:not(.flex-viewport):not(.woocommerce-product-gallery__trigger) {
  display: none !important;
}

/* 7. ENSURE ONLY ONE GALLERY SHOWS - Hide extra gallery lists */
.single-product .woocommerce-product-gallery div[data-columns] {
  display: none !important;
}

/* 8. Alternative: Hide secondary thumbnail gallery if it exists */
.single-product .woocommerce-product-gallery .flex-control-thumbs {
  display: none !important;
}

/* 9. MOBILE SPECIFIC FIXES */
@media (max-width: 768px) {
  .single-product .woocommerce-product-gallery__image[style] {
    height: 350px !important;
    min-height: 350px !important;
  }

  .single-product .woocommerce-product-gallery .flex-viewport[style] {
    height: 350px !important;
    min-height: 350px !important;
  }

  .single-product .woocommerce-product-gallery__wrapper[style] {
    height: 350px !important;
    min-height: 350px !important;
  }
}

/* 10. FORCE SHOW ACTIVE SLIDE ONLY */
.single-product .woocommerce-product-gallery__image:not(.flex-active-slide) {
  display: none !important;
}

.single-product .woocommerce-product-gallery__image.flex-active-slide {
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 11. DISABLE FLEXSLIDER TRANSFORMATIONS */
.single-product .flex-container .slides > li {
  display: none !important;
}

.single-product .flex-container .slides > li.flex-active-slide {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

/* 12. BRUTE FORCE VISIBILITY FIX */
.single-product .woocommerce-product-gallery * {
  visibility: visible !important;
  opacity: 1 !important;
}
