/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
}

.cart-badge {
    background-color: #dbeafe;
    color: #1e40af;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.cart-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cart-container {
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
}

.cart-items {
    flex: 2;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    max-height: 500px;
    overflow: hidden;
    overflow-y: auto;
}

.seller-header {
    padding: 16px;
    background-color: #f9fafb;
    display: flex;
    align-items: center;

    .seller-info-wraaper {
        display: flex;
        align-items: center;
        width: 100%;
    }
}

.seller-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.seller-name {
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    font-size: 1rem;
}

.seller-meta {
    display: flex;
    align-items: center;
}

.rating {
    display: flex;
    align-items: center;
    color: #f59e0b;
}

.rating-text {
    color: #4b5563;
    font-size: 12px;
    margin-left: 4px;
}

.meta-divider {
    margin: 0 8px;
    color: #e5e7eb;
}

.member-since {
    color: #6b7280;
    font-size: 12px;
}

.visit-store {
    margin-left: auto;
    margin-top: auto;
    margin-bottom: 0;
    color: #2563eb;
    font-size: .8rem;
    font-weight: 500;
}

.visit-store:hover {
    color: #1e40af;
}

/* Responsive adjustments */
@media (max-width: 420px) {
    .member-since {
        display: none;
    }
}

.cart-summary {
    flex: 1;
    position: sticky;
    top: 0;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    padding: 15px 20px;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.item-details {
    flex: 1;
    margin-left: 15px;
}

.item-details h4 {
    font-size: .9rem;
    font-weight: 500;
}

.item-details p {
    font-size: .7rem;
    color: #666;
}

.item-details .b-i-price {
    margin-top: 5px;
    font-weight: 600;
    font-size: .8rem;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.quantity-btn {
    padding: 4px 12px;
    color: #4b5563;
    cursor: pointer;
}

.quantity-btn:hover {
    background-color: #f3f4f6;
}

.quantity-value {
    padding: 0px 12px;
    font-size: .7rem;
    min-width: 20px;
    max-width: 40px;
    text-align: center;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-left: 16px;
}

.remove-item {
    display: flex;
    padding: 10px;
    border-radius: 50%;
    color: red;
    background-color: #ffebeb;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color .3s ease-in-out;
}

.remove-item:hover {
    color: #ef4444;
}

.remove-item:active {
    transform: scale(.9);
}

.summary-title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
}

.summary-row.total {
    font-weight: 700;
    font-size: 17px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.checkout-btn {
    display: block;
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 20px;
    text-decoration: none;
    transition: 0.3s;
}

.checkout-btn:hover {
    background: #e65c00;
}

@media(max-width: 768px) {

    /* Header Styles */
    .header {
        padding: 0 .5rem;
        margin-bottom: 0px;
    }

    .header h1 {
        font-size: 1.2rem;
    }

    .seller-header {
        padding: 16px .8rem;
    }

    .cart-container {
        padding: 0.5rem;
        flex-direction: column;
        gap: 10px;
    }

    .cart-item {
        padding: 15px 5px;
    }

}