/* ==========================================================================
   YUBEEN OPTICAL PRODUCT DETAIL — CRITICAL CSS
   Audited split: 2026-09-28

   Contains only first-paint Section 00 + Section 01 styles, plus the later
   Section 01 reticle circle-lock override that must remain with the Hero.
   Do not add lower-screen Section 02–09 styles to this file.
   ========================================================================== */

/* ==========================================================================
   YUBEEN OPTICAL PRODUCT DETAIL TEMPLATE
   Consolidated shared stylesheet — Site Assets v0.27.14

   Source order is preserved from Sections 00–09. Page-specific content and
   media configuration remain in Elementor markup through HTML/data attributes.
   ========================================================================== */


/* ===== SECTION 00 / ORIGINAL STYLE BLOCK 1 ===== */
/*
 * This selector also applies before Section 00 adds its loading class.
 * That prevents the first browser paint from exposing placeholder text.
 */
html:not(.yb-product-data-ready):not(.yb-product-data-error)
[data-yb-model-name],
html:not(.yb-product-data-ready):not(.yb-product-data-error)
[data-yb-model-primary],
html:not(.yb-product-data-ready):not(.yb-product-data-error)
[data-yb-model-secondary],
html:not(.yb-product-data-ready):not(.yb-product-data-error)
[data-yb-field] {
    visibility: hidden !important;
}

/* Reveal successfully bound model identity and specification values. */
html.yb-product-data-ready
[data-yb-model-name],
html.yb-product-data-ready
[data-yb-model-primary],
html.yb-product-data-ready
[data-yb-model-secondary],
html.yb-product-data-ready
[data-yb-field] {
    visibility: visible !important;
}

/* A field not returned by the product API must remain invisible. */
html.yb-product-data-ready
[data-yb-field-missing="true"] {
    visibility: hidden !important;
}

/*
 * On an API failure, never expose technical placeholders. Static page copy,
 * images, controls and navigation links remain available.
 */
html.yb-product-data-error
[data-yb-model-name],
html.yb-product-data-error
[data-yb-model-primary],
html.yb-product-data-error
[data-yb-model-secondary],
html.yb-product-data-error
[data-yb-field] {
    visibility: hidden !important;
}



/* ===== SECTION 00 / ORIGINAL STYLE BLOCK 2 ===== */
/* ==========================================================================
   00. SHARED PAGE TOKENS
   These variables establish the visual direction for the ED3 page.
   Later screens can reuse the same values.
   ========================================================================== */

.yb-ed3-page {
    --ed3-page-bg: #f5f5f7;
    --ed3-surface: rgba(255, 255, 255, 0.82);
    --ed3-surface-solid: #ffffff;
    --ed3-ink: #1d1d1f;
    --ed3-ink-soft: #424245;
    --ed3-muted: #6e6e73;
    --ed3-faint: #8e8e93;
    --ed3-line: rgba(29, 29, 31, 0.10);
    --ed3-line-soft: rgba(29, 29, 31, 0.065);
    --ed3-red: #e31e24;
    --ed3-red-hover: #c9161d;
    --ed3-radius-small: 12px;
    --ed3-radius-medium: 18px;
    --ed3-radius-large: 28px;
    --ed3-shadow-soft:
        0 14px 40px rgba(22, 22, 24, 0.07);
    --ed3-font:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        "Helvetica Neue",
        "Segoe UI",
        Arial,
        sans-serif;

    background: var(--ed3-page-bg);
    color: var(--ed3-ink);
    font-family: var(--ed3-font);
}

:root {
    --ed3-sticky-top: 0px;
    --ed3-anchor-offset: 118px;
}

/* ==========================================================================
   01. ELEMENTOR STICKY SHELL
   The Elementor parent container performs the actual sticky behavior.
   ========================================================================== */

.ed3-product-page,
.ed3-product-page > .e-con-inner {
    overflow: visible !important;
}

.ed3-product-nav-sticky {
    position: sticky !important;
    top: var(--ed3-sticky-top, 0px) !important;
    z-index: 9999 !important;

    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;

    align-self: stretch !important;
    overflow: visible !important;
    background: transparent !important;
}

.ed3-product-nav-sticky > .e-con-inner,
.ed3-product-nav-sticky .elementor-widget-html,
.ed3-product-nav-sticky .elementor-widget-html > .elementor-widget-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ed3-product-nav-sticky a {
    text-decoration: none;
}

/* ==========================================================================
   02. NAVIGATION SURFACE
   ========================================================================== */

.yb-ed3nav,
.yb-ed3nav * {
    box-sizing: border-box;
}

