/* =========================================================
                    RAY STUDIO BRAND COLORS
========================================================= */

:root {

    /* Warm Ray Studio background */
    --ray-background-color: #eee0cd;

    /* Main dark brown */
    --ray-text-color: #4b3328;

    /* Golden-brown accent */
    --ray-hover-color: #9c6d45;

    /* Light border */
    --ray-border-color: rgba(75, 51, 40, 0.18);

    /* White */
    --ray-white-color: #ffffff;

}


/* =========================================================
                    GENERAL RESET SETTINGS
========================================================= */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}
nano static/header/header.css

button,
a {

    font-family: "Poppins", sans-serif;

}


/* =========================================================
                    MAIN HEADER CONTAINER
========================================================= */

.ray-header {

    width: 100%;

    min-height: 100px;

    padding: 6px 5%;

    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    gap: 30px;

    background-color: var(--ray-background-color);

    border-bottom: 1px solid var(--ray-border-color);

    position: sticky;

    top: 0;

    z-index: 1000;

}


/* =========================================================
                    HEADER LOGO LINK
========================================================= */

.header-logo-link {

    display: block;

    color: inherit;

    text-decoration: none;

}


/* =========================================================
                    CODED LOGO MAIN CONTAINER
========================================================= */

.ray-logo {

    min-width: 230px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    color: var(--ray-text-color);

    text-align: center;

}


/* =========================================================
                    URDU LOGO TEXT SECTION
========================================================= */

.ray-logo-top {

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

}


.ray-urdu-text {

    color: var(--ray-text-color);

    font-family: "Noto Nastaliq Urdu", serif;

    font-size: 37px;

    font-weight: 700;

    line-height: 1;

    transform: translateY(-4px);

}


/* =========================================================
                    LOGO DECORATIVE LEAVES
========================================================= */

.logo-leaf {

    display: inline-block;

    color: var(--ray-text-color);

    font-family: Georgia, serif;

    font-size: 24px;

    opacity: 0.85;

}


.logo-leaf-left {

    transform: rotate(-20deg);

}


.logo-leaf-right {

    transform: scaleX(-1) rotate(-20deg);

}


/* =========================================================
                    STUDIO NAME SECTION
========================================================= */

.ray-studio-row {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

}


.ray-studio-text {

    color: var(--ray-text-color);

    font-family: "Cormorant Garamond", serif;

    font-size: 25px;

    font-weight: 700;

    letter-spacing: 7px;

    line-height: 1;

}


/* =========================================================
                    LOGO HORIZONTAL LINES
========================================================= */

.logo-line {

    width: 38px;

    height: 1px;

    display: block;

    background-color: var(--ray-text-color);

    opacity: 0.7;

}


/* =========================================================
                    LOGO TAGLINE
========================================================= */

.ray-logo-tagline {

    margin-top: 8px;

    color: var(--ray-text-color);

    font-family: "Poppins", sans-serif;

    font-size: 7px;

    font-weight: 500;

    letter-spacing: 1.6px;

    white-space: nowrap;

    opacity: 0.85;

}


/* =========================================================
                    DESKTOP NAVIGATION MENU
========================================================= */

.header-navigation {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 10px 26px;

}


/* =========================================================
                    NAVIGATION MENU LINKS
========================================================= */

.header-navigation a {

    position: relative;

    padding: 8px 0;

    color: var(--ray-text-color);

    font-size: 13px;

    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color 0.3s ease,
        transform 0.3s ease;

}


.header-navigation a:hover {

    color: var(--ray-hover-color);

    transform: translateY(-1px);

}


/* =========================================================
                    MENU HOVER UNDERLINE
========================================================= */

.header-navigation a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: 2px;

    width: 0;

    height: 1px;

    background-color: var(--ray-hover-color);

    transition: width 0.3s ease;

}


.header-navigation a:hover::after {

    width: 100%;

}


/* =========================================================
                    HEADER ICONS CONTAINER
========================================================= */

.header-icons {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 6px;

}


/* =========================================================
                    INDIVIDUAL ICON BUTTON
========================================================= */

.header-icon-button {

    position: relative;

    width: 41px;

    height: 41px;

    border: none;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--ray-text-color);

    background-color: transparent;

    font-size: 17px;

    cursor: pointer;

    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        transform 0.3s ease;

}


