﻿/* =========================================
   Hero Section
   ========================================= */
.hero {
    min-height: 100vh;
    position: relative;
    background: #000;
    overflow: hidden;
    padding: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.hero-bg-1 {
    background-image: url('../img/s1.webp');
}

.hero-bg-2 {
    background-image: url('../img/s6.webp');
}

.hero-bg-3 {
    background-image: url('../img/s2.webp');
}

.hero-bg-4 {
    background-image: url('../img/s3.webp');
}

.hero-bg-5 {
    background-image: url('../img/s5.webp');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 55%;
    left: 5%;
    transform: translateY(-50%);
    max-width: 800px;
    z-index: 10;
}

.subtitle {
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.subtitle::before,
.subtitle::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--color-accent);
}

.hero-content .subtitle::before,
.hero-content .subtitle::after {
    display: none;
}

.title {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    line-height: 1.1;
}

.title span {
    font-style: italic;
    color: #fff;
    font-weight: 300;
}

.description {
    color: #ddd;
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 3rem;
    max-width: 85%;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding-left: 1.5rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-actions .btn-primary {
    background: #fff;
    color: #000;
    border: none;
}

.hero-actions .btn-primary:hover {
    background: rgba(255, 255, 255, 0.8);
    color: #000;
}

/* Slider Navigation */
.hero-slider-nav {
    position: absolute;
    bottom: 5%;
    left: 5%;
    z-index: 20;
    display: flex;
    gap: 15px;
}

.hero-slider-nav .nav-btn {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider-nav .nav-btn:hover {
    background: #fff;
    color: #000;
}


/* =========================================
   About Section
   ========================================= */
.about {
    padding: 8rem 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-content .description {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    opacity: 0.6;
}

.about-image {
    position: relative;
    height: auto;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* =========================================
   Categories
   ========================================= */
.categories {
    padding: 5rem 5% 8rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .subtitle {
    justify-content: center;
}

.section-header h2 {
    font-size: 3.2rem;
    font-family: var(--font-serif);
    font-weight: 500;
}

.category-grid {
    display: flex;
    overflow-x: auto;
    width: 100%;
    scrollbar-width: none;
    /* Firefox */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 2rem;
}

.category-grid::-webkit-scrollbar {
    display: none;
}

.category-slider-nav .nav-btn {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: transparent;
    border-radius: 50%;
    color: #111;
    font-size: 1.2rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.category-slider-nav .nav-btn:active {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

@media (hover: hover) {
    .category-slider-nav .nav-btn:hover {
        background: var(--color-accent);
        color: #fff;
        border-color: var(--color-accent);
    }
}


.category-card {
    position: relative;
    height: 550px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    flex: 0 0 calc(33.333% - 1.33rem);
    /* Subtract gap for 3 items */
    scroll-snap-align: start;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 50%);
    transition: var(--transition-smooth);
}

.category-info {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 2;
    color: #fff;
    /* Always white on dark overlay */
}

.category-info h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-info a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-block;
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
    padding-bottom: 0.2rem;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card:hover::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 60%);
}

/* =========================================
   Amazing Products Section
   ========================================= */
.amazing-products {
    padding: 8rem 5% 4rem 5%;
    background-color: #fff;
    color: #111;
}

.products-header {
    margin-bottom: 4rem;
}

.products-title-area .subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.products-title-area h2 {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.2;
    color: #111;
    text-align: center;
}

.products-desc-area {
    max-width: 100%;
    color: #666;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-top: 1.5rem;
}

.products-slider {
    display: flex;
    overflow-x: auto;
    width: 100%;
    scrollbar-width: none;
    /* Firefox */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.products-slider::-webkit-scrollbar {
    display: none;
}

.product-slide {
    position: relative;
    height: 80vh;
    overflow: hidden;
    flex: 0 0 33.3333%;
    scroll-snap-align: start;
}

.product-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-slide:hover img {
    transform: scale(1.05);
}

.product-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 50%);
    pointer-events: none;
    z-index: 1;
}

.product-info {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 2;
    color: #fff;
}

.product-info h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-info a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-block;
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
    padding-bottom: 0.2rem;
}

.product-info a:hover {
    border-bottom-color: #fff;
}


.slide-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10rem;
    font-family: var(--font-serif);
    font-weight: 100;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.7);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: transform 0.6s ease, color 0.6s ease, -webkit-text-stroke 0.6s ease, opacity 0.6s ease;
}

.product-slide:hover .slide-number {
    transform: translate(-50%, -50%) scale(1.15);
    color: rgba(255, 255, 255, 0.05);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 1);
    opacity: 1;
}

.product-slider-nav {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 2rem 5% 0 0;
}

