@layer global {

    @font-face {
        font-family: "Kumbah Sans";
        src: url("assets/fonts/KumbhSans-VariableFont_YOPQ\,wght.ttf")format("truetype");
        font-weight: 100 900;
        font-style: normal;
    }

    :root {
        --Very-dark-blue: hsl(220, 13%, 13%);
        --Dark-grayish-blue: hsl(219, 9%, 45%);
        --Grayish-blue: hsl(220, 14%, 75%);
        --Light-grayish-blue: hsl(223, 64%, 98%);
        --White: hsl(0, 0%, 100%);
        --Black: hsl(0, 0%, 0%);
        --Orange: hsl(26, 100%, 55%);
        --Pale-orange: hsl(25, 100%, 94%);

        --color-main-bg:var(--Light-grayish-blue);
        --color-bold-font:var(--Very-dark-blue);
        --color-normal-font:var(--Dark-grayish-blue);
        --color-button-orange-bg:var(--Orange);
        --color-button-quantity-bg:var(--Grayish-blue);
        --color-phone-menu-opened:var(--Black);
        --color-phone-menu-opened-bg:var(--White);

        --fs-paragraph: 1rem;
    }

    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    * {
        margin: 0;
        padding: 0;
    }

    body {
        background-color: var(--White);
        font-family:"Kumbh Sans", sans-serif;
        font-size: 1rem;
        color: var(--color-normal-font);
    }

    button {
        border: none;
        background: none;
        cursor: pointer;
    }

    ul {
        list-style: none;
    }

    a {
        text-decoration: none;
        font-size: 1rem;
        font-weight: bold;
        cursor: pointer;
        color: var(--color-bold-font);

        @media(width >= calc(820 / 16 * 1rem)) {
            color: var(--color-normal-font);
        }
    }

    h1 {
        color: var(--color-bold-font);

         @media(width >= calc(1040 / 16 * 1rem)) {
            font-size: 50px;
         }

    }
}