.yb-ed3nav {
    position: relative;
    width: 100%;
    min-height: 54px;

    border-top: 1px solid rgba(255, 255, 255, 0.58);
    border-bottom: 1px solid rgba(29, 29, 31, 0.085);

    background: rgba(249, 249, 251, 0.83);
    color: #1d1d1f;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Text",
        "Helvetica Neue",
        "Segoe UI",
        Arial,
        sans-serif;

    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.yb-ed3nav.is-stuck {
    background: rgba(249, 249, 251, 0.94);
    border-bottom-color: rgba(29, 29, 31, 0.11);
    box-shadow:
        0 10px 30px rgba(22, 22, 24, 0.075);
}

.yb-ed3nav__inner {
    width: min(1440px, calc(100% - 64px));
    min-height: 54px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) 104px;
    align-items: center;
    gap: 24px;
}

/* ==========================================================================
   03. MODEL IDENTITY
   ========================================================================== */

.yb-ed3nav__model {
    display: inline-flex;
    min-width: 0;
    align-items: baseline;
    gap: 7px;

    color: #1d1d1f;
    white-space: nowrap;
}

.yb-ed3nav__model span {
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.015em;
}

.yb-ed3nav__model small {
    color: #86868b;
    font-size: 9px;
    font-weight: 650;
    line-height: 1;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

/* ==========================================================================
   04. SECTION LINKS
   ========================================================================== */

.yb-ed3nav__links {
    display: flex;
    min-width: 0;
    height: 54px;
    align-items: stretch;
    justify-content: center;
    gap: clamp(18px, 2vw, 34px);

    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.yb-ed3nav__links::-webkit-scrollbar {
    display: none;
}

.yb-ed3nav__links a {
    display: inline-flex;
    position: relative;
    flex: 0 0 auto;
    align-items: center;

    color: #5f6065;
    font-size: 11px;
    font-weight: 590;
    line-height: 1;
    letter-spacing: -0.005em;
    white-space: nowrap;

    transition:
        color 150ms ease,
        opacity 150ms ease;
}

.yb-ed3nav__links a::after {
    position: absolute;
    right: 18%;
    bottom: -1px;
    left: 18%;
    height: 2px;
    border-radius: 999px 999px 0 0;
    background: #e31e24;

    content: "";
    opacity: 0;
    transform: scaleX(0.45);
    transform-origin: center;

    transition:
        opacity 150ms ease,
        transform 180ms ease;
}

.yb-ed3nav__links a:hover,
.yb-ed3nav__links a:focus-visible {
    color: #1d1d1f;
}

.yb-ed3nav__links a:focus-visible {
    outline: 2px solid rgba(227, 30, 36, 0.28);
    outline-offset: -5px;
    border-radius: 8px;
}

.yb-ed3nav__links a.is-active {
    color: #1d1d1f;
    font-weight: 680;
}

.yb-ed3nav__links a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

/* ==========================================================================
   05. INQUIRY ACTION
   ========================================================================== */

.yb-ed3nav__inquiry {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;

    border: 0;
    border-radius: 999px;
    background: #1d1d1f;
    color: #ffffff;

    font-size: 9.5px;
    font-weight: 680;
    line-height: 1;
    letter-spacing: 0.01em;

    box-shadow:
        0 4px 12px rgba(29, 29, 31, 0.10);

    transition:
        background-color 150ms ease,
        transform 150ms ease,
        box-shadow 150ms ease;
}

.yb-ed3nav__inquiry span {
    font-size: 11px;
    transform: translateY(-0.5px);
}

.yb-ed3nav__inquiry:hover,
.yb-ed3nav__inquiry:focus-visible {
    background: #e31e24;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow:
        0 8px 18px rgba(227, 30, 36, 0.18);
    outline: none;
}

/* ==========================================================================
   06. ANCHOR OFFSET
   ========================================================================== */

#ed3-overview,
#ed3-advantages,
#ed3-technology,
#ed3-optical-advantages,
#ed3-gallery,
#ed3-specifications,
#ed3-accessories,
#ed3-downloads,
#ed3-inquiry,
#product-inquiry {
    scroll-margin-top:
        var(--ed3-anchor-offset, 118px) !important;
}

/* ==========================================================================
   07. RESPONSIVE
   ========================================================================== */

@media (max-width: 1180px) {
    .yb-ed3nav__inner {
        width: min(100% - 40px, 1440px);
        grid-template-columns: 180px minmax(0, 1fr) 96px;
        gap: 16px;
    }

    .yb-ed3nav__links {
        justify-content: flex-start;
        gap: 25px;
    }
}

@media (max-width: 820px) {
    .yb-ed3nav {
        min-height: 50px;
    }

    .yb-ed3nav__inner {
        width: 100%;
        min-height: 50px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        padding: 0 14px;
    }

    .yb-ed3nav__model {
        grid-column: 1;
        min-height: 50px;
    }

    .yb-ed3nav__inquiry {
        grid-column: 2;
        min-height: 31px;
    }

    .yb-ed3nav__links {
        grid-column: 1 / -1;
        grid-row: 2;
        width: calc(100% + 28px);
        height: 42px;
        margin-left: -14px;
        padding: 0 14px;
        justify-content: flex-start;
        gap: 24px;

        border-top: 1px solid rgba(29, 29, 31, 0.055);
    }

    .yb-ed3nav__links a {
        font-size: 10.5px;
    }
}

@media (max-width: 480px) {
    .yb-ed3nav__model {
        gap: 5px;
    }

    .yb-ed3nav__model span {
        font-size: 11.5px;
    }

    .yb-ed3nav__model small {
        font-size: 7.5px;
    }

    .yb-ed3nav__inquiry {
        padding: 0 12px;
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yb-ed3nav *,
    .yb-ed3nav *::before,
    .yb-ed3nav *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}


/* ========================================================================== 
   v2.6 MOBILE: MINI iPHONE-STYLE GLASS TOP BUTTON

   Important design logic:
   - The button keeps a 44 px transparent touch target for usability.
   - Only the inner 30 px glass surface is visible, so it does not dominate
     product photography or large typography.
   - The border, blur and shadow are deliberately restrained.
   - The desktop navigation remains unchanged above 900 px.
   ========================================================================== */

.yb-ed3-floating-top {
    display: none;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    font: inherit;
}

@media (max-width: 900px) {
    /*
       Remove all mobile sticky-bar height. The floating button remains fixed
       independently of the Elementor container.
    */
    .ed3-product-nav-sticky,
    .ed3-product-nav-sticky > .e-con-inner,
    .ed3-product-nav-sticky .elementor-widget-html,
    .ed3-product-nav-sticky .elementor-widget-html > .elementor-widget-container {
        position: static !important;
        top: auto !important;
        z-index: auto !important;

        width: 100% !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: visible !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    /* Remove model name, section links and Inquiry bar on tablet/mobile. */
    .ed3-product-nav-sticky .yb-ed3nav {
        display: none !important;
    }

    /*
       Transparent 44 × 44 px touch target.
       The visible glass surface is the smaller child element below.
    */
    .yb-ed3-floating-top {
        position: fixed;
        right: calc(8px + env(safe-area-inset-right, 0px));
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        z-index: 9998;

        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        padding: 0;
        margin: 0;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        border: 0;
        border-radius: 15px;
        background: transparent;
        box-shadow: none;
        color: rgba(29, 29, 31, 0.72);

        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate3d(0, 7px, 0) scale(0.92);

        transition:
            opacity 180ms ease,
            visibility 180ms ease,
            transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    /*
       The visible control. This is intentionally much smaller than the
       clickable area, similar to compact iOS overlay controls.
    */
    .yb-ed3-floating-top__icon {
        width: 30px;
        height: 30px;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        border: 1px solid rgba(255, 255, 255, 0.58);
        border-radius: 11px;

        background:
            linear-gradient(
                145deg,
                rgba(255, 255, 255, 0.66),
                rgba(241, 241, 244, 0.48)
            );

        box-shadow:
            0 4px 13px rgba(20, 22, 28, 0.085),
            0 1px 3px rgba(20, 22, 28, 0.045),
            inset 0 1px 0 rgba(255, 255, 255, 0.68);

        backdrop-filter: blur(16px) saturate(150%);
        -webkit-backdrop-filter: blur(16px) saturate(150%);

        pointer-events: none;

        transition:
            transform 150ms ease,
            background 150ms ease,
            border-color 150ms ease,
            box-shadow 150ms ease;
    }

    .yb-ed3-floating-top__icon svg {
        width: 13px;
        height: 13px;
        display: block;
        overflow: visible;
    }

    .yb-ed3-floating-top__icon path {
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
        vector-effect: non-scaling-stroke;
    }

    .yb-ed3-floating-top.is-visible {
        opacity: 0.82;
        visibility: visible;
        pointer-events: auto;
        transform: translate3d(0, 0, 0) scale(1);
    }

    .yb-ed3-floating-top:active .yb-ed3-floating-top__icon {
        transform: scale(0.91);
        background:
            linear-gradient(
                145deg,
                rgba(255, 255, 255, 0.78),
                rgba(237, 237, 241, 0.58)
            );
        box-shadow:
            0 2px 7px rgba(20, 22, 28, 0.075),
            inset 0 1px 0 rgba(255, 255, 255, 0.72);
    }

    .yb-ed3-floating-top:focus-visible {
        outline: none;
    }

    .yb-ed3-floating-top:focus-visible .yb-ed3-floating-top__icon {
        border-color: rgba(0, 122, 255, 0.30);
        box-shadow:
            0 0 0 3px rgba(0, 122, 255, 0.12),
            0 4px 13px rgba(20, 22, 28, 0.085),
            inset 0 1px 0 rgba(255, 255, 255, 0.68);
    }

    @media (hover: hover) and (pointer: fine) {
        .yb-ed3-floating-top:hover {
            opacity: 1;
        }

        .yb-ed3-floating-top:hover .yb-ed3-floating-top__icon {
            border-color: rgba(255, 255, 255, 0.76);
            background:
                linear-gradient(
                    145deg,
                    rgba(255, 255, 255, 0.76),
                    rgba(245, 245, 247, 0.58)
                );
            box-shadow:
                0 6px 16px rgba(20, 22, 28, 0.095),
                inset 0 1px 0 rgba(255, 255, 255, 0.76);
            transform: translateY(-1px);
        }
    }

    /* With no mobile secondary bar, anchors only need site-header space. */
    :root {
        --ed3-anchor-offset: 72px;
    }
}

@media (max-width: 420px) {
    .yb-ed3-floating-top {
        right: calc(7px + env(safe-area-inset-right, 0px));
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));

        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
    }

    .yb-ed3-floating-top__icon {
        width: 28px;
        height: 28px;
        border-radius: 10px;
    }

    .yb-ed3-floating-top__icon svg {
        width: 12px;
        height: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yb-ed3-floating-top,
    .yb-ed3-floating-top__icon {
        transition: none;
    }
}



/* ===== SECTION 01 / ORIGINAL STYLE BLOCK 1 ===== */
/* ==========================================================================
   01. ROOT AND PAGE RHYTHM
   ========================================================================== */

#ed3-overview {
    scroll-margin-top:
        var(--ed3-anchor-offset, 118px);
}

.yb-ed3h5,
.yb-ed3h5 * {
    box-sizing: border-box;
}

.yb-ed3h5 {
    --h5-ink: #1d1d1f;
    --h5-ink-soft: #424245;
    --h5-muted: #6e6e73;
    --h5-faint: #86868b;
    --h5-line: rgba(29, 29, 31, 0.10);
    --h5-line-soft: rgba(29, 29, 31, 0.065);
    --h5-red: #e31e24;
    --h5-red-hover: #c9161d;
    --h5-surface: rgba(255, 255, 255, 0.68);
    --h5-font:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        "Helvetica Neue",
        "Segoe UI",
        Arial,
        sans-serif;

    position: relative;
    isolation: isolate;
    width: 100%;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 78% 18%,
            rgba(255, 255, 255, 0.96) 0%,
            rgba(255, 255, 255, 0.48) 25%,
            transparent 52%
        ),
        linear-gradient(
            135deg,
            #f7f7f9 0%,
            #f1f1f4 48%,
            #e9e9ed 100%
        );

    color: var(--h5-ink);
    font-family: var(--h5-font);
}

.yb-ed3h5 button {
    font: inherit;
    -webkit-tap-highlight-color:
        transparent;
}

.yb-ed3h5__ambient {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
        radial-gradient(
            ellipse at 71% 74%,
            rgba(91, 96, 108, 0.14),
            transparent 42%
        );
}

.yb-ed3h5__ambient::before {
    position: absolute;
    top: -25%;
    right: 10%;
    width: 420px;
    height: 420px;
    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.90) 0%,
            rgba(255, 255, 255, 0.18) 48%,
            transparent 72%
        );

    content: "";
    filter: blur(8px);
}

