/* Hero Slider Styles */
.hero-slider-section {
    position: relative;
    height: 80vh;
    /* Reduced height to not cover everything on desktop */
    min-height: 500px;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-image: var(--ls-bg-desktop);
    background-color: #000;
    /* Solid fallback */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay */
    z-index: 2;
    /* Above the video */
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
    /* Active slide group priority */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    /* Below the overlay and content */
}

.hero-video.v-mobile {
    display: none;
}

/* Positions */
.slide-content-wrapper {
    padding: 60px;
    width: 100%;
    height: 100%;
    display: flex;
}

.slide-pos-left-middle {
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.slide-pos-left-bottom {
    align-items: flex-end;
    justify-content: flex-start;
    text-align: left;
    padding-bottom: 80px;
}

.slide-pos-center-middle {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide-pos-center-bottom {
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    padding-bottom: 80px;
}

.slide-pos-right-middle {
    align-items: center;
    justify-content: flex-end;
    text-align: right;
}

.slide-pos-right-bottom {
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
    padding-bottom: 80px;
}

/* Text alignments adjusted by parent text-align */
.slide-pos-left-middle .slide-content,
.slide-pos-left-bottom .slide-content {
    text-align: left;
}

.slide-pos-right-middle .slide-content,
.slide-pos-right-bottom .slide-content {
    text-align: right;
}

.slide-content {
    color: #fff;
    max-width: 600px;
    z-index: 10;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-subtitle {
    display: block;
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.slide-title {
    font-size: 4rem;
    font-weight: 900;
    margin-top: 20px;
    margin-bottom: 30px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.btn-hero {
    display: inline-block;
    padding: 15px 40px;
    background-color: #f8f8f8;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background-color: #000;
    color: #fff;
}

/* Controls */
.slider-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 100;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.slider-controls button:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slider-prev {
    left: 30px;
}

.slider-next {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 0;
    cursor: pointer;
}

.slider-dot.active {
    background: #fff;
}

@media (max-width: 768px) {
    .hero-slider-section {
        height: 70vh;
    }

    .hero-slide {
        background-image: none !important;
        background-image: var(--ls-bg-mobile) !important;
    }


    .slide-title {
        font-size: 2.5rem;
    }

    .slide-content-wrapper {
        padding: 30px;
    }
}

/* =========================================
   Product Slider Styles
   ========================================= */

.product-slider-section {
    padding: 80px 0;
    background-color: #fff;
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    color: #111;
}

/* Tab Navigation */
.product-tabs-nav {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tab-link {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    cursor: pointer;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.tab-link:hover {
    color: #111;
}

.tab-link.active {
    color: #111;
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #d4a373;
}

/* Product Grid/Slider */
.product-tabs-content {
    position: relative;
}

.tab-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tab-panel.active {
    display: block;
    opacity: 1;
}

.products-slider-container {
    display: flex;
    gap: 20px;
    overflow: hidden;
    padding: 20px;
    margin: -20px;
}

/* Product Card Styling */
.product-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 280px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    position: relative;
}

/* Main home slider: 4 products visible on desktop */
#main-prod-slider .product-card {
    flex: 0 0 calc(25% - 14px);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    aspect-ratio: 430/538;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.product-info {
    padding: 0 5px;
    position: relative;
    z-index: 1;
}

/* Hover background layer for product cards (fade/scale) */
.product-card-hover-layer {
    position: absolute;
    inset: -15px -15px -2px -15px;
    visibility: hidden;
    opacity: 0;
    transform: scale(0.98);
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease, visibility 0s 0.3s ease, transform 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.product-card-hover:hover .product-card-hover-layer {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, visibility 0s ease, transform 0.3s ease;
}

.product-card-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #111;
    line-height: 1.2;
}

.product-card-meta {
    font-size: 0.8rem;
    color: #a5a5a5;
    margin-bottom: 8px;
    display: block;
}

.product-rating {
    color: #EABE12;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.product-card-price {
    font-size: 0.85rem;
    color: #111;
    font-weight: 600;
}

.product-card-price del {
    text-decoration: line-through;
    color: #ccc;
    font-size: 0.85rem;
    margin-right: 8px;
    font-weight: 400;
}

.price-sale {
    color: #111;
}

/* Product Slider Dots */
.product-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.product-slider-dots .slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-slider-dots .slider-dot:hover {
    background-color: #888;
}

.product-slider-dots .slider-dot.active {
    background-color: #d4a76a;
    transform: scale(1.2);
}

/* Slider Controls */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-nav-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.prev-prod {
    left: -20px;
}

.next-prod {
    right: -20px;
}

@media (max-width: 991px) {
    .product-card {
        flex: 0 0 calc(50% - 10px);
    }

    .prev-prod {
        left: 10px;
    }

    .next-prod {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .product-card {
        flex: 0 0 85%;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .product-tabs-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: none;
    }

    .product-tabs-nav::-webkit-scrollbar {
        display: none;
    }
}