/* Hero Section */
/* Fix for potential overlapping in carousel-fade */
#heroCarousel.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: 0.8s;
    transition-property: opacity;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

#heroCarousel.carousel-fade .carousel-item.active {
    opacity: 1;
    z-index: 1;
    position: relative;
}

#heroCarousel.carousel-fade .carousel-item-next.carousel-item-start,
#heroCarousel.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
    z-index: 1;
}

.hero {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #161616;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.38) 46%, rgba(0,0,0,0.12) 100%),
        linear-gradient(0deg, rgba(0,0,0,0.28), rgba(0,0,0,0));
    z-index: 1;
}

.hero > .container {
    width: 100%;
    position: relative;
    z-index: 2;
    margin: 0 auto; /* Ensures perfect centering within flex wrapper */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: var(--secondary);
}

.hero-tag {
    font-size: 14px;
    font-weight: 600;
    color: #ffb09c;
    margin-bottom: 16px;
    display: block;
}

.hero h1 {
    font-size: clamp(48px, 8vw, 100px);
    line-height: 0.9;
    margin-bottom: 32px;
}

.hero p {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 40px;
    max-width: 450px;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%; /* Keep head visible and below header */
    opacity: 0.92;
}

.hero-collage {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    grid-template-columns: 1fr 1.05fr 0.95fr 1fr;
    gap: 0;
    opacity: 0.95;
}

.hero-collage-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-width: 0;
}

.hero-collage-image-men {
    object-position: center 10%;
}

.hero-collage-image-women {
    object-position: center 10%;
}

.hero-collage-image-portrait-men {
    object-position: center 10%;
}

.hero-collage-image-portrait-women {
    object-position: center 10%;
}

/* Categories Section */
.category-card {
    position: relative;
    height: 700px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    background: var(--bg-light);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Focus on the upper part of the image */
    transition: var(--transition);
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-info {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: var(--transition);
}

.category-card:hover .category-info {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.category-info h3 {
    font-size: 28px;
    margin-bottom: 8px;
}

.category-info span {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--secondary);
    padding-bottom: 4px;
}

/* Featured Products */
.product-card {
    position: relative;
    height: 100%;
}

.product-image {
    background: #eeeeea;
    height: 450px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.add-to-cart {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary);
    color: var(--secondary);
    text-align: center;
    padding: 15px;
    transform: translateY(100%);
    transition: var(--transition);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
}

.product-card:hover .add-to-cart {
    transform: translateY(0);
}

.product-details h4 {
    font-size: 16px;
    margin-bottom: 5px;
    line-height: 1.3;
}

.product-price {
    font-weight: 600;
    color: var(--text-muted);
}

/* Banner Section */
.banner-section {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    color: var(--secondary);
    overflow: hidden;
    background: #111;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.62) saturate(0.9);
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.banner-content h2 {
    font-size: clamp(42px, 7vw, 88px);
    margin-bottom: 24px;
}

/* Removed .philosophy-section as Bootstrap row/col is used instead */

.philosophy-text h2 {
    margin-bottom: 30px;
    font-size: 32px;
}

.philosophy-text p {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.philosophy-image-container {
    height: 600px;
    overflow: hidden;
    border-radius: 8px;
}

.philosophy-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Obsolete media query */

@media (max-width: 768px) {
    .category-card {
        height: 450px;
    }
    .hero-image {
        width: 100%;
        opacity: 0.72;
        clip-path: none;
        object-position: center 28%;
    }
    .hero-collage {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        opacity: 0.74;
    }
    .hero-collage-image-men {
        object-position: 23% 18%;
    }
    .hero-collage-image-women {
        object-position: 49% 10%;
    }
    .hero-collage-image-portrait-men {
        object-position: 48% 12%;
    }
    .hero-collage-image-portrait-women {
        object-position: 40% 8%;
    }
    .hero-content {
        padding: 0 24px;
        text-align: left;
        margin: 0;
    }
    .hero h1 {
        max-width: 420px;
    }
    .product-image {
        height: 390px;
    }
    .banner-section {
        height: 58vh;
    }
    .philosophy-image-container {
        height: 420px;
    }
}
