/* ═══════════════════════════════════════════════════════════════
   EYEGLASSES PAGE — Perfect Opticals
   Hero + accent-color overrides only.
   Product listing layout is shared via sunglasses.css (sg-* classes).
   ═══════════════════════════════════════════════════════════════ */

/* ── Eyeglasses Accent Override ── */
/* Override the gold accent with eyeglasses blue for shared sg- classes */
:root {
    --sg-accent: #7c9fd4;
    --sg-accent-dark: #4a7cbf;
    --sg-accent-dim: rgba(124, 159, 212, 0.12);
}

/* ── Hero Banner ── */
.eg-hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #080c14;
}

/* Layered background */
.eg-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(5, 5, 8, 0.88) 0%, rgba(5, 5, 8, 0.60) 38%, rgba(5, 5, 8, 0.18) 62%, rgba(5, 5, 8, 0.04) 100%),
        radial-gradient(ellipse 60% 80% at 75% 50%, rgba(124, 159, 212, 0.10) 0%, transparent 70%),
        linear-gradient(to top, rgba(5, 5, 8, 0.72) 0%, transparent 35%),
        url('/Images/Banner-Eyeglass.png') center top / cover no-repeat;
}

/* Particles — hidden */
.eg-particle,
.eg-p1,
.eg-p2,
.eg-p3 {
    display: none;
}

/* Hero content */
.eg-hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: 3rem 5% 1.5rem;
    text-align: center;
    margin: 0 auto;
}

/* Eyebrow */
.eg-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: 'Lato', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 4.5px;
    color: #7c9fd4;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    opacity: 0.9;
}

.eg-eyebrow-line {
    display: inline-block;
    width: 38px;
    height: 1px;
    background: #7c9fd4;
    opacity: 0.7;
}

/* Main heading */
.eg-hero-heading {
    font-family: 'Playfair Display', serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    margin-bottom: 1.4rem;
    line-height: 1;
}

.eg-heading-line1 {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: clamp(0.8rem, 1.7vw, 1.05rem);
    font-weight: 400;
    letter-spacing: 9px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.eg-heading-line2 {
    display: block;
    padding-bottom: 12px;
    line-height: 1.05;
}

.eg-heading-line2 em {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(3rem, 7.2vw, 5.6rem);
    font-weight: 700;
    letter-spacing: -1.5px;
    color: #b8d4f5;
    position: relative;
}

.eg-heading-line2 em::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 65%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #7c9fd4, transparent);
    border-radius: 2px;
    opacity: 0.6;
}

/* Sub text */
.eg-hero-sub {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.58);
    font-weight: 300;
    letter-spacing: 0.3px;
    line-height: 1.75;
    max-width: 540px;
    margin: 0 auto 1.8rem;
}

/* CTA Row */
.eg-hero-cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.eg-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 2rem;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.eg-hero-btn--primary {
    background: linear-gradient(135deg, #7bbfff 0%, #7c9fd4 60%, #4a7cbf 100%);
    color: #0a1020;
    border: none;
    box-shadow: 0 6px 24px rgba(74, 124, 191, 0.40);
}

.eg-hero-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(74, 124, 191, 0.55);
    color: #05080f;
}

/* Offer strip */
.eg-offer-strip {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    background: rgba(8, 12, 20, 0.80);
    border-top: 1px solid rgba(124, 159, 212, 0.22);
    padding: 0.95rem 5%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.eg-offer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.eg-offer-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.eg-offer-badge {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.eg-offer-flat {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.eg-offer-pct {
    font-size: 2.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #9dc3f0, #7c9fd4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.eg-offer-pct sup {
    font-size: 1rem;
}

.eg-offer-on {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.45);
    max-width: 76px;
    line-height: 1.3;
}

.eg-offer-brands {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.eg-brand-pill {
    padding: 4px 14px;
    border: 1px solid rgba(124, 159, 212, 0.35);
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 700;
    color: #7c9fd4;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: rgba(124, 159, 212, 0.07);
    transition: all 0.2s ease;
}

.eg-brand-pill:hover {
    background: rgba(124, 159, 212, 0.18);
    border-color: #7c9fd4;
}

/* ── Responsive — Hero only ── */
@media (max-width: 992px) {
    .eg-hero {
        min-height: 560px;
    }

    .eg-hero-content {
        padding: 2rem 4% 1rem;
    }
}

@media (max-width: 768px) {
    .eg-hero {
        min-height: 480px;
    }

    .eg-hero-content {
        padding: 2rem 5% 1rem;
    }

    .eg-offer-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
        padding: 0.75rem 5%;
    }
}

@media (max-width: 576px) {
    .eg-hero {
        min-height: 400px;
    }

    .eg-hero-cta-row {
        flex-direction: column;
        align-items: center;
        gap: 0.7rem;
    }

    .eg-hero-btn {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }

    .eg-offer-brands {
        display: none;
    }
}