.category-pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 20px auto !important;
    list-style: none !important;
    padding-left: 0 !important;
    flex-wrap: wrap !important;
}

.category-pagination li {
    display: inline-block !important;
    margin: 0 !important;
}

.category-pagination li a,
.category-pagination li span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 1px solid #e0e0e0 !important;
    color: #1a5740 !important;
    background-color: #fff !important;
    font-weight: bold !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.category-pagination li a:hover {
    background-color: #1a5740 !important;
    color: #fff !important;
    border-color: #1a5740 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(26, 87, 64, 0.2) !important;
}

.category-pagination li.active a,
.category-pagination li.active span,
.category-pagination li a.current {
    background-color: #1a5740 !important;
    color: #fff !important;
    border-color: #1a5740 !important;
}

/* RESPONSIVE ADJUSTMENTS FOR MOBILE DEVICES */
@media (max-width: 576px) {
    .category-pagination {
        gap: 4px !important;
        margin: 15px auto !important;
    }
    .category-pagination li a,
    .category-pagination li span {
        width: 32px !important;
        height: 32px !important;
        font-size: 11px !important;
    }
}

/* Premium Load More Button Styles */
.btn-loadmore {
    background-color: #1a5740;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 35px;
    border-radius: 30px;
    border: 2px solid #1a5740;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(26, 87, 64, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    outline: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-loadmore:hover {
    background-color: #113c2c;
    border-color: #113c2c;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(26, 87, 64, 0.4);
    transform: translateY(-2px);
    text-decoration: none;
}
.btn-loadmore:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(26, 87, 64, 0.2);
}
.btn-loadmore:disabled {
    background-color: #a3c4b7;
    border-color: #a3c4b7;
    color: #ffffff;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.spinner-inline {
    font-size: 16px;
}

/* 5-Column Product Grid Layout */
#productGrid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 15px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#productGrid::before,
#productGrid::after {
    display: none !important;
}

#productGrid > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Responsive columns */
@media (max-width: 1200px) {
    #productGrid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 992px) {
    #productGrid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 768px) {
    #productGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

/* Premium Card Action Buttons Layout (Clean Circular Icons, Scale Zoom on hover) */
.product-action-best {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    min-height: auto !important;
    margin-top: 10px !important;
}

/* Bottom Add to Cart Button (Narrowed pill-style centered button) */
.product-action-best .btn-best {
    width: auto !important;
    min-width: 120px !important;
    max-width: 85% !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 5px 18px !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease-in-out !important;
}

.product-action-best .btn-best:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
}

/* Floating Wishlist Button on Product Image (Top-Right corner) */
.product-wishlist-btn {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    left: auto !important;
    z-index: 12 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #94a3b8 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06) !important;
    padding: 0 !important;
    outline: none !important;
    text-decoration: none !important;
}

.product-wishlist-btn:hover {
    background: #ffffff !important;
    color: #ef4444 !important;
    border-color: #fee2e2 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.15) !important;
}

.product-wishlist-btn:active {
    transform: scale(0.95) !important;
}

/* Move Promo & Hot Badges to the LEFT to avoid overlapping with the Wishlist button on the RIGHT */
.product-label-promo,
.product-label-hot {
    right: auto !important;
    left: 15px !important;
    position: absolute !important;
    top: 15px !important;
    z-index: 10 !important;
}

/* Pulsing Lightning Bolt Promo Badge Styling */
.product-label-promo {
    background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    animation: pulse-badge-glow 1.5s infinite alternate !important;
}

@keyframes pulse-badge-glow {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    }
    100% {
        transform: scale(1.05);
        box-shadow: 0 2px 14px rgba(239, 68, 68, 0.7);
    }
}

/* Card alignment system to keep all cards and buttons perfectly aligned horizontally */
.product-best-seller {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    height: 100% !important;
}

.product-img-wrap-best {
    flex-shrink: 0 !important;
    position: relative !important;
}

.product-caption-best {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    flex-grow: 1 !important;
    justify-content: flex-start !important;
    min-height: auto !important; /* Override standard min-height */
    padding-bottom: 10px !important;
}

.product-action-best {
    margin-top: auto !important;
    padding-top: 10px !important; /* Force a 10px gap between the button and whatever content is directly above it */
    width: 100% !important;
}

/* Responsive Overrides for Mobile Screen Viewports */
@media (max-width: 576px) {
    .product-wishlist-btn {
        top: 8px !important;
        right: 8px !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
    }
    
    .product-label-promo,
    .product-label-hot {
        top: 8px !important;
        left: 8px !important;
        font-size: 9px !important;
        padding: 2px 6px !important;
    }
    
    .product-img-wrap-best {
        min-height: 130px !important;
        max-height: 150px !important;
    }
    
    .product-caption-best {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
    
    .product-caption-title-best {
        font-size: 12px !important;
        margin-top: 5px !important;
        margin-bottom: 2px !important;
        min-height: 2.8em !important;
    }
    
    .product-caption-price-new-best {
        font-size: 12px !important;
    }
    
    .product-caption-price-old-best {
        font-size: 9px !important;
    }
    
    .product-labels-prices-best {
        font-size: 9px !important;
    }
    
    .product-sold-best {
        font-size: 9px !important;
        margin-bottom: 2px !important;
    }
    
    .product-action-best .btn-best {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 10px !important;
        padding: 5px 8px !important;
        border-radius: 6px !important;
    }
}

/* Force Owl Carousel on Detail Page to stretch items to equal heights */
.owl-detail-carousel .owl-stage {
    display: flex !important;
    align-items: stretch !important;
}

.owl-detail-carousel .owl-item {
    display: flex !important;
    align-items: stretch !important;
    height: auto !important;
}

.owl-detail-carousel .owl-item > div {
    width: 100% !important;
    display: flex !important;
    align-items: stretch !important;
    height: 100% !important;
}

/* 6-Column Layout for Homepage */
@media (min-width: 1200px) {
    .col-6-layout {
        width: 16.666667% !important;
        flex: 0 0 16.666667% !important;
        max-width: 16.666667% !important;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .col-6-layout {
        width: 20% !important;
        flex: 0 0 20% !important;
        max-width: 20% !important;
    }
}

.product-caption-title-best a {
    color: inherit !important;
    text-decoration: none !important;
    display: block;
}
.product-caption-title-best a:hover {
    color: #1a5740 !important;
    text-decoration: none !important;
}