/* ==========================================================================
   02. LAYOUT
   ========================================================================== */

.yb-ed3h5__inner {
    position: relative;
    width: min(1440px, calc(100% - 64px));
    min-height: clamp(590px, 42vw, 690px);
    margin: 0 auto;

    display: grid;
    grid-template-columns:
        minmax(350px, 0.78fr)
        minmax(0, 1.42fr);
    align-items: stretch;
}

/* ==========================================================================
   03. LEFT CONTENT
   ========================================================================== */

.yb-ed3h5__content {
    position: relative;
    z-index: 12;
    max-width: 500px;
    padding:
        clamp(62px, 5.6vw, 92px)
        0
        clamp(52px, 4.5vw, 72px);

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.yb-ed3h5__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;

    color: #6e6e73;
    font-size: 10px;
    font-weight: 680;
    line-height: 1;
    letter-spacing: 0.105em;
    text-transform: uppercase;
}

.yb-ed3h5__eyebrow span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--h5-red);
    box-shadow:
        0 0 0 4px rgba(227, 30, 36, 0.08);
}

.yb-ed3h5__title {
    margin: 0;
    color: #161617;

    font-size:
        clamp(
            52px,
            5.1vw,
            78px
        );
    font-weight: 735;
    line-height: 0.91;
    letter-spacing: -0.065em;
}

