.product-page {
    padding: 100px 0 50px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--text-primary);
}

.product-page-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 120px;
}

.main-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1rem;
    background: var(--bg-accent);
    border: 1px solid rgba(255,255,255,0.1);
}

.product-info {
    background: rgba(25, 25, 28, 0.4);
    backdrop-filter: blur(25px);
    border-radius: 15px;
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.product-info h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.product-meta {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    align-items: center;
    flex-wrap: wrap;
}

.product-category {
    background: var(--accent-gold);
    color: var(--bg-primary);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.product-price {
    font-size: 2.2rem;
    color: var(--accent-gold);
    font-weight: bold;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.original-price {
    font-size: 1.4rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.discount-badge {
    background: var(--error);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1.3rem 2rem;
    font-size: 1.1rem;
    flex: 1;
    min-width: 200px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    text-decoration: none;
}

.btn-large.primary {
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-purple));
    color: var(--bg-primary);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-large.secondary {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-large.ghost {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-primary);
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-large.primary:hover {
    background: linear-gradient(45deg, #e6c158, #9b4de0);
}

.btn-large.secondary:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.btn-large.ghost:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

.product-description-full {
    margin: 2rem 0;
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 3px solid var(--accent-gold);
}

/* Бейдж товара */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--success);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.product-badge.sale {
    background: var(--error);
}

.product-badge.new {
    background: var(--accent-purple);
}

.product-badge.bestseller {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

/* Рейтинг */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.stars {
    color: var(--accent-gold);
}

.rating-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .product-page-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-large {
        min-width: 100%;
        padding: 1.2rem 1.5rem;
    }
    
    .main-image {
        height: 350px;
    }
    
    .product-info h1 {
        font-size: 1.8rem;
    }
    
    .product-info {
        padding: 2rem;
    }
    
    .product-price {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .product-page {
        padding: 90px 0 30px;
    }
    
    .product-info h1 {
        font-size: 1.6rem;
    }
    
    .product-price {
        font-size: 1.6rem;
    }
    
    .btn-large {
        padding: 1.1rem 1.3rem;
        font-size: 1rem;
    }
    
    .product-info {
        padding: 1.5rem;
    }
    
    .main-image {
        height: 280px;
    }
}

.product-card-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.add-to-cart, .buy-now {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 140px;
    justify-content: center;
}

.add-to-cart {
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-purple));
    color: var(--bg-primary);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.buy-now {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.add-to-cart:hover {
    background: linear-gradient(45deg, #e6c158, #9b4de0);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.buy-now:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* Адаптивность для кнопок */
@media (max-width: 768px) {
    .product-card-buttons {
        flex-direction: column;
    }
    
    .add-to-cart, .buy-now {
        min-width: 100%;
        padding: 1.2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .add-to-cart, .buy-now {
        padding: 1.1rem 1.3rem;
        font-size: 0.9rem;
    }
}

/* Исправленные стили для кнопок на странице товара */
.product-actions {
    display: flex;
    gap: 1rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1.3rem 2rem;
    font-size: 1.1rem;
    flex: 1;
    min-width: 200px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    text-decoration: none;
}

.btn-large.primary {
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-purple));
    color: var(--bg-primary);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-large.secondary {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-large.ghost {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-primary);
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-large.primary:hover {
    background: linear-gradient(45deg, #e6c158, #9b4de0);
}

.btn-large.secondary:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.btn-large.ghost:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

/* Адаптивность для кнопок */
@media (max-width: 768px) {
    .product-actions {
        flex-direction: column;
    }
    
    .btn-large {
        min-width: 100%;
        padding: 1.2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .btn-large {
        padding: 1.1rem 1.3rem;
        font-size: 1rem;
    }
}

.product-actions {
    position: relative;
    z-index: 100;
    display: flex;
    gap: 1rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.btn-large {
    position: relative;
    z-index: 101 !important;
    padding: 1.3rem 2rem;
    font-size: 1.1rem;
    flex: 1;
    min-width: 200px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    text-decoration: none;
    pointer-events: auto !important;
}

/* Убедимся что кнопки видны и кликабельны */
.btn-large.primary {
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-purple)) !important;
    color: var(--bg-primary) !important;
    box-shadow: 0 4px 15px var(--accent-glow) !important;
}

.btn-large.secondary {
    background: transparent !important;
    border: 2px solid var(--accent-gold) !important;
    color: var(--accent-gold) !important;
}

.btn-large.ghost {
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: var(--text-primary) !important;
}

/* Ховер эффекты */
.btn-large:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px var(--accent-glow) !important;
}

.btn-large.primary:hover {
    background: linear-gradient(45deg, #e6c158, #9b4de0) !important;
}

.btn-large.secondary:hover {
    background: var(--accent-gold) !important;
    color: var(--bg-primary) !important;
}

.btn-large.ghost:hover {
    background: rgba(255,255,255,0.15) !important;
    border-color: rgba(255,255,255,0.3) !important;
}

/* Активное состояние */
.btn-large:active {
    transform: translateY(-1px) !important;
}

/* Гарантируем что ничего не перекрывает кнопки */
.product-info {
    position: relative;
    z-index: 50;
}

.product-page {
    position: relative;
    z-index: 10;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .product-actions {
        flex-direction: column;
        z-index: 150;
    }
    
    .btn-large {
        min-width: 100%;
        padding: 1.2rem 1.5rem;
        z-index: 151 !important;
    }
}

@media (max-width: 480px) {
    .btn-large {
        padding: 1.1rem 1.3rem;
        font-size: 1rem;
    }
}


#addToCartBtn,
#buyNowBtn, 
#addToWishlistBtn {
    position: relative !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#addToCartBtn,
#buyNowBtn, 
#addToWishlistBtn {
    position: relative !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}


.product-actions {
    position: relative;
    z-index: 100;
}


#addToWishlistBtn.active {
    background: var(--error) !important;
    color: white !important;
}

#addToWishlistBtn.active:hover {
    background: #ff4757 !important;
}

.product-actions {
    position: relative;
    z-index: 1000;
}

#addToCartBtn,
#buyNowBtn, 
#addToWishlistBtn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 1001 !important;
    position: relative !important;
}


#addToWishlistBtn.active {
    background: var(--error) !important;
    color: white !important;
    border-color: var(--error) !important;
}

#addToWishlistBtn.active:hover {
    background: #ff4757 !important;
    border-color: #ff4757 !important;
}


.btn-large:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px var(--accent-glow) !important;
}

.product-actions {
    display: flex !important;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    opacity: 1 !important;
    visibility: visible !important;
}

.btn-large {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    transition: var(--trans);
    font-size: 1rem;
    min-height: 54px;
    flex: 1;
    min-width: 140px;
    opacity: 1 !important;
    visibility: visible !important;
}

.btn-large.primary {
    background: var(--accent);
    color: #0b0b09;
    box-shadow: 0 8px 30px var(--glow);
}

.btn-large.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--glow);
}

