/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --cream: #FFF8E6;

    --background: #faeed7;

    --brown-dark: #5D3516;
    --brown: #A05A32;

    --orange-light: #FFDFBA;
    --orange: #F5B967;
    --orange-dark: #EC9336;

    --checker-dark: #995F3F;
    --checker-light: #AF7051;

    --heading-font: "Fredoka", sans-serif;
    --body-font: "Poppins", sans-serif;

}


/* =========================================================
   GLOBAL
========================================================= */

html {
    scroll-behavior: smooth;
}


body {

    position: relative;
    isolation: isolate;

    min-height: 100vh;

    margin: 0;
    padding: 0;

    overflow-x: hidden;
    overflow-y: auto;

    background:
        var(--background);

    color:
        var(--brown-dark);

    font-family:
        var(--body-font);

}


/* =========================================================
   PAPER TEXTURE
========================================================= */

body::before {

    content: "";

    position: fixed;

    inset: 0;

    background:
        url("https://i.pinimg.com/1200x/56/29/c9/5629c969513a89e940f27b0aaac8a8e7.jpg")
        center / cover no-repeat;

    opacity: .08;

    mix-blend-mode: multiply;

    pointer-events: none;

    z-index: -1;

}


/* =========================================================
   SELECTION
========================================================= */

::selection {

    background:
        #E8D2B0;

    color:
        var(--brown-dark);

}


/* =========================================================
   TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {

    font-family:
        var(--heading-font);

    color:
        var(--brown-dark);

    font-weight:
        600;

    letter-spacing:
        .02em;

}


a,
button,
input,
textarea,
select {

    font-family:
        var(--body-font);

}


/* =========================================================
   CURSOR
========================================================= */

body,
a,
button,
input,
textarea,
select {

    cursor:
        url("https://file.garden/Z-ADSNZG32_D6MFV/CARRD/AERIS%20%26%20AMBROSIA/ASSETS/donut%20cursor.cur"),
        auto;

}


/* =========================================================
   NAVBAR
========================================================= */

#navbar {

    position:
        relative;

    z-index:
        9999;

}


/* Wooden plank */

.navbar {

    position:
        fixed;

    top:
        18px;

    left:
        50%;

    transform:
        translateX(-50%);

    width:
        min(1200px, calc(100% - 32px));

    min-height:
        76px;

    display:
        grid;

    grid-template-columns:
        180px
        1fr
        180px;

    align-items:
        center;

    padding:
        14px 58px;

    color:
        var(--cream);

    font-family:
        var(--body-font);

    background:

        linear-gradient(
            rgba(82, 48, 29, .35),
            rgba(82, 48, 29, .35)
        ),

        url("https://i.pinimg.com/736x/33/4a/7c/334a7ce2bb7f6c2e93d2d2d5d7614004.jpg");

    background-size:
        cover;

    background-position:
        center;

    border:
        2px solid
        #392217;

    border-radius:
        14px;

    box-shadow:
        0 9px 18px
        rgba(0, 0, 0, .3);

}


/* =========================================================
   LOGO
========================================================= */

.navbar-logo {

    display:
        flex;

    align-items:
        center;

    justify-content:
        flex-start;

    width:
        fit-content;

    text-decoration:
        none;

}


.navbar-logo img {

    display:
        block;

    width:
        auto;

    height:
        44px;

    object-fit:
        contain;

}


/* =========================================================
   NAV LINKS
========================================================= */

.nav-links {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        32px;

}


.nav-link {

    position:
        relative;

    color:
        var(--cream);

    text-decoration:
        none;

    font-family:
        var(--body-font);

    font-size:
        .95rem;

    font-weight:
        600;

    white-space:
        nowrap;

    transition:
        color .2s ease,
        transform .2s ease;

}



.nav-link:hover {

    color:
        var(--orange);

    transform:
        translateY(-1px);

}




/* =========================================================
   CART BUTTON
========================================================= */

.nav-cart {

    justify-self:
        end;

    display:
        flex;

    align-items:
        center;

    gap:
        7px;

    padding:
        9px 13px;

    border:
        1px solid
        rgba(255,255,255,.2);

    border-radius:
        10px;

    background:
        rgba(0,0,0,.15);

    color:
        var(--cream);

    font-family:
        var(--body-font);

    font-size:
        .82rem;

    font-weight:
        600;

    cursor:
        pointer;

    transition:
        background .2s ease,
        transform .2s ease;

}


.nav-cart:hover {

    background:
        rgba(0,0,0,.3);

    transform:
        translateY(-1px);

}


.cart-icon {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    font-size:
        15px;

    line-height:
        1;

}


.cart-label {

    line-height:
        1;

}


.cart-count {

    min-width:
        20px;

    height:
        20px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        0 5px;

    border-radius:
        50px;

    background:
        var(--orange);

    color:
        var(--brown-dark);

    font-size:
        .7rem;

    font-weight:
        700;

    line-height:
        1;

}


