/* ==============================================
   CUSTOM STYLES FOR VALIKOVSKAYAHOME WEBSITE
   ============================================== */

/* Global Styles */
:root {
    --primary-color: #8B5A5A;
    --secondary-color: #D4B5A0;
    --accent-color: #F5E6D3;
    --text-dark: #2C2C2C;
    --text-light: #6C6C6C;
    --border-color: #E0E0E0;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 25px rgba(0,0,0,0.15);
}

/* ==============================================
   VALIKOVSKAYAHOME - ЗОЛОТАЯ И КОРИЧНЕВАЯ ТЕМА
   ============================================== */

/* Новая цветовая палитра */
:root {
    --primary-gold: #b8860b;
    --secondary-gold: #FFD700;
    --dark-brown: #8B4513;
    --medium-brown: #A0522D;
    --light-brown: #DEB887;
    --cream: #F5F5DC;
    --text-dark: #3E2723;
    --text-light: #8D6E63;
    --background-nav: #343a40;
    --overlay-dark: rgba(139, 69, 19, 0.7);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
    --gold-alpha-10: rgba(212, 175, 55, 0.1);
    --gold-alpha-20: rgba(212, 175, 55, 0.2);
    --gold-alpha-30: rgba(212, 175, 55, 0.3);
    --gold-alpha-40: rgba(212, 175, 55, 0.4);
    --gold-alpha-50: rgba(212, 175, 55, 0.5);
}

/* Глобальные стили */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--text-dark);
}

body {
    background: url('/images/backgound_main_page.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Глобальные стили текста для читаемости на темном фоне */
body, p, div, span, h1, h2, h3, h4, h5, h6, li, td, th {
    color: var(--secondary-gold);
}


/* Логотип */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.brand-text {
    color: var(--primary-color);
}

/* Новый стилизованный логотип */
.brand-logo {
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-gold), var(--medium-brown));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px var(--gold-alpha-30);
}

.logo-icon i {
    font-size: 20px;
    color: var(--dark-brown);
}

.brand-text-container {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-text-main {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-gold);
    font-family: 'Georgia', serif;
}

.brand-text-sub {
    font-size: 0.9rem;
    color: var(--medium-brown);
    font-weight: 500;
    margin-top: -2px;
}

.navbar-brand:hover .logo-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--gold-alpha-40);
}

.navbar-brand:hover .brand-text-main {
    color: var(--medium-brown);
}

.navbar-brand:hover .brand-text-sub {
    color: var(--dark-brown);
}

/* Навигация */
.navbar {
    background: var(--background-nav) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
    z-index: 1030;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.navbar-nav .nav-link {
    color: var(--cream) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--medium-brown) !important;
}

/* MAIN CONTENT - Отступ сверху для навигации */
.main-content {
    flex: 1;    
    padding-top: 80px !important; /* Отступ больше высоты навбара */
    width: 100%;
    overflow-x: hidden;
}

/* Hero Section - учитываем отступ навигации */
.hero-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffffff 100%);
    padding: 60px 0;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.about-section {
    background-color: #fafafa;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #7A4F4F;
    border-color: #7A4F4F;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

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

/* Container Override */
.container {
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
}

/* Главная страница с фоновым изображением */
.main-hero {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    text-align: center;
    color: var(--cream);
    max-width: 800px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--medium-brown);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-family: 'Georgia', serif;
}

.hero-description {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    color: var(--cream);
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.category-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.category-btn {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    border: 3px solid var(--primary-gold);
    background: linear-gradient(135deg, var(--primary-gold), var(--medium-brown));
    color: var(--dark-brown);
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-gold);
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.category-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--gold-alpha-50);
    background: linear-gradient(135deg, var(--medium-brown), var(--primary-gold));
    color: var(--dark-brown);
}

.category-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--gold-alpha-40);
}

.category-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--gold-alpha-40);
}

.category-btn i {
    font-size: 1.3rem;
}

/* FOOTER */
.footer {
    background: var(--background-nav) !important;
    color: var(--cream) !important;
    padding: 3rem 0 1rem 0 !important;
    margin-top: 0 !important;
    flex-shrink: 0;
    min-height: 200px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

/* Navigation Styles */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.brand-text {
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    transition: color 0.3s ease;
    color: var(--primary-gold) !important;
}



.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--medium-brown) !important;
}

