/**
 * WooCommerce Custom Styling Overrides
 * Custom Bootstrap-based styling for WooCommerce product pages
 */

/* ==========================================================================
   Clean Product Page Structure
   ========================================================================== */

/* Ensure clean structure without WordPress block wrappers */
.single-product .site-main,
.single-product .entry-content,
.single-product article {
  background: transparent;
  margin: 0;
  padding: 0;
  max-width: none;
  width: auto;
}

/* Clean product page wrapper */
.product-page-wrapper {
  padding: 2rem 0;
}

.single-product-container {
  background: transparent;
}

/* ==========================================================================
   Product Page Layout
   ========================================================================== */

.woocommerce-product-page {
  background-color: #f8f9fa;
}

.product-images-wrapper {
  position: sticky;
  top: 20px;
}

.product-summary-wrapper {
  padding-left: 2rem;
}

@media (max-width: 991px) {
  .product-summary-wrapper {
    padding-left: 0;
    margin-top: 2rem;
  }
}

/* ==========================================================================
   Custom Product Gallery (Swiper-based)
   ========================================================================== */

/* Hide default WooCommerce gallery */
.woocommerce-product-gallery {
  display: none !important;
}

/* Custom gallery styles */
.custom-product-gallery {
  position: relative;
  margin-bottom: 1rem;
}

.gallery-main-swiper {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-image-container {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-image-container a {
  height: 100%;
}

.gallery-main-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.3s ease;
  border-radius: 10px;
}

.gallery-thumbs-swiper {
  margin-top: 1rem;
}

.thumbnail-container {
  width: 100%;
  aspect-ratio: 1;
  background: #f8f9fa;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.thumbnail-container:hover {
  border-color: var(--primary);
}

.thumbnail-container.active {
  border-color: var(--primary);
}

.gallery-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fix thumbnail width layout shift on load - work with Swiper's natural behavior */
.gallery-thumbs-swiper {
  overflow: hidden;
}

.gallery-thumbs-swiper .swiper-wrapper {
  display: flex;
  width: 100%;
}

.gallery-thumbs-swiper .swiper-slide {
  flex-shrink: 0;
  /* Let Swiper handle the width calculation naturally */
  width: auto;
}

/* Ensure thumbnails don't expand before Swiper initializes */
.gallery-thumbs-swiper:not(.swiper-initialized) .swiper-slide {
  width: calc(20% - 8px);
  margin-right: 10px;
}

.gallery-thumbs-swiper:not(.swiper-initialized) .swiper-slide:last-child {
  margin-right: 0;
}

@media (max-width: 1024px) {
  .gallery-thumbs-swiper:not(.swiper-initialized) .swiper-slide {
    width: calc(25% - 7.5px);
  }
}

@media (max-width: 768px) {
  .gallery-thumbs-swiper:not(.swiper-initialized) .swiper-slide {
    width: calc(33.333% - 6.67px);
  }
}

@media (max-width: 320px) {
  .gallery-thumbs-swiper:not(.swiper-initialized) .swiper-slide {
    width: calc(33.333% - 6.67px);
  }
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.9);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 16px;
  font-weight: 700;
}

.gslide-media.gslide-image {
  background: transparent !important;
  box-shadow: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-image-container {
    height: 300px;
  }

  .product-rating {
    justify-content: center;
  }
}

/* Custom Lightbox */
.custom-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.custom-lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

/* ==========================================================================
   Product Title & Meta
   ========================================================================== */

.product_title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.woocommerce-product-rating {
  margin-bottom: 1.5rem;
}

.star-rating {
  color: #ffc107;
}

.woocommerce-review-link {
  color: #6c757d;
  text-decoration: none;
  font-size: 0.9rem;
}

