html {
    color-scheme: light only;
    background-color: #ffffff;
}

/* ============================================
   Product Page Styles
   ============================================ */

.product-page {
    min-height: 100vh;
    background: transparent;
    padding-top: 80px;
    position: relative;
}

/* Canvas Background Animation */
.product-page__canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: #ffffff;
}

/* All content should be above canvas */
.product-page>*:not(.product-page__canvas-bg) {
    position: relative;
    z-index: 1;
}

main.product-page__container {
    position: relative;
    z-index: 1;
}

.product-page__header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 12px 0;
    /* 20% blur, slight shadow */
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(4px) saturate(150%);
    -webkit-backdrop-filter: blur(4px) saturate(150%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 2px 6px 16px rgba(0, 0, 0, 0.08);
}

.product-page__header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-page__back {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2b2b2b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.product-page__back:hover {
    color: var(--primary-color, #1a1a1a);
}

.product-page__back svg {
    width: 20px;
    height: 20px;
}

.product-page__logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2b2b2b;
    text-decoration: none;
}

.product-page__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* Hero section with gallery and main info */
.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

/* Gallery */
.product-gallery {
    position: sticky;
    top: 120px;
}

.product-gallery__main {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 2px 6px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
    cursor: pointer;
}

.product-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-gallery__main:hover img {
    transform: scale(1.02);
}

.product-gallery__zoom {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    pointer-events: none;
}

.product-gallery__zoom svg {
    width: 20px;
    height: 20px;
    color: #2b2b2b;
}

.product-gallery__main:hover .product-gallery__zoom {
    background: #2b2b2b;
}

.product-gallery__main:hover .product-gallery__zoom svg {
    color: #fff;
}

.product-gallery__thumbs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.product-gallery__thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.product-gallery__thumb:hover,
.product-gallery__thumb.active {
    opacity: 1;
    border-color: #2b2b2b;
}

.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sidebar Specs Optimization */
.product-gallery .product-section {
    margin-top: 24px;
    padding: 20px;
    border-radius: 12px;
}

.product-gallery .product-section__title {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.product-gallery .product-section__title::before {
    height: 20px;
}

.product-gallery .product-specs {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.product-gallery .product-spec {
    padding: 12px;
}

.product-gallery .product-spec__label {
    font-size: 0.7rem;
}

.product-gallery .product-spec__value {
    font-size: 0.85rem;
}

/* Product Info - 20% blur, slight shadow */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 30px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px) saturate(150%);
    -webkit-backdrop-filter: blur(4px) saturate(150%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 2px 6px 16px rgba(0, 0, 0, 0.08);
}

.product-info__title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.product-info__model {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
}

.product-info__price-block {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px) saturate(150%);
    -webkit-backdrop-filter: blur(4px) saturate(150%);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.product-info__price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.product-info__price-note {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.5;
}

.product-info__custom {
    font-size: 0.95rem;
    color: #555;
    background: rgba(0, 0, 0, 0.03);
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 12px;
}

/* Contact buttons row */
.product-contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-contacts__title {
    font-size: 1rem;
    font-weight: 600;
    color: #2b2b2b;
}

.product-contacts__row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.product-contact-btn {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.product-contact-btn svg {
    width: 24px;
    height: 24px;
}

.product-contact-btn--phone {
    background: #25D366;
    color: #fff;
}

.product-contact-btn--phone:hover {
    background: #1fb855;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.product-contact-btn--telegram {
    background: #0088cc;
    color: #fff;
}

.product-contact-btn--telegram:hover {
    background: #0077b5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
}

.product-contact-btn--whatsapp {
    background: #25D366;
    color: #fff;
}

.product-contact-btn--whatsapp:hover {
    background: #1fb855;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.product-contact-btn--email {
    background: #2b2b2b;
    color: #fff;
}

.product-contact-btn--email:hover {
    background: #444;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.product-contact-btn--vk {
    background: #4a76a8;
    color: #fff;
}

.product-contact-btn--vk:hover {
    background: #3d6a9c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 118, 168, 0.4);
}

/* Detail sections */
.product-details {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.product-section {
    padding: 30px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px) saturate(150%);
    -webkit-backdrop-filter: blur(4px) saturate(150%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 2px 6px 16px rgba(0, 0, 0, 0.08);
}

.product-section__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-section__title::before {
    content: '';
    width: 4px;
    height: 28px;
    background: #2b2b2b;
    border-radius: 2px;
}

.product-section__content {
    color: #444;
    line-height: 1.8;
    font-size: 1rem;
}

.product-section__content p {
    margin-bottom: 16px;
}

.product-section__content p:last-child {
    margin-bottom: 0;
}

/* Feature blocks */
.product-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.product-feature {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px) saturate(150%);
    -webkit-backdrop-filter: blur(4px) saturate(150%);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 2px 6px 16px rgba(0, 0, 0, 0.08);
}

.product-feature__icon {
    display: none;
}

.product-feature__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.product-feature__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-feature__list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: #555;
    line-height: 1.6;
}

.product-feature__list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2b2b2b;
    font-weight: bold;
}

.product-feature__list li strong {
    color: #2b2b2b;
}

/* Specifications - vertical card layout */
.product-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.product-spec {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px) saturate(150%);
    -webkit-backdrop-filter: blur(4px) saturate(150%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 2px 6px 16px rgba(0, 0, 0, 0.08);
}

.product-spec__label {
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-spec__value {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
}

/* CTA section */
.product-cta {
    background: linear-gradient(135deg, #2b2b2b 0%, #1a1a1a 100%);
    border-radius: 24px;
    padding: 50px;
    text-align: center;
    color: #fff;
    margin-top: 20px;
}

.product-cta__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.product-cta__text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.product-cta__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.product-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-cta__btn--primary {
    background: #fff;
    color: #1a1a1a;
}

.product-cta__btn--primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.product-cta__btn--secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.product-cta__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Footer */
.product-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 900px) {
    .product-hero {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-gallery {
        position: relative;
        top: 0;
    }

    .product-info__title {
        font-size: 1.6rem;
    }

    .product-info__price {
        font-size: 2rem;
    }

    .product-section {
        padding: 24px;
    }

    .product-cta {
        padding: 30px 20px;
    }

    .product-cta__title {
        font-size: 1.4rem;
    }
}

@media (max-width: 600px) {
    .product-page {
        padding-top: 60px;
    }

    .product-page__header {
        padding: 10px 0;
    }

    .product-page__back span {
        font-size: 0.85rem;
    }

    .product-page__logo {
        font-size: 0.95rem;
    }

    .product-page__container {
        padding: 16px 12px 40px;
    }

    .product-hero {
        gap: 20px;
    }

    .product-gallery__main {
        aspect-ratio: 1/1;
        border-radius: 12px;
        margin-bottom: 10px;
    }

    .product-gallery__thumbs {
        gap: 6px;
    }

    .product-gallery__thumb {
        width: 50px;
        height: 50px;
        border-radius: 6px;
    }

    .product-info__title {
        font-size: 1.3rem;
        line-height: 1.25;
    }

    .product-info__model {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .product-info__price-block {
        padding: 16px;
        border-radius: 12px;
    }

    .product-info__price {
        font-size: 1.8rem;
    }

    .product-info__price-note {
        font-size: 0.75rem;
    }

    .product-info__custom {
        font-size: 0.85rem;
        padding: 10px 12px;
    }

    .product-contacts__title {
        font-size: 0.9rem;
    }

    .product-contact-btn {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .product-contact-btn svg {
        width: 20px;
        height: 20px;
    }

    .product-details {
        gap: 24px;
    }

    .product-section {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .product-section__title {
        font-size: 1.15rem;
        margin-bottom: 16px;
    }

    .product-section__title::before {
        width: 3px;
        height: 20px;
    }

    .product-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-feature {
        padding: 16px;
        border-radius: 12px;
    }

    .product-feature__title {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .product-feature__list li {
        font-size: 0.85rem;
        padding-left: 14px;
        margin-bottom: 8px;
        line-height: 1.5;
    }

    .product-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-spec {
        padding: 12px;
        border-radius: 10px;
    }

    .product-spec__label {
        font-size: 0.7rem;
    }

    .product-spec__value {
        font-size: 0.85rem;
    }

    .product-cta {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .product-cta__title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .product-cta__text {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .product-cta__buttons {
        flex-direction: column;
        gap: 10px;
    }

    .product-cta__btn {
        padding: 14px 24px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    .product-footer {
        padding: 20px 0;
        font-size: 0.8rem;
    }
}

/* Extra small screens (350px) */
@media (max-width: 380px) {
    .product-page {
        padding-top: 55px;
    }

    .product-page__container {
        padding: 12px 10px 30px;
    }

    .product-info__title {
        font-size: 1.15rem;
    }

    .product-info__price {
        font-size: 1.6rem;
    }

    .product-gallery__thumb {
        width: 45px;
        height: 45px;
    }

    .product-specs {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .product-spec {
        padding: 10px;
    }

    .product-spec__label {
        font-size: 0.65rem;
    }

    .product-spec__value {
        font-size: 0.8rem;
    }

    .product-contact-btn {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   Product Page Lightbox Overrides
   ============================================ */
.product-page .lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.product-page .lightbox.active {
    display: flex;
    opacity: 1;
}

.product-page .lightbox img {
    max-width: 85%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.product-page .lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    user-select: none;
    z-index: 10002;
    background: none;
    border: none;
    line-height: 1;
}

.product-page .lightbox-close:hover {
    color: #ddd;
}

.product-page .lightbox-prev,
.product-page .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s, transform 0.2s;
    user-select: none;
    z-index: 10001;
    border: none;
}

.product-page .lightbox-prev:hover,
.product-page .lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.product-page .lightbox-prev {
    left: 30px;
}

.product-page .lightbox-next {
    right: 30px;
}

.product-page .lightbox-counter {
    position: absolute;
    top: 30px;
    left: 30px;
    color: #fff;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 12px;
    border-radius: 20px;
    pointer-events: none;
    z-index: 10003;
}

.product-page .lightbox-dots {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10003;
}

.product-page .lightbox-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.product-page .lightbox-dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.product-page .lightbox-dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* Mobile lightbox */
@media (max-width: 768px) {
    .product-page .lightbox img {
        max-width: 95%;
        max-height: 70vh;
    }

    .product-page .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 32px;
    }

    .product-page .lightbox-prev,
    .product-page .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 22px;
        background: rgba(0, 0, 0, 0.4);
    }

    .product-page .lightbox-prev {
        left: 10px;
    }

    .product-page .lightbox-next {
        right: 10px;
    }

    .product-page .lightbox-counter {
        top: 15px;
        left: 15px;
        font-size: 14px;
        padding: 4px 10px;
    }

    .product-page .lightbox-dots {
        bottom: 20px;
    }
}