.header-icon-button:hover {

    color: var(--ray-white-color);

    background-color: var(--ray-text-color);

    transform: translateY(-2px);

}


/* =========================================================
                    SHOPPING BAG NUMBER
========================================================= */

.shopping-bag-count {

    position: absolute;

    top: 1px;

    right: 0;

    min-width: 16px;

    height: 16px;

    padding: 0 4px;

    border-radius: 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--ray-white-color);

    background-color: var(--ray-text-color);

    font-size: 9px;

    font-weight: 600;

}


.shopping-bag-button:hover .shopping-bag-count {

    color: var(--ray-text-color);

    background-color: var(--ray-white-color);

}


/* =========================================================
                    MOBILE MENU BUTTON
========================================================= */

.mobile-menu-button {

    display: none;

    width: 42px;

    height: 42px;

    border: none;

    color: var(--ray-text-color);

    background-color: transparent;

    font-size: 21px;

    cursor: pointer;

}


/* =========================================================
                    ACCOUNT MENU WRAPPER
========================================================= */

.account-menu-wrapper {

    position: relative;

}


/* =========================================================
                    LOGGED-IN INDICATOR
========================================================= */

.account-online-dot {

    position: absolute;

    top: 3px;

    right: 2px;

    width: 9px;

    height: 9px;

    border: 2px solid var(--ray-background-color);

    border-radius: 50%;

    background-color: var(--ray-hover-color);

}


/* =========================================================
                    ACCOUNT DROPDOWN
========================================================= */

.account-dropdown {

    position: absolute;

    top: calc(100% + 15px);

    right: 0;

    z-index: 2000;

    width: 265px;

    padding: 19px;

    border: 1px solid var(--ray-border-color);

    border-radius: 18px;

    color: var(--ray-text-color);

    background-color: #fffdf9;

    box-shadow:
        0 18px 45px rgba(75, 51, 40, 0.16);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform: translateY(-8px);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;

}


/* =========================================================
                    ACCOUNT MENU OPEN
========================================================= */

.account-dropdown.show-account-menu {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: translateY(0);

}


/* =========================================================
                    ACCOUNT DROPDOWN HEADING
========================================================= */

.account-dropdown-heading {

    display: flex;

    flex-direction: column;

    gap: 3px;

}


.account-dropdown-heading span {

    color: rgba(75, 51, 40, 0.62);

    font-size: 9px;

    font-weight: 500;

    letter-spacing: 1.4px;

    text-transform: uppercase;

}


.account-dropdown-heading strong {

    color: var(--ray-text-color);

    font-family: "Cormorant Garamond", serif;

    font-size: 22px;

    font-weight: 700;

}


/* =========================================================
                    ACCOUNT DESCRIPTION
========================================================= */

.account-login-description {

    margin-top: 10px;

    color: rgba(75, 51, 40, 0.68);

    font-size: 11px;

    line-height: 1.7;

}


/* =========================================================
                    ACCOUNT DIVIDER
========================================================= */

.account-dropdown-divider {

    width: 100%;

    height: 1px;

    margin: 13px 0;

    background-color: var(--ray-border-color);

}


/* =========================================================
                    ACCOUNT LINKS
========================================================= */

.account-dropdown-link {

    width: 100%;

    padding: 10px 8px;

    border-radius: 9px;

    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--ray-text-color);

    font-size: 11px;

    font-weight: 500;

    text-decoration: none;

    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;

}


.account-dropdown-link i {

    width: 17px;

    color: var(--ray-hover-color);

    text-align: center;

}


.account-dropdown-link:hover {

    color: var(--ray-text-color);

    background-color: var(--ray-background-color);

    transform: translateX(3px);

}


/* =========================================================
                    LOGOUT LINK
========================================================= */

.logout-account-link {

    color: #923d3d;

}


.logout-account-link i {

    color: #923d3d;

}


.logout-account-link:hover {

    color: #923d3d;

    background-color: #f9ece9;

}


/* =========================================================
                    ADMIN LOGIN BUTTON
========================================================= */