.yb-ed3h5__title span {
    display: block;
}

.yb-ed3h5__title span:last-child {
    margin-top: 6px;
    color: #6e6e73;
    font-size: 0.69em;
    font-weight: 650;
    letter-spacing: -0.045em;
}

.yb-ed3h5__positioning {
    margin: 22px 0 0;
    color: #2b2b2e;

    font-size:
        clamp(
            14px,
            1.05vw,
            17px
        );
    font-weight: 680;
    line-height: 1.34;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.yb-ed3h5__description {
    max-width: 430px;
    margin: 17px 0 0;

    color: var(--h5-muted);
    font-size: 14px;
    line-height: 1.62;
}

/* ==========================================================================
   04. KEY SPECIFICATIONS
   ========================================================================== */

.yb-ed3h5__specs {
    width: min(100%, 488px);
    margin: 27px 0 0;
    padding: 6px;

    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.40);
    box-shadow:
        0 10px 28px rgba(27, 27, 29, 0.045),
        inset 0 1px 0 rgba(255, 255, 255, 0.76);

    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter:
        blur(20px) saturate(130%);
}

.yb-ed3h5__specs > div {
    min-width: 0;
    padding: 10px 12px;
}

.yb-ed3h5__specs > div + div {
    border-left: 1px solid var(--h5-line-soft);
}

