/* ===== СТРАНИЦА ТОВАРА ===== */
.product-single { padding: 20px 0 64px; }

.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-bottom: 48px; }
@media (max-width: 768px) { .product-layout { grid-template-columns: 1fr; gap: 24px; } }

/* ===== ГАЛЕРЕЯ ===== */
.product-gallery {
    position: sticky;
    top: 20px;
    align-self: start;
}
@media (max-width: 768px) {
    .product-gallery {
        position: static;
    }
}

.product-gallery-main {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    cursor: zoom-in;
    margin-bottom: 12px;
}
.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}
.product-gallery-main:hover img { opacity: 0.95; }

.product-gallery-zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.product-gallery-main:hover .product-gallery-zoom-hint { opacity: 1; }

.product-sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #FF6B8A;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-tag {
    position: absolute;
    top: 52px;
    left: 12px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tag-hit { background: #FF6B8A; color: #fff; }
.tag-new { background: #5B8C5A; color: #fff; }
.tag-recommend { background: #C4A35A; color: #fff; }

.product-gallery-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.gallery-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}
.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: #E65476;
}

/* ===== ИНФОРМАЦИЯ ===== */
.product-title {
    font-family: Inter, sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.2;
    color: #1A1A1A;
}
.product-sku {
    font-size: 13px;
    color: #888;
    margin: 0 0 16px;
}

/* ===== ЦЕНА ===== */
.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.product-price-current {
    font-size: 28px;
    font-weight: 700;
    color: #1A1A1A;
}
.product-price-old {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}
.product-price-new {
    font-size: 28px;
    font-weight: 700;
    color: #E65476;
}
.product-discount {
    font-size: 13px;
    font-weight: 700;
    background: #FF6B8A;
    color: #fff;
    padding: 3px 10px;
    border-radius: 50px;
}

.product-sale-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 14px;
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: 8px;
    color: #795548;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
}
.product-sale-notice i {
    font-size: 18px;
    color: #FFB300;
}

