/* =========================================================
   GLOBAL BODY
   ========================================================= */

body {
    background: #f0f0f0;
    text-transform: capitalize;
    font-family: Arial, sans-serif;
    margin: 0;
}


/* =========================================================
   HEADER & NAVBAR
   ========================================================= */

.header-area.fixed-top {
    z-index: 1030;
    background-color: #516c72;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.navbar-brand {
    font-size: 1.4em;
}

.navbar-dark .navbar-nav a.nav-link {
    color: #ffffff;
    font-size: 1.1em;
}


/* =========================================================
   GENERAL DROPDOWN
   ========================================================= */

.dropdown-menu {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.23);
    border: none;
    border-radius: 0;
    padding: 0.7em;
    background-color: #fff;
}

.dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li .dropdown-item {
    color: gray;
    font-size: 1em;
    padding: 0.5em 1em;
    transition: background 0.2s ease;
}

.dropdown-menu li .dropdown-item:hover {
    background-color: #f1f1f1;
}

.dropdown-menu li:first-child a {
    font-weight: bold;
    font-size: 1.1em;
    text-transform: uppercase;
    color: #516beb;
}


/* =========================================================
   HOT SALE BADGE
   ========================================================= */

.hot-sale-badge {
    position: absolute;
    border-radius: 5px;
    top: 10px;
    left: -10px;
    background: red;
    color: white;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    transform: rotate(-15deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 1;
}


/* =========================================================
   IMAGES
   ========================================================= */

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.slider-img,
.carousel-inner img {
    width: 100%;
    aspect-ratio: 16 / 6;
    object-fit: cover;
    display: block;
    height: auto;
}

.product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    height: auto;
}


/* =========================================================
   PRODUCT DETAIL
   ========================================================= */

.main-image-wrapper {
    width: 100%;
    height: 560px;
    overflow: hidden;
    border: 1px solid #ddd;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
    cursor: zoom-in;
}

.main-image-wrapper.zoomed {
    cursor: zoom-out;
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}


/* =========================================================
   HOVER ZOOM
   ========================================================= */

.main-image-wrapper:hover img {
    transform: scale(1.5);
}


/* =========================================================
   CLICK ZOOM
   ========================================================= */

.main-image-wrapper.zoomed img {
    transform: scale(2);
    cursor: zoom-out;
}


/* =========================================================
   THUMBNAILS
   ========================================================= */

.thumbnail-img {
    width: 60px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail-img.active {
    border-color: #0d6efd;
}


/* =========================================================
   COLOR SWATCH
   ========================================================= */

.swatch-img {
    display: inline-block;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s;
}

.swatch-img img {
    width: 34px;
    height: 40px;
    object-fit: cover;
    display: block;
}

.btn-check:checked + .swatch-img {
    border-color: #000;
    box-shadow: 0 0 0 2px #ccc;
}


/* =========================================================
   REVIEWS
   ========================================================= */

.review-rating {
    color: #ffc107;
}

form .form-check-label {
    cursor: pointer;
}


/* =========================================================
   HOT SALE IMAGE
   ========================================================= */

.hot-sale img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}


/* =========================================================
   SEARCH WRAPPER
   ========================================================= */

.search-wrapper {
    flex-grow: 1;
    display: flex;
    max-width: 100%;
}

.search-wrapper input[type="search"] {
    flex: 1;
    font-size: 16px;
}

.search-wrapper button {
    flex-shrink: 0;
}


/* =========================================================
   DESKTOP MEGA MENU
   ONLY APPLIES TO DESKTOP
   992px AND ABOVE
   ========================================================= */

