/* Дари Радость - Точная копия дизайна 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: #2d2d2d;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-light: #e8e6e1;
    --accent-blue: #5a9fd4;
    --accent-green: #7fb069;
    --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;
}

/* ===== 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: 1680px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-nav a {
    color: #836663;
    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: 1680px;
    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: #666666;
}

.login-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
}

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

/* User Menu (Authenticated) */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-cabinet-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.user-cabinet-link:hover {
    color: var(--text-primary);
}

.user-cabinet-link i {
    font-size: 14px;
}

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

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

/* 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,
    .login-link,
    .user-menu {
        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;
    }
}

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

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

/* 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-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: 30px auto 0;
    max-width: 1680px;
    position: relative;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 625px;
}

.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: 1680px;
}

.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;
    gap: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.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);
}

/* 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%;
    height: 550px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.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;
}

.product-card .product-title,
.product-title {
    font-size: 16px;
    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: var(--text-secondary) !important;
    line-height: 1.4;
    margin-bottom: 15px;
}

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

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

.breadcrumbs .container {
    max-width: 1680px;
    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;
    transition: var(--transition);
}

.breadcrumbs-list a:hover {
    color: #5ba29e;
}

.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: 1680px;
    margin: 0 auto;
    padding: 40px 20px;
}

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

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

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

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

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

/* Cabinet Sidebar */
.cabinet-sidebar {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
}

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

.cabinet-menu-item {
    margin-bottom: 10px;
}

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

.cabinet-menu-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 14px;
}

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

.cabinet-menu-link:hover {
    background: white;
    color: #5ba29e;
}

.cabinet-menu-link.active {
    background: white;
    color: #5ba29e;
    font-weight: 600;
}

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

.cabinet-content-title {
    font-size: 24px;
    color: #836663;
    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: #666666;
}

.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: 1680px;
    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-cloud {
    height: 200px;
    position: absolute;
    top: -59px;
    left: -305px;
    right: -30px;
    bottom: 20px;
    background: url("../images/oblachko.png") center / contain
        no-repeat;
    z-index: -1;
}

.footer-logo {
    font-size: 36px;
    font-weight: 700;
    color: #666666;
    margin-bottom: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-family: "Magnolia Script", cursive;
}

.footer-logo span:first-child {
    text-transform: capitalize;
}

.footer-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 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: #666666;
    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: #666666;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

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

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

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

.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: #666666;
    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: #666666;
    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: #666666;
}

/* ===== 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) {
    .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-logo-cloud {
        left: -117px;
    }

    .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: 20px;
        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 {
        justify-content: center;
        gap: 10px;
        margin-bottom: 20px;
    }

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

    .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;
    }

    .catalog-container {
        padding: 0;
    }

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

    .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 {
        flex-direction: column;
        gap: 5px;
        align-items: center;
        margin-bottom: 15px;
    }

    .category-tab {
        font-size: 14px;
        padding: 10px 15px;
        text-align: center;
        width: 100%;
        max-width: 200px;
    }
}

/* ===== 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;
    }
}

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

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