 :root {
    --primary: hsl(16, 90%, 55%);
    --primary-dark: hsl(16, 90%, 45%);
    --secondary: hsl(174, 62%, 47%);
    --background: hsl(0, 0%, 98%);
    --foreground: hsl(222, 47%, 11%);
    --card: hsl(0, 0%, 100%);
    --border: hsl(214, 32%, 91%);
    --muted: hsl(210, 40%, 96%);
    --muted-foreground: hsl(215, 16%, 47%);
    --success: hsl(142, 71%, 45%);
    --warning: hsl(38, 92%, 50%);
    --destructive: hsl(0, 84%, 60%);
}
      
       
       
       
       
       .cart-page {
            padding: 2rem 0;
            min-height: 60vh;
        }
        
        .cart-layout {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 2rem;
        }
        
        .cart-items {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 0.5rem;
        }
        
        .cart-item {
            display: flex;
            gap: 1rem;
            padding: 1.5rem;
            border-bottom: 1px solid var(--border);
        }
        
        .cart-item:last-child {
            border-bottom: none;
        }
        
        .cart-item-image {
            width: 6rem;
            height: 6rem;
            object-fit: cover;
            border-radius: 0.5rem;
        }
        
        .cart-item-details {
            flex: 1;
        }
        
        .cart-item-name {
            font-weight: 600;
            margin-bottom: 0.5rem;
        }
        
        .cart-item-price {
            font-size: 1rem;
            font-weight: bold;
            color: var(--primary);
        }
        
        .cart-item-actions {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 1rem;
        }
        
        .quantity-control {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
.quantity-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.2s;
    background: var(--muted);
    cursor: pointer;
}

.quantity-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}
        
        .quantity-value {
    width: 3rem;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    padding: 0.25rem 0;
}
        
        
        .cart-summary {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 0.5rem;
            padding: 1.5rem;
            height: fit-content;
            position: sticky;
            top: 6rem;
        }
        
        .summary-title {
            font-size: 1.25rem;
            font-weight: bold;
            margin-bottom: 1.5rem;
        }
        
        .summary-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 1rem;
        }
        
        .summary-total {
            border-top: 1px solid var(--border);
            padding-top: 1rem;
            margin-top: 1rem;
        }
        
        .summary-total .summary-row {
            font-size: 1.125rem;
            font-weight: bold;
        }
        
        .summary-total .summary-row span:last-child {
            color: var(--primary);
        }
        
        .checkout-btn {
            width: 100%;
            background: var(--primary);
            color: white;
            padding: 0.875rem;
            border-radius: 0.5rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            transition: background 0.2s;
        }
        
        .checkout-btn:hover {
            background: var(--primary-dark);
        }
        
        .continue-shopping-btn {
            width: 100%;
            background: transparent;
            border: 1px solid var(--border);
            padding: 0.875rem;
            border-radius: 0.5rem;
            transition: all 0.2s;
        }
        
        .continue-shopping-btn:hover {
            background: var(--muted);
        }
        
        .free-shipping-note {
            font-size: 0.875rem;
            color: var(--muted-foreground);
            text-align: center;
            margin-top: 1rem;
        }
        
        .empty-cart {
            text-align: center;
            padding: 4rem 2rem;
        }
        
        .empty-cart-icon {
            font-size: 6rem;
            margin-bottom: 1rem;
            color: var(--muted-foreground);
        }
        
        .cart-actions {
            padding: 1.5rem;
            border-top: 1px solid var(--border);
        }
        
        .clear-cart-btn {
            padding: 0.5rem 1.5rem;
            border: 1px solid var(--border);
            border-radius: 0.5rem;
            transition: all 0.2s;
        }
        
        .clear-cart-btn:hover {
            background: var(--destructive);
            color: white;
            border-color: var(--destructive);
        }
        
        @media (max-width: 768px) {
            .cart-layout {
                grid-template-columns: 1fr;
            }
            
            .cart-item {
                flex-direction: column;
            }
            
            .cart-item-actions {
                flex-direction: row;
                justify-content: space-between;
            }
        }

        .sell-btn {
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.delivery-btn {
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.2s;
}


.cart-remove-btn {
  background: transparent;
  border: none;
  color: var(--destructive);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
}

.cart-remove-btn:hover {
  color: #d9363e;
  transform: scale(1.05);
}

.quantity-btn:focus,
.cart-remove-btn:focus,
.checkout-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Mobile Sticky Bar (Hidden by default) */
.mobile-checkout-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card);
    padding: 1rem;
    z-index: 1000;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
}

.mobile-total-container {
    display: flex;
    flex-direction: column;
}

.mobile-total-label {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
}

.mobile-total-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--foreground);
}

.mobile-checkout-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 0.4rem;
    font-weight: 700;
    font-size: 0.9rem;
    
}

.add-cart-text {
    margin-bottom: 15px;
}



/* Mobile Media Query Updates */
@media (max-width: 768px) {
    .dektop-only {
        display: none; /* Hide desktop-only elements on mobile */
    }
    .cart-page {
        padding-top: 1rem;
        padding-bottom: 5rem; /* Prevents sticky bar from covering content */

    }
    .section-title {
        
        margin-bottom: 14px;
    }

    .cart-layout {
        display: block; /* Stack items */
    }

    .cart-summary {
        display: none; /* Hide the sidebar summary on mobile */
    }

    .mobile-checkout-bar {
        display: flex; /* Show sticky bar on mobile */
    }

    .cart-item {
        flex-direction: row; /* Keep image and text side-by-side */
        align-items: flex-start;
        padding: 1rem;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-item-actions {
        flex-direction: column;
        justify-content: space-between;
        gap: 0.5rem;
    }
}