﻿.basket-preview {
    width: 100%;
    min-width: 0;
}

.basket-preview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 2rem;
    text-align: center;
}

.basket-preview-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 1rem;
    border-radius: 50%;
    color: #6b7280;
    background-color: #f3f4f6;
    font-size: 1.7rem;
}

.basket-preview-empty-title {
    margin: 0;
    color: #111827;
    font-size: 1.15rem;
    font-weight: 700;
}

.basket-preview-empty-text {
    margin: 0.5rem 0 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.basket-preview-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 55vh;
    padding-right: 0.35rem;
    overflow-y: auto;
    overflow-x: hidden;
}

    .basket-preview-list::-webkit-scrollbar {
        width: 7px;
    }

    .basket-preview-list::-webkit-scrollbar-track {
        background-color: #f3f4f6;
        border-radius: 999px;
    }

    .basket-preview-list::-webkit-scrollbar-thumb {
        background-color: #cbd5e1;
        border-radius: 999px;
    }

.basket-preview-item {
    display: grid;
    grid-template-columns: 92px minmax(180px, 1fr) 145px 125px 135px 44px;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .basket-preview-item:hover {
        border-color: #cbd5e1;
        box-shadow: 0 5px 16px rgba(15, 23, 42, 0.06);
    }

.basket-preview-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 82px;
    overflow: hidden;
    border: 1px solid #edf0f3;
    border-radius: 10px;
    background-color: #fff;
}

    .basket-preview-image img {
        display: block;
        width: 100%;
        height: 100%;
        padding: 0.25rem;
        object-fit: contain;
    }

.basket-preview-product {
    min-width: 0;
}

.basket-preview-product-name {
    display: block;
    margin: 0;
    color: #111827;
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.45;
}

.basket-preview-attribute {
    display: block;
    margin-top: 0.35rem;
    color: #6b7280;
    font-size: 0.78rem;
    line-height: 1.4;
}

.basket-preview-label {
    display: block;
    margin-bottom: 0.3rem;
    color: #9ca3af;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.basket-preview-price {
    color: #374151;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}

.basket-preview-total-price {
    color: #111827;
    font-size: 0.95rem;
    font-weight: 750;
    white-space: nowrap;
}

.basket-quantity-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    height: 38px;
    overflow: hidden;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background-color: #fff;
}

.basket-quantity-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 100%;
    padding: 0;
    border: 0;
    color: #374151;
    background-color: #f8fafc;
    font-size: 0.85rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}

    .basket-quantity-button:hover {
        color: #0e46a3;
        background-color: #eef4ff;
    }

.basket-quantity-value {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 100%;
    padding: 0 0.35rem;
    border-right: 1px solid #e5e7eb;
    border-left: 1px solid #e5e7eb;
    color: #111827;
    background-color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

.basket-preview-delete {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #fecaca;
    border-radius: 9px;
    color: #dc2626;
    background-color: #fff;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

    .basket-preview-delete:hover {
        color: #fff;
        border-color: #dc2626;
        background-color: #dc2626;
    }

.basket-preview-summary {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.basket-preview-summary-card {
    width: 100%;
    max-width: 390px;
    padding: 1rem 1.1rem;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background-color: #f8fafc;
}

.basket-preview-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    color: #4b5563;
    font-size: 0.88rem;
}

    .basket-preview-summary-row strong {
        color: #111827;
        font-weight: 700;
        white-space: nowrap;
    }

    .basket-preview-summary-row.is-total {
        margin-top: 0.4rem;
        padding-top: 0.85rem;
        border-top: 1px solid #dbe1e8;
        color: #111827;
        font-size: 1rem;
        font-weight: 750;
    }

        .basket-preview-summary-row.is-total strong {
            color: #0e46a3;
            font-size: 1.05rem;
        }

.basket-preview-vat {
    display: block;
    margin-top: 0.1rem;
    color: #6b7280;
    font-size: 0.68rem;
    font-weight: 500;
    text-align: right;
}

.basket-preview-message {
    margin-top: 1rem;
}

@media (max-width: 991.98px) {
    .basket-preview-item {
        grid-template-columns: 78px minmax(0, 1fr) auto;
        gap: 0.75rem;
        align-items: start;
    }

    .basket-preview-image {
        grid-row: 1 / span 3;
        width: 78px;
        height: 78px;
    }

    .basket-preview-product {
        grid-column: 2;
    }

    .basket-preview-quantity {
        grid-column: 2;
    }

    .basket-preview-unit-price {
        display: none;
    }

    .basket-preview-item-total {
        grid-column: 2;
    }

    .basket-preview-remove {
        grid-column: 3;
        grid-row: 1;
    }

    .basket-preview-label {
        display: inline;
        margin-right: 0.3rem;
    }
}

@media (max-width: 575.98px) {
    .basket-preview-list {
        max-height: 52vh;
        padding-right: 0.2rem;
    }

    .basket-preview-item {
        grid-template-columns: 68px minmax(0, 1fr) 36px;
        padding: 0.7rem;
        border-radius: 12px;
    }

    .basket-preview-image {
        width: 68px;
        height: 68px;
    }

    .basket-preview-product-name {
        font-size: 0.82rem;
    }

    .basket-preview-attribute {
        font-size: 0.72rem;
    }

    .basket-quantity-control {
        height: 34px;
    }

    .basket-quantity-button {
        width: 34px;
    }

    .basket-quantity-value {
        min-width: 38px;
        font-size: 0.8rem;
    }

    .basket-preview-delete {
        width: 34px;
        height: 34px;
    }

    .basket-preview-summary-card {
        max-width: none;
    }
}
.basket-delete-modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16), 0 6px 18px rgba(15, 23, 42, 0.08);
}

.basket-delete-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    color: #dc2626;
    background-color: #fee2e2;
    font-size: 1.65rem;
}

.basket-delete-modal-title {
    margin: 0;
    color: #111827;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.5;
}

.basket-delete-modal-description {
    max-width: 390px;
    margin: 0.75rem auto 0;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.65;
}

.basket-delete-modal-content .modal-footer {
    justify-content: center;
    gap: 0.5rem;
    padding-bottom: 1.5rem;
}

    .basket-delete-modal-content .modal-footer .btn {
        min-width: 135px;
        border-radius: 9px;
    }

@media (max-width: 575.98px) {
    .basket-delete-modal-content {
        margin: 0 0.5rem;
        border-radius: 15px;
    }

        .basket-delete-modal-content .modal-footer {
            flex-direction: column-reverse;
            padding-right: 1rem;
            padding-left: 1rem;
        }

            .basket-delete-modal-content .modal-footer .btn {
                width: 100%;
            }
}