:root {
    --primary: #0d6efd;
    --success: #198754;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #0dcaf0;
    --dark: #212529;
    --light: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

#cart-count {
    font-size: 0.75rem;
    padding: 2px 6px;
}

/* Hero Carousel */
#hero-carousel {
    margin-bottom: 2rem;
}

.carousel-item {
    height: 400px;
    background-color: #e9ecef;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    overflow: hidden;
    background-color: #e9ecef;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1rem;
}

.product-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    min-height: 2.5rem;
    overflow: hidden;
}

.product-price {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.product-rating {
    color: #ffc107;
    margin-bottom: 0.5rem;
}

/* Cart */
.cart-item {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

/* Checkout */
.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    color: #666;
    font-size: 1.5rem;
}

.step-circle.active {
    background-color: var(--primary);
    color: white;
}

/* Forms */
.form-control, .form-select {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
}

.upload-area:hover {
    border-color: var(--primary);
    background-color: #f8f9fa;
}

.upload-area.dragover {
    border-color: var(--primary);
    background-color: #e7f3ff;
}

/* Footer */
footer {
    margin-top: auto;
    border-top: 1px solid #e9ecef;
}

footer a {
    text-decoration: none;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 0.7;
}

/* Badges */
.badge {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 20px;
}

/* Buttons */
.btn {
    border-radius: 4px;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
}

/* Modal */
.modal-content {
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

/* Table */
.table {
    margin-bottom: 0;
}

.table thead {
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Alerts */
.alert {
    border-radius: 4px;
    border: none;
    padding: 1rem;
}

/* Utilities */
.min-vh-100 {
    min-height: 100vh;
}

.opacity-50 {
    opacity: 0.5;
}

/* Text truncate */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.1);
}

.sidebar .nav-link {
    color: #495057;
    padding: 0.5rem 1rem;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: var(--primary);
    background-color: #f8f9fa;
    border-left-color: var(--primary);
}

/* Cards */
.card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem;
}

/* Content sections */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary);
    border-color: #ddd;
}

.pagination .page-link:hover {
    color: #0b5ed7;
    background-color: #f8f9fa;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}
