/* Общие стили */
:root {
  --primary-color: #00CED1;
  --secondary-color: #0096a3;
  --text-color: #333;
  --bg-color: #fff;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --border-radius: 10px;
}

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

body {
    font-family: 'Montserrat', 'Arial', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: #f9f9f9;
    overflow-x: hidden;
}

/* Класс для скрытия элементов на мобильных устройствах */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
}

/* Шапка сайта */
header {
    background-color: var(--bg-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 0 20px;
    transition: all var(--transition-fast);
}

.header {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.logo-img:hover {
  transform: scale(1.08) rotate(2deg);
}

.nav-links {
    display: flex;
    gap: 30px;
    flex: 2;
    justify-content: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    text-align: right;
}

.contact-info a {
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-fast);
}

.contact-info a:hover {
    color: var(--primary-color) !important;
}

body.dark-theme .contact-info a {
    color: #fff;
}

body.dark-theme .contact-info a:hover {
    color: var(--primary-color) !important;
}

.main-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--primary-color) !important;
    font-size: 24px;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    padding: 5px 3px;
    margin: 0 7px;
    transition: color var(--transition-fast);
    letter-spacing: 0.3px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color) !important;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color) !important;
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Главная страница */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/sports-car.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,206,209,0.2), rgba(0,0,0,0.5));
    z-index: 1;
}

.hero h2, .hero p, .hero .cta-button {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.3);
    max-width: 800px;
    animation: fadeInUp 1.2s ease-out;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.3);
    max-width: 700px;
    animation: fadeInUp 1.2s 0.3s ease-out both;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-medium);
    box-shadow: 0 4px 15px rgba(0, 206, 209, 0.3);
    animation: fadeInUp 1.2s 0.6s ease-out both;
    font-size: 1.1rem;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--primary-color), #009ea6);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 206, 209, 0.4);
}

.featured-products {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px;
}