/* =========================================================
   HAMMERED NAILS
========================================================= */

.navbar-nail {

    position:
        absolute;

    top:
        50%;

    width:
        14px;

    height:
        14px;

    border-radius:
        50%;

    background:

        radial-gradient(
            circle at 35% 30%,
            #d4c0a3 35%,
            #9b8468 100%,
            #3b2d21 100%
        );

    border:
        1px solid
        #30241b;

    box-shadow:

        inset 1px 1px 2px
        rgba(255,255,255,.25),

        1px 2px 3px
        rgba(0,0,0,.4);

    transform:
        translateY(-50%);

}


.navbar-nail.left {

    left:
        18px;

}


.navbar-nail.right {

    right:
        18px;

}


/* =========================================================
   PAGE CONTENT
========================================================= */

#page-content {

    position:
        relative;

    z-index:
        1;

    width:
        min(1200px, calc(100% - 32px));

    margin:
        0 auto;

    padding:
        140px 0 80px;

}


/* =========================================================
   GENERIC CONTENT CARD
========================================================= */

.content-card {

    width:
        100%;

    padding:
        40px;

    background:
        var(--cream);

    border:
        2px solid
        var(--brown-dark);

    border-radius:
        22px;

    box-shadow:
        0 12px 25px
        rgba(93,53,22,.15);

}


/* =========================================================
   BUTTONS
========================================================= */

button {

    border:
        none;

}


/* =========================================================
   CUSTOM SCROLLBAR
========================================================= */

body::-webkit-scrollbar {

    width:
        12px;

}


body::-webkit-scrollbar-track {

    background:
        var(--cream);

}


body::-webkit-scrollbar-thumb {

    background:
        var(--brown);

    border:
        3px solid
        var(--cream);

    border-radius:
        999px;

}


body::-webkit-scrollbar-thumb:hover {

    background:
        var(--brown-dark);

}


body {

    scrollbar-width:
        thin;

    scrollbar-color:
        var(--brown)
        var(--cream);

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .navbar {

        grid-template-columns:
            140px
            1fr
            140px;

        padding:
            12px 24px;

    }


    .nav-links {

        gap:
            20px;

    }


    .nav-link {

        font-size:
            .78rem;

    }


    .navbar-logo img {

        height:
            38px;

    }


    #page-content {

        padding-top:
            130px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .navbar {

        top:
            10px;

        width:
            calc(100% - 20px);

        min-height:
            64px;

        grid-template-columns:
            auto
            1fr
            auto;

        padding:
            10px 18px;

        border-radius:
            12px;

    }


    .navbar-logo img {

        height:
            34px;

    }


    .nav-links {

        gap:
            14px;

    }


    .nav-link {

        font-size:
            .7rem;

    }


    /* Hide Events on smaller screens */

    .nav-link:nth-child(4) {

        display:
            none;

    }


    .nav-cart {

        padding:
            8px;

    }


    .cart-label {

        display:
            none;

    }


    .navbar-nail {

        width:
            11px;

        height:
            11px;

    }


    .navbar-nail.left {

        left:
            10px;

    }


    .navbar-nail.right {

        right:
            10px;

    }


    #page-content {

        width:
            calc(100% - 20px);

        padding:
            110px 0 50px;

    }


    .content-card {

        padding:
            25px;

        border-radius:
            18px;

    }

}


/* =========================================================
   VERY SMALL SCREENS
========================================================= */

@media (max-width: 430px) {

    .nav-links {

        gap:
            10px;

    }


    .nav-link {

        font-size:
            .65rem;

    }


    .navbar-logo img {

        height:
            30px;

    }


    #page-content {

        padding-top:
            105px;

    }

}

/* ===========================
   GLOBAL SCROLLBAR
=========================== */

/* Chrome, Edge, Safari */

::-webkit-scrollbar {

    width: 12px;
    height: 12px;

}


::-webkit-scrollbar-track {

    background:
        #FFF8E6;

    border-left:
        1px solid
        rgba(93, 53, 22, .12);

}


::-webkit-scrollbar-thumb {

    background:
        linear-gradient(
            135deg,
            #A96B43,
            #8A5333
        );

    border:
        3px solid
        #FFF8E6;

    border-radius:
        999px;

    box-shadow:
        inset 1px 1px 2px
        rgba(255,255,255,.2),

        1px 2px 3px
        rgba(93,53,22,.18);

}


::-webkit-scrollbar-thumb:hover {

    background:
        linear-gradient(
            135deg,
            #C17A4B,
            #A05A32
        );

}


/* ===========================
   SCROLLBAR CORNERS
=========================== */

::-webkit-scrollbar-corner {

    background:
        #FFF8E6;

}


/* ===========================
   FIREFOX
=========================== */

html {

    scrollbar-width:
        thin;

    scrollbar-color:
        #8A5333
        #FFF8E6;

}