.account-login-button {

    width: 100%;

    margin-top: 15px;

    padding: 11px 15px;

    border: 1px solid var(--ray-text-color);

    border-radius: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    color: var(--ray-white-color);

    background-color: var(--ray-text-color);

    font-size: 11px;

    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        transform 0.3s ease;

}


.account-login-button:hover {

    color: var(--ray-text-color);

    background-color: transparent;

    transform: translateY(-1px);

}


/* =========================================================
                    LARGE TABLET DESIGN
========================================================= */

@media screen and (max-width: 1250px) {

    .ray-header {

        grid-template-columns:
            auto 1fr auto;

        min-height: 105px;

    }


    .ray-logo {

        min-width: 190px;

    }


    .ray-studio-text {

        font-size: 22px;

        letter-spacing: 5px;

    }


    .header-navigation {

        gap: 8px 16px;

    }


    .header-navigation a {

        font-size: 12px;

    }


    /*
        Keep account visible.
        Hide wishlist only.
    */

    .wishlist-icon {

        display: none;

    }

}


/* =========================================================
                    TABLET AND MOBILE HEADER
========================================================= */

@media screen and (max-width: 900px) {

    .ray-header {

        min-height: 95px;

        padding: 10px 18px;

        grid-template-columns:
            45px
            1fr
            auto;

        gap: 10px;

    }


    /* =====================================================
                    MOBILE MENU BUTTON
    ====================================================== */

    .mobile-menu-button {

        display: flex;

        align-items: center;

        justify-content: center;

    }


    /* =====================================================
                    MOBILE LOGO
    ====================================================== */

    .ray-logo {

        min-width: auto;

    }


    .ray-logo-top {

        height: 37px;

    }


    .ray-urdu-text {

        font-size: 29px;

    }


    .logo-leaf {

        font-size: 18px;

    }


    .ray-studio-text {

        font-size: 19px;

        letter-spacing: 4px;

    }


    .logo-line {

        width: 25px;

    }


    .ray-logo-tagline {

        margin-top: 5px;

        font-size: 5px;

        letter-spacing: 1px;

    }


    /* =====================================================
                    MOBILE NAVIGATION
    ====================================================== */

    .header-navigation {

        position: absolute;

        top: 100%;

        left: 0;

        width: 100%;

        padding: 22px;

        display: none;

        flex-direction: column;

        align-items: flex-start;

        gap: 4px;

        background-color: var(--ray-background-color);

        border-top: 1px solid var(--ray-border-color);

        border-bottom: 1px solid var(--ray-border-color);

        box-shadow:
            0 12px 25px
            rgba(75, 51, 40, 0.12);

    }


    .header-navigation.show-menu {

        display: flex;

    }


    .header-navigation a {

        width: 100%;

        padding: 11px 5px;

        border-bottom: 1px solid var(--ray-border-color);

        font-size: 14px;

    }


    .header-navigation a:last-child {

        border-bottom: none;

    }


    .header-navigation a::after {

        display: none;

    }


    /* =====================================================
                    MOBILE ICONS
    ====================================================== */

    .header-icons {

        gap: 0;

    }


    .account-menu-wrapper
    .account-icon {

        display: flex;

    }


    .wishlist-icon {

        display: none;

    }


    /* =====================================================
                    MOBILE ACCOUNT MENU
    ====================================================== */

    .account-dropdown {

        position: fixed;

        top: 90px;

        right: 15px;

        width:
            min(
                270px,
                calc(100vw - 30px)
            );

    }

}


/* =========================================================
                    SMALL MOBILE DESIGN
========================================================= */

@media screen and (max-width: 480px) {

    .ray-header {

        padding: 9px 10px;

        grid-template-columns:
            38px
            1fr
            auto;

    }


    .mobile-menu-button {

        width: 36px;

        height: 36px;

        font-size: 18px;

    }


    .ray-urdu-text {

        font-size: 25px;

    }


    .ray-studio-text {

        font-size: 17px;

        letter-spacing: 3px;

    }


    .logo-line {

        width: 18px;

    }


    .ray-logo-tagline {

        font-size: 4.5px;

        letter-spacing: 0.7px;

    }


    .header-icon-button {

        width: 36px;

        height: 36px;

        font-size: 15px;

    }


    .account-dropdown {

        top: 82px;

        right: 10px;

        width:
            calc(100vw - 20px);

    }

}