@media (min-width: 992px) {

    /* -----------------------------------------------------
       DESKTOP HEADER
       ----------------------------------------------------- */

    .desktop-header {
        position: relative;
        z-index: 1030;
    }


    /* -----------------------------------------------------
       MEGA MENU MAIN ITEM
       ----------------------------------------------------- */

    .mega-dropdown {
        position: static !important;
    }

    .mega-dropdown > .nav-link {
        position: relative;
        cursor: pointer;
    }


    /* -----------------------------------------------------
       MEGA MENU CONTAINER
       ----------------------------------------------------- */

    .mega-dropdown > .dropdown-menu {

        position: absolute !important;

        top: 100% !important;

        left: 0 !important;

        right: 0 !important;

        width: 100vw !important;

        max-width: 100vw !important;

        margin: 0 !important;

        padding: 25px 35px !important;

        background: #ffffff;

        border: none !important;

        border-radius: 0 !important;

        box-shadow:
            0 6px 15px rgba(0, 0, 0, 0.18);

        z-index: 2000;

        display: none;

        visibility: hidden;

        opacity: 0;

        transform: translateY(5px);

        transition:
            opacity 0.18s ease,
            transform 0.18s ease,
            visibility 0.18s ease;
    }


    /* -----------------------------------------------------
       SHOW MEGA MENU ON HOVER
       ----------------------------------------------------- */

    .mega-dropdown:hover > .dropdown-menu,
    .mega-dropdown:focus-within > .dropdown-menu {

        display: block !important;

        visibility: visible;

        opacity: 1;

        transform: translateY(0);
    }


    /* -----------------------------------------------------
       BOOTSTRAP .SHOW SUPPORT
       ----------------------------------------------------- */

    .mega-dropdown > .dropdown-menu.show {

        display: block !important;

        visibility: visible;

        opacity: 1;

        transform: translateY(0);
    }


    /* -----------------------------------------------------
       MEGA MENU ROW
       ----------------------------------------------------- */

    .mega-dropdown .dropdown-menu .container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .mega-dropdown .dropdown-menu .row {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }


    /* -----------------------------------------------------
       SUBCATEGORY LIST
       ----------------------------------------------------- */

    .mega-dropdown .dropdown-menu ul {

        list-style: none;

        padding: 0;

        margin: 0;
    }

    .mega-dropdown .dropdown-menu li {

        list-style: none;

        padding: 0;

        margin: 0;
    }


    /* -----------------------------------------------------
       CATEGORY TITLE
       ----------------------------------------------------- */

    .mega-dropdown .dropdown-menu li:first-child a {

        display: block;

        color: #516beb;

        font-size: 15px;

        font-weight: 700;

        text-transform: uppercase;

        padding: 5px 10px 10px;

        margin-bottom: 5px;

        border-bottom: 2px solid #516beb;

        background: transparent;
    }


    /* -----------------------------------------------------
       SUBCATEGORY ITEMS
       ----------------------------------------------------- */

    .mega-dropdown .dropdown-menu li a.dropdown-item {

        display: block;

        color: #555;

        font-size: 14px;

        font-weight: 400;

        text-transform: capitalize;

        padding: 8px 10px;

        background: transparent;

        border-radius: 4px;

        text-decoration: none;

        transition:
            background 0.2s ease,
            color 0.2s ease,
            padding-left 0.2s ease;
    }


    /* -----------------------------------------------------
       SUBCATEGORY HOVER
       ----------------------------------------------------- */

    .mega-dropdown .dropdown-menu li a.dropdown-item:hover {

        color: #0d6efd;

        background: #f5f7fa;

        padding-left: 15px;

        text-decoration: none;
    }


    /* -----------------------------------------------------
       MEGA MENU COLUMNS
       ----------------------------------------------------- */

    .mega-dropdown .dropdown-menu .col,
    .mega-dropdown .dropdown-menu [class*="col-"] {

        padding-left: 12px;

        padding-right: 12px;

        margin-bottom: 15px;
    }


    /* -----------------------------------------------------
       MEGA MENU IMAGES
       ----------------------------------------------------- */

    .mega-dropdown .dropdown-menu img {

        display: block;

        width: 100%;

        max-width: 100%;

        height: 150px;

        object-fit: cover;

        border-radius: 6px;

        transition: transform 0.3s ease;
    }


    /* -----------------------------------------------------
       IMAGE HOVER
       ----------------------------------------------------- */

    .mega-dropdown .dropdown-menu img:hover {

        transform: scale(1.05);
    }


    /* -----------------------------------------------------
       IMAGE WRAPPER
       ----------------------------------------------------- */

    .mega-menu-image {

        position: relative;

        overflow: hidden;

        border-radius: 6px;

        background: #f5f5f5;
    }


    .mega-menu-image img {

        width: 100%;

        height: 150px;

        object-fit: cover;
    }


    /* -----------------------------------------------------
       IMAGE TITLE
       ----------------------------------------------------- */

    .mega-menu-image-title {

        display: block;

        margin-top: 7px;

        color: #333;

        font-size: 14px;

        font-weight: 600;

        text-align: center;

        text-decoration: none;
    }

    .mega-menu-image-title:hover {

        color: #0d6efd;

        text-decoration: none;
    }


    /* -----------------------------------------------------
       IMAGE CARD
       ----------------------------------------------------- */

    .mega-menu-card {

        display: block;

        overflow: hidden;

        border: 1px solid #eee;

        border-radius: 6px;

        background: #fff;

        color: #333;

        text-decoration: none;

        transition:
            transform 0.2s ease,
            box-shadow 0.2s ease;
    }


    .mega-menu-card:hover {

        color: #333;

        text-decoration: none;

        transform: translateY(-3px);

        box-shadow:
            0 5px 15px rgba(0, 0, 0, 0.12);
    }


    .mega-menu-card img {

        width: 100%;

        height: 140px;

        object-fit: cover;
    }


    .mega-menu-card-title {

        padding: 8px;

        font-size: 13px;

        font-weight: 600;

        text-align: center;
    }


    /* -----------------------------------------------------
       VERTICAL DIVIDER
       ----------------------------------------------------- */

    .mega-menu-divider {

        border-left: 1px solid #e5e5e5;

        height: 100%;
    }


    /* -----------------------------------------------------
       SEARCH DESKTOP WIDTH
       ----------------------------------------------------- */

    .search-wrapper {

        width: 45% !important;
    }

}