.woocommerce-review-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ==========================================================================
   Product Price
   ========================================================================== */

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.price del {
  color: #999;
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.price ins {
  text-decoration: none;
  color: var(--primary);
}

/* ==========================================================================
   Product Variations & Swatches
   ========================================================================== */

.product-variations {
  box-shadow: none;
  margin-bottom: 2rem;
}

.variation-group {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.variation-group:last-child {
  border-bottom: none;
}

.variation-label {
  font-size: 1rem;
  color: rgba(65, 64, 66, 0.4);
  margin-bottom: 2rem;
}

.variation-options {
  margin-bottom: 0.5rem;
}

/* Swatch Styling */
.swatch-options {
  gap: 0.75rem;
}

/* Flex layout for color and image swatches */
.swatch-options.swatch-color,
.swatch-options.swatch-image {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

.swatch-option {
  margin: 0;
  cursor: pointer;
  position: relative;
}

/* Color swatch flex items with square ratio - 25% width (4 per row) */
.swatch-color-option {
  flex: 0 1 calc(20% - 0.4rem); /* 25% minus gap compensation */
  min-width: 40px;
  aspect-ratio: 1;
}

.swatch-color-display {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 2px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease;
  position: relative;
}

.swatch-color-option .swatch-radio-indicator {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 18px;
  height: 18px;
  z-index: 2;
  transition: all 0.3s ease;
}

.swatch-color-option .swatch-radio-indicator svg {
  width: 100%;
  height: 100%;
}

.swatch-color-option .swatch-radio-indicator .radio-circle {
  fill: transparent;
  stroke: #ddd;
  stroke-width: 2;
  transform: scale(1);
  transform-origin: center;
  transition: all 0.3s ease;
}

.swatch-color-option .swatch-radio-indicator .radio-fill {
  fill: var(--primary);
  transform: scale(0);
  transform-origin: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.swatch-color-option .swatch-radio-indicator .radio-tick {
  opacity: 0;
  transition: opacity 0.2s ease 0.1s;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Image swatch flex items with square ratio - 25% width (4 per row) */
.swatch-image-option {
  flex: 0 1 calc(25% - 0.375rem); /* 25% minus gap compensation */
  min-width: 50px;
  aspect-ratio: 1;
  position: relative;
}

.swatch-image-display {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 2px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease;
  overflow: hidden;
  position: relative;
  padding: 0 0 1.5em 0;
}

.swatch-image-option .swatch-radio-indicator {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 18px;
  height: 18px;
  z-index: 2;
  transition: all 0.3s ease;
}

.swatch-image-option .swatch-radio-indicator svg {
  width: 100%;
  height: 100%;
}

.swatch-image-option .swatch-radio-indicator .radio-circle {
  fill: transparent;
  stroke: #ddd;
  stroke-width: 2;
  transform: scale(1);
  transform-origin: center;
  transition: all 0.3s ease;
}

.swatch-image-option .swatch-radio-indicator .radio-fill {
  fill: var(--primary);
  transform: scale(0);
  transform-origin: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.swatch-image-option .swatch-radio-indicator .radio-tick {
  opacity: 0;
  transition: opacity 0.2s ease 0.1s;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.swatch-image-inner {
  flex: 1;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 6px;
}

.swatch-image-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.2rem 1rem;
  color: black;
}

.swatch-option input[type="radio"] {
  display: none;
}

/* Color Swatches */
.swatch-color-display {
  width: 100% !important;
  height: 100% !important;
  transition: all 0.2s ease;
  border: 1px solid #ddd !important;
}

.swatch-option input:checked + .swatch-color-display,
.swatch-color-display:hover {
  border-color: var(--primary) !important;
}

.swatch-option input:checked ~ .swatch-radio-indicator .radio-circle {
  stroke: var(--primary);
}

.swatch-option input:checked ~ .swatch-radio-indicator .radio-fill {
  transform: scale(1.3);
}

.swatch-option input:checked ~ .swatch-radio-indicator .radio-tick {
  opacity: 1;
}

/* Image Swatches */
.swatch-image-display {
  width: 100% !important;
  height: 100% !important;
  transition: all 0.2s ease;
  border: 1px solid #ddd !important;
}

.swatch-option input:checked + .swatch-image-display,
.swatch-image-display:hover {
  border-color: var(--primary) !important;
}

/* Label Swatches */
.swatch-label-display {
  transition: all 0.2s ease;
  border: 1px solid rgba(65, 64, 66, 0.3) !important;
  background: transparent;
  color: black;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
  text-align: center;
  cursor: pointer;
}

.swatch-option input:checked + .swatch-label-display,
.swatch-label-display:hover {
  border-color: var(--primary) !important;
}

/* Reset Variations */
.reset-variations-wrapper {
  display: none;
}

.reset_variations {
  font-size: 0.9rem;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

/* Clear Selection Link Styling */
.clear-selection-link {
  color: #6c757d;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  padding-bottom: 2px;
}

.clear-selection-link:hover {
  color: var(--primary);
  text-decoration: none;
  border-bottom-color: var(--primary);
}

.clear-selection-link i {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.clear-selection-link:hover i {
  transform: rotate(-15deg);
}

.clear-selection-text {
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s ease;
}

.clear-selection-link:hover .clear-selection-text {
  text-decoration-color: var(--primary);
}

/* ==========================================================================
   Add to Cart/Quote Section
   ========================================================================== */

.single_variation_wrap {
  margin-bottom: 2rem;
}

.single_variation {
  margin-bottom: 1rem;
}

.woocommerce-variation-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Force price to be visible when it has content */
.woocommerce-variation-price:not(:empty) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.woocommerce-variation-description {
  color: #666;
  margin-bottom: 1rem;
}

.woocommerce-variation-availability {
  margin-bottom: 1rem;
}

/* WooCommerce Native Quantity Input Styling */
.quantity {
  display: inline-flex;
  align-items: center;
  margin-right: 1rem;
  position: relative;
}

.quantity input[type="number"] {
  width: 80px; /* Increased width to accommodate spin buttons */
  height: 38px;
  text-align: center;
  border: 1px solid var(--primary);
  border-radius: 0.25rem;
  padding: 0.375rem 0.5rem;
  font-size: 0.875rem;
  /* -moz-appearance: textfield; Firefox - removed to show spin buttons */
}

/* Force display of native spin buttons for quantity input */
.quantity input[type="number"]::-webkit-inner-spin-button,
.quantity input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: inner-spin-button !important;
  appearance: inner-spin-button !important;
  opacity: 1 !important;
  height: 20px;
  width: 20px;
  margin: 0;
}

.quantity input[type="number"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 124, 186, 0.25);
  outline: none;
}

/* Add to Cart/Quote Button */
/* .single_add_to_cart_button,
.add-to-quote-btn {
  background: var(--primary);
  border: none;
  color: white;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.single_add_to_cart_button:hover,
.add-to-quote-btn:hover {
  background: #005a87;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 124, 186, 0.3);
} */

.single_add_to_cart_button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   Product Features & Info
   ========================================================================== */

.bracket-pricing-info {
  background: #fff;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.bracket-pricing-info h6 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.pricing-tier {
  padding: 0.5rem;
  border-bottom: 1px solid #f1f3f4;
}

.pricing-tier:last-child {
  border-bottom: none;
}

.tier-quantity {
  color: #666;
  font-size: 0.95rem;
}

.tier-price {
  color: var(--primary);
  font-size: 1.1rem;
}

/* ==========================================================================
   Product Content (LiveCanvas)
   ========================================================================== */

/* .product-additional-content h1,
.product-additional-content h2,
.product-additional-content h3,
.product-additional-content h4,
.product-additional-content h5,
.product-additional-content h6 {
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.product-additional-content h1:first-child,
.product-additional-content h2:first-child,
.product-additional-content h3:first-child {
    margin-top: 0;
} */

/* ==========================================================================
   Product Tabs & Related
   ========================================================================== */

.woocommerce-tabs {
  margin-top: 3rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.wc-tabs {
  border-bottom: 1px solid #e9ecef;
  padding: 0 1.5rem;
  margin: 0;
  list-style: none;
  display: flex;
}

.wc-tabs li {
  margin: 0;
  padding: 0;
}

.wc-tabs li a {
  display: block;
  padding: 1rem 1.5rem;
  color: #666;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.wc-tabs li.active a,
.wc-tabs li a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.wc-tab {
  padding: 2rem 1.5rem;
}

/* ==========================================================================
   Variation Accessories/Add-ons - Same as Addons
   ========================================================================== */

.variation-accessories {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.variation-accessories .woocommerce-Price-amount.amount {
  font-size: 1rem;
}

.variation-accessories.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.variation-accessories.loading {
  display: block;
  opacity: 0.6;
  transform: translateY(10px);
}

.accessories-title {
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.accessories-title i {
  color: var(--primary);
}

.accessories-grid {
  gap: 0.5rem;
}

.accessory-item {
  flex: 0 1 calc(25% - 0.375rem); /* Match global swatch width */
  min-width: 50px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.accessory-swatch {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 0.75rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
  margin-bottom: 0.5rem;
}

.accessory-swatch:hover {
  border-color: var(--primary);
}

.accessory-swatch.selected {
  border-color: var(--primary);
}

.accessory-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accessory-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.accessory-name {
  line-height: 1.3;
  margin: 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: black;
}

.accessory-price {
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0.25rem;
}

.accessories-loading {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.accessories-loading .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.bracket-pricing-loading {
  text-align: center;
  padding: 1rem;
  color: #6c757d;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.bracket-pricing-loading .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Responsive accessories */
@media (max-width: 768px) {
  .accessory-item {
    flex: 0 1 calc(25% - 0.375rem);
    min-width: 35px;
  }

  .accessory-swatch {
    padding: 0.5rem;
  }

  /* .accessory-name {
    font-size: 0.8rem;
  } */
}

@media (max-width: 480px) {
  .accessory-item {
    flex: 0 1 calc(50% - 0.25rem);
    min-width: 45px;
  }

  /* .accessory-name {
    font-size: 0.75rem;
  } */
}

/* ==========================================================================
   WooCommerce Dropdown and Variation Display
   ========================================================================== */

/* Hide WooCommerce dropdown wrapper */
.wc-dropdown-wrapper {
  display: none !important;
}

/* Initially hide single variation until selection is made */
.single_variation {
  display: none;
}

.single_variation.show {
  display: block;
}

/* Ensure only the first variation display is shown to prevent duplicates - REMOVED */

/* Force only the first variation to be visible when WooCommerce shows variations - REMOVED */

/* ==========================================================================
   Global Quote System
   ========================================================================== */

/* Hide Add to Cart button immediately to prevent flash */
.single_add_to_cart_button {
  display: none !important;
}

/* Show quote button instead */
.add-to-quote-btn {
  display: block !important;
}

/* Disabled quote button styling */
.add-to-quote-btn.disabled,
.add-to-quote-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #6c757d !important;
  border-color: #6c757d !important;
}

/* Quote button styling */
/* .add-to-quote-btn {
  background-color: var(--primary, #007cba);
  border-color: var(--primary, #007cba);
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
}

.add-to-quote-btn:hover {
  background-color: var(--primary-dark, #005a87);
  border-color: var(--primary-dark, #005a87);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.add-to-quote-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
} */

/* Quote offcanvas styling */
#globalQuoteOffcanvas .quote-items-container {
  overflow-y: auto;
}

/* Quote quantity inputs */
.quote-quantity-input {
  width: 60px !important;
  height: 32px !important;
  font-size: 0.875rem !important;
  text-align: center !important;
  border: 1px solid var(--primary) !important;
  border-radius: 0.25rem !important;
}

.quote-quantity-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 124, 186, 0.25) !important;
  outline: none !important;
}

/* Quote subtotal section */
.quote-subtotal-section {
  border: 1px solid #dee2e6;
  background-color: #f8f9fa !important;
}

.quote-subtotal-section .fw-bold {
  font-size: 1.1rem;
}

/* Quote item price info */
.price-info .unit-price {
  font-size: 0.9rem;
}

.price-info .total-price {
  font-size: 0.8rem;
}

/* Quote clear section */
.quote-clear-section {
  padding-top: 1rem;
}

.quote-actions-section {
  padding-top: 1rem;
}

#globalQuoteOffcanvas .remove-quote-item {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

#globalQuoteOffcanvas .remove-quote-item:hover {
  opacity: 1;
  color: #dc3545 !important;
}

/* Contact form styling within quote - Match landing page styling */
#globalQuoteForm .wpcf7-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#globalQuoteForm .wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 0;
}

/* #globalQuoteForm input,
#globalQuoteForm select,
#globalQuoteForm textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 0;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  font-size: 0.9rem;
}

#globalQuoteForm .wpcf7-submit {
  width: 100%;
  background-color: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: var(--bs-border-radius);
  padding: 0.75rem 1rem;
  font-weight: 500;
  margin-top: 0;
  transition: background-color 0.3s ease;
}

#globalQuoteForm .wpcf7-submit:hover {
  background-color: #e55e00;
} */

#globalQuoteForm .wpcf7-response-output {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.375rem;
}

#globalQuoteForm .wpcf7-mail-sent-ok {
  background-color: #d1edff;
  color: #0c5460;
  border: 1px solid #b8daff;
}

#globalQuoteForm .wpcf7-validation-errors,
#globalQuoteForm .wpcf7-mail-sent-ng {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Match landing page quote form styling */
.quote-form-container form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 1rem;
}

.quote-form-container form.sent .row {
  display: none;
}

.quote-form-container .wpcf7 form .wpcf7-response-output {
  margin: 0;
  border-radius: var(--bs-border-radius);
  color: var(--bs-white);
}

.quote-form-container .wpcf7 form.sent .wpcf7-response-output {
  background: var(--bs-success);
  border-color: var(--bs-success);
}

/* Request button styling to match landing page */
.quote-form-container [data-bs-target="#globalQuoteForm"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.quote-form-container [data-bs-target="#globalQuoteForm"] svg {
  transition: transform 0.3s ease;
}

.quote-form-container
  [data-bs-target="#globalQuoteForm"][aria-expanded="true"]
  svg {
  transform: rotate(90deg);
}

.quote-form-container
  [data-bs-target="#globalQuoteForm"][aria-expanded="true"] {
  --bs-btn-bg: transparent;
  --bs-btn-color: var(--bs-dark);
  --bs-btn-border-color: var(--bs-dark);
  font-size: 0;
  padding: 0;
  background: transparent;
  border-color: var(--bs-dark);
}

.quote-form-container
  [data-bs-target="#globalQuoteForm"][aria-expanded="true"]:hover {
  background: var(--bs-primary);
}

/* Global quote form spinner styling to match landing page */
#globalQuoteForm .wpcf7-spinner {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
}

/* Quote button replacement animation */
.add-to-quote-btn.btn-success {
  background-color: #28a745;
  border-color: #28a745;
}

/* Responsive quote offcanvas */
@media (max-width: 768px) {
  #globalQuoteOffcanvas {
    width: 100% !important;
  }

  #globalQuoteOffcanvas .quote-items-container {
    max-height: 50vh;
  }
}

/* ==========================================================================
   Product Description After Add-to-Cart
   ========================================================================== */

.woocommerce-product-details__short-description {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
  color: #6c757d;
  line-height: 1.6;
}

.woocommerce-product-details__short-description h1,
.woocommerce-product-details__short-description h2,
.woocommerce-product-details__short-description h3,
.woocommerce-product-details__short-description h4,
.woocommerce-product-details__short-description h5,
.woocommerce-product-details__short-description h6 {
  color: #495057;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.woocommerce-product-details__short-description p {
  margin-bottom: 1rem;
}

.woocommerce-product-details__short-description ul,
.woocommerce-product-details__short-description ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.woocommerce-product-details__short-description li {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
  .product_title {
    font-size: 2rem;
  }

  .price {
    font-size: 1.5rem;
  }

  /* .product-variations,
  .single_variation_wrap,
  .product-features {
    padding: 1rem;
  } */

  .swatch-options {
    gap: 0.5rem;
  }

  /* Responsive adjustments for flex swatches - maintain 25% but allow smaller min-width */
  .swatch-color-option {
    flex: 0 1 calc(25% - 0.375rem);
    min-width: 30px;
  }

  .swatch-image-option {
    flex: 0 1 calc(25% - 0.375rem);
    min-width: 35px;
  }

  /* .swatch-image-label {
    font-size: 0.6rem;
    padding: 3px 1px;
  } */
}

/* Extra small screens - 2 swatches per row, 3 thumbnails per row */
@media (max-width: 480px) {
  .swatch-color-option {
    flex: 0 1 calc(50% - 0.25rem);
    min-width: 40px;
  }

  .swatch-image-option {
    flex: 0 1 calc(50% - 0.25rem);
    min-width: 45px;
  }

  /* .swatch-image-label {
    font-size: 0.65rem;
    padding: 4px 2px;
  } */

  .quantity-quote-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .quantity {
    margin-right: 0;
    text-align: center;
  }

  .add-to-quote-btn,
  .single_add_to_cart_button {
    width: 100%;
    padding: 1rem;
  }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-primary {
  color: var(--primary) !important;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:active {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover path {
  fill: white;
}

/* Active pricing tier highlighting */
.pricing-tier.active-tier {
  background-color: var(--bs-light);
  border-color: var(--primary);
  border-radius: 4px;
}

.pricing-tier.active-tier .tier-price {
  font-weight: 700;
  color: #005a87;
}

/* Selected swatch styling */
.swatch-option.selected .swatch-color-display,
.swatch-option.selected .swatch-image-display {
  border-color: rgba(65, 64, 66, 0.3) !important;
}

.swatch-option.selected .swatch-label-display {
  border-color: var(--primary);
}

.swatch-option.selected .swatch-radio-indicator .radio-circle {
  stroke: var(--primary);
}

.swatch-option.selected .swatch-radio-indicator .radio-fill {
  transform: scale(1.3);
}

.swatch-option.selected .swatch-radio-indicator .radio-tick {
  opacity: 1;
}

/* Disabled swatch styling */
.swatch-option.disabled {
  opacity: 0.3;
  pointer-events: none;
  cursor: not-allowed;
}

.swatch-option.disabled .swatch-color-display,
.swatch-option.disabled .swatch-image-display,
.swatch-option.disabled .swatch-label-display {
  filter: grayscale(50%);
  opacity: 0.5;
}

.swatch-option.disabled .swatch-label-display {
  background: #ccc;
  color: #999;
  border-color: #ccc;
}

/* Hover effects */
.swatch-option:not(.disabled):hover .swatch-color-display,
.swatch-option:not(.disabled):hover .swatch-image-display,
.swatch-option:not(.disabled):hover .swatch-label-display {
  border-color: var(--primary) !important;
  transition: all 0.2s ease;
}

/* Add-to-cart button disabled state */
.single_add_to_cart_button.disabled {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  cursor: not-allowed !important;
  opacity: 0.5 !important;
}

.single_add_to_cart_button.disabled:hover {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  transform: none !important;
}

/* Remove step-based classes - not needed anymore */

/* Hide WooCommerce default elements we're replacing */
.woocommerce div.product form.cart .variations {
  display: none;
}

.woocommerce div.product form.cart table.variations {
  display: none;
}

/* Single variation wrap - standard layout */
.single_variation_wrap {
  display: block;
}

/* Smooth transitions for variation elements */
.single_variation {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.single_variation.show {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth scrolling behavior */
html {
  scroll-behavior: smooth;
}

/* Clear selection link enhancement - removed old button styling */

/* WooCommerce quantity inputs are now visible and styled */

/* Loading states */
.variation-loading {
  opacity: 0.6;
  pointer-events: none;
}

.variation-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Variable Product "From" Price Styling
   ========================================================================== */

/* Variable product "from" price styling */
.price-from {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(65, 64, 66, 0.4);
}

.price-from .tax-note {
  font-size: 1rem;
  font-weight: 500;
  color: #414042;
  margin-left: 0.5rem;
}

.woocommerce-Price-amount.amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* Add-to-cart button disabled state */
.single_add_to_cart_button:disabled,
.single_add_to_cart_button.disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.additional-products {
  padding-bottom: 1rem;
}

/* Addons Styles - Image Swatches */
.additional-products-grid {
  gap: 0.5rem;
}

.additional-product-item {
  flex: 0 1 calc(25% - 0.375rem); /* Match global swatch width */
  min-width: 50px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.additional-product-swatch {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 0.75rem;
  background: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
  margin-bottom: 0.5rem;
}

.additional-product-swatch:hover {
  border-color: var(--primary);
}

.additional-product-swatch.selected {
  border-color: var(--primary);
  background: rgba(0, 124, 186, 0.05);
}

.additional-product-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.additional-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.additional-product-name {
  line-height: 1.3;
  margin: 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: black;
}

/* Button styling removed - entire swatch is now clickable */

/* Responsive additional products */
@media (max-width: 768px) {
  .additional-product-item {
    flex: 0 1 calc(25% - 0.375rem);
    min-width: 35px;
  }

  .additional-product-swatch {
    padding: 0.5rem;
  }

  /* .additional-product-name {
    font-size: 0.8rem;
  } */
}

@media (max-width: 480px) {
  .additional-product-item {
    flex: 0 1 calc(50% - 0.25rem);
    min-width: 45px;
  }

  .additional-product-name {
    font-size: 1rem;
  }
}

/* Additional Product Modal Styles */
#additionalProductModal .modal-body {
  padding: 20px;
}

#additionalProductModal .modal-dialog {
  max-width: 1025px;
  display: flex;
  align-items: center;
  height: 100%;
}

/* Modal Tier Pricing uses the same styling as main product (.bracket-pricing-info) */

.additional-product-modal-content {
  display: flex;
  gap: 20px;
}

.additional-product-modal-image {
  flex: 0 0 400px;
  align-items: start;
  justify-content: start;
  display: flex;
  margin-bottom: auto;
  position: sticky;
  top: 0;
}

.additional-product-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

@media (max-width: 768px) {

  #additionalProductModal .modal-dialog {
    max-width: 500px;
  }


  .additional-product-modal-content {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .additional-product-modal-image {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: static;
    top: initial;
  }
}

.additional-product-modal-details {
  flex: 1;
}

.additional-product-modal-title {
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.additional-product-modal-price {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.additional-product-modal-variations {
  margin-bottom: 20px;
}

.additional-product-modal-variations .variation-group {
  margin-bottom: 15px;
}

.additional-product-modal-variations .variation-label {
  margin-bottom: 8px;
}

.additional-product-modal-variations .swatch-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Modal Color Swatches - match main product styling */
.additional-product-modal-variations .swatch-color-option {
  flex: 0 1 calc(20% - 0.4rem);
  min-width: 40px;
  aspect-ratio: 1;
}

/* Modal Image Swatches - match main product styling */
.additional-product-modal-variations .swatch-image-option {
  flex: 0 1 calc(25% - 0.375rem);
  min-width: 50px;
  aspect-ratio: 1;
}

/* Modal Label Swatches - match main product styling */
.additional-product-modal-variations .swatch-label-option {
  flex: 0 1 auto;
  min-width: auto;
}

.additional-product-modal-variations .swatch-label-display {
  transition: all 0.2s ease;
  border: 1px solid rgba(65, 64, 66, 0.3) !important;
  background: transparent;
  color: black;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
  text-align: center;
  cursor: pointer;
}

.additional-product-modal-variations
  .swatch-option
  input:checked
  + .swatch-label-display,
.additional-product-modal-variations .swatch-label-display:hover {
  border-color: var(--primary) !important;
}

.additional-product-modal-variations .swatch-option {
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}
/* Removed duplicate modal swatch styling - inherits from main styles */

.additional-products-title {
  font-size: 1rem;
  color: rgba(65, 64, 66, 0.4);
  margin-bottom: 2rem;
}

.accessories-title {
  font-size: 1rem;
  color: rgba(65, 64, 66, 0.4);
  margin-bottom: 2rem;
}

.additional-product-modal-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.additional-product-modal-quantity label {
  font-weight: 600;
  margin: 0;
}

/* Removed old quantity-wrapper styles - now using standard WooCommerce quantity input */

/* Enhanced Modal Styles */
#simpleProductModal .modal-dialog {
  max-width: 800px;
  display: flex;
  align-items: center;
  height: 100%;
}

#additionalProductModal .modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

/* Modal swatch labels inherit main styling */
.additional-product-modal-variations .swatch-label-display {
  font-size: 1rem;
  font-weight: 700;
}

/* Modal Quantity Input - Match Main Product Styling */
.additional-product-modal-quantity .quantity {
  display: inline-flex;
  align-items: center;
  margin-right: 1rem;
  position: relative;
}

.additional-product-modal-quantity .quantity input[type="number"] {
  width: 80px; /* Match main product width */
  height: 38px; /* Match main product height */
  text-align: center;
  border: 1px solid var(--primary);
  border-radius: 0.25rem;
  padding: 0.375rem 0.5rem;
  font-size: 0.875rem;
  /* Show native spin buttons like main product */
}

/* Force display of native spin buttons for modal quantity input */
.additional-product-modal-quantity
  .quantity
  input[type="number"]::-webkit-inner-spin-button,
.additional-product-modal-quantity
  .quantity
  input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: inner-spin-button !important;
  appearance: inner-spin-button !important;
  opacity: 1 !important;
  height: 20px;
  width: 20px;
  margin: 0;
}

.additional-product-modal-quantity .quantity input[type="number"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 124, 186, 0.25);
  outline: none;
}

/* Simple Product Modal Quantity Input - Match Main Product Styling */
#simpleProductModalBody .quantity {
  display: inline-flex;
  align-items: center;
  margin-right: 1rem;
  position: relative;
}

#simpleProductModalBody .quantity input[type="number"] {
  width: 80px; /* Match main product width */
  height: 38px; /* Match main product height */
  text-align: center;
  border: 1px solid var(--primary);
  border-radius: 0.25rem;
  padding: 0.375rem 0.5rem;
  font-size: 0.875rem;
  /* Show native spin buttons like main product */
}

/* Force display of native spin buttons for simple modal quantity input */
#simpleProductModalBody
  .quantity
  input[type="number"]::-webkit-inner-spin-button,
#simpleProductModalBody
  .quantity
  input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: inner-spin-button !important;
  appearance: inner-spin-button !important;
  opacity: 1 !important;
  height: 20px;
  width: 20px;
  margin: 0;
}

#simpleProductModalBody .quantity input[type="number"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 124, 186, 0.25);
  outline: none;
}

#addAdditionalProductToQuote:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#addAdditionalProductToQuote:not(:disabled) {
  background-color: var(--primary);
  border-color: var(--primary);
}

