/* Custom CSS for Art Flame Store - Perfect Match Design */

/* Global Styles */
:root {
    --primary-color: #ff5722;  /* Оранжево-красный как на оригинале */
    --secondary-color: #6c757d;
    --dark-color: #2c2c2c;     /* Темно-серый для фона header */
    --light-color: #f8f9fa;
    --danger-color: #dc3545;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --gold-color: #ffa500;     /* Золотой/оранжевый для логотипа */
    --accent-color: #ff4500;   /* Оранжевый акцент */
    --header-bg: #2c2c2c;      /* Основной цвет header */
    --header-nav-bg: #1a1a1a;  /* Цвет навигации */
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}
/* Улучшения для мобильных устройств - прокрутка и touch */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    touch-action: manipulation;
}

body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
}

/* Улучшение для iOS Safari */
@supports (-webkit-touch-callout: none) {
    body {
        min-height: -webkit-fill-available;
    }
    
    html {
        height: -webkit-fill-available;
    }
}


/* Header Styles - Exact Match */
.navbar-brand {
    font-family: 'Dancing Script', cursive;
    font-weight: bold;
}

/* Logo Styles - Image Version */
.logo-image {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(1.1) contrast(1.1);
}

.logo-image:hover {
    transform: scale(1.05);
    filter: brightness(1.2) contrast(1.2);
}

.logo-image-footer {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-image-footer:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* Legacy text logo styles - keeping for backwards compatibility */
.logo-text {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-color);
    text-decoration: none;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.logo-text:hover {
    color: #ffb347;
    transform: scale(1.02);
}

.logo-text-footer {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-color) !important;
}

/* Header and Navigation Styles - Perfect Match */
.top-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
    padding: 0.25rem 0;
}

.top-header .nav-link {
    padding: 0.25rem 0.5rem;
    color: #6c757d !important;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-header .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Main Header - Exact Dark Background */
.main-header {
    background-color: var(--header-bg);
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-header .nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.main-header .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Header Icons - Perfect Match */
.header-icon {
    color: #ffffff !important;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.header-icon:hover {
    color: var(--gold-color) !important;
    transform: scale(1.1);
}

/* Search Container - Exact Match */
.search-container {
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    border: 2px solid #e0e0e0;
    border-radius: 25px 0 0 25px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 87, 34, 0.25);
    outline: none;
}

.btn-search {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white;
    border-radius: 0 25px 25px 0;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background-color: #e64a19;
    border-color: #e64a19;
    color: white;
    transform: translateY(-1px);
}

/* Sub Navigation - Exact Match */
.sub-nav {
    /*background-color: var(--header-nav-bg);
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border-top: 1px solid #333;*/
}

.sub-nav .nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.sub-nav .nav-item {
    margin: 0;
}

.sub-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    font-size: 0.95rem;
}

.sub-nav .nav-link:hover {
    color: var(--gold-color) !important;
    border-bottom-color: var(--gold-color);
    background-color: rgba(255, 165, 0, 0.1);
}

/* Search Results - Perfect Match */
.search-results {
    max-height: 350px;
    overflow-y: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    z-index: 1050;
    margin-top: 5px;
}

.search-results .border-bottom:last-child {
    border-bottom: none !important;
}

.search-results a:hover {
    background-color: #f8f9fa;
}

/* Cart Counter - Perfect Match */
.cart-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gold-color);
    color: #2c2c2c;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid #ffffff;
}

/* Badge Styles */
.badge {
    font-size: 0.7rem;
    padding: 0.3em 0.6em;
    border-radius: 4px;
    font-weight: 500;
}

.badge.bg-warning {
    background-color: var(--gold-color) !important;
    color: #2c2c2c !important;
    font-weight: 600;
}

/* Product Cards - Enhanced */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background: #ffffff;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.product-card .card-img-top {
    transition: transform 0.3s ease;
    height: 200px;
    object-fit: cover;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 1.25rem;
}

