/**
 * iScents Core 2 - Home Products Styles
 * Custom product grid for homepage
 */

/* ========== SCENT PROFILE ========== */

/* Scent Profile Wrapper - Single color, centered, NO background */
.iscents-home-products-wrapper .scent-profile-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0 5px 0;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    flex-wrap: wrap;
    letter-spacing: 0.5px;
    background: none !important;
    padding: 0;
}

/* Scent Profile Items */
.iscents-home-products-wrapper .scent-profile-item {
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Scent Profile Dot Separator */
.iscents-home-products-wrapper .scent-profile-dot {
    font-size: 8px;
    vertical-align: middle;
    opacity: 0.6;
}

/* ========== LONGEVITY ========== */

/* Longevity Wrapper */
.iscents-home-products-wrapper .longevity-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px 0 10px 0;
    color: #666;
    font-size: 12px;
    gap: 5px;
}

/* Longevity Icon */
.iscents-home-products-wrapper .longevity-wrapper svg {
    color: #C9962E;
    stroke-width: 2.5;
    flex-shrink: 0;
}

.iscents-home-products-wrapper .longevity-text {
    font-weight: 500;
    color: #555;
}

/* ========== PRICE & SHIPPING ========== */

/* Price and Rating Wrapper */
.iscents-home-products-wrapper .price-rating-wrapper {
    margin-top: 10px;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

/* Price Wrapper */
.iscents-home-products-wrapper .pix-product-price-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
}

/* Free Shipping Label */
.iscents-home-products-wrapper .free-shipping-label {
    display: inline-flex;
    align-items: center;
    background: #f0f8ff;
    color: #008000;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

/* ========== RATING STARS ========== */

/* Center align star ratings */
.iscents-home-products-wrapper .pix-product-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5px;
}

.iscents-home-products-wrapper .pix-product-rating .star-rating {
    margin: 0 auto !important;
    float: none !important;
}

/* ========== VIEW BUTTON ========== */

/* View Fragrance Button */
.iscents-home-products-wrapper .view-fragrance-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-align: center;
    background: #000;
    color: #fff;
    padding: 10px 16px;
    margin-top: 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

/* Button Arrow Icon */
.iscents-home-products-wrapper .btn-arrow-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* View Fragrance Button Hover */
.iscents-home-products-wrapper .view-fragrance-btn:hover {
    background: #333 !important;
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.iscents-home-products-wrapper .view-fragrance-btn:hover .btn-arrow-icon {
    transform: translateX(3px);
}



/* ========== VIEW ALL FRAGRANCES BUTTON ========== */

/* View All Fragrances Wrapper */
.view-all-fragrances-wrapper {
    text-align: center;
    /*margin-top: 30px;*/
    margin-bottom: 20px;
    width: 100%;
}

/* View All Fragrances Button */
.view-all-fragrances-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: #C9962E;
    border: 2px solid #C9962E;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* View All Arrow Icon */
.view-all-arrow-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* Hover Effect - Fill with gold */
.view-all-fragrances-btn:hover {
    background: #C9962E;
    color: #ffffff !important;
    border-color: #C9962E;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(201, 150, 46, 0.3);
}

.view-all-fragrances-btn:hover .view-all-arrow-icon {
    transform: translateX(3px);
}

/* Active/Pressed State */
.view-all-fragrances-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(201, 150, 46, 0.3);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .view-all-fragrances-btn {
        padding: 10px 24px;
        font-size: 14px;
        gap: 8px;
    }
    
    .view-all-fragrances-wrapper {
        margin-top: 20px;
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 480px) {
    .view-all-fragrances-btn {
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }
}

/* ========== PRODUCT GRID - OVERRIDE ELEMENTOR ========== */

/* Force products to display in grid */
.iscents-home-products-wrapper ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    gap: 0 !important;
}

.iscents-home-products-wrapper ul.products li.product {
    float: none !important;
    list-style: none !important;
    position: relative !important;
    margin-bottom: 2.992em !important;
    clear: none !important;
    box-sizing: border-box !important;
}