/* ===== ХАРАКТЕРИСТИКИ ===== */
.product-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    padding: 16px;
    background: #F8F8F8;
    border-radius: 12px;
}
.product-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}
.product-feature .ph {
    color: #E65476;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}
.product-feature strong {
    color: #1A1A1A;
}

/* ===== СТОК ===== */
.product-stock-warning {
    background: #FFF3E0;
    border-left: 4px solid #FF9800;
    padding: 12px 16px;
    border-radius: 12px;
    margin: 16px 0;
    font-size: 14px;
    color: #E65100;
    display: flex;
    align-items: center;
    gap: 8px;
}
.product-stock-info {
    background: #E8F5E9;
    border-left: 4px solid #4CAF50;
    padding: 12px 16px;
    border-radius: 12px;
    margin: 16px 0;
    font-size: 14px;
    color: #2E7D32;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== БЛОК БОНУСОВ ===== */
.product-bonus-block {
    margin: 20px 0 24px;
}
.product-bonus-card {
    background: linear-gradient(135deg, #FFF5F5 0%, #FFF0F3 100%);
    border: 1px solid #FCE4EC;
    border-radius: 12px;
    padding: 16px 20px;
}
.product-bonus-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.product-bonus-header .ph {
    font-size: 24px;
    color: #E65476;
    flex-shrink: 0;
    margin-top: 2px;
}
.product-bonus-header .ph.bonus-icon-muted {
    color: #999;
}
.product-bonus-info strong {
    display: block;
    font-size: 15px;
    color: #1A1A1A;
    margin-bottom: 2px;
}
.product-bonus-info .product-bonus-balance {
    color: #E65476;
}
.product-bonus-info small {
    font-size: 13px;
    color: #666;
}
.product-bonus-earn {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #FCE4EC;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
}
.product-bonus-earn-label {
    font-size: 13px;
    color: #666;
}
.product-bonus-earn-amount {
    font-size: 18px;
    font-weight: 700;
    color: #E65476;
}
.product-bonus-earn-rate {
    font-size: 12px;
    color: #888;
    background: #F5F5F5;
    padding: 2px 10px;
    border-radius: 20px;
}
.product-bonus-note {
    margin-top: 8px;
    font-size: 12px;
    color: #888;
}
.product-bonus-note small {
    font-size: 12px;
    color: #888;
}
.product-bonus-note small strong {
    color: #1A1A1A;
}
.product-bonus-login-link,
.product-bonus-register-link {
    color: #E65476;
    font-weight: 600;
    text-decoration: none;
}
.product-bonus-login-link:hover,
.product-bonus-register-link:hover {
    text-decoration: underline;
}
.product-bonus-missed {
    color: #E65476;
    font-weight: 600;
}
@media (max-width: 480px) {
    .product-bonus-card {
        padding: 14px 16px;
    }
    .product-bonus-earn {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ===== КНОПКИ ===== */
.product-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.product-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: #E65476;
    color: #fff;
    border-radius: 8px;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(230,84,118,0.25);
}
.product-cart-btn:hover {
    background: #D43F62;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230,84,118,0.35);
}
.product-cart-btn.in-cart {
    background: #2E7D32 !important;
    padding: 0 !important;
    cursor: default;
}
.product-cart-btn.in-cart:hover {
    background: #2E7D32 !important;
    transform: none !important;
}
.product-cart-btn.in-cart .qty-controls {
    display: inline-flex;
    align-items: center;
    height: 52px;
}
.product-cart-btn.in-cart .qty-btn-card {
    width: 44px;
    height: 52px;
    font-size: 20px;
}
.product-cart-btn.in-cart .qty-value-card {
    font-size: 16px;
    min-width: 32px;
}

.single-wishlist-btn {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: #F0F0F0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #666;
    transition: all 0.2s ease;
}
.single-wishlist-btn:hover {
    background: #FFE0E0;
    color: #E65476;
}
.single-wishlist-btn.active {
    background: #E65476;
    color: #fff;
}

.product-out-of-stock {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: #F0F0F0;
    color: #666;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
}

/* ===== ПОДАРКИ ===== */
.product-gifts {
    padding: 16px 20px;
    background: #F0F7F0;
    border-radius: 12px;
    margin-bottom: 20px;
}
.product-gifts h4 {
    font-family: Inter, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #2E7D32;
    margin-bottom: 8px;
}
.product-gifts ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}
.product-gifts li {
    font-size: 14px;
    color: #1A1A1A;
    display: flex;
    align-items: center;
    gap: 6px;
}
.product-gifts li .ph {
    color: #2E7D32;
    font-size: 14px;
}

/* ===== ОПИСАНИЕ ===== */
.product-description { margin-bottom: 20px; }
.product-description-content {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}
.product-description-content h1,
.product-description-content h2,
.product-description-content h3,
.product-description-content h4 {
    font-family: Inter, sans-serif;
    color: #1A1A1A;
    margin-top: 20px;
    margin-bottom: 12px;
}
.product-description-content p {
    margin-bottom: 12px;
    font-size: 15px;
    color: #444;
    line-height: 1.7;
}
.product-description-content ul,
.product-description-content ol {
    padding-left: 20px;
    margin-bottom: 12px;
    color: #444;
}
.product-description-content li {
    margin-bottom: 6px;
    line-height: 1.6;
    color: #444;
}
.product-description-content strong {
    color: #1A1A1A;
}
.product-description-content a {
    color: #E65476;
    text-decoration: underline;
}
.product-description-content a:hover {
    color: #C43F5E;
}

/* ===== КОНТАКТЫ ===== */
.product-contact {
    font-size: 14px;
    color: #555;
}
.product-contact a {
    color: #E65476;
    font-weight: 500;
    text-decoration: none;
}
.product-contact a:hover {
    text-decoration: underline;
}

/* ===== ПОХОЖИЕ ===== */
.product-related { margin-top: 64px; }
.product-related h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 24px;
}
.product-related .catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 992px) {
    .product-related .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .product-related .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ===== ЛАЙТБОКС ===== */
.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
}
.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    cursor: zoom-out;
    z-index: 1;
}
.lightbox-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    padding: 40px 60px;
    box-sizing: border-box;
}
.lightbox-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: 90vw;
    max-height: 85vh;
}
.lightbox-image-wrapper img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 10;
}
.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 10;
}
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.05);
}
.lightbox-nav:active {
    transform: translateY(-50%) scale(0.95);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 18px;
    border-radius: 20px;
    white-space: nowrap;
    z-index: 5;
    backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
    .lightbox-content { padding: 16px 12px; }
    .lightbox-image-wrapper { max-width: 100vw; max-height: 80vh; }
    .lightbox-image-wrapper img { max-width: 100%; max-height: 80vh; }
    .lightbox-nav { width: 40px; height: 40px; font-size: 18px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 20px; }
    .lightbox-counter { bottom: 16px; font-size: 12px; padding: 4px 14px; }
}
@media (max-width: 480px) {
    .lightbox-content { padding: 8px 4px; }
    .lightbox-nav { width: 34px; height: 34px; font-size: 14px; }
    .lightbox-prev { left: 4px; }
    .lightbox-next { right: 4px; }
    .lightbox-image-wrapper img { max-height: 70vh; }
    .lightbox-close { top: 8px; right: 8px; width: 34px; height: 34px; font-size: 18px; }
}

/* ===== УВЕДОМЛЕНИЕ О ПОСТУПЛЕНИИ ===== */
.notify-form-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
}
.notify-form-content {
    background: #fff;
    max-width: 420px;
    width: 90%;
    padding: 32px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.notify-form-content h4 {
    font-size: 20px;
    margin: 0 0 8px;
}
.notify-form-content p {
    font-size: 14px;
    color: #666;
    margin: 0 0 16px;
}
.notify-form-content input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
}
.notify-form-content .btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #E65476;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.notify-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}