/* =========================================================
   AP VISION — DESIGNER EYEWEAR
   ========================================================= */

.eyewear-hero,
.eyewear-intro,
.eyewear-collection,
.eyewear-experience,
.eyewear-visit {
    font-family: "DM Sans", sans-serif;
}

.eyewear-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.19em;
    text-transform: uppercase;
    color: #47748b;
    margin-bottom: 22px;
}

/* HERO */

.eyewear-hero {
    background: #f4f6f7;
    overflow: hidden;
}

.eyewear-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    min-height: 590px;
    padding-top: 75px;
    padding-bottom: 75px;
}

.eyewear-hero-copy h1 {
    font-family: "Manrope", sans-serif;
    font-size: clamp(3rem, 5.2vw, 5.5rem);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 1.13;
    color: #182c3c;
    margin-bottom: 28px;
}

.eyewear-hero-copy h1 em {
    font-style: normal;
    color: #47748b;
}

.eyewear-hero-copy > p:not(.eyewear-eyebrow) {
    max-width: 500px;
    font-size: 1.08rem;
    line-height: 1.9;
    color: #66717b;
    margin-bottom: 30px;
}

.eyewear-primary-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #244b63;
    text-decoration: none;
    padding-bottom: 9px;
    border-bottom: 1px solid #244b63;
    transition: gap 0.2s ease;
}

.eyewear-primary-link:hover {
    gap: 22px;
}

.eyewear-hero-visual {
    position: relative;
    min-height: 430px;
    background: linear-gradient(135deg, #e4e9ec, #ccd8de);
    border-radius: 8px;
    overflow: hidden;
}

.eyewear-hero-visual img {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
}

.eyewear-hero-visual-label {
    position: absolute;
    bottom: 24px;
    left: 28px;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    color: #244b63;
    font-weight: 700;
    z-index: 1;
}

/* INTRO */

.eyewear-intro {
    padding: 95px 0;
    background: #fff;
}

.eyewear-intro-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 75px;
    align-items: center;
}

.eyewear-intro h2,
.eyewear-collection h2,
.eyewear-experience h2,
.eyewear-visit h2 {
    font-family: "Manrope", sans-serif;
    font-size: clamp(2rem, 3.5vw, 3.6rem);
    line-height: 1.2;
    letter-spacing: -0.045em;
    font-weight: 600;
}

.eyewear-intro h2 {
    color: #182c3c;
}

.eyewear-intro-inner > p {
    font-size: 1.04rem;
    color: #697680;
    line-height: 1.95;
}

/* COLLECTION */

.eyewear-collection {
    padding: 95px 0 120px;
    background: #f7f8f9;
}

.eyewear-collection-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 42px;
}

.eyewear-collection-heading h2 {
    color: #182c3c;
    margin-bottom: 15px;
}

.eyewear-collection-heading > div > p:last-child {
    color: #77828b;
}

.eyewear-count {
    font-size: 0.85rem;
    color: #61717d;
    white-space: nowrap;
}

.eyewear-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #dfe4e7;
}

.eyewear-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.eyewear-filter {
    border: 1px solid #d9e0e4;
    background: #fff;
    color: #536575;
    border-radius: 100px;
    padding: 11px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.eyewear-filter:hover,
.eyewear-filter.active {
    background: #244b63;
    color: #fff;
    border-color: #244b63;
}

.eyewear-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 17px;
    border: 1px solid #d9e0e4;
    background: #fff;
    border-radius: 7px;
    min-width: 260px;
}

.eyewear-search i {
    color: #7c8992;
}

.eyewear-search input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #182c3c;
    font: inherit;
    font-size: 0.88rem;
}

.eyewear-search:focus-within {
    border-color: #47748b;
    outline: 2px solid rgba(71,116,139,0.15);
}

/* BRAND GRID */

.eyewear-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.eyewear-brand-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e4e9ec;
    background: #fff;
    border-radius: 9px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.eyewear-brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 35px rgba(18,42,57,0.08);
}

.eyewear-brand-image {
    position: relative;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f1f4f5, #e7edef);
    overflow: hidden;
}

.eyewear-brand-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 22px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.35s ease;
}

.eyewear-brand-image.has-image img {
    opacity: 1;
}

.eyewear-brand-card:hover .eyewear-brand-image.has-image img {
    transform: scale(1.05);
}

.eyewear-brand-placeholder {
    padding: 15px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.3rem, 2.3vw, 2rem);
    font-weight: 600;
    letter-spacing: 0.025em;
    color: #455e6e;
    text-align: center;
}

.eyewear-brand-image.has-image .eyewear-brand-placeholder {
    display: none;
}

.eyewear-brand-info {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 24px 25px;
}

.eyewear-brand-info h3 {
    grid-column: 1;
    font-size: 1.1rem;
    color: #20394b;
    margin: 0;
}

