/* Cart Page Specific Styles */

/* Cart Container */
.cart-container {
    min-height: 70vh;
}

/* Cart Header with Background Image */
.cart-header-bg {
    background-image: 
        linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%),
        url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?w=1920&h=600&fit=crop&crop=center');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.cart-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.cart-header {
    position: relative;
    z-index: 2;
    color: white;
}

.cart-header .container {
    position: relative;
    z-index: 3;
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cart-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.cart-breadcrumb .breadcrumb-item a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.cart-breadcrumb .breadcrumb-item.active {
    color: white;
}

/* Add floating elements for visual appeal */
.cart-header-bg::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.cart-header-bg::before {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 15%;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 4s ease-in-out infinite reverse;
    z-index: 1;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Dot Flow Animation for Cart Header */
.dot-flow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.dot-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.dot {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    animation: dotFlow 15s linear infinite;
}

.dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    animation: pulse 2s ease-in-out infinite alternate;
}

/* Individual dot sizes and positions */
.dot-1 {
    width: 8px;
    height: 8px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.dot-2 {
    width: 12px;
    height: 12px;
    top: 20%;
    left: 15%;
    animation-delay: -2s;
    animation-duration: 18s;
}

.dot-3 {
    width: 6px;
    height: 6px;
    top: 30%;
    left: 8%;
    animation-delay: -4s;
    animation-duration: 14s;
}

.dot-4 {
    width: 10px;
    height: 10px;
    top: 15%;
    left: 25%;
    animation-delay: -1s;
    animation-duration: 16s;
}

.dot-5 {
    width: 14px;
    height: 14px;
    top: 40%;
    left: 12%;
    animation-delay: -6s;
    animation-duration: 20s;
}

.dot-6 {
    width: 8px;
    height: 8px;
    top: 50%;
    left: 3%;
    animation-delay: -3s;
    animation-duration: 13s;
}

.dot-7 {
    width: 16px;
    height: 16px;
    top: 60%;
    left: 18%;
    animation-delay: -8s;
    animation-duration: 22s;
}

.dot-8 {
    width: 6px;
    height: 6px;
    top: 70%;
    left: 7%;
    animation-delay: -5s;
    animation-duration: 15s;
}

.dot-9 {
    width: 12px;
    height: 12px;
    top: 80%;
    left: 20%;
    animation-delay: -7s;
    animation-duration: 17s;
}

.dot-10 {
    width: 10px;
    height: 10px;
    top: 25%;
    left: 35%;
    animation-delay: -9s;
    animation-duration: 19s;
}

.dot-11 {
    width: 8px;
    height: 8px;
    top: 45%;
    left: 30%;
    animation-delay: -2.5s;
    animation-duration: 14s;
}

.dot-12 {
    width: 14px;
    height: 14px;
    top: 65%;
    left: 40%;
    animation-delay: -4.5s;
    animation-duration: 21s;
}

.dot-13 {
    width: 6px;
    height: 6px;
    top: 85%;
    left: 32%;
    animation-delay: -6.5s;
    animation-duration: 16s;
}

.dot-14 {
    width: 12px;
    height: 12px;
    top: 35%;
    left: 45%;
    animation-delay: -1.5s;
    animation-duration: 18s;
}

.dot-15 {
    width: 10px;
    height: 10px;
    top: 55%;
    left: 50%;
    animation-delay: -3.5s;
    animation-duration: 15s;
}

.dot-16 {
    width: 8px;
    height: 8px;
    top: 75%;
    left: 48%;
    animation-delay: -5.5s;
    animation-duration: 17s;
}

.dot-17 {
    width: 16px;
    height: 16px;
    top: 20%;
    left: 60%;
    animation-delay: -7.5s;
    animation-duration: 23s;
}

.dot-18 {
    width: 6px;
    height: 6px;
    top: 40%;
    left: 65%;
    animation-delay: -9.5s;
    animation-duration: 14s;
}

.dot-19 {
    width: 12px;
    height: 12px;
    top: 60%;
    left: 70%;
    animation-delay: -11s;
    animation-duration: 20s;
}

.dot-20 {
    width: 10px;
    height: 10px;
    top: 80%;
    left: 75%;
    animation-delay: -13s;
    animation-duration: 16s;
}

@keyframes dotFlow {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.4;
    }
}

/* Enhanced dot effects for different screen sizes */
@media (max-width: 768px) {
    .dot {
        animation-duration: 10s;
    }
    
    .dot-1, .dot-3, .dot-6, .dot-8, .dot-11, .dot-13, .dot-16, .dot-18 {
        width: 6px;
        height: 6px;
    }
    
    .dot-2, .dot-4, .dot-9, .dot-10, .dot-12, .dot-14, .dot-15, .dot-19, .dot-20 {
        width: 8px;
        height: 8px;
    }
    
    .dot-5, .dot-7, .dot-17 {
        width: 10px;
        height: 10px;
    }
}

/* Enhanced text styling */
.cart-header h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.cart-header p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cart-breadcrumb {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cart Items Section */
.cart-items-section {
    background: #f8fafc;
}

.cart-item {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.cart-item-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.cart-item:hover .cart-item-image {
    transform: scale(1.05);
}

.cart-item-details h5 {
    color: #1a202c;
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-item-meta {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 12px;
}

.cart-item-meta .badge {
    background: #e2e8f0;
    color: #475569;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    margin-right: 8px;
}

.cart-item-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 16px;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    width: fit-content;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    color: #475569;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quantity-btn:hover {
    background: #2563eb;
    color: white;
    transform: scale(1.05);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-btn:disabled:hover {
    background: white;
    color: #475569;
    transform: none;
}

.quantity-input {
    width: 60px;
    height: 36px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 600;
    color: #1a202c;
    font-size: 1rem;
}

.quantity-input:focus {
    outline: none;
}

/* Remove Button */
.remove-item-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-item-btn:hover {
    background: #fecaca;
    transform: scale(1.05);
}

/* Order Summary */
.order-summary {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 100px;
}

.order-summary-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    border-radius: 20px 20px 0 0;
    margin: -1px -1px 0 -1px;
}

.order-summary-body {
    padding: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.125rem;
    color: #1a202c;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid #e2e8f0;
}

.summary-label {
    color: #64748b;
    font-weight: 500;
}

.summary-value {
    color: #1a202c;
    font-weight: 600;
}

/* Promo Code */
.promo-code-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.promo-input {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 500;
    transition: border-color 0.2s ease;
}

.promo-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.promo-btn {
    background: #2563eb;
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.promo-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* Checkout Button */
.checkout-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.125rem;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(16, 185, 129, 0.5);
}

/* Payment Methods */
.payment-methods {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.payment-method {
    width: 50px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.payment-method:hover {
    transform: scale(1.05);
}

.payment-method img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.empty-cart-icon {
    font-size: 5rem;
    color: #cbd5e1;
    margin-bottom: 24px;
}

.empty-cart h3 {
    color: #1a202c;
    font-weight: 700;
    margin-bottom: 12px;
}

.empty-cart p {
    color: #64748b;
    font-size: 1.125rem;
    margin-bottom: 32px;
}

.start-shopping-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.start-shopping-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Continue Shopping Button */
.continue-shopping-btn {
    background: transparent;
    border: 2px solid #2563eb;
    color: #2563eb;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.continue-shopping-btn:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-1px);
}

/* Update Cart Button */
.update-cart-btn {
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    color: #475569;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.update-cart-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

/* Recommended Products */
.recommended-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.recommended-product {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.recommended-product:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.recommended-product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommended-product:hover .recommended-product-image {
    transform: scale(1.05);
}

.recommended-product-info {
    padding: 20px;
}

.recommended-product-category {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 8px;
}

.recommended-product-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 12px;
}

.recommended-product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.recommended-product-current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2563eb;
}

.recommended-product-original-price {
    font-size: 1rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.add-to-cart-recommended {
    background: #1a202c;
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    width: 100%;
    transition: all 0.2s ease;
}

.add-to-cart-recommended:hover {
    background: #2d3748;
    transform: translateY(-1px);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.alert-custom {
    border-radius: 12px;
    border: none;
    padding: 16px 20px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    color: #dc2626;
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .order-summary {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 991.98px) {
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item-image {
        width: 100%;
        height: 200px;
        margin-bottom: 16px;
    }
    
    .cart-item-actions {
        justify-content: center;
        gap: 16px;
    }
}

@media (max-width: 767.98px) {
    .cart-header {
        padding: 40px 0;
    }
    
    .cart-header h1 {
        font-size: 2rem;
    }
    
    .cart-item {
        padding: 20px;
    }
    
    .cart-item-image {
        height: 180px;
    }
    
    .order-summary-body {
        padding: 20px;
    }
    
    .payment-methods {
        gap: 8px;
    }
    
    .payment-method {
        width: 45px;
        height: 28px;
    }
    
    .recommended-product-image {
        height: 200px;
    }
    
    .recommended-product-info {
        padding: 16px;
    }
}

@media (max-width: 575.98px) {
    .cart-item-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quantity-controls {
        align-self: center;
        margin-bottom: 12px;
    }
    
    .continue-shopping-btn,
    .update-cart-btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 12px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cart Item Animation */
.cart-item-enter {
    animation: cartItemEnter 0.5s ease-out;
}

.cart-item-exit {
    animation: cartItemExit 0.3s ease-in forwards;
}

@keyframes cartItemEnter {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes cartItemExit {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
}
/* Addit
ional Mobile Optimizations */
@media (max-width: 480px) {
    .cart-header {
        padding: 30px 0;
    }
    
    .cart-header h1 {
        font-size: 1.75rem;
    }
    
    .cart-header .lead {
        font-size: 1rem;
    }
    
    .cart-item {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .cart-item-image {
        height: 150px;
        margin-bottom: 12px;
    }
    
    .cart-item-details h5 {
        font-size: 1rem;
    }
    
    .cart-item-price {
        font-size: 1.125rem;
    }
    
    .quantity-controls {
        margin: 12px auto;
    }
    
    .order-summary-body {
        padding: 16px;
    }
    
    .checkout-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .recommended-product-image {
        height: 180px;
    }
    
    .recommended-product-info {
        padding: 12px;
    }
    
    .recommended-product-title {
        font-size: 1rem;
    }
    
    .empty-cart {
        padding: 60px 16px;
    }
    
    .empty-cart-icon {
        font-size: 4rem;
    }
    
    .empty-cart h3 {
        font-size: 1.5rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .quantity-btn {
        width: 44px;
        height: 44px;
    }
    
    .remove-item-btn {
        width: 44px;
        height: 44px;
    }
    
    .checkout-btn {
        padding: 18px 24px;
    }
    
    .add-to-cart-recommended {
        padding: 14px 20px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cart-item {
        border: 2px solid #000;
    }
    
    .quantity-btn {
        border: 1px solid #000;
    }
    
    .checkout-btn {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cart-item,
    .recommended-product,
    .quantity-btn,
    .checkout-btn,
    .add-to-cart-recommended {
        transition: none;
    }
    
    .fade-in,
    .slide-up,
    .cart-item-enter,
    .cart-item-exit {
        animation: none;
    }
}

/* Mobile Responsive Styles for Background */
@media (max-width: 768px) {
    .cart-header-bg {
        min-height: 250px;
        background-position: center center;
    }
    
    .cart-header h1 {
        font-size: 2rem;
    }
    
    .cart-header p {
        font-size: 1rem;
    }
    
    /* Adjust floating elements for mobile */
    .cart-header-bg::after {
        width: 60px;
        height: 60px;
        right: 5%;
        top: 15%;
    }
    
    .cart-header-bg::before {
        width: 40px;
        height: 40px;
        left: 10%;
        bottom: 15%;
    }
}

@media (max-width: 480px) {
    .cart-header-bg {
        min-height: 200px;
    }
    
    .cart-header h1 {
        font-size: 1.75rem;
    }
    
    .cart-header p {
        font-size: 0.9rem;
    }
    
    /* Hide floating elements on very small screens */
    .cart-header-bg::after,
    .cart-header-bg::before {
        display: none;
    }
}

/* Print styles */
@media print {
    .cart-header,
    .recommended-section,
    .quantity-controls,
    .remove-item-btn,
    .checkout-btn,
    .promo-code-section {
        display: none !important;
    }
    
    .cart-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .order-summary {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* Focus management for accessibility */
.cart-item:focus-within {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.quantity-btn:focus,
.remove-item-btn:focus,
.checkout-btn:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Loading skeleton for better perceived performance */
.cart-item-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Improved error states */
.quantity-input:invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.promo-input:invalid {
    border-color: #dc2626;
}

/* Success states */
.quantity-input:valid {
    border-color: #10b981;
}

.promo-input:valid {
    border-color: #10b981;
}/* N
ew Mobile Cart Styles to match the design */
.mobile-cart-view {
    display: none;
}

.mobile-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 10px;
}

.mobile-cart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-cart-subtitle {
    font-size: 0.85rem;
    color: #777;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mobile-cart-items {
    background-color: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
}

.mobile-cart-card {
    background-color: #fff;
    border-radius: 12px;
    margin: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
}

.mobile-product-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.mobile-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-product-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 0;
}

.mobile-product-attributes {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.mobile-attribute {
    background-color: #f1f5f9;
    color: #64748b;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 50px;
}

.mobile-price {
    font-size: 1.1rem;
    color: #333;
    text-align: center;
    font-weight: 500;
}

.mobile-quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.mobile-qty-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-qty-btn.minus {
    background-color: #f1f5f9;
    color: #64748b;
}

.mobile-qty-btn.plus {
    background-color: #3b82f6;
    color: white;
}

.mobile-qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mobile-qty-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    min-width: 30px;
    text-align: center;
}

.mobile-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5px;
}

.mobile-total-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
}

.mobile-total-label {
    font-size: 0.9rem;
    color: #64748b;
}

.mobile-remove-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #fee2e2;
    color: #dc2626;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
}

.mobile-remove-btn:hover {
    background-color: #fecaca;
    transform: scale(1.05);
}

/* Media Queries for Mobile View */
@media (max-width: 768px) {
    .desktop-cart-view {
        display: none;
    }
    
    .mobile-cart-view {
        display: block;
    }
}

@media (max-width: 480px) {
    .mobile-product-attributes {
        gap: 5px;
    }
    
    .mobile-attribute {
        padding: 3px 8px;
        font-size: 0.8rem;
    }
    
    .mobile-qty-btn {
        width: 36px;
        height: 36px;
    }
}