/* Custom Styles for E-Commerce MVP */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
}

.product-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
}

/* Cart Badge */
.navbar .badge {
    font-size: 0.7rem;
}

/* Custom Buttons */
.btn {
    border-radius: 0.5rem;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
}

/* Cards */
.card {
    border-radius: 0.75rem;
    overflow: hidden;
}

/* Form Controls */
.form-control,
.form-select {
    border-radius: 0.5rem;
    padding: 0.65rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Alert Messages */
.alert {
    border-radius: 0.75rem;
    border: none;
}

/* Footer */
footer a:hover {
    text-decoration: underline !important;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Category Cards */
.category-card {
    transition: all 0.3s ease;
}

.category-card:hover {
    background-color: #f8f9fa;
}

/* Table Responsive */
.table-responsive {
    border-radius: 0.5rem;
}

/* Admin Sidebar */
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .sidebar {
        position: relative;
        height: auto;
    }
    
    .product-img {
        height: 150px;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Pagination */
.pagination {
    gap: 0.25rem;
}

.page-link {
    border-radius: 0.5rem;
    margin: 0 0.125rem;
}

/* Modal */
.modal-content {
    border-radius: 0.75rem;
}

.modal-header {
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn,
    .alert {
        display: none !important;
    }
}