/* Extruded optical lens product details. */
.bw-lens-details {
    --lens-orange: var(--brand-color, #f08200);
    --lens-ink: #202327;
    --lens-muted: #66707a;
    --lens-line: #e5e7eb;
    margin-top: 0;
    color: var(--lens-ink);
}

.bw-lens-nav-sticky {
    position: sticky;
    top: var(--header-current-height, var(--header-height, 100px));
    z-index: 20;
    margin-top: -20px;
    padding-top: 20px;
    background: #fff;
}

.bw-lens-nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border: 1px solid var(--lens-line);
    border-bottom: 3px solid var(--lens-orange);
    border-radius: 10px 10px 0 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 6px 18px rgba(24, 30, 36, 0.06);
    backdrop-filter: blur(10px);
}

.bw-lens-nav a {
    padding: 18px 8px 15px;
    color: #3f454b;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.bw-lens-nav a:hover,
.bw-lens-nav a:focus-visible {
    color: var(--lens-orange);
}

.bw-lens-section {
    scroll-margin-top: calc(var(--header-current-height, 100px) + 78px);
    padding: clamp(46px, 6vw, 82px) clamp(24px, 5vw, 72px);
    border-right: 1px solid var(--lens-line);
    border-bottom: 1px solid var(--lens-line);
    border-left: 1px solid var(--lens-line);
    background: #fff;
}

.bw-lens-section:last-child {
    border-radius: 0 0 12px 12px;
}

.bw-lens-section--soft {
    background:
        radial-gradient(circle at 94% 10%, rgba(240, 130, 0, 0.08), transparent 28%),
        #f6f7f8;
}

.bw-lens-feature-grid,
.bw-lens-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(34px, 6vw, 84px);
}

.bw-lens-feature-heading {
    margin-bottom: clamp(30px, 4vw, 52px);
}

.bw-lens-copy:only-child,
.bw-lens-fit:only-child {
    grid-column: 1 / -1;
    max-width: 860px;
}

.bw-lens-eyebrow {
    margin: 0 0 12px;
    color: var(--lens-orange);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.bw-lens-section h2 {
    margin: 0;
    color: var(--lens-ink);
    font-size: clamp(25px, 3vw, 40px);
    font-weight: 750;
    letter-spacing: -0.025em;
    line-height: 1.18;
}

.bw-lens-lead {
    margin: 18px 0 0;
    max-width: 760px;
    color: var(--lens-muted);
    font-size: clamp(14px, 1.15vw, 17px);
    line-height: 1.75;
}

.bw-lens-section-heading {
    margin-bottom: clamp(30px, 4vw, 52px);
    max-width: 850px;
}

.bw-lens-check-list,
.bw-lens-bullet-list {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.bw-lens-check-list {
    display: grid;
    gap: 13px;
}

.bw-lens-check-list li {
    position: relative;
    padding-left: 34px;
    color: #41474d;
    font-size: 15px;
    line-height: 1.6;
}

.bw-lens-check-list li::before {
    position: absolute;
    top: 0.15em;
    left: 0;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff2e3;
    color: var(--lens-orange);
    content: "\2713";
    font-size: 13px;
    font-weight: 800;
}

.bw-lens-bullet-list {
    display: grid;
    gap: 10px;
}

.bw-lens-bullet-list li {
    position: relative;
    padding-left: 20px;
    color: #535b63;
    font-size: 14px;
    line-height: 1.65;
}

.bw-lens-bullet-list li::before {
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lens-orange);
    content: "";
}

.bw-lens-media {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--lens-line);
    border-radius: 10px;
    background: #f7f7f7;
    box-shadow: 0 16px 38px rgba(28, 34, 40, 0.11);
}

.bw-lens-media {
    aspect-ratio: 1 / 1;
}

.bw-lens-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bw-lens-media--drawing,
.bw-lens-media--plot {
    aspect-ratio: 4 / 3;
    background: #fff;
    box-shadow: none;
}

.bw-lens-media--drawing img,
.bw-lens-media--plot img {
    object-fit: contain;
}

.bw-lens-fit {
    min-width: 0;
}

.bw-lens-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

.bw-lens-metrics > div {
    min-height: 116px;
    padding: 20px;
    border-top: 3px solid var(--lens-orange);
    background: #fff;
    box-shadow: 0 8px 22px rgba(25, 31, 36, 0.06);
}

.bw-lens-metrics strong {
    display: block;
    color: var(--lens-ink);
    font-size: clamp(22px, 2.3vw, 32px);
    font-weight: 500;
    line-height: 1.2;
}

.bw-lens-metrics span {
    display: block;
    margin-top: 8px;
    color: var(--lens-muted);
    font-size: 12px;
    line-height: 1.4;
}