#addAdditionalProductToQuote.btn:disabled {
  background-color: var(--primary);
  border-color: var(--primary);
}

#addAdditionalProductToQuote:not(:disabled):hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

.quote-toggle-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050;
  pointer-events: none; /* Prevent wrapper from interfering with clicks */
}

#fixed-quote-button {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer !important;
  transition: transform 0.3s ease;
  pointer-events: auto; /* Ensure button can be clicked */
  position: relative;
  user-select: none; /* Prevent text selection */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

#fixed-quote-button:hover {
  transform: scale(1.1);
  cursor: pointer !important;
}

#fixed-quote-button:active {
  transform: scale(0.95);
  cursor: pointer !important;
}

#fixed-quote-button:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  cursor: pointer !important;
}

#fixed-quote-button svg {
  pointer-events: none; /* Prevent SVG from interfering with clicks */
}

#fixed-quote-button .quote-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* Prevent badge from interfering with clicks */
  background-color: #dc3545;
  color: white;
  border: 2px solid white;
  font-weight: bold;
}

.quote-form-container {
  width: 400px;
}

@media (max-width: 768px) {
  .quote-form-container {
    width: 100%;
  }
}

/* Additional fixes for fixed quote button */
#fixed-quote-button * {
  pointer-events: none !important;
  cursor: pointer !important;
}