.yb-ed3h5__specs dd {
    margin: 0;
    color: #1d1d1f;

    font-size: 15px;
    font-weight: 710;
    line-height: 1.08;
    letter-spacing: -0.025em;
    white-space: nowrap;
}

.yb-ed3h5__specs dt {
    margin-top: 7px;
    color: #86868b;

    font-size: 8px;
    font-weight: 650;
    line-height: 1.28;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}


/*
 * Dynamic values can be longer than the original ED3 hard-coded labels.
 * Allow controlled wrapping so values such as "First Focal Plane" remain
 * readable without overflowing the glass specification bar.
 */
.yb-ed3h5__specs dd {
    min-height: 1.1em;
    overflow-wrap: anywhere;
}

.yb-ed3h5__spec-value--long {
    font-size: 12.2px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    text-wrap: balance;
}

/*
 * Loading and error states prevent stale technical values from being shown.
 * Marketing copy and product imagery remain visible if the API is unavailable.
 */
.yb-ed3h5[data-yb-product-data-state="loading"]
[data-yb-model-primary],
.yb-ed3h5[data-yb-product-data-state="loading"]
[data-yb-model-secondary],
.yb-ed3h5[data-yb-product-data-state="loading"]
[data-yb-field] {
    opacity: 0.48;
}

.yb-ed3h5[data-yb-product-data-state="ready"]
[data-yb-model-primary],
.yb-ed3h5[data-yb-product-data-state="ready"]
[data-yb-model-secondary],
.yb-ed3h5[data-yb-product-data-state="ready"]
[data-yb-field] {
    opacity: 1;
    transition: opacity 180ms ease;
}

.yb-ed3h5[data-yb-product-data-state="error"]
.yb-ed3h5__specs,
.yb-ed3h5[data-yb-product-data-state="error"]
.yb-ed3h5__positioning {
    display: none;
}

/*
 * Section 01 CLS stabilization.
 *
 * The shared product-data runtime marks unavailable hero requirement blocks
 * with data-yb-requires-missing instead of using the HTML hidden attribute.
 * visibility:hidden keeps the original box dimensions in document flow so the
 * product visual below the content does not jump during hydration.
 */
.yb-ed3h5 [data-yb-requires-missing="true"] {
    visibility: hidden;
}

/* ==========================================================================
   06. PRODUCT VISUAL
   ========================================================================== */

.yb-ed3h5__visual {
    position: relative;
    z-index: 3;
    min-width: 0;
    min-height: 100%;
    perspective: 1300px;
}

