/* ============================================
   PRODUCT UNIFIED STYLES
   Enterprise-Grade Design System for GroKarna
   Consolidated from 6 separate CSS files
   ============================================ */



/* ========== 1. PRODUCT CARDS ========== */
/* Source: product-card-merged.css */

/* =============================================
   MERGED PRODUCT CARD STYLES
   Combines: product-card.css, product-card-fixes.css, 
   and shop-page-product-card-fixes.css
   ============================================= */

/* =============================================
   1. GLOBAL PRODUCT CARD STYLES
   ============================================= */

/* Base Product Card Layout */
.gk-product-card,
.woocommerce ul.products li.product,
.woocommerce .shop-product-grid .product-card,
.shop-page .product-card,
.shop-product-card {
  position: relative !important;
  border: 1px solid #eee !important;
  border-radius: 16px !important;
  padding: 0 !important;
  background: #fff !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  transition: all 0.3s ease !important;
}

.gk-product-card:hover,
.woocommerce ul.products li.product:hover,
.woocommerce .shop-product-grid .product-card:hover,
.shop-page .product-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
  transform: translateY(-2px) !important;
}

/* Ensure proper card width */
.woocommerce ul.products li.product .product-card {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* =============================================
   2. PRODUCT IMAGE STYLES
   ============================================= */

/* Product Image - Edge to Edge */
.gk-product-card .product-image,
.woocommerce ul.products li.product .product-image,
.woocommerce .shop-product-grid .product-card .product-image,
.shop-page .product-card .product-image,
.featured-products .product-card .product-image {
  margin: 0 0 12px 0 !important;
  position: relative !important;
  overflow: hidden !important;
  border-radius: 16px 16px 0 0 !important;
  height: auto !important;
  min-height: 0 !important;
  background: #fff !important;
  display: block !important;
  padding: 0 !important;
}

/* Image Links */
.gk-product-card a.woocommerce-LoopProduct-link,
.gk-product-card a.woocommerce-loop-product__link,
.featured-products .product-card > a {
  display: block !important;
  margin: 0 !important;
  text-decoration: none !important;
  padding: 0 !important;
}

/* Product Images */
.gk-product-card img,
.gk-product-card a img,
.gk-product-card img.wp-post-image,
.gk-product-card img.attachment-woocommerce_thumbnail,
.gk-product-card img.size-woocommerce_thumbnail,
.woocommerce ul.products li.product img,
.woocommerce ul.products li.product .product-image img,
.woocommerce .shop-product-grid .product-card .product-image img,
.shop-page .product-card .product-image img,
.featured-products .product-card img,
.featured-products .product-card .product-image img,
.featured-products .product-card a img,
.wc-block-grid__product-image img,
.wc-block-components-product-image img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  display: block !important;
  object-fit: contain !important;
  transform-origin: center center !important;
  transition: transform 0.35s ease !important;
}

/* Image Hover Effect - Only on Image Hover */
.product-card:hover .product-image img,
.gk-product-card:hover .product-image img,
.woocommerce ul.products li.product:hover .product-image img,
.woocommerce ul.products li.product:hover img,
.woocommerce .shop-product-grid .product-card:hover .product-image img,
.shop-page .product-card:hover .product-image img,
.featured-products .product-card:hover .product-image img {
  transform: none !important;
}

.product-card .product-image:hover img,
.gk-product-card .product-image:hover img,
.featured-products .product-card .product-image:hover img {
  transform: scale(1.06) !important;
}

/* =============================================
   3. BILINGUAL TITLE STYLES
   ============================================= */

.gk-product-title,
.woocommerce ul.products .gk-product-title,
.woocommerce .shop-product-grid .product-card .gk-product-title,
.shop-page .product-card .gk-product-title {
  line-height: 1.15 !important;
  margin: 0 0 8px 0 !important;
}

.gk-product-title .en,
.woocommerce ul.products .gk-product-title .en,
.woocommerce .shop-product-grid .product-card .gk-product-title .en,
.shop-page .product-card .gk-product-title .en {
  display: block !important;
  font-size: 2.25em !important;
  font-weight: 600 !important;
  color: #111 !important;
  margin-bottom: 0 !important;
}

.gk-product-title .kn,
.woocommerce ul.products .gk-product-title .kn,
.woocommerce .shop-product-grid .product-card .gk-product-title .kn,
.shop-page .product-card .gk-product-title .kn {
  display: block !important;
  font-size: 1em !important;
  font-weight: 500 !important;
  color: #666 !important;
  margin-top: 0px !important;
}

/* Alternative spacing method */
.gk-product-title .en + .kn { 
  margin-top: 0px !important; 
}

/* Featured Products Title Overrides */
.featured-products .product-card .product-title {
  margin-bottom: 0px !important;
  line-height: 1.3 !important;
  font-size: 28px !important;
  text-align: left !important;
}

/* =============================================
   4. PRODUCT INFO & META STYLES
   ============================================= */

/* Product Info Section */
.gk-product-card .product-info,
.woocommerce ul.products li.product .product-info,
.woocommerce .shop-product-grid .product-card .product-info,
.shop-page .product-card .product-info,
.featured-products .product-card .product-info {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 16px 16px 16px !important;
}

/* Product Meta Row */
.product-meta-row,
.woocommerce ul.products li.product .product-meta-row,
.woocommerce .shop-product-grid .product-card .product-meta-row,
.shop-page .product-card .product-meta-row,
.featured-products .product-card .product-meta-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 0px !important;
  margin-bottom: 8px !important;
  font-size: 0.875em !important;
}

/* Product Local Text */
.product-local,
.woocommerce ul.products li.product .product-local,
.woocommerce .shop-product-grid .product-card .product-local,
.shop-page .product-card .product-local,
.featured-products .product-card .product-local {
  color: #666 !important;
  font-style: italic !important;
  font-size: 24px !important;
  line-height: 1.3 !important;
}

/* Product Rating */
.product-rating,
.woocommerce ul.products li.product .product-rating,
.woocommerce .shop-product-grid .product-card .product-rating,
.shop-page .product-card .product-rating {
  color: #000 !important;
  font-size: 0.875em !important;
}

/* =============================================
   5. PRICE STYLES
   ============================================= */