#fixed-quote-button {
  cursor: pointer !important;
  pointer-events: auto !important;
}

/* Ensure no text selection on the button */
#fixed-quote-button,
#fixed-quote-button * {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

/* Prevent any hover effects from interfering */
#fixed-quote-button:hover * {
  cursor: pointer !important;
}

/* Fix offcanvas focus and backdrop issues */
.offcanvas-backdrop {
  z-index: 1040 !important;
}

/* Ensure body returns to normal state after offcanvas closes */
body:not(.offcanvas-open) {
  overflow: auto !important;
  padding-right: 0 !important;
}

/* Fix any lingering focus trap issues */
body.offcanvas-open {
  overflow: hidden;
  padding-right: 0;
}

/* Ensure offcanvas doesn't interfere with other elements */
.offcanvas {
  z-index: 1055;
}

/* Fix any aria-hidden issues */
[aria-hidden="true"]:not(.offcanvas) {
  pointer-events: auto !important;
}

/* Accordion Override - Active State with bg-light */
.accordion-button:not(.collapsed) {
  background-color: transparent !important;
  box-shadow: none !important;
  color: var(--primary) !important;
}

.accordion-body {
  padding-left: 0;
}

.accordion-button {
  font-weight: 700;
  padding-left: 0;
}

/* .accordion-button::after {
  transform: rotate(270deg);
} */

