:root {
    --gold: #e0c297;
    --bg: #0a1215;
    --panel: #0c1418;
    --panel2: #0b1317;
    --muted: #b5c0c7;
    --line: #1a2429;
    --line-soft: rgba(224, 194, 151, .18);
    --rad: 18px;
    --media-height: 520px;
}

.product-page {
    background:
        radial-gradient(circle at 18% 10%, rgba(224, 194, 151, .06), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(224, 194, 151, .045), transparent 26%),
        var(--bg);
    padding: 68px 0 86px;
}

.product-shell {
    width: min(1480px, 92%);
    margin: 0 auto;
}

.product-page-head {
    margin-bottom: 24px;
}

.product-page-title {
    margin: 0;
    max-width: 980px;
    color: #fff;
    font-family: "Barlow", sans-serif;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.15;
    font-weight: 700;
    text-align: left;
    position: relative;
    padding-left: 18px;
}

.product-page-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .18em;
    width: 3px;
    height: .9em;
    border-radius: 999px;
    background: var(--gold);
    box-shadow: 0 0 18px rgba(224, 194, 151, .28);
}

.product-top-grid {
    display: grid;
    grid-template-columns: 1.08fr 1.16fr .72fr;
    gap: 22px;
    align-items: stretch;
}

.product-panel {
    height: var(--media-height);
    min-height: var(--media-height);
    max-height: var(--media-height);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .018), rgba(255, 255, 255, .006)),
        var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--rad);
    box-shadow: 0 16px 42px rgba(0, 0, 0, .42);
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.product-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(224, 194, 151, .07), transparent 48%);
    pointer-events: none;
    opacity: .9;
}

.gallery-panel {
    padding: 16px;
}

.gallery-main-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 13px;
    align-items: stretch;
}

.gallery-thumbs {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    overflow-y: auto;
    padding-right: 2px;
}

.gallery-thumbs::-webkit-scrollbar {
    width: 4px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: rgba(224, 194, 151, .35);
    border-radius: 999px;
}

.gallery-thumb {
    width: 70px;
    height: 70px;
    min-height: 70px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
    background: var(--panel2);
    cursor: pointer;
    opacity: .55;
    transition: .28s ease;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
    border-color: rgba(224, 194, 151, .58);
    transform: translateX(-2px);
    box-shadow: 0 10px 24px rgba(224, 194, 151, .12);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-main-box {
    min-width: 0;
    height: 100%;
    position: relative;
}

.gallery-main {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: var(--panel2);
    border: 1px solid rgba(255, 255, 255, .05);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 38px rgba(0, 0, 0, .36);
    cursor: zoom-in;
    position: relative;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(224, 194, 151, .42);
    background: rgba(10, 18, 21, .72);
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    transition: .28s ease;
    backdrop-filter: blur(8px);
}

.gallery-arrow:hover {
    background: var(--gold);
    color: #171717;
    box-shadow: 0 12px 28px rgba(224, 194, 151, .2);
}

.gallery-arrow.prev {
    left: 14px;
}

.gallery-arrow.next {
    right: 14px;
}

.info-panel {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
}

.product-description-top {
    margin: 0 0 10px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--line);
    color: #d7e0e5;
    font-size: 12.5px;
    line-height: 1.65;
    max-height: 64px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
}

.info-table-wrap {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    min-height: 0;
    overflow: hidden;
}

.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 5px;
}

.info-table tr {
    background: rgba(255, 255, 255, .018);
}

.info-table th,
.info-table td {
    border-bottom: 0;
    padding: 7px 12px;
    vertical-align: middle;
}

.info-table th {
    width: 42%;
    border-radius: 10px 0 0 10px;
    background: rgba(224, 194, 151, .06);
    color: var(--gold);
    text-align: left;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1.35;
}

.info-table td {
    border-radius: 0 10px 10px 0;
    background: rgba(255, 255, 255, .03);
    color: #eef3f6;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    direction: ltr;
    line-height: 1.4;
}

