@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    font-family: "Montserrat", sans-serif;
    padding: 0;
    margin: 0;
    text-transform: uppercase;
}

body {
    background-color: black;
    color: white;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 2%;
    background-color: black;
}

header .logo {
    width: 160px;
    height: auto;
    margin-left: 100px;
}

header .nav,
.nav1 {
    font-size: 30px;
    text-decoration: none;
    list-style: none;
}

header .nav1 {
    display: flex;
    cursor: pointer;
}

header .nav1 a {
    padding: 0px 15px;
}

header .nav i,
.nav1 i {
    color: white;
}

.side-panel {
    position: fixed;
    top: 0;
    left: -335px;
    width: 300px;
    height: 96.4%;
    background: black;
    color: #fff;
    z-index: 1100;
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.8);
    transition: left 0.5s ease-in-out;
    display: flex;
    padding: 1rem;
    flex-direction: column;
}

.side-panel.open {
    left: 0;
    border: 1.5px solid #ffffff;
}

.side-panel-head {
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 22px;
}

.side-panel-links {
    font-weight: 700;
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px 20px;
}

.side-panel-links a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.2s;
}

.side-panel-links a:hover {
    color: #b9b9b9;
}

.cart-panel {
    position: fixed;
    right: -100%;
    top: 0;
    width: 500px;
    height: 96.3%;
    background-color: black;
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.8);
    transition: right 0.5s ease-in-out;
    padding: 1rem;
    z-index: 1000;
    overflow-y: auto;
}

.cart-panel.open {
    right: 0;
    border: 1.5px solid #ffffff;
}

.cart {
    height: 83%;
}

.line {
    padding: 0.5px 0;
    background-color: white;
    margin-bottom: 10px;
}

.foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 20px;
}

#subtotal-label {
    text-align: left;
}

#subtotal-amount {
    text-align: right;
}

.cart-panel p,
.side-panel p {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 400;
}

.cart-header,
.side-panel {
    font-weight: 700;
    font-size: 25px;
}

.cart-panel button {
    padding: 14px 20px;
    width: 100%;
    margin-top: 10px;
    font-size: 15px;
    font-weight: 600;
    background-color: white;
    color: black;
    border: none;
    cursor: pointer;
}

.head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.head i,
.side-panel-head i {
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 0 40px 40px;
}

.product img {
    width: 100%;
    transition: transform 0.3s ease;
    cursor: pointer;
    margin-bottom: 10px;
}

.product1 img {
    width: 76%;
    transition: transform 0.3s ease;
    cursor: pointer;
    margin-bottom: 10px;
}

.product2 img {
    width: 76%;
    transition: transform 0.3s ease;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 20px;
}

.product3 img {
    width: 76%;
    transition: transform 0.3s ease;
    cursor: pointer;
    margin-top: 30px;
    margin-bottom: 29px;
}

.product img:hover,
.product1 img:hover,
.product2 img:hover,
.product3 img:hover {
    transform: scale(1.05);
}

.title {
    font-size: 16px;
    font-weight: 700;
}

.price {
    font-size: 16px;
    font-weight: 500;
    margin-top: 15px;
}

footer {
    background-color: #000;
    padding: 40px 20px 20px;
    text-align: center;
    border-top: 1px solid #222;
    font-weight: 500;
}

.icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.icons i {
    color: white;
}

.support {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 12px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.support a {
    color: white;
    text-decoration: none;
}

.support a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 12px;
    color: white;
    margin-bottom: 10px;
}

.accessibility {
    font-size: 11px;
    color: white;
    max-width: 600px;
    margin: 0 auto;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;
    display: none;
}

.cart-panel.open+#overlay {
    display: block;
}

#cart-bubble {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: white;
    color: black;
    font-size: 12px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.cart-bounce {
    animation: cart-bounce-anim 0.4s cubic-bezier(.68, -0.55, .27, 1.55);
}

@keyframes cart-bounce-anim {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.3);
    }

    60% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 10px;
    height: 7rem;
    border: 1px solid white;
    margin-bottom: 10px;
    background: black;
}

.cart-item img {
    width: 65px;
    height: 75px;
    margin-right: 10px;
}

.cart-item .details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.cart .shipping {
    font-size: 13px;
    color: #929292;
}

.cart-item .row-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
}

.cart-item .quantity-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    margin: 0 5px;
}

.cart-item .quantity-selector button {
    background-color: black;
    color: white;
    padding: 3px 5px;
    margin-bottom: 11px;
    font-size: 25px;
    cursor: pointer;
}

.cart-item .remove {
    color: white;
    border: none;
    background: none;
    font-size: 20px;
    padding: 0 8px;
    cursor: pointer;
}

.cart-item .price {
    font-size: 14px;
    font-weight: 700;
    min-width: 60px;
    margin-bottom: 15px;
    text-align: right;
}

.product-image img {
    width: 420px;
    height: 320px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

@media screen and (max-width: 430px) {
    header .logo {
        margin-left: 60px;
    }

    header .nav i {
        margin-left: 10px;
    }

    header .nav1 a {
        padding: 0px 7px;
    }

    .cart-panel {
        position: fixed;
        right: -145%;
        width: 355px;
        height: 94.7%;
    }

    .cart {
        height: 73%;
    }

    .product-grid {
        padding: 0px 20px 25px;
    }

    .side-panel {
        left: -410px;
        width: 275px;
        height: 94.7%;
    }

    .cart-item .quantity-selector button {
        margin-bottom: 11px;
    }

    .product1 img,
    .product2 img,
    .product3 img {
        margin-left: 13%;
    }
}