.accordion-button:not(.collapsed)::after {
  transform: rotate(0deg);
}

.accordion-button:hover {
  background-color: transparent !important;
  border-color: transparent !important;
  color: var(--primary) !important;
}

/* Attribute Info Icon Styling */
.attribute-info-icon {
  margin-left: 8px;
  cursor: help;
  color: var(--bs-secondary);
  transition: all 0.2s ease;
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: transparent;
  text-align: center;
  line-height: 18px;
  vertical-align: middle;
}

.attribute-info-icon:hover {
  color: var(--bs-primary);
  border-color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), 0.1);
}

.attribute-info-icon i {
  font-size: 0.7em;
  font-weight: 900;
  display: block;
  line-height: 1;
}

.attribute-info-icon svg path {
  fill: rgba(65, 64, 66, 0.4);
}

/* Hoverable Popover Styling */
.attribute-info-wrapper {
  position: relative;
  display: inline-block;
}

.attribute-info-wrapper .popover {
  max-width: 400px;
  z-index: 1060;
}

.attribute-info-wrapper .popover .popover-body {
  padding: 16px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
  border-radius: 0.375rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.attribute-info-wrapper .popover .popover-arrow {
  display: none;
}

/* Ensure popover stays visible when hovering over it */
.attribute-info-wrapper .popover:hover {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Custom tooltip styling for attribute descriptions */
.tooltip {
  font-size: 0.875rem;
}

.tooltip-inner {
  max-width: 300px;
  text-align: left;
  background-color: var(--bs-dark);
  color: var(--bs-light);
  border-radius: var(--bs-border-radius);
  padding: 12px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
  border-right-color: var(--bs-dark);
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
  border-left-color: var(--bs-dark);
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: var(--bs-dark);
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: var(--bs-dark);
}

.product-features-section .card.card-feature {
  background: #f2f2f2;
  border: none;
}

.card.card-feature {
  background: #f2f2f2;
  border: none;
}

.card.card-feature p {
  font-size: 12px;
}

.product-card-section .card {
  min-height: 500px;
}

.product-card-section .card .card-background {
  object-fit: cover;
}

.product-card-section .card .card-overlay-image {
  background: #000000;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0) 60%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.product-tabs .nav-pills .nav-link {
  background: #414042;
  color: white;
}

.product-tabs .nav-pills .nav-link {
  background: #414042;
  color: white;
}

.product-tabs .nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background: var(--primary);
  color: white;
}

/* ==========================================================================
   Product Tabs Horizontal Scroll
   ========================================================================== */

.nav-container {
  position: relative;
  overflow: hidden;
}

.nav-container .nav-pills {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding: 0 10px 10px 10px;
  margin: 0 -10px -10px -10px;
}

.nav-container .nav-pills::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.nav-container .nav-item {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Fade overlays - only show when there's overflow */
.nav-container-fade-left,
.nav-container-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
  z-index: 15;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-container-fade-left {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 0%,
    transparent 100%
  );
}

.nav-container-fade-right {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 1) 0%,
    transparent 100%
  );
}

