/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Header */
.header {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo h1 {
    font-size: 32px;
    color: #28a745;
    font-weight: bold;
}

.logo a {
    text-decoration: none;
}

.search-bar {
    flex: 1;
    max-width: 700px;
}

.search-bar form {
    display: flex;
    align-items: stretch;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid #28a745;
    margin: 0;
    padding: 0;
    min-height: 45px;
    height: auto;
}

.search-bar form > * {
    align-self: stretch;
}

.catalog-dropdown {
    position: relative;
    display: flex;
    align-items: stretch;
}

.catalog-dropdown a {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.catalog-btn {
    padding: 12px 20px;
    background: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    transition: background 0.3s;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    margin: 0;
    line-height: 1.5;
}

.catalog-btn:hover {
    background: #218838;
}

.catalog-btn.active {
    background: #218838;
}

.catalog-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 250px;
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.catalog-menu.show {
    display: block;
    animation: fadeInDown 0.3s ease-out;
}

.catalog-menu-list {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.catalog-menu-list li {
    margin: 0;
    padding: 0;
}

.catalog-menu-list a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.catalog-menu-list a:hover {
    background: #e8f5e9;
    color: #28a745;
    padding-left: 25px;
}

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

.search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    font-size: 14px;
    outline: none;
    min-height: 100%;
    box-sizing: border-box;
    margin: 0;
    line-height: 1.5;
    vertical-align: top;
    align-self: stretch;
}

.search-btn {
    padding: 12px 20px;
    background: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    align-items: center;
    height: 100%;
    width: auto;
    box-sizing: border-box;
    margin: 0;
    line-height: 1.5;
    flex-shrink: 0;
}

.search-btn:hover {
    background: #218838;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-switcher {
    margin: 0;
    padding: 0;
    position: relative;
}

.language-select-wrapper {
    position: relative;
    display: inline-block;
}

.language-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #28a745;
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}

.language-select-wrapper:hover .language-icon {
    color: #218838;
}

.language-select {
    padding: 10px 40px 10px 42px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2328a745' stroke-width='2.5' 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;
    min-width: 110px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

/* Гарантируем, что размер шрифта кнопки смены языка всегда остается большим */
@media (max-width: 768px) {
    .language-select {
        font-size: 14px !important;
        padding: 10px 40px 10px 42px !important;
        min-width: 110px !important;
    }
    
    .language-icon {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .language-select {
        font-size: 14px !important;
        padding: 10px 40px 10px 42px !important;
        min-width: 110px !important;
    }
    
    .language-icon {
        font-size: 16px !important;
    }
}

.language-select:hover {
    border-color: #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #e8f5e9 100%);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.2);
}

.language-select:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.25), 0 4px 16px rgba(40, 167, 69, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #e8f5e9 100%);
}

.language-select:active {
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.language-select option {
    padding: 12px 15px;
    background: white;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.language-select option:hover,
.language-select option:checked {
    background: #e8f5e9;
    color: #28a745;
}

.region-switcher {
    margin: 0;
    padding: 0;
    position: relative;
}

.region-select-wrapper {
    position: relative;
    display: inline-block;
}

.region-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #28a745;
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}

.region-select-wrapper:hover .region-icon {
    color: #218838;
}

.region-select {
    padding: 10px 40px 10px 42px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2328a745' stroke-width='2.5' 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;
    min-width: 140px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.region-select:hover {
    border-color: #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #e8f5e9 100%);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.2);
}

.region-select:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.25), 0 4px 16px rgba(40, 167, 69, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #e8f5e9 100%);
}

.region-select:active {
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.region-select option {
    padding: 12px 15px;
    background: white;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.region-select option:hover,
.region-select option:checked {
    background: #e8f5e9;
    color: #28a745;
}

@media (max-width: 768px) {
    .region-select {
        font-size: 14px !important;
        padding: 10px 40px 10px 42px !important;
        min-width: 140px !important;
    }
    
    .region-icon {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .region-select {
        font-size: 14px !important;
        padding: 10px 40px 10px 42px !important;
        min-width: 140px !important;
    }
    
    .region-icon {
        font-size: 16px !important;
    }
}

.header-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 12px;
    position: relative;
    padding: 5px 10px;
    transition: color 0.3s;
}

.header-action-item:hover {
    color: #28a745;
}

.header-action-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.header-action-item span:not(.cart-count) {
    font-size: 11px;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -2px;
    right: 5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    padding: 0 4px;
    box-sizing: border-box;
}

.cart-count:empty {
    display: none;
}

/* Navigation */
.main-nav {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 15px;
    border-radius: 4px;
    display: block;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: #e8f5e9;
    color: #28a745;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero-content h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: #28a745;
    color: white;
}

.btn-primary:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-secondary {
    background: #666;
    color: white;
}

.btn-secondary:hover {
    background: #555;
}

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

.btn-block {
    display: block;
    width: 100%;
}

/* Section Titles */
.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

/* Categories */
.categories-section {
    padding: 40px 0;
    background: white;
    margin-bottom: 40px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.category-card {
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.category-card img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}

.category-placeholder {
    width: 100%;
    height: 100px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border-radius: 4px;
}

.category-placeholder i {
    font-size: 40px;
    color: #999;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 48px;
}

.product-placeholder-large {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 64px;
}

.product-placeholder-large p {
    margin-top: 15px;
    font-size: 16px;
    color: #666;
}

.cart-item-placeholder {
    width: 100%;
    height: 100px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 32px;
    border-radius: 4px;
}

.category-card h3 {
    font-size: 14px;
    font-weight: 500;
}

.categories-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.category-card-large {
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s;
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.category-card-large img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* Products Grid */
.products-section {
    padding: 40px 0;
    background: white;
    margin-bottom: 40px;
}

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

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.product-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f9f9f9;
}

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

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

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
    height: 40px;
    overflow: hidden;
}

.product-stock {
    font-size: 0.85em;
    color: #666;
    font-weight: normal;
    margin-left: 4px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    font-size: 12px;
}

.stars {
    color: #ffa500;
    font-size: 14px;
}

.rating-value {
    font-weight: 600;
    color: #333;
    font-size: 12px;
}

.rating-text {
    color: #999;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.current-price {
    font-size: 20px;
    font-weight: bold;
    color: #28a745;
}

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

.btn-add-cart {
    width: 100%;
    padding: 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 0 0 8px 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-add-cart:hover {
    background: #218838;
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 0;
    background: white;
    margin-bottom: 40px;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.product-detail-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.main-image {
    width: 100%;
    max-width: 100%;
    min-height: 300px;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: visible;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.main-image img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    box-sizing: border-box;
    margin: 0 auto;
}

/* Основное изображение товара - центрирование и полное отображение */
#main-product-image {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    max-height: 70vh !important;
    object-fit: contain !important;
    display: block !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
}

/* Адаптивное масштабирование для больших экранов */
@media (min-width: 1400px) {
    .main-image img,
    #main-product-image {
        max-height: 70vh !important;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .main-image img,
    #main-product-image {
        max-height: 65vh !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .main-image img,
    #main-product-image {
        max-height: 60vh !important;
    }
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: auto;
    padding: 5px 0;
    -webkit-overflow-scrolling: touch;
}

.thumbnail {
    width: 80px;
    height: 80px;
    min-width: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s;
    flex-shrink: 0;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #28a745;
}

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

.product-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
}

.product-rating-large {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 16px;
}

.product-rating-large .stars {
    color: #ffa500;
    font-size: 18px;
}

.product-rating-large .rating-value {
    font-weight: bold;
    color: #28a745;
    font-size: 16px;
}

.product-price-large {
    margin-bottom: 20px;
}

.product-price-large .current-price {
    font-size: 36px;
}

.product-price-large .old-price {
    font-size: 24px;
    margin-left: 15px;
}

.discount-text {
    display: block;
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

.product-stock {
    margin-bottom: 20px;
    font-size: 16px;
}

.in-stock {
    color: #28a745;
}

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

.product-description {
    margin-bottom: 30px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-description h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.product-description p {
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    padding: 10px 15px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
}

.qty-btn:hover {
    background: #e0e0e0;
}

.quantity-selector input {
    width: 60px;
    padding: 10px;
    border: none;
    text-align: center;
    font-size: 16px;
}

.add-to-cart-btn {
    flex: 1;
    min-width: 200px;
}

/* Адаптивность для страницы продукта - большие экраны */
@media (min-width: 1400px) {
    .product-detail {
        gap: 50px;
        padding: 50px 0;
    }
    
    .product-title {
        font-size: 36px;
    }
    
    .product-price-large .current-price {
        font-size: 42px;
    }
}

/* Планшеты в альбомной ориентации */
@media (min-width: 992px) and (max-width: 1199px) {
    .product-detail {
        gap: 30px;
        padding: 30px 0;
    }
    
    .product-title {
        font-size: 28px;
    }
    
    .product-price-large .current-price {
        font-size: 32px;
    }
    
    .product-price-large .old-price {
        font-size: 20px;
    }
    
    .thumbnail {
        width: 70px;
        height: 70px;
        min-width: 70px;
    }
}

/* Cart */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 40px 0;
}

.cart-items {
    background: white;
    border-radius: 8px;
    padding: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 2fr 150px 120px 50px;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.cart-item:last-child {
    border-bottom: none;
}

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

.cart-item-info h3 {
    margin-bottom: 5px;
}

.cart-item-info a {
    color: #333;
    text-decoration: none;
}

.cart-item-info a:hover {
    color: #28a745;
}

.cart-item-price {
    color: #28a745;
    font-weight: bold;
    font-size: 18px;
}

.cart-item-quantity {
    display: flex;
    align-items: stretch;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    max-width: 150px;
}

.cart-item-quantity .qty-btn {
    padding: 5px 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 31px;
}

.cart-item-quantity .qty-btn:last-child {
    margin-left: auto;
}

.cart-item-quantity input {
    width: 87px;
    padding: 5px;
    border: none;
    text-align: center;
    flex-shrink: 0;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.cart-item-total {
    font-weight: bold;
    font-size: 18px;
    color: #333;
}

.btn-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
}

.btn-remove:hover {
    color: #c82333;
}

.cart-summary {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.summary-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.summary-card h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 16px;
}

.total-price {
    font-size: 24px;
    font-weight: bold;
    color: #28a745;
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 8px;
}

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

.empty-cart h2 {
    margin-bottom: 10px;
    color: #333;
}

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

/* Checkout */
.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 40px 0;
}

.checkout-form-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
}

.checkout-form h2 {
    margin-bottom: 25px;
    font-size: 24px;
}

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

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

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

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #28a745;
}

.checkout-summary {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    font-size: 18px;
    font-weight: bold;
}

/* Order Success */
.order-success {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 8px;
    margin: 40px 0;
}

.success-icon {
    font-size: 80px;
    color: #28a745;
    margin-bottom: 20px;
}

.order-success h1 {
    margin-bottom: 15px;
    color: #333;
}

.order-number {
    font-size: 20px;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 15px;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Products Layout */
.products-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    padding: 40px 0;
}

.products-sidebar {
    background: white;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-section {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.filter-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #28a745;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h3 {
    margin-bottom: 18px;
    font-size: 18px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.filter-section h3::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 2px;
}

.category-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.category-sidebar-list a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 14px;
}

.category-sidebar-list a:hover {
    background: #e8f5e9;
    color: #28a745;
    padding-left: 20px;
}

.category-sidebar-list a.active {
    background: #28a745;
    color: white;
    font-weight: 500;
}

.category-sidebar-list a.active:hover {
    background: #218838;
    padding-left: 15px;
}

/* Стили для форм фильтрации и сортировки */
.filter-form,
.sort-form,
.price-filter-form {
    width: 100%;
}

.filter-form select,
.sort-form select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2328a745' stroke-width='2.5' 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;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.filter-form select:hover,
.sort-form select:hover {
    border-color: #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #e8f5e9 100%);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.15);
    transform: translateY(-1px);
}

.filter-form select:focus,
.sort-form select:focus {
    outline: none;
    border-color: #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #e8f5e9 100%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2328a745' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1), 0 4px 12px rgba(40, 167, 69, 0.2);
}

.filter-form select:active,
.sort-form select:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.15);
}

/* Стилизация опций в выпадающем списке */
.filter-form select option,
.sort-form select option {
    padding: 14px 16px;
    background: #ffffff;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.6;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

/* Первая опция (заголовок) */
.filter-form select option:first-child,
.sort-form select option:first-child {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #666;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
}

/* Выбранная опция */
.filter-form select option:checked,
.sort-form select option:checked {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

/* Опции при наведении (работает в некоторых браузерах) */
.filter-form select option:hover {
    background: linear-gradient(135deg, #e8f5e9 0%, #d4edda 100%);
    color: #28a745;
    padding-left: 20px;
}

/* Стилизация для открытого select */
.filter-form select:focus option:checked,
.sort-form select:focus option:checked {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff;
}

/* Дополнительные стили для улучшения визуального восприятия */
.filter-form select::-ms-expand,
.sort-form select::-ms-expand {
    display: none;
}

/* Стилизация для WebKit браузеров */
.filter-form select::-webkit-scrollbar,
.sort-form select::-webkit-scrollbar {
    width: 8px;
}

.filter-form select::-webkit-scrollbar-track,
.sort-form select::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.filter-form select::-webkit-scrollbar-thumb,
.sort-form select::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 4px;
}

.filter-form select::-webkit-scrollbar-thumb:hover,
.sort-form select::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea080 100%);
}

.products-main {
    background: white;
    border-radius: 8px;
    padding: 20px;
}

.page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.page-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

/* Messages */
.messages {
    padding: 15px;
    margin: 20px 0;
}

.message {
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

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

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 10px;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

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

.social-links a {
    font-size: 24px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Related Products */
.related-products {
    padding: 40px 0;
    background: white;
    border-radius: 8px;
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .related-products {
        padding: 20px 0;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .related-products {
        padding: 15px 0;
        margin-top: 15px;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .main-image img,
    #main-product-image {
        max-height: 70vh !important;
    }
}

@media (max-width: 992px) {
    .header-content {
        gap: 15px;
    }
    
    .search-bar {
        max-width: 500px;
    }
    
    .catalog-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .catalog-btn i {
        display: none;
    }
    
    .nav-menu {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .nav-menu a {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .main-image img,
    #main-product-image {
        max-height: 60vh !important;
    }
}

@media (max-width: 768px) {
    /* Header */
    .header {
        padding: 10px 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .search-bar {
        max-width: 100%;
        width: 100%;
    }
    
    .search-bar form {
        flex-wrap: nowrap;
    }
    
    .catalog-btn {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .catalog-btn span {
        display: none;
    }
    
    .catalog-menu {
        min-width: 200px;
        max-height: 400px;
    }
    
    .catalog-menu-list a {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .search-bar input {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .search-btn {
        padding: 10px 15px;
    }
    
    .header-actions {
        gap: 10px;
        width: 100%;
        justify-content: space-around;
    }
    
    .header-action-item {
        font-size: 11px;
        padding: 5px;
    }
    
    .header-action-item i {
        font-size: 18px;
    }
    
    .header-action-item span:not(.cart-count) {
        font-size: 10px;
    }
    
    /* Navigation */
    .main-nav {
        padding: 8px 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .main-nav::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    
    .main-nav .container {
        padding: 0 10px;
    }
    
    .nav-menu {
        display: flex;
        list-style: none;
        gap: 10px;
        padding: 0 5px;
        margin: 0;
        min-width: max-content;
        flex-wrap: nowrap;
    }
    
    .nav-menu li {
        flex-shrink: 0;
    }
    
    .nav-menu a {
        padding: 8px 12px;
        font-size: 13px;
        white-space: nowrap;
        display: block;
    }
    
    /* Hero Banner */
    .hero-banner {
        padding: 50px 0;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    /* Products */
    .product-detail {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
        margin: 0 10px 20px;
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
        box-sizing: border-box;
    }
    
    .product-detail-images {
        width: 100%;
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
    }
    
    .main-image {
        width: 100%;
        max-width: 100%;
        min-height: 250px;
        padding: 15px;
        box-sizing: border-box;
        overflow: visible;
    }
    
    .main-image img,
    #main-product-image {
        max-width: 100% !important;
        width: auto !important;
        max-height: 50vh !important;
        height: auto !important;
        object-fit: contain !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
    }
    
    .thumbnail-images {
        gap: 8px;
        justify-content: flex-start;
        padding: 10px 0;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }
    
    .product-detail-info {
        padding: 15px;
    }
    
    .product-title {
        font-size: 24px;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .product-rating-large {
        font-size: 14px;
        margin-bottom: 15px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .product-rating-large .stars {
        font-size: 16px;
    }
    
    .product-price-large {
        margin-bottom: 15px;
    }
    
    .product-price-large .current-price {
        font-size: 28px;
        display: block;
    }
    
    .product-price-large .old-price {
        font-size: 18px;
        margin-left: 0;
        margin-top: 5px;
        display: block;
    }
    
    .discount-text {
        font-size: 13px;
        margin-top: 5px;
    }
    
    .product-stock {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .product-description {
        margin-bottom: 20px;
    }
    
    .product-description h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .product-description p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: center;
    }
    
    .quantity-selector input {
        width: 80px;
        font-size: 16px;
    }
    
    .add-to-cart-btn {
        width: 100%;
        min-width: auto;
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .product-attributes {
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .product-attributes h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .attributes-table {
        font-size: 14px;
    }
    
    .attr-name,
    .attr-value {
        padding: 10px;
        font-size: 14px;
    }
    
    .related-products {
        margin-top: 30px;
        padding: 20px 0;
    }
    
    .section-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .products-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .products-sidebar {
        position: static;
        margin-bottom: 20px;
    }
    
    .category-sidebar-list a {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-name {
        font-size: 13px;
        height: 36px;
    }
    
    .current-price {
        font-size: 18px;
    }
    
    /* Categories */
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
    }
    
    .category-card {
        padding: 15px;
    }
    
    .category-card img,
    .category-placeholder {
        height: 80px;
    }
    
    .category-card h3 {
        font-size: 12px;
    }
    
    /* Cart */
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
        padding: 15px 0;
    }
    
    .cart-item-image {
        justify-self: center;
    }
    
    .cart-item-image img,
    .cart-item-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .cart-item-quantity {
        justify-self: center;
    }
    
    .cart-item-remove {
        justify-self: center;
    }
    
    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkout-form-section {
        padding: 20px;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .catalog-btn {
        padding: 8px 10px;
        min-width: 40px;
    }
    
    .search-bar input {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .search-btn {
        padding: 8px 12px;
    }
    
    .header-action-item span:not(.cart-count) {
        display: none;
    }
    
    .nav-menu {
        gap: 8px;
    }
    
    .nav-menu a {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .hero-content h2 {
        font-size: 22px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 10px;
    }
    
    .category-card {
        padding: 10px;
    }
    
    .category-card img,
    .category-placeholder {
        height: 60px;
    }
    
    .category-card h3 {
        font-size: 11px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .product-price-large .current-price {
        font-size: 24px;
    }
    
    .main-image {
        width: 100%;
        max-width: 100%;
        min-height: 200px;
        padding: 10px;
        overflow: visible;
        box-sizing: border-box;
    }
    
    .main-image img,
    #main-product-image {
        max-width: 100% !important;
        width: auto !important;
        max-height: 40vh !important;
        height: auto !important;
        object-fit: contain !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
    }
    
    .product-detail {
        padding: 15px;
        margin: 0 5px 15px;
        width: calc(100% - 10px);
        max-width: calc(100% - 10px);
    }
    
    .product-detail-images {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .thumbnail-images {
        gap: 6px;
        padding: 8px 0;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
    
    .product-detail-info {
        padding: 12px;
    }
    
    .product-title {
        font-size: 20px;
        margin-bottom: 10px;
        line-height: 1.2;
    }
    
    .product-rating-large {
        font-size: 13px;
        margin-bottom: 12px;
        gap: 6px;
    }
    
    .product-rating-large .stars {
        font-size: 14px;
    }
    
    .product-rating-large .rating-value {
        font-size: 14px;
    }
    
    .product-price-large .current-price {
        font-size: 24px;
    }
    
    .product-price-large .old-price {
        font-size: 16px;
    }
    
    .discount-text {
        font-size: 12px;
    }
    
    .product-stock {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .product-description {
        margin-bottom: 15px;
    }
    
    .product-description h3 {
        font-size: 15px;
    }
    
    .product-description p {
        font-size: 13px;
    }
    
    .product-actions {
        gap: 10px;
    }
    
    .quantity-selector input {
        width: 70px;
        font-size: 15px;
        padding: 8px;
    }
    
    .qty-btn {
        padding: 8px 12px;
        font-size: 16px;
    }
    
    .add-to-cart-btn {
        padding: 12px 18px;
        font-size: 15px;
    }
    
    .product-attributes h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .attributes-table {
        font-size: 13px;
    }
    
    .attr-name,
    .attr-value {
        padding: 8px;
        font-size: 13px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .products-sidebar {
        padding: 15px;
    }
    
    .filter-section {
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .filter-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .filter-form select,
    .sort-form select {
        padding: 10px 36px 10px 14px;
        font-size: 13px;
    }
    
    .price-inputs input {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .btn-filter {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .category-sidebar-list a {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
    .product-detail {
        padding: 10px;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .product-title {
        font-size: 18px;
    }
    
    .product-price-large .current-price {
        font-size: 22px;
    }
    
    .product-price-large .old-price {
        font-size: 14px;
    }
    
    .thumbnail {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }
    
    .quantity-selector input {
        width: 60px;
        font-size: 14px;
    }
    
    .add-to-cart-btn {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .attributes-table {
        font-size: 12px;
        display: block;
    }
    
    .attributes-table tr {
        display: block;
        margin-bottom: 10px;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 10px;
    }
    
    .attributes-table tr:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .attr-name,
    .attr-value {
        display: block;
        width: 100%;
        padding: 8px 0;
        background: transparent;
    }
    
    .attr-name {
        font-weight: 600;
        margin-bottom: 4px;
    }
}

/* Banner Slider */
.banner-section {
    margin: 20px 0;
}

.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 400px;
}

.banner-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: none;
}

.banner-slide:first-child {
    display: block;
}

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

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 40px;
}

.banner-content h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.banner-content p {
    font-size: 18px;
}

/* Advantages Section */
.advantages-section {
    padding: 60px 0;
    background: white;
    margin: 40px 0;
}

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

.advantage-card {
    text-align: center;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.advantage-icon {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.advantage-card p {
    color: #666;
    line-height: 1.6;
}

/* Sponsors Section */
.sponsors-section {
    padding: 60px 0;
    background: #f9f9f9;
    margin: 40px 0;
}

.sponsors-carousel {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.sponsors-carousel::-webkit-scrollbar {
    height: 8px;
}

.sponsors-carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.sponsors-carousel::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 4px;
}

.sponsor-item {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s;
}

.sponsor-item:hover {
    transform: scale(1.05);
}

.sponsor-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
    background: white;
    margin: 40px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.faq-question h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
    flex: 1;
}

.faq-question i {
    transition: transform 0.3s;
    color: #28a745;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.faq-more {
    text-align: center;
    margin-top: 30px;
}

/* FAQ Page */
.faq-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin-top: 30px;
}

.faq-sidebar {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.faq-categories {
    list-style: none;
}

.faq-categories li {
    margin-bottom: 10px;
}

.faq-categories a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.faq-categories a:hover,
.faq-categories a.active {
    background: #28a745;
    color: white;
}

.faq-main {
    min-height: 400px;
}

.no-faqs {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

/* About Page */
.about-hero {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 80px 0 60px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.about-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: hidden;
}

.about-hero-logo {
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease-out;
    display: inline-block;
    position: relative;
}

.about-hero-logo::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-hero-logo:hover::before {
    opacity: 1;
}

.about-hero-logo img {
    max-width: 200px;
    max-height: 150px;
    width: auto;
    height: auto;
    border-radius: 16px;
    /* box-shadow:  */
        /* 0 15px 35px rgba(0, 0, 0, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2),
        inset 0 0 0 4px rgba(255, 255, 255, 0.1);
    background: white; */
    /* padding: 15px; */
    object-fit: contain;
    display: block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* border: 3px solid rgba(255, 255, 255, 0.2); */
}

.about-hero-logo:hover img {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 0 0 4px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.about-hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.about-hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.about-main-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.about-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.15);
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.about-card-title {
    font-size: 26px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.about-card-content {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
    text-align: center;
}

.about-card-content p {
    margin-bottom: 15px;
}

.about-card-content p:last-child {
    margin-bottom: 0;
}

.about-contact-section {
    margin-bottom: 60px;
    padding: 50px 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

.about-contact-card {
    text-align: center;
    padding: 30px 20px;
    background: #f9f9f9;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.about-contact-card:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
}

.about-contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
}

.about-contact-card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.about-contact-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

.about-contact-card a {
    color: #28a745;
    text-decoration: none;
    transition: color 0.3s;
}

.about-contact-card a:hover {
    color: #218838;
    text-decoration: underline;
}

.about-contact-city {
    font-weight: 500;
    color: #333;
}

.about-social-section {
    text-align: center;
    padding: 50px 0;
    margin-bottom: 40px;
}

.about-social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.about-social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    gap: 10px;
}

.about-social-link i {
    font-size: 36px;
    color: #28a745;
    transition: all 0.3s ease;
}

.about-social-link span {
    font-size: 14px;
    font-weight: 500;
}

.about-social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.2);
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.about-social-link:hover i {
    color: white;
    transform: scale(1.1);
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .about-hero {
        padding: 60px 0 40px;
    }

    .about-hero-title {
        font-size: 36px;
    }

    .about-hero-subtitle {
        font-size: 18px;
    }

    .about-hero-logo img {
        max-width: 150px;
        max-height: 100px;
        padding: 12px;
        border-radius: 12px;
    }
    
    .about-hero-logo::before {
        top: -6px;
        left: -6px;
        right: -6px;
        bottom: -6px;
        border-radius: 16px;
    }

    .about-main-section {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .about-card {
        padding: 30px 20px;
    }

    .about-card-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .about-card-title {
        font-size: 22px;
    }

    .about-contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }

    .about-social-links {
        gap: 15px;
    }

    .about-social-link {
        width: 100px;
        height: 100px;
    }

    .about-social-link i {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .about-hero-title {
        font-size: 28px;
    }

    .about-hero-subtitle {
        font-size: 16px;
    }
    
    .about-hero-logo img {
        max-width: 120px;
        max-height: 80px;
        padding: 10px;
        border-radius: 10px;
    }
    
    .about-hero-logo::before {
        top: -5px;
        left: -5px;
        right: -5px;
        bottom: -5px;
        border-radius: 14px;
    }

    .about-card {
        padding: 25px 15px;
    }

    .about-social-link {
        width: 80px;
        height: 80px;
    }

    .about-social-link i {
        font-size: 24px;
    }

    .about-social-link span {
        font-size: 12px;
    }
}

/* Contact Page */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-info {
    background: white;
    padding: 30px;
    border-radius: 8px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 24px;
    color: #28a745;
    margin-top: 5px;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.contact-item p {
    color: #666;
    margin: 0;
}

.contact-item a {
    color: #28a745;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.social-links-contact {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links-contact a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #28a745;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s;
}

.social-links-contact a:hover {
    background: #218838;
}

.contact-form-wrapper {
    background: white;
    padding: 30px;
    border-radius: 8px;
}

.contact-form {
    margin-top: 20px;
}

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

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

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.map-container {
    margin-top: 40px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.map-container h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 28px;
    font-weight: 600;
}

.map-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-wrapper iframe,
.map-wrapper #yandex-map {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
    border-radius: 8px;
}

.map-link-wrapper {
    margin-top: 15px;
    text-align: center;
}

.map-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.map-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #218838 0%, #1ea080 100%);
}

.map-link-btn i {
    font-size: 14px;
}

@media (max-width: 768px) {
    .map-container {
        padding: 20px;
        margin-top: 30px;
    }
    
    .map-container h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .map-wrapper iframe,
    .map-wrapper #yandex-map {
        height: 300px;
    }
    
    .map-link-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .map-wrapper iframe,
    .map-wrapper #yandex-map {
        height: 250px;
    }
    
    .map-link-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Product Attributes */
.product-attributes {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.product-attributes h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.attributes-table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}

.attributes-table tr {
    border-bottom: 1px solid #e0e0e0;
    display: table-row;
}

.attributes-table tr:last-child {
    border-bottom: none;
}

.attr-name {
    padding: 12px;
    font-weight: 500;
    color: #666;
    width: 40%;
    background: #f9f9f9;
    display: table-cell;
}

.attr-value {
    padding: 12px;
    color: #333;
    display: table-cell;
}

/* Адаптивность таблицы характеристик для мобильных */
@media (max-width: 768px) {
    .attributes-table {
        display: block;
    }
    
    .attributes-table tr {
        display: block;
        margin-bottom: 12px;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 12px;
    }
    
    .attributes-table tr:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .attr-name,
    .attr-value {
        display: block;
        width: 100%;
        padding: 8px 0;
    }
    
    .attr-name {
        background: transparent;
        font-weight: 600;
        margin-bottom: 4px;
        color: #333;
    }
}

/* Price Filter */
.price-filter-form {
    margin-top: 10px;
}

.price-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-inputs input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.price-inputs input::placeholder {
    color: #999;
    font-weight: 400;
}

.price-inputs input:hover {
    border-color: #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #e8f5e9 100%);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.15);
}

.price-inputs input:focus {
    outline: none;
    border-color: #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #e8f5e9 100%);
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1), 0 4px 12px rgba(40, 167, 69, 0.2);
}

.btn-filter {
    padding: 12px 24px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    margin-top: 4px;
}

.btn-filter:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea080 100%);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
}

.btn-filter:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .banner-content h2 {
        font-size: 24px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .faq-layout {
        grid-template-columns: 1fr;
    }
    
    .faq-sidebar {
        position: static;
    }
}

