/* 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: var(--brand-mid);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(var(--brand-black-rgb), 0.72) 0%, rgba(var(--brand-black-rgb), 0.38) 46%, rgba(var(--brand-black-rgb), 0.12) 100%),
        linear-gradient(0deg, rgba(var(--brand-black-rgb), 0.28), rgba(var(--brand-black-rgb), 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(--brand-white);
}

.hero-tag {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-primary-light);
    margin-bottom: 16px;
    display: block;
}

.hero h1 {
    font-size: clamp(44px, 7vw, 76px);
    line-height: 1;
    margin-bottom: 20px;
}

.hero p {
    color: rgba(var(--brand-white-rgb), 0.8);
    margin-bottom: 40px;
    max-width: 500px;
}

.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%;
}

/* Section Utility for Home Page */
.section {
    padding: 80px 0;
    border-bottom: 1px solid var(--brand-border);
}

.section:last-of-type {
    border-bottom: none;
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

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

.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(--brand-white);
    background: rgba(var(--brand-white-rgb), 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 30px;
    border: 1px solid rgba(var(--brand-white-rgb), 0.2);
    border-radius: 8px;
    transition: var(--transition);
}

.category-card:hover .category-info {
    transform: translateY(-10px);
    background: rgba(var(--brand-white-rgb), 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(--brand-white);
    padding-bottom: 4px;
}

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

.product-image {
    background: var(--brand-surface-alt);
    height: 450px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    border: 1px solid var(--brand-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(--brand-dark);
    color: var(--brand-white);
    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(--brand-muted);
}

/* Brand Pillars Section */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0;
}

.pillar-item {
    text-align: center;
    padding: 80px 40px;
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    margin-left: -1px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.pillar-item:first-child {
    margin-left: 0;
}

.pillar-item:hover {
    background: var(--brand-surface-cream);
    z-index: 2;
    border-color: var(--brand-primary);
}

.pillar-icon {
    font-size: 36px;
    color: var(--brand-primary);
    margin-bottom: 32px;
    display: inline-block;
    opacity: 0.8;
}

.pillar-item h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 3px;
    color: var(--brand-dark);
}

.pillar-item p {
    font-size: 13px;
    color: var(--brand-muted);
    line-height: 1.8;
    margin: 0;
    max-width: 240px;
    margin: 0 auto;
    opacity: 0.9;
}

@media (max-width: 991px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .pillar-item {
        margin-left: 0;
        margin-top: -1px;
        padding: 60px 24px;
    }
}

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

.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(--brand-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% 8%;
    }

    .hero-collage-image-women {
        object-position: 49% 4%;
    }

    .hero-collage-image-portrait-men {
        object-position: 48% 5%;
    }

    .hero-collage-image-portrait-women {
        object-position: 40% 3%;
    }

    .hero-content {
        padding: 0 24px;
        text-align: left;
        margin: 0;
    }

    .hero h1 {
        max-width: 420px;
        font-size: clamp(36px, 9vw, 52px);
    }

    .product-image {
        height: 390px;
    }

    .banner-section {
        height: 58vh;
    }

    .philosophy-image-container {
        height: 420px;
    }

    .section {
        padding: 60px 0;
    }
}