/* Desktop and Large Screens (1025px and above) - 5 columns */
@media screen and (min-width: 1025px) {
    .iscents-home-products-wrapper ul.products.columns-5 li.product {
        width: 18.4% !important;
        margin-right: 2% !important;
        flex: 0 0 18.4% !important;
        max-width: 18.4% !important;
    }
    
    .iscents-home-products-wrapper ul.products.columns-5 li.product:nth-child(5n) {
        margin-right: 0 !important;
    }
    
    .iscents-home-products-wrapper ul.products.columns-5 li.product:nth-child(5n+1) {
        clear: both !important;
    }
    
    /* Support for 4 columns */
    .iscents-home-products-wrapper ul.products.columns-4 li.product {
        width: 22.15% !important;
        margin-right: 3.8% !important;
        flex: 0 0 22.15% !important;
        max-width: 22.15% !important;
    }
    
    .iscents-home-products-wrapper ul.products.columns-4 li.product:nth-child(4n) {
        margin-right: 0 !important;
    }
    
    .iscents-home-products-wrapper ul.products.columns-4 li.product:nth-child(4n+1) {
        clear: both !important;
    }
}

/* Tablet Landscape (769px to 1024px) - 3 columns */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .iscents-home-products-wrapper ul.products.columns-5 li.product,
    .iscents-home-products-wrapper ul.products.columns-4 li.product {
        width: 30.7966666667% !important;
        margin-right: 3.8% !important;
        flex: 0 0 30.7966666667% !important;
        max-width: 30.7966666667% !important;
    }
    
    .iscents-home-products-wrapper ul.products.columns-5 li.product:nth-child(3n),
    .iscents-home-products-wrapper ul.products.columns-4 li.product:nth-child(3n) {
        margin-right: 0 !important;
    }
    
    .iscents-home-products-wrapper ul.products.columns-5 li.product:nth-child(3n+1),
    .iscents-home-products-wrapper ul.products.columns-4 li.product:nth-child(3n+1) {
        clear: both !important;
    }
    
    /* Reset other nth-child rules */
    .iscents-home-products-wrapper ul.products.columns-5 li.product:nth-child(4n),
    .iscents-home-products-wrapper ul.products.columns-5 li.product:nth-child(5n),
    .iscents-home-products-wrapper ul.products.columns-4 li.product:nth-child(4n) {
        margin-right: 3.8% !important;
    }
    
    .iscents-home-products-wrapper ul.products.columns-5 li.product:nth-child(4n+1),
    .iscents-home-products-wrapper ul.products.columns-5 li.product:nth-child(5n+1),
    .iscents-home-products-wrapper ul.products.columns-4 li.product:nth-child(4n+1) {
        clear: none !important;
    }
    
    /* Adjust text sizes */
    .iscents-home-products-wrapper .scent-profile-wrapper {
        font-size: 12px;
        gap: 5px;
    }
    
    .iscents-home-products-wrapper .longevity-wrapper {
        font-size: 11px;
    }
    
    .iscents-home-products-wrapper .free-shipping-label {
        font-size: 9px;
        padding: 2px 6px;
    }
}

/* Tablet Portrait and Large Mobile (481px to 768px) - 2 columns */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .iscents-home-products-wrapper ul.products.columns-5 li.product,
    .iscents-home-products-wrapper ul.products.columns-4 li.product,
    .iscents-home-products-wrapper ul.products.columns-3 li.product,
    .iscents-home-products-wrapper ul.products.columns-2 li.product {
        width: 48% !important;
        margin-right: 4% !important;
        flex: 0 0 48% !important;
        max-width: 48% !important;
    }
    
    .iscents-home-products-wrapper ul.products li.product:nth-child(2n) {
        margin-right: 0 !important;
    }
    
    .iscents-home-products-wrapper ul.products li.product:nth-child(2n+1) {
        clear: both !important;
    }
    
    /* Reset all other nth-child rules */
    .iscents-home-products-wrapper ul.products li.product:nth-child(3n),
    .iscents-home-products-wrapper ul.products li.product:nth-child(4n),
    .iscents-home-products-wrapper ul.products li.product:nth-child(5n) {
        margin-right: 4% !important;
    }
    
    .iscents-home-products-wrapper ul.products li.product:nth-child(3n+1),
    .iscents-home-products-wrapper ul.products li.product:nth-child(4n+1),
    .iscents-home-products-wrapper ul.products li.product:nth-child(5n+1) {
        clear: none !important;
    }
    
    /* Adjust text sizes */
    .iscents-home-products-wrapper .scent-profile-wrapper {
        font-size: 11px;
        gap: 4px;
    }
    
    .iscents-home-products-wrapper .longevity-wrapper {
        font-size: 10px;
        gap: 3px;
    }
    
    .iscents-home-products-wrapper .longevity-wrapper svg {
        width: 12px;
        height: 12px;
    }
    
    .iscents-home-products-wrapper .free-shipping-label {
        font-size: 8px;
        padding: 2px 5px;
    }
    
    .iscents-home-products-wrapper .view-fragrance-btn {
        padding: 8px 12px;
        font-size: 12px;
        gap: 5px;
    }
    
    .iscents-home-products-wrapper .btn-arrow-icon {
        width: 14px;
        height: 14px;
    }
}

