* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #faf6ec;
    width: 100%;
    min-height: 100vh;
    font-family: 'Times New Roman', Times, serif;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.1rem 7%;
    background-color: #fff6e5;
    border-bottom: 1px solid rgb(255, 251, 240);

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

nav div img {
    width: 50px;
}

.navbar .navbar-nav a {
    text-decoration: none;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    color: #31824C;
    font-size: 1.3rem;
    margin: 0 1rem;

    border-bottom: 1px solid transparent;

    transition:
        color 0.3s ease,
        border-color 0.3s ease;
}

.navbar .navbar-nav a:hover {
    color: #42B067;
    border-bottom-color: #42B067;
}

.cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 20%;
    width: 60px;
    height: 48px;
    padding: 10px;

    text-decoration: none;

    transition: background-color 0.3s ease;
}

.cart-icon:hover {
    background-color: #dddddda9;
}

.cart-icon img {
    width: 24px;
    height: 24px;
}

#cart-count {
    background: #31824C;
    color: white;

    border-radius: 50%;

    padding: 2px 6px;

    font-size: 0.8rem;
    margin-left: 4px;
}

.navbar .navbar-extra a {
    color: #31824C;
    margin: 0 0.5rem;
    text-decoration: none;
}

.navbar .navbar-extra a:hover {
    color: #42B067;
}

#hamburger-menu {
    display: none;
    cursor: pointer;
    font-weight: 900;
    font-size: 2rem;
    font-family: 'Times New Roman', Times, serif;
}

h1 {
    margin-top: 120px;
    text-align: center;
    color: #31824C;
}

.cart-container {
    max-width: 800px;
    width: calc(100% - 40px);

    margin: 2rem auto;

    background-color: #ffffff;

    border-radius: 1rem;

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.1);

    padding: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;

    margin-bottom: 1.5rem;

    border-bottom: 1px solid #eeeeee;

    padding-bottom: 1rem;
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-size: 1.2rem;
    font-weight: bold;

    margin-bottom: 0.3rem;

    color: #31824C;
}

.item-price {
    color: #666666;
}

.quantity-controls {
    display: flex;
    align-items: center;

    gap: 0.5rem;
}

.quantity-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.3rem 0.7rem;

    background-color: #31824C;
    color: #ffffff;

    border: 2px solid transparent;
    border-radius: 5px;

    cursor: pointer;

    font-family: 'Times New Roman', Times, serif;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.quantity-controls button:hover {
    background-color: #ffffff;
    color: #31824C;

    border-color: #31824C;
}

.quantity-controls button:active {
    background-color: #e8f3ec;
    color: #256638;

    border-color: #256638;
}

.quantity {
    min-width: 30px;
    text-align: center;
}

.remove-btn {
    margin-left: 20px;

    color: #c0392b;
    background: none;

    border: 2px solid transparent;
    border-radius: 5px;

    font-weight: bold;

    cursor: pointer;

    padding: 0.3rem 0.5rem;

    font-family: 'Times New Roman', Times, serif;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.remove-btn:hover {
    color: #a93226;

    background-color: #fcebea;

    border-color: #c0392b;
}

.total {
    text-align: right;

    font-size: 1.2rem;
    font-weight: bold;

    margin-top: 2rem;

    color: #31824C;
}

.checkout-btn {
    display: block;

    margin: 1.5rem auto 0;

    padding: 0.75rem 2rem;

    background-color: #31824C;
    color: #ffffff;

    border: 2px solid transparent;
    border-radius: 8px;

    font-size: 1.2rem;
    font-weight: 500;

    font-family: 'Times New Roman', Times, serif;

    cursor: pointer;

    text-align: center;
    text-decoration: none;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.checkout-btn:hover {
    background-color: #ffffff;
    color: #31824C;

    border-color: #31824C;
}

.checkout-btn:active {
    background-color: #e8f3ec;
    color: #256638;

    border-color: #256638;
}

.empty-message {
    text-align: center;
    color: #888888;

    line-height: 1.6;
}

.quantity-controls button:focus-visible,
.remove-btn:focus-visible,
.checkout-btn:focus-visible {
    outline: 3px solid #a5d6a7;
    outline-offset: 3px;
}

.footer {
    background-color: #fdebcf;

    padding: 40px 60px;

    font-family: 'Times New Roman', Times, serif;

    color: #1c1c1c;
    font-size: 18px;

    margin-top: 200px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    column-gap: 200px;

    margin-bottom: 20px;
}

.footer-column h4 {
    font-size: 18px;
    font-weight: bold;

    margin-bottom: 12px;
}

.footer-column ul {
    list-style: none;

    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
    font-size: 16px;

    cursor: pointer;
}

.footer-column ul li:hover {
    text-decoration: underline;
}

.footer hr {
    width: 97%;

    border: none;
    border-top: 1px solid #000000;

    margin: 24px auto;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;

    flex-wrap: wrap;

    gap: 16px;
}

.footer-left {
    display: flex;
    align-items: center;

    gap: 12px;
}

.footer-logo {
    width: 40px;
    height: 60px;

    margin-left: 50px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 1.2rem;

    padding: 1rem 0;

    margin-right: 50px;
}

.footer-socials img {
    width: 44px;
    height: 44px;

    padding: 6px;

    background-color: #ead3ac;

    border-radius: 50%;

    border: 2px solid transparent;

    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.08);

    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;

    cursor: pointer;

    object-fit: contain;
}

.footer-socials img[alt="youtube"],
.footer-socials img[alt="instagram"],
.footer-socials img[alt="linkedin"] {
    padding: 0;
}

.footer-socials img[alt="facebook"] {
    padding: 3px;
}

.footer-socials img:hover {
    background-color: #fff9ee;

    border-color: #896526;

    transform: scale(1.05);

    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.12);
}