.bw-lens-section--dark {
    border-color: #25292e;
    background:
        radial-gradient(circle at 88% 10%, rgba(240, 130, 0, 0.18), transparent 30%),
        #202327;
    color: #fff;
}

.bw-lens-section--dark h2 {
    color: #fff;
}

.bw-lens-section--dark .bw-lens-lead {
    color: rgba(255, 255, 255, 0.68);
}

.bw-lens-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.bw-lens-info-card,
.bw-lens-support-card {
    border-radius: 8px;
}

.bw-lens-info-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.055);
}

.bw-lens-info-card__image {
    margin: 0;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #30343a;
}

.bw-lens-info-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bw-lens-info-card__body {
    padding: clamp(22px, 3vw, 32px);
}

.bw-lens-info-card__body > span {
    color: var(--lens-orange);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.12em;
}

.bw-lens-info-card h3,
.bw-lens-support-card h3 {
    margin: 14px 0 9px;
    font-size: 18px;
    line-height: 1.35;
}

.bw-lens-info-card h3 {
    color: #fff;
}

.bw-lens-info-card p,
.bw-lens-support-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
}

.bw-lens-info-card p {
    color: rgba(255, 255, 255, 0.64);
}

.bw-lens-support-card {
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid #e4e6e8;
    background: rgba(255, 255, 255, 0.88);
}

.bw-lens-support-number {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: #fff0df;
    color: var(--lens-orange);
    font-size: 12px;
    font-weight: 750;
}

.bw-lens-support-card h3 {
    color: var(--lens-ink);
}

.bw-lens-support-card p {
    color: var(--lens-muted);
}

.bw-lens-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bw-lens-button {
    min-height: 48px;
    padding: 13px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--lens-orange);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.bw-lens-button:hover,
.bw-lens-button:focus-visible {
    transform: translateY(-1px);
}

.bw-lens-button--primary {
    background: var(--lens-orange);
    color: #fff;
}

.bw-lens-button--primary:hover,
.bw-lens-button--primary:focus-visible {
    background: #ff9418;
    color: #fff;
}

.bw-lens-button--secondary {
    background: transparent;
    color: var(--lens-orange);
}

.bw-lens-button--secondary:hover,
.bw-lens-button--secondary:focus-visible {
    background: #fff0df;
    color: #c96600;
}

.bw-lens-faq-list {
    border-top: 1px solid var(--lens-line);
}

.bw-lens-faq-item {
    border-bottom: 1px solid var(--lens-line);
}

.bw-lens-faq-item summary {
    position: relative;
    padding: 22px 52px 22px 0;
    color: #2d3237;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    list-style: none;
}

.bw-lens-faq-item summary::-webkit-details-marker {
    display: none;
}

.bw-lens-faq-item summary::after {
    position: absolute;
    top: 50%;
    right: 8px;
    color: var(--lens-orange);
    content: "+";
    font-size: 24px;
    font-weight: 400;
    transform: translateY(-50%);
}

.bw-lens-faq-item[open] summary::after {
    content: "\2212";
}

.bw-lens-faq-item > div {
    max-width: 850px;
    padding: 0 52px 22px 0;
}

.bw-lens-faq-item p {
    margin: 0;
    color: var(--lens-muted);
    font-size: 14px;
    line-height: 1.75;
}

@media (max-width: 1200px) {
    .bw-lens-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bw-lens-nav a:nth-child(-n + 3) {
        border-bottom: 1px solid var(--lens-line);
    }

    .bw-lens-section {
        scroll-margin-top: calc(var(--header-current-height, 100px) + 124px);
    }
}

@media (max-width: 900px) {
    .bw-lens-feature-grid,
    .bw-lens-split {
        grid-template-columns: 1fr;
    }

    .bw-lens-split--reverse .bw-lens-media {
        order: -1;
    }

    .bw-lens-card-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {
    .bw-lens-nav-sticky {
        margin-top: 0;
        padding-top: 0;
    }

    .bw-lens-nav {
        margin-right: calc(var(--frame-safe-x) * -1);
        margin-left: calc(var(--frame-safe-x) * -1);
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .bw-lens-section {
        scroll-margin-top: calc(var(--header-current-height, 100px) + 104px);
        margin-right: calc(var(--frame-safe-x) * -1);
        margin-left: calc(var(--frame-safe-x) * -1);
        padding: 40px var(--frame-safe-x);
        border-right: 0;
        border-left: 0;
    }

    .bw-lens-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .bw-lens-actions {
        flex-direction: column;
    }

    .bw-lens-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bw-lens-button {
        transition: none;
    }
}
