﻿*{
    font-family:'iran sans';
}
/* Add this to your main CSS file or create basket.css */
.basket-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Styles */
.basket-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 15px;
    background: var(--black);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

    .basket-header h1 {
        font-size: 2.0rem;
        margin-bottom: 10px;
        font-weight: 700;
    }

.basket-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Basket Content Layout */
.basket-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 992px) {
    .basket-content {
        grid-template-columns: 1fr;
    }
}

/* Basket Items Section */
.basket-items {
    background: white;
    
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.basket-item {
    display: grid;
    grid-template-columns: 120px 1fr auto 150px;
    gap: 25px;
    padding: 25px;
    border-bottom: 1px solid #eee;
    align-items: center;
    transition: all 0.3s ease;
}

    .basket-item:hover {
        background: #f9f9f9;
        transform: translateY(-2px);
    }

    .basket-item:last-child {
        border-bottom: none;
    }

/* Item Image */
.item-image {
    width: 120px;
    height: 120px;
    
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

    .item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

        .item-image img:hover {
            transform: scale(1.05);
        }

/* Item Details */
.item-details {
    padding: 10px 0;
}

.item-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

    .item-name a {
        color: #2c3e50;
        text-decoration: none;
        transition: color 0.2s;
    }

        .item-name a:hover {
            color: #3498db;
        }

.item-sku {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.item-price {
    font-size: 1.1rem;
    margin: 10px 0;
}

.sale-price {
    color: #e74c3c;
    font-weight: 700;
    font-size: 1.2rem;
}

.regular-price {
    color: #95a5a6;
    text-decoration: line-through;
    margin-right: 10px;
    font-size: 0.9rem;
}

.item-stock {
    display: inline-block;
    padding: 4px 12px;
   
    font-size: 0.85rem;
    font-weight: 500;
}

.in-stock {
    background: #d4edda;
    color: #155724;
}

.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

/* Quantity Controls */
.item-quantity {
    text-align: center;
}

.quantity-controls {
    display: inline-flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    
    overflow: hidden;
    margin-bottom: 15px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .quantity-btn:hover {
        background: #e9ecef;
    }

    .quantity-btn:active {
        transform: scale(0.95);
    }

.quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    background: white;
}

    .quantity-input:focus {
        outline: none;
    }

.remove-item {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    
    transition: all 0.2s;
}

    .remove-item:hover {
        background: #ffeaea;
        color: #c0392b;
    }

    .remove-item svg {
        width: 16px;
        height: 16px;
        stroke-width: 2.5;
    }

/* Item Total */
.item-total {
    text-align: right;
    padding: 10px;
}

.total-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Basket Summary */
.basket-summary {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.summary-card {
    background: white;
   
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

    .summary-card h3 {
        font-size: 1.5rem;
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 2px solid #f0f0f0;
        color: #2c3e50;
    }

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
    font-size: 1rem;
}

    .summary-row:last-child {
        border-bottom: none;
    }

    .summary-row.total {
        font-size: 1.3rem;
        font-weight: 700;
        color: #2c3e50;
        margin-top: 15px;
        padding-top: 20px;
        border-top: 2px solid #eee;
    }

/* Action Buttons */
.summary-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-secondary, .btn-primary, .btn-link {
    padding: 15px;
    text-align: center;
    
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #dee2e6;
}


    .btn-secondary:hover {
        background: #e9ecef;
        transform: translateY(-2px);
    }

.btn-primary {
    background: linear-gradient(135deg, ffdc2f 0%, #e74c3c 100%);
    color: black;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    background-color : yellow;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    }

.btn-link {
    background: none;
    color: #e74c3c;
    font-size: 1rem;
}

    .btn-link:hover {
        background: #ffeaea;
        color: #c0392b;
    }

/* Empty Basket */
.empty-basket {
    text-align: center;
    padding: 60px 20px;
    background: white;
    
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin: 40px auto;
    max-width: 600px;
}

.empty-icon {
    margin-bottom: 30px;
    color: #95a5a6;
}

    .empty-icon svg {
        width: 80px;
        height: 80px;
        stroke-width: 1.5;
    }

.empty-basket h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.empty-basket p {
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .basket-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }

    .item-image {
        margin: 0 auto;
    }

    .item-quantity, .item-total {
        text-align: center;
    }

    .basket-header h1 {
        font-size: 2rem;
    }

    .basket-container {
        padding: 15px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.basket-item {
    animation: fadeIn 0.3s ease-out;
}

/* Custom Scrollbar */
.basket-items::-webkit-scrollbar {
    width: 8px;
}

.basket-items::-webkit-scrollbar-track {
    background: #f1f1f1;
   
}

.basket-items::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    
}

    .basket-items::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success/Error Messages */
.basket-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.success-message {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.error-message {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}


/* ========================================
   Basket Styles - Minimal & Professional
   All classes prefixed with bs_ (basket)
   ======================================== */

/* Container */
.bs-basket-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* Header */
.bs-basket-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
}

.bs-basket-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 0.25rem 0;
}

.bs-basket-subtitle {
    font-size: 0.95rem;
    color: #6c757d;
    margin: 0;
}

/* Layout */
.bs-basket-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
}

/* Items List */
.bs-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Item Card */
.bs-item-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e9ecef;
    
    transition: box-shadow 0.2s ease;
}

    .bs-item-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

/* Item Image */
.bs-item-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    
    overflow: hidden;
    background: #f8f9fa;
}

    .bs-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Item Details */
.bs-item-details {
    flex: 1;
    min-width: 0;
}

.bs-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.bs-item-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
}

    .bs-item-name a {
        color: #212529;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .bs-item-name a:hover {
            color: #0d6efd;
        }

