:root {
    --main-color: #ffc107;
    --primary-blue: #0d6efd;
    --success-green: #28a745;
    --bg-light: #f8f9fa;
}

body {
    background-color: var(--bg-light);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.top-header {
    font-size: 0.85rem;
    background: var(--bg-light);
}

.navbar-brand {
    font-style: italic;
    font-weight: bold;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-navbar {
    background-color: #121212 !important;
    border-bottom: 2px solid var(--primary-blue);
    min-height: 55px;
    display: flex;
    align-items: center;
}

.category-navbar .nav-link {
    padding: 0.8rem 0.5rem !important;
    opacity: 0.9;
}

.category-navbar .nav-link:hover {
    opacity: 1;
    transform: translateY(-1px);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.search-input {
    border-radius: 20px 0 0 20px !important;
}

.search-btn {
    border-radius: 0 20px 20px 0 !important;
}

.mega-menu-item {
    position: static !important;
}

.mega-menu-content {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    z-index: 1050;
    border-top: 3px solid var(--primary-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mega-menu-item:hover .mega-menu-content {
    display: block;
}

.modern-hero {
    position: relative;
    height: 400px;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: 1;
}

.hero-parallax-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.2, 0.4, 0.3, 1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 65%, var(--bg-light) 100%);
}

.content-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -100px;
    padding-bottom: 50px;
}

.card {
    border-radius: 16px;
    border: 1px solid transparent !important;
    /* Фіксуємо розмір */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backface-visibility: hidden;
}

.product-card:hover,
.category-link:hover .card,
.transition-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12) !important;
}

.container.py-5 .card:hover,
.admin-user-card:hover,
.stat-card:hover {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.img-wrapper {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.form-control,
.form-select {
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #dee2e6 !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue) !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1) !important;
}

.select2-container--default .select2-selection--single {
    height: 45px !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 45px !important;
    padding-left: 12px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 45px !important;
}

.admin-title {
    font-weight: 800;
    color: #1a1a1a;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #eee;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.st-new {
    background: #e9ecef;
    color: #495057;
}

.st-pending {
    background: #d1ecf1;
    color: #0c5460;
}

.st-shipped {
    background: #fff3cd;
    color: #856404;
}

.st-completed {
    background: #d4edda;
    color: #155724;
}

.st-cancelled {
    background: #f8d7da;
    color: #721c24;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-fadeIn {
    animation: fadeIn 1s ease-out;
}

.animate-slideUp {
    animation: slideUp 0.8s ease-out;
}

@media (max-width: 768px) {
    .modern-hero {
        height: 300px;
    }

    .content-wrapper {
        margin-top: -50px;
    }
}