/* Show fades when scrolled */
.nav-container.can-scroll-left .nav-container-fade-left,
.nav-container.can-scroll-right .nav-container-fade-right {
  opacity: 1;
  visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container .nav-pills {
    padding: 0 10px 10px 10px;
    margin: 0 -10px -10px -10px;
  }

  .nav-container-fade-left,
  .nav-container-fade-right {
    width: 50px;
  }
}

/* ==========================================================================
   Product Title with Rating
   ========================================================================== */

.product-title-section {
  margin-bottom: 2rem;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-rating .stars-display {
  color: #ffc107;
  font-size: 1rem;
}

.product-rating .rating-text {
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ==========================================================================
   Product Reviews Section - Bootstrap Overrides
   ========================================================================== */

/* Ensure Font Awesome stars display properly */
.stars-display i,
.review-rating i,
.star-rating-star {
  font-family: "Font Awesome 6 Free" !important;
  display: inline-block !important;
}

/* Filled stars */
.stars-display .fas,
.review-rating .fas {
  font-weight: 900 !important;
}

/* Outline stars */
.stars-display .far,
.review-rating .far {
  font-weight: 400 !important;
}

/* Half stars */
.stars-display .fas.fa-star-half-alt,
.review-rating .fas.fa-star-half-alt {
  font-weight: 900 !important;
}

/* Star rating input styling */
.rating-input-section {
  margin-bottom: 1.5rem;
}

.star-rating-input {
  user-select: none;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  gap: 0.25rem;
}

.star-rating-star {
  display: inline-block !important;
  text-align: center;
  line-height: 1;
  transition: all 0.2s ease;
  font-size: 1.5rem !important;
  width: 30px !important;
  height: 30px !important;
  line-height: 30px !important;
  cursor: pointer !important;
  color: #dee2e6 !important;
  visibility: visible !important;
  opacity: 1 !important;
  border: none !important;
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Rating breakdown styling */
.rating-label-container {
  min-width: 120px;
}

.rating-progress {
  height: 8px;
}

.star-rating-star:hover {
  transform: scale(1.1);
  color: #ffc107 !important;
}

.star-rating-star:active {
  transform: scale(0.95);
}

.star-rating-star.selected {
  color: #ffc107 !important;
}

/* Ensure stars are visible and clickable */
.star-rating-input .star-rating-star {
  min-width: 30px !important;
  min-height: 30px !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-size: 1.5rem !important;
}

/* Rating text styling */
.rating-text {
  font-style: italic;
  transition: color 0.3s ease;
  margin-top: 0.5rem;
  display: block;
}

/* Review form enhancements */
.review-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 124, 186, 0.25);
}

.review-form .btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  transition: all 0.3s ease;
}

