/* basket.css */

body {
    margin: 0;
    min-height: 100vh;
}

header {
    padding: 30px;
}

#logo {
    width: 160px;
}

main {
    width: 80%;
    margin: 40px auto;
}

.basket {
    margin-bottom: 20px;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
}

.basket-header {
    background-color: var(--contrast);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
}

.basket-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
}

.basket-toggle,
.basket-delete {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.basket-content {
    padding: 20px;
}

.basket-products {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.basket-product {
    width: 120px;
    font-size: 12px;
}

.basket-product img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px;
}

.basket-product h3 {
    font-size: 13px;
    margin: 5px 0;
}

.basket-product p {
    margin: 3px 0;
}

.product-shops {
    margin-top: 8px;
}

.shop-price {
    background-color: #eee;
    border-radius: 5px;
    padding: 4px 6px;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.basket-totals {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.total-shop,
.total-minimum {
    padding: 8px 18px;
    color: white;
    font-size: 13px;
}

.total-shop {
    background-color: #bbb;
}

.total-minimum {
    background-color: var(--green);
}

body>footer {
    position: fixed;
    bottom: 20px;
    left: 20px;
}

body>footer .button {
    background-color: white;
    color: var(--action);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
@media (max-width: 600px) {
    body {
        margin: 0;
        background-color: #f2eaea;
    }

    body>header {
        text-align: center;
        padding: 25px 0 10px;
    }

    #logo {
        width: 170px;
    }

    main {
        width: 92%;
        margin: 15px auto 80px;
    }

    .basket {
        background: white;
        border-radius: 12px;
        margin-bottom: 15px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
        overflow: hidden;
    }

    .basket-header {
        padding: 6px 10px;
        justify-content: center;
        position: relative;
    }

    .basket-header h2 {
        font-size: 16px;
        font-weight: 400;
        text-align: center;
    }

    .basket-toggle,
    .basket-delete {
        position: absolute;
        right: 10px;
        font-size: 18px;
    }

    .basket-content {
        padding: 10px;
    }

    .basket-products {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 10px;
        justify-items: center;
    }

    .basket-product {
        width: 100%;
        max-width: 120px;
        font-size: 10px;
        text-align: left;
    }

    .basket-product img {
        width: 85px;
        height: 85px;
        object-fit: contain;
        margin: 0 auto 6px;
    }

    .basket-product h3 {
        font-size: 11px;
        margin: 3px 0;
        font-weight: 400;
    }

    .basket-product p {
        font-size: 9px;
        margin: 2px 0;
    }

    .product-shops {
        margin-top: 4px;
    }

    .shop-price {
        font-size: 9px;
        padding: 3px 5px;
        margin-bottom: 3px;
        border-radius: 3px;
    }

    .basket-totals {
        margin-top: 15px;
        justify-content: center;
        gap: 6px;
    }

    .total-shop,
    .total-minimum {
        width: 45%;
        padding: 5px 4px;
        font-size: 9px;
        text-align: center;
        border-radius: 3px;
    }

    .total-minimum {
        width: 90%;
    }

    body>footer {
        position: fixed;
        left: 50%;
        bottom: 18px;
        transform: translateX(-50%);
    }

    body>footer .button {
        padding: 9px 18px;
        font-size: 11px;
        border-radius: 20px;
        background-color: white;
        color: var(--action);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
        white-space: nowrap;
    }
}