/* LUXURY THEME HOME PAGE */

.homepage-content {
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Hero Section */
.hero-carousel {
    position: relative;
    height: 85vh;
    overflow: hidden;
    margin-top: -60px;
    /* Offset header */
}

@media (max-width: 900px) {
    .hero-carousel {
        height: 95vh;
        margin-top: -70px;
    }
}

.carousel-track {
    position: relative;
    height: 100%;
    width: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
    animation: zoomEffect 8s linear forwards;
}

.carousel-slide.active .fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    padding: 0;
    width: 60px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.hero-carousel:hover .carousel-prev,
.hero-carousel:hover .carousel-next {
    opacity: 1;
}

.carousel-prev:hover,
.carousel-next:hover {
    color: #fff;
    background: rgba(0, 0, 0, 0.1);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-progress-container,
.carousel-progress-bar {
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
}

.flash-sale-btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: #000;
}

.flash-sale-btn-hover:hover i {
    transform: translateX(4px);
}

.koleksiyon-btn:hover {
    background-color: #222;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.koleksiyon-btn:hover i {
    transform: translateX(4px);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    color: #fff;
    text-align: center;
}

.hero-content h1, .hero-content h2 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: -2px;
}

.hero-content p {
    font-size: 1.6rem;
    margin-bottom: 0;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.btn-hero {
    background: #fff;
    color: #000;
    padding: 18px 45px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-md);
}

.btn-hero:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-pill {
    border-radius: 50px;
}

/* Features Bar */
.features-bar {
    background: #fff;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.feature-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item i {
    font-size: 2rem;
    color: var(--accent);
}

.feature-item h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.feature-item p {
    margin: 0;
    font-size: 0.85rem;
    color: #888;
}

/* Base Sections */
.section {
    padding: 20px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.flash-sale-home {
    background: linear-gradient(135deg, #111111 0%, #333333 100%);
    color: white;
    padding: 60px 0;
}

.flash-sale-home .section-title {
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
}

.flash-product-img {
    aspect-ratio: 4/5;
    max-height: 280px;
    object-fit: cover;
    width: 100%;
}

/* Increased specificity to avoid !important */
body.is-home .flash-sale-home .product-info h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px;
    min-height: 44px;
    margin-bottom: 15px;
    line-height: 1.4;
}

body.is-home .flash-sale-home .product-info h3 a {
    color: #000;
    text-decoration: none;
}

/* Combined with cards.css .btn-add-cart styles */
body.is-home .flash-sale-home .btn-add-cart:hover {
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.timer-box-home {
    background: rgba(0,0,0,0.5);
    padding: 10px 25px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.25);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.view-all-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.view-all-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

/* Flash Sale Carousel */
.flash-sale-carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.flash-sale-carousel::-webkit-scrollbar {
    height: 6px;
}

.flash-sale-carousel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.flash-sale-carousel .product-card {
    min-width: 250px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .flash-sale-carousel .product-card {
        min-width: calc((100% - 60px) / 4);
        max-width: calc((100% - 60px) / 4);
        flex: 0 0 calc((100% - 60px) / 4);
    }
}

.flash-sale-carousel .product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.flash-sale-carousel .product-image>a {
    display: block;
    width: 100%;
    height: 100%;
}




.flash-sale-carousel .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Newsletter Section */
.newsletter-section {
    background: #f4f4f4;
    padding: 80px 0;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #ddd;
    outline: none;
    font-family: var(--font-body);
    transition: 0.3s;
}

.newsletter-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    color: #fff;
}

.whatsapp-btn::before,
.whatsapp-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.5;
    z-index: -1;
    animation: wa-pulse 2s infinite;
}

.whatsapp-btn::after {
    animation-delay: 1s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-carousel {
        height: 65vh;
        margin-top: -80px;
    }

    .hero-content {
        padding: 15px;
    }

    .hero-content h1, .hero-content h2 {
        font-size: 2rem;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
        margin-bottom: 10px;
    }

    .hero-content p {
        font-size: 1rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
        margin-bottom: 20px;
    }

    .btn-hero {
        padding: 12px 30px;
        font-size: 0.85rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 5px;
    }

    .flash-sale-carousel {
        display: flex;
        /* To ensure inline block elements don't wrap from desktop */
        flex-wrap: nowrap;
        gap: 15px;
        padding-bottom: 15px;
        scroll-snap-type: x mandatory;
        padding-left: 10px;
        padding-right: 10px;
        overflow-x: auto;
    }

    .homepage-content .flash-sale-carousel .product-card {
        min-width: 65vw;
        flex: 0 0 65vw;
        max-width: 65vw;
        scroll-snap-align: start;
    }

    .section-header .view-all-link {
        font-size: 0.8rem;
        white-space: nowrap;
        background: var(--primary);
        color: white;
        padding: 6px 15px;
        border-radius: 4px;
        border: none;
        display: inline-block;
        line-height: normal;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .section-header {
        margin-bottom: 20px;
    }

    .section-header .section-title {
        font-size: 1.4rem;
        margin-bottom: 0;
        text-align: left;
    }

    .view-all-link {
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .category-grid {
        gap: 15px;
    }

    .category-card {
        height: 250px;
    }

    .category-content h3 {
        font-size: 1.5rem;
    }

    .feature-grid {
        flex-direction: column;
        align-items: center;
    }

    .feature-item {
        width: 100%;
        justify-content: flex-start;
    }

    .newsletter-form {
        flex-direction: column;
    }
}