.btn-large.secondary {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-large.secondary:hover {
    background: var(--gold);
    color: #0b0b09;
    transform: translateY(-2px);
}

.btn-large.ghost {
    background: transparent;
    border: 2px solid rgba(212,175,55,0.14);
    color: var(--gold);
}

.btn-large.ghost:hover {
    background: rgba(212,175,55,0.1);
    border-color: var(--gold);
    transform: translateY(-2px);
}

/* Product page specific styles */
.product-page {
    padding: 120px 0 60px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--accent-gold);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.product-page-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.product-gallery {
    position: relative;
}

.product-gallery .main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    background: var(--bg-accent);
}

.product-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.product-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.product-price {
    font-size: 2rem;
    color: var(--accent-gold);
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.product-description-full {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Responsive design for product page */
@media (max-width: 768px) {
    .product-page-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-gallery .main-image {
        height: 300px;
    }
    
    .product-info h1 {
        font-size: 2rem;
    }
    
    .btn-large {
        min-width: 100%;
        padding: 0.8rem 1.5rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
}


#addToCartBtn, #buyNowBtn, #addToWishlistBtn {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}


/* Добавьте эти стили в product.css */

/* Стили для правильного расположения элементов */
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.product-title-section {
    flex: 1;
    min-width: 300px;
}

.product-price-section {
    text-align: right;
    min-width: 200px;
}

.product-purchase-section {
    margin: 2.5rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: center;
}

.price-block {
    text-align: center;
    padding: 1rem;
}

.product-price-main {
    font-size: 2.8rem;
    color: var(--accent-gold);
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px var(--accent-glow);
}

.price-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.8;
}

.actions-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.wishlist-btn {
    width: 100%;
}

.product-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.meta-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.meta-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-gold);
}

.meta-icon {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.meta-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.meta-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Новые стили для блока под фотографией */
.product-gallery-footer {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-feature {
    background: rgba(25, 25, 28, 0.55);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-gallery {
    width: 100%;
    max-width: 100%;
}

.main-image,
.product-gallery-footer,
.gallery-description {
    width: 100%;
    box-sizing: border-box;
}

.gallery-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.1) 0%, 
        rgba(138, 43, 226, 0.05) 100%);
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.gallery-feature:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.gallery-feature:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.gallery-feature:hover .feature-icon {
    transform: scale(1.1);
    color: var(--accent-purple);
}

.feature-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Стили для футера */
.main-footer {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
    padding: 2rem 0;
}

.copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 1rem 0;
}

.copyright p {
    margin: 0;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.copyright p:hover {
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}



@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.product-actions {
    display: flex !important;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 1000 !important;
}

.product-actions .btn-large {
    flex: 1;
    min-width: 140px;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    position: relative;
    z-index: 1001 !important;
}

#addToCartBtn,
#buyNowBtn, 
#addToWishlistBtn {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1002 !important;
}

/* Убираем любые возможные перекрытия */
.product-info {
    position: relative;
    z-index: 10;
}

.product-page-content {
    position: relative;
    z-index: 1;
}

