/* Header Styles */
.header-default {
    position: relative;
    z-index: 1000;
}

/* Hide desktop by default */
.desktop-header {
    display: none !important;
}

/* Show mobile by default */
.mobile-header {
    display: block !important;
}

/* Desktop Header */
@media (min-width: 992px) {
    .mobile-header {
        display: none !important;
    }

    .desktop-header {
        display: block !important;
    }

    /* Ensure desktop header can be a positioning context for centering the logo */
    .desktop-header {
        position: relative;
    }

    /* Center the logo horizontally across the page on desktop */
    .desktop-header .center-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 8px; /* tweak this if you want the logo vertically lower/ higher */
        z-index: 1010;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .desktop-header .center-logo .logo {
        height: 34px; /* slightly larger for desktop */
        max-height: 44px;
        width: auto;
    }

    /* Top Navigation */
    .top-nav {
        background-color: transparent !important;
    }

    .top-nav .nav li {
        margin: 0 20px;
    }

    .top-nav .nav li a {
        color: #fff;
        text-decoration: none;
        font-size: 14px;
    }

    .top-nav .logo-header img {
        height: 30px;
    }

    /* Main Navigation */
    .main-nav {
        background: #fff;
    }

    .main-nav .navbar-nav {
        gap: 30px;
    }

    .main-nav .nav-link {
        color: #fff;
        font-size: 14px;
        text-transform: none;
        padding: 0;
    }

    .main-nav .nav-link:hover {
        color: #000;
    }

    /* Search Bar */
    .search-bar {
        background: #fff;
    }

    .search-wrapper {
        position: relative;
        max-width: 600px;
        margin: 0 auto;
    }

    .search-wrapper .form-control {
        height: 40px;
        border: none;
        border-radius: 0;
        padding-right: 40px;
        font-size: 14px;
    }

    .search-wrapper .form-control::placeholder {
        color: #666;
    }

    .search-wrapper .btn-link {
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        color: #1D1D1D;
    }

    /* Right Icons */
    .right-icons .nav-icon {
        margin: 0;
    }

    .right-icons .nav-icon-item {
        color: #fff;
        text-decoration: none;
        position: relative;
    }

    .right-icons .count-box {
        position: absolute;
        top: -8px;
        right: -8px;
        background: #fff;
        color: #1D1D1D;
        font-size: 10px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Mega menu styles (desktop only) */
    .navbar-nav .nav-item.dropdown {
        position: relative;
    }

    .navbar-nav .nav-item.dropdown .dropdown-menu.mega-menu {
        display: none;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: calc(100% + 10px);
        width: 1000px;
        max-width: 1100px;
        background: #fff;
        padding: 28px 30px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        border-radius: 6px;
        z-index: 1050;
    }

    .navbar-nav .nav-item.dropdown:hover .dropdown-menu.mega-menu {
        display: block;
    }

    .mega-inner {
        gap: 40px;
        align-items: flex-start;
    }

    .mega-col {
        flex: 1 1 1px;
    }

    .mega-col h6 {
        font-weight: 700;
        margin-bottom: 12px;
        font-size: 14px;
    }

    .mega-col ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mega-col ul li {
        margin-bottom: 12px;
    }

    .mega-col ul li a {
        color: #222;
        font-size: 14px;
        text-decoration: none;
    }

    /* Right image column */
    .image-col {
        flex: 0 0 320px;
        text-align: left;
    }

    .mega-image img {
        width: 100%;
        border-radius: 8px;
        display: block;
    }

    .image-col .spotlight {
        margin-top: 12px;
        font-size: 13px;
        color: #777;
    }

    .image-col .heading {
        margin: 6px 0 12px;
        font-weight: 700;
        letter-spacing: .6px;
    }

    .image-col .shop-now {
        text-decoration: underline;
        color: #111;
        font-size: 14px;
    }
}
        .lookbook {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            /* Reduced row heights to lower overall lookbook height */
            grid-template-rows: 300px 300px 140px;
            gap: 6px;
            max-width: 820px;
            background: transparent;
            /* border: 1px solid #ccc; */
        }

.lookbook img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      border: 1px solid #dcdcdc;
    }

        /* Tile wrapper so we can position overlay/button */
        .look-tile {
            position: relative;
            overflow: hidden;
            display: block;
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
        }

        .look-tile img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.45s ease, filter 0.35s ease, opacity 0.35s ease;
        }

            .lb-overlay {
                position: absolute;
                inset: 0;
                background: rgba(0,0,0,0.28);
                display: flex;
                align-items: center;
                justify-content: center;
                opacity: 0;
                /* allow pointer events so the contained button is clickable on touch devices */
                pointer-events: auto;
                transition: opacity 0.28s ease;
                z-index: 2;
            }

            .lb-btn {
                background: #fff;
                color: #111;
                padding: 10px 14px;
                border-radius: 4px;
                text-decoration: none;
                font-weight: 600;
                display: inline-flex;
                gap: 8px;
                align-items: center;
                transform: translateY(8px);
                opacity: 0;
                transition: transform 0.28s ease, opacity 0.28s ease;
                position: relative;
                z-index: 3; /* ensure button sits above overlay so it's clearly clickable */
                pointer-events: auto;
            }

        /* Hover interactions */
            .look-tile:hover .lb-overlay {
                opacity: 1;
            }

        .look-tile:hover .lb-btn {
            transform: translateY(0);
            opacity: 1;
        }

        .look-tile:hover img {
            transform: scale(1.03);
            filter: brightness(0.92);
        }

            /* On touch / small screens, don't auto-show the overlay — use a .touch-active class toggled by JS
               so the first tap reveals the CTA and a second tap follows the link. This prevents overlays
               from appearing before user interaction while keeping accessibility for touch devices. */
            @media (max-width: 991px) {
                /* default: keep overlay hidden until explicit touch activation */
                .look-tile .lb-overlay {
                    opacity: 0;
                }
                .look-tile .lb-btn {
                    opacity: 0;
                    transform: translateY(8px);
                }

                /* when JS adds .touch-active (on first tap), show overlay/button */
                .look-tile.touch-active .lb-overlay {
                    opacity: 1;
                }
                .look-tile.touch-active .lb-btn {
                    opacity: 1;
                    transform: translateY(0);
                }
            }

    /* Layout structure mimicking the reference */
    .main-front { grid-column: 1 / 2; grid-row: 1 / 3; } /* Tall front view */
    .side-view { grid-column: 2 / 3; grid-row: 1 / 2; }
    .close-face { grid-column: 3 / 4; grid-row: 1 / 2; }
    .back-view { grid-column: 2 / 3; grid-row: 2 / 3; }
    .close-top { grid-column: 1 / 2; grid-row: 3 / 4; }
    .close-bag { grid-column: 2 / 3; grid-row: 3 / 4; }
    .close-pant { grid-column: 3 / 4; grid-row: 2 / 4; } /* Tall side view */

    /* Keep same layout on all devices */
    @media (max-width: 768px) {
      .lookbook {
        transform: scale(0.9);
        transform-origin: top center;
      }
    }

    @media (max-width: 480px) {
      .lookbook {
        transform: scale(0.8);
        transform-origin: top center;
      }
    }
  
        .lookbook-section {
            display: flex;
            justify-content: center;
            align-items: center;
            /* Reduce vertical footprint: use 70vh so it sits shorter on page */
            min-height: 70vh;
            padding-top: 100px;
            padding-bottom: 10px;
        }