.product-card {
    display: grid;
    grid-template-rows: auto auto 1fr;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow var(--transition-fast);
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeInProduct 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

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

.product-card h3 {
    padding: 20px 20px 10px;
    margin: 0;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1rem;
}

.product-card p {
    padding: 0 20px 20px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Каталог */
.catalog-page {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 30px;
}

.catalog-sidebar {
    width: 250px;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    height: calc(100vh - 200px);
    position: sticky;
    top: 100px;
}

.sidebar-content {
    padding: 20px;
}

.category-list {
    list-style: none;
    margin-top: 20px;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.category-list a:hover {
    background-color: rgba(0, 206, 209, 0.1);
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

.catalog-content {
    flex: 1;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.search-bar {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 30px;
}

.search-bar input {
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 50px;
    width: 100%;
    font-size: 16px;
    transition: all var(--transition-fast);
}

.search-bar input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(0, 206, 209, 0.2);
    outline: none;
}

.search-bar button {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-bar button:hover {
    background: linear-gradient(135deg, var(--primary-color), #009ea6);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 206, 209, 0.3);
}

.category-section {
    margin-bottom: 40px;
    transition: opacity 0.3s ease;
}

.category-section h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

/* Контакты */
.contacts-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.contact-info-section {
    margin-bottom: 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.contact-card {
    background: var(--bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: all var(--transition-medium);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.contact-card i {
    font-size: 40px;
    color: var(--primary-color) !important;
    margin-bottom: 20px;
    transition: all var(--transition-fast);
}

.contact-card:hover i {
    transform: scale(1.2);
    color: var(--secondary-color);
}

.contact-form-section {
    max-width: 600px;
    margin: 0 auto 60px;
}

.contact-form {
    background: var(--bg-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(0, 206, 209, 0.2);
    outline: none;
    transform: translateY(-2px);
}

.submit-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0, 206, 209, 0.3);
}

.submit-button:hover {
    background: linear-gradient(135deg, var(--primary-color), #009ea6);
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 206, 209, 0.4);
}

.map-section {
    margin-top: 60px;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    position: relative;
    z-index: 1;
}

.map-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 100%);
}

/* О нас */
.about-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.about-hero {
    text-align: center;
    margin-bottom: 60px;
    padding: 80px 0;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/about-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,206,209,0.2), rgba(0,0,0,0.5));
    z-index: 1;
}

.about-hero h2, .about-hero p {
    position: relative;
    z-index: 2;
}

.about-hero h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.3);
    animation: fadeInUp 1.2s ease-out;
}

.about-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 1.2s 0.3s ease-out both;
}

.about-section {
    margin-bottom: 80px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.advantage-card {
    background: var(--bg-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: all var(--transition-medium);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.advantage-card i {
    font-size: 44px;
    color: var(--primary-color) !important;
    margin-bottom: 25px;
    transition: all var(--transition-fast);
}

.advantage-card:hover i {
    transform: scale(1.2);
    color: var(--secondary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.team-member {
    text-align: center;
    transition: all var(--transition-medium);
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid var(--bg-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-medium);
}

.team-member:hover img {
    border-color: var(--primary-color) !important;
    transform: scale(1.05);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.achievement-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: all var(--transition-medium);
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.achievement-card .number {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color) !important;
    display: block;
    margin-bottom: 15px;
    transition: all var(--transition-fast);
}

.achievement-card:hover .number {
    transform: scale(1.2);
    color: var(--secondary-color);
}

/* Подвал */
footer {
    background-color: #333;
    color: #fff;
    padding: 80px 20px 20px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color) !important;
}

.footer-section p {
    margin-bottom: 15px;
    opacity: 0.9;
}

.footer-section a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
    opacity: 0.9;
}

.footer-section a:hover {
    color: var(--primary-color) !important;
    opacity: 1;
}

/* Дополнительные стили для footer с классом footer-col */
.footer-col {
    margin-bottom: 30px;
}

.footer-col h3 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color) !important;
}

.footer-col p {
    margin-bottom: 15px;
    opacity: 0.9;
}

.footer-col a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
    opacity: 0.9;
}

.footer-col a:hover {
    color: var(--primary-color) !important;
    opacity: 1;
}

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

.social-links a {
    color: #fff;
    font-size: 24px;
    transition: all var(--transition-fast);
    opacity: 0.9;
}

.social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-5px) scale(1.1);
    opacity: 1;
}

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    opacity: 0.7;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .hero h2 {
        font-size: 3rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .about-hero h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .hero {
        height: 70vh;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .about-hero h2 {
        font-size: 2.2rem;
    }

    .catalog-page {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 15px 0;
        gap: 15px;
        position: relative;
    }

    .logo {
        margin-bottom: 15px;
        position: relative;
        z-index: 2;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .contact-info {
        text-align: center;
        width: 100%;
    }

    .theme-switch {
        position: fixed !important;
        top: 15px !important;
        right: 15px !important;
        width: 38px !important;
        height: 38px !important;
        z-index: 9999 !important;
        transform: translateZ(0) !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
        perspective: 1000px !important;
    }

    .theme-switch i {
        font-size: 20px;
    }

    .hero {
        height: 70vh;
        background-attachment: scroll;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
        padding: 15px;
    }

    .catalog-page {
        flex-direction: column;
        padding: 15px;
    }

    .catalog-sidebar {
        width: 100%;
        height: auto;
        position: static;
        margin-bottom: 30px;
    }

    .search-bar {
        width: 100%;
    }

    .search-bar input {
        width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-section {
        padding: 0 15px;
    }

    .map-container iframe {
        height: 350px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

    .product-card img {
        height: 180px;
    }

    .about-hero {
        padding: 50px 20px;
        background-attachment: scroll;
    }

    .about-hero h2 {
        font-size: 2rem;
    }

    .about-hero p {
        font-size: 1rem;
    }

    .no-results {
        padding: 30px;
        font-size: 16px;
    }

    .mobile-toggle {
        display: flex;
    }
    
    .category-list {
        display: none;
    }
    
    .category-list.open {
        display: block;
        animation: slideDown 0.3s ease forwards;
        max-height: none;
        overflow: visible;
    }
    
    .subcategory-list {
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .subcategory-list.open {
        display: block;
        max-height: 500px;
        animation: slideDown 0.3s ease forwards;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .sidebar h2 {
        display: none; /* Скрываем заголовок, т.к. он уже есть в mobile-toggle */
    }

}

@media (max-width: 576px) {
    .hero {
        height: 65vh;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 14px;
    }

    .product-card img {
        height: 160px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .modal-products {
        grid-template-columns: 1fr;
    }

    .about-hero {
        padding: 40px 15px;
    }

    .about-hero h2 {
        font-size: 1.8rem;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .team-member img {
        width: 160px;
        height: 160px;
    }

    .location-content p {
        font-size: 16px;
    }

    .contact-form {
        padding: 25px;
    }

    /* Улучшенная адаптивность корзины для малых экранов - не нужно, мы используем контейнер */
    .cart-page {
        padding: 15px 10px;
    }
    
    /* Остальные стили мобильной корзины оставляем */
}

@media (max-width: 480px) {
    .hero {
        height: 60vh;
    }

    .hero h2 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 10px 25px;
        font-size: 14px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }
    
    .product-card img {
        height: 150px;
        aspect-ratio: 4/3;
    }

    .about-hero h2 {
        font-size: 1.6rem;
    }

    .achievement-card .number {
        font-size: 36px;
    }

    /* Стили для очень маленьких экранов */
    .cart-table {
        display: block;
        width: 100%;
    }
    
    /* Преобразуем таблицу в более компактный вид для мобильных устройств */
    .cart-table thead {
        display: none; /* Скрываем заголовки */
    }
    
    .cart-table tr {
        display: flex;
        flex-wrap: wrap;
        position: relative;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid #eee;
    }
    
    .cart-table td {
        border: none;
        padding: 8px 5px;
    }
    
    /* Первая ячейка (с товаром) занимает всю ширину */
    .cart-table td:nth-child(1) {
        width: 100%;
        padding-right: 60px; /* Место для кнопки удаления */
    }
    
    /* Цена отображается в компактном виде */
    .cart-table td:nth-child(2) {
        display: inline-block;
        width: auto;
        margin-right: 10px;
    }
    
    /* Количество товара */
    .cart-table td:nth-child(3) {
        width: 33%;
    }
    
    /* Итоговая цена */
    .cart-table td:nth-child(4) {
        width: 33%;
        text-align: right;
    }
    
    /* Кнопка удаления */
    .cart-table td:nth-child(5) {
        position: absolute;
        top: 8px;
        right: 5px;
    }
    
    .cart-actions button {
        padding: 0;
        font-size: 1.2rem;
    }
    
    .cart-actions button span {
        display: none; /* Скрываем текст кнопки, оставляем только иконку */
    }
    
    .cart-product {
        width: 100%;
    }
    
    .cart-quantity {
        justify-content: flex-start;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
    }
    to {
        transform: scale(1);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.slide-in {
    opacity: 0;
    animation: slideIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.scale-in {
    animation: scaleIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Анимации для интерактивных элементов */
.nav-links a {
    transition: color var(--transition-fast);
}

.logo-img {
    transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.add-to-cart {
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.add-to-cart.clicked {
    transform: scale(0.95);
    background-color: var(--secondary-color);
}

.search-bar {
    transition: transform var(--transition-fast);
}

.search-bar.focused {
    transform: translateY(-2px);
}

.form-group {
    transition: transform var(--transition-fast);
}

.form-group.focused {
    transform: translateY(-2px);
}

.social-links a {
    transition: transform var(--transition-fast), color var(--transition-fast);
}

/* Плавные переходы для всех интерактивных элементов */
a, button, input, textarea {
    transition: all var(--transition-fast);
}

/* Анимация для карточек товаров */
.product-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow var(--transition-fast);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Анимация для кнопок */
button, .submit-button {
    transition: transform var(--transition-fast), background-color var(--transition-fast), 
                box-shadow var(--transition-fast);
}

button:hover, .submit-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 206, 209, 0.4);
}

button:active, .submit-button:active {
    transform: translateY(-2px);
}

/* Анимация для иконок */
.advantage-card i,
.contact-card i {
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.advantage-card:hover i,
.contact-card:hover i {
    transform: scale(1.2);
    color: var(--secondary-color);
}

/* Анимация для заголовков секций */
.about-section h3,
.category-section h3 {
    position: relative;
    display: inline-block;
}

.about-section h3::after,
.category-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color) !important;
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-section:hover h3::after,
.category-section:hover h3::after {
    width: 100%;
}

/* Анимация для карточек достижений */
.achievement-card {
    transition: transform var(--transition-medium), box-shadow var(--transition-fast);
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.achievement-card .number {
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.achievement-card:hover .number {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* Анимация для форм */
.form-group input:focus,
.form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 0 0 3px rgba(0, 206, 209, 0.2);
}

/* Анимация для логотипа */
.logo {
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.05);
}

/* Анимация для социальных иконок */
.social-links a {
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    color: var(--primary-color) !important;
}

/* Стили для модальных окон */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    margin: 15px auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal.active .modal-content {
    opacity: 1;
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f0f0f0;
    border: none;
    z-index: 100;
    user-select: none;
}

.modal-close:hover {
    color: #ff3b30;
    background-color: #e0e0e0;
    transform: scale(1.1);
}

.modal-close:active {
    transform: scale(0.9);
    background-color: #d0d0d0;
}

.modal-title {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color) !important;
    position: relative;
    padding-bottom: 10px;
}

.modal-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.modal-products .product-card img {
    height: 180px;
    object-fit: contain;
    width: 100%;
}

/* Стили для секции местоположения */
.about-location {
    margin-top: 60px;
}

.location-content {
    margin-top: 30px;
}

.location-content p {
    margin-bottom: 20px;
    font-size: 18px;
    color: #666;
    line-height: 1.7;
}

/* Переключатель темы - базовые стили */
.theme-switch {
    position: fixed !important;
    top: 20px;
    right: 300px;
    z-index: 9999 !important;
    background: var(--bg-color);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-fast);
    transform: translateZ(0);
    will-change: transform;
}

.theme-switch i {
    font-size: 22px;
    color: var(--text-color);
    transition: all var(--transition-fast);
}

.theme-switch:hover {
    transform: rotate(10deg);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Темная тема */
body.dark-theme {
    background-color: #121212;
    color: #f5f5f5;
}

body.dark-theme header {
    background-color: #1e1e1e;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-theme .nav-links a {
    color: #f5f5f5;
}

body.dark-theme .nav-links a:hover,
body.dark-theme .nav-links a.active {
    color: var(--primary-color) !important;
}

body.dark-theme .product-card,
body.dark-theme .advantage-card,
body.dark-theme .contact-card,
body.dark-theme .modal-content,
body.dark-theme .contact-form,
body.dark-theme .catalog-sidebar {
    background-color: #1e1e1e;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

body.dark-theme .product-card h3,
body.dark-theme .advantage-card h3,
body.dark-theme .contact-card h3,
body.dark-theme .modal-title {
    color: #f5f5f5;
}

body.dark-theme .product-card p,
body.dark-theme .advantage-card p,
body.dark-theme .contact-card p,
body.dark-theme .location-content p {
    color: #bbb;
}

body.dark-theme .product-card img {
    background-color: #2d2d2d;
}

body.dark-theme .search-bar input {
    background-color: #2d2d2d;
    border-color: #444;
    color: #f5f5f5;
}

body.dark-theme .search-bar input::placeholder {
    color: #999;
}

body.dark-theme .form-group input,
body.dark-theme .form-group textarea {
    background-color: #2d2d2d;
    border-color: #444;
    color: #f5f5f5;
}

body.dark-theme .form-group input::placeholder,
body.dark-theme .form-group textarea::placeholder {
    color: #999;
}

body.dark-theme .form-group label {
    color: #f5f5f5;
}

body.dark-theme .modal {
    background-color: rgba(0, 0, 0, 0.8);
}

body.dark-theme .modal-close {
    color: #f5f5f5;
    background-color: rgba(255,255,255,0.1);
}

body.dark-theme .modal-close:hover {
    background-color: rgba(255,255,255,0.2);
}

body.dark-theme .category-list a {
    color: #f5f5f5;
}

body.dark-theme .category-list a:hover {
    background-color: rgba(0, 206, 209, 0.1);
    color: var(--primary-color) !important;
}

body.dark-theme .footer {
    background-color: #1e1e1e;
}

body.dark-theme .footer-bottom {
    border-top-color: #444;
}

body.dark-theme .theme-switch {
    background-color: #2d2d2d;
}

body.dark-theme .theme-switch i {
    color: #f5f5f5;
}

body.dark-theme .no-results {
    background: #2d2d2d;
    color: #f5f5f5;
}

.no-results {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    margin: 20px 0;
    grid-column: 1 / -1;
    box-shadow: var(--card-shadow);
}

/* Стили для уведомлений */
.notification {
    position: fixed;
    top: 70px;
    right: 20px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    max-width: 400px;
    z-index: 1000;
    transform: translateX(110%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
}

.notification-content i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.notification.success .notification-content i {
    color: var(--primary-color) !important;
}

.notification.info .notification-content i {
    color: var(--primary-color) !important;
}

.notification.error .notification-content i {
    color: #dc3545;
}

.notification-close {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease;
}

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

.featured-products .product-card {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow var(--transition-fast);
}

.featured-products .product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Стили для страницы благодарности */
.thanks-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.thanks-section {
    width: 100%;
    max-width: 700px;
}

.thanks-content {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 50px 40px;
    text-align: center;
    animation: fadeInCustom 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.success-icon {
    font-size: 80px;
    color: var(--primary-color) !important;
    margin-bottom: 25px;
    display: block;
    animation: scaleInPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.thanks-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.thanks-content p {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.redirect-notice {
    font-size: 14px;
    color: #888;
    margin-top: 30px;
    font-style: italic;
}

.thanks-content .cta-button {
    margin-top: 30px;
    display: inline-block;
}

@keyframes scaleInPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    80% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Темная тема для страницы благодарности */
body.dark-theme .thanks-content {
    background-color: #1e1e1e;
    border: 1px solid #333;
}

body.dark-theme .thanks-content h2 {
    color: #f5f5f5;
}

body.dark-theme .thanks-content p {
    color: #bbb;
}

body.dark-theme .redirect-notice {
    color: #999;
}

/* Стили для иконки корзины в шапке */
.cart-icon {
  position: relative;
  display: inline-block;
  margin-left: 20px;
  font-size: 1.2rem;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.cart-icon:hover {
  color: var(--primary-color) !important;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #ff6b6b;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.cart-icon:hover .cart-count {
  transform: scale(1.1);
}

/* Стили для цены и кнопки добавления в корзину */
.product-price {
  font-size: 1.1rem;
  font-weight: bold;
  color: #ff6b6b;
  margin: 10px 0;
}

.add-to-cart-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 15px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.add-to-cart-btn:hover {
  background: linear-gradient(135deg, var(--primary-color), #009ea6);
  transform: translateY(-2px);
}

.add-to-cart-btn:active {
  transform: translateY(1px);
}

/* Обновленные стили для карточки товара */
.product-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: 15px;
}

.product-card h3 {
  margin: 15px 15px 10px;
  font-size: 1.1rem;
}

.product-card p {
  margin: 0 15px 10px;
  font-size: 0.9rem;
  color: #666;
  flex-grow: 1;
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
}

.product-card .product-price,
.product-card .add-to-cart-btn {
  margin: 0 15px;
}

/* Стили для корзины */
.cart-page {
  max-width: 1200px;
  margin: 30px auto;
  padding: 20px;
  overflow-x: hidden; /* Предотвращаем горизонтальную прокрутку */
}

.cart-title {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

.cart-empty {
  text-align: center;
  padding: 50px 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.cart-empty i {
  font-size: 3rem;
  color: #ddd;
  margin-bottom: 20px;
}

.cart-empty p {
  margin-bottom: 20px;
  color: #666;
}

.cart-empty .btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cart-empty .btn:hover {
  background: linear-gradient(135deg, var(--primary-color), #009ea6);
  transform: translateY(-2px);
}

.cart-table-container {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  min-width: 600px; /* Минимальная ширина для предотвращения сжатия на мобильных */
}

.cart-table th {
  padding: 15px;
  text-align: left;
  background-color: #f8f9fa;
  color: #333;
  font-weight: 600;
}

.cart-table td {
  padding: 15px;
  border-top: 1px solid #eee;
}

.cart-product {
  display: flex;
  align-items: center;
}

.cart-product-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 15px;
}

.cart-product-info h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.cart-product-info p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.cart-quantity {
  display: flex;
  align-items: center;
}

.cart-quantity button {
  background-color: #f1f1f1;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.cart-quantity button:hover {
  background-color: #e1e1e1;
}

.cart-quantity span {
  padding: 0 15px;
  font-weight: 600;
}

.cart-actions button {
  background-color: transparent;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.cart-actions button:hover {
  color: #bd2130;
}

.cart-actions button i {
  margin-right: 5px;
}

.cart-summary {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-top: 30px;
}

.cart-summary-title {
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cart-summary-row.total {
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.checkout-btn {
  background-color: var(--primary-color) !important;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.checkout-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.checkout-btn:active {
  transform: translateY(1px);
}

.continue-shopping {
  display: block;
  text-align: center;
  margin-top: 15px;
  color: var(--primary-color) !important;
  text-decoration: none;
}

.continue-shopping:hover {
  text-decoration: underline;
}

/* Стили для страницы оформления заказа */
.checkout-page {
  max-width: 1200px;
  margin: 30px auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 30px;
}

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

.checkout-form {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
}

.checkout-title {
  margin-top: 0;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.form-section {
  margin-bottom: 25px;
}

.form-section-title {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #333;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color) !important;
  outline: none;
}

.checkout-summary {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  position: sticky;
  top: 30px;
}

.checkout-summary-title {
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.checkout-products {
  margin-bottom: 20px;
  max-height: 300px;
  overflow-y: auto;
}

.checkout-product {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f1f1f1;
}

.checkout-product:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.checkout-product-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 15px;
}

.checkout-product-info {
  flex-grow: 1;
}

.checkout-product-info h4 {
  margin: 0 0 5px;
  font-size: 0.9rem;
}

.checkout-product-price {
  font-size: 0.9rem;
  color: #333;
}

.checkout-product-quantity {
  font-size: 0.8rem;
  color: #666;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.checkout-summary-row.total {
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.place-order-btn {
  background-color: var(--primary-color) !important;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.place-order-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.place-order-btn:active {
  transform: translateY(1px);
}

/* Стили для страницы подтверждения заказа */
.confirmation-page {
  max-width: 800px;
  margin: 50px auto;
  padding: 20px;
}

.confirmation-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 25px rgba(0, 0, 0, 0.1);
  padding: 40px;
  text-align: center;
}

.confirmation-icon {
  margin-bottom: 30px;
}

.confirmation-icon i {
  font-size: 5rem;
  color: var(--primary-color) !important;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.confirmation-title {
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
}

.confirmation-message {
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
}

.order-details {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 6px;
  margin: 25px 0;
  display: inline-block;
}

.order-details h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #333;
}

.order-details p {
  margin: 5px 0;
  color: #555;
}

.confirmation-actions {
  margin-bottom: 30px;
}

.confirmation-actions .btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.confirmation-actions .btn:first-child {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.confirmation-actions .btn:first-child:hover {
  background: linear-gradient(135deg, var(--primary-color), #009ea6);
  transform: translateY(-2px);
}

.confirmation-actions .btn.secondary {
  background-color: #f8f9fa;
  color: #333;
  border: 1px solid #ddd;
}

.confirmation-actions .btn.secondary:hover {
  background-color: #e2e6ea;
  transform: translateY(-2px);
}

.redirect-message {
  color: #888;
  font-size: 0.9rem;
  margin-top: 20px;
}

.redirect-message #countdown {
  font-weight: bold;
  color: var(--primary-color) !important;
}

/* Стили для категорий в каталоге */
.sidebar {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--card-shadow);
  width: 250px;
  margin-right: 30px;
  transition: all var(--transition-fast);
  position: sticky;
  top: 100px;
}

.mobile-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  padding: 10px 15px;
  background-color: var(--primary-color) !important;
  color: white;
  border-radius: 8px;
  margin-bottom: 15px;
  justify-content: space-between;
  text-align: center;
  position: relative;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.mobile-toggle::after {
  content: "\f107"; /* fa-angle-down */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
  font-size: 20px;
  color: white;
}

.mobile-toggle.active::after {
  transform: translateY(-50%) rotate(180deg);
}

.mobile-toggle:hover, 
.mobile-toggle:active {
  background-color: var(--secondary-color);
}

.category-item {
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 8px 0;
  position: relative;
}

.category-link {
  flex-grow: 1;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.category-link:hover, 
.category-link.active {
  color: var(--primary-color) !important;
}

.toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: transform var(--transition-fast);
  padding: 5px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.05);
  margin-left: 5px;
}

.toggle-icon i {
  transition: transform 0.3s ease;
  font-size: 14px;
  color: #666;
}

.toggle-icon.open i {
  transform: rotate(180deg);
  color: var(--primary-color) !important;
}

.toggle-icon:hover {
  background-color: rgba(0, 206, 209, 0.1);
}

.subcategory-list {
  list-style: none;
  padding-left: 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.subcategory-list.open {
  max-height: 300px;
  margin-bottom: 10px;
}

.subcategory-list li {
  margin-bottom: 8px;
}

.subcategory-list a {
  text-decoration: none;
  color: #666;
  font-size: 14px;
  transition: color var(--transition-fast);
  display: block;
  padding: 5px 0;
}

.subcategory-list a:hover {
  color: var(--primary-color) !important;
}

/* Темная тема для категорий */
body.dark-theme .category-item {
    border-bottom-color: #444;
}

body.dark-theme .toggle-icon {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .toggle-icon i {
    color: #ccc;
}

body.dark-theme .subcategory-list a {
    color: #aaa;
}

body.dark-theme .subcategory-list a:hover {
    color: var(--primary-color) !important;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }
    
    .mobile-toggle:hover {
        background-color: var(--secondary-color);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    }
    
    .mobile-toggle:active {
        transform: translateY(2px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .category-header {
        padding: 10px 0;
    }
    
    .category-link {
        font-size: 16px;
        padding: 8px 0;
    }
    
    .toggle-icon {
        width: 36px;
        height: 36px;
    }
    
    .toggle-icon i {
        font-size: 16px;
    }
    
    .subcategory-list a {
        padding: 8px 0;
        font-size: 15px;
    }
    
    /* Плавная анимация раскрытия */
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes slideUp {
        from {
            opacity: 1;
            transform: translateY(0);
        }
        to {
            opacity: 0;
            transform: translateY(-10px);
        }
    }
    
    .category-list.open {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }
    
    .subcategory-list.open {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }
}

/* Дополнительные стили для активной категории */
.category-link.active,
.subcategory-list a.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.category-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color) !important;
}

/* Стили для плавных переходов при фильтрации */
.category-section {
    transition: opacity 0.3s ease;
}

/* Анимация появления товаров */
.product-card {
    animation: fadeInProduct 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

/* Задержка анимации для каждого товара */
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

/* Активная ссылка в мобильном режиме */
@media (max-width: 768px) {
    .category-link.active,
    .subcategory-list a.active {
        background-color: rgba(0, 206, 209, 0.1);
        transform: translateX(5px);
    }
} 