.navbar-nav .nav-link i {
    margin-right: 0.25rem;
}

/* Footer Styles */
.footer h5, .footer h6 {
    color: var(--medium-brown) !important;
    font-weight: 600;
}

.footer .text-light-50 {
    color: var(--primary-gold) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .text-light-50:hover {
    color: var(--medium-brown) !important;
}

.social-links a {
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

/* Стили для админ панели в навбаре */
.admin-link {
    padding: 8px;
    border-radius: 4px;
    margin-right: 8px;
    transition: all 0.3s ease;
    background-color: var(--gold-alpha-10);
}

.admin-link:hover {
    background-color: var(--gold-alpha-20);
    transform: translateY(-1px);
}

.admin-icon {
    width: 22px;
    height: 22px;
    filter: brightness(0) saturate(100%) invert(58%) sepia(85%) saturate(444%) hue-rotate(3deg) brightness(89%) contrast(91%);
    transition: all 0.3s ease;
}

.admin-link:hover .admin-icon {
    filter: brightness(0) saturate(100%) invert(84%) sepia(91%) saturate(2578%) hue-rotate(3deg) brightness(106%) contrast(101%);
    transform: scale(1.1);
}

/* Стили для корзины в навбаре */
.cart-counter {
    height: 100%;
}

.cart-counter a {
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: var(--primary-gold);
    background-color: var(--gold-alpha-10);
}

.cart-counter a:hover {
    background-color: var(--gold-alpha-20);
    color: var(--medium-brown);
    transform: translateY(-1px);
}

.cart-icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    filter: brightness(0) saturate(100%) invert(58%) sepia(85%) saturate(444%) hue-rotate(3deg) brightness(89%) contrast(91%);
}

.cart-counter a:hover .cart-icon {
    filter: brightness(0) saturate(100%) invert(84%) sepia(91%) saturate(2578%) hue-rotate(3deg) brightness(106%) contrast(101%);
    transform: scale(1.1);
}

.cart-badge {
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    line-height: 1;
    padding: 2px 4px;
    top: -2px !important;
    right: -8px !important;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-gold), var(--medium-brown)) !important;
    color: var(--dark-brown) !important;
    border: 1px solid var(--primary-gold);
}

.cart-counter a:hover .cart-badge {
    background: linear-gradient(135deg, var(--medium-brown), var(--primary-gold)) !important;
    transform: scale(1.1);
    box-shadow: 0 2px 8px var(--gold-alpha-40);
}

/* Стили для карточек товаров */
.product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background: var(--cream);
}

.product-card:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 4px 12px var(--gold-alpha-30);
    transform: translateY(-2px);
}

.product-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.product-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-body {
    padding: 1rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.product-availability {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-availability.in-stock {
    color: var(--medium-brown);
}

.product-availability.out-of-stock {
    color: #dc3545;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.product-actions .btn {
    flex: 1;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--primary-gold), var(--medium-brown));
    color: var(--dark-brown);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Дополнительные стили для карточек товаров */
.product-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    left: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.product-type {
    background: linear-gradient(135deg, var(--medium-brown), var(--dark-brown));
    color: var(--cream);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.out-of-stock {
    background: #dc3545;
    color: var(--cream);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-footer .price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-gold);
}

.card-title a {
    color: var(--text-dark) !important;
    text-decoration: none !important;
}

.card-title a:hover {
    color: var(--primary-gold) !important;
}

.card-text {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Специальные классы для светлого текста на темном фоне */
.text-light-on-dark {
    color: var(--cream) !important;
}

.text-gold-on-dark {
    color: var(--secondary-gold) !important;
}

/* Стили для breadcrumb */
.breadcrumb {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--medium-brown);
    font-weight: bold;
}

.breadcrumb-item.active {
    color: var(--medium-brown) !important;
    font-weight: 600;
}

.breadcrumb-item a {
    color: var(--primary-gold) !important;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--secondary-gold) !important;
}