/* Кнопка закрытия вишлиста */
.close-wishlist {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3) !important;
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 1000 !important;
}

.close-wishlist:hover {
    transform: scale(1.1) rotate(90deg) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5) !important;
    background: linear-gradient(45deg, #ff5252, #e53935) !important;
}

/* Адаптивность для мобильных */
@media (max-width: 968px) {
    .product-purchase-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .price-block {
        order: 1;
    }
    
    .actions-block {
        order: 2;
    }
    
    .main-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .price-and-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .product-price {
        text-align: center;
        font-size: 2.2rem;
    }
    
    .product-actions {
        justify-content: center;
    }
    
    .product-actions .btn-large {
        min-width: 100%;
    }
    
    .product-gallery-footer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-purchase-section {
        padding: 1.5rem;
    }
    
    .product-price-main {
        font-size: 2.2rem;
    }
    
    .product-meta-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .gallery-feature {
        padding: 1rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
}


/* Новые стили для правильного расположения */
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 2rem;
}

.product-title-section {
    flex: 1;
}

.product-price-section {
    text-align: right;
    min-width: 150px;
}

.product-price-main {
    font-size: 2.5rem;
    color: var(--accent-gold);
    font-weight: bold;
    text-shadow: 0 0 20px var(--accent-glow);
}

.product-description-full {
    margin: 2rem 0;
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1.1rem;
    border-left: 3px solid var(--accent-gold);
    padding-left: 1.5rem;
}

.product-actions {
    margin: 2.5rem 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .product-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .product-price-section {
        text-align: left;
        width: 100%;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-large {
        min-width: 100%;
    }
}

.gallery-description {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(25, 25, 28, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.gallery-description:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.gallery-description h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-description h3::before {
    content: '📖';
    font-size: 1.2rem;
}

.product-description-full {
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1.1rem;
    border-left: 3px solid var(--accent-gold);
    padding-left: 1.5rem;
    margin: 0;
}


@media (max-width: 768px) {
    .gallery-description {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .gallery-description h3 {
        font-size: 1.2rem;
    }
    
    .product-description-full {
        font-size: 1rem;
        padding-left: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-description {
        padding: 1rem;
    }
}


.product-price-compact {
    font-size: 1.8rem;
    color: var(--accent-gold);
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px var(--accent-glow);
}

.product-actions-compact {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.8rem;
    align-items: center;
}

.btn-compact {
    padding: 0.9rem 1.2rem;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    min-height: 48px;
}

.btn-compact.primary {
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-purple));
    color: var(--bg-primary);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-compact.secondary {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-compact.ghost {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    width: 48px;
    padding: 0.9rem;
}

.btn-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-compact.primary:hover {
    background: linear-gradient(45deg, #e6c158, #9b4de0);
}

.btn-compact.secondary:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.btn-compact.ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}



/* Адаптивность для компактных кнопок */
@media (max-width: 968px) {

    
    .product-price-compact {
        font-size: 1.6rem;
    }
    
    .btn-compact {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
        min-height: 44px;
    }
}

@media (max-width: 768px) {

    
    
    .product-actions-compact {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
    
    .btn-compact.ghost {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .product-actions {
        flex-direction: column;
    }
    
    .btn-large {
        min-width: 100%;
        padding: 1.2rem 1.5rem;
    }
}



.product-gallery-footer {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 100%;
}

.gallery-feature {
    background: rgba(25, 25, 28, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gallery-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.1) 0%, 
        rgba(138, 43, 226, 0.05) 100%);
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.gallery-feature:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.gallery-feature:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2.2rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.gallery-feature:hover .feature-icon {
    transform: scale(1.1);
    color: var(--accent-purple);
}

.feature-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Адаптивность для 4 элементов */
@media (max-width: 968px) {
    .product-gallery-footer {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .gallery-feature {
        padding: 1.2rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .feature-title {
        font-size: 1rem;
    }
    
    .feature-desc {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .product-gallery-footer {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-feature {
        padding: 1rem;
    }
    
    .feature-icon {
        font-size: 1.8rem;
    }
}


.product-gallery-footer {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
}



.gallery-feature {
    background: rgba(25, 25, 28, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Адаптивность */
@media (max-width: 968px) {
    .product-gallery-footer {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    

}

@media (max-width: 480px) {
    .product-gallery-footer {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.product-gallery {
    position: sticky;
    top: 120px;
}

/* Убираем дублирующиеся элементы из левой колонки */
.product-gallery .product-gallery-footer,
.product-gallery .gallery-description {
    display: none;
}

/* Стили для преимуществ в правой колонке */
.product-info .product-gallery-footer {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .product-info .product-gallery-footer {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    

}


.copyright-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copyright-modal.active {
    display: flex;
    opacity: 1;
}

.copyright-content {
    background: rgba(25, 25, 28, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.copyright-modal.active .copyright-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 0;
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
}

.close-modal:hover {
    color: var(--error);
    background: rgba(244, 67, 54, 0.1);
    transform: rotate(90deg);
}

.copyright-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
    text-align: center;
}


body.modal-open {
    overflow: hidden;
}