/* ===== COMMON.CSS - Общие стили и переменные ===== */

:root {
    --primary-white: #ffffff;
    --primary-gray: #f8f9fa;
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #999999;
    --accent-gold: #d4af37;
    --accent-beige: #f5f0e8;
    --accent-blue: #e8f4f8;
    --discount-red: #e74c3c;
    --order-gold: #d4af37;
    --price-blue: #2980b9;
    --border-radius: 16px;
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background: var(--primary-white);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER - Общие стили ===== */
.header {
    background: var(--primary-white);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid var(--primary-gray);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-accent {
    color: var(--accent-gold);
}

.logo-link {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-link:hover .logo-text,
.logo-link:hover .logo-accent {
    opacity: 0.8;
}

.main-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
    background: var(--accent-beige);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    background: none;
    border: none;
    padding: 12px;
    border-radius: var(--border-radius);
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: var(--primary-gray);
    color: var(--text-dark);
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    color: var(--text-medium);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active,
.lang-btn:hover {
    color: var(--text-dark);
    background: var(--accent-beige);
}

.mobile-menu-btn {
    display: none;
}

/* Mobile Navigation */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: var(--primary-white);
    z-index: 9999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--primary-gray);
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-links .nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 15px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
    display: block;
    font-size: 16px;
}

.mobile-nav-links .nav-link:hover,
.mobile-nav-links .nav-link.active {
    background: var(--accent-beige);
    color: var(--accent-gold);
    font-weight: 600;
    transform: translateX(8px);
}

.mobile-nav-actions {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--primary-gray);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-actions .icon-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 15px 20px;
    background: var(--primary-gray);
    border-radius: 12px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    width: 100%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-nav-actions .icon-btn:hover {
    background: var(--accent-beige);
    color: var(--accent-gold);
    transform: translateX(8px);
}

.mobile-nav-actions .lang-btn {
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    background: var(--primary-gray);
    color: var(--text-medium);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: auto;
    min-width: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-actions .lang-btn:hover,
.mobile-nav-actions .lang-btn.active {
    background: var(--accent-beige);
    color: var(--accent-gold);
    font-weight: 600;
    transform: translateY(-2px);
}

.mobile-nav-actions .lang-divider {
    color: var(--text-medium);
    margin: 0 8px;
    font-weight: 400;
    user-select: none;
}

.mobile-nav-actions .language-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
}

.mobile-nav-actions .btn {
    padding: 16px 24px;
    background: var(--accent-gold);
    color: var(--primary-white);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: 100%;
}

.mobile-nav-actions .btn:hover {
    background: #c9a961;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* ===== SECTIONS - Общие стили ===== */
.categories-section,
.featured-section,
.advantages-section,
.delivery-section {
    padding: 80px 0;
}

.categories-section {
    background: var(--primary-white);
}

.featured-section {
    background: var(--primary-gray);
}

.advantages-section {
    background: var(--primary-white);
}

.delivery-section {
    background: var(--accent-blue);
}

.section-header {
    position: relative;
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-medium);
}

/* ===== FOOTER - Общие стили ===== */
.footer {
    background: linear-gradient(135deg, #4f46e5, #bec5d4) !important;
    color: var(--primary-white);
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-desc {
    color: #cccccc;
    margin-bottom: 24px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--accent-gold);
    color: var(--primary-white);
    transform: translateY(-2px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cccccc;
}

.contact-item a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-gold);
}

.footer-map .map-placeholder {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    color: #cccccc;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #999999;
    font-size: 14px;
}

/* Footer elements specific styles */
.footer h5 {
    color: var(--primary-white);
    font-weight: 600;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
    color: var(--accent-gold) !important;
    transition: color 0.3s ease;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.d-none {
    display: none !important;
}

.page {
    min-height: calc(100vh - 200px);
}

.page.active {
    display: block;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.animate__fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States */
.btn:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Hover States for Interactive Elements */
.btn:hover,
.card:hover,
.nav-link:hover {
    cursor: pointer;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Print Styles */
@media print {

    .navbar,
    .footer,
    .btn,
    .offcanvas {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--text-dark);
    }

    .btn {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}