.eyewear-brand-info span {
    grid-column: 1;
    color: #8a969e;
    font-size: 0.78rem;
}

.eyewear-brand-info i {
    grid-column: 2;
    grid-row: 1 / 3;
    color: #47748b;
    font-size: 1.1rem;
}

.eyewear-empty {
    padding: 55px 20px;
    text-align: center;
    color: #657681;
}

/* EXPERIENCE */

.eyewear-experience {
    background: #fff;
    padding: 110px 0;
}

.eyewear-experience-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 85px;
}

.eyewear-experience h2 {
    color: #182c3c;
}

.eyewear-experience-inner > div:last-child p {
    color: #697680;
    line-height: 1.95;
    margin-bottom: 23px;
}

/* VISIT CTA */

.eyewear-visit {
    padding: 100px 0;
    background: #244b63;
    color: #fff;
    text-align: center;
}

.eyewear-visit .eyewear-eyebrow {
    color: #a7c5d4;
}

.eyewear-visit h2 {
    color: #fff;
    margin-bottom: 22px;
}

.eyewear-visit-inner > p:not(.eyewear-eyebrow) {
    max-width: 600px;
    margin: 0 auto;
    color: #d3e0e7;
    line-height: 1.9;
}

.eyewear-visit-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.eyewear-visit-button {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    color: #244b63;
    padding: 16px 24px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
}

.eyewear-visit-phone {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* MOBILE */

@media (max-width: 900px) {
    .eyewear-hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 40px;
    }

    .eyewear-hero-visual {
        min-height: 330px;
    }

    .eyewear-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eyewear-intro-inner,
    .eyewear-experience-inner {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 600px) {
    .eyewear-hero-inner {
        padding-top: 60px;
        padding-bottom: 55px;
    }

    .eyewear-hero-visual {
        min-height: 240px;
    }

    .eyewear-intro,
    .eyewear-collection,
    .eyewear-experience,
    .eyewear-visit {
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .eyewear-grid {
        grid-template-columns: 1fr;
    }

    .eyewear-collection-heading {
        align-items: flex-start;
    }

    .eyewear-toolbar {
        align-items: stretch;
    }

    .eyewear-search {
        width: 100%;
        min-width: 0;
    }
}

/* =========================================================
   EYEWEAR IMAGE LIGHTBOX
   ========================================================= */

/* Clickable image */

.eyewear-brand-image.clickable {
    cursor: zoom-in;
}

.eyewear-brand-image.clickable:focus-visible {
    outline: 3px solid #47748b;
    outline-offset: -3px;
}

/* Prevent scrolling behind popup */

body.eyewear-lightbox-open {
    overflow: hidden;
}

/* Dark overlay */

.eyewear-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;

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

    padding: 25px;

    background: rgba(12, 24, 34, 0.78);
    backdrop-filter: blur(8px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.eyewear-lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Popup bubble */

.eyewear-lightbox-content {
    position: relative;

    width: 100%;
    max-width: 850px;
    max-height: 90vh;

    overflow-y: auto;

    background: #fff;
    border-radius: 18px;

    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.28);

    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s ease;
}

.eyewear-lightbox.active .eyewear-lightbox-content {
    transform: translateY(0) scale(1);
}

/* X close button */

.eyewear-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;

    width: 42px;
    height: 42px;

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

    border: 1px solid #e1e6e9;
    border-radius: 50%;

    background: #fff;
    color: #263e4d;

    font-size: 1rem;
    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.eyewear-lightbox-close:hover {
    background: #edf2f5;
    transform: rotate(90deg);
}

/* Enlarged image */

.eyewear-lightbox-image {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 350px;
    padding: 55px 55px 25px;

    background: #f8fafb;
}

.eyewear-lightbox-image img {
    display: block;
    width: 100%;
    max-width: 680px;
    max-height: 60vh;

    object-fit: contain;
}

/* Brand details */

.eyewear-lightbox-info {
    padding: 25px 40px 35px;
    text-align: center;
}

.eyewear-lightbox-info h2 {
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    font-weight: 600;
    color: #20394b;
    margin-bottom: 10px;
}

.eyewear-lightbox-info p {
    font-size: 0.92rem;
    color: #7b8993;
    line-height: 1.7;
}

/* Mobile */

@media (max-width: 600px) {
    .eyewear-lightbox {
        padding: 14px;
    }

    .eyewear-lightbox-content {
        border-radius: 13px;
        max-height: 85vh;
    }

    .eyewear-lightbox-image {
        min-height: 230px;
        padding: 65px 18px 15px;
    }

    .eyewear-lightbox-image img {
        max-height: 45vh;
    }

    .eyewear-lightbox-info {
        padding: 20px 20px 28px;
    }

    .eyewear-lightbox-close {
        top: 12px;
        right: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eyewear-lightbox,
    .eyewear-lightbox-content,
    .eyewear-lightbox-close {
        transition: none;
    }
}