:root {
    --dark-bg: #101318;
    --text-color: #BEB6A7;
    --heading-color: #F4F3F0;
    --accent-color: #F6CE55;
    --card-bg: #1a1d24;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(16, 19, 24, 0.95);
    padding: 15px 0;
    border-bottom: 1px solid rgba(246, 206, 85, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(246, 206, 85, 0.5);
}

.logo i {
    font-size: 28px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    padding: 5px 0;
    white-space: nowrap;
}

nav a:hover, nav a.active {
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(246, 206, 85, 0.7);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
    transition: var(--transition);
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

.header-icons {
    display: flex;
    gap: 20px;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.icon-btn:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(246, 206, 85, 0.7);
}

#cart-btn {
    position: relative;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Стили для кнопок в модальном окне */
.modal-add-to-cart.in-cart {
    background: #27ae60 !important;
    cursor: not-allowed !important;
    opacity: 0.8 !important;
}

.modal-add-to-cart.in-cart:hover {
    background: #27ae60 !important;
    transform: none !important;
}

/* Hero Slider */
.slider-container {
    position: relative;
    height: 700px;
    overflow: hidden;
    margin-top: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background-color: var(--dark-bg);
}

.slider {
    display: flex;
    transition: transform 0.8s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Это ключевое свойство - изображение полностью видно */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(16, 19, 24, 0.8) 0%, rgba(16, 19, 24, 0.4) 100%);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    text-align: center;
    padding: 0 20px;
}

.slide h1 {
    font-size: 48px;
    color: var(--heading-color);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(244, 243, 240, 0.3);
}

.slide p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--dark-bg);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(246, 206, 85, 0.5);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(246, 206, 85, 0.8);
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(190, 182, 167, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(246, 206, 85, 0.8);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(16, 19, 24, 0.7);
    color: var(--accent-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    box-shadow: 0 0 15px rgba(246, 206, 85, 0.3);
}

.slider-arrow:hover {
    background-color: rgba(246, 206, 85, 0.2);
    box-shadow: 0 0 20px rgba(246, 206, 85, 0.6);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

/* Features Section */
.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--heading-color);
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(246, 206, 85, 0.5);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(246, 206, 85, 0.5);
}

.feature-card h3 {
    font-size: 22px;
    color: var(--heading-color);
    margin-bottom: 15px;
}

/* Products Section */
.products {
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.product-image {
    position: relative;
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, rgba(16, 19, 24, 0.4), rgba(26, 29, 36, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}


.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 60%, rgba(16, 19, 24, 0.8) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1; /* Убедимся, что затемнение под кнопками */
}

.product-card:hover .product-image::after {
    opacity: 1;
}

/* Стили для контейнера бейджей */
.product-badges-container {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 5;
}

/* Базовые стили для бейджей */
.product-badge {
    background-color: var(--accent-color);
    color: var(--dark-bg);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(246, 206, 85, 0.5);
    white-space: nowrap;
}

/* Левый бейдж */
.product-badge.left-badge {
    background-color: var(--accent-color);
}

/* Правый бейдж (оптовый) */
.product-badge.right-badge.wholesale-badge {
    background-color: #ff6b6b;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}


.favorite-btn, .zoom-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(16, 19, 24, 0.8);
    border: none;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.favorite-btn {
    opacity: 1;
    transition: all 0.3s ease;
}

.zoom-btn {
    opacity: 1;
    transition: all 0.3s ease;
}

.product-card:hover .zoom-btn {
    opacity: 1;
}

.product-actions {
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 10;
    opacity: 1;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(16, 19, 24, 0.8);
    border: none;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}
.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(246, 206, 85, 0.4), transparent);
    transition: left 0.5s;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    background-color: var(--accent-color);
    color: var(--dark-bg);
    box-shadow: 0 0 15px rgba(246, 206, 85, 0.8);
    transform: scale(1.1);
}

/* Анимации для кнопок */
.favorite-btn::before, .zoom-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(246, 206, 85, 0.4), transparent);
    transition: left 0.5s;
}
.favorite-btn:hover::before, .zoom-btn:hover::before {
    left: 100%;
}
.favorite-btn:hover, .zoom-btn:hover {
    background-color: var(--accent-color);
    color: var(--dark-bg);
    box-shadow: 0 0 15px rgba(246, 206, 85, 0.8);
    transform: scale(1.1);
}