/* Rating text styling */
.rating-text {
  font-style: italic;
  transition: color 0.3s ease;
}

.review-form .stars {
  display: none;
}

/* ==========================================================================
   Related Products Section - Bootstrap Overrides
   ========================================================================== */

/* Swiper Styling */
.related-products-swiper {
  padding: 1rem 0 3rem 0;
  overflow: hidden;
}

.related-products-swiper .swiper-wrapper {
  padding: 0 1rem;
}

.related-products-swiper .swiper-slide {
  padding: 0 0.5rem;
}

/* Related Product Image Styling */
.related-product-image {
  aspect-ratio: 1;
  background: #f8f9fa;
  overflow: hidden;
}

.related-product-img {
  object-fit: contain;
  transition: transform 0.3s ease;
}

.related-product-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2; /* Standard property for compatibility */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Variation Bracket Pricing */
.variation-bracket-pricing {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.variation-bracket-pricing.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.variation-bracket-pricing.loading {
  display: block;
  opacity: 0.6;
  transform: translateY(10px);
}

/* Quote count hidden state */
.quote-count-hidden {
  display: none;
}

/* Bracket pricing row */
.bracket-pricing-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Swiper Navigation */
.related-products-swiper .swiper-button-next,
.related-products-swiper .swiper-button-prev {
  color: var(--primary);
  background: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.related-products-swiper .swiper-button-next:hover,
.related-products-swiper .swiper-button-prev:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.related-products-swiper .swiper-button-next:after,
.related-products-swiper .swiper-button-prev:after {
  font-size: 16px;
  font-weight: 700;
}

/* Swiper Pagination */
.related-products-swiper .swiper-pagination-bullet {
  background: #dee2e6;
  opacity: 1;
  width: 12px;
  height: 12px;
  margin: 0 4px;
}

.related-products-swiper .swiper-pagination-bullet-active {
  background: var(--primary);
}

/* Product USPs Swiper Styles */
.product-usps-swiper {
  position: relative;
  overflow: hidden;
  padding-right: 50px; /* Space for fade effect */
}

.product-usps-swiper .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.product-usps-swiper .swiper-slide {
  width: auto;
  flex: 0 0 auto;
  height: auto;
  display: flex;
}

.product-usps-swiper .swiper-slide .card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-usps-swiper .swiper-slide .card .card-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fade overlay effect */
.swiper-fade-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
  z-index: 10;
}

.swiper-fade-overlay-right {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.8), transparent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .product-usps-swiper {
    padding-right: 30px;
  }

  .swiper-fade-overlay {
    width: 40px;
  }
}

/* ==========================================================================
   Product Category Archive Page
   ========================================================================== */

/* Category Hero Section */
#category-page .hero-banner {
  position: relative;
  overflow: hidden;
}

#category-page .hero-banner .hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

#category-page .hero-banner p {
  margin: 0;
}

/* Product Archive Grid */
#category-page #products-section .card {
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

#category-page #products-section .card-body {
  display: flex;
  flex-direction: column;
}

#category-page #products-section .card-title {
  min-height: 3rem;
}

#category-page
  #products-section
  .card-body
  > div:has(.woocommerce-Price-amount) {
  margin-top: auto;
}

#category-page h2 {
  position: relative;
}

#category-page h2.underline::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--primary);
  border-radius: 1rem;
}

#category-page .woocommerce-Price-amount.amount {
  font-size: initial;
}

#category-page .form-select {
  min-height: 0;
  padding: 0.25rem 1rem;
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Responsive Category Archive */
@media (max-width: 767px) {
  /* Hide underline on mobile */
  #category-page h2.underline::after {
    display: none;
  }

  #category-page .accessories-section h2 {
    font-size: 1.5rem;
  }

  #category-page #products-section .card-body {
    padding: 1rem;
    text-align: center;
  }

  #category-page #products-section .card-title {
    font-size: 1rem;
  }

  #category-page #products-section .card-title a {
    justify-content: center;
  }

  #category-page #products-section .related-product-description {
    text-align: center;
  }

  /* Center product items on mobile */
  #category-page .product-item-column {
    display: flex;
    justify-content: center;
  }

  #category-page .product-item-column .card {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   Category Filter Sidebar
   ========================================================================== */

