:root {
    --dark: #414756;
    --brown: #715f58;
    --light: #a5abbd;
    --lighter: #f1f1e6;
    --main: #48618f;
    --gold-light: #eebe61;
    --gold-dark: #936418;
    --custom: #00787c; 
}

*, *::after, *::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-size: 16px;
}

body {
    min-height: 100dvh;
    margin: 0;
    font-family: Helvetica, sans-serif;
    overflow-x: hidden;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif
}

.container {
    width: min(1150px, 93%);
    height: 100%;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
    font-family: inherit;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    object-fit: cover;
}

.background-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#main {
    padding-top: 7rem;
    min-height: 70dvh;
}

@media (max-width: 768px){
    html {
        font-size: 12px;
    }
}

#loading-screen {
    position: fixed;
    height: 100dvh;
    width: 100dvh;
    width: 100%;
    background: rgba(255,255,255,0.5);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    backdrop-filter: blur(5px);
}

/* ------------------------------------------------------------- Header */

header {
    height: 7rem;
    box-shadow: 0px 4px 4px rgba(0,0,0,.25);
    background: white;
    position: fixed;
    width: 100%;
    z-index: 9999;
    padding: .5rem 0;
    color: var(--dark);
}

header .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    background-color: inherit;
}

#header-logo-container {
    height: 100%;
    width: max(20%, 200px);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#header-logo-container img {
    height: 80%;
    width: 100%;
    object-fit: contain;
}

#header-cart-container-mobile-top {
    width: fit-content;
    width: 100%;
    height: fit-content;
    padding: .5rem 0;
    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0px 4px 4px rgba(0,0,0,.25);
    color: inherit;
}

#header-center-container {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: 1fr 1fr;
    padding: 5px;
    gap: .5rem;
}

.header-center-search {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.header-center-search input {
    width: 100%;
    padding: 0 .5rem;
    font-size: inherit;
}

.header-center-search button {
    padding: .5rem .7rem;
    color: darkslategrey;
    font-size: 1.1rem;
}

#header-center-nav {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.nav-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 1rem;
    color: inherit;
    font-weight: 600;
    transition: all .2s ease-in-out;
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -ms-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    cursor: pointer;
    position: relative;
}

.nav-link i {
    padding-left:.5rem;
}

.nav-link:hover,
.nav-link.active-link {
    background-color: var(--main);
    color: white;
}

.dropdown-child-container {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    width: fit-content;
    min-width: 100%;
}

.dropdown-child {
    background-color: inherit;
    padding: .5rem 1rem;
    white-space: nowrap;
    display: block;
    color: inherit;
}

.nav-link.dropdown-parent:hover > .dropdown-child-container {
    display: block;
    color: inherit;
    border: 1px solid grey;
}

.dropdown-child:hover {
    background-color: var(--main);
    color: white;
}

.header-cart-container, .header-cart-container-mobile {
    width: fit-content;
    min-width: 150px;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    margin-left: 0.5rem;
    color: inherit;
}

.cart-amount {
    white-space: nowrap;
}

.cart-qty {
    position: relative;
    font-size: 1.2rem;
}

.cart-qty-icon {
    font-size: 0.6rem;
    position: absolute;
    background-color: red;
    aspect-ratio: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    top: -30%;
    right: -50%;
    padding: 0rem;
    height: 80%;
    color: inherit;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}

#mobile-dropdown-container {
    display: none;
    color: inherit;
    background-color: inherit;
}

#mobile-dropdown-label {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    color: inherit;
    padding: .7rem;
    aspect-ratio: 1;
    cursor: pointer;
    font-size: 1.2rem;
} 

#mobile-dropdown-button:checked ~ #mobile-nav {
    max-height: 100dvh;
    padding-bottom: 1.5rem;
}

#mobile-nav {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    background-color: inherit;
    box-shadow: 0px 4px 4px rgba(0,0,0,.25);
    max-height: 0;
    overflow: hidden;
    transition: all .2s ease-in-out;
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -ms-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
}

#mobile-nav .header-center-search {
    padding: .5rem 2%;
}

#search-mobile {
    width: 100%;
}  

#mobile-nav .nav-link {
    padding: .5rem;
    display: block;
}

.dropdown-child-container-mobile {
    display: flex;
    flex-direction: column;
    max-height: 0rem;
    overflow: hidden;
    transition: all .2s ease-in-out;
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -ms-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
}

#dropdown-mobile-shop:checked ~ .dropdown-child-container-mobile {
    max-height: 20rem;
}

.dropdown-child-mobile {
    padding: .5rem 1rem;
    color: inherit;
    background-color: var(--dark);
    font-weight: 600;
}

#mobile-nav .header-cart-container-mobile {
    margin-top: 2rem;
    margin-left: 0;
    width: 100%;
}

@media (max-width: 768px){
    header {
        height: 5rem;
    }

    #main {
        padding-top: 5rem;
    }
    
    #header-logo-container {
        width: auto;
        height: 100%;
    }
    
    #header-center-container,
    .header-cart-container {
        display: none;
    }

    #mobile-dropdown-container {
        display: block;
    }

    #header-cart-container-mobile-top {
        display: flex;
        background-color: inherit;
    }

    .dropdown-parent-mobile {
        display: none;
    }
}

/*
.dropdown-parent, #mobile-nav .dropdown-parent-mobile {
    display: none;
} */

/* ------------------------------------------------------------- Footer*/

#footer {
    padding-top: 3rem;
    background-color: var(--dark);
    border-top: 2px solid var(--gold-light);
}

#footer .container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    color: white;
}

#footer-logo {
    max-width: 80%;
    max-height: 7rem;
    object-fit: contain;
    margin-bottom: 1rem;
}

.footer-title {
    color: var(--gold-light);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-link {
    display: block;
    padding: .5rem;
}

.footer-link:hover {
    background-color: var(--gold-dark);
}

.footer-link i {
    margin-right: 1rem;
}

#copyright {
    padding: .5rem;
    color: white;
    text-align: center;
    background-color: var(--gold-dark);
    font-weight: 600;
}

@media (max-width: 768px){
    #footer .container {
        grid-template-columns: 1fr;
        width: 85%;
        padding-top: 5rem;
    }

    #footer {
        font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;;
    }

    .footer-title {
        font-weight: 600;
    }
}