.info-table td span {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.info-table td.applications-cell {
    direction: initial;
}

.info-table td.applications-cell span {
    max-height: none;
    overflow: hidden;
    padding-right: 0;
}

.info-feature-icons {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 4px;
}

.feature-icons-inline {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.feature-icon-item {
    position: relative;
    text-align: center;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-box {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: .28s ease;
}

.feature-icon-item:hover .feature-icon-box {
    transform: translateY(-3px);
}

.feature-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: .28s ease;
}

.feature-icon-item:hover .feature-icon-box img {
    filter: drop-shadow(0 8px 14px rgba(224, 194, 151, .2));
}

.feature-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(8px);
    min-width: 140px;
    max-width: 240px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(7, 11, 14, .96);
    border: 1px solid rgba(224, 194, 151, .24);
    color: #fff;
    box-shadow: 0 18px 36px rgba(0, 0, 0, .44);
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
    z-index: 20;
    pointer-events: none;
    font-size: 11.5px;
    line-height: 1.7;
    font-weight: 700;
}

.feature-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 8px solid rgba(7, 11, 14, .96);
}

.feature-icon-item:hover .feature-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.video-panel {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-box-title {
    position: relative;
    z-index: 3;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    text-align: left;
    padding: 2px 0 0;
    flex: 0 0 auto;
}

.video-player-area {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.video-player-box {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, .05);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .38);
    flex: 1 1 auto;
}

.video-player-box video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
    border-radius: 18px;
}

.video-player-box video:fullscreen {
    width: 100vw;
    height: 100vh;
    object-fit: contain !important;
    background: #000;
}

.video-player-box video:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    object-fit: contain !important;
    background: #000;
}

.video-player-box video:-moz-full-screen {
    width: 100vw;
    height: 100vh;
    object-fit: contain !important;
    background: #000;
}

.video-switch-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(224, 194, 151, .5);
    background: rgba(10, 18, 21, .72);
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    transition: .25s ease;
    backdrop-filter: blur(8px);
}

.video-switch-arrow:hover {
    background: var(--gold);
    color: #111;
    box-shadow: 0 10px 24px rgba(224, 194, 151, .18);
}

.video-switch-arrow.prev {
    left: 12px;
}

.video-switch-arrow.next {
    right: 12px;
}

.video-counter {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 6;
    min-width: 54px;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(224, 194, 151, .38);
    background: rgba(10, 18, 21, .72);
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    backdrop-filter: blur(8px);
}

.video-empty {
    height: 100%;
    border-radius: 14px;
    border: 1px dashed rgba(224, 194, 151, .22);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
    position: relative;
    z-index: 2;
}

.faces-section {
    padding: 58px 0 96px;
    background: transparent;
}

.section-title {
    color: var(--gold);
    font-family: "Barlow", sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-align: left;
    margin: 0 0 34px;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 78px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.face-color-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 260px));
    gap: 22px;
    align-items: stretch;
    justify-content: start;
}

.face-color-card {
    width: 100%;
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(224, 194, 151, .065), rgba(255, 255, 255, .012)),
        var(--panel);
    border-radius: 18px;
    padding: 16px;
    cursor: pointer;
    transition: .32s ease;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    text-align: center;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .34);
}

.face-color-card:hover {
    transform: translateY(-6px);
    border-color: rgba(224, 194, 151, .38);
    box-shadow: 0 24px 54px rgba(0, 0, 0, .5), 0 0 28px rgba(224, 194, 151, .12);
}

.face-color-preview {
    width: 100%;
    min-height: 124px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--panel2);
    border: 1px solid rgba(255, 255, 255, .05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.face-color-preview img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 210px;
    object-fit: contain;
    display: block;
}

.face-color-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.face-color-name {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.face-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(224, 194, 151, .45);
    flex: 0 0 auto;
}