#category-page .product-filters {
  position: sticky;
  top: 20px;
  background: var(--bs-white);
  max-height: 90vh;
  overflow: auto;
}

#category-page .product-filters h4 {
  position: sticky;
  top: 0;
  background: var(--bs-white);
  z-index: 10;
  font-size: 1.25rem;
  color: var(--bs-dark);
  margin-bottom: 1rem;
}

#category-page .product-filter-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#category-page .product-filter-list .btn {
  --bs-btn-padding-x: 0;
  --bs-btn-padding-y: 0.25rem;
  --bs-btn-border-color: transparent;
  --bs-btn-active-border-color: transparent;
  --bs-btn-font-weight: 500;
  --bs-btn-active-color: var(--bs-primary);
  position: relative;
  text-align: left;
}

#category-page .product-filter-list .btn .btn-label {
  display: inline-block;
  transition: all 0.3s ease;
  will-change: transform;
  text-align: left;
}

#category-page .product-filter-list .btn::before {
  content: "";
  position: absolute;
  inset: 10% auto 10% 0;
  width: 5px;
  background-color: var(--bs-primary);
  border-radius: var(--bs-border-radius-lg);
  transition: all 0.3s ease;
  transform: scaleY(0);
  transform-origin: bottom;
  will-change: transform;
}

#category-page .product-filter-list .btn-check:checked + .btn .btn-label {
  transform: translateX(15px);
}

#category-page .product-filter-list .btn-check:checked + .btn::before {
  transform: scaleY(1);
}

#category-page .product-item-column {
  transition: all 0.3s ease;
}

/* Fade-in animation for filtered products */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Filter Sidebar */
@media (max-width: 991px) {
  #category-page .product-filters {
    position: static !important;
    margin-bottom: 2rem;
  }

  #category-page .product-filters .card {
    box-shadow: none !important;
  }
}

/* ==========================================================================
   Category Gallery Swiper
   ========================================================================== */

/* Category Gallery positioning context */
.category-gallery-section .container {
  position: relative;
}

/* Category Gallery Swiper */
.category-gallery-swiper {
  padding: 1rem 0 3rem 0;
  overflow: hidden;
}

/* Consistent image aspect ratio */
.category-gallery-swiper .swiper-slide {
  height: auto;
}

.category-gallery-swiper .swiper-slide a {
  display: block;
  position: relative;
  width: 100%;
  padding-bottom: 75%; /* 4:3 aspect ratio */
  overflow: hidden;
  border-radius: 0.375rem;
}

.category-gallery-swiper .swiper-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Swiper Navigation - same as accessories */
.category-gallery-section .swiper-button-next,
.category-gallery-section .swiper-button-prev {
  color: var(--primary);
  background: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: absolute;
  transform: translateY(-50%);
  z-index: 10;
}

.category-gallery-section .swiper-button-next:hover,
.category-gallery-section .swiper-button-prev:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1) translateY(-50%);
}

.category-gallery-section .swiper-button-next:after,
.category-gallery-section .swiper-button-prev:after {
  font-size: 16px;
  font-weight: 700;
}

/* Swiper Pagination - same as accessories */
.category-gallery-swiper .swiper-pagination {
  bottom: 0 !important;
}

.category-gallery-swiper .swiper-pagination-bullet {
  background: #dee2e6;
  opacity: 1;
  width: 12px;
  height: 12px;
  margin: 0 4px;
}

.category-gallery-swiper .swiper-pagination-bullet-active {
  background: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .category-gallery-section .swiper-button-prev {
    left: 0;
  }

  .category-gallery-section .swiper-button-next {
    right: 0;
  }
}

@media (max-width: 480px) {
  .category-gallery-section .swiper-button-next,
  .category-gallery-section .swiper-button-prev {
    width: 36px;
    height: 36px;
  }

  .category-gallery-section .swiper-button-next:after,
  .category-gallery-section .swiper-button-prev:after {
    font-size: 14px;
  }
}

/* Accessories Section positioning context */
#category-page .accessories-section .container {
  position: relative;
}

/* Accessories Swiper Carousel */
#category-page .accessories-swiper {
  padding: 1rem 0 3rem 0;
}

#category-page .accessories-swiper .swiper-wrapper {
  padding: 0;
  margin-bottom: 2rem; /* Space above pagination */
}

#category-page .accessories-swiper .swiper-slide {
  height: auto;
}

/* Swiper Navigation - positioned outside relative to swiper */
#category-page .accessories-section .swiper-button-next,
#category-page .accessories-section .swiper-button-prev {
  color: var(--primary);
  background: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  z-index: 10;
}

#category-page .accessories-section .swiper-button-next:hover,
#category-page .accessories-section .swiper-button-prev:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1) translateY(-50%);
}

#category-page .accessories-section .swiper-button-next:after,
#category-page .accessories-section .swiper-button-prev:after {
  font-size: 16px;
  font-weight: 700;
}

/* Swiper Pagination */
#category-page .accessories-swiper .swiper-pagination {
  bottom: 0 !important;
}

#category-page .accessories-swiper .swiper-pagination-bullet {
  background: #dee2e6;
  opacity: 1;
  width: 12px;
  height: 12px;
  margin: 0 4px;
}

#category-page .accessories-swiper .swiper-pagination-bullet-active {
  background: var(--primary);
}

.global-header ~ .hero-banner.category-page .hendrio-slider-area {
  min-height: 0;
  padding: 14rem 0 7rem;
}

.category-page.hero-banner {
  height: initial;
  min-height: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #category-page .accessories-section .swiper-button-prev {
    left: 0;
  }

  #category-page .accessories-section .swiper-button-next {
    right: 0;
  }
}

@media (max-width: 480px) {
  #category-page .accessories-section .swiper-button-next,
  #category-page .accessories-section .swiper-button-prev {
    width: 36px;
    height: 36px;
  }

  #category-page .accessories-section .swiper-button-next:after,
  #category-page .accessories-section .swiper-button-prev:after {
    font-size: 14px;
  }
}

.gprev,
.gnext {
  display: block !important;
}