/* Mobile (320px to 480px) - 1 column */
@media screen and (max-width: 480px) {
    .iscents-home-products-wrapper ul.products.columns-5 li.product,
    .iscents-home-products-wrapper ul.products.columns-4 li.product,
    .iscents-home-products-wrapper ul.products.columns-3 li.product,
    .iscents-home-products-wrapper ul.products.columns-2 li.product {
        width: 100% !important;
        margin-right: 0 !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        clear: both !important;
        margin-bottom: 2em !important;
    }
    
    /* Reset all nth-child rules */
    .iscents-home-products-wrapper ul.products li.product:nth-child(n) {
        margin-right: 0 !important;
        clear: both !important;
    }
    
    /* Adjust spacing */
    .iscents-home-products-wrapper .scent-profile-wrapper {
        font-size: 14px;
        gap: 6px;
    }
    
    .iscents-home-products-wrapper .longevity-wrapper {
        font-size: 12px;
    }
    
    .iscents-home-products-wrapper .pix-product-price-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .iscents-home-products-wrapper .free-shipping-label {
        align-self: flex-start;
        font-size: 10px;
    }
    
    .iscents-home-products-wrapper .view-fragrance-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ========== UTILITY ========== */

/* Hide default WooCommerce elements */
.iscents-home-products-wrapper .tinv-wraper,
.iscents-home-products-wrapper .tinvwl_add_to_wishlist_button,
.iscents-home-products-wrapper .pix-item-badges,
.iscents-home-products-wrapper .pix-pl-10.align-self-stretch.d-flex a[data-product_id] {
    display: none !important;
}

/* Smooth hover for product cards */
.iscents-home-products-wrapper .pix-product-item {
    transition: all 0.3s ease;
}

.iscents-home-products-wrapper .pix-product-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Ensure product images maintain aspect ratio */
.iscents-home-products-wrapper .pix-product-img-hover img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========== SECTION HEADER ========== */

.home-products-section-header {
    text-align: center;
    margin: 30px 0;
}

.home-products-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #C9962E;
    margin-bottom: 8px;
}

.home-products-section-header .heading-text {
    
}

.home-products-section-header .mb-12 {
    margin-bottom: 12px;
}

.home-products-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0 auto;
    line-height: 1.6;
    max-width: 700px;
}

/* ========== RESPONSIVE HEADER ========== */

@media screen and (max-width: 1024px) {
    .home-products-section-header .heading-text {
        font-size: 24px;
    }
}

@media screen and (max-width: 768px) {
    .home-products-section-header {
        margin-bottom: 20px;
    }
    
    .home-products-section-header .heading-text {
        font-size: 22px;
    }
    
    .home-products-subtitle {
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .home-products-section-header .heading-text {
        font-size: 20px;
    }
    
    .home-products-eyebrow {
        font-size: 11px;
        letter-spacing: 1.5px;
    }
    
    .home-products-subtitle {
        font-size: 12px;
    }
}
/* Mobile - Center price and free shipping */
@media screen and (max-width: 480px) {
    .pix-product-price-wrapper {
        flex-direction: column;
        align-items: center !important;
        justify-content: center;
        gap: 8px;
        text-align: center;
    }
    
    .free-shipping-label {
        align-self: center !important;
    }
    
    .price-rating-wrapper {
        text-align: center;
    }
    
    .pix-product-price-rating {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
}