.face-color-count {
    color: var(--muted);
    font-size: 12px;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .96);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
    backdrop-filter: blur(14px);
}

.gallery-modal.is-open {
    display: flex;
}

.gallery-modal-content {
    position: relative;
    max-width: 96%;
    max-height: 96%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .9);
    background: #05090b;
}

.gallery-modal-content img {
    width: 100%;
    max-height: 92vh;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
}

.gallery-modal-content img.zoomed {
    transform: scale(1.8);
    cursor: zoom-out;
}

.face-modal-layout {
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.face-modal-head {
    width: min(920px, 92vw);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    padding: 0 4px;
}

.face-modal-head small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.face-modal-image-wrap {
    width: min(920px, 92vw);
    height: min(78vh, 860px);
    border-radius: 16px;
    overflow: hidden;
    background: #05090b;
    border: 1px solid rgba(224, 194, 151, .18);
    box-shadow: 0 40px 100px rgba(0, 0, 0, .86);
    display: flex;
    align-items: center;
    justify-content: center;
}

.face-modal-image-wrap img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    background: rgba(224, 194, 151, .18);
    border: 1px solid rgba(224, 194, 151, .74);
    border-radius: 50%;
    color: var(--gold);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .3s;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.modal-arrow:hover {
    background: var(--gold);
    color: #111;
    transform: translateY(-50%) scale(1.08);
}

.modal-arrow.prev {
    left: 28px;
}

.modal-arrow.next {
    right: 28px;
}

.close-modal {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    background: rgba(224, 194, 151, .18);
    border: 1px solid rgba(224, 194, 151, .74);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    backdrop-filter: blur(8px);
}

.close-modal:hover {
    background: var(--gold);
    color: #111;
}

@media (max-width: 1280px) {
    :root {
        --media-height: 500px;
    }

    .product-top-grid {
        grid-template-columns: 1fr 1fr .72fr;
    }

    .face-color-grid {
        grid-template-columns: repeat(3, minmax(220px, 260px));
    }
}

@media (max-width: 1080px) {
    :root {
        --media-height: 520px;
    }

    .product-top-grid {
        grid-template-columns: 1fr;
    }

    .product-panel {
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .gallery-panel,
    .info-panel,
    .video-panel {
        min-height: var(--media-height);
    }

    .video-player-area {
        min-height: 430px;
    }
}

@media (max-width: 768px) {
    :root {
        --media-height: 460px;
    }

    .product-page {
        padding: 58px 0 64px;
    }

    .product-shell {
        width: min(1480px, 94%);
    }

    .gallery-main-wrap {
        grid-template-columns: 66px minmax(0, 1fr);
        gap: 10px;
    }

    .gallery-thumb {
        width: 60px;
        height: 76px;
        min-height: 76px;
    }

    .feature-icon-item {
        width: 38px;
        height: 38px;
    }

    .feature-icon-box {
        width: 26px;
        height: 26px;
    }

    .face-color-grid {
        grid-template-columns: 1fr;
    }

    .video-player-area {
        min-height: 370px;
    }

    .modal-arrow {
        width: 44px;
        height: 44px;
        font-size: 21px;
    }

    .modal-arrow.prev {
        left: 12px;
    }

    .modal-arrow.next {
        right: 12px;
    }

    .close-modal {
        top: 18px;
        right: 18px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 520px) {
    :root {
        --media-height: 390px;
    }

    .gallery-main-wrap {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) 76px;
    }

    .gallery-main-box {
        grid-row: 1;
        height: 100%;
    }

    .gallery-thumbs {
        grid-row: 2;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        height: 76px;
        padding-right: 0;
        padding-bottom: 2px;
    }

    .gallery-thumb {
        width: 64px;
        height: 72px;
        min-width: 64px;
        min-height: 72px;
    }

    .video-player-area {
        min-height: 320px;
    }
}