/* ========================================
   Homepage Styles - LAMA-Inspired
   Clean, minimal fashion brand layout
   ======================================== */

/* ---- Hero Slider ---- */
.hero-slider {
    margin-bottom: 0;
}

.hero-slider .carousel-item img,
.hero-slider .carousel-item video.banner-video {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
}

.hero-slider .carousel-caption {
    background: none;
    bottom: 15%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    text-align: center;
    padding: 0;
}

.hero-slider .carousel-caption h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff !important;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-slider .carousel-caption p {
    font-size: 22px;
    padding:10px;
    color: #fff !important;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.btn-shop-now {
    display: inline-block;
    background: #fff;
    color: #000 !important;
    padding: 12px 32px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none !important;
    border: 2px solid #000;
    transition: all 0.3s;
}

.btn-shop-now:hover {
    background: #000;
    color: #fff !important;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid #e5e5e5;
}

.carousel-controls .carousel-control-prev,
.carousel-controls .carousel-control-next {
    position: static;
    width: auto;
    opacity: 1;
    color: #333;
    font-size: 1rem;
    background: none;
}

.carousel-controls .carousel-control-prev i,
.carousel-controls .carousel-control-next i {
    color: #333 !important;
}

.carousel-controls .carousel-control-prev img,
.carousel-controls .carousel-control-next img {
    width: 14px;
    height: 14px;
    filter: none;
}

.carousel-counter {
    font-size: 0.85rem;
    color: #666 !important;
    letter-spacing: 1px;
}

.carousel-pause {
    background: none;
    border: none;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
}

.hero-fallback {
    background: #F2F2F2;
    padding: 80px 0;
}

.hero-fallback h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 3px;
}

/* ---- Product Sections (LAMA Layout) ---- */
.product-section {
    padding: 40px 0 30px;
    max-width: 100%;
}

.product-container {
    max-width: 2560px;
    padding: 0 30px;
}

/* Section Header: centered title + VIEW ALL */
.section-header {
    text-align: center;
    margin-bottom: 25px;
}

.section-title {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #000 !important;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-family: Arial, Helvetica, sans-serif;
}

.section-view-all {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 400;
    color: #000 !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}

.section-view-all:hover {
    opacity: 0.6;
}

/* Product Grid: 4 per row on desktop */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* Product Cards */
.product-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    text-align: center;
}

.product-link {
    text-decoration: none !important;
    display: block;
}

.product-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #f5f5f5;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Hover image (secondary) */
.product-image-wrap .img-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.product-card:hover .product-image-wrap .img-hover {
    opacity: 1;
}

.product-card:hover .product-image-wrap .img-primary:only-of-type {
    transform: scale(1.05);
}

/* Sale Badge - top-right */
.sale-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    left: auto;
    background: #000 !important;
    color: #fff !important;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border: 1px solid #000;
    border-radius: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}

/* ---- Product Hover Bar ---- */
.product-hover-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    padding: 10px 12px;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 3;
}

.product-card:hover .product-hover-bar {
    opacity: 1;
    transform: translateY(0);
}

.product-hover-bar .wishlist-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.1rem;
}

.product-hover-bar .wishlist-icon img {
    width: 18px;
    height: 18px;
    cursor: pointer;
    transition: color 0.2s;
    margin: 0;
    flex-shrink: 0;
}

.product-hover-bar .wishlist-icon:hover {
    color: #FADADD;
}

.quick-view-text {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    font-style: italic;
    color: #000;
    letter-spacing: 0.5px;
}

/* Scroll progress bar - hidden on desktop */
.scroll-progress {
    display: none;
}

/* Product Info */
.product-info {
    padding: 12px 8px 8px;
    position: relative;
}

.product-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #000 !important;
    margin: 0 0 6px;
    text-align: center;
    letter-spacing: 1px;
    line-height: 1.4;
    text-transform: uppercase;
}

.product-pricing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.original-price {
    font-size: 0.75rem;
    color: #999 !important;
    text-decoration: line-through;
    font-weight: 400;
}

.sale-price {
    font-size: 0.75rem;
    color: #000 !important;
    font-weight: 500;
}

/* ---- Category Banner (between sections) ---- */
.category-banner {
    margin: 0;
}

.category-banner a {
    text-decoration: none !important;
}

.category-banner-wrap {
    position: relative;
    overflow: hidden;
    max-height: 500px;
}

.category-banner-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 300px;
    max-height: 500px;
}

.category-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
}

.category-banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.category-banner-cta {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-bottom: 1px solid #fff;
    padding-bottom: 2px;
}

