/* Shopping Cart Styles */

.nike-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px 48px 64px;
}

/* Cart Item Styles */
.cart-item-container {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid #E5E5E5;
    transition: opacity 0.3s ease;
}

.cart-item-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

.cart-item-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.cart-item-image:hover {
    transform: scale(1.05);
}

.cart-item-details {
    display: flex;
    flex-direction: column;
}

.cart-item-title {
    font-size: 16px;
    font-weight: 500;
    color: #111;
    display: block;
    margin-bottom: 4px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cart-item-title:hover {
    color: #757575;
}

.cart-item-category {
    font-size: 14px;
    color: #757575;
    margin-bottom: 8px;
}

.cart-item-variant {
    font-size: 14px;
    color: #757575;
    margin-bottom: 16px;
}

.cart-item-variant p {
    margin-bottom: 4px;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #E5E5E5;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
}

.quantity-btn:hover:not(:disabled) {
    background: #F5F5F5;
    border-color: #111;
}

.quantity-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-display {
    font-size: 16px;
    min-width: 30px;
    text-align: center;
    font-weight: 500;
}

/* Remove Button */
.remove-btn {
    background: none;
    border: none;
    color: #757575;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
    padding: 0;
}

.remove-btn:hover {
    color: #111;
}

.remove-btn i {
    margin-right: 4px;
}

/* Price Display */
.cart-item-price {
    text-align: right;
}

.cart-item-price p {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* Sidebar Styles */
.cart-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.cart-card {
    background: #F5F5F5;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.cart-card-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Shipping Check */
.pincode-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 8px;
    transition: border-color 0.2s ease;
}

.pincode-input:focus {
    outline: none;
    border-color: #111;
}

.check-btn {
    width: 100%;
    padding: 12px;
    background: #000;
    color: #FFF;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.check-btn:hover:not(:disabled) {
    opacity: 0.7;
}

.check-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.shipping-result {
    margin-top: 12px;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shipping-result.success {
    background: #d4edda;
    color: #155724;
}

.shipping-result.warning {
    background: #fff3cd;
    color: #856404;
}

.shipping-result i {
    font-size: 16px;
    margin-right: 4px;
}

.change-pincode-btn {
    margin-top: 12px;
    background: none;
    border: none;
    color: #111;
    text-decoration: underline;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s ease;
}

.change-pincode-btn:hover {
    opacity: 0.7;
}

/* Summary Styles */
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.summary-divider {
    border-top: 1px solid #E5E5E5;
    padding-top: 16px;
    margin-bottom: 24px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 500;
}

/* Checkout Button */
.checkout-btn {
    width: 100%;
    padding: 18px;
    text-align: center;
    display: block;
    background: #000;
    color: #FFF;
    text-decoration: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.checkout-btn:hover {
    opacity: 0.7;
    color: #FFF;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 64px 0;
}

.empty-cart i {
    font-size: 64px;
    color: #E5E5E5;
    margin-bottom: 24px;
}

.empty-cart h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
}

.empty-cart p {
    color: #757575;
    margin-bottom: 32px;
}

.shop-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #000;
    color: #FFF;
    text-decoration: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.shop-btn:hover {
    opacity: 0.7;
    color: #FFF;
}

/* Modal Styles */
.modal-header.bg-success,
.modal-header.bg-danger,
.modal-header.bg-info {
    color: white;
}

.modal-header.bg-success .btn-close,
.modal-header.bg-danger .btn-close,
.modal-header.bg-info .btn-close {
    filter: brightness(0) invert(1);
}

/* Toast Styles */
.toast-header.bg-success,
.toast-header.bg-danger,
.toast-header.bg-info {
    color: white;
}

.toast-header.bg-success .btn-close,
.toast-header.bg-danger .btn-close,
.toast-header.bg-info .btn-close {
    filter: brightness(0) invert(1);
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .nike-container {
        padding: 24px 32px 48px;
    }

    .cart-grid {
        grid-template-columns: 1fr !important;
    }

    .cart-sidebar {
        position: static;
        top: auto;
    }
}

@media (max-width: 768px) {
    .nike-container {
        padding: 16px 16px 32px;
    }

    .cart-item-container {
        grid-template-columns: 100px 1fr !important;
        gap: 16px;
    }

    .cart-item-image {
        width: 100px !important;
        height: 100px !important;
    }

    .cart-item-price {
        grid-column: 2;
        text-align: left;
        margin-top: 8px;
    }

    .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .cart-card {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .nike-container h1 {
        font-size: 24px !important;
    }

    .cart-item-title {
        font-size: 14px;
    }

    .cart-item-category,
    .cart-item-variant {
        font-size: 12px;
    }

    .quantity-controls {
        gap: 12px;
    }

    .quantity-display {
        font-size: 14px;
        min-width: 24px;
    }
}

/* Utility Classes */
.d-none {
    display: none !important;
}

.text-muted {
    color: #757575 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-2 {
    margin-top: 8px !important;
}

.small {
    font-size: 13px !important;
}
