/* Дари Радость - Точная копия дизайна 3oreshka.ru */

/* ===== ШРИФТ ===== */
@font-face {
    font-family: "Magnolia Script";
    src: url("../fonts/Magnolia Script.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    --bg-main: #f5f3f0;
    --bg-white: #ffffff;
    --bg-gray-light: #d4d2ce;
    --text-primary: #333333;
    --text-secondary: #333333;
    --text-muted: #999999;
    --border-light: #e8e6e1;
    --accent-blue: #5a9fd4;
    --accent-green: #5ba29e;
    --font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --transition: all 0.2s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-primary);
    background-color: white;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Адаптивные поля для разных разрешений */
@media (min-width: 1280px) and (max-width: 1439px) {
    /* Ноутбуки маленькие */
    .container,
    .top-nav .container,
    .main-nav .container,
    .slider-section,
    .catalog-section,
    .main-footer .container,
    .breadcrumbs .container,
    .breadcrumbs-section .container,
    .cabinet-page .container,
    .catalog-page .container,
    .cart-section .container,
    .product-container {
        max-width: 1100px;
    }

    .slider-container {
        height: 500px;
    }
}

@media (min-width: 1440px) and (max-width: 1599px) {
    /* Ноутбуки средние */
    .container,
    .top-nav .container,
    .main-nav .container,
    .slider-section,
    .catalog-section,
    .main-footer .container,
    .breadcrumbs .container,
    .breadcrumbs-section .container,
    .cabinet-page .container,
    .catalog-page .container,
    .cart-section .container,
    .product-container {
        max-width: 1200px;
    }

    .slider-container {
        height: 550px;
    }
}

/* Средние разрешения (1600-1919px) */
@media (min-width: 1600px) and (max-width: 1919px) {
    .container,
    .top-nav .container,
    .main-nav .container,
    .slider-section,
    .catalog-section,
    .main-footer .container,
    .breadcrumbs .container,
    .breadcrumbs-section .container,
    .cabinet-page .container,
    .catalog-page .container,
    .cart-section .container,
    .product-container {
        max-width: 1400px;
    }

    .slider-container {
        height: auto;
        aspect-ratio: 2.5 / 1;
    }

    .slider-slide {
        position: relative;
        height: auto;
    }

    .slider-slide img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}

@media (min-width: 1920px) {
    /* Большие мониторы (FullHD и выше) */
    .container,
    .top-nav .container,
    .main-nav .container,
    .slider-section,
    .catalog-section,
    .main-footer .container,
    .breadcrumbs .container,
    .breadcrumbs-section .container,
    .cabinet-page .container,
    .catalog-page .container,
    .cart-section .container,
    .product-container {
        max-width: 1600px;
    }

    /* Делаем слайдер адаптивным по высоте для 4K */
    .slider-container {
        height: auto;
        aspect-ratio: 2.5 / 1; /* Широкий формат */
    }

    .slider-slide {
        position: relative;
        height: auto;
    }

    .slider-slide img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}

/* ===== HEADER ===== */
/* TOP NAVIGATION */
.top-nav {
    background: #e2dbd0;
    padding: 10px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.top-nav .container {
    /* max-width наследуется от .container и media queries */
    margin: 0 auto;
    padding: 0 20px;
}

.top-nav a {
    color: #333333;
    text-decoration: none;
    margin: 0 15px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav {
    background: white;
    padding: 25px 0;
    text-align: left;
}

.main-nav .container {
    /* max-width наследуется от .container и media queries */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav-phone {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (min-width: 993px) {
    .main-nav-phone {
        display: block !important;
    }

    .mobile-menu-toggle {
        display: none !important;
    }
}

.main-nav-phone:hover {
    color: #333333;
}

/* ===== SITE ANNOUNCEMENT ===== */
.site-announcement {
    background-color: #f5f3f0;
    padding: 12px 0;
    margin-bottom: 15px;
    text-align: center;
}

.site-announcement .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.announcement-text {
    font-size: 24px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.4;
    white-space: pre-line;
}


/* Header Icons (Non-authenticated users) */
.header-icons {
    display: flex;
    align-items: center;
    gap: 35px;
}

.header-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
    cursor: pointer;
}

.header-icon-link i {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.header-icon-link:hover {
    color: var(--text-primary);
}

.header-icon-link:hover i {
    transform: translateY(-2px);
}

.header-icon-link span {
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Mobile User Menu */
.mobile-user-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px 0;
}

.mobile-cabinet-link {
    color: #836663;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
}

.mobile-logout-btn {
    background: transparent;
    border: 2px solid var(--border-light);
    color: #836663;
    padding: 12px 16px;
    border-radius: 0;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.mobile-logout-btn:hover {
    background: #5ba29e;
    border-color: #5ba29e;
    color: white;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-family: "Magnolia Script", cursive;
    font-size: 48px;
    color: #4a2f28;
    font-weight: 400;
    margin-left: -20px;
}

.logo img {
    height: 60px;
    width: auto;
}

@media (max-width: 992px) {
    .top-nav {
        display: none;
    }

    .main-nav {
        padding: 10px 0;
    }

    .main-nav .container {
        display: flex;
        align-items: center;
        padding: 0 15px;
        position: relative;
        min-height: 60px;
    }

    .main-nav-phone,
    .header-icons {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex !important;
        position: absolute;
        top: 50%;
        left: 15px;
        transform: translateY(-50%);
        z-index: 100;
    }

    .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        font-size: 32px;
        margin: 0;
    }

    .logo img {
        height: 70px;
    }

    .mobile-phone {
        display: block;
        text-align: center;
        font-size: 20px;
        font-weight: 400;
        color: var(--text-primary);
        padding: 8px 0;
        margin: 0;
        background: white;
        border-bottom: 1px solid var(--border-light);
        text-transform: uppercase;
        letter-spacing: 2px;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 28px;
    }

    .logo img {
        height: 60px;
    }

    .mobile-phone {
        margin-left: -110px;
    }

    .announcement-text {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .site-announcement {
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 50px;
    }

    .mobile-phone {
        margin-left: -114px;
    }

    .announcement-text {
        font-size: 14px;
        letter-spacing: 0.5px;
    }
}

/* MOBILE MENU */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    background: transparent;
    border: none;
    gap: 4px;
    transition: all 0.3s ease;
    z-index: 1000;
}

.mobile-menu-toggle:hover {
    opacity: 0.7;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background-color: #4a2f28;
    border-radius: 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle:hover span {
    background-color: #4a2f28;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    z-index: 9999;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    border-bottom: 2px solid var(--border-light);
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-menu-header .logo {
    position: relative;
    transform: none;
    left: auto;
    top: auto;
    font-size: 24px;
    margin: 0;
}

.mobile-menu-header .logo img {
    height: 50px;
}

.mobile-menu-close {
    font-size: 35px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background-color: rgba(255, 0, 0, 0.1);
    color: #ff4444;
}

.mobile-menu-nav {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    padding: 20px 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border-bottom: none;
    position: relative;
    font-weight: 500;
}

.mobile-menu-nav a:hover {
    color: white;
    background: #4a2f28;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(74, 47, 40, 0.3);
}

.mobile-menu-nav a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 0;
    background: #4a2f28;
    border-radius: 2px;
    transform: translateY(-50%);
    transition: height 0.3s ease;
}

.mobile-menu-nav a:hover::before {
    height: 100%;
}

/* Mobile Menu Cart */
.mobile-menu-cart {
    padding: 20px;
    border-top: 2px solid var(--border-light);
}

.mobile-cart-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #836663;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid #836663;
    transition: background 0.2s ease, color 0.2s ease;
    position: relative;
}

.mobile-cart-link:hover {
    background: white;
    color: #836663;
}

.mobile-cart-link i {
    font-size: 24px;
}

.mobile-cart-count {
    position: absolute;
    right: 15px;
    background: #e74c3c;
    color: white;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid white;
}

.mobile-menu-contact {
    padding: 30px 20px;
    border-top: 2px solid var(--border-light);
    margin-top: auto;
    text-align: center;
    background: rgba(74, 47, 40, 0.05);
}

.mobile-menu-contact a {
    padding: 15px 40px;
    border-radius: 0;
    background: #4a2f28;
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    transition: all 0.3s ease;
}

.mobile-menu-contact a:hover {
    background: #3a241c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 47, 40, 0.4);
}

/* MOBILE PHONE */
.mobile-phone {
    display: none;
    text-decoration: none;
}

.mobile-phone:hover {
    color: #4a2f28;
}

/* ===== SLIDER SECTION ===== */
.slider-section {
    background: transparent;
    padding: 0;
    margin: 10px auto 0;
    /* max-width задаётся через media queries */
    position: relative;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    /* Высота задается через media queries */
}

.slider-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.slider-slide.active {
    opacity: 1;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.slider-navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    background: white;
    cursor: pointer;
    transition: background 0.3s ease;
    border: 1px solid #ddd;
    border-radius: 50%;
}

.slider-dot.active {
    background: black;
    border-color: black;
}

.slider-dot:hover {
    background: #888;
}

/* ===== CATALOG SECTION ===== */
.catalog-section {
    background: transparent;
    padding: 0;
    margin: 0 auto;
    /* max-width задаётся через media queries */
}

.catalog-container {
    margin: 0 auto;
    padding: 0;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 10px;
}

.catalog-title {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.search-container {
    display: flex;
    align-items: center;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    border: none;
    padding: 12px 50px 12px 20px;
    font-size: 14px;
    background: var(--bg-main);
    width: 350px;
    border-radius: 0;
    transition: all 0.3s ease;
    outline: none;
}

.search-box input:focus {
    background: #f9f9f9;
}

.search-box input::placeholder {
    color: var(--text-secondary);
    opacity: 0.8;
    font-style: italic;
}

.search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: var(--text-primary);
}

/* CATEGORY TABS */
.category-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-light);
}

.category-tab {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 10px 0;
    position: relative;
}

.category-tab.active,
.category-tab:hover {
    color: var(--text-primary);
}

.category-tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--text-primary);
}

.view-all-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 24px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 0;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.view-all-link:hover {
    opacity: 0.7;
}

/* HOME SORTING */
.home-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-sort label {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.sort-select {
    padding: 8px 12px;
    border: 2px solid var(--border-light);
    border-radius: 0;
    background: white;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.sort-select:hover,
.sort-select:focus {
    border-color: #836663;
    outline: none;
}

/* FILTERS */
.filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-secondary);
}

.filter-select {
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
}

/* PRODUCTS GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    justify-content: center;
}

.product-card {
    background: transparent;
    transition: var(--transition);
    cursor: pointer;
}

.product-card a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.product-card a:hover {
    color: inherit;
}

.product-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover effect for product images */
.product-image-main,
.product-image-hover {
    transition: opacity 0.4s ease-in-out;
}

.product-image-main {
    opacity: 1;
}

.product-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.product-image:hover .product-image-main {
    opacity: 0;
}

.product-image:hover .product-image-hover {
    opacity: 1;
}

/* Stock badge - out of stock indicator */
.stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.out-of-stock-badge {
    background: #999;
    color: white;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 0;
    background: rgba(255, 255, 255, 0.4);
    color: #333333;
    padding: 8px 15px 8px 30px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    border-right: none;
    clip-path: polygon(
        0% 0%,
        100% 0%,
        100% 100%,
        0% 100%,
        15px 50%
    );
}

.product-badge.seasonal {
    background: rgba(108, 117, 125, 0.4);
    color: white;
}

.product-info {
    padding: 20px 0;
}

.product-card .product-title,
.product-title {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-primary) !important;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-card .product-description,
.product-description {
    font-size: 13px;
    color: #333333 !important;
    line-height: 1.4;
    margin-bottom: 15px;
}

/* Стили для HTML контента из Quill в описании товара на главной */
/* Принудительно переопределяем все inline-стили из редактора */
.product-description,
.product-description *,
.product-description p,
.product-description span,
.product-description strong,
.product-description em {
    color: #333333 !important;
    font-family: inherit !important;
    font-size: inherit !important;
}

.product-description p {
    margin: 0 0 8px 0;
}

.product-description p:last-child {
    margin-bottom: 0;
}

.product-description p:empty {
    display: none;
}

.product-description strong {
    font-weight: 600;
}

.product-description em {
    font-style: italic;
}

.product-description u {
    text-decoration: underline;
}

.product-card .product-price,
.product-price {
    font-size: 28px;
    color: var(--text-primary) !important;
    font-weight: 400;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    background: var(--bg-main);
    padding: 15px 0;
}

.breadcrumbs .container {
    /* max-width наследуется от .container и media queries */
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12px;
}

.breadcrumbs-list li {
    display: flex;
    align-items: center;
}

.breadcrumbs-list a {
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.breadcrumbs-list a:hover {
    border-bottom-color: var(--text-secondary);
}

.breadcrumbs-list li:not(:last-child)::after {
    content: "›";
    margin: 0 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.breadcrumbs-list li:last-child {
    color: var(--text-muted);
}

/* ===== CABINET PAGE ===== */
.cabinet-page {
    background: white;
    min-height: 60vh;
}

.cabinet-page .container {
    /* max-width наследуется от .container и media queries */
    margin: 0 auto;
    padding: 40px 20px;
}

.cabinet-header {
    margin-bottom: 30px;
}

.cabinet-title {
    font-size: 32px;
    color: #333333;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.cabinet-subtitle {
    color: var(--text-secondary);
    font-size: 20px;
    margin: 0;
}

.cabinet-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .cabinet-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cabinet-page .container {
        padding: 20px 15px;
    }

    .cabinet-title {
        font-size: 24px;
    }

    .cabinet-subtitle {
        font-size: 16px;
    }

    .cabinet-sidebar {
        padding: 15px 0;
    }

    .cabinet-content {
        padding: 20px 15px;
    }

    .cabinet-content-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .cabinet-page .container {
        padding: 15px;
    }

    .cabinet-title {
        font-size: 20px;
    }

    .cabinet-subtitle {
        font-size: 14px;
    }

    .cabinet-menu-link {
        padding: 12px 0;
        font-size: 15px;
    }

    .cabinet-content {
        padding: 15px;
        border-radius: 0;
    }

    .cabinet-content-title {
        font-size: 18px;
    }

    .cabinet-placeholder {
        padding: 40px 20px;
    }

    .cabinet-placeholder-icon {
        font-size: 40px;
    }
}

/* Cabinet Sidebar */
.cabinet-sidebar {
    background: transparent;
    padding: 20px 20px 20px 0;
    height: fit-content;
}

.cabinet-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cabinet-menu-item {
    margin-bottom: 0;
}

.cabinet-menu-item:last-child {
    margin-bottom: 0;
}

.cabinet-menu-link {
    display: flex;
    align-items: center;
    padding: 10px 0;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    background: transparent;
}

.cabinet-menu-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: #5ba29e;
    flex-shrink: 0;
}

.cabinet-menu-link span {
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.cabinet-menu-link:hover span {
    border-bottom-color: #333333;
}

.cabinet-menu-link.active span {
    font-weight: 600;
    border-bottom-color: #333333;
}

/* Cabinet Content */
.cabinet-content {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 30px;
    min-height: 400px;
}

.cabinet-content-title {
    font-size: 24px;
    color: #333333;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.cabinet-placeholder {
    background: white;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 60px 40px;
    text-align: center;
}

.cabinet-placeholder-icon {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 20px;
}

.cabinet-placeholder-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

.cabinet-placeholder-todo {
    font-size: 14px;
    color: var(--text-muted);
    margin: 10px 0 0 0;
    font-style: italic;
}

/* ===== FOOTER ===== */
.main-footer {
    background: #e2dbd0;
    position: relative;
    padding: 80px 0 40px;
    margin-top: 60px;
    color: #333333;
}

.main-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.main-footer .container {
    /* max-width наследуется от .container и media queries */
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

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

.footer-logo-section {
    display: flex;
    flex-direction: column;
    position: relative;
}

.footer-logo {
    display: block;
    margin-bottom: 20px;
    text-decoration: none;
}

.footer-logo img {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin-left: -110px;
}

.footer-description {
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 30px;
    margin-left: -30px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333333;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: #ffffff;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 25px;
    position: relative;
}

.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: #ffffff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #333333;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: #333333;
    padding-left: 10px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #333333;
    font-size: 15px;
}

.footer-contact-item i {
    width: 20px;
    color: #333333;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    background: rgba(102, 102, 102, 0.1);
    color: #333333;
    font-size: 14px;
}

.newsletter-input::placeholder {
    color: #999999;
}

.newsletter-btn {
    padding: 12px 20px;
    background: rgba(102, 102, 102, 0.2);
    border: 1px solid rgba(102, 102, 102, 0.3);
    border-radius: 6px;
    color: #333333;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: rgba(102, 102, 102, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 102, 102, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: #999999;
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #999999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #333333;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-logo-section {
        grid-column: span 2;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Global mobile fixes */
    .container,
    .catalog-section,
    .catalog-container,
    .slider-section {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .main-footer {
        padding: 60px 0 30px;
    }

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

    .footer-logo-section {
        grid-column: span 1;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    .mobile-phone {
        display: block;
        color: #836663;
    }

    .slider-section {
        padding: 15px;
        margin-top: 0;
    }

    .slider-container {
        height: auto;
        min-height: 200px;
    }

    .slider-slide {
        flex-direction: column;
        text-align: center;
    }

    .slider-slide img {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: contain;
    }

    .catalog-header {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .catalog-title {
        font-size: 18px;
        text-align: center;
        width: 100%;
        margin-bottom: 10px;
    }

    .search-container {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .search-box {
        width: 100%;
        max-width: 280px;
    }

    .search-box input {
        width: 100%;
        font-size: 16px;
        padding: 12px 40px 12px 15px;
    }

    .category-tabs {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
        align-items: stretch;
        border-bottom: none;
    }

    .category-tabs > div {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border-light);
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .category-tabs > div::-webkit-scrollbar {
        display: none;
    }

    .category-tab {
        font-size: 13px;
        padding: 8px 0;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .view-all-link {
        font-size: 14px;
        text-align: center;
        padding: 10px 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        justify-content: center;
    }

    .filters-row {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        background: white;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
    }

    .filters-row > div {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .filter-select {
        background: #f8f8f8;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        padding: 12px 15px;
        font-size: 16px;
        color: var(--text-primary);
        width: 100%;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 16px;
    }

    .filter-select:focus {
        outline: none;
        border-color: #4a2f28;
        box-shadow: 0 0 0 3px rgba(74, 47, 40, 0.1);
    }

    .main-nav .container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav-phone {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .slider-section {
        padding: 15px;
    }

    .slider-container {
        height: auto;
        min-height: 150px;
    }

    .slider-slide img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: contain;
    }

    .slider-navigation {
        bottom: 10px;
    }

    .slider-dot {
        width: 6px;
        height: 6px;
    }

    .catalog-section {
        margin: 0;
        padding: 0 15px;
    }

    .catalog-container {
        padding: 0;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        justify-content: center;
        padding: 0;
    }

    /* Четкое визуальное разделение карточек товаров на мобильных */
    .product-card {
        border: 2px solid #e8e6e1;
        padding: 15px;
        background: white;
    }

    .product-card .product-info {
        padding-top: 15px;
    }

    .search-box input {
        width: 100%;
        min-width: 250px;
        max-width: 300px;
    }

    .catalog-header {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .catalog-title {
        font-size: 16px;
        text-align: center;
        margin-bottom: 15px;
    }

    .search-container {
        width: 90%;
        display: flex;
        justify-content: center;
    }

    .search-box {
        width: 100%;
        max-width: 280px;
    }

    .search-box input {
        width: 100%;
        font-size: 16px;
        padding: 12px 40px 12px 15px;
    }

    .category-tabs {
        gap: 10px;
        margin-bottom: 15px;
    }

    .category-tabs > div {
        gap: 10px;
    }

    .category-tab {
        font-size: 13px;
        padding: 8px 0;
    }

    .view-all-link {
        font-size: 13px;
    }

    .product-title {
        font-size: 16px;
    }

    .product-price {
        font-size: 20px;
    }

    .product-description {
        font-size: 12px;
    }

    /* Footer mobile styles */
    .main-footer {
        padding: 50px 0 25px;
    }

    .footer-top {
        gap: 30px;
        margin-bottom: 30px;
    }

    .footer-logo-section {
        text-align: center;
    }

    .footer-logo img {
        max-width: 350px;
        margin-left: 0;
    }

    .footer-description {
        font-size: 14px;
        margin-bottom: 20px;
        margin-left: 0;
    }

    .footer-social {
        justify-content: center;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .footer-title {
        font-size: 16px;
        margin-bottom: 15px;
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-column {
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-links a {
        font-size: 14px;
    }

    .footer-contact-item {
        justify-content: center;
        font-size: 14px;
    }

    .footer-bottom {
        gap: 15px;
        padding-top: 20px;
    }

    .footer-copyright {
        font-size: 12px;
    }

    .footer-bottom-links {
        gap: 15px;
    }

    .footer-bottom-links a {
        font-size: 12px;
    }
}

/* ===== AUTH MODAL ===== */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.auth-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.auth-modal {
    background: white;
    border-radius: 0;
    box-shadow: none;
    border: 2px solid var(--text-primary);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transition: opacity 0.3s ease;
}

.auth-modal-overlay.active .auth-modal {
    opacity: 1;
}

.auth-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--text-primary);
    border: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    transition: background 0.2s ease;
    z-index: 100;
    line-height: 1;
}

.auth-modal-close:hover {
    background: #e74c3c;
}

.auth-modal-close:active {
    background: #c0392b;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 0;
    padding: 0 60px 0 0;
    background: #f5f5f5;
    border-radius: 0;
    position: relative;
    border-bottom: 2px solid var(--text-primary);
}

.auth-tab {
    flex: 1;
    padding: 18px 24px;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 0;
    z-index: 1;
}

.auth-tab.active {
    color: var(--text-primary);
    background: white;
    border-bottom: 3px solid var(--text-primary);
    margin-bottom: -2px;
}

.auth-tab:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.5);
}

/* Auth Form Container */
.auth-form-container {
    display: none;
    padding: 40px 35px;
    animation: fadeIn 0.3s ease;
}

.auth-form-container.active {
    display: block;
}

/* Form Error Message */
.form-error-message {
    background: rgba(244, 67, 54, 0.1);
    border-left: 4px solid #f44336;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 0;
    animation: slideDown 0.3s ease;
}

.form-error-message i {
    color: #f44336;
    margin-right: 8px;
}

.form-error-message-text {
    color: #f44336;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    text-align: center;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 30px 0;
    text-align: center;
}

/* Form Elements */
.auth-form-group {
    margin-bottom: 20px;
}

.auth-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-label i {
    color: #5ba29e;
    font-size: 16px;
}

.auth-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: 0;
    font-size: 15px;
    color: var(--text-primary);
    transition: border-color 0.2s ease;
    outline: none;
    font-family: var(--font-family);
    background: white;
}

.auth-input:focus {
    border-color: #5ba29e;
}

.auth-input::placeholder {
    color: var(--text-muted);
}

.auth-password-wrapper {
    position: relative;
}

.auth-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
    font-size: 18px;
}

.auth-password-toggle:hover {
    color: var(--text-primary);
}

.auth-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Form Options */
.auth-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #5ba29e;
}

.auth-checkbox a {
    color: #5ba29e;
    text-decoration: none;
    font-weight: 500;
}

.auth-checkbox a:hover {
    text-decoration: underline;
}

.auth-forgot-link {
    font-size: 14px;
    color: #5ba29e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-forgot-link:hover {
    color: #4a8a87;
    text-decoration: underline;
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 16px;
    background: #5ba29e;
    color: white;
    border: 2px solid #5ba29e;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-submit-btn:hover {
    background: #4a8a87;
    border-color: #4a8a87;
}

.auth-submit-btn:active {
    background: #3a7a77;
    border-color: #3a7a77;
}

.auth-submit-btn:disabled {
    background: #cccccc;
    border-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* === VALIDATION STYLES === */

/* Input validation states */
.auth-input.is-valid {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.05);
}

.auth-input.is-invalid {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.05);
}

/* Validation icons */
.auth-form-group {
    position: relative;
}

.validation-icon {
    position: absolute;
    right: 16px;
    top: 50px;
    font-size: 18px;
    display: none;
}

.validation-icon.success {
    color: #4caf50;
}

.validation-icon.error {
    color: #f44336;
}

.validation-icon.visible {
    display: block;
}

/* Validation messages */
.validation-message {
    display: none;
    font-size: 13px;
    margin-top: 6px;
    padding: 6px 12px;
    border-radius: 0;
    animation: slideDown 0.3s ease;
}

.validation-message.error {
    display: block;
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
    border-left: 3px solid #f44336;
}

.validation-message.success {
    display: block;
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
    border-left: 3px solid #4caf50;
}

.validation-message i {
    margin-right: 6px;
}

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

/* Password strength indicator */
.password-strength {
    margin-top: 8px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    display: none;
}

.password-strength.visible {
    display: block;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-bar.weak {
    width: 33%;
    background: #f44336;
}

.password-strength-bar.medium {
    width: 66%;
    background: #ff9800;
}

.password-strength-bar.strong {
    width: 100%;
    background: #4caf50;
}

.password-strength-text {
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
    display: none;
}

.password-strength-text.visible {
    display: block;
}

.password-strength-text.weak {
    color: #f44336;
}

.password-strength-text.medium {
    color: #ff9800;
}

.password-strength-text.strong {
    color: #4caf50;
}

/* Real-time validation feedback */
.auth-hint {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    display: block;
}

.auth-hint.success {
    color: #4caf50;
}

.auth-hint.error {
    color: #f44336;
}

/* Loading state for password wrapper */
.auth-password-wrapper.validating .auth-password-toggle {
    pointer-events: none;
    opacity: 0.5;
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    background: white;
    border-left: 4px solid;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 4.7s;
    border-radius: 0;
}

.toast.success {
    border-left-color: #4caf50;
}

.toast.error {
    border-left-color: #f44336;
}

.toast.info {
    border-left-color: #2196f3;
}

.toast.warning {
    border-left-color: #ff9800;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: #4caf50;
}

.toast.error .toast-icon {
    color: #f44336;
}

.toast.info .toast-icon {
    color: #2196f3;
}

.toast.warning .toast-icon {
    color: #ff9800;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #333;
}

.toast-message {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #333;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Mobile toast adjustments */
@media (max-width: 480px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        padding: 14px 16px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .auth-modal {
        max-width: 100%;
        border-radius: 0;
        max-height: 95vh;
    }

    .auth-form-container {
        padding: 30px 25px;
    }

    .auth-title {
        font-size: 22px;
    }

    .auth-subtitle {
        font-size: 13px;
    }

    .auth-form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .auth-checkbox {
        font-size: 13px;
    }

    .auth-checkbox span {
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .auth-modal-overlay {
        padding: 10px;
    }

    .auth-modal {
        border-radius: 0;
    }

    .auth-tabs {
        border-radius: 0;
        padding: 0 50px 0 0;
    }

    .auth-tab {
        padding: 14px 16px;
        font-size: 14px;
    }

    .auth-form-container {
        padding: 25px 20px;
    }

    .auth-title {
        font-size: 20px;
    }

    .auth-subtitle {
        font-size: 12px;
        margin-bottom: 24px;
    }

    .auth-input {
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .auth-submit-btn {
        padding: 14px;
        font-size: 15px;
    }

    .auth-social-btn {
        padding: 12px;
        font-size: 14px;
    }

    .auth-modal-close {
        top: 10px;
        right: 10px;
        font-size: 20px;
        width: 40px;
        height: 40px;
    }
    
    .auth-tabs {
        padding: 0 60px 0 0;
    }
    
    .auth-tab {
        padding: 16px 20px;
    }
}

/* ===== PRODUCT DETAILS PAGE ===== */

/* PRODUCT SECTION */
.product-section {
    padding: 40px 0;
    background: white;
}

.product-container {
    /* max-width задаётся через media queries */
    margin: 0 auto;
    padding: 0 20px;
}

.product-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* PRODUCT GALLERY */
.product-gallery {
    position: sticky;
    top: 20px;
    height: fit-content;
    width: 550px;
    max-width: 100%;
}

/* SWIPER GALLERY STYLES */
.swiper,
.swiper *,
.swiper-slide {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.swiper-main {
    width: 550px;
    height: 700px;
    margin: 0 0 20px 0;
    padding: 0;
    background: var(--bg-main);
}

.swiper-main .swiper-wrapper {
    margin: 0;
    padding: 0;
}

.swiper-main .swiper-slide {
    width: 550px;
    height: 700px;
    background: var(--bg-main);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.swiper-main .swiper-slide img {
    display: block;
    width: 550px;
    height: 700px;
    object-fit: cover;
    object-position: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
    cursor: pointer;
}

.swiper-main .swiper-slide img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.swiper-main .swiper-slide iframe {
    display: block;
    width: 550px;
    height: 700px;
    border: none;
    object-fit: cover;
}

.thumbs-container {
    position: relative;
    width: 550px;
    height: 70px;
}

.swiper-thumbs {
    width: 470px;
    height: 105px;
    margin: 0 40px;
    overflow: hidden;
    position: relative;
}

/* Градиент справа для индикации продолжения */
.swiper-thumbs::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9));
    pointer-events: none;
    z-index: 10;
}

.swiper-thumbs .swiper-wrapper {
    margin: 0;
    padding: 0;
}

.swiper-thumbs .swiper-slide {
    width: 80px;
    height: 100px;
    cursor: pointer;
    background: var(--bg-main);
    margin-right: 10px;
}

.swiper-thumbs .swiper-slide:last-child {
    margin-right: 0;
}

.swiper-thumbs .swiper-slide-thumb-active {
    border: 2px solid var(--accent-blue);
}

.swiper-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.thumb-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    transition: all 0.3s ease;
    z-index: 10;
    user-select: none;
}

.thumb-nav-btn:hover {
    background: white;
    color: #333;
}

.thumb-nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.thumb-nav-prev {
    left: 0;
}

.thumb-nav-next {
    right: 0;
}

.thumb-nav-prev::before {
    content: "◀";
}

.thumb-nav-next::before {
    content: "▶";
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: transparent;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    box-shadow: none;
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
    box-shadow: none;
}

.swiper-button-next:focus,
.swiper-button-prev:focus {
    outline: none;
    box-shadow: none;
}

.swiper-button-next:active,
.swiper-button-prev:active {
    outline: none;
    box-shadow: none;
    transform: scale(0.95);
}

.swiper-pagination-bullet {
    background: var(--accent-blue);
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* IMAGE MODAL */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.image-modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    display: block;
}

.modal-video-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-video-container video {
    border: 2px solid var(--border-light);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* ADD TO CART MODAL */
.add-to-cart-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.add-to-cart-modal.active {
    display: flex;
}

.add-to-cart-modal-content {
    background: #ffffff;
    border: 3px solid #836663;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
}

.add-to-cart-icon {
    font-size: 80px;
    color: #5ba29e;
    margin-bottom: 20px;
}

.add-to-cart-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d2d2d;
    margin: 0 0 30px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.add-to-cart-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-continue-shopping,
.btn-go-to-cart {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border: 2px solid;
}

.btn-continue-shopping {
    background: white;
    color: #333333;
    border-color: #d4d2ce;
}

.btn-continue-shopping:hover {
    background: #f5f3f0;
    border-color: #836663;
    color: #2d2d2d;
}

.btn-go-to-cart {
    background: #836663;
    color: white;
    border-color: #836663;
}

.btn-go-to-cart:hover {
    background: #6d5553;
    border-color: #6d5553;
}

/* PRODUCT INFO */
.product-info-section {
    padding-top: 20px;
}

.product-info-section .product-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    color: var(--text-secondary);
    font-size: 14px;
}

.product-code {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-availability {
    display: flex;
    align-items: center;
    gap: 5px;
}

.availability-badge {
    padding: 6px 12px;
    border-radius: 0;
    background: #cbc5bb;
    color: white;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.availability-badge.unavailable {
    background: #999;
}

.product-info-section .product-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 30px 0;
}

.price-currency {
    font-size: 24px;
    color: var(--text-secondary);
}

/* PRODUCT TAGS */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 30px 0;
}

.product-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid #836663;
    background: white;
    color: #836663;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: default;
}

.product-tag i {
    font-size: 10px;
}

.product-tag:hover {
    background: #836663;
    color: white;
    border-color: #836663;
}

/* PRODUCT OPTIONS */
.product-options {
    margin: 40px 0;
}

.option-group {
    margin-bottom: 30px;
}

.option-label {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 16px;
}

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.option-button {
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    background: white;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    min-width: 120px;
}

.option-button:hover {
    border-color: #836663;
    background: #f8f8f8;
}

.option-button.active {
    border-color: var(--accent-blue);
    background: var(--accent-blue);
    color: white;
}

.option-button.active:hover {
    background: #4a8bc2;
}

/* ADD TO CART */
.add-to-cart-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-light);
    overflow: hidden;
}

.quantity-btn {
    background: var(--bg-main);
    border: none;
    width: 40px;
    height: 48px;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-primary);
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--bg-gray-light);
}

.quantity-input {
    border: none;
    width: 60px;
    height: 48px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-btn {
    background: #5ba29e;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-to-cart-btn:hover {
    background: #5ba29e;
    transform: translateY(-2px);
}

.out-of-stock-message {
    background: #f5f5f5;
    color: #999;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #e0e0e0;
}

/* GIFT COMPOSITION */
.gift-composition {
    margin-top: 40px;
    overflow: hidden;
}

.composition-header {
    background: white;
    padding: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.composition-header:hover {
    background: #fafafa;
}

.composition-icon {
    font-size: 20px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.composition-icon.rotated {
    transform: rotate(180deg);
}

.composition-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.composition-content.active {
    max-height: 3000px;
}

.composition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0;
    padding: 0;
}

.composition-item {
    text-align: center;
    padding: 15px 10px;
    background: white;
}

.composition-item-image {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.composition-item-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.composition-item-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 5px;
    line-height: 1.3;
}

.composition-item-count {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* PRODUCT TABS */
.product-tabs {
    margin-top: 60px;
    border-top: 1px solid var(--border-light);
    padding-top: 40px;
}

.tab-navigation {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-light);
}

.tab-btn {
    background: none;
    border: none;
    padding: 20px 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-description {
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    max-width: none;
}

/* Принудительно переопределяем все inline-стили из Quill редактора */
.tab-description,
.tab-description *,
.tab-description p,
.tab-description span,
.tab-description li,
.tab-description strong,
.tab-description em {
    color: #333333 !important;
}

.tab-description p {
    margin: 0 0 12px 0;
    font-size: 16px;
    line-height: 1.8;
}

.tab-description p:last-child {
    margin-bottom: 0;
}

.tab-description p + p {
    margin-top: 12px;
}

/* Скрываем только пустые параграфы, но оставляем <br> внутри текста */
.tab-description p:empty {
    display: none;
}

.tab-description p > br:only-child {
    display: none;
}

.tab-description h3 {
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.tab-description ul,
.tab-description ol {
    padding-left: 0;
    margin: 16px 0;
    list-style: none;
}

.tab-description ul:first-child,
.tab-description ol:first-child {
    margin-top: 0;
}

.tab-description ul:last-child,
.tab-description ol:last-child {
    margin-bottom: 0;
}

.tab-description li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: var(--text-primary);
}

.tab-description li:last-child {
    margin-bottom: 0;
}

/* Маркированный список - стандартный ul или Quill data-list="bullet" */
.tab-description ul li:before,
.tab-description li[data-list="bullet"]:before {
    content: "•";
    color: var(--text-secondary);
    position: absolute;
    left: 0;
}

/* Нумерованный список - стандартный ol или Quill data-list="ordered" */
.tab-description ol {
    counter-reset: item;
}

.tab-description ol li {
    counter-increment: item;
}

.tab-description ol li:before {
    content: counter(item) ".";
    color: var(--text-secondary);
    position: absolute;
    left: 0;
}

/* Quill использует data-list атрибут для определения типа списка */
/* Для bullet списков в Quill убираем нумерацию */
.tab-description li[data-list="bullet"] {
    counter-increment: none;
}

.tab-description li[data-list="bullet"]:before {
    content: "•" !important;
}

/* Для ordered списков в Quill добавляем нумерацию */
.tab-description li[data-list="ordered"] {
    counter-increment: item;
}

.tab-description li[data-list="ordered"]:before {
    content: counter(item) "." !important;
}

/* Стили для контента из Quill редактора */
.tab-description strong {
    font-weight: 600;
    color: var(--text-primary);
}

.tab-description em {
    font-style: italic;
}

.tab-description u {
    text-decoration: underline;
}

.tab-description a {
    color: var(--accent-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.tab-description a:hover {
    border-bottom-color: var(--accent-blue);
}

/* REVIEWS */
.tab-reviews {
    margin-top: 0;
}

.no-reviews {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    padding: 40px 20px;
}

.review-item {
    padding: 25px 0;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 0;
}

.review-item:first-child {
    padding-top: 0;
}

.review-item:last-child {
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 30px;
}

.review-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-rating .star {
    color: #ddd;
    font-size: 16px;
}

.review-rating .star.filled {
    color: #ffc107;
}

.review-date {
    color: var(--text-muted);
    font-size: 13px;
    margin-left: auto;
}

.review-text {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* RESPONSIVE PRODUCT PAGE */
@media (max-width: 992px) {
    .product-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-gallery {
        position: relative;
        top: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .product-section {
        padding: 20px 0;
    }

    .product-container {
        padding: 0 15px;
    }

    .product-wrapper {
        gap: 30px;
        margin-bottom: 40px;
    }

    .product-info-section .product-title {
        font-size: 24px;
    }

    .product-info-section .product-price {
        font-size: 26px;
    }

    .product-gallery {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .swiper-main {
        width: 100% !important;
        height: 400px !important;
    }

    .swiper-main .swiper-slide {
        width: 100% !important;
        height: 400px !important;
    }

    .swiper-main .swiper-slide img {
        width: 100% !important;
        height: 400px !important;
        object-fit: contain;
    }

    .swiper-main .swiper-slide iframe {
        width: 100% !important;
        height: 400px !important;
    }

    .thumbs-container {
        width: 100% !important;
        max-width: 100% !important;
        height: 90px !important;
        overflow: hidden;
        position: relative;
    }

    .swiper-thumbs {
        width: 100% !important;
        max-width: 100% !important;
        height: 80px !important;
        margin: 0 !important;
        padding: 0 10px !important;
        box-sizing: border-box;
    }

    .swiper-thumbs .swiper-slide {
        width: 60px !important;
        height: 80px !important;
        flex-shrink: 0;
    }

    .swiper-thumbs .swiper-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    .thumb-nav-btn {
        display: none !important;
    }

    .product-info-section .product-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .tab-navigation {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        min-width: 100px;
        padding: 15px 20px;
        font-size: 14px;
    }

    .gift-composition {
        margin-top: 30px;
    }

    .composition-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0;
    }

    .composition-item {
        padding: 12px 8px;
    }

    .composition-item-name {
        font-size: 12px;
    }

    .composition-item-count {
        font-size: 11px;
    }
}

@media (max-width: 600px) {
    .product-info-section .product-title {
        font-size: 22px;
    }

    .product-info-section .product-price {
        font-size: 24px;
    }

    .swiper-thumbs .swiper-slide {
        width: 55px;
        height: 70px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }

    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .product-section {
        padding: 15px 0;
    }

    .product-container {
        padding: 0 15px;
    }

    .product-wrapper {
        gap: 20px;
        margin-bottom: 30px;
    }

    .product-info-section .product-title {
        font-size: 20px;
    }

    .product-info-section .product-price {
        font-size: 22px;
    }

    .add-to-cart-section {
        flex-direction: column;
        align-items: stretch;
    }

    .add-to-cart-btn {
        justify-content: center;
    }

    .gift-composition {
        margin-top: 20px;
    }

    .composition-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .composition-item {
        padding: 10px 6px;
    }

    .composition-item-image {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }

    .composition-item-image img {
        width: 40px;
        height: 40px;
    }

    .composition-item-name {
        font-size: 11px;
        margin-bottom: 3px;
    }

    .composition-item-count {
        font-size: 10px;
    }

    .product-gallery {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .swiper-thumbs {
        height: 65px;
    }

    .swiper-thumbs .swiper-slide {
        width: 50px;
        height: 65px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .thumb-nav-btn {
        width: 25px;
        height: 25px;
        font-size: 10px;
    }
}

/* ===== АНИМАЦИИ ===== */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

/* ===== ОТЗЫВЫ ===== */
/* Форма добавления отзыва */
.review-form-section {
    background: var(--bg-white);
    padding: 30px;
    border: 2px solid var(--border-light);
    margin-bottom: 40px;
}

.review-form-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-light);
    background: var(--bg-white);
    font-family: var(--font-family);
    font-size: 14px;
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.form-textarea {
    resize: vertical;
}

.form-file {
    display: block;
    width: 100%;
    padding: 10px;
    border: 2px dashed var(--border-light);
    background: var(--bg-main);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.form-file:hover {
    border-color: var(--accent-blue);
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Рейтинг звёздами */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    font-size: 32px;
    color: var(--border-light);
    cursor: pointer;
    transition: color 0.2s ease;
    margin: 0;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input[type="radio"]:checked ~ label {
    color: #f5a623;
}

/* Превью файлов */
.file-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border: 2px solid var(--border-light);
    overflow: hidden;
}

.preview-item img,
.preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-filename {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Кнопка отправки отзыва */
.btn-submit-review {
    background: var(--accent-blue);
    color: white;
    padding: 14px 30px;
    border: 2px solid var(--accent-blue);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-submit-review:hover {
    background: white;
    color: var(--accent-blue);
}

/* Список отзывов */
.reviews-list {
    margin-top: 40px;
}

.reviews-list h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 30px 0;
    color: var(--text-primary);
}

.review-item {
    background: var(--bg-white);
    padding: 25px;
    border: 2px solid var(--border-light);
    margin-bottom: 20px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.review-author {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-rating .star {
    font-size: 18px;
    color: var(--border-light);
}

.review-rating .star.filled {
    color: #f5a623;
}

.review-date {
    color: var(--text-muted);
    font-size: 13px;
    margin-left: auto;
}

.review-text {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Медиафайлы в отзыве */
.review-media {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.review-media-item {
    position: relative;
    aspect-ratio: 3 / 4;
    border: 2px solid var(--border-light);
    overflow: hidden;
    cursor: pointer;
}

.review-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.review-media-item:hover img {
    opacity: 0.9;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-video-thumbnail .video-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(45, 45, 45, 0.85);
    color: white;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    white-space: nowrap;
}

.review-video-thumbnail .video-play-badge span {
    font-size: 9px;
}

/* Алерты */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 2px solid;
    background: var(--bg-white);
}

.alert-success {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.alert-error {
    border-color: #e74c3c;
    color: #e74c3c;
}

.no-reviews {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
    font-size: 16px;
}

/* Reviews responsive */
@media (max-width: 768px) {
    .review-media {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .review-header {
        gap: 8px;
    }

    .review-date {
        margin-left: 0;
        flex-basis: 100%;
        order: 3;
    }

    .review-media {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
}
