/* LIVBEN - Cart page */

/* Product list */

.lv-basket-list {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.lv-basket-item {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
    min-width: 0;
    padding: 15px;
}

/* Product image */

.lv-basket-photo {
    display: grid;
    place-items: center;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 10px;
    background: #f1f7f3;
}

.lv-basket-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lv-basket-photo span {
    color: #75877b;
    font-size: 12px;
    text-align: center;
}

/* Product information */

.lv-basket-information {
    min-width: 0;
}

.lv-basket-information h2 {
    margin: 0 0 7px;
    color: #203a2b;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.lv-basket-meta {
    margin: 5px 0;
    color: #617667;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* Quantity and item actions */

.lv-basket-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    max-width: 100%;
    margin-top: 12px;
}

.lv-basket-quantity {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
}

.lv-basket-quantity input:not([type="hidden"]) {
    width: 60px;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 8px 5px;
    border: 1px solid #c7dacd;
    border-radius: 9px;
    background: #fff;
    color: #203a2b;
    font-size: 16px;
    text-align: center;
}

.lv-basket-quantity button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    border: 1px solid #bfd9c9;
    border-radius: 9px;
    background: #edf8f1;
    color: #087f5b;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.lv-basket-quantity button:hover:not(:disabled) {
    border-color: #087f5b;
    background: #dff4e7;
}

.lv-basket-quantity button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.lv-basket-quantity .lv-basket-update {
    padding-inline: 12px;
    font-size: 13px;
}

.lv-basket-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #a63a37;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.lv-basket-remove:hover {
    border-color: #f0cccc;
    background: #fff1f1;
    color: #8d2929;
}

/* Line price */

.lv-basket-price {
    max-width: 100%;
    color: #087f5b;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    text-align: end;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Empty cart */

.lv-basket-empty {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 36px 18px;
    text-align: center;
}

.lv-basket-empty h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.4;
}

.lv-basket-empty .lv-basket-primary {
    max-width: 230px;
}

.lv-basket-empty-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #e7f6eb;
    color: #087f5b;
    font-size: 34px;
}

/* Responsive */

@media (max-width: 560px) {
    .lv-basket-item {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 11px;
        padding: 12px;
    }

    .lv-basket-photo {
        width: 70px;
        height: 70px;
    }

    .lv-basket-price {
        grid-column: 2;
        justify-self: end;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .lv-basket-controls {
        gap: 7px;
    }

    .lv-basket-empty {
        padding: 28px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lv-basket-item,
    .lv-basket-quantity button,
    .lv-basket-remove {
        transition: none;
    }
}