.yb-ed3h5__background-model {
    position: absolute;
    top: 50%;
    left: 48%;
    z-index: 0;

    color: rgba(116, 116, 121, 0.075);

    font-size:
        clamp(
            230px,
            22vw,
            390px
        );
    font-weight: 740;
    line-height: 0.8;
    letter-spacing: -0.105em;
    white-space: nowrap;

    pointer-events: none;
    user-select: none;

    transform: translate(-50%, -50%);
}

.yb-ed3h5__halo {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;

    width: min(58%, 520px);
    aspect-ratio: 1;
    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.78) 0%,
            rgba(255, 255, 255, 0.34) 34%,
            rgba(186, 188, 195, 0.15) 59%,
            transparent 74%
        );

    filter: blur(6px);
    pointer-events: none;

    transform: translate(-50%, -50%);
}

.yb-ed3h5__stage {
    position: absolute;
    inset: 34px 124px 32px 0;
    z-index: 5;
    isolation: isolate;
    transform-style: preserve-3d;
}

.yb-ed3h5__stage::after {
    position: absolute;
    left: 17%;
    bottom: 11%;
    z-index: 0;

    width: 68%;
    height: 8%;
    border-radius: 50%;

    background:
        radial-gradient(
            ellipse at center,
            rgba(25, 25, 28, 0.26) 0%,
            rgba(25, 25, 28, 0.12) 42%,
            transparent 74%
        );

    content: "";
    filter: blur(16px);
    opacity: 0.72;
    pointer-events: none;

    transform: scaleX(1.08);
    transition: opacity 220ms ease;
}

.yb-ed3h5__visual:not([data-active-view="0"])
.yb-ed3h5__stage::after {
    opacity: 0.18;
}

.yb-ed3h5__view {
    position: absolute;
    inset: 0;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 1;

    opacity: 0;
    visibility: hidden;

    transform:
        translate3d(24px, 0, 0)
        scale(0.97);

    transition:
        opacity 430ms ease,
        visibility 430ms ease,
        transform 680ms
            cubic-bezier(
                0.22,
                1,
                0.36,
                1
            );
}

.yb-ed3h5__view.is-active {
    opacity: 1;
    visibility: visible;

    transform:
        translate3d(0, 0, 0)
        scale(1);
}

.yb-ed3h5__view img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;

    transition:
        transform 180ms ease-out,
        filter 350ms ease;
}

.yb-ed3h5__view--main img {
    width: 97%;
    height: 97%;
    mix-blend-mode: multiply;

    filter:
        contrast(1.025)
        brightness(0.985)
        drop-shadow(
            0 28px 24px
            rgba(29, 29, 31, 0.18)
        );

    transform: translate3d(-4px, 5px, 0);
}

.yb-ed3h5__view--detail,
.yb-ed3h5__view--reticle {
    padding: 48px 54px;
}

.yb-ed3h5__view--detail img {
    width: min(86%, 760px);
    height: 86%;
    object-fit: cover;
    object-position: center;

    border-radius: 24px;
    box-shadow:
        0 26px 70px rgba(24, 24, 26, 0.17);
}

.yb-ed3h5__view--reticle img {
    width: min(74%, 610px);
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center;

    border: 8px solid rgba(255, 255, 255, 0.68);
    border-radius: 50%;
    box-shadow:
        0 28px 72px rgba(24, 24, 26, 0.18);
}

/* ==========================================================================
   07. VIEW SELECTOR
   ========================================================================== */

.yb-ed3h5__selector {
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 20;

    width: 102px;

    display: flex;
    flex-direction: column;
    gap: 6px;

    transform: translateY(-50%);
}

.yb-ed3h5__selector button {
    appearance: none;
    -webkit-appearance: none;

    min-height: 101px;
    margin: 0;
    padding: 7px;

    display: grid;
    grid-template-rows:
        66px auto;
    gap: 5px;

    position: relative;

    border: 1px solid rgba(29, 29, 31, 0.075);
    border-radius: 17px;

    background: rgba(255, 255, 255, 0.55);
    color: #5c5c61;

    cursor: pointer;

    box-shadow:
        0 10px 26px rgba(24, 24, 26, 0.055);

    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter:
        blur(16px) saturate(130%);

    transition:
        background-color 170ms ease,
        border-color 170ms ease,
        color 170ms ease,
        transform 170ms ease,
        box-shadow 170ms ease;
}

.yb-ed3h5__selector button:hover,
.yb-ed3h5__selector button:focus-visible,
.yb-ed3h5__selector button.is-active {
    border-color: rgba(29, 29, 31, 0.12);
    background: rgba(255, 255, 255, 0.90);
    color: #1d1d1f;

    transform: translateX(-2px);

    box-shadow:
        0 12px 30px rgba(24, 24, 26, 0.075);
    outline: none;
}