@layer component {

    .visually-hidden {
        position: absolute;
        left: -1000px;
        top: auto;
        width: 1px;
        height: 1px;
        overflow: hidden;

        &.skip-link:focus {
        left: 0;
        width: auto;
        height: auto;
        background-color: var(--color-main-bg);
        color: var(--color-text-light);
        padding: 10px;
        border: 2px solid var(--color-text-light);
        }
    }

    nav {
        display: flex;
        justify-content: space-between;
        padding: 15px;
        gap: calc(20px / 16px * 1rem);
        position: relative;

        @media(width >= calc(820 / 16 * 1rem)) {
            margin: 0 70px;
            padding: 30px;
            border-bottom: 0.5px solid var(--Grayish-blue);
        }  
    }

    .nav__first-child {
        display: flex;
        gap: 40px;
    }

    .menu__icon {
        @media(width >= calc(820 / 16 * 1rem)) {
            display: none;
        }
    }

    .logo__img {
        height: 15px;
        width: auto;
        margin-left: 0.7rem;
    }

    .nav-links {
        display: flex;
        gap: 20px;

        @media(width <= calc(819 / 16 * 1rem)) {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            left: -2000%;
            position: fixed;
            width: 250px;
            height: 100%;
            background-color: var(--color-phone-menu-opened-bg);
            padding: 1.1rem;
            gap: 20px;
            transition: left 0.3s;
        } 
    }

    li a:hover {
        border-bottom: 4px solid var(--color-button-orange-bg);
        color: var(--Very-dark-blue);
    }

    #closeButton {
        margin-block-end: 20px;
    }

    .nav-links.active {
        left: 0;
    }

    .cart__icon-nave {
        display: flex;
    }

    .notif {
        background: var(--Orange);
        border-radius: 50%;
        color: white;
        font-size: 10px;
        width: 10px;
        height: 10px;
    }

    .cart__icon {
        width: 20px;
        height: 20px;
    }

    .account__img {
        margin-left: 1rem;
    }

    .account__img:hover {
        border: 2px solid var(--color-button-orange-bg);
        border-radius: 50%;
    }

    main {
        @media(width >= calc(820 / 16 * 1rem)) {
            display: flex;
            gap: 4%;
            padding: 10%;
            align-items: center;
        }
    }

    .icons {
        width: 12px;
        height: auto;
    }

    .product__image-dashboard-desktop {
        @media(width <= calc(819 / 16 * 1rem)) {
            display: none;
        }
    }

    .product__image-container {
        width: 100%;
        height: 320px;
        display: flex;
        justify-content: center;

        @media(width >= calc(600 / 16 * 1rem)) {
            height: 450px;
        }

   }
    .product__image-container img {
        width: 100%;
        height: 320px;

        @media(width >= calc(600 / 16 * 1rem)) {
            height: 450px;
        }
    }

    @media(width >= calc(820 / 16 * 1rem)) {
        .product__image-container {
            display: none;
        }
    }

    .product__image-dashboard-mobile {
        
        @media(width <= calc(819 / 16 * 1rem)) {
            align-items: center;
            display: flex;
        }
    }

    .hidden {
        display: none;
    }

    .log__in {
        box-shadow: 0 20px 40px rgba(0,0,0,.18);
        background: var(--White);
        border-radius: 10px;
        margin: 0 10px;
        padding: 23px;
        position: absolute;
        top: 60px;
        right: 0;
        width: 300px;
        z-index: 1000;

        @media(width >= calc(820 / 16 * 1rem)) {
            right: 4%;
        }
    }

    .input__names {
        margin-block-start: 25px;
        margin-block-end: 5px;
    }

    .form-message.error {
        color: red;
    }

    .form-message.success {
        color: green;
    }

    .inputs {
        padding: 5px;
        border: 1px solid var(--color-normal-font);
        border-radius: 5px;
        width: 100%;
    }

    .forgot {
        display: flex;
        justify-content: end;
        margin-block-start: 5px;
        margin-block-end: 20px;
        color: var(--color-button-orange-bg);
        font-size: 1rem;
    }

    .longin__button {
        width: 100%;
        font-size: 1rem;
        background: var(--color-button-orange-bg);
        padding: 10px;
        border-radius: 5px;
    }

    .change__signup {
        display: flex;
        gap: 5px;
        margin-block-start: 10px;
    }

    .cart__panel {
        box-shadow: 0 20px 40px rgba(0,0,0,.18);
        background: var(--White);
        border-radius: 10px;
        margin: 0 10px;
        padding: 23px;
        position: absolute;
        top: 60px;
        right: 0;
        width: 360px;
        z-index: 1000;

        @media(width >= calc(820 / 16 * 1rem)) {
            right: 4%;
        }
    }

    .cart__title {
        color: var(--color-bold-font);
        padding-block-end: 1.3rem;
        font-weight: bold;
    }

    .move__icons-wrapper-main {
        width: 100%;
        position: absolute;
        right: 0;
        left: 0;
        top: 26%;
        z-index: 1000;

        @media(width >= calc(820 / 16 * 1rem)) {
            display: none;
        }    

    }

    @media(width >= calc(600 / 16 * 1rem)) {
        .move__icons-wrapper-main {
            top: 36%;
        }
    }

    .cart__items-wrapper-main {
        display: flex;
        flex-direction: column;
    }

    .empty__cart {
        padding: 50px;
        display: flex;
        justify-content: center;
    }

    .cart__items-wrapper {
        display: flex;
        padding: 23px 0;
        gap: 10px;
    }

    .cart__product-img {
        width: 50px;
        height: 50px;
        border-radius: 5px;
    }

    .dis__price-val {
        display: flex;
        flex-direction: column;
        justify-content: center;
        row-gap: 8px;
        font-size: 0.8rem;
        font-weight: 400;
    }

    .delete {
        display: flex;
        align-items: center;
        padding-left: 30px;
    }

    .move__icons-wrapper {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .move__icons {
        background: var(--color-main-bg);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        padding: 13px;
        margin: 1rem;
    }    

    .product__description-wrapper {
        padding: 20px;
    }

    .title {
        font-size: 0.9rem;
        margin-block-end: 1rem;
        font-weight: 700;
    }

    .description {
        font-size: 0.9rem;
        line-height: 1.5rem;
        margin: 1rem 0;
    }

    .product__price {

        display: flex;
        justify-content: space-between;
        row-gap: 0.8rem;

        @media(width >= calc(820 / 16 * 1rem)){
            display: flex;
            flex-direction: column;
        }    
    }

    .price__discount1 {
        display: flex;
        gap: 1rem;
    }

    .current__price {
        color: var(--color-bold-font);
        font-weight: bold;
        font-size: 1.3rem;
    }

    .price__discount {
        background: var(--color-bold-font);
        color: var(--color-phone-menu-opened-bg);
        font-weight: bold;
        font-size: 0.8rem;
        padding: 5px 8px;
        border-radius: 5px;
    }

    .old__price {
        text-decoration:line-through;
        font-weight: bold;
        font-size: 0.8rem;
        margin-block-start: 3px;
    }

    .buttons__wrapper {
        @media(width >= calc(820 / 16 * 1rem)) {
            display: flex;
            gap: 20px;
        }
    }

    .cart__quantity {
        display: flex;
        justify-content: space-between;
        margin: 1rem 0;
        padding: 0.8rem;
        border-radius: 5px;
        background: var(--Light-grayish-blue);
        font-size: 0.9rem;
        font-weight: bold;
        color: var(--color-bold-font);
        padding-block-end: 13px;

        @media(width >= calc(820 / 16 * 1rem)) {
            width: 50%;
            padding: 1rem;
        }    
    }

    @media(width >= calc(1000 / 16 * 1rem)) {
        .cart__quantity {
            width: 30%;
            padding: 1rem;
        }
    } 

    .icon__img {
        width: 9px;
        height: auto;
    }

    .add__to-button {
        background: var(--color-button-orange-bg);
        display: flex;
        justify-content: center;
        gap: 0.8rem;
        padding: 0.6rem;
        font-weight: bold;
        color: var(--color-bold-font);
        width: 100%;
        border-radius: 5px;

        @media(width >= calc(820 / 16 * 1rem)) {
            width: 50%;
            height: 50px;
            margin-top: 15px;
            align-items: center;
        } 
    }

    @media(width >= calc(1000 / 16 * 1rem)) {
        .add__to-button {
            width: 70%;
            padding: 1rem;
        }
    }

    .add__to-button:hover {
        background: rgb(239, 164, 26);
    }

    .add__to-cart {
        width: 1rem;
        height: auto;
    }

    .product__img-main {
        width: 400px;
        height: 400px;
        border-radius: 15px;
    }

    .product__img-thumbnail {
        display: flex;
        gap: 13px;
        margin-block-start: 13px;
    }

    .thumbnail__img {
        width: 90px;
        height: auto;
        border-radius: 10px;
    }

    .thumbnail__img:hover {
        opacity: 50%;
    }
}















