.product-slider-nav .nav-btn {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: transparent;
    border-radius: 50%;
    color: #111;
    font-size: 1.2rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.product-slider-nav .nav-btn:active {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

@media (hover: hover) {
    .product-slider-nav .nav-btn:hover {
        background: var(--color-accent);
        color: #fff;
        border-color: var(--color-accent);
    }
}

/* =========================================
   Why Choose Us
   ========================================= */
.why-choose {
    padding: 8rem 5%;
    background-color: var(--color-surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.feature-card {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem auto;
    background: #f9f9f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

.feature-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* =========================================
   Inspiration Gallery
   ========================================= */
.inspiration {
    padding: 8rem 5%;
}

.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    overflow: hidden;
}

.masonry-item img {
    width: 100%;
    display: block;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.masonry-item:hover img {
    transform: scale(1.05);
}

/* =========================================
   Testimonials
   ========================================= */
.testimonials {
    padding: 8rem 5%;
    background-color: #fff;
    color: #111;
    text-align: center;
    position: relative;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.testimonial-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    top: 0;
    left: 0;
    transform: none;
}

.quote {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-style: italic;
    line-height: 1.6;
    color: #333;
    margin-bottom: 2rem;
}

.client-name {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    font-weight: 500;
}

.testimonial-nav {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    gap: 15px;
    margin-top: 3rem;
}

.testimonial-nav .nav-btn {
    width: 45px;
    height: 45px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    pointer-events: auto;
}

.testimonial-nav .nav-btn:active {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

@media (hover: hover) {
    .testimonial-nav .nav-btn:hover {
        background: var(--color-accent);
        color: #fff;
        border-color: var(--color-accent);
    }
}





/* =========================================
   Brands
   ========================================= */
.brands {
    padding: 6rem 5%;
    background-color: #f9f9f9;
    text-align: center;
}

.brands-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5rem;
    margin-top: 3rem;
}

.brand-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-item img {
    height: 120px;
    max-width: 250px;
    object-fit: contain;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.brand-item:hover img {
    transform: scale(1.05);
}

/* =========================================
   Responsive specific to index pages
   ========================================= */
@media (max-width: 1024px) {
    .category-card {
        flex: 0 0 calc(50% - 1rem);
    }

    .title {
        font-size: 3.5rem;
    }

    .hero {
        gap: 2rem;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .about {
        padding-bottom: 0;
    }

    .categories {
        padding-top: 1rem;
    }

    .hero-content .subtitle {
        justify-content: center;
    }

    .category-card {
        flex: 0 0 100%;
    }



    /* Make sure grid gaps don't overflow */
    .brands-grid {
        gap: 2rem;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 8rem;
    }

    .hero-content {
        margin: 0 auto;
    }

    .description {
        margin: 0 auto 3rem auto;
    }

    .hero-actions {
        justify-content: center;
    }



    .products-slider {
        grid-template-columns: 1fr;
    }

    .product-slide {
        height: 40vh;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .masonry-grid {
        column-count: 1;
    }

    .quote {
        font-size: 1.5rem;
    }

    .brands-grid {
        gap: 1.5rem;
        flex-direction: row;
        justify-content: center;
    }
}

.brands {
    padding: 4rem 5%;
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

/* Responsive Enhancements */
@media (max-width: 1024px) {
    .hero-content .title {
        font-size: 3.8rem;
    }

    .hero-content .description {
        font-size: 1.2rem;
        padding: 0 15px;
    }

    .category-card {
        flex: 0 0 calc(50% - 1rem);
    }


    .products-title-area h2 {
        font-size: 2.8rem;
    }

    .product-slide {
        flex: 0 0 100%;
    }
}

@media (max-width: 768px) {
    .about {
        padding-bottom: 0;
    }

    .categories {
        padding-top: 1rem;
    }

    .hero-content .subtitle {
        justify-content: center;
    }

    .category-card {
        flex: 0 0 100%;
    }



    /* Make sure grid gaps don't overflow */



    .categories {
        padding: 4rem 5%;
    }

    .amazing-products {
        padding: 4rem 5%;
    }

    .products-title-area h2 {
        font-size: 2.2rem;
        text-align: center;
    }

    .products-title-area .subtitle {
        justify-content: center;
    }

    .products-desc-area {
        text-align: center;
    }

    .hero {
        min-height: 65vh;
        display: block;
    }

    .hero-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        padding: 0;
        margin-top: 0;
        text-align: center;
    }

    .hero-content .title {
        font-size: 1.8rem;
    }

    .hero-content .description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-actions {
        display: flex;
        justify-content: center;
    }

    .hero-slider-nav {
        left: auto;
        right: 5%;
        transform: none;
        bottom: 15px;
        gap: 10px;
    }

    .hero-slider-nav .nav-btn {
        width: 40px;
        height: 40px;
    }

    .product-slide {
        flex: 0 0 100%;
        height: 45vh;
    }

    .products-slider-controls {
        justify-content: center;
        margin-top: 1rem;
    }
}







/* Tablet Specific Hero Text Overrides */
@media (min-width: 600px) and (max-width: 1024px) {
    .hero-content .subtitle {
        font-size: 1.2rem !important;
        letter-spacing: 4px;
        margin-bottom: 1.5rem;
    }
    .hero-content .title {
        font-size: 4.8rem !important;
    }
    .hero-content .description {
        font-size: 1.6rem !important;
        line-height: 1.5;
    }
}