.yb-ed3h5__selector button::after {
    position: absolute;
    right: 14px;
    bottom: -1px;
    left: 14px;

    height: 2px;
    border-radius: 999px 999px 0 0;
    background: var(--h5-red);

    content: "";
    opacity: 0;
    transform: scaleX(0.45);
    transform-origin: center;

    transition:
        opacity 160ms ease,
        transform 180ms ease;
}

.yb-ed3h5__selector button.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.yb-ed3h5__thumbnail {
    display: flex;
    width: 100%;
    height: 66px;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    border-radius: 12px;
    background: rgba(245, 245, 247, 0.72);
}

.yb-ed3h5__thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.yb-ed3h5__selector
button:nth-child(2)
.yb-ed3h5__thumbnail img,
.yb-ed3h5__selector
button:nth-child(3)
.yb-ed3h5__thumbnail img {
    object-fit: cover;
    mix-blend-mode: normal;
}

.yb-ed3h5__selector
button:first-child
.yb-ed3h5__thumbnail img {
    transform: scale(1.12);
}

.yb-ed3h5__selector-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 0 2px;
}

.yb-ed3h5__selector-copy small {
    color: #a1a1a6;
    font-size: 7px;
    font-weight: 650;
    letter-spacing: 0.055em;
}

.yb-ed3h5__selector-copy strong {
    color: currentColor;
    font-size: 8px;
    font-weight: 670;
    line-height: 1;
    letter-spacing: 0.005em;
}

.yb-ed3h5__selector
button.is-active
.yb-ed3h5__selector-copy small {
    color: var(--h5-red);
}

/* ==========================================================================
   08. INDICATOR
   ========================================================================== */

.yb-ed3h5__indicator {
    position: absolute;
    right: 41px;
    bottom: 26px;
    z-index: 20;

    display: flex;
    gap: 5px;
}

.yb-ed3h5__indicator span {
    width: 15px;
    height: 2px;
    border-radius: 999px;
    background: rgba(29, 29, 31, 0.16);

    transition:
        width 180ms ease,
        background-color 180ms ease;
}

.yb-ed3h5__indicator span.is-active {
    width: 28px;
    background: var(--h5-red);
}

/* ==========================================================================
   09. RESPONSIVE
   ========================================================================== */

@media (max-width: 1240px) {
    .yb-ed3h5__inner {
        width: min(1180px, calc(100% - 44px));
        grid-template-columns:
            minmax(330px, 0.82fr)
            minmax(0, 1.28fr);
    }

    .yb-ed3h5__content {
        max-width: 465px;
    }

    .yb-ed3h5__stage {
        right: 108px;
    }

    .yb-ed3h5__selector {
        width: 94px;
    }

    .yb-ed3h5__selector button {
        min-height: 94px;
        grid-template-rows:
            60px auto;
    }

    .yb-ed3h5__thumbnail {
        height: 60px;
    }
}

