/* FreshIT E-shop - Main Styles */

:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
}

/* General */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
}

/* Product Cards */
.product-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

/* Header */
header .navbar-nav .nav-link {
    font-weight: 500;
}

/* Carousel */
.carousel-caption {
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
    padding: 20px;
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* Badges */
.badge {
    font-weight: 500;
}

/* Footer */
footer a:hover {
    color: white !important;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-caption h2 {
        font-size: 1.2rem;
    }

    .carousel-caption p {
        display: none;
    }

    .product-card .card-title {
        font-size: 0.85rem;
    }
}

/* Loading */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Alerts */
.alert-dismissible {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tables */
.table th {
    font-weight: 600;
    border-top: none;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
}