.product-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.2em;
    color: #2c2c2c;
}

.product-card .card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-card .card-title a:hover {
    color: var(--primary-color);
}

/* Price Styles - Enhanced */
.price-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-current {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.price-old {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
}

/* Buttons - Perfect Match */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-primary-custom:hover {
    background-color: #e64a19;
    border-color: #e64a19;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 87, 34, 0.4);
}

.btn-cart {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-cart:hover {
    background-color: #e64a19;
    border-color: #e64a19;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.3);
}

/* Hero Section - Enhanced with New Art Image */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    min-height: 85vh;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section, .hero-subtitle{
    font-family: 'Sansation', sans-serif;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Hero Content */
.hero-content {
    padding-right: 2rem;
}

.hero-subtitle-text {
    font-size: 1.8rem !important;
    font-weight: 500;
    line-height: 1.3;
    display: inline-block;
    white-space: nowrap;
    color: inherit;
}

/* Адаптив для планшетов */
@media (max-width: 992px) {
    .hero-subtitle-text {
        font-size: 1.5rem !important;
    }
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .hero-subtitle-text {
        font-size: 1.2rem !important;
        white-space: normal; /* На мобильных разрешаем перенос */
    }
}

@media (max-width: 576px) {
    .hero-subtitle-text {
        font-size: 1rem !important;
    }
}


.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #2c2c2c;
}

.hero-title .text-primary {
    color: var(--primary-color) !important;
    position: relative;
}

.hero-title .text-primary::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--gold-color));
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Hero Features */
.hero-features {
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 0.75rem;
}

.feature-item i {
    width: 20px;
    color: var(--primary-color);
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    font-weight: 500;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 87, 34, 0.4);
}

/* Hero Image Container */
.hero-image-container {
    position: relative;
    margin-left: 2rem;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    filter: brightness(1.05) contrast(1.05);
}

.hero-image:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* Hero Image Overlay - Floating Badges */
.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c2c2c;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    animation: float 3s ease-in-out infinite;
}

