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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

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

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Для хедера убираем правый отступ, чтобы гамбургер был прижат к правой границе */
    .header .container {
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    /* Для хедера убираем правый отступ, чтобы гамбургер был прижат к правой границе */
    .header .container {
        padding-right: 0;
    }
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

/* Мобильная кнопка меню (гамбургер) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    margin-left: auto;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
    display: block;
    position: relative;
}

/* Для ровного крестика: используем точное позиционирование */
/* Центр кнопки на 12px (24px / 2 = 12px) */
.mobile-menu-toggle.active span:nth-child(1) {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%) rotate(45deg);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%) rotate(-45deg);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.header-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.icon-link {
    color: var(--text-color);
    font-size: 1.2rem;
    position: relative;
    transition: color 0.3s;
    text-decoration: none;
}

.icon-link:hover {
    color: var(--secondary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    padding: 0;
    margin: 0;
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.language-btn {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: all 0.3s;
    font-family: inherit;
}

.language-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.language-btn i {
    font-size: 0.9rem;
}

.language-btn .fa-chevron-down {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.language-switcher.active .language-btn .fa-chevron-down {
    transform: rotate(180deg);
}

.current-lang {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--white);
    border-radius: 5px;
    box-shadow: var(--shadow-hover);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
    overflow: hidden;
}

.language-switcher.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.3s;
    font-size: 0.9rem;
}

.lang-option:hover {
    background: var(--light-bg);
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Заглушка изображения - показывается только если нет изображения от пользователя */
.hero:not([style*="background-image"])::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?w=1920') center/cover;
    opacity: 0.2;
    z-index: 1;
}

/* Если есть inline background-image от пользователя, скрываем заглушку и добавляем обрезку */
.hero[style*="background-image"] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero[style*="background-image"]::before {
    display: none;
}

/* Добавляем затемнение для лучшей читаемости текста поверх изображения */
.hero[style*="background-image"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s 0.2s both;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    text-align: center;
    font-family: inherit;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    animation: fadeInUp 1s 0.4s both;
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-add-cart {
    background: var(--primary-color);
    color: var(--white);
    width: 100%;
    margin-top: 10px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-add-cart:hover {
    background: #1a252f;
    transform: translateY(-2px);
    color: var(--white);
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Categories */
.categories {
    padding: 5rem 0;
    background: var(--light-bg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.category-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-card h3 {
    padding: 1.5rem;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.3rem;
}

/* Products */
.products {
    padding: 5rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--light-bg);
}

.product-image a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay .btn {
    pointer-events: auto;
}

.product-overlay .btn {
    background: var(--white);
    color: var(--primary-color);
}

.product-overlay .btn:hover {
    background: rgba(110, 110, 110, 0.5);
    color: var(--white);
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    transition: color 0.3s;
}

.product-name:hover {
    color: var(--secondary-color);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Features */
.features {
    padding: 5rem 0;
    background: var(--primary-color);
    color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.feature-item {
    text-align: center;
}

.feature-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-item p {
    opacity: 0.9;
}

/* Partners Section */
.partners {
    padding: 5rem 0;
    background: #f8f9fa;
}

.partners-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.partner-item {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.partner-logo i {
    font-size: 3rem;
    color: var(--secondary-color);
    transition: color 0.3s;
}

.partner-item:hover .partner-logo i {
    color: var(--primary-color);
}

.partner-logo h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
}

/* Footer */
.footer {
    background: #1a252f;
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.footer-section ul li i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 0.75rem 0;
    }
    
    .header-content {
        flex-wrap: nowrap;
        gap: 1rem;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        order: 1;
        flex: 0 0 auto;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    /* Иконки в хедере - перед гамбургером, с отступом справа для гамбургера */
    .header-icons {
        order: 2;
        flex: 0 0 auto;
        margin-left: auto;
        gap: 1rem;
        margin-right: 50px; /* Отступ для гамбургера (30px ширина + 20px зазор) */
    }
    
    /* Показываем кнопку гамбургера - четко справа с небольшим отступом, не перекрывая иконки */
    .mobile-menu-toggle {
        display: flex;
        order: 3;
        margin-left: 0;
        margin-right: 0;
        flex-shrink: 0;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }
    
    /* Убираем правый отступ контейнера для прижатия гамбургера к краю */
    .header .container {
        padding-right: 0;
        position: relative;
    }
    
    /* Убеждаемся, что иконки не перекрываются гамбургером */
    .header-content {
        position: relative;
    }
    
    /* Скрываем меню по умолчанию на мобильных */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eee;
        margin-top: 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }
    
    /* Показываем меню когда активно */
    .nav-menu.active {
        display: flex;
        max-height: 500px;
        padding: 1rem 0;
    }
    
    .nav-menu a {
        padding: 1rem 20px;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        text-align: left;
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .nav-menu a:hover {
        background: var(--light-bg);
        color: var(--secondary-color);
    }
    
    /* Иконки в хедере */
    .header-icons {
        order: 3;
        gap: 1rem;
        margin-left: auto;
    }
    
    .icon-link {
        font-size: 1.1rem;
    }
    
    .language-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .language-btn .current-lang {
        min-width: 25px;
        font-size: 0.8rem;
    }
    
    .language-dropdown {
        right: 0;
        left: auto;
        top: calc(100% + 5px);
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .products-grid,
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

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

    .language-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .language-dropdown {
        right: 0;
        left: auto;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.5rem 0;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .header-icons {
        gap: 0.75rem;
        margin-right: 45px; /* Отступ для гамбургера на маленьких экранах */
    }
    
    .icon-link {
        font-size: 1rem;
    }
    
    .language-btn {
        padding: 5px 8px;
        font-size: 0.75rem;
        gap: 5px;
    }
    
    .language-btn i {
        font-size: 0.8rem;
    }
    
    .language-btn .current-lang {
        min-width: 20px;
        font-size: 0.7rem;
    }
    
    .mobile-menu-toggle {
        width: 28px;
        height: 22px;
        right: 10px;
    }
    
    .mobile-menu-toggle span {
        height: 2.5px;
    }
    
    /* Анимация крестика остается ровной благодаря абсолютному позиционированию */
    
    .nav-menu a {
        padding: 0.875rem 15px;
        font-size: 0.95rem;
    }

    .hero {
        height: 400px;
    }

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

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

/* Page Header */
.page-header {
    background: var(--light-bg);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.breadcrumbs {
    color: #666;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--accent-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Catalog Page */
.catalog-section {
    padding: 2rem 0 5rem;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: start;
}

.filters-sidebar {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filters-sidebar h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.filter-group {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-color);
}

.filter-checkbox {
    display: block;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.filter-checkbox input {
    margin-right: 0.5rem;
}

.price-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Убеждаемся, что стили применяются в контексте фильтров */
.filters-sidebar .price-btn,
.filters-sidebar button.price-btn,
.filter-group .price-btn,
.filter-group button.price-btn {
    padding: 10px 15px;
    border: 1px solid #ddd;
    background: var(--white);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    font-size: 0.9rem;
    width: 100%;
    color: var(--text-color);
    font-family: inherit;
    font-weight: 500;
    margin: 0;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    display: block;
}

.filters-sidebar .price-btn:hover,
.filters-sidebar button.price-btn:hover,
.filter-group .price-btn:hover,
.filter-group button.price-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background: #fff5f5;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filters-sidebar .price-btn.active,
.filters-sidebar button.price-btn.active,
.filter-group .price-btn.active,
.filter-group button.price-btn.active {
    border-color: var(--secondary-color);
    background: var(--secondary-color);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.filters-sidebar .price-btn:focus,
.filters-sidebar button.price-btn:focus,
.filter-group .price-btn:focus,
.filter-group button.price-btn:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.price-btn,
button.price-btn {
    padding: 10px 15px;
    border: 1px solid #ddd;
    background: var(--white);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    font-size: 0.9rem;
    width: 100%;
    color: var(--text-color);
    font-family: inherit;
    font-weight: 500;
    margin: 0;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    display: block;
}

.price-btn:hover,
button.price-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background: #fff5f5;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.price-btn.active,
button.price-btn.active {
    border-color: var(--secondary-color);
    background: var(--secondary-color);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.price-btn:focus,
button.price-btn:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.size-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: var(--white);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-color);
}

.size-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.size-btn.active {
    border-color: var(--secondary-color);
    background: var(--secondary-color);
    color: var(--white);
}

.color-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.color-option:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.color-option.active {
    border-color: var(--primary-color);
    border-width: 3px;
    transform: scale(1.15);
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.3);
}

.btn-secondary {
    background: #95a5a6;
    color: var(--white);
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-link {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
}

.page-link:hover,
.page-link.active {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Product Detail Page */
.product-details {
    padding: 2rem 0 5rem;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--light-bg);
}

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

.thumbnail-images {
    display: flex;
    gap: 1rem;
}

.thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--secondary-color);
}

.product-info-detail h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stars {
    color: #f39c12;
}

.rating-text {
    color: #666;
    font-size: 0.9rem;
}

.product-price-large {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.old-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
}

.discount {
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

.product-description {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.product-options {
    margin-bottom: 2rem;
}

.product-options h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.size-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.size-option {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: var(--white);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.size-option:hover,
.size-option.active {
    border-color: var(--secondary-color);
    background: var(--secondary-color);
    color: var(--white);
}

.size-guide-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.color-selector {
    display: flex;
    gap: 1rem;
}

.color-option-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.color-option-large:hover,
.color-option-large.active {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: var(--white);
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.qty-btn:hover {
    background: var(--light-bg);
    border-color: var(--secondary-color);
}

.qty-input {
    width: 60px;
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item-small {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 5px;
}

.feature-item-small i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.product-tabs {
    margin-top: 3rem;
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid #eee;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.3s;
    margin-bottom: -2px;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.tab-content {
    display: none;
    padding: 2rem 0;
}

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

.tab-content h3 {
    margin-bottom: 1rem;
}

.tab-content ul {
    margin-left: 2rem;
    margin-top: 1rem;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.specs-table td:first-child {
    font-weight: 600;
    width: 40%;
}

.review-item {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.review-date {
    color: #666;
    font-size: 0.9rem;
}

.related-products {
    padding: 3rem 0;
    background: var(--light-bg);
}

/* Cart Page */
.cart-section {
    padding: 2rem 0 5rem;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.empty-cart p {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.empty-cart .btn {
    margin-top: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 150px 1fr 150px 100px 50px;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    align-items: center;
}

.cart-item-image {
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 5px;
}

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

.cart-item-info h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.cart-item-details {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--secondary-color);
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.cart-item-remove:hover {
    color: var(--secondary-color);
}

.cart-summary {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.summary-row.total-row {
    border-bottom: 2px solid var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    margin-top: 1rem;
}

.promo-code {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.promo-code h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.promo-input-group {
    display: flex;
    gap: 0.5rem;
}

.promo-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* About Page */
.about-section {
    padding: 2rem 0 5rem;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.about-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-image {
    margin: 3rem 0;
    border-radius: 10px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-text h3 {
    margin: 2rem 0 1rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.about-features {
    margin: 2rem 0;
}

.about-feature-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.about-feature-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-top: 0.3rem;
}

.about-feature-item h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.values-list {
    margin: 1.5rem 0;
    line-height: 2;
}

.values-list li {
    margin-bottom: 0.5rem;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 10px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Contact Page */
.contact-section {
    padding: 2rem 0 5rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 10px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-hours {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.social-links-large {
    margin-top: 2rem;
}

.social-links-large h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-form-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form-container h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.map-section {
    margin-top: 3rem;
}

.map-section h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.map-placeholder {
    height: 400px;
    background: var(--light-bg);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
}

.yandex-map-container {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.map-address {
    margin-top: 1rem;
    color: var(--text-color);
}

/* Delivery Page */
.delivery-section {
    padding: 2rem 0 5rem;
}

.delivery-content {
    max-width: 900px;
    margin: 0 auto;
}

.delivery-content h2 {
    margin: 2rem 0 1.5rem;
    color: var(--primary-color);
    font-size: 2rem;
}

.delivery-method {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.delivery-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.delivery-info h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.delivery-info p {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.payment-method {
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.payment-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.payment-method h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.delivery-terms {
    margin-top: 2rem;
}

.term-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 5px;
}

.term-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.return-info {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 10px;
}

.return-info ul {
    margin: 1rem 0 1rem 2rem;
    line-height: 2;
}

/* Responsive for new pages */
@media (max-width: 768px) {
    .catalog-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .filters-sidebar {
        position: static;
        order: 2;
    }
    
    .products-container {
        order: 1;
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 100px 1fr;
        gap: 1rem;
    }

    .cart-item-quantity,
    .cart-item-total,
    .cart-item-remove {
        grid-column: 2;
    }

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

    .payment-methods {
        grid-template-columns: 1fr;
    }

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

