/* ===== Shopping Cart Styles (Page-Specific) ===== */
/* Common styles (nav, body, etc.) are in common.css */

.main-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    position: relative;
    z-index: 5;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.cart-items {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

.empty-cart {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.empty-cart svg {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1rem;
    align-items: center;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-content {
    flex: 1;
}

.cart-item-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: #667eea;
    font-weight: bold;
    margin-bottom: 1rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-input {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 1rem;
}

.quantity-input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-remove {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    width: auto;
}

.btn-remove:hover {
    background: #ff5252;
}

.cart-item-total {
    font-weight: bold;
    color: #333;
}

.sidebar {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 80px;
}

.sidebar h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.province-selector {
    margin-bottom: 2rem;
}

.province-selector label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #666;
}

.province-selector select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.province-selector select:focus {
    outline: none;
    border-color: #667eea;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: bold;
    border-bottom: none;
    padding-top: 1.5rem;
    color: #667eea;
}

.tax-info {
    background: #f0f4ff;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1.5rem;
}

.checkout-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.continue-shopping {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.continue-shopping:hover {
    background: #f0f4ff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        margin-top: 2rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .cart-items {
        padding: 1rem;
    }

    .cart-item {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .sidebar {
        padding: 1.5rem;
    }
}

/* Extra small screens - 450px and below */
@media (max-width: 450px) {
    body {
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
    }
    
    nav {
        padding: 0.5rem 0;
        overflow: visible;
    }
    
    .nav-container {
        gap: 0.25rem;
        padding: 0 1rem;
    }
    
    .nav-logo-section {
        width: 100%;
        margin-bottom: 0;
        padding-right: 0;
    }
    
    .nav-logo-section img {
        height: 150px !important;
        margin: 0 0 -50px 0 !important;
        width: auto;
    }
    
    .nav-controls {
        width: 100%;
        justify-content: space-between;
        padding-right: 1rem;
        z-index: 20;
    }
    
    .main-container {
        margin: 1rem auto;
        padding: 0 1rem;
        margin-top: 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .cart-items {
        padding: 1rem;
    }
    
    .cart-item {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .cart-item-image {
        width: 120px;
        height: 120px;
    }
    
    .sidebar {
        grid-column: 1 / -1;
        position: sticky;
        top: auto;
    }
}

/* Tablets - 768px breakpoint */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr 280px;
        gap: 1.5rem;
    }
    
    .sidebar {
        top: 120px;
    }
}