@media (max-width: 1440px) {

    html {
        font-size: 75%;
    }

}

@media (max-width: 1024px) {

    html {
        font-size: 62.5%;
    }

    #hamburger-menu {
        display: inline-block;
    }

    .navbar .navbar-nav {
        position: absolute;

        top: 100%;
        right: -100%;

        background-color: #ffffff;

        width: 30rem;
        height: 100vh;

        transition: right 0.3s ease;
    }

    .navbar .navbar-nav.active {
        right: 0;
    }

    .navbar .navbar-nav a {
        display: block;

        margin: 1.5rem;
        padding: 0.5rem;

        font-size: 2rem;

        position: relative;
    }

    .navbar .navbar-nav a::after {
        content: "";

        position: absolute;

        left: 0;
        bottom: 0;

        height: 2px;
        width: 100%;

        background-color: #31824C;

        transform: scaleX(0);

        transition: transform 0.3s ease;

        transform-origin: left;
    }

    .navbar .navbar-nav a:hover::after {
        transform: scaleX(0.2);
    }

    .cart-container {
        max-width: 700px;
    }

    .footer-top {
        flex-direction: column;

        gap: 2rem;

        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;

        gap: 1rem;
    }

    .footer-logo {
        margin-left: 0;
    }

    .footer-socials {
        justify-content: center;
        margin-right: 0;
    }

}

@media (max-width: 600px) {

    html {
        font-size: 55%;
    }

    #hamburger-menu {
        display: inline-block;

        font-weight: 900;
        font-size: 2rem;

        font-family: Arial Black, sans-serif;

        color: #31824C;

        cursor: pointer;
    }

    .navbar .navbar-nav {
        display: none;

        position: absolute;

        top: 100%;
        right: 1rem;

        background-color: #ffffff;

        flex-direction: column;

        width: 200px;
        height: auto;

        padding: 1rem;

        box-shadow:
            0 4px 8px rgba(0, 0, 0, 0.1);

        border-radius: 0.5rem;
    }

    .navbar .navbar-nav.active {
        display: flex;
    }

    h1 {
        margin-top: 100px;

        font-size: 3rem;
    }

    .cart-container {
        width: calc(100% - 30px);

        padding: 2rem;
    }

    .cart-item {
        flex-wrap: wrap;

        justify-content: space-between;

        gap: 1.5rem;

        padding-bottom: 2rem;
    }

    .item-info {
        flex-basis: 100%;
    }

    .item-name {
        font-size: 1.8rem;
    }

    .item-price {
        font-size: 1.5rem;
    }

    .quantity-controls {
        gap: 1rem;
    }

    .quantity-controls button {
        padding: 0.6rem 1rem;

        font-size: 1.6rem;
    }

    .quantity {
        font-size: 1.6rem;
    }

    .remove-btn {
        margin-left: 0;

        font-size: 1.5rem;
    }

    .total {
        font-size: 1.8rem;
    }

    .checkout-btn {
        font-size: 1.7rem;

        padding: 1rem 3rem;
    }

    .empty-message {
        font-size: 1.5rem;
    }

    .footer {
        padding: 40px 20px;
    }

    .footer-top {
        flex-direction: column;

        align-items: center;
        text-align: center;

        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;

        gap: 1rem;

        text-align: center;
    }

    .footer-left {
        flex-direction: column;
        align-items: center;

        gap: 0.5rem;
    }

    .footer-logo {
        margin-left: 0;
    }

    .footer-socials {
        margin: 0;

        justify-content: center;

        flex-wrap: wrap;
    }

}

@media (prefers-reduced-motion: reduce) {

    .quantity-controls button,
    .remove-btn,
    .checkout-btn,
    .footer-socials img {
        transition: none;
    }

}