/* Premium Product Showcase Styles - Carousel Mode */
.premium-products-section {
    padding: 80px 0;
    background: #fff;
    overflow: hidden;
    /* Prevent side scroll if any */
}

/* Carousel Container */
.premium-carousel-container {
    position: relative;
    max-width: 1100px;
    width: 100%;
    margin: 40px auto 0;
    padding: 0 15px; /* Added padding to prevent cards touching edges */
}

/* Wrapper for the sliding track */
.premium-carousel-wrapper {
    display: flex;
    overflow-x: hidden;
    /* We use JS to scroll, hiding scrollbar */
    width: 100%;
    position: relative;
    scroll-behavior: smooth;
    /* Native smooth scroll */
    scroll-snap-type: x mandatory;
}

/* Card Container - Slides */
.premium-carousel-wrapper .premium-product-card {
    min-width: 100%;
    flex-shrink: 0;
}

.premium-product-card {
    background: #fff;
    border-radius: 20px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: 400px;
    scroll-snap-align: start;
    /* Snap to start */
    opacity: 1;
    /* Always visible, just scrolled out of view */
    transform: none;
    transition: transform 0.3s ease;
}

/* Hover Effect needs to apply to transform */
.premium-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.05);
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eee;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.prev-btn {
    left: -70px;
}

.next-btn {
    right: -70px;
}

/* Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active,
.dot:hover {
    background: var(--primary-color);
}


/* Image Area - Left Side */
.premium-img-box {
    position: relative;
    width: 50%;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(180deg, #fdfbf7 0%, #fff 100%);
    flex-shrink: 0;
}

/* Inner Slider Images */
.premium-img-box img,
.premium-img-box .slide img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed to contain to avoid cutting off statues */
    padding: 40px; /* Added padding for better framing */
    transition: transform 0.6s ease;
}

/* Specific Override for High-Value Murugan and Shivlingam to show full statue */
#high-value-murugan-img img,
#shivlingam-img img,
#chain-img img,
#rasalingam-img img {
    object-fit: contain;
    padding: 20px;
}

/* Content Area - Right Side */
.premium-card-content {
    padding: 0 60px; /* Increased side padding */
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
    width: 50%;
}

.premium-category {
    font-size: 13px;
    text-transform: uppercase;
    color: #aaa;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 5px;
}

.premium-title {
    font-size: 34px; /* Larger title */
    font-weight: 800;
    color: #1a1a1a; /* Darker text for premium feel */
    line-height: 1.2;
    font-family: var(--font-heading, sans-serif);
    margin-bottom: 10px;
}

.premium-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    margin: 5px 0 20px;
    max-width: 95%;
}

.premium-rating {
    font-size: 14px;
    color: #ff9100;
    margin-bottom: 10px;
}

/* Action Row - Desktop Default */
.premium-card-content > div:last-child {
    display: flex;
    align-items: center;
    gap: 30px; /* Space between price and button */
    margin-top: 10px;
}

.premium-price-row {
    margin-top: 0;
}

.current-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

/* Action Button */
.premium-add-btn {
    width: auto;
    min-width: 180px;
    padding: 14px 35px;
    border-radius: 50px;
    border: none;
    background: var(--icon-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    margin-top: 0; /* Remove top margin */
    box-shadow: 0 8px 20px rgba(194, 24, 91, 0.25);
    letter-spacing: 1px;
}

.premium-add-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.4s ease;
    z-index: -1;
}

.premium-add-btn:hover {
    background: var(--icon-gradient-hover);
    color: #fff;
    box-shadow: 0 10px 25px rgba(194, 24, 91, 0.4);
    transform: translateY(-3px);
}

.premium-add-btn::before {
    display: none !important;
}

/* Badging */
.premium-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #a0134a 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 30px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(194, 24, 91, 0.3);
}

.wishlist-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 18px;
    z-index: 5;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    color: #ff4757;
    border-color: #ff4757;
}

/* Responsive */
@media (max-width: 900px) {
    .premium-carousel-container {
        padding: 0 10px;
    }

    .prev-btn {
        left: -10px;
    }

    .next-btn {
        right: -10px;
    }
}

@media (max-width: 1024px) {
    .premium-carousel-container {
        padding: 0 10px;
        margin-top: 15px;
    }

    .premium-product-card {
        flex-direction: column;
        height: auto;
        min-height: 450px;
        margin-bottom: 5px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.08);
        width: 100%;
    }

    .premium-img-box {
        width: 100%;
        height: 300px;
        background: #fdfcfb;
        border-bottom: 1px solid #f0f0f0;
        position: relative;
        overflow: hidden;
        display: block;
    }
    
    .premium-img-box .slider-container {
        position: absolute;
    }

    .premium-img-box .slide img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 90%;
        max-height: 90%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .premium-card-content {
        width: 100%;
        padding: 25px 20px;
        text-align: center;
        align-items: center;
        gap: 12px;
        background: #fff;
    }

    .premium-desc {
        max-width: 100%;
        font-size: 13px;
        margin: 0 0 10px;
        line-height: 1.5;
        color: #777;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .carousel-btn {
        display: flex;
        width: 35px;
        height: 35px;
        font-size: 12px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(4px);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .prev-btn {
        left: 10px;
        top: 150px;
    }

    .next-btn {
        right: 10px;
        top: 150px;
    }

    .carousel-indicators {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .premium-title {
        font-size: 20px; /* Slightly larger title */
        margin-bottom: 5px;
    }

    .premium-card-content {
        padding: 20px;
        text-align: left; /* Align text left for better readability */
        align-items: flex-start;
    }

    /* Single Line Action Row on Mobile */
    .premium-card-content > div:last-child {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 15px;
        margin-top: 15px;
    }

    .premium-price-row {
        margin-top: 0;
    }

    .current-price {
        font-size: 20px;
        margin-bottom: 0;
    }

    .premium-add-btn {
        width: auto; /* Allow button to size itself */
        flex: 1; /* Take remaining space */
        margin-top: 0;
        padding: 12px 15px;
        font-size: 13px;
        white-space: nowrap;
        min-width: 120px;
    }
    
    /* Move arrows to the sides of the image for easier navigation */
    .prev-btn {
        left: 5px;
        top: 25%; /* align with image center approx */
    }

    .next-btn {
        right: 5px;
        top: 25%;
    }
}

@media (max-width: 480px) {
    .premium-img-box {
        height: 250px; /* Larger image area */
    }
    
    .premium-product-card {
        min-height: auto; 
    }

    .premium-card-content {
        padding: 15px;
    }

    /* Further refine the single line for small screens */
    .premium-card-content > div:last-child {
        gap: 10px;
    }
    
    .premium-add-btn {
        padding: 10px 12px;
        font-size: 12px;
    }

    /* Hide arrows on very small screens if they obscure too much, or style them minimally */
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
        background: rgba(255, 255, 255, 0.8);
    }
}