/* =========================================================
   TIMELINE / ORDER BOX
   ========================================================= */

.timeline {
    display: flex;
    justify-content: space-between;
    gap: 5px;
}

.timeline-step {
    flex: 1;
    width: 24%;
    text-align: center;
    padding: 7px 3px;
    border-bottom: 3px solid #ccc;
    font-size: 12px;
    color: #888;
}

.timeline-step.active {
    border-color: #28a745;
    color: #28a745;
    font-weight: bold;
}

.order-box {
    background: white;
    border-left: 4px solid #0d6efd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
}


/* =========================================================
   PERFORMANCE / CLS
   ========================================================= */

img[loading="lazy"] {
    display: block;
}


/* =========================================================
   GLOBAL TRANSITIONS
   ========================================================= */

a,
.btn,
.swatch-img {
    transition: all 0.2s ease-in-out;
}


/* =========================================================
   MOBILE-SPECIFIC CSS
   IMPORTANT:
   Your existing mobile header CSS remains in header.html.
   
   Nothing below changes the mobile mega menu.
   ========================================================= */

@media (max-width: 991.98px) {

    /*
       Do NOT display desktop mega menu on mobile.
    */

    .desktop-header .mega-dropdown > .dropdown-menu {
        display: none !important;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .main-image-wrapper {
        height: 430px;
    }

    .timeline-step {
        font-size: 11px;
    }

}


/* =========================================================
   EXTRA SMALL MOBILE
   ========================================================= */

@media (max-width: 360px) {

    .main-image-wrapper {
        height: 380px;
    }

    .timeline-step {
        font-size: 10px;
    }

}