/* Анимация для иконки сердца */
.favorite-btn:hover i {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Анимация для иконки лупы */
.zoom-btn:hover i {
    animation: zoom 0.5s ease-in-out;
}

@keyframes zoom {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.3) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.product-content {
    padding: 20px;
}

.product-content h3 {
    font-size: 20px;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.product-content p {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.product-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
}

.product-prices {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 16px;
}

.product-price {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 18px;
    text-shadow: 0 0 8px rgba(246, 206, 85, 0.3);
}

.product-actions-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-conditions {
    font-size: 12px;
    opacity: 0.8;
}

.product-btn {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 14px;
}

.product-btn:hover {
    background-color: var(--accent-color);
    color: var(--dark-bg);
    box-shadow: 0 0 15px rgba(246, 206, 85, 0.5);
}

/* Catalog Link */
.catalog-link {
    text-align: center;
    margin-top: 50px;
}

/* Consultation Section */
.consultation {
    padding: 80px 0;
    background-color: var(--card-bg);
    margin-top: 50px;
}

.consultation-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.consultation h2 {
    font-size: 36px;
    color: var(--heading-color);
    margin-bottom: 20px;
}

.consultation p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: #0a0c10;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(246, 206, 85, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 20px;
    color: var(--heading-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(246, 206, 85, 0.5);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 18px;
    text-shadow: 0 0 8px rgba(246, 206, 85, 0.3);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(190, 182, 167, 0.2);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1200px) {
    nav ul {
        gap: 15px;
    }
    
    nav a {
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .slide h1 {
        font-size: 36px;
    }
    
    .catalog-container {
        flex-direction: column;
    }
    
    .filters {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .slider-container {
        height: 500px;
    }
    
    .slide h1 {
        font-size: 28px;
    }
    
    .slide p {
        font-size: 16px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .slider-container {
        height: 400px;
    }
    
    .slide h1 {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .header-icons {
        gap: 10px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 28px;
    }
}




/* Стили для страницы каталога */
.page-header {
    padding: 60px 0 30px;
    text-align: center;
}

.page-title {
    font-size: 42px;
    color: var(--heading-color);
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(244, 243, 240, 0.3);
}

.page-subtitle {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.catalog-container {
    display: flex;
    gap: 30px;
    padding: 30px 0 80px;
}

/* Filters */
.filters {
    flex: 0 0 280px;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    height: fit-content;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.filters-title {
    font-size: 20px;
    color: var(--heading-color);
}

.reset-filters {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.reset-filters:hover {
    text-shadow: 0 0 8px rgba(246, 206, 85, 0.5);
}

.filter-group {
    margin-bottom: 25px;
}

.filter-title {
    font-size: 16px;
    color: var(--heading-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.filter-options {
    list-style: none;
}

.filter-options li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.filter-options input {
    margin-right: 10px;
    accent-color: var(--accent-color);
}

.price-range {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-input {
    background-color: rgba(16, 19, 24, 0.7);
    border: 1px solid rgba(190, 182, 167, 0.3);
    border-radius: 6px;
    color: var(--text-color);
    padding: 8px 12px;
    width: 100px;
}

.price-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(246, 206, 85, 0.3);
}

.price-slider {
    width: 100%;
    height: 5px;
    background: rgba(190, 182, 167, 0.2);
    border-radius: 5px;
    outline: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(246, 206, 85, 0.8);
}

.sorting {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.sort-select {
    background-color: rgba(16, 19, 24, 0.7);
    border: 1px solid rgba(190, 182, 167, 0.3);
    border-radius: 6px;
    color: var(--text-color);
    padding: 8px 12px;
    flex-grow: 1;
}

.sort-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(246, 206, 85, 0.3);
}

.active-filters {
    border-top: 1px solid rgba(190, 182, 167, 0.2);
    padding-top: 20px;
}

.active-filters-title {
    font-size: 16px;
    color: var(--heading-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.active-filter-tag {
    display: inline-block;
    background-color: rgba(246, 206, 85, 0.2);
    color: var(--accent-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Products Grid для каталога */
.catalog-products-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-conditions {
    font-size: 12px;
    opacity: 0.8;
}

/* Адаптивность для каталога */
@media (max-width: 992px) {
    .catalog-container {
        flex-direction: column;
    }
    
    .filters {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .catalog-products-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
}



/* Стили для страницы галереи */
.page-header {
    padding: 60px 0 30px;
    text-align: center;
}

.page-title {
    font-size: 42px;
    color: var(--heading-color);
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(244, 243, 240, 0.3);
}

.page-subtitle {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.gallery-section {
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: var(--transition);
    height: 400px;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(16, 19, 24, 0.9));
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    font-size: 22px;
    color: var(--heading-color);
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(244, 243, 240, 0.3);
}

.gallery-description {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
}

/* Исправленное модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(16, 19, 24, 0.98);
    z-index: 2000;
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 12px;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    display: flex;
    border: 1px solid rgba(246, 206, 85, 0.2);
    box-shadow: 0 0 30px rgba(246, 206, 85, 0.2);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(16, 19, 24, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 10;
    transition: var(--transition);
    color: var(--accent-color);
    box-shadow: 0 0 10px rgba(246, 206, 85, 0.3);
}

.modal-close:hover {
    background: var(--accent-color);
    color: var(--dark-bg);
    box-shadow: 0 0 15px rgba(246, 206, 85, 0.8);
}

.modal-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.modal-info {
    padding: 25px;
    border-top: 1px solid rgba(246, 206, 85, 0.2);
}

.modal-product {
    display: flex;
    width: 100%;
    height: 100%;
}

.modal-image-section {
    flex: 1;
    min-width: 0;
    background: rgba(16, 19, 24, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    overflow: auto; /* Добавляем прокрутку если нужно */
    position: relative;
}

.modal-image-full {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.modal-info-section {
    flex: 0 0 400px;
    padding: 30px;
    overflow-y: auto;
    border-left: 1px solid rgba(246, 206, 85, 0.2);
}

.modal-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: var(--heading-color);
}

.modal-description {
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 25px;
    opacity: 0.9;
}

.modal-specs {
    margin-bottom: 25px;
}

.modal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.modal-detail {
    display: flex;
    flex-direction: column;
}

.modal-detail strong {
    color: var(--accent-color);
    margin-bottom: 5px;
    font-size: 14px;
}

.modal-detail span {
    font-size: 16px;
}

.modal-prices {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-original-price {
    text-decoration: line-through;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 18px;
}

.modal-discount-price {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 24px;
    text-shadow: 0 0 8px rgba(246, 206, 85, 0.3);
}

.modal-spec-item {
    display: flex;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(246, 206, 85, 0.1);
}

.modal-spec-label {
    font-weight: bold;
    color: var(--heading-color);
    min-width: 100px;
    flex-shrink: 0;
}

.modal-spec-value {
    color: var(--text-color);
}

.modal-pricing {
    background: rgba(16, 19, 24, 0.7);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(246, 206, 85, 0.1);
}

.price-block {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.price-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.total-price-section {
    background: linear-gradient(135deg, rgba(246, 206, 85, 0.1), rgba(246, 206, 85, 0.05));
    border: 1px solid rgba(246, 206, 85, 0.2);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
}

.total-price-label {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 5px;
}

.total-price-amount {
    font-size: 15px;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.total-price-description {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.8;
}

.wholesale-price {
    font-size: 24px;
    color: #BEB6A7;
}

/* Когда правая цена активна */
.price-block.active .price-amount {
    font-size: 24px;
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(246, 206, 85, 0.3);
}

.price-block.inactive .price-amount {
    font-size: 20px;
    color: #BEB6A7;
    text-decoration: line-through;
}

.price-description {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.8;
    margin-top: 5px;
}

.savings-badge {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .price-comparison {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .price-block {
        padding: 12px;
    }
    
    .retail-price {
        font-size: 18px;
    }
    
    .wholesale-price {
        font-size: 22px;
    }
    
    .price-block.active .price-amount {
        font-size: 22px;
    }
    
    .price-block.inactive .price-amount {
        font-size: 18px;
    }
}

/* Адаптивность для блока цен */
@media (max-width: 768px) {
    .price-comparison {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .retail-price-block, .wholesale-price-block {
        padding: 12px;
    }
    
    .total-price-amount {
        font-size: 20px;
    }
    .modal-image-section {
        padding: 20px;
        max-height: 40vh;
    }
    
    .modal-image-full {
        max-height: 35vh;
    }
}

@media (max-height: 700px) {
    .modal-image-section {
        max-height: 50vh;
    }
    
    .modal-image-full {
        max-height: 45vh;
    }
}

.current-price-block, .wholesale-price-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.retail-price-block, .wholesale-price-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background: rgba(16, 19, 24, 0.5);
}

.retail-price {
    font-size: 20px; /* Меньший шрифт для левой цены */
    color: var(--accent-color);
}

.retail-price-block {
    border: 1px solid rgba(246, 206, 85, 0.3);
    background: rgba(16, 19, 24, 0.5);
}
.wholesale-price-block {
    border: 1px solid rgba(190, 182, 167, 0.3);
    background: rgba(16, 19, 24, 0.5);
}

.price-block.active {
    border-color: var(--accent-color);
    background: rgba(246, 206, 85, 0.1);
}

.price-block.inactive {
    border-color: rgba(190, 182, 167, 0.3);
    background: rgba(16, 19, 24, 0.5);
}

/* Стили для активных цен */
.price-amount.active-price {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(246, 206, 85, 0.4);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.retail-price-block,
.wholesale-price-block {
    transition: all 0.3s ease;
}

.retail-price-block.active {
    border-color: var(--accent-color);
    background: rgba(246, 206, 85, 0.1);
}

.wholesale-price-block.active {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.price-amount {
    font-weight: bold;
    transition: all 0.3s ease;
    display: block;
}

.price-amount.wholesale {
    font-size: 24px;
    color: #BEB6A7;
    text-shadow: none;
    position: relative;
}

.price-amount.wholesale::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #BEB6A7;
    transform: translateY(-50%);
}

.price-description {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
    margin-top: 5px;
}

.savings-badge {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.price-amount.active {
    font-size: 32px;
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(246, 206, 85, 0.4);
}

.price-amount.active::before {
    display: none;
}

.modal-price-main {
    font-size: 28px;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(246, 206, 85, 0.3);
}

/* Стили для блока преимуществ */
.modal-advantages {
    border-top: 1px solid rgba(246, 206, 85, 0.1);
    padding-top: 25px;
}

.advantage-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(16, 19, 24, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(246, 206, 85, 0.1);
    transition: var(--transition);
}

.advantage-item:hover {
    background: rgba(16, 19, 24, 0.7);
    border-color: rgba(246, 206, 85, 0.3);
    transform: translateX(5px);
}

.advantage-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), #f39c12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--dark-bg);
    box-shadow: 0 4px 15px rgba(246, 206, 85, 0.3);
    flex-shrink: 0;
}

.advantage-text {
    display: flex;
    flex-direction: column;
}

.advantage-text strong {
    color: var(--heading-color);
    font-size: 16px;
    margin-bottom: 4px;
}

.advantage-text span {
    color: var(--text-color);
    font-size: 14px;
    opacity: 0.8;
}

/* Анимации для смены цен */
.price-transition-enter {
    opacity: 0;
    transform: translateY(-10px);
}

.price-transition-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.price-transition-exit {
    opacity: 1;
    transform: translateY(0);
}

.price-transition-exit-active {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* Обновленные стили для кнопки корзины */
.modal-add-to-cart {
    flex: 1;
    background: var(--accent-color);
    color: var(--dark-bg);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(246, 206, 85, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
}

.modal-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(246, 206, 85, 0.6);
}

.modal-add-to-cart:active {
    transform: translateY(0);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .price-comparison {
        flex-direction: column;
        gap: 15px;
    }
    
    .current-price-block, .wholesale-price-block {
        align-items: center;
    }
    
    .advantage-item {
        padding: 12px;
    }
    
    .advantage-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

.modal-price-wholesale {
    color: #27ae60;
    font-weight: 500;
    margin-bottom: 4px;
}

.modal-wholesale-note {
    color: var(--text-color);
    font-size: 14px;
    opacity: 0.8;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid rgba(246, 206, 85, 0.3);
    border-radius: 6px;
    overflow: hidden;
    background: rgba(16, 19, 24, 0.7);
    padding-left: 5px;
    padding-right: 5px;
}

.qty-btn {
    background: rgba(246, 206, 85, 0.1);
    border: none;
    border-radius: 7px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    transition: var(--transition);
}

.qty-btn:hover {
    background: rgba(246, 206, 85, 0.2);
}

.qty-value {
    padding: 0 15px;
    min-width: 40px;
    text-align: center;
    font-weight: bold;
    color: var(--heading-color);
}

.modal-add-to-cart {
    flex: 1;
    background: var(--accent-color);
    color: var(--dark-bg);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(246, 206, 85, 0.5);
}

.modal-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(246, 206, 85, 0.8);
}

.modal-additional-info {
    border-top: 1px solid rgba(246, 206, 85, 0.1);
    padding-top: 20px;
}

.modal-info-item {
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
        max-height: 95vh;
    }
    
    .modal-product {
        flex-direction: column;
    }
    
    .modal-image-section {
        flex: 0 0 250px;
        padding: 20px;
    }
    
    .modal-info-section {
        flex: 1;
        border-left: none;
        border-top: 1px solid rgba(246, 206, 85, 0.2);
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-add-to-cart {
        width: 100%;
    }
}

.modal-conditions {
    font-size: 14px;
    opacity: 0.8;
}

.modal-btn {
    background-color: var(--accent-color);
    color: var(--dark-bg);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(246, 206, 85, 0.5);
}

.modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(246, 206, 85, 0.8);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(16, 19, 24, 0.8);
    color: var(--accent-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    box-shadow: 0 0 10px rgba(246, 206, 85, 0.3);
    z-index: 2002;
}

.close-modal:hover {
    background-color: var(--accent-color);
    color: var(--dark-bg);
    box-shadow: 0 0 15px rgba(246, 206, 85, 0.8);
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    .modal-content {
        max-height: 95vh;
        margin: 10px;
    }
    
    .modal-image-container {
        max-height: 50vh;
    }
    
    .modal-info {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .modal-details {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .modal-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        margin: 5px;
    }
    
    .modal-image-container {
        max-height: 40vh;
    }
    
    .modal-info {
        padding: 15px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-prices {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(16, 19, 24, 0.8);
    color: var(--accent-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    box-shadow: 0 0 10px rgba(246, 206, 85, 0.3);
    z-index: 2002;
}

.close-modal:hover {
    background-color: var(--accent-color);
    color: var(--dark-bg);
    box-shadow: 0 0 15px rgba(246, 206, 85, 0.8);
}

/* Блок индивидуальных заказов */
.custom-orders {
    padding: 80px 0;
    background-color: var(--card-bg);
    margin-top: 50px;
}

.custom-orders-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.custom-orders h2 {
    font-size: 36px;
    color: var(--heading-color);
    margin-bottom: 20px;
}

.custom-orders p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.7;
}

.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    margin: 40px 0;
    box-shadow: 0 0 10px rgba(246, 206, 85, 0.3);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

/* Адаптивность для галереи */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .custom-orders h2 {
        font-size: 28px;
    }
    
    .custom-orders p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .gallery-item {
        height: 300px;
    }
    
}

/* Дополнительные стили для auth.css в style.css */
.cross-icon::before {
    content: '†';
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
}



/* Кастомный скроллбар */
.about-content::-webkit-scrollbar {
    width: 8px;
}

.about-content::-webkit-scrollbar-track {
    background: rgba(16, 19, 24, 0.5);
    border-radius: 4px;
}

.about-content::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.about-content::-webkit-scrollbar-thumb:hover {
    background: #f39c12;
}

/* Стилизация скроллбара для всей страницы */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(16, 19, 24, 0.8);
}

/* WebKit браузеры (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(16, 19, 24, 0.8);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-color), #e6b800);
    border-radius: 6px;
    border: 2px solid rgba(16, 19, 24, 0.8);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #e6b800, var(--accent-color));
    box-shadow: 0 0 8px rgba(246, 206, 85, 0.6);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #d4af37, var(--accent-color));
}

/* Стилизация скроллбара для модальных окон */
.modal-content {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(16, 19, 24, 0.9);
}

/* WebKit браузеры для модальных окон */
.modal-content::-webkit-scrollbar {
    width: 14px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(16, 19, 24, 0.9);
    border-radius: 8px;
    margin: 4px 0;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-color), #e6b800);
    border-radius: 8px;
    border: 3px solid rgba(16, 19, 24, 0.9);
    box-shadow: 0 0 4px rgba(246, 206, 85, 0.4);
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #e6b800, var(--accent-color));
    box-shadow: 0 0 8px rgba(246, 206, 85, 0.6);
}

.modal-content::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #d4af37, var(--accent-color));
}

/* Стилизация для order-modal-body */
.order-modal-body {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(16, 19, 24, 0.8);
}

.order-modal-body::-webkit-scrollbar {
    width: 10px;
}

.order-modal-body::-webkit-scrollbar-track {
    background: rgba(16, 19, 24, 0.8);
    border-radius: 6px;
    margin: 2px 0;
}

.order-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-color), #e6b800);
    border-radius: 6px;
    border: 2px solid rgba(16, 19, 24, 0.8);
}

.order-modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #e6b800, var(--accent-color));
}

/* Плавная прокрутка для всей страницы */
html {
    scroll-behavior: smooth;
}

/* Улучшение внешнего вида при прокрутке */
.modal-content,
.order-modal-body,
.account-sidebar {
    scroll-behavior: smooth;
}

/* Анимация появления скроллбара */
.modal-content::-webkit-scrollbar-thumb,
.order-modal-body::-webkit-scrollbar-thumb,
.account-sidebar::-webkit-scrollbar-thumb {
    transition: all 0.3s ease;
}

/* Стили для Firefox */
@media (max-width: 768px) {
    html {
        scrollbar-width: auto;
    }
    
    .modal-content {
        scrollbar-width: auto;
    }
}


.wholesale-badge {
    background: #ff6b6b;
    top: auto;
    bottom: 10px;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content i {
    font-size: 1.2em;
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}


/* Стили для уведомлений */
.notification {
    position: fixed;
    top: 20px;
    right: 450px;
    background: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.notification.error {
    background: #f44336;
}



/* Стили для счетчика корзины */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}



/* Стили для счетчика корзины */
#cart-btn {
    position: relative;
    transition: all 0.3s ease;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, var(--accent-color), #e6b800);
    color: var(--dark-bg);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(246, 206, 85, 0.4);
    border: 2px solid var(--dark-bg);
    transition: all 0.3s ease;
    z-index: 10;
}

.badge.counter-pulse {
    animation: counterPulse 0.3s ease;
}

@keyframes counterPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

#cart-btn:hover .badge {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(246, 206, 85, 0.6);
}

/* Анимация появления счетчика */
@keyframes badgeAppear {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.badge[style*="display: flex"] {
    animation: badgeAppear 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}



/* Стили для полноэкранного просмотра изображений */
.fullscreen-modal {
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    padding: 40px;
    display: none;
}

.fullscreen-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    flex-direction: column;
}

.fullscreen-image-container {
    max-width: 85%;
    max-height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10001;
}

.fullscreen-close:hover {
    background: var(--accent-color);
    color: var(--dark-bg);
    transform: scale(1.1);
}

.fullscreen-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 18px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    margin: 0 auto;
    max-width: 60%;
    backdrop-filter: blur(10px);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .fullscreen-modal {
        padding: 20px 15px;
    }
    
    .fullscreen-image-container {
        max-width: 95%;
        max-height: 75%;
    }
    
    .fullscreen-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .fullscreen-caption {
        font-size: 16px;
        padding: 10px 15px;
        max-width: 80%;
        bottom: 15px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .fullscreen-modal {
        padding: 15px 10px;
    }
    
    .fullscreen-image-container {
        max-width: 98%;
        max-height: 70%;
    }
    
    .fullscreen-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .fullscreen-caption {
        font-size: 14px;
        padding: 8px 12px;
        max-width: 85%;
        bottom: 10px;
    }
}

/* Для больших экранов (ПК) */
@media (min-width: 1200px) {
    .fullscreen-image-container {
        max-width: 80%;
        max-height: 85%;
    }
    
    .fullscreen-image {
        padding: 10px;
    }
}

/* Для очень больших мониторов */
@media (min-width: 1600px) {
    .fullscreen-image-container {
        max-width: 70%;
        max-height: 90%;
    }
}

/* Анимация появления */
.fullscreen-modal .fullscreen-content {
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Убираем выделение текста при касании на мобильных */
.fullscreen-image {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Дополнительные улучшения для изображения */
.fullscreen-image {
    width: auto;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Улучшаем внешний вид кнопки закрытия */
.fullscreen-close {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Эффект при наведении на изображение */
.fullscreen-image:hover {
    transform: scale(1.02);
}

/* Обработчик для закрытия по клику на оверлей */
.fullscreen-modal {
    cursor: pointer;
}

.fullscreen-modal .fullscreen-content {
    cursor: auto;
}
