:root {
    --primary-color: #ff6b00;
    --secondary-color: #111;
    --success-color: #27ae60;
    --danger-color: #e63946;
    --light-gray: #f8f9fa;
    --border-color: #eee;
    --text-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background: #f4f4f4;
    color: var(--text-color);
}

/* MAIN LAYOUT */
.cart-container {
    max-width: 1200px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 0 20px;
}

/* CART ITEMS SIDE */
.cart-items .cart-header {
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.cart-items .cart-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.cart-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.cart-item img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.item-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.price {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
}

.mrp {
    text-decoration: line-through;
    color: #888;
    font-size: 14px;
    margin-left: 8px;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: auto;
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
}

.qty-selector form {
    display: inline-flex;
}

.qty-selector span {
    padding: 8px 15px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.qty-btn, .remove-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    padding: 8px 12px;
}

.qty-btn {
    color: var(--primary-color);
    font-weight: 600;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #fff5f0;
}

.remove-btn {
    color: var(--danger-color);
    background: #fff5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    transition: background 0.2s;
}

.remove-btn:hover {
    background: #ffeaea;
}

/* PRICE SUMMARY BOX */
.price-box {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 90px;
    border: 1px solid var(--border-color);
}

.price-box h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.price-box .row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 15px;
}

.price-box .green {
    color: var(--success-color);
    font-weight: 600;
}

.price-box .total {
    font-size: 18px;
    font-weight: 700;
    border-top: 1px solid #ddd;
    padding-top: 15px;
    margin-top: 10px;
}

.secure {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.checkout-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    margin-top: 20px;
    transition: background 0.2s, transform 0.2s;
}

.checkout-btn:hover {
    background: #e85f00;
    transform: translateY(-2px);
}

/* EMPTY CART STYLES */
.empty-cart {
    background: #fff;
    border-radius: 12px;
    padding: 80px 40px;
    text-align: center;
    grid-column: 1 / -1;
    border: 1px solid var(--border-color);
}

.empty-cart i {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.empty-cart h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.empty-cart p {
    color: #666;
    margin-bottom: 30px;
}

.empty-cart .btn-primary {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
}

.empty-cart .btn-primary:hover {
    background: #e85f00;
    transform: translateY(-2px);
}

/* RESPONSIVE DESIGN */
@media(max-width: 1024px) {
    .cart-container {
        padding: 0 15px;
        gap: 20px;
        margin: 20px auto;
    }
    
    .cart-item img {
        width: 100px;
        height: 100px;
    }
}

@media(max-width: 900px) {
    .cart-container {
        grid-template-columns: 1fr;
        margin: 15px auto;
        padding: 0 15px;
    }
    
    .price-box {
        position: static;
        margin-top: 0;
    }
}

@media(max-width: 768px) {
    .cart-container {
        margin: 10px auto;
        padding: 0 10px;
    }
    
    .cart-items .cart-header {
        padding: 12px 15px;
        margin-bottom: 10px;
    }
    
    .cart-items .cart-header h3 {
        font-size: 16px;
    }
    
    .cart-item {
        padding: 15px;
        gap: 15px;
        margin-bottom: 10px;
    }
    
    .cart-item img {
        width: 90px;
        height: 90px;
    }
    
    .item-info h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .price {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .mrp {
        font-size: 13px;
    }
    
    .item-actions {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .qty-selector {
        flex: 1;
        min-width: 120px;
    }
    
    .remove-btn {
        flex: 1;
        justify-content: center;
    }
    
    .price-box {
        padding: 20px;
    }
    
    .price-box h3 {
        font-size: 16px;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .price-box .row {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .price-box .total {
        font-size: 16px;
    }
    
    .checkout-btn {
        padding: 14px;
        font-size: 15px;
    }
    
    .empty-cart {
        padding: 50px 30px;
    }
    
    .empty-cart i {
        font-size: 50px;
    }
    
    .empty-cart h2 {
        font-size: 20px;
    }
    
    .empty-cart p {
        font-size: 14px;
    }
}

@media(max-width: 480px) {
    .cart-container {
        padding: 0 8px;
        margin: 8px auto;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }
    
    .cart-item img {
        width: 100%;
        max-width: 200px;
        height: 200px;
    }
    
    .item-info {
        width: 100%;
        align-items: center;
    }
    
    .item-info h3 {
        font-size: 14px;
    }
    
    .price {
        font-size: 15px;
    }

    .item-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .qty-selector {
        width: 100%;
        justify-content: center;
        min-width: auto;
    }
    
    .remove-btn {
        width: 100%;
    }
    
    .price-box {
        padding: 15px;
    }
    
    .price-box h3 {
        font-size: 15px;
    }
    
    .price-box .row {
        font-size: 13px;
    }
    
    .price-box .total {
        font-size: 15px;
    }
    
    .secure {
        font-size: 12px;
        margin-top: 15px;
    }
    
    .checkout-btn {
        padding: 12px;
        font-size: 14px;
    }
    
    .empty-cart {
        padding: 40px 20px;
    }
    
    .empty-cart i {
        font-size: 45px;
        margin-bottom: 15px;
    }
    
    .empty-cart h2 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .empty-cart p {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .empty-cart .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
    }
}