/* ── BKS Cart Toast Notification ──────────────────────────────────────── */
#bks-cart-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    min-width: 240px;
    max-width: 360px;
}

#bks-cart-toast.bks-toast-show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#bks-cart-toast.bks-toast-success { background: #2e7d32; }
#bks-cart-toast.bks-toast-error   { background: #c62828; }
#bks-cart-toast.bks-toast-info    { background: #1565c0; }

#bks-cart-toast-icon {
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ── Mini-cart counter badge ─────────────────────────────────────────────── */
/* Ensure parent doesn't clip the absolutely-positioned badge */
.action.showcart,
.minicart-wrapper .action.showcart {
    position: relative !important;
    overflow: visible !important;
}

.action.showcart .counter.qty {
    display: block !important;
    position: absolute !important;
    top: -6px !important;
    left: auto !important;
    right: 2px !important;
    min-width: 18px !important;
    height: 18px !important;
    line-height: 18px !important;
    padding: 0 4px !important;
    background: #e53935 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    font-family: 'Poppins', sans-serif !important;
    border-radius: 50% !important;
    text-align: center !important;
    overflow: visible !important;
    z-index: 10 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3) !important;
}

.action.showcart .counter.qty.empty {
    display: none !important;
}

.action.showcart .counter.qty .counter-number {
    color: #fff !important;
}

/* Loading spinner on button while adding */
.tocart.loading,
button.loading {
    opacity: 0.65;
    cursor: wait;
    position: relative;
}

/* ── Out of Stock button styling ─────────────────────────────────────────── */
button.tocart[disabled],
button.action.tocart[disabled],
.product-item-actions button[disabled],
.box-tocart button[disabled],
form[data-role="tocart-form"] button[disabled] {
    background: #bdbdbd !important;
    border-color: #bdbdbd !important;
    color: #fff !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    box-shadow: none !important;
    pointer-events: auto !important; /* keep visible but block via JS */
}

button.tocart[disabled]:hover,
button.action.tocart[disabled]:hover,
form[data-role="tocart-form"] button[disabled]:hover {
    background: #bdbdbd !important;
    transform: none !important;
}

/* ── Product Card: always-visible price + Add to Cart ───────────────────── */
/* Override hover-only display — show price and button by default */
.products-grid .product-item .product-item-info,
.feature-container .product-item-info,
.newproduct-container .product-item-info,
.saleproduct-container .product-item-info,
.producttab-container .product-item-info,
.recentproduct-slider .product-item-info {
    overflow: visible !important;
    padding-bottom: 0 !important;
}

/* Image fades on hover */
.products-grid .product-item .product-item-info:hover .product-item-images,
.feature-container .product-item-info:hover .product-item-images,
.newproduct-container .product-item-info:hover .product-item-images,
.saleproduct-container .product-item-info:hover .product-item-images,
.producttab-container .product-item-info:hover .product-item-images,
.recentproduct-slider .product-item-info:hover .product-item-images {
    opacity: 1 !important;
}

/* Keep price always visible even on hover */
.products-grid .product-item .product-item-info:hover .product-item-details .price-box,
.feature-container .product-item-info:hover .product-item-details .price-box,
.newproduct-container .product-item-info:hover .product-item-details .price-box,
.saleproduct-container .product-item-info:hover .product-item-details .price-box,
.producttab-container .product-item-info:hover .product-item-details .price-box,
.recentproduct-slider .product-item-info:hover .product-item-details .price-box {
    opacity: 1 !important;
}

/* Move Add to Cart out of absolute overlay into normal flow */
.products-grid .product-item .add-to-cart-primary,
.feature-container .add-to-cart-primary,
.newproduct-container .add-to-cart-primary,
.saleproduct-container .add-to-cart-primary,
.producttab-container .add-to-cart-primary,
.recentproduct-slider .add-to-cart-primary {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
    padding: 10px 10px 12px !important;
    background: none !important;
    width: auto !important;
}

/* Hide wishlist/compare hover overlay */
.products-grid .product-item .add-to-links-secondary,
.feature-container .add-to-links-secondary,
.newproduct-container .add-to-links-secondary,
.saleproduct-container .add-to-links-secondary,
.producttab-container .add-to-links-secondary,
.recentproduct-slider .add-to-links-secondary {
    display: none !important;
}

/* Style the Add to Cart button */
.products-grid .product-item .tocart,
.feature-container .tocart,
.newproduct-container .tocart,
.saleproduct-container .tocart,
.producttab-container .tocart,
.recentproduct-slider .tocart {
    width: 100% !important;
    background: #78a206 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 0 18px 18px !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    letter-spacing: 0.5px !important;
    transition: background 0.2s !important;
}

.products-grid .product-item .tocart:hover,
.feature-container .tocart:hover,
.newproduct-container .tocart:hover,
.saleproduct-container .tocart:hover,
.producttab-container .tocart:hover,
.recentproduct-slider .tocart:hover {
    background: #5e8004 !important;
}

/* ── Remove image opacity on hover (targets the actual photo element) ─── */
.product-item-info:hover .product-item-images .product-image-wrapper .product-image-photo,
.product-item-info:hover .product-item-images .product-image-photo {
    opacity: 1 !important;
    transition: none !important;
}