/* Стили для страницы каталога товаров */
.page-title {
    color: var(--primary-gold);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--secondary-gold);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.filters-panel {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

.filters-panel label {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.filter-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group:last-child {
    margin-bottom: 1.5rem;
}

.results-info {
    font-weight: 500;
    color: var(--text-light);
}

.no-products {
    color: var(--text-light);
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
}

/* Стили для списка товаров */
.product-list-item {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.product-list-item:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 4px 12px var(--gold-alpha-30);
    transform: translateY(-1px);
}

.product-list-item .product-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.product-placeholder {
    opacity: 0.8;
    background-color: var(--cream);
    border: 1px solid var(--border-color);
}

.dropdown-menu {
    background: var(--cream);
}

/* ==============================================
   АДАПТИВНЫЕ СТИЛИ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ
   ============================================== */

/* Планшеты и маленькие десктопы */
@media (max-width: 991.98px) {
    .hero-content {
        max-width: 90%;
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-description {
        font-size: 1.2rem;
        margin-bottom: 2.5rem;
    }

    .category-buttons {
        gap: 1.5rem;
    }

    .category-btn {
        min-width: 180px;
        padding: 0.9rem 2rem;
        font-size: 1.1rem;
    }
}

/* Мобильные устройства */
@media (max-width: 767.98px) {
    .main-hero {
        min-height: 100vh;
        background-attachment: scroll; /* Лучше для мобильных */
        padding: 2rem 1rem;
    }

    .hero-content {
        max-width: 95%;
        padding: 1.5rem 1rem;
        border-radius: 15px;
        background: rgba(0, 0, 0, 0.4);
    }

    .hero-title {
        font-size: 2.2rem;
/* NAVBAR mobile fixes (site) */
@media (max-width: 991.98px) {
    /* На планшетах и мобильных меню не фиксируется и уезжает вверх при скролле */
    .navbar.fixed-top { position: static !important; }
    /* Контент не должен считать, что меню фиксировано */
    .main-content { padding-top: 1rem !important; }
    /* Компактнее шрифты и отступы ссылок */
    .navbar .nav-link { font-size: .95rem; padding: .5rem .75rem !important; }
    .navbar .navbar-brand { font-size: 1rem; }
}

@media (max-width: 575.98px) {
    .navbar .nav-link { font-size: .9rem; }
    .navbar .navbar-brand { font-size: .95rem; }
}
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.5;
    }

    .category-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .category-btn {
        min-width: 250px;
        width: 100%;
        max-width: 300px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .category-btn i {
        font-size: 1.1rem;
    }
}

/* Очень маленькие мобильные устройства */
@media (max-width: 575.98px) {
    .main-hero {
        padding: 1rem 0.5rem;
    }

    .hero-content {
        padding: 1rem 0.8rem;
        border-radius: 12px;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .category-btn {
        min-width: 220px;
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }

    .category-btn i {
        font-size: 1rem;
    }
}

/* Дополнительные адаптивные стили для навигации */
@media (max-width: 767.98px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .brand-text-main {
        font-size: 1.2rem;
    }

    .brand-text-sub {
        font-size: 0.8rem;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
    }

    .logo-icon i {
        font-size: 18px;
    }
}

/* Исправление для очень маленьких экранов */
@media (max-width: 380px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }

    .category-btn {
        min-width: 200px;
        font-size: 0.9rem;
    }
}

.admin-wrapper {
    min-height: 100vh;
    background-color: #f8f9fa;
}

.admin-wrapper .navbar {
    /* Делает админ-навигацию не фиксированной: уезжает вверх при скролле */
    position: static !important;
    padding: .5rem 0 !important; /* компактнее на мобильных */
}

.admin-wrapper .navbar .navbar-brand {
    white-space: nowrap;
}

.main-admin-content {
    /* Раньше было 80px, теперь меню не фиксированное */
    padding-top: 1rem;
}

@media (max-width: 767.98px) {
    .admin-wrapper .navbar .navbar-brand {
        font-size: 1rem;
        max-width: 70vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .admin-wrapper .navbar .nav-link { font-size: .95rem; }
}

@media (max-width: 575.98px) { .product-slide-img { max-height: 320px; } }