.bs-item-remove {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #adb5bd;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

    .bs-item-remove:hover {
        color: #dc3545;
        background: #fff5f5;
    }

.bs-item-sku {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

/* Variation Attributes - Horizontal Layout */
.bs-item-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.bs-attribute-badge {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
  
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    line-height: 1;
}

.bs-attribute-name {
    color: #6c757d;
    margin-left: 0.25rem;
}

.bs-attribute-value {
    color: #212529;
    font-weight: 500;
}

/* Item Footer */
.bs-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.bs-item-price-section {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1rem;
}

.bs-price-wrapper {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
}

.bs-current-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
}

.bs-old-price {
    font-size: 0.9rem;
    color: #adb5bd;
    text-decoration: line-through;
}

.bs-item-total-price {
    font-size: 0.9rem;
    color: #6c757d;
    padding-right: 1rem;
    border-right: 1px solid #e9ecef;
}

/* Quantity Controls */
.bs-quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bs-quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #dee2e6;
   
    overflow: hidden;
}

.bs-quantity-btn {
    background: #f8f9fa;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    color: #495057;
    transition: all 0.2s ease;
}

    .bs-quantity-btn:hover {
        background: #e9ecef;
        color: #212529;
    }

.bs-quantity-input {
    width: 50px;
    height: 36px;
    border: none;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: #212529;
    background: #fff;
    -moz-appearance: textfield;
}

    .bs-quantity-input::-webkit-outer-spin-button,
    .bs-quantity-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .bs-quantity-input:focus {
        outline: none;
    }

.bs-stock-status {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
   
}

.bs-in-stock {
    color: #198754;
    background: #e8f5e9;
}

.bs-out-of-stock {
    color: #dc3545;
    background: #fff5f5;
}

/* Continue Shopping */
.bs-continue-shopping {
    margin-top: 1rem;
}

.bs-continue-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

    .bs-continue-link:hover {
        color: #0d6efd;
    }

/* Sidebar */
.bs-basket-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.bs-summary-card {
    background: #fff;
    border: 1px solid #e9ecef;
    
    padding: 1.5rem;
}

.bs-summary-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.bs-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #495057;
}

.bs-summary-value {
    font-weight: 500;
    color: #212529;
}

.bs-shipping-value {
    color: #198754;
    font-weight: 500;
}

.bs-discount-row {
    color: #dc3545;
}

.bs-discount-value {
    font-weight: 500;
    color: #dc3545;
}

.bs-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
    padding-top: 1rem;
    border-top: 2px solid #e9ecef;
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
}

.bs-total-amount {
    font-size: 1.25rem;
    color: #0d6efd;
}

/* Summary Actions */
.bs-summary-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bs-checkout-btn {
    background: #ffd300;
    color: #fff;
    border: none;
    
    padding: 1rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 100%;
}

    .bs-checkout-btn:hover {
        background: #0b5ed7;
    }

.bs-login-prompt {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    
}

    .bs-login-prompt p {
        margin: 0 0 1rem 0;
        color: #6c757d;
        font-size: 0.9rem;
    }

.bs-login-btn {
    display: block;
    background: #198754;
    color: #fff;
    text-decoration: none;
    padding: 0.75rem;
   
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    transition: background 0.2s ease;
}

    .bs-login-btn:hover {
        background: #157347;
        color: #fff;
    }

.bs-register-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
}

    .bs-register-link:hover {
        color: #0d6efd;
        text-decoration: underline;
    }

.bs-clear-basket {
    background: none;
    border: 1px solid #dee2e6;
   
    padding: 0.75rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    font-size: 0.95rem;
}

    .bs-clear-basket:hover {
        background: #dc3545;
        border-color: #dc3545;
        color: #fff;
    }

/* Empty Basket */
.bs-empty-basket {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 400px;
    margin: 0 auto;
}

.bs-empty-icon {
    color: #dee2e6;
    margin-bottom: 1.5rem;
}

.bs-empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.bs-empty-text {
    color: #6c757d;
    margin-bottom: 2rem;
}

.bs-empty-shop-btn {
    display: inline-block;
    background: #ffd300;
    color: white;
    text-decoration: none;
    padding: 0.875rem 2rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

    .bs-empty-shop-btn:hover {
        background: #0b5ed7;
        color: #fff;
    }

/* Responsive */
@media (max-width: 992px) {
    .bs-basket-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .bs-basket-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .bs-item-card {
        flex-direction: column;
        gap: 1rem;
    }

    .bs-item-image {
        width: 100%;
        height: 200px;
    }

    .bs-item-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .bs-item-price-section {
        width: 100%;
        justify-content: space-between;
    }

    .bs-item-total-price {
        border-right: none;
        padding-right: 0;
    }

    .bs-quantity-wrapper {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .bs-basket-container {
        padding: 1rem;
    }

    .bs-item-price-section {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .bs-item-total-price {
        border-right: none;
        padding-right: 0;
    }
}