/* ---- View All Button (legacy support) ---- */
.btn-view-all {
    display: inline-block;
    padding: 10px 30px;
    background: #000;
    color: #fff !important;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: capitalize;
    text-decoration: none !important;
    transition: all 0.3s;
    border: 1px solid #000;
}

.btn-view-all:hover {
    background: #fff;
    color: #000 !important;
}

/* ---- Choose Options Button (legacy) ---- */
.btn-choose-options {
    display: block;
    width: calc(100% - 16px);
    margin-left: 8px;
    margin-right: 8px;
    padding: 10px 0;
    text-align: center;
    border: 1px solid #000;
    background: #fff;
    color: #000 !important;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    transition: all 0.3s;
    margin-top: 6px;
}

.btn-choose-options:hover {
    background: #000;
    color: #fff !important;
}

/* ---- Trust Section ---- */
.trust-section {
    padding: 50px 0;
    border-top: 1px solid #e5e5e5;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.trust-badge i {
    font-size: 1.8rem;
    color: #000 !important;
}

.trust-badge span {
    font-size: 0.8rem;
    font-weight: 500;
    color: #333 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-slider .carousel-caption h2 {
        font-size: 2rem;
    }

    .trust-badges {
        gap: 30px;
    }

    .category-banner-title {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }
}

@media (max-width: 767px) {
    /* Switch from grid to horizontal swipeable carousel on mobile */
    .product-grid {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0;
    }

    .product-grid::-webkit-scrollbar {
        display: none;
    }

    .product-grid .product-card {
        flex: 0 0 75%;
        min-width: 0;
        scroll-snap-align: start;
    }

    .product-container {
        padding: 0 15px;
    }

    /* Product image: taller on mobile, with overlay buttons */
    .product-image-wrap {
        aspect-ratio: 3/4;
        position: relative;
    }

    /* On mobile: hover bar always visible */
    .product-hover-bar {
        opacity: 1;
        transform: translateY(0);
        padding: 8px 10px;
    }

    .product-hover-bar .wishlist-icon {
        font-size: 1.1rem;
    }

    .product-hover-bar .wishlist-icon img {
        width: 16px;
        height: 16px;
    }

    .quick-view-text {
        font-size: 0.75rem;
    }

    .product-info {
        position: relative;
        padding: 10px 0 4px;
    }

    /* Product info: left-aligned on mobile */
    .product-name {
        text-align: left;
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .product-pricing {
        justify-content: flex-start;
    }

    .original-price {
        font-size: 0.7rem;
    }

    .sale-price {
        font-size: 0.7rem;
        font-weight: 600;
    }

    /* Scroll progress bar */
    .scroll-progress {
        display: block;
        width: 60px;
        height: 2px;
        background: #e5e5e5;
        margin: 10px 0 0;
        position: relative;
        overflow: hidden;
    }

    .scroll-progress-bar {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        background: #000;
        width: 25%;
        transition: left 0.2s ease;
    }

    /* Sale badge */
    .sale-badge {
        top: 10px;
        right: 10px;
        left: auto;
        font-size: 0.6rem;
        padding: 4px 8px;
    }

    /* Section header */
    .section-title {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    .product-section {
        padding: 25px 0 15px;
    }

    /* Hero */
    .hero-slider .carousel-item img,
    .hero-slider .carousel-item video.banner-video {
        max-height: none;
        min-height: 420px;
        object-fit: cover;
        object-position: center;
    }

    .hero-slider .carousel-caption {
        bottom: 10%;
    }

    .hero-slider .carousel-caption h2 {
        font-size: 1.3rem;
        letter-spacing: 2px;
        margin-bottom: 6px;
    }

    .hero-slider .carousel-caption p {
        font-size: 0.85rem;
        padding: 5px;
        margin-bottom: 12px;
    }

    .btn-shop-now {
        padding: 10px 24px;
        font-size: 0.7rem;
    }

    .carousel-controls {
        padding: 10px 0;
    }

    /* Category banners */
    .category-banner-wrap img {
        min-height: 250px;
    }

    .category-banner-title {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }

    .category-banner-cta {
        font-size: 0.7rem;
    }

    /* Trust */
    .trust-badges {
        gap: 20px;
    }

    .trust-badge i {
        font-size: 1.4rem;
    }

    .trust-badge span {
        font-size: 0.7rem;
    }

    /* Hide legacy carousel buttons */
    .btn-choose-options {
        display: none;
    }
}

@media (max-width: 480px) {
    .product-grid .product-card {
        flex: 0 0 80%;
    }

    .hero-slider .carousel-item img,
    .hero-slider .carousel-item video.banner-video {
        min-height: 380px;
    }

    .hero-slider .carousel-caption h2 {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
    }

    .hero-slider .carousel-caption p {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }

    .btn-shop-now {
        padding: 8px 18px;
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }
}