.badge-new {
    top: 10%;
    right: -10px;
    background: linear-gradient(135deg, #ff5722, #ff7043);
    color: white;
    animation-delay: 0s;
}

.badge-quality {
    top: 50%;
    left: -15px;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    animation-delay: 1s;
}

.badge-delivery {
    bottom: 20%;
    right: 10px;
    background: linear-gradient(135deg, #2196f3, #42a5f5);
    color: white;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Hero Decorations */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

.circle-1 {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    top: 10%;
    right: 10%;
    animation-duration: 15s;
}

.circle-2 {
    width: 60px;
    height: 60px;
    background: var(--gold-color);
    bottom: 20%;
    left: 5%;
    animation-duration: 25s;
    animation-direction: reverse;
}

.circle-3 {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    top: 60%;
    right: 5%;
    animation-duration: 30s;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Stats Section */
.stats-section {
    background: #f8f9fa !important;
    border-top: 1px solid #e9ecef;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--gold-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    margin: 0;
    font-weight: 500;
}

/* Feature Icons */
.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.feature-icon:hover {
    background-color: var(--gold-color);
    transform: scale(1.1);
}

/* Badge Styles - Enhanced */
.badge-hit {
    background-color: var(--primary-color);
    color: white;
}

.badge-new {
    background-color: #28a745;
    color: white;
}

.badge-sale {
    background-color: #dc3545;
    color: white;
}

/* Product Detail Page */
.thumbnail-image {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.thumbnail-image:hover {
    border-color: var(--primary-color);
}

.thumbnail-image.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.3);
}

.video-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
}

/* Star Rating */
.stars {
    color: #ffc107;
}

.rating-input {
    display: flex;
    gap: 5px;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #ddd;
    transition: color 0.2s;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input[type="radio"]:checked ~ label {
    color: #ffc107;
}

/* Reviews */
.review-card {
    border-left: 4px solid var(--primary-color);
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

/* Footer - Enhanced */
footer {
    background: #2c2c2c;
    color: white;
}

footer a {
    transition: color 0.3s ease;
    color: #ccc;
    text-decoration: none;
}

footer a:hover {
    color: var(--gold-color) !important;
}

footer h5 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Sections spacing */
.section-padding {
    padding: 4rem 0;
}

/* Cards and containers */
.container-custom {
    max-width: 1200px;
}

.card-custom {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Placeholder for missing images */
.image-placeholder {
    background: linear-gradient(45deg, #f8f9fa 25%, transparent 25%), 
                linear-gradient(-45deg, #f8f9fa 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f8f9fa 75%), 
                linear-gradient(-45deg, transparent 75%, #f8f9fa 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    height: 200px;
    border-radius: 8px;
}

/* Additional styling for product listings */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.product-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.product-actions {
    margin-top: auto;
    padding-top: 1rem;
}

/* Form Styles - Enhanced */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 87, 34, 0.25);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 87, 34, 0.25);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e64a19;
}

/* Message Alerts - Enhanced */
.alert {
    border-radius: 8px;
    border: none;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Responsive Design - Perfect Match */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
        min-height: 70vh;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image-container {
        margin-left: 0;
        margin-top: 2rem;
    }
    
    .floating-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .badge-new {
        top: 5%;
        right: 5px;
    }
    
    .badge-quality {
        top: 45%;
        left: -10px;
    }
    
    .badge-delivery {
        bottom: 15%;
        right: 5px;
    }
    
    .stat-card {
        margin-bottom: 1.5rem;
    }
    
    .product-card .card-title {
        height: auto;
        min-height: 2.4em;
    }
    
    .hero-images {
        margin-top: 2rem;
    }
    
    .price-section {
        justify-content: center;
    }
    
    .logo-image {
        height: 45px;
        max-width: 150px;
    }
    
    .logo-image-footer {
        height: 40px;
        max-width: 140px;
    }
    
    .main-header {
        padding: 0.75rem 0;
    }
    
    .sub-nav .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .search-input {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    
    .btn-search {
        padding: 0.6rem 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-section {
        min-height: 60vh;
        padding: 1.5rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        margin-bottom: 0.5rem;
    }
    
    .floating-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
    
    .logo-image {
        height: 40px;
        max-width: 120px;
    }
    
    .logo-image-footer {
        height: 35px;
        max-width: 120px;
    }
    
    .top-header {
        display: none;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .sub-nav .nav {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }
    
    .sub-nav .nav-item {
        flex-shrink: 0;
    }
    
    .sub-nav .nav-link {
        white-space: nowrap;
        padding: 0.5rem 0.75rem;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-item {
        font-size: 1rem;
    }
    
    .decoration-circle {
        display: none;
    }
    
    .logo-image {
        height: 35px;
        max-width: 100px;
    }
    
    .logo-image-footer {
        height: 30px;
        max-width: 100px;
    }
    
    .header-icon {
        font-size: 1.1rem;
        padding: 0.4rem;
    }
    
    .search-container {
        margin: 0;
    }
    
    .main-header .row {
        margin: 0;
    }
    
    .main-header .col-8,
    .main-header .col-4 {
        padding: 0 0.5rem;
    }
}

/* Print Styles */
@media print {
    .top-header,
    .main-header,
    .sub-nav,
    footer {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
    }
    
    .product-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .logo-text {
        text-shadow: none;
    }
    
    .main-header {
        background: #000000 !important;
    }
    
    .sub-nav {
        background: #000000 !important;
    }
    
    .product-card {
        border: 2px solid #333 !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
}

.skip-link:focus {
    top: 6px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.2s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* Оверлей мобильного меню */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Само мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: #2c2c2c;
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    right: 0;
}

/* Заголовок меню */
.mobile-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
}

.mobile-menu-header h5 {
    margin: 0;
    color: #ffa500;
    font-weight: 600;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    color: #ffa500;
    transform: rotate(90deg);
}

/* Тело меню */
.mobile-menu-body {
    padding: 1rem 0;
}

/* Секции меню */
.mobile-menu-section {
    padding: 0.5rem 1.5rem;
}

.mobile-menu-section-title {
    color: #ffa500;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

/* Элементы меню */
.mobile-menu-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 0.95rem;
}

.mobile-menu-item:hover,
.mobile-menu-item:active {
    background: rgba(255, 165, 0, 0.1);
    border-left-color: #ffa500;
    color: #ffa500;
}

.mobile-menu-item i {
    width: 25px;
    margin-right: 10px;
    text-align: center;
}

/* Разделитель */
.mobile-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

/* Информация о пользователе */
.mobile-user-info {
    background: rgba(255, 165, 0, 0.1);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-left: 3px solid #ffa500;
}

.mobile-user-name {
    color: white;
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

.mobile-user-email {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0;
}

/* Блокировка скролла при открытом меню */
body.menu-open {
    overflow: hidden;
}

/* МОБИЛЬНЫЕ УСТРОЙСТВА */
@media (max-width: 768px) {
    /* Показываем кнопку мобильного меню */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* ВАЖНО: Скрываем только top-header, но НЕ всю навигацию */
    .top-header {
        display: none !important;
    }
    
    /* Остальное остается видимым */
    .main-header,
    .sub-nav {
        display: block !important;
    }
}

/* ПЛАНШЕТЫ И БОЛЬШЕ */
@media (min-width: 769px) {
    /* На десктопе скрываем мобильное меню полностью */
    .mobile-menu,
    .mobile-menu-overlay,
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ */
@media (max-width: 480px) {
    .mobile-menu {
        width: 260px;
    }
    
    .mobile-menu-header {
        padding: 1.25rem;
    }
    
    .mobile-menu-item {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .mobile-menu-section-title {
        font-size: 0.8rem;
    }
}


/* ============================================
   СЕКЦИЯ БРЕНДОВ - ДОБАВИТЬ В КОНЕЦ style.css
   ============================================ */

.brands-section {
    position: relative;
    overflow: hidden;
}

.brands-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

/* Карточка бренда */
.brand-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 2px solid transparent;
    position: relative;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff5722, #ffa500);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(255, 87, 34, 0.15);
    border-color: #ff5722;
}

.brand-card:hover::before {
    transform: scaleX(1);
}

.brand-card-inner {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Логотип бренда */
.brand-logo-wrapper {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.brand-logo-wrapper::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.brand-card:hover .brand-logo-wrapper::after {
    opacity: 1;
}

.brand-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(1) contrast(1.1);
    transition: all 0.3s ease;
}

.brand-card:hover .brand-logo {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.15);
}

/* Контент бренда */
.brand-content {
    flex: 1;
    margin-bottom: 1.5rem;
}

.brand-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.brand-name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #ff5722, #ffa500);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.brand-card:hover .brand-name::after {
    width: 100%;
}

.brand-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Особенности бренда */
.brand-features {
    margin-top: 1rem;
}

.brand-feature-item {
    display: flex;
    align-items: center;
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    transition: all 0.2s ease;
}

.brand-feature-item:hover {
    color: #ff5722;
    padding-left: 1rem;
}

.brand-feature-item i {
    font-size: 1rem;
}

/* Официальный значок */
.brand-badge {
    margin-top: auto;
}

.badge-official {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
    transition: all 0.3s ease;
}

.brand-card:hover .badge-official {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

.badge-official i {
    font-size: 1.1rem;
}

/* Блок гарантии */
.guarantee-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 2rem;
    border: 2px dashed #e0e0e0;
    transition: all 0.3s ease;
}

.guarantee-box:hover {
    border-color: #ff5722;
    background: linear-gradient(135deg, #fff5f2 0%, #ffffff 100%);
}

.guarantee-box i {
    transition: transform 0.3s ease;
}

.guarantee-box:hover i {
    transform: scale(1.1);
}

.guarantee-box h5 {
    color: #2c2c2c;
    font-weight: 700;
}

/* Адаптивность */
@media (max-width: 991px) {
    .section-title {
        font-size: 2rem;
    }
    
    .brand-card-inner {
        padding: 2rem;
    }
    
    .brand-logo-wrapper {
        height: 150px;
    }
    
    .brand-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .brands-section {
        padding: 3rem 0 !important;
    }
    
    .brand-card {
        margin-bottom: 1.5rem;
    }
    
    .brand-card-inner {
        padding: 1.5rem;
    }
    
    .brand-logo-wrapper {
        height: 130px;
        margin-bottom: 1.5rem;
    }
    
    .brand-name {
        font-size: 1.35rem;
    }
    
    .brand-description {
        font-size: 0.95rem;
    }
    
    .brand-feature-item {
        font-size: 0.9rem;
    }
    
    .badge-official {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
    
    .guarantee-box {
        padding: 1.5rem;
    }
}

@media (max-width: 575px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .brand-card-inner {
        padding: 1.25rem;
    }
    
    .brand-logo-wrapper {
        height: 110px;
        margin-bottom: 1rem;
    }
    
    .brand-name {
        font-size: 1.25rem;
    }
    
    .brand-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .brand-features {
        margin-top: 0.75rem;
    }
    
    .brand-feature-item {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .badge-official {
        font-size: 0.8rem;
        padding: 0.5rem 0.85rem;
    }
}

/* Анимация появления при скролле */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-card {
    animation: fadeInUp 0.6s ease-out;
}

.brand-card:nth-child(1) {
    animation-delay: 0.1s;
}

.brand-card:nth-child(2) {
    animation-delay: 0.2s;
}

/* Эффект параллакса для декоративных элементов */
@media (prefers-reduced-motion: no-preference) {
    .brands-section {
        position: relative;
    }
    
    .brands-section::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -100px;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, rgba(255, 87, 34, 0.05) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }
}

.btn-wishlist {
    background-color: #ffffff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 6px;
    padding: 0.6rem 0.85rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
}

.btn-wishlist:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.3);
}

.btn-wishlist i {
    transition: transform 0.3s ease;
}

.btn-wishlist:hover i {
    transform: scale(1.15);
}

.btn-wishlist .fas.fa-heart {
    color: var(--primary-color);
}

.btn-wishlist:hover .fas.fa-heart {
    color: white;
}

.btn-wishlist[data-in-wishlist="true"] {
    background-color: rgba(255, 87, 34, 0.1);
    border-color: var(--primary-color);
}

.btn-wishlist[data-in-wishlist="true"] i {
    color: var(--primary-color);
}

/* Рейтинг товара */
.product-rating {
    font-size: 0.9rem;
    padding: 0.25rem 0;
    border-radius: 4px;
}

.product-rating .stars {
    display: inline-flex;
    gap: 2px;
}

.product-rating .stars i {
    font-size: 0.85rem;
}

.product-rating .text-muted {
    font-size: 0.8rem;
    font-weight: 500;
}

.product-rating .far.fa-star {
    color: #ddd;
}

.product-rating .fas.fa-star {
    text-shadow: 0 0 3px rgba(255, 193, 7, 0.3);
}

/* Анимация смены изображений при наведении */
.product-image-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.product-main-image {
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}

.product-card:hover .product-main-image {
    transform: scale(1.08);
}

/* Улучшенные стили для карточки товара */
.product-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--gold-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 11;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 87, 34, 0.2) !important;
}

.product-card:hover::before {
    transform: scaleX(1);
}

/* Анимация для кнопок в карточке */
.product-card .btn-cart,
.product-card .btn-wishlist {
    opacity: 1;
    transition: all 0.3s ease;
}

/* Дополнительные стили для gap */
.d-flex.gap-2 {
    gap: 0.5rem !important;
}

/* Анимация пульсации для новых товаров в избранном */
@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(0.95);
    }
}

.btn-wishlist.just-added i {
    animation: heartbeat 0.6s ease-in-out;
}

/* Hover эффект для всей секции рейтинга */
.product-rating:hover .stars i {
    transform: scale(1.05);
}

/* Плавная анимация для смены изображений */
@keyframes imageSwap {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.product-main-image.swapping {
    animation: imageSwap 0.3s ease-in-out;
}

/* Стили для уведомлений */
.alert.position-fixed {
    animation: slideInRight 0.3s ease-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Стили для состояния loading кнопки избранного */
.btn-wishlist.loading {
    pointer-events: none;
    opacity: 0.6;
}

.btn-wishlist.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Дополнительные улучшения для взаимодействия с карточкой */
.product-card .card-body {
    transition: padding 0.3s ease;
}

.product-card:hover .card-body {
    padding: 1.35rem 1.25rem;
}

/* Стиль для badge'ей на карточках */
.product-card .badge {
    font-weight: 600;
    padding: 0.4em 0.8em;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.badge-hit {
    background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%);
    color: white;
}

.badge-new {
    background: linear-gradient(135deg, #ffa500 0%, #ffb347 100%);
    color: white;
}

.badge-sale {
    background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
    color: white;
}

/* Финальные штрихи для профессионального вида */
.product-card .price-current {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.product-card .card-title a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 576px) {
    .btn-cart {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }
    
    .btn-wishlist {
        padding: 0.5rem 0.7rem;
        min-width: 40px;
        font-size: 1rem;
    }
    
    .product-rating .stars i {
        font-size: 0.75rem;
    }
    
    .product-rating .text-muted {
        font-size: 0.75rem;
    }
    
    .product-card .card-img-top {
        height: 180px;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
    
    /* Улучшение отступов для карточек */
    .col-6 {
        padding-left: 7px;
        padding-right: 7px;
    }
}

@media (max-width: 768px) {
    .product-rating {
        font-size: 0.85rem;
    }
    
    .product-card:hover .card-body {
        padding: 1.25rem;
    }
}

/* Дополнительные стили для smooth transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.product-card * {
    transition: color 0.2s ease, background-color 0.2s ease;
}


/* Стили для системы уведомлений */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    pointer-events: none;
}

.custom-notification {
    min-width: 350px;
    max-width: 500px;
    margin-bottom: 15px;
    padding: 18px 50px 18px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transition: all 0.3s ease;
}

/* Анимация появления */
@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Анимация исчезновения */
@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

.custom-notification.hiding {
    animation: slideOutRight 0.3s ease forwards;
}

/* Декоративные круги на фоне */
.notification-circles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.notification-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.notification-circle-1 {
    width: 80px;
    height: 80px;
    bottom: -20px;
    left: -10px;
}

.notification-circle-2 {
    width: 60px;
    height: 60px;
    bottom: 10px;
    left: 40px;
}

.notification-circle-3 {
    width: 40px;
    height: 40px;
    top: -10px;
    left: 20px;
}

/* Стили для SUCCESS (зеленый) */
.custom-notification.success {
    background: linear-gradient(135deg, #5a9f7e 0%, #4a8a6a 100%);
    color: white;
}

.custom-notification.success .notification-circle {
    background: rgba(255, 255, 255, 0.3);
}

.custom-notification.success .notification-icon {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* Стили для ERROR (красный) */
.custom-notification.error {
    background: linear-gradient(135deg, #d85d6a 0%, #c44d5a 100%);
    color: white;
}

.custom-notification.error .notification-circle {
    background: rgba(139, 32, 46, 0.4);
}

.custom-notification.error .notification-icon {
    background: rgba(139, 32, 46, 0.35);
    color: white;
}

/* Стили для WARNING (оранжевый) */
.custom-notification.warning {
    background: linear-gradient(135deg, #f5a623 0%, #e89b1f 100%);
    color: white;
}

.custom-notification.warning .notification-circle {
    background: rgba(255, 255, 255, 0.3);
}

.custom-notification.warning .notification-icon {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* Иконка уведомления */
.notification-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
}

/* Контент уведомления */
.notification-content {
    flex: 1;
    z-index: 2;
    position: relative;
}

.notification-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 2px;
    letter-spacing: 0.3px;
}

.notification-message {
    font-size: 14px;
    opacity: 0.95;
    line-height: 1.4;
    margin: 0;
}

/* Кнопка закрытия */
.notification-close {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    z-index: 3;
    padding: 0;
    line-height: 1;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) rotate(90deg);
}

.notification-close:active {
    transform: translateY(-50%) scale(0.9);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
    }
    
    .custom-notification {
        min-width: auto;
        width: 100%;
        padding: 16px 45px 16px 16px;
    }
    
    .notification-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .notification-title {
        font-size: 15px;
    }
    
    .notification-message {
        font-size: 13px;
    }
    
    /* Дополнительные улучшения для планшетов */
    .main-header {
        padding: 0.85rem 0;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .search-container {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    /* Стили для маленьких мобильных устройств */
    .header-icon {
        font-size: 1.1rem;
        padding: 0.4rem;
    }
    
    .cart-counter {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
        top: -6px;
        right: -6px;
    }
    
    .main-header {
        padding: 0.6rem 0;
    }
    
    .logo-image {
        height: 42px;
        max-width: 140px;
    }
    
    .search-input {
        font-size: 0.9rem;
        padding: 0.65rem 0.85rem;
        border-radius: 20px 0 0 20px;
    }
    
    .btn-search {
        padding: 0.65rem 1rem;
        border-radius: 0 20px 20px 0;
        font-size: 0.9rem;
    }
    
    /* Улучшение прокрутки на мобильных */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    a, button {
        touch-action: manipulation;
    }
}

@media (max-width: 480px) {
    .notification-container {
        top: 5px;
        right: 5px;
        left: 5px;
    }
    
    .custom-notification {
        padding: 14px 40px 14px 14px;
        gap: 12px;
    }
    
    .notification-title {
        font-size: 14px;
    }
    
    .notification-message {
        font-size: 12px;
    }
    
    .logo-image {
        height: 38px;
        max-width: 130px;
    }
    
    .search-input, .btn-search {
        font-size: 0.85rem;
        padding: 0.6rem 0.75rem;
    }
    
    .header-icon {
        font-size: 1rem;
        padding: 0.35rem;
    }
}

@media (max-width: 375px) {
    /* Стили для очень маленьких экранов (iPhone SE и подобные) */
    .logo-image {
        height: 35px;
        max-width: 115px;
    }
    
    .main-header .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .header-icon {
        font-size: 0.95rem;
        padding: 0.3rem;
    }
    
    .cart-counter {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }
    
    .search-input {
        font-size: 0.8rem;
        padding: 0.55rem 0.7rem;
    }
    
    .btn-search {
        padding: 0.55rem 0.85rem;
        font-size: 0.8rem;
    }
}

/* Ландшафтная ориентация для мобильных устройств */
@media (max-height: 500px) and (orientation: landscape) {
    .main-header {
        padding: 0.4rem 0;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .search-input, .btn-search {
        padding: 0.5rem 0.75rem;
    }
    
    .header-icon {
        font-size: 1rem;
        padding: 0.35rem;
    }
}

/* Улучшение для устройств с touch */
@media (hover: none) and (pointer: coarse) {
    .btn, .header-icon, .mobile-menu-item, a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-item {
        padding: 0.85rem 1.5rem;
    }
    
    /* Убираем hover эффекты на touch устройствах */
    .product-card:hover {
        transform: none;
    }
    
    .product-card:active {
        transform: scale(0.98);
    }
}

/* Кнопка "Наверх" - исправленная версия */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff5722 0%, #e64a19 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.scroll-to-top.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #e64a19 0%, #d84315 100%);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.6);
    transform: translateY(-3px);
}

.scroll-to-top:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
}