/* ============================================
   FRESHEO - PRODUCT CARD DESIGN
   Modern, clean, and professional
   ============================================ */

.loop-bundle-product-card {
  background: white !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.loop-bundle-product-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12) !important;
  border-color: #9ABE36 !important;
}

/* ========================================
   CARD HEADER (Image Container)
   ======================================== */

.loop-card-header {
  position: relative !important;
  background: #fafafa !important;
  overflow: hidden !important;
  cursor: pointer !important;
}

.loop-bundle-product-image-container {
  width: 100% !important;
  height: 220px !important;
  overflow: hidden !important;
  position: relative !important;
}

.loop-image-product-lg {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.loop-image-product-lg img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.loop-bundle-product-card:hover .loop-image-product-lg img {
  transform: scale(1.08) !important;
}

/* Image overlay on hover */
.loop-bundle-product-image-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.loop-bundle-product-card:hover .loop-bundle-product-image-container::after {
  opacity: 1;
}

/* ========================================
   CARD BODY (Product Info)
   ======================================== */

.loop-card-body {
  padding: 16px !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  background: white !important;
}

.loop-product-card-description-body {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

/* Product Title */
.loop-product-title {
  margin-bottom: 8px !important;
}

.loop-bundle-product-card-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: #1a1a1a !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 42px !important;
}

/* Product Description */
.loop-bundle-product-card-description {
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #666 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* Price Section */


/* ========================================
   CARD FOOTER (Buttons)
   ======================================== */

.loop-body-footer-wrapper {
  padding: 0 !important;
  background: white !important;
  border-top: 1px solid #f5f5f5 !important;
}

.loop-card-footer {
  padding: 12px 16px 16px !important;
}

/* ========================================
   OUT OF STOCK STATE
   ======================================== */

.loop-bundle-product-card:has(.loop-btn-add-product:disabled) {
  opacity: 0.6 !important;
}

.loop-bundle-product-card:has(.loop-btn-add-product:disabled):hover {
  transform: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  border-color: #e8e8e8 !important;
}

.loop-bundle-product-card:has(.loop-btn-add-product:disabled) .loop-image-product-lg img {
  filter: grayscale(40%) !important;
}

/* ========================================
   SELECTED STATE (When quantity controls shown)
   ======================================== */

.loop-bundle-product-card:has(.loop-bundle-product-quantity-controls) {
  border-color: #9ABE36 !important;
  box-shadow: 0 4px 16px rgba(154, 190, 54, 0.15) !important;
}

.loop-bundle-product-card:has(.loop-bundle-product-quantity-controls)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #9ABE36 0%, #7A9A2B 100%);
  border-radius: 16px 16px 0 0;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .loop-bundle-product-card {
    border-radius: 12px !important;
  }
  
  .loop-bundle-product-image-container {
    height: 180px !important;
  }
  
  .loop-card-body {
    padding: 12px !important;
  }
  
  .loop-bundle-product-card-title {
    font-size: 14px !important;
    min-height: 40px !important;
  }
  
  .loop-bundle-product-card-description {
    font-size: 12px !important;
  }
  
  .loop-discounted-price {
    font-size: 16px !important;
  }
  
  .loop-card-footer {
    padding: 10px 12px 12px !important;
  }
}

@media (max-width: 480px) {
  .loop-bundle-product-card {
    border-radius: 10px !important;
  }
  
  .loop-bundle-product-image-container {
    height: 160px !important;
  }
  
  .loop-bundle-product-card:hover {
    transform: translateY(-3px) !important;
  }
}

/* ========================================
   GRID LAYOUT OPTIMIZATION
   ======================================== */

.loop-products-align {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 24px !important;
  width: 100% !important;
}

@media (max-width: 1024px) {
  .loop-products-align {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 20px !important;
  }
}

@media (max-width: 768px) {
  .loop-products-align {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 16px !important;
  }
}

@media (max-width: 480px) {
  .loop-products-align {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}
.loop-bundle-product-image-container {
  width: 100% !important;
  height: 200px !important; /* Adjust this value - try 180px, 200px, 220px */
  overflow: hidden !important;
}

.loop-image-product-lg {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.loop-image-product-lg img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}


@media (max-width: 768px) {
  .loop-bundle-product-image-container {
    height: 180px !important;
  }
}
/* ============================================
   FRESHEO - SELECTED ITEMS IMAGE FIX
   Force smaller size despite inline styles
   ============================================ */

.loop-selected-variant-info-container img {
  width: 50px !important;
  height: 50px !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 8px !important;
}

/* Ensure it stays square */
.loop-selected-variant-info-container img {
  aspect-ratio: 1/1 !important;
  flex-shrink: 0 !important;
}

/* Add Button */
.loop-btn-add-product {
    background-color: var(--fresheo-text-main) !important;
    color: white !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    width: 100% !important;
    padding: var(--space-3) !important;
    transition: var(--transition-fast) !important;
    border: none !important;
}

/* Quantity Controls / Add Button */
.loop-card-footer {
    padding: 0 16px 16px !important;
}

/* Add Button */
.loop-btn-add-product {
    background-color: #9ABE36 !important;
    color: white !important;
    border-radius: 9999px !important;
    font-weight: 600 !important;
    width: 100% !important;
    padding: 12px !important;
    transition: all 0.2s ease !important;
    border: none !important;
}

.loop-btn-add-product:hover {
    background-color: #9ABE36 !important;
    transform: scale(1.02);
}

/* Quantity Adjustments (Inside Card) */
.loop-bundle-product-quantity-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #f5f5f5 !important;
    border-radius: 9999px !important;
    padding: 2px !important;
}

.loop-btn-input-decrease,
.loop-btn-input-increase {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: none !important;
    background: white !important;
    color: #1a1a1a !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.loop-btn-input-decrease:hover,
.loop-btn-input-increase:hover {
    background: #9ABE36 !important;
    color: white !important;
}

.loop-form-input {
    background: transparent !important;
    border: none !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    color: #1a1a1a !important;
    width: 40px !important;
    text-align: center !important;
}
.loop-bundle-widget-radio-btn selected{background-color:#9ABE36;}
.loop-bundle-footer-discount-section{background-color::#9ABE36 !important;}
.loop-h1{text-align: center;}

@media (max-width: 768px) {
  .loop-bundle-title {
    font-size: 16px;
  }
}
