body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
}

.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-body {
    padding: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.field-small {
    max-width: 150px;
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

.container-fluid {
    padding: 0 30px;
}

/* Product Details Page */
.product-details h1 {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.product-details .lead {
    font-size: 1.1rem;
    color: #666;
}

.product-details .text-primary {
    color: #667eea !important;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 20px;
}

.thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-top: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

/* Cart Sidebar */
.offcanvas {
    width: 450px !important;
}

@media (max-width: 576px) {
    .offcanvas {
        width: 100% !important;
    }
}

.cart-item {
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
    transition: background-color 0.2s;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.price-changed-warning {
    background-color: #fff3cd;
    border-left: 3px solid #ffc107;
    padding: 10px;
    border-radius: 2px;
    font-size: 0.875rem;
    margin-bottom: 10px;
}

/* Expandable Sections */
.card-header {
    cursor: pointer;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
    user-select: none;
}

.card-header:hover {
    background-color: #e9ecef !important;
}

.card-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .product-gallery {
        position: static;
        margin-bottom: 20px;
    }

    .product-details h1 {
        font-size: 1.5rem;
    }

    .product-details h2 {
        font-size: 2rem !important;
    }
}