/* Price Container */
.gk-product-card .price,
.product-price,
.woocommerce ul.products li.product .product-price,
.woocommerce .shop-product-grid .product-card .product-price,
.shop-page .product-card .product-price,
.featured-products .product-card .product-price {
  margin: 8px 0 12px 0 !important;
  font-weight: 400 !important; /* Changed from 700 to 400 - non-bold */
  color: #FF0000 !important; /* New color */
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Current Price */
.current-price,
.custom-price-section .current-price,
.woocommerce ul.products li.product .current-price,
.woocommerce .shop-product-grid .product-card .current-price,
.shop-page .product-card .current-price {
  font-weight: 400 !important; /* Changed from 900 to 400 - non-bold */
  font-size: 1.25em !important;
  color: #2d6e3e !important;
  text-decoration: none !important;
  text-shadow: none !important; /* Removed text-shadow for cleaner look */
  line-height: 1.4 !important;
  display: block !important;
  margin: 10px 0 !important;
}

/* Prime/Member Price */
.prime-price,
.member-price,
.custom-price-section .prime-price,
.woocommerce ul.products li.product .prime-price,
.woocommerce .shop-product-grid .product-card .prime-price,
.shop-page .product-card .prime-price {
  font-size: 1.25em !important;
  color: #f05c0c !important;
  text-decoration: none !important;
  margin-top: 5px !important;
  display: block !important;
  line-height: 1.4 !important;
}

/* Remove text decoration from all price elements */
.current-price,
.member-price,
.product-price .current-price,
.product-price .member-price,
.woocommerce .current-price,
.woocommerce .member-price,
.product-price span,
.product-price .price,
.woocommerce .product-price span,
.woocommerce .product-price .price,
.custom-price-section .current-price del,
.custom-price-section .prime-price del,
.custom-price-section .current-price ins,
.custom-price-section .prime-price ins {
  text-decoration: none !important;
}

/* Regular price (del) should be visible and muted across site */
.woocommerce .price del,
.woocommerce .price .woocommerce-Price-amount del {
  display: inline !important;
  color: #95a5a6 !important;
  text-decoration: line-through !important;
  margin-right: 8px;
}

/* Force price visibility */
.product-card .price-stack,
.product-card .price-actual,
.product-card .price-prime,
.product-card .row-actions,
.featured-products .product-card .price-regular,
.featured-products .product-card .price-member {
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
}

/* =============================================
   6. PRODUCT CONTROLS (WEIGHT SELECT & ADD TO CART)
   ============================================= */

/* Product Controls Container - ALWAYS VISIBLE */
.product-controls,
.gk-product-card .product-controls,
.woocommerce ul.products li.product .product-controls,
.woocommerce .shop-product-grid .product-card .product-controls,
.shop-page .product-card .product-controls,
.featured-products .product-card .product-controls {
  /* Force always visible - override all hover dependencies */
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  
  /* Reset positioning */
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  
  /* Remove hover-only background and borders */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  
  /* Layout */
  margin-top: auto !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  z-index: 20 !important;
  width: 100% !important;
  
  /* Remove transitions */
  transition: none !important;
}

/* Ensure controls remain visible even when not hovering */
.woocommerce ul.products li.product:not(:hover) .product-controls,
.woocommerce .shop-product-grid .product-card:not(:hover) .product-controls,
.shop-page .product-card:not(:hover) .product-controls,
.featured-products .product-card:not(:hover) .product-controls {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

/* Alternative controls layout for featured products */
.featured-products .product-card .product-controls {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.featured-products .product-card > .product-controls {
  padding: 0 12px 12px !important;
  margin-top: -8px !important;
}

/* Weight/Variant Selector */
.gk-weight-select,
.product-variant,
.gk-variation-select,
.woocommerce ul.products li.product .gk-weight-select,
.woocommerce .shop-product-grid .product-card .gk-weight-select,
.shop-page .product-card .gk-weight-select,
.featured-products .product-card .product-variant {
  /* Reset appearance */
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  
  /* Styling */
  width: 100% !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  padding: 8px 30px 8px 12px !important;
  font-size: 0.875em !important;
  background-color: #fff !important;
  color: #111 !important;
  cursor: pointer !important;
  
  /* Dropdown arrow */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.7rem center !important;
  background-size: 1em !important;
  
  /* Visibility */
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 21 !important;
  position: relative !important;
}

/* Featured products variant specific */
.featured-products .product-card .product-variant {
  background-color: #f3f4f6 !important;
  background-position: right 0.5rem center !important;
  padding: 6px 30px 6px 10px !important;
  border-color: #e5e7eb !important;
  font-size: 12px !important;
  flex: 0 0 auto !important;
  min-width: 100px !important;
  max-width: 140px !important;
}

/* Hover states */
.gk-weight-select:hover,
.product-variant:hover,
.woocommerce ul.products li.product .gk-weight-select:hover,
.woocommerce .shop-product-grid .product-card .gk-weight-select:hover,
.featured-products .product-card .product-variant:hover {
  border-color: #bbb !important;
  background-color: #f9fafb !important;
}

/* Focus states */
.gk-weight-select:focus,
.product-variant:focus,
.woocommerce ul.products li.product .gk-weight-select:focus,
.woocommerce .shop-product-grid .product-card .gk-weight-select:focus,
.featured-products .product-card .product-variant:focus {
  outline: none !important;
  border-color: #2d6e3e !important;
  box-shadow: 0 0 0 3px rgba(45, 110, 62, 0.1) !important;
}

/* Add to Cart Button */
.gk-add-to-cart-btn,
.add-to-cart.compact,
.woocommerce ul.products li.product .gk-add-to-cart-btn,
.woocommerce .shop-product-grid .product-card .gk-add-to-cart-btn,
.shop-page .product-card .gk-add-to-cart-btn,
.featured-products .product-card .add-to-cart.compact {
  /* Force visibility */
  opacity: 1 !important;
  visibility: visible !important;
  
  /* Layout */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  
  /* Styling */
  border: none !important;
  border-radius: 8px !important;
  background: #f05c0c !important;
  color: #fff !important;
  padding: 12px 16px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: background 0.3s ease !important;
  z-index: 21 !important;
  position: relative !important;
  text-decoration: none !important;
  
  /* Button sizing */
  min-width: 80px !important;
  max-width: 120px !important;
}

/* Featured products specific button styling */
.featured-products .product-card .add-to-cart.compact {
  flex-shrink: 0 !important;
  padding: 8px 16px !important;
  min-width: 60px !important;
  font-size: 12px !important;
}

/* Hover states */
.gk-add-to-cart-btn:hover,
.add-to-cart.compact:hover,
.woocommerce ul.products li.product .gk-add-to-cart-btn:hover,
.woocommerce .shop-product-grid .product-card .gk-add-to-cart-btn:hover,
.featured-products .product-card .add-to-cart.compact:hover {
  background: #f05c0c !important; /* Keep orange on hover - no color change */
}

/* Loading state */
.gk-add-to-cart-btn.loading { 
  opacity: .7 !important; 
  cursor: progress !important; 
}

/* Cart icon */
.gk-add-to-cart-btn .icon {
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
}

.gk-add-to-cart-btn .icon::before {
  content: '' !important;
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2S15.9 22 17 22s2-.9 2-2-.9-2-2-2zM7.17 14h9.66c.75 0 1.41-.41 1.75-1.03l3.58-6.49A1 1 0 0 0 21.34 5H6.21l-.94-2H1v2h2l3.6 7.59-1.35 2.44C4.52 15.37 5.48 17 7 17h12v-2H7l1.1-2z"/></svg>') no-repeat center / contain !important;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2S15.9 22 17 22s2-.9 2-2-.9-2-2-2zM7.17 14h9.66c.75 0 1.41-.41 1.75-1.03l3.58-6.49A1 1 0 0 0 21.34 5H6.21l-.94-2H1v2h2l3.6 7.59-1.35 2.44C4.52 15.37 5.48 17 7 17h12v-2H7l1.1-2z"/></svg>') no-repeat center / contain !important;
  background: currentColor !important;
}

/* =============================================
   7. PRODUCT BADGES
   ============================================= */

.product-badges,
.woocommerce ul.products li.product .product-badges,
.woocommerce .shop-product-grid .product-card .product-badges,
.shop-page .product-card .product-badges {
  position: absolute !important;
  top: 8px !important;           /* minimal spacing from top edge */
  left: 8px !important;          /* minimal spacing from left edge */
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  align-items: flex-start !important; /* prevent badges from stretching full width */
  padding: 0 !important;
}

.badge,
.woocommerce ul.products li.product .badge,
.woocommerce .shop-product-grid .product-card .badge,
.shop-page .product-card .badge {
  padding: 4px 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  color: white !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  display: inline-flex !important; /* shrink to content */
  align-items: center !important;
  width: auto !important;
  max-width: max-content !important;
  flex: 0 0 auto !important; /* never grow */
  align-self: flex-start !important; /* ensure content-width on flex containers */
}

.badge-organic,
.woocommerce ul.products li.product .badge-organic,
.woocommerce .shop-product-grid .product-card .badge-organic,
.shop-page .product-card .badge-organic {
  background: #ecfdf5 !important; /* light green */
  color: #065f46 !important;      /* dark green text */
  border: 1px solid #a7f3d0 !important; /* subtle green border */
  font-size: 8px !important;
  padding: 3px 7px !important;
  opacity: 0.6 !important;
}

/* Essential -> light orange pill */
.badge-essential,
.badge.essential,
.badge.essentials,
.woocommerce ul.products li.product .badge-essential,
.woocommerce ul.products li.product .badge.essential,
.woocommerce ul.products li.product .badge.essentials,
.woocommerce .shop-product-grid .product-card .badge-essential,
.woocommerce .shop-product-grid .product-card .badge.essential,
.woocommerce .shop-product-grid .product-card .badge.essentials,
.shop-page .product-card .badge-essential,
.shop-page .product-card .badge.essential,
.shop-page .product-card .badge.essentials {
  background: #fff7ed !important; /* light orange */
  color: #9a3412 !important;       /* dark orange text */
  border: 1px solid #fed7aa !important; /* subtle orange border */
}

.badge-off,
.woocommerce ul.products li.product .badge-off,
.woocommerce .shop-product-grid .product-card .badge-off,
.shop-page .product-card .badge-off {
  background: #dc2626 !important;
}

/* =============================================
   8. RATING STYLES
   ============================================= */

.custom-rating .star-rating,
.woocommerce .star-rating {
  color: #FFD700 !important;
  font-family: WooCommerce !important;
}

.custom-rating .star-rating::before,
.woocommerce .star-rating::before {
  content: "\73\73\73\73\73" !important;
  color: #ddd !important;
}

.custom-rating .star-rating span::before,
.woocommerce .star-rating span::before {
  content: "\53\53\53\53\53" !important;
  color: #FFD700 !important;
}

.custom-rating .woocommerce-review-link,
.custom-rating .woocommerce-review-link .count {
  color: #000 !important;
  text-decoration: none !important;
}

/* =============================================
   9. WOOCOMMERCE OVERRIDES
   ============================================= */

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

.woocommerce ul.products li.product {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  float: none !important;
}

/* Hide default WooCommerce elements */
.woocommerce ul.products li.product .woocommerce-loop-product__link .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__link .price {
  display: none !important;
}

/* Force custom content to show */
.woocommerce ul.products li.product .gk-product-title,
.woocommerce ul.products li.product .product-info,
.woocommerce ul.products li.product .product-controls {
  display: block !important;
}

/* Reset WooCommerce links */
.woocommerce ul.products li.product .woocommerce-loop-product__link,
.woocommerce ul.products li.product a {
  all: unset !important;
  display: block !important;
  text-decoration: none !important;
  color: inherit !important;
}

/* =============================================
   10. UTILITY STYLES
   ============================================= */

/* Ensure card body uses full width */
.product-card .card-body {
  width: 100% !important;
}

/* Fix row actions layout */
.product-card .row-actions {
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

/* Ensure buttons are properly sized */
.product-card .button {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* Align footer actions at the bottom */
.gk-product-card .footer { 
  margin-top: auto !important; 
}

/* Remove controls spacer */
.featured-products .product-card .controls-spacer {
  display: none !important;
}

/* Remove hover-only visibility for all elements */
.featured-products .product-card *[class*="hover"]:not(.add-to-cart) {
  opacity: 1 !important;
  visibility: visible !important;
}

/* =============================================
   11. SHOP PAGE SIDEBAR STYLES
   ============================================= */

/* Fixed left sidebar for categories on shop/archive */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.shop-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  height: auto;
  overflow: visible;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

/* Sidebar title */
.shop-sidebar .shop-sidebar-title {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  line-height: 1.2;
}

/* Category tree */
.shop-cat-tree {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.shop-cat-tree li { 
  margin: 4px 0; 
}

.shop-cat-tree a {
  color: #111;
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
  padding: 2px 4px;
  border-radius: 6px;
}

.shop-cat-tree > li > a {
  color: #1f6f3f;
  font-weight: 600;
}

.shop-cat-tree a:hover { 
  color: #2d6e3e; 
}

.shop-cat-tree a:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(45,110,62,0.2);
}

.shop-cat-tree .children { 
  margin-left: 14px; 
}

/* Active/parent category highlight */
.shop-cat-tree .current-cat > a,
.shop-cat-tree .current-cat-parent > a {
  color: #2d6e3e;
  font-weight: 700;
}

/* Category count */
.shop-cat-tree .children .cat-item .count,
.shop-cat-tree .children .cat-item .post-count {
  margin-left: 4px;
  color: #666;
  font-weight: 500;
}

/* All categories link */
.shop-all-categories-link {
  color: #1f6f3f;
  text-decoration: none;
  font-weight: 600;
}

.shop-all-categories-link:hover,
.shop-all-categories-link:focus {
  text-decoration: underline;
}

.shop-main { 
  min-width: 0; 
}

/* Admin bar offset */
.admin-bar .shop-sidebar { 
  top: 132px; 
}

/* Responsive: collapse sidebar on small screens */
@media (max-width: 1024px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .shop-sidebar {
    position: static;
    height: auto;
  }
}
/* =============================================
   8. WOOCOMMERCE SHOP PAGE FIXES
   ============================================= */

/* Ensure product cards display properly in WooCommerce loops */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 24px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce ul.products li.product-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure the featured-products styles also apply to shop pages */
.shop-page .product-card,
.woocommerce ul.products li.product-card {
    position: relative !important;
    border: 1px solid #eee !important;
    border-radius: 16px !important;
    padding: 16px !important;
    background: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
}

.shop-page .product-card:hover,
.woocommerce ul.products li.product-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
    transform: translateY(-2px) !important;
}

/* =============================================
   ENHANCED WISHLIST HEART ICON STYLES
   ============================================= */

/* Wishlist Heart Container - ALWAYS VISIBLE with proper positioning */
.wishlist-heart-container {
    /* Positioning and layout */
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 999 !important;
    pointer-events: auto !important;
    
    /* MAKE HEARTS ALWAYS VISIBLE - Remove opacity: 0 */
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    
    /* Ensure visibility above everything */
    transform: translateZ(0) !important;
}

/* Always show for wishlisted products */
.wishlist-heart-container.wishlisted {
    opacity: 0.375 !important;
}

/* Hearts are ALWAYS visible - no hover dependency */
.product-card .wishlist-heart-container,
.shop-product-card .wishlist-heart-container,
.gk-product-card .wishlist-heart-container,
.woocommerce ul.products li.product .wishlist-heart-container,
.featured-products .product-card .wishlist-heart-container {
    opacity: 0.375 !important;
    visibility: visible !important;
}

/* Wishlist Heart Button - Clean Design with Visibility */
.wishlist-heart-btn,
.wishlist-heart-btn:link,
.wishlist-heart-btn:visited,
.wishlist-heart-btn:active,
button.wishlist-heart-btn,
a.wishlist-heart-btn {
    /* Clean transparent background */
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    
    /* Remove borders but keep clean appearance */
    border: none !important;
    border-radius: 0 !important;
    outline: none !important;
    
    /* Remove shadows from button itself (hearts will have their own) */
    box-shadow: none !important;
    text-shadow: none !important;
    
    /* Button sizing and positioning */
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: transform 0.3s ease !important;
    pointer-events: auto !important;
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
    
    /* Ensure button is visible */
    opacity: 0.375 !important;
    visibility: visible !important;
    
    /* Override any inherited button styling */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Heart Button Hover */
.wishlist-heart-btn:hover,
button.wishlist-heart-btn:hover,
a.wishlist-heart-btn:hover {
    /* Absolutely no background on hover */
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    transform: scale(1.15) !important;
}

/* Heart Button Active/In Wishlist - Red Color */
.wishlist-heart-btn.in-wishlist,
button.wishlist-heart-btn.in-wishlist,
a.wishlist-heart-btn.in-wishlist {
    /* Remove any background even when in wishlist */
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: #FF0000 !important;
}

.wishlist-heart-btn.in-wishlist:hover,
button.wishlist-heart-btn.in-wishlist:hover,
a.wishlist-heart-btn.in-wishlist:hover {
    /* Remove any background on hover when in wishlist */
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: #CC0000 !important;
    transform: scale(1.15) !important;
}

/* Heart Icons */
.heart-icon,
.heart-icon-filled {
    font-size: 24px !important;
    line-height: 1 !important;
    display: block !important;
    transition: all 0.3s ease !important;
    font-weight: normal !important;
}

/* Default state - show empty heart with strong black outline for visibility */
.wishlist-heart-btn .heart-icon {
    display: block !important;
    color: rgba(255, 255, 255, 0.9) !important;
    /* Strong black border using multiple text shadows */
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        -2px 0 0 #000,
        2px 0 0 #000,
        0 -2px 0 #000,
        0 2px 0 #000,
        0 0 4px rgba(0, 0, 0, 0.8) !important;
    /* Additional stroke support for better browsers */
    -webkit-text-stroke: 1px #000 !important;
}

.wishlist-heart-btn .heart-icon-filled {
    display: none !important;
    color: #FF0000 !important;
}

/* In wishlist state - show filled red heart with black outline */
.wishlist-heart-btn.in-wishlist .heart-icon {
    display: none !important;
}

.wishlist-heart-btn.in-wishlist .heart-icon-filled {
    display: block !important;
    color: #FF0000 !important;
    /* Strong black border for filled heart too */
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        -2px 0 0 #000,
        2px 0 0 #000,
        0 -2px 0 #000,
        0 2px 0 #000,
        0 0 4px rgba(255, 0, 0, 0.3) !important;
    /* Additional stroke support */
    -webkit-text-stroke: 1px #000 !important;
}

/* Heart Button Processing State */
.wishlist-heart-btn.processing {
    opacity: 0.7 !important;
    pointer-events: none !important;
    /* Still no background even when processing */
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* CRITICAL: Override ALL possible theme button colors that could affect heart buttons */
.wishlist-heart-btn,
button.wishlist-heart-btn,
a.wishlist-heart-btn,
.wishlist-heart-container button,
.wishlist-heart-container a {
    /* Override all possible orange colors from theme */
    background: transparent !important;
    background-color: transparent !important;
    
    /* Make sure these don't inherit ANY theme button colors */
    color: inherit !important;
    
    /* Override specific theme orange colors */
    border-color: transparent !important;
    
    /* Remove any inherited styling */
    font-weight: normal !important;
    text-decoration: none !important;
    
    /* Reset all possible button appearances */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Ensure no orange colors are EVER applied to heart elements */
.wishlist-heart-btn,
.wishlist-heart-btn:hover,
.wishlist-heart-btn:focus,
.wishlist-heart-btn:active,
.wishlist-heart-btn:visited,
button.wishlist-heart-btn,
button.wishlist-heart-btn:hover,
button.wishlist-heart-btn:focus,
button.wishlist-heart-btn:active,
a.wishlist-heart-btn,
a.wishlist-heart-btn:hover,
a.wishlist-heart-btn:focus,
a.wishlist-heart-btn:active,
a.wishlist-heart-btn:visited {
    /* Absolutely NO theme colors */
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    
    /* NO theme orange colors */
    border-color: transparent !important;
    
    /* NO inherited effects */
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Animation Classes */
.wishlist-heart-btn.animate-add {
    animation: heartPulse 0.4s ease !important;
}

.wishlist-heart-btn.animate-remove {
    animation: heartPulse 0.4s ease !important;
}

/* Heart Pulse Animation */
@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Ensure heart is visible on all product card variations */
.product-card .wishlist-heart-container,
.shop-product-card .wishlist-heart-container,
.gk-product-card .wishlist-heart-container,
.woocommerce ul.products li.product .wishlist-heart-container,
.featured-products .product-card .wishlist-heart-container {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 100 !important;
    pointer-events: auto !important;
}

/* Shop page specific heart positioning */
.shop-product-image .wishlist-heart-container {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 100 !important;
    pointer-events: auto !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wishlist-heart-btn {
        width: 40px !important;
        height: 40px !important;
    }
    
    .heart-icon,
    .heart-icon-filled {
        font-size: 22px !important;
    }
    
    .wishlist-heart-container {
        top: 4px !important;
        right: 4px !important;
    }
}

/* =============================================
   WISHLIST COUNT IN HEADER
   ============================================= */

/* Wishlist count styling moved to style.css - using unified cart/wishlist badge design */



/* ========== 2. PRODUCT IMAGES ========== */
/* Source: product-image-fixes.css */


/* =============================================
   PRODUCT IMAGE AND ALIGNMENT FIXES
   Fixes for:
   1. Product card images being cropped on /products/ page
   2. Single product page alignment issues
   ============================================= */

/* =============================================
   1. PRODUCT CARD IMAGE FIXES (Shop/Archive Pages)
   ============================================= */

/* Ensure product image container doesn't crop images */
.gk-product-card .product-image,
.woocommerce ul.products li.product .product-image,
.woocommerce .shop-product-grid .product-card .product-image,
.shop-page .product-card .product-image,
.shop-product-card .shop-product-image,
.featured-products .product-card .product-image {
    /* Remove any fixed height that might crop images */
    height: auto !important;
    min-height: 350px !important;
    max-height: none !important;
    
    /* Allow image to determine the height */
    aspect-ratio: 1/1 !important;
    
    /* Ensure full image is visible */
    overflow: hidden !important; /* was visible: let card hover zoom bleed outside the tile */
    
    /* No padding - image extends to edges */
    padding: 0 !important;
    
    /* Maintain rounded corners */
    border-radius: 16px 16px 0 0 !important;
    
    /* Background for better contrast */
    background: #f8f8f8 !important;
    
    /* Display settings */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

/* Ensure images are fully visible without cropping */
.gk-product-card img,
.gk-product-card a img,
.gk-product-card img.wp-post-image,
.gk-product-card img.attachment-woocommerce_thumbnail,
.gk-product-card img.size-woocommerce_thumbnail,
.woocommerce ul.products li.product img,
.woocommerce ul.products li.product .product-image img,
.woocommerce .shop-product-grid .product-card .product-image img,
.shop-page .product-card .product-image img,
.shop-product-card .shop-product-image img,
.featured-products .product-card img,
.featured-products .product-card .product-image img {
    /* Full image display without cropping */
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    
    /* Object-fit contain to show full image */
    object-fit: contain !important;
    object-position: center !important;
    
    /* Remove any fixed dimensions */
    min-height: auto !important;
    
    /* Smooth transitions */
    transition: transform 0.35s ease !important;
    
    /* Display settings */
    display: block !important;
    margin: 0 auto !important;
}

/* Adjust shop product image wrapper */
.shop-product-card .shop-product-image {
    height: auto !important;
    min-height: 350px !important;
    padding: 0 !important;
    background: #fafafa !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px 12px 0 0 !important;
    overflow: hidden !important; /* was visible: let card hover zoom bleed outside the tile */
    aspect-ratio: 1/1 !important;
}

/* Ensure image links don't restrict height */
.gk-product-card a.woocommerce-LoopProduct-link,
.gk-product-card a.woocommerce-loop-product__link,
.shop-product-card > a,
.featured-products .product-card > a {
    display: block !important;
    height: auto !important;
    overflow: hidden !important; /* was visible: let card hover zoom bleed outside the tile */
}

/* =============================================
   2. SINGLE PRODUCT PAGE ALIGNMENT FIXES
   ============================================= */

/* CRITICAL: Hide WooCommerce zoom overlay and related elements */
.woocommerce-product-gallery__trigger,
.zoomImg,
.woocommerce-product-gallery img.zoomImg,
.woocommerce-product-gallery .zoomContainer,
.pswp,
.pswp__bg,
.pswp__ui {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Remove zoom cursor */
.woocommerce-product-gallery__image a,
.woocommerce-product-gallery__image img,
.gk-gallery-image-item a,
.gk-gallery-image-item img {
    cursor: pointer !important;
}

/* Fix main product layout with proper gap and alignment */
.single-product .product,
.single-product-page .product {
    display: block !important;
    margin-bottom: 60px !important;
}

.product-main {
    display: grid !important;
    grid-template-columns: 0.9fr 1.1fr !important;
    gap: 10px !important;
    align-items: start !important;
    margin-bottom: 60px !important;
    padding: 0 20px !important;
}

/* Force horizontal layout for cart form elements */
.woocommerce div.product form.cart,
body.single-product form.cart,
body.single-product-page form.cart {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
}

.woocommerce div.product form.cart .stock,
.woocommerce div.product form.cart .quantity,
.woocommerce div.product form.cart button {
    margin: 0 !important;
    display: inline-flex !important;
}

/* Product images wrapper - proper alignment */
.single-product .product .images,
.single-product .product .product-images-wrapper,
.single-product-page .product .images,
.product-images-wrapper {
    position: sticky !important;
    top: 100px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

/* Gallery container proper sizing */
.gk-gallery-container {
    display: flex !important;
    gap: 8px !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Gallery thumbnails column */
.gk-gallery-thumbs {
    flex: 0 0 40px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}

/* Main gallery image container */
.gk-gallery-main {
    flex: 1 !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8f8f8 !important;
    padding: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    overflow: hidden !important;
    width: 100% !important;
    min-height: 400px !important;
    height: auto !important;
}

/* Ensure gallery main wrapper takes full width and height */
.gk-gallery-main .woocommerce-product-gallery__wrapper {
    width: 100% !important;
    display: block !important;
    position: relative !important;
}

/* Hide any zoom overlays that might still appear */
.gk-gallery-main::before,
.gk-gallery-main::after,
.woocommerce-product-gallery__image::before,
.woocommerce-product-gallery__image::after {
    display: none !important;
}

/* Ensure product images don't get zoom overlay */
.gk-gallery-image-item {
    position: relative !important;
    width: 100% !important;
    display: block !important;
}

.gk-gallery-image-item.active {
    display: block !important;
}

.gk-gallery-image-item:not(.active) {
    display: none !important;
}

.gk-gallery-image-item::before,
.gk-gallery-image-item::after {
    display: none !important;
}

/* Single product images - cover container without white space */
.single-product .product .images img,
.single-product-page .product .images img,
.gk-gallery-image-item img,
.woocommerce-product-gallery__image img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border-radius: 8px !important;
}

/* Remove any transforms or filters that might be applied */
.woocommerce-product-gallery__image img,
.gk-gallery-image-item img {
    transform: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    transition: none !important;
}

/* Ensure anchor tags don't add unwanted styling */
.woocommerce-product-gallery__image a,
.gk-gallery-image-item a {
    display: block !important;
    width: 100% !important;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

/* Product summary alignment */
.single-product .product .summary,
.single-product-page .product .summary,
.summary.entry-summary {
    padding: 30px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: wrap !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
    height: fit-content !important;
    position: relative !important;
}

/* Make all children take full width by default */
.single-product .product .summary > *,
.single-product-page .product .summary > *,
.summary.entry-summary > * {
    width: 100% !important;
    flex: 0 0 100% !important;
}

/* Product title alignment */
.single-product .product_title,
.summary .product_title {
    font-size: 32px !important;
    margin: 0 0 10px 0 !important;
    color: #333 !important;
    line-height: 1.3 !important;
}

/* Price section alignment - UPDATED WITH CORRECT SELECTORS */
.single-product .price,
.summary .price,
.custom-price-section .current-price {
    font-size: 28px !important;
    margin: 6px 0 8px 0 !important; /* tighter vertical spacing around price */
    display: block !important;
    line-height: 1.2 !important;
}

/* Keep price amount and children inline */
.custom-price-section .current-price .woocommerce-Price-amount,
.custom-price-section .current-price .woocommerce-Price-amount * {
    display: inline !important;
}

/* Specific styling for prime member price */
.custom-price-section .prime-member-price-display,
.custom-price-section .prime-member-price-display * {
    font-size: 22px !important;
    color: #66CC66 !important;
    line-height: 1.2 !important;
}

/* Variations form alignment */
.single-product .variations_form,
.summary .variations_form {
    margin: 4px 0 !important;
    display: block !important;
}

.single-product .variations,
.summary .variations {
    margin: 4px 0 !important;
    /* Align with stock status element which has 10px padding-left */
    padding-left: 10px !important;
}

.single-product .variations td,
.summary .variations td {
    padding: 4px 12px 4px 0 !important; /* reduce row height */
    vertical-align: middle !important;
}

.single-product .variations td.label,
.summary .variations td.label,
.single-product .variations th.label,
.summary .variations th.label {
    font-weight: 600 !important;
    padding-right: 12px !important; /* Reduced from 20px to bring label closer */
    padding-left: 0 !important; /* Remove any left padding */
    color: #333 !important;
    width: auto !important; /* Let content determine width */
    min-width: 0 !important; /* Remove any minimum width constraints */
    max-width: fit-content !important; /* Only as wide as content needs */
    white-space: nowrap !important; /* Keep label on one line */
    text-align: left !important; /* Ensure left alignment */
}

/* Override any WooCommerce default widths for variation label cells */
body .single-product .variations th.label,
body .summary .variations th.label {
    width: auto !important;
    max-width: none !important;
}

.single-product .variations td.value,
.summary .variations td.value {
    width: auto !important; /* Changed from 100% to auto for compact layout */
}

.single-product .variations select,
.summary .variations select {
    width: auto !important; /* Changed from 100% to auto-width */
    min-width: 150px !important; /* Minimum width for usability */
    max-width: 250px !important; /* Maximum width to keep it compact */
    padding: 8px 12px !important; /* Reduced padding for more compact look */
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 16px !important;
}

/* Add to cart button alignment */
.single-product .cart,
.summary .cart {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 0 !important;
}

.single-product .quantity,
.summary .quantity {
    display: flex !important;
    align-items: center !important;
}

.single-product .quantity input,
.summary .quantity input {
    width: 80px !important;
    padding: 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    text-align: center !important;
    font-size: 16px !important;
}

.single-product .single_add_to_cart_button,
.summary .single_add_to_cart_button {
    flex: 0 1 auto !important; /* Changed from flex: 1 to not stretch full width */
    background: #f05c0c !important; /* Orange color to match theme */
    color: white !important;
    padding: 10px 24px !important; /* Reduced padding for more compact look */
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important; /* Reduced from 18px */
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    min-width: auto !important; /* Remove any minimum width constraints */
    width: auto !important; /* Auto width to fit content */
}

.single-product .single_add_to_cart_button:hover,
.summary .single_add_to_cart_button:hover {
    background: #e66c00 !important; /* Darker orange on hover */
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(240, 92, 12, 0.3) !important;
}

/* Product meta alignment */
.single-product .product_meta,
.summary .product_meta {
    margin-top: 30px !important;
    padding-top: 30px !important;
    border-top: 1px solid #e0e0e0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

/* =============================================
   STOCK STATUS AND VARIATIONS ON SAME LINE
   ============================================= */

/* Wrapper created by JavaScript to hold variations and stock status */
.variations-stock-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

/* Variations table inside wrapper */
.variations-stock-wrapper .variations {
    display: table !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    width: auto !important;
    max-width: max-content !important;
}

/* Variations form - reset to normal block display */
.single-product .variations_form,
.summary .variations_form {
    margin: 4px 0 !important;
    padding: 0 !important;
}

/* Stock status - positioned inline with variations */
.variations-stock-wrapper .gk-live-stock-status {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    height: fit-content !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* Variations table styling */
.single-product .variations,
.summary .variations {
    margin: 0 !important;
    padding: 0 !important;
    display: table !important;
    border-spacing: 0 !important;
    border-collapse: collapse !important;
}

/* Reset variations table structure for proper alignment */
.single-product .variations tbody,
.summary .variations tbody {
    display: table-row-group !important;
}

.single-product .variations tr,
.summary .variations tr {
    display: table-row !important;
}

.single-product .variations td,
.single-product .variations th,
.summary .variations td,
.summary .variations th {
    display: table-cell !important;
    vertical-align: middle !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure the value cell (with dropdown) aligns properly */
.single-product .variations td.value,
.summary .variations td.value {
    padding: 0 0 0 10px !important;
}

.single-product .product_meta > span,
.summary .product_meta > span {
    display: flex !important;
    align-items: center !important;
    font-size: 14px !important;
    color: #666 !important;
}

/* Product description alignment */
.single-product .woocommerce-product-details__short-description,
.summary .woocommerce-product-details__short-description {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #666 !important;
    margin: 0 0 20px 0 !important;
}

/* =============================================
   3. RESPONSIVE DESIGN
   ============================================= */

/* Tablet */
@media (max-width: 1024px) {
    .single-product .product,
    .single-product-page .product,
    .product-main {
        gap: 0 !important;
        padding: 0 15px !important;
    }
    
    .gk-gallery-container {
        gap: 15px !important;
    }
    
    .gk-gallery-thumbs {
        flex: 0 0 80px !important;
        gap: 10px !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Stack stock status and variations on mobile */
    .single-product .variations_form,
    .summary .variations_form {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .single-product .gk-live-stock-status,
    .summary .gk-live-stock-status {
        margin-top: 10px !important;
        position: static !important;
        justify-self: start !important;
    }
    
    /* Product cards - ensure images aren't cropped on mobile */
    .gk-product-card .product-image,
    .woocommerce ul.products li.product .product-image,
    .shop-product-card .shop-product-image {
        min-height: 280px !important;
        padding: 0 !important;
    }
    
    /* Single product - stack layout on mobile */
    .single-product .product,
    .single-product-page .product,
    .product-main {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .single-product .product .images,
    .single-product .product .product-images-wrapper {
        position: static !important;
    }
    
    .gk-gallery-container {
        flex-direction: column !important;
    }
    
    .gk-gallery-thumbs {
        flex-direction: row !important;
        flex: 1 1 auto !important;
        width: 100% !important;
        overflow-x: auto !important;
    }
    
    .gk-thumb-item {
        flex: 0 0 40px !important;
        width: 40px !important;
        height: 40px !important;
    }
    
    .gk-gallery-main {
        min-height: 300px !important;
        padding: 0 !important;
    }
    
    .summary.entry-summary {
        padding: 20px !important;
    }
    
    /* Mobile: Ensure images don't get zoom overlays */
    .woocommerce-product-gallery__trigger,
    .zoomImg,
    .zoomContainer {
        display: none !important;
    }
    
    /* Mobile: Stack stock status and variations vertically */
    .single-product .gk-live-stock-status,
    .summary .gk-live-stock-status {
        grid-row: 7 !important;
        justify-self: start !important;
        width: 100% !important;
    }
    
    .single-product .variations_form,
    .summary .variations_form {
        grid-row: 8 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}

/* =============================================
   4. ADDITIONAL REFINEMENTS
   ============================================= */

/* Ensure wishlist hearts don't interfere with images */
.wishlist-heart-redesign,
.wishlist-heart-container {
    z-index: 10 !important;
    pointer-events: auto !important;
}

/* Product badges positioning */
.product-badges {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 5 !important;
}

/* Ensure sale badges are visible */
.onsale {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 5 !important;
    background: #dc2626 !important;
    color: white !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

/* Hover effects should not affect image display */
.product-card:hover .product-image img,
.shop-product-card:hover .shop-product-image img {
    transform: scale(1.05) !important;
}

/* Product gallery wrapper proper sizing */
.woocommerce-product-gallery__wrapper {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    display: block !important;
    position: relative !important;
}

.woocommerce-product-gallery__image {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    width: 100% !important;
    display: block !important;
}

/* Remove any filters that might affect image display */
.woocommerce-product-gallery img,
.gk-gallery-image-item img {
    filter: none !important;
    -webkit-filter: none !important;
}

/* =============================================
   5. COMPREHENSIVE ZOOM PREVENTION
   ============================================= */

/* Prevent any WooCommerce zoom functionality from appearing */
.woocommerce-product-gallery__trigger,
.woocommerce-product-gallery__trigger img,
.woocommerce img.zoomImg,
img.zoomImg,
.zoomContainer,
.zoomWindow,
.zoomLens,
.zoomTint,
.pswp,
.pswp__container,
.pswp__bg,
.pswp__scroll-wrap,
.pswp__ui {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Prevent zoom cursor and hover effects */
.woocommerce-product-gallery__image a {
    cursor: pointer !important;
}

.woocommerce-product-gallery__image a:hover {
    opacity: 1 !important;
}

/* Ensure gallery images maintain their appearance */
.woocommerce-product-gallery__image img:hover {
    transform: none !important;
    filter: none !important;
}

/* Remove any absolute positioned zoom elements */
.woocommerce-product-gallery {
    position: relative !important;
    overflow: hidden !important; /* was visible: let card hover zoom bleed outside the tile */
}

.woocommerce-product-gallery > * {
    position: static !important;
}

.woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
    position: static !important;
}

/* Ensure no JavaScript-added inline styles affect visibility */
.gk-gallery-container,
.gk-gallery-main,
.gk-gallery-thumbs,
.gk-gallery-image-item {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fix for any PhotoSwipe elements */
.pswp--open {
    display: none !important;
}

body.pswp-open {
    overflow: auto !important;
}

/* Additional zoom prevention for flexslider */
.flex-viewport,
.flex-control-nav,
.flex-control-thumbs {
    display: none !important;
}


/* ========== 3. PRODUCT RECOMMENDATIONS ========== */
/* Source: product-recommendations.css */

/**
 * Product Recommendations Section
 * Modern horizontal scrolling carousel for related products
 */

.grokarna-product-recommendations {
    margin: 60px 0 40px;
    padding: 0;
    background: #ffffff;
}

/* Header Section */
.recommendations-header {
    text-align: center;
    margin-bottom: 40px;
}

.recommendations-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.recommendations-subtitle {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0;
    font-weight: 400;
}

/* Carousel Wrapper */
.recommendations-carousel-wrapper {
    position: relative;
    padding: 0 60px;
}

/* Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
    background: #6ab04c;
    border-color: #6ab04c;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(106, 176, 76, 0.3);
}

.carousel-nav:hover svg {
    stroke: #ffffff;
}

.carousel-nav svg {
    stroke: #2c3e50;
    transition: stroke 0.3s ease;
}

.carousel-nav.carousel-prev {
    left: 0;
}

.carousel-nav.carousel-next {
    right: 0;
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #f5f5f5;
}

.carousel-nav:disabled:hover {
    transform: translateY(-50%);
    background: #f5f5f5;
    border-color: #e0e0e0;
}

/* Carousel Container */
.recommendations-carousel {
    overflow: hidden;
    position: relative;
}

.recommendations-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 8px 0;
}

/* Product Card */
.recommendation-card {
    flex: 0 0 calc(25% - 18px); /* 4 products on desktop */
    min-width: 250px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.recommendation-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Product Image */
.recommendation-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Square aspect ratio */
    overflow: hidden;
    background: #f9f9f9;
}

.recommendation-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.recommendation-card:hover .recommendation-image img {
    transform: scale(1.08);
}

.sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e74c3c;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

/* Product Content */
.recommendation-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.recommendation-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recommendation-product-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    /* Standard property for broader compatibility */
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 44px;
}

.recommendation-link:hover .recommendation-product-title {
    color: #6ab04c;
}

/* Rating Stars */
.recommendation-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.recommendation-rating .star {
    color: #ddd;
    font-size: 16px;
}

.recommendation-rating .star.filled {
    color: #f39c12;
}

.recommendation-rating .star.half {
    background: linear-gradient(90deg, #f39c12 50%, #ddd 50%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.recommendation-rating .rating-count {
    color: #95a5a6;
    font-size: 13px;
}

/* Price */
.recommendation-price {
    font-size: 10.2px; /* reduced by 20% from 12.8px */
    font-weight: 400; /* non-bold for regular price */
    color: #000; /* black color */
    margin-top: auto;
    overflow: visible; /* ensure no clipping */
    position: relative;
}

/* Ensure WooCommerce price spans render visibly inside recommendation cards */
.recommendation-price .woocommerce-Price-amount,
.recommendation-price .woocommerce-Price-amount *,
.recommendation-price .woocommerce-Price-currencySymbol,
.recommendation-price bdi {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #000 !important; /* black color */
    text-decoration: none !important;
}

.recommendation-price del {
    color: #95a5a6;
    font-weight: 400;
    font-size: 14px;
    margin-right: 8px;
}

.recommendation-price ins {
    text-decoration: none;
    color: #6ab04c;
}

/* Style plain price range fallback in recommendation cards */
.recommendation-price .gk-plain-price { 
    color: #000; /* black color */
    font-weight: 700; 
}

/* Actions */
.recommendation-actions {
    padding: 0 20px 20px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px 20px;
    background: #6ab04c;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.add-to-cart-btn:hover {
    background: #5a9a3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 176, 76, 0.3);
}

.add-to-cart-btn svg {
    stroke: currentColor;
}

.add-to-cart-btn.out-of-stock {
    background: #95a5a6;
    cursor: not-allowed;
}

.add-to-cart-btn.out-of-stock:hover {
    transform: none;
    box-shadow: none;
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .recommendations-carousel-wrapper {
        padding: 0 50px;
    }
    
    .recommendation-card {
        flex: 0 0 calc(33.333% - 16px); /* 3 products on tablet */
        min-width: 220px;
    }
    
    .recommendations-title {
        font-size: 28px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .grokarna-product-recommendations {
        margin: 40px 0 30px;
    }
    
    .recommendations-header {
        margin-bottom: 30px;
        padding: 0 20px;
    }
    
    .recommendations-title {
        font-size: 24px;
    }
    
    .recommendations-subtitle {
        font-size: 14px;
    }
    
    .recommendations-carousel-wrapper {
        padding: 0 40px;
    }
    
    .recommendations-track {
        gap: 16px;
    }
    
    .recommendation-card {
        flex: 0 0 calc(50% - 8px); /* 2 products on mobile */
        min-width: 180px;
    }
    
    .carousel-nav {
        width: 36px;
        height: 36px;
    }
    
    .carousel-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .recommendation-content {
        padding: 16px;
        gap: 10px;
    }
    
    .recommendation-product-title {
        font-size: 14px;
        min-height: 40px;
    }
    
    .recommendation-price {
        font-size: 16px;
    }
    
    .recommendation-actions {
        padding: 0 16px 16px;
    }
    
    .add-to-cart-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .recommendations-carousel-wrapper {
        padding: 0 30px;
    }
    
    .recommendation-card {
        flex: 0 0 calc(100% - 0px); /* 1 product on small mobile */
        min-width: 200px;
        max-width: 300px;
    }
    
    .carousel-nav {
        width: 32px;
        height: 32px;
    }
}

/* Smooth Scrolling Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.recommendation-card {
    animation: slideIn 0.4s ease-out;
}

/* Loading State */
.recommendations-carousel.loading .recommendations-track {
    opacity: 0.5;
    pointer-events: none;
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
    .recommendation-card:active {
        transform: scale(0.98);
    }
    
    .add-to-cart-btn:active {
        transform: scale(0.96);
    }
}

/* Print Styles */
@media print {
    .carousel-nav {
        display: none;
    }
    
    .recommendations-track {
        flex-wrap: wrap;
    }
    
    .recommendation-card {
        flex: 0 0 50%;
    }
}


/* ========== 4. PRODUCT BADGES & ANIMATIONS ========== */
/* Source: product-badges-animated.css */

/**
 * Animated Product Feature Badges
 * GroKarna Theme - Single Product Page
 */

/* Container Styling */
.gk-product-badges-container {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fef8 0%, #e8f5e9 100%);
    border-radius: 12px;
    border: 2px solid #66cc66;
    box-shadow: 0 4px 15px rgba(45, 110, 62, 0.1);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Individual Badge Styling */
.gk-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 18px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #66cc66;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInBadge 0.6s ease-out forwards;
    position: relative;
    overflow: hidden;
}

/* Animation delays for staggered effect */
.gk-badge[data-animation-delay="0"] {
    animation-delay: 0.2s;
}
.gk-badge[data-animation-delay="1"] {
    animation-delay: 0.4s;
}
.gk-badge[data-animation-delay="2"] {
    animation-delay: 0.6s;
}
.gk-badge[data-animation-delay="3"] {
    animation-delay: 0.8s;
}

/* Hover Effects */
.gk-badge:hover {
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 6px 20px rgba(45, 110, 62, 0.15);
    border-left-width: 6px;
}

/* Shimmer Effect on Hover */
.gk-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.5s;
}

.gk-badge:hover::before {
    left: 100%;
}

/* Badge Icon Styling */
.gk-badge-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #66cc66 0%, #4CAF50 100%);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(45, 110, 62, 0.2);
    animation: iconPulse 2s ease-in-out infinite;
    position: relative;
}

/* Icon Glow Effect */
.gk-badge-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
    animation: iconGlow 2s ease-in-out infinite;
}

/* Badge Content */
.gk-badge-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gk-badge-title {
    font-size: 16px;
    font-weight: 700;
    color: #2d6e3e;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.gk-badge-subtitle {
    font-size: 13px;
    color: #666;
    font-weight: 400;
    line-height: 1.2;
}

/* Individual Badge Colors and Animations */
.gk-badge-organic {
    border-left-color: #4CAF50;
}

.gk-badge-organic .gk-badge-icon {
    background: linear-gradient(135deg, #4CAF50 0%, #66bb6a 100%);
    animation: iconPulse 2s ease-in-out infinite, iconRotate 3s ease-in-out infinite;
}

.gk-badge-certified {
    border-left-color: #2d6e3e;
}

.gk-badge-certified .gk-badge-icon {
    background: linear-gradient(135deg, #2d6e3e 0%, #388e3c 100%);
    animation: iconPulse 2s ease-in-out infinite 0.3s, iconScale 2s ease-in-out infinite;
}

.gk-badge-chemical-free {
    border-left-color: #ff6b6b;
}

.gk-badge-chemical-free .gk-badge-icon {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    animation: iconPulse 2s ease-in-out infinite 0.6s, iconShake 3s ease-in-out infinite;
}

.gk-badge-healthy {
    border-left-color: #66cc66;
}

.gk-badge-healthy .gk-badge-icon {
    background: linear-gradient(135deg, #66cc66 0%, #81c784 100%);
    animation: iconPulse 2s ease-in-out infinite 0.9s, heartbeat 1.5s ease-in-out infinite;
}

/* Keyframe Animations */
@keyframes slideInBadge {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

@keyframes iconGlow {
    0%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

@keyframes iconRotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

@keyframes iconScale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes iconShake {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    25% {
        transform: translateX(-3px) rotate(-3deg);
    }
    75% {
        transform: translateX(3px) rotate(3deg);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gk-product-badges-container {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .gk-product-badges-container {
        margin-top: 20px;
        padding: 15px;
        gap: 10px;
    }
    
    .gk-badge {
        padding: 12px 15px;
    }
    
    .gk-badge-icon {
        font-size: 28px;
        width: 45px;
        height: 45px;
    }
    
    .gk-badge-title {
        font-size: 15px;
    }
    
    .gk-badge-subtitle {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .gk-badge {
        padding: 10px 12px;
        gap: 12px;
    }
    
    .gk-badge-icon {
        font-size: 24px;
        width: 40px;
        height: 40px;
    }
    
    .gk-badge-title {
        font-size: 14px;
    }
    
    .gk-badge-subtitle {
        font-size: 11px;
    }
}

/* Additional hover effect for the container */
.gk-product-badges-container:hover {
    box-shadow: 0 6px 20px rgba(45, 110, 62, 0.15);
    border-color: #4CAF50;
}

/* Fade in animation for container */
.gk-product-badges-container {
    animation: fadeInContainer 0.5s ease-out;
}

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


/* ========== 5. PRODUCT PAGE LAYOUT ========== */
/* Source: product-page-layout-fix.css */

/**
 * Product Page Layout Fix
 * Ensures weight selector on first line, quantity + add to cart on second line
 * 
 * @package GroKarna
 * @version 1.0.0
 */

/* Make variations table full width on its own line */
.single-product .variations_form .variations {
    width: 100% !important;
    margin-bottom: 3px !important;
    display: table !important;
}

.single-product .variations_form .variations tbody {
    display: table-row-group !important;
}

.single-product .variations_form .variations tr {
    display: table-row !important;
}

.single-product .variations_form .variations th,
.single-product .variations_form .variations td {
    display: table-cell !important;
    padding: 8px 0 !important;
}

.single-product .variations_form .variations th.label {
    width: 120px !important;
    font-weight: 600 !important;
    color: #2d6e3e !important;
    font-size: 15px !important;
    vertical-align: middle !important;
}

.single-product .variations_form .variations td.value {
    width: auto !important;
    max-width: 220px !important;
}

.single-product .variations_form .variations select {
    width: auto !important;
    min-width: 120px !important;
    max-width: 200px !important;
    padding-right: 40px !important;
}

/* Single variation wrapper - contains quantity and button */
.single-product .single_variation_wrap {
    width: 100% !important;
    margin-top: 3px !important;
}

/* Quantity and Add to Cart container - displayed as flexbox */
.single-product .single_variation_wrap .woocommerce-variation-add-to-cart {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
    margin-top: 15px !important;
    width: auto !important;
    max-width: max-content !important;
}

/* Quantity input styling */
.single-product .single_variation_wrap .quantity {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
}

.single-product .single_variation_wrap .quantity input.qty {
    width: 80px !important;
    height: 48px !important;
    text-align: center !important;
    border: 2px solid #e3e3e3 !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    background: #fff !important;
    color: #111827 !important;
}

/* Add to cart button styling */
.single-product .single_variation_wrap .single_add_to_cart_button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 120px !important;
    max-width: 180px !important;
    height: 48px !important;
    padding: 0 24px !important;
    background: #ff7b00 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 48px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 8px rgba(255, 123, 0, 0.2) !important;
}

.single-product .single_variation_wrap .single_add_to_cart_button:hover {
    background: #e66c00 !important;
    box-shadow: 0 4px 12px rgba(255, 123, 0, 0.3) !important;
    transform: translateY(-1px) !important;
}

/* Stock status */
.single-product .single_variation_wrap .woocommerce-variation-availability {
    width: 100% !important;
    margin-bottom: 0px !important;
}

/* Single variation content (price, description) */
.single-product .single_variation {
    margin-bottom: 15px !important;
}

.single-product .single_variation .woocommerce-variation-price {
    margin-bottom: 10px !important;
}

.single-product .single_variation .price {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #2d6e3e !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .single-product .variations_form .variations select {
        max-width: 100% !important;
    }
    
    .single-product .single_variation_wrap .woocommerce-variation-add-to-cart {
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }
    
    .single-product .single_variation_wrap .quantity {
        justify-content: flex-start !important;
        order: 1 !important;
        margin-right: 8px !important;
    }
    
    .single-product .single_variation_wrap .single_add_to_cart_button {
        width: auto !important;
        min-width: 120px !important;
        max-width: 180px !important;
        flex: 0 1 auto !important;
        order: 2 !important;
    }
}


/* ========== 6. PRODUCT VIDEO ========== */
/* Source: product-video-horizontal.css */

/**
 * Product Video - Horizontal Layout
 * Video 3: Say No to Chemicals
 * GroKarna Theme - Single Product Page
 */

/* Video Container - Horizontal Layout */
.gk-product-video-container {
    margin-top: 25px;
    margin-bottom: 0;
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #000;
}

/* Ensure video maintains aspect ratio */
.gk-product-video-container::before {
    content: '';
    display: block;
    padding-top: 56.41%; /* 704/1248 = 0.5641 = 56.41% for 1248x704 aspect ratio */
}

/* Video Element */
.gk-product-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Alignment with SKU section on the right */
.product-images-wrapper {
    display: flex;
    flex-direction: column;
}

/* Adjust badges container spacing */
.gk-product-badges-container {
    margin-top: 25px;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gk-product-video-container {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .gk-product-video-container {
        margin-top: 15px;
        border-radius: 8px;
    }
    
    /* On mobile, the grid becomes single column, so alignment is less critical */
    .product-main {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .gk-product-video-container {
        margin-top: 12px;
        border-radius: 6px;
    }
}

/* Smooth fade-in animation */
.gk-product-video-container {
    animation: fadeInVideo 0.8s ease-out;
}

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

/* Video loading state */
.gk-product-video-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: videoSpinner 0.8s linear infinite;
    opacity: 0;
    pointer-events: none;
}

.gk-product-video:not([src]) ~ .gk-product-video-container::after {
    opacity: 1;
}

@keyframes videoSpinner {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Hover effect for video container */
.gk-product-video-container:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}



/* ========== SHOP PAGE CONTENT PADDING ========== */
/* Add breathing room to the products page content area */
/* Header and footer remain full-width */

/* Main products container padding */
.woocommerce-page > .container,
.woocommerce-page .shop-page,
body.woocommerce-page .container,
body.post-type-archive-product .container,
body.tax-product_cat .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Breadcrumb navigation padding */
.woocommerce-breadcrumb,
nav.woocommerce-breadcrumb,
.woocommerce-page .woocommerce-breadcrumb {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Exclude header and footer from padding */
header .container,
footer .container,
.site-header .container,
.site-footer .container,
#masthead .container,
.header-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Responsive padding adjustments */
@media (max-width: 768px) {
    .woocommerce-page > .container,
    .woocommerce-page .shop-page,
    body.woocommerce-page .container,
    body.post-type-archive-product .container,
    body.tax-product_cat .container,
    .woocommerce-breadcrumb,
    nav.woocommerce-breadcrumb,
    .woocommerce-page .woocommerce-breadcrumb {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

@media (min-width: 1400px) {
    .woocommerce-page > .container,
    .woocommerce-page .shop-page,
    body.woocommerce-page .container,
    body.post-type-archive-product .container,
    body.tax-product_cat .container,
    .woocommerce-breadcrumb,
    nav.woocommerce-breadcrumb,
    .woocommerce-page .woocommerce-breadcrumb {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}
/* ===== PRICE STYLING BASED ON USER TYPE ===== */

/* Default (non-prime/guest users): Regular price BOLD, Prime price NOT bold */
body:not(.is-prime-member) .product-card .current-price,
body:not(.is-prime-member) .product-card .price-regular,
body:not(.is-prime-member) .woocommerce-Price-amount.regular-price {
    font-weight: 700 !important;
}

body:not(.is-prime-member) .product-card .member-price,
body:not(.is-prime-member) .product-card .prime-price,
body:not(.is-prime-member) .woocommerce-Price-amount.prime-price {
    font-weight: 400 !important;
}

/* Prime users: Prime price BOLD, Regular price NOT bold */
body.is-prime-member .product-card .current-price,
body.is-prime-member .product-card .price-regular,
body.is-prime-member .woocommerce-Price-amount.regular-price {
    font-weight: 400 !important;
    text-decoration: line-through !important;
    color: #999 !important;
}

body.is-prime-member .product-card .member-price,
body.is-prime-member .product-card .prime-price,
body.is-prime-member .woocommerce-Price-amount.prime-price {
    font-weight: 700 !important;
    color: #2d6e3e !important;
}

/* Ensure proper display for both price types */
.product-card .product-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-card .current-price {
    font-size: 18px;
    color: #333;
}

.product-card .member-price {
    font-size: 14px;
    color: #2d6e3e;
}

/* Prime badge styling */
.prime-price-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2d6e3e 0%, #45a049 100%);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: 600;
    vertical-align: middle;
}