@media (max-width: 980px) {
    .yb-ed3h5__inner {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .yb-ed3h5__content {
        max-width: 680px;
        padding:
            60px 0 24px;
    }

    .yb-ed3h5__visual {
        min-height: 500px;
    }

    .yb-ed3h5__background-model {
        left: 46%;
    }
}

@media (max-width: 680px) {
    .yb-ed3h5__inner {
        width: calc(100% - 28px);
    }

    .yb-ed3h5__content {
        padding:
            44px 0 18px;
    }

    .yb-ed3h5__eyebrow {
        font-size: 8.5px;
    }

    .yb-ed3h5__title {
        font-size:
            clamp(
                46px,
                14.5vw,
                64px
            );
    }

    .yb-ed3h5__positioning {
        margin-top: 18px;
        font-size: 13px;
    }

    .yb-ed3h5__description {
        font-size: 13px;
    }

    .yb-ed3h5__specs {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        border-radius: 16px;
    }

    .yb-ed3h5__specs > div:nth-child(3) {
        border-left: 0;
    }

    .yb-ed3h5__specs > div:nth-child(n + 3) {
        border-top: 1px solid var(--h5-line-soft);
    }

    .yb-ed3h5__visual {
        min-height: 430px;
        margin: 0 -14px;
    }

    .yb-ed3h5__stage {
        inset:
            24px
            76px
            48px
            -4px;
    }

    .yb-ed3h5__background-model {
        top: 46%;
        left: 42%;
        font-size:
            clamp(
                165px,
                58vw,
                245px
            );
    }

    .yb-ed3h5__halo {
        left: 43%;
        width: 78%;
    }

    .yb-ed3h5__selector {
        right: 2px;
        width: 72px;
        gap: 6px;
    }

    .yb-ed3h5__selector button {
        min-height: 78px;
        padding: 5px;
        grid-template-rows:
            51px auto;
        border-radius: 13px;
    }

    .yb-ed3h5__thumbnail {
        height: 51px;
        border-radius: 9px;
    }

    .yb-ed3h5__selector-copy small {
        display: none;
    }

    .yb-ed3h5__selector-copy {
        justify-content: center;
    }

    .yb-ed3h5__selector-copy strong {
        font-size: 6.5px;
    }

    .yb-ed3h5__indicator {
        right: 22px;
        bottom: 18px;
    }

    .yb-ed3h5__view--detail,
    .yb-ed3h5__view--reticle {
        padding: 35px 16px;
    }

    .yb-ed3h5__view--reticle img {
        width: 82%;
        border-width: 5px;
    }
}

@media (max-width: 420px) {

    .yb-ed3h5__specs dd {
        font-size: 14px;
    }

    .yb-ed3h5__visual {
        min-height: 390px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yb-ed3h5 *,
    .yb-ed3h5 *::before,
    .yb-ed3h5 *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}



/* ===== SECTION 01 / ORIGINAL STYLE BLOCK 2 ===== */
/* ==========================================================
   02. 参数栏：更轻、更薄
   ========================================================== */

.yb-ed3h5 .yb-ed3h5__specs {
    margin-top: 25px;
    padding: 5px;

    border-color: rgba(255, 255, 255, 0.58);
    border-radius: 15px;

    background: rgba(255, 255, 255, 0.32);

    box-shadow:
        0 7px 20px rgba(27, 27, 29, 0.035),
        inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.yb-ed3h5 .yb-ed3h5__specs > div {
    padding-top: 8px;
    padding-bottom: 8px;
}

.yb-ed3h5 .yb-ed3h5__specs > div + div {
    border-left-color: rgba(29, 29, 31, 0.045);
}

.yb-ed3h5 .yb-ed3h5__specs dd {
    font-size: 14.5px;
}

.yb-ed3h5 .yb-ed3h5__specs dt {
    margin-top: 6px;
    color: #8e8e93;
    font-size: 8px;
}


/* ==========================================================
   03. 右侧缩略图：增加右侧留白
   ========================================================== */

.yb-ed3h5 .yb-ed3h5__selector {
    right: 12px;
}

.yb-ed3h5 .yb-ed3h5__indicator {
    right: 48px;
}


/* 中等尺寸桌面和平板 */

@media (max-width: 1240px) {
    .yb-ed3h5 .yb-ed3h5__selector {
        right: 10px;
    }

    .yb-ed3h5 .yb-ed3h5__indicator {
        right: 42px;
    }
}


/* 手机 */

@media (max-width: 680px) {
    .yb-ed3h5 .yb-ed3h5__selector {
        right: 8px;
    }

    .yb-ed3h5 .yb-ed3h5__indicator {
        right: 24px;
    }
}





/* ========================================================================== 
   2026-08-15 — OPTICAL PRODUCT DETAIL / RETICLE CIRCLE LOCK

   Scope:
   - Shared by every optical product detail page using the Section 01 hero.
   - Keeps the reticle presentation perfectly circular at every viewport size.

   Why:
   - The previous rule used width + aspect-ratio while inheriting max-height
     constraints from the generic hero image rule. On some narrow / short
     viewports the browser could clamp only one axis, visually stretching the
     reticle into an ellipse.
   - This rule assigns an explicit equal width and height per breakpoint, so the
     presentation cannot become elliptical.
   ========================================================================== */

.yb-ed3h5__view--reticle img {
    --yb-optical-reticle-size: clamp(280px, 32vw, 610px);

    width: var(--yb-optical-reticle-size) !important;
    height: var(--yb-optical-reticle-size) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    flex: 0 0 var(--yb-optical-reticle-size) !important;
    aspect-ratio: 1 / 1 !important;
    box-sizing: border-box !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 50% !important;
}

@media (max-width: 1180px) {
    .yb-ed3h5__view--reticle img {
        --yb-optical-reticle-size: clamp(270px, 44vw, 500px);
    }
}

@media (max-width: 767px) {
    .yb-ed3h5__view--reticle img {
        --yb-optical-reticle-size: min(78vw, 360px);
    }
}

@media (max-width: 420px) {
    .yb-ed3h5__view--reticle img {
        --yb-optical-reticle-size: min(76vw, 315px);
    }
}

