@import url('https://db.onlinewebfonts.com/c/392d212424c7b7469378d9b505d69c1a?family=ITC+Handel+Gothic+Arabic+W23Bd');

/* Global link styles */
a {
    color: #e67e22;
    text-decoration: none;
    border-bottom: 1px solid rgba(230,126,34,0.35);
    transition: color 0.18s, border-color 0.18s;
}
a:hover, a:focus {
    color: #c0392b;
    border-bottom-color: #c0392b;
}
/* "Find out more" style links */
.service-detail a:not(.cta-btn) {
    font-weight: 600;
}

/* MECS symptoms + image layout */
.mecs-symptoms-wrap {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin: 1rem 0 1.5rem 0;
    flex-wrap: wrap;
}
.mecs-symptoms {
    flex: 1 1 280px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.mecs-symptoms li {
    padding: 0.35em 0 0.35em 1.4em;
    position: relative;
    color: #333;
}
.mecs-symptoms li::before {
    content: '\2022';
    position: absolute;
    left: 0.4em;
    color: #e67e22;
    font-size: 1.1em;
}
.mecs-image {
    flex: 0 0 300px;
}
.mecs-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
@media (max-width: 600px) {
    .mecs-symptoms-wrap { flex-direction: column; }
    .mecs-image { flex: none; width: 100%; }
    .mecs-image img { max-width: 100%; }
}

/* Brand name highlight */
.brand-highlight {
    font-family: 'ITC Handel Gothic Arabic W23Bd', 'Segoe UI', Arial, sans-serif;
    color: #e67e22;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Service detail page styles */
.service-detail {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 2.5em 2.5em 2.5em 2.5em;
    max-width: 860px;
    margin: 2em auto 2em auto;
}
.service-detail .page-title {
    font-size: 2rem;
    color: #1a1a1a;
    margin: 0 0 0.6em 0;
    padding-bottom: 0.4em;
    border-bottom: 3px solid #e67e22;
    font-family: inherit;
    font-weight: 700;
}
.service-detail h2 {
    color: #1a1a1a;
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0.65em 2.2em 0.65em 0.7em;
    border-left: 4px solid #e67e22;
    line-height: 1.3;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
    border-radius: 0 4px 4px 0;
    position: relative;
    transition: background 0.18s;
}
.service-detail h2:hover {
    background: #fff3e6;
}
.service-detail h2::after {
    content: '+';
    position: absolute;
    right: 0.8em;
    font-size: 1.25em;
    font-weight: 300;
    color: #e67e22;
    line-height: 1;
    transition: transform 0.25s;
}
.service-detail h2.accordion-open::after {
    content: '\2212'; /* minus sign */
}
.accordion-wrap {
    border-top: 1px solid rgba(230,126,34,0.15);
    margin-top: 0.7em;
}
.accordion-wrap:first-child {
    border-top: none;
    margin-top: 0;
}
.accordion-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), padding 0.25s;
    padding: 0 0.2em;
}
.accordion-body.open {
    max-height: 3000px;
    padding: 0.5em 0.2em 0.8em 0.2em;
}

/* ── Search page ───────────────────────────────────────── */
.search-page {
    max-width: 860px;
    margin: 2em auto;
    padding: 0 1em;
}
.search-page .page-title {
    font-size: 2rem;
    color: #1a1a1a;
    margin: 0 0 0.6em 0;
    padding-bottom: 0.4em;
    border-bottom: 3px solid #e67e22;
    font-weight: 700;
}
.search-form {
    margin: 0 0 1.5em 0;
}
.search-input-wrap {
    display: flex;
    max-width: 640px;
}
.search-input-wrap input[type="search"] {
    flex: 1;
    padding: 0.75em 1em;
    font-size: 1.05em;
    border: 2px solid #ccc;
    border-right: none;
    border-radius: 6px 0 0 6px;
    outline: none;
    transition: border-color 0.18s;
    background: #fff;
    color: #1a1a1a;
    box-shadow: none;
}
.search-input-wrap input[type="search"]:focus {
    border-color: #e67e22;
    box-shadow: none;
}
.search-input-wrap button {
    padding: 0.75em 1.1em;
    background: #e67e22;
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.18s;
    margin: 0;
    width: auto;
}
.search-input-wrap button:hover {
    background: #c0392b;
}
.search-meta {
    color: #555;
    margin-bottom: 1.2em;
    font-size: 0.97em;
}
.search-hint, .search-noresults {
    color: #555;
    font-size: 1.05em;
    padding: 1.5em;
    background: #fff;
    border-left: 4px solid #e67e22;
    border-radius: 0 6px 6px 0;
}
.search-results {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}
.search-result {
    background: #fff;
    border-radius: 8px;
    padding: 1.2em 1.5em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid #e67e22;
}
.search-result h2 {
    margin: 0 0 0.4em 0 !important;
    font-size: 1.15rem !important;
    border: none !important;
    padding: 0 !important;
    background: none !important;
    cursor: default !important;
    display: block !important;
}
.search-result h2::after { display: none !important; }
.search-result h2 a {
    color: #1a1a1a;
    font-weight: 700;
    border-bottom: none;
}
.search-result h2 a:hover { color: #e67e22; }
.search-result__snippet {
    color: #444;
    font-size: 0.97em;
    line-height: 1.65;
    margin: 0.3em 0 0.6em 0;
}
.search-result__snippet mark {
    background: rgba(230,126,34,0.22);
    color: #1a1a1a;
    padding: 0 0.15em;
    border-radius: 2px;
    font-weight: 600;
}
.search-result__link {
    font-size: 0.82em;
    color: #888;
    border-bottom: none;
    word-break: break-all;
}
.search-result__link:hover { color: #e67e22; }
/* Search icon in nav */
.search-nav-link {
    display: flex;
    align-items: center;
    padding: 0.4em 0.6em;
    border-bottom: none !important;
}
.search-nav-link svg {
    stroke: #ddd;
    transition: stroke 0.18s;
}
.search-nav-link:hover svg,
.search-nav-link:focus svg { stroke: #fff; }
.service-detail p, .service-detail ul {
    color: #333;
    line-height: 1.75;
}
.service-detail ul {
    list-style: none;
    padding-left: 0;
    margin: 0.6em 0 1.2em 0;
}
.service-detail ul li {
    position: relative;
    padding-left: 1.4em;
    margin-bottom: 0.55em;
}
.service-detail ul li::before {
    content: '\2022';
    position: absolute;
    left: 0.3em;
    color: #e67e22;
    font-size: 1.15em;
    line-height: 1.5;
}
.service-lead {
    font-size: 1.15em;
    color: #555;
    margin-bottom: 1.2em;
}
.service-detail h3 {
    color: #1a1a1a;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}
.service-steps {
    list-style: none;
    padding: 0;
    margin: 1em 0 1.5em 0;
}
.service-steps li {
    margin-bottom: 0.7em;
    padding-left: 1.2em;
    position: relative;
}
.service-steps li:before {
    content: "\2022";
    color: #e67e22;
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: 0.1em;
}
.service-cta {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 1.2em 1em;
    text-align: center;
    margin-top: 2em;
    font-size: 1.1em;
    color: #ccc;
    border: 1px solid rgba(230,126,34,0.3);
}
.service-cta a {
    color: #e67e22;
    font-weight: bold;
}

/* ── Eyewear page — brand cards ──────────────────────────────── */
.eyewear-brand-cards {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 1.2rem 0 0.5rem;
}
.eyewear-brand-card {
    flex: 1 1 260px;
    background: #fafafa;
    border: 2px solid rgba(230,126,34,0.25);
    border-radius: 10px;
    padding: 1.4rem 1.2rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.eyewear-brand-card:hover {
    border-color: #e67e22;
    box-shadow: 0 4px 14px rgba(230,126,34,0.12);
}
.eyewear-brand-card__icon {
    font-size: 2.2em;
    margin-bottom: 0.4em;
}
.eyewear-brand-card h3 {
    margin: 0 0 0.5em;
    color: #1a1a1a;
    font-size: 1.1rem;
}
.eyewear-brand-card p {
    font-size: 0.97em;
    color: #444;
    line-height: 1.7;
    margin: 0 0 0.9em;
}
.eyewear-brand-card__link {
    font-size: 0.88em;
    font-weight: 600;
    color: #e67e22;
    border-bottom: none;
}
.eyewear-brand-card__link:hover { color: #c0392b; }

@media (max-width: 600px) {
    .eyewear-brand-cards { flex-direction: column; }
    .eyewear-brand-card  { flex: 1 1 auto; }
}
/* About timeline style */
.about-timeline {
    display: flex;
    flex-direction: column;
    gap: 2.2em;
    margin: 2.5em 0 2em 0;
    border-left: 4px solid #e67e22;
    padding-left: 2em;
}
.timeline-event {
    display: flex;
    align-items: flex-start;
    gap: 1.2em;
    position: relative;
}
.timeline-event .about-icon {
    font-size: 2.1em;
    color: #e67e22;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 0.3em 0.5em;
    margin-top: 0.1em;
    min-width: 2.2em;
    text-align: center;
}
.timeline-event h3 {
    margin: 0 0 0.2em 0;
    color: #1a1a1a;
    font-size: 1.15em;
}
.timeline-event p {
    margin: 0 0 0.2em 0;
    color: #444;
    font-size: 1em;
}
.about-visit {
    margin-top: 2.5em;
    font-size: 1.1em;
    color: #444;
    text-align: left;
}
/* About page enhancements */
.about-hero {
    display: flex;
    align-items: center;
    gap: 2em;
    margin-bottom: 2em;
}
.about-team-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 3px solid #e67e22;
}
.about-intro {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 0.5em;
}
.about-highlights {
    display: flex;
    gap: 1.5em;
    margin: 2em 0 1em 0;
    flex-wrap: wrap;
    justify-content: center;
}
.about-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 1.5em 1em;
    text-align: center;
    flex: 1 1 220px;
    min-width: 200px;
    max-width: 260px;
    border: 2px solid rgba(230,126,34,0.25);
    margin-bottom: 1em;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.about-card:hover {
    border-color: #e67e22;
    box-shadow: 0 4px 16px rgba(230,126,34,0.12);
}
.about-icon {
    font-size: 2em;
    color: #e67e22;
    margin-bottom: 0.3em;
    display: block;
}
.about-community {
    margin-top: 2em;
    background: #1a1a1a;
    color: #ccc;
    padding: 1.5em 2em;
    border-radius: 8px;
    border-left: 4px solid #e67e22;
}
.about-community h2, .about-community h3 {
    color: #fff;
}
.about-testimonial {
    font-style: italic;
    color: #ccc;
    background: #2a2a2a;
    border-left: 4px solid #e67e22;
    margin: 1.5em 0 0.5em 0;
    padding: 1em 1.5em;
    border-radius: 6px;
}
.about-testimonial span {
    display: block;
    margin-top: 0.5em;
    color: #e67e22;
    font-weight: bold;
}
/* Services page grid and cards */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    margin: 2em 0;
    justify-content: center;
}
.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 2em 1.5em 1.5em 1.5em;
    text-align: center;
    text-decoration: none;
    border-bottom: none;
    color: #222;
    width: 260px;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 2px solid rgba(230,126,34,0.2);
}
.service-card:hover {
    box-shadow: 0 6px 18px rgba(230,126,34,0.18);
    border-color: #e67e22;
    transform: translateY(-4px) scale(1.03);
}
.service-icon {
    font-size: 2.5em;
    margin-bottom: 0.5em;
    color: #e67e22;
}
.service-card h3 {
    margin: 0.5em 0 0.3em 0;
    color: #1a1a1a;
}
.service-card p {
    font-size: 1em;
    color: #555;
}
.service-card--emergency {
    border-color: #e67e22;
}
.service-card--emergency:hover {
    box-shadow: 0 6px 18px rgba(230,126,34,0.18);
    border-color: #c0392b;
}
.service-card--emergency h3 {
    color: #c0392b;
}
.emergency-callout {
    background: #fff3cd;
    border-left: 5px solid #e67e22;
    border-radius: 6px;
    padding: 1em 1.5em;
    margin-bottom: 1.5em;
    font-size: 1.1em;
}
.emergency-callout a {
    color: #c0392b;
}
/* Audiology page layout */
.audiology-intro {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.audiology-partner-logo img {
    max-width: 220px;
    width: 100%;
    border-radius: 8px;
}
.audiology-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.audiology-section--reverse {
    flex-direction: row-reverse;
}
.audiology-section__img {
    flex: 0 0 220px;
}
.audiology-section__img img {
    width: 100%;
    max-width: 220px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.audiology-section__text {
    flex: 1 1 300px;
}
.audiology-section__text h2 {
    margin-top: 0;
}
@media (max-width: 600px) {
    .audiology-section,
    .audiology-section--reverse {
        flex-direction: column;
    }
    .audiology-section__img {
        flex: none;
        width: 100%;
    }
    .audiology-section__img img {
        max-width: 100%;
    }
}

/* Home page enhancements */
.lead {
    font-size: 1.25em;
    margin-bottom: 1em;
    color: #444;
}
.cta-btn {
    display: inline-block;
    margin-top: 1.5em;
    padding: 0.7em 1.5em;
    background: #e67e22;
    color: #fff;
    border-radius: 5px;
    border-bottom: none;
    font-size: 1.05em;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 0.3px;
    transition: background 0.2s;
}
.cta-btn:hover {
    background: #c0392b;
    color: #fff;
    border-bottom: none;
}
.frames-browse-btn {
    background: #e67e22;
    display: block;
    text-align: center;
    margin: 2em auto 0 auto;
    max-width: 260px;
    font-size: 1.05em;
    letter-spacing: 0.3px;
}
.frames-browse-btn:hover {
    background: #c0392b;
    color: #fff;
    border-bottom: none;
}
#browse-frames > h2 {
    text-align: center;
    color: #1a1a1a;
    font-size: 1.4rem;
    margin: 1.5em 0 0.8em 0;
    padding-top: 1em;
    border-top: 3px solid #e67e22;
}
.highlights {
    margin: 2em 0 2em 0;
    background: #1a1a1a;
    color: #ccc;
    padding: 1.5em 2em;
    border-radius: 8px;
    border-left: 4px solid #e67e22;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.highlights h2, .highlights h3 {
    color: #fff;
}
.features-list {
    list-style: none;
    padding: 0;
    margin: 1em 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
}
.features-list li {
    flex: 1 1 220px;
    background: #2a2a2a;
    color: #ccc;
    border-radius: 6px;
    padding: 1em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    border-left: 4px solid #e67e22;
}
.featured-frames {
    margin: 2em 0 2em 0;
    text-align: center;
}
.featured-frames .gallery {
    justify-content: center;
    gap: 1.5em;
}

/* ── Homepage new sections ───────────────────────────────────── */
/* Shop front photo */
.home-shopfront {
    margin: 1.5rem auto 0;
    max-width: 700px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}
.home-shopfront img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

/* Intro section */
.home-intro {
    background: #fff;
    border-radius: 10px;
    padding: 2rem 2.5rem;
    max-width: 860px;
    margin: 2rem auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 1.05em;
    line-height: 1.8;
    color: #333;
}
.home-intro p { margin: 0 0 1em 0; }
.home-intro p:last-of-type { margin-bottom: 0; }
.home-intro__tagline {
    font-size: 1.15em;
    font-style: italic;
    color: #e67e22;
    font-weight: 600;
    border-left: 4px solid #e67e22;
    padding-left: 0.8em;
    margin: 1.2em 0 1.4em !important;
}
.home-intro__ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.cta-btn--secondary {
    background: #1a1a1a;
    color: #fff;
}
.cta-btn--secondary:hover {
    background: #e67e22;
    color: #fff;
    border-bottom: none;
}

/* Poem section */
.home-poem {
    max-width: 700px;
    margin: 2rem auto;
    text-align: center;
}
.home-poem h3 {
    color: #1a1a1a;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    border-bottom: 3px solid #e67e22;
    display: inline-block;
    padding-bottom: 0.3em;
}
.poem-card {
    background: #1a1a1a;
    color: #ddd;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
    border-top: 4px solid #e67e22;
    font-size: 1.05em;
    line-height: 1.85;
    text-align: left;
}
.poem-card p {
    margin: 0 0 1.1em 0;
    color: #ddd;
}
.poem-card p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
    .home-intro        { padding: 1.4rem 1.1rem; }
    .home-shopfront img { height: 200px; }
    .poem-card         { padding: 1.4rem 1.1rem; }
    .home-intro__ctas  { flex-direction: column; }
    .home-intro__ctas .cta-btn { text-align: center; }
}
/* Pagination styles */
.pagination {
    text-align: center;
    margin: 2em 0 1em 0;
    font-size: 1.1em;
}
.pagination a {
    display: inline-block;
    margin: 0 0.3em;
    padding: 0.4em 0.8em;
    background: #fff;
    color: #e67e22;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid rgba(230,126,34,0.35);
    transition: background 0.2s, color 0.2s;
}
.pagination a:hover {
    background: #e67e22;
    color: #fff;
    border-color: #e67e22;
}
.pagination .current-page {
    display: inline-block;
    margin: 0 0.3em;
    padding: 0.4em 0.8em;
    background: #1a1a1a;
    color: #e67e22;
    border-radius: 4px;
    font-weight: bold;
    border: 1px solid #1a1a1a;
}
/* About page sidebar layout */
.about-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    max-width: 1100px;
    margin: 2rem auto;
    padding: 1rem;
}
.about-layout main {
    flex: 2 1 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 2rem;
}
.sidebar-quick-info {
    flex: 1 1 250px;
    border: 1px solid #ccc;
    padding: 1.5em 1em;
    background: #f9f9f9;
    border-radius: 8px;
    max-width: 320px;
    min-width: 220px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-top: 0.5em;
    font-size: 1rem;
}
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #eceae6;
    color: #222;
}
header.site-header {
    background: #1a1a1a;
    color: #fff;
    padding: 0;
    border-bottom: 4px solid #e67e22;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35);
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: 90px;
}
.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    border-bottom: none;
    flex-shrink: 0;
}
.site-logo {
    height: 76px;
    width: auto;
    border-radius: 8px;
    background: transparent;
    padding: 0;
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.site-title {
    font-family: 'ITC Handel Gothic Arabic W23Bd', 'ITC Handel Gothic Arabic W23', 'Segoe UI', Arial, sans-serif;
    font-weight: normal;
    font-weight: 700;
    font-size: 2.4rem;
    font-weight: 400;
    margin: 0;
    letter-spacing: 1px;
    color: #fff;
    white-space: nowrap;
    text-transform: uppercase;
}
.site-title span {
    color: #e67e22;
}
.site-tagline {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 1rem;
    font-style: italic;
    color: #aaa;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.main-nav a {
    color: #ddd;
    text-decoration: none;
    border-bottom: none;
    font-weight: 500;
    font-size: 0.95em;
    padding: 0.45em 0.9em;
    border-radius: 4px;
    letter-spacing: 0.3px;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
}
.main-nav a:hover, .main-nav a:focus {
    background: #e67e22;
    color: #fff;
    text-decoration: none;
}
.main-nav a.active {
    color: #e67e22;
    font-weight: 700;
}
.main-nav .fb-link {
    display: flex;
    align-items: center;
    padding: 0.4em 0.6em;
}
.main-nav .fb-link svg {
    fill: #ddd;
    transition: fill 0.18s;
}
.main-nav .fb-link:hover svg, .main-nav .fb-link:focus svg {
    fill: #fff;
}
/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 780px) {
    /* ── Shrink the sticky header ───────────────────────────── */
    .header-inner {
        padding: 0 0.9rem;
        min-height: 64px;
    }
    .site-logo  { height: 48px; }
    .site-title { font-size: 1.55rem; }
    .site-tagline { font-size: 0.78rem; }

    /* ── Show hamburger, hide full nav ─────────────────────── */
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: 64px;           /* matches the 64px header height above */
        left: 0;
        right: 0;
        background: #1a1a1a;
        border-top: 2px solid #e67e22;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        z-index: 999;
    }
    .main-nav.open { max-height: 600px; }  /* tall enough for all items */
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
    }
    .main-nav li { width: 100%; }
    .main-nav a {
        display: block;
        padding: 0.75em 1.5em;
        border-radius: 0;
        font-size: 1em;
    }
}
/* legacy nav rules removed — handled by .main-nav */
.hero {
    background: #1a1a1a;
    padding: 2.5rem 2rem;
    text-align: center;
    border-bottom: 3px solid #e67e22;
}
.hero h1, .hero h2 {
    color: #fff;
    margin-top: 0;
}
.hero p {
    color: #ccc;
}
main {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem;
}
footer {
    background: #1a1a1a;
    color: #aaa;
    text-align: center;
    padding: 1.5rem 0;
    border-top: 4px solid #e67e22;
    margin-top: 2rem;
    font-size: 0.95rem;
}
footer a {
    color: #e67e22;
    border-bottom: none;
}
footer a:hover {
    color: #fff;
}
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}
input, textarea {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.18s;
}
input:focus, textarea:focus {
    border-color: #e67e22;
    outline: none;
    box-shadow: 0 0 0 3px rgba(230,126,34,0.15);
}
button {
    background: #e67e22;
    color: #fff;
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}
button:hover {
    background: #c0392b;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}
.gallery img {
    width: 160px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.glasses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.glasses-item {
    background: #f4f8fb;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.glasses-item img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.details-pane {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.details-content {
    background: #fff;
    border-radius: 10px;
    padding: 2rem 2.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    text-align: center;
    position: relative;
    max-width: 350px;
    width: 90vw;
}
.details-content img {
    width: 160px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.details-content h4 {
    margin: 0.5rem 0 0.5rem 0;
}
.details-content .price {
    font-weight: bold;
    color: #e67e22;
    margin-top: 0.5rem;
}
.close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
}
.close-btn:hover {
    color: #e67e22;
}
/* Admin page form styles */
.admin-form {
    max-width: 900px;
    margin: 1.5rem auto;
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 2px solid #e3f2fd;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #005a87;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: #e67e22;
    outline: none;
    box-shadow: 0 0 5px rgba(230,126,34,0.3);
}
.form-row {
    display: flex;
    gap: 1rem;
}
.form-row .form-group {
    flex: 1;
}
.submit-btn {
    background: #4caf50;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}
.submit-btn:hover {
    background: #388e3c;
}
/* Products table styles */
.products-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.products-table th, .products-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e3f2fd;
}
.products-table th {
    background: #005a87;
    color: #fff;
    font-weight: bold;
}
.products-table tr:hover {
    background: #f8f9fa;
}
.products-table button {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}
.products-table button[name="delete_id"] {
    background: #ff0000 !important;
    color: #fff !important;
}
.products-table button[name="delete_id"]:hover {
    background: #cc0000 !important;
}
.products-table button[onclick] {
    background: #2196f3;
    color: #fff;
}
.products-table button[onclick]:hover {
    background: #1976d2;
}
.products-table select {
    padding: 0.3rem;
    border-radius: 4px;
    border: 1px solid #ccc;
}
/* Admin tabs */
.admin-tabs {
    margin: 1rem 0;
}
.tab-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: #e3f2fd;
    color: #005a87;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    margin-right: 0.5rem;
    transition: background 0.2s;
}
.tab-btn.active {
    background: #005a87;
    color: #fff;
}

.frames-browse-wrap {
    max-width: 860px;
    margin: 1.5rem auto 2.5rem;
    text-align: center;
}

/* ── About page — opening day photo ─────────────────────────────── */
.about-opening-img {
    margin: 1.2rem 0 0;
    border-radius: 10px;
    overflow: hidden;
    max-width: 560px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.13);
}
.about-opening-img img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.about-opening-img figcaption {
    background: #1a1a1a;
    color: #ccc;
    font-size: 0.82rem;
    padding: 0.55rem 0.9rem;
    font-style: italic;
}
.about-opening-img figcaption::before {
    content: '📷  ';
}
.tab-btn:hover {
    background: #b3d7f2;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* ══════════════════════════════════════════════════════════════════
   PERSONAL GLASSES RACK
══════════════════════════════════════════════════════════════════ */

/* Nav rack link */
.rack-nav-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #ddd;
    text-decoration: none;
    border-bottom: none;
    padding: 0.45em 0.6em;
    border-radius: 4px;
    font-size: 0.88em;
    font-weight: 500;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
}
.main-nav .rack-nav-link:hover,
.main-nav .rack-nav-link:focus,
.main-nav .rack-nav-link.active {
    background: #e67e22;
    color: #fff;
}
.rack-nav-badge { font-size: 0.85em; }

/* ── Rack page layout ─────────────────────────────────────────── */
.rack-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.2rem 3rem;
}

/* Auth box (login/register) */
.rack-auth-box {
    max-width: 460px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.rack-auth-box h2 {
    margin-top: 0;
    color: #1a1a1a;
    font-size: 1.3rem;
    border-left: 4px solid #e67e22;
    padding-left: 0.6rem;
}
.rack-auth-intro {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.rack-form .form-group {
    margin-bottom: 1rem;
}
.rack-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}
.rack-form input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.rack-form input:focus {
    outline: none;
    border-color: #e67e22;
}
.rack-switch {
    margin-top: 1.2rem;
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}

/* Messages */
.rack-msg {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}
.rack-msg--error   { background: #fdecea; color: #c0392b; border-left: 4px solid #c0392b; }
.rack-msg--success { background: #eafaf1; color: #1e8449; border-left: 4px solid #27ae60; }

/* Rack header bar */
.rack-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: #fff;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.rack-greeting { margin: 0; font-size: 0.95rem; color: #444; }
.rack-logout-btn {
    background: none;
    border: 1.5px solid #ccc;
    border-radius: 5px;
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: #555;
    transition: border-color 0.2s, color 0.2s;
}
.rack-logout-btn:hover { border-color: #c0392b; color: #c0392b; }

/* ── Rack reset / forgot-PIN ─────────────────────────────── */

/* "Forgotten your email?" <details> disclosure */
.rack-forgot-email-note {
    margin-top: 1rem;
    font-size: 0.88rem;
    color: #555;
    border: 1px solid #e0dbd4;
    border-radius: 8px;
    padding: 0.55rem 0.9rem;
    background: #faf9f7;
}
.rack-forgot-email-note summary {
    cursor: pointer;
    font-weight: 600;
    color: #444;
    list-style: none;
}
.rack-forgot-email-note summary::-webkit-details-marker { display: none; }
.rack-forgot-email-note summary::before {
    content: '▸ ';
    font-size: 0.75em;
}
details[open].rack-forgot-email-note summary::before { content: '▾ '; }
.rack-forgot-email-note p {
    margin-top: 0.6rem;
    line-height: 1.55;
}

/* Code display box (shown on the verify screen) */
.rack-code-display {
    background: #fef9f0;
    border: 2px solid #e67e22;
    border-radius: 8px;
    padding: 0.9rem 1.2rem;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    color: #555;
    text-align: center;
}
.rack-code-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: #e67e22;
    margin-top: 0.3rem;
}

/* Large code input on the verify screen */
.rack-code-input {
    font-size: 1.6rem !important;
    letter-spacing: 0.3em;
    text-align: center;
    max-width: 200px;
    padding: 0.5rem 0.8rem !important;
}

.rack-count-info {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: #444;
}

/* Rack grid */
.rack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}
.rack-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}
.rack-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.rack-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}
.rack-no-img {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0eeea;
    color: #aaa;
    font-size: 0.85rem;
}
.rack-card-body {
    padding: 0.7rem 0.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.rack-card-name  { font-size: 0.9rem; margin: 0; color: #1a1a1a; }
.rack-card-meta  { font-size: 0.8rem; color: #777; margin: 0; }
.rack-card-price { font-size: 0.95rem; color: #e67e22; font-weight: 700; margin: 0.2rem 0; }
.rack-remove-btn {
    margin-top: auto;
    background: none;
    border: 1.5px solid #e0ddd8;
    border-radius: 5px;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    color: #888;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.rack-remove-btn:hover { border-color: #c0392b; color: #c0392b; }

/* Empty state */
.rack-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #777;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* Try-on section */
.rack-tryon-section {
    background: #fff;
    border-radius: 12px;
    padding: 1.8rem 2rem;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    border-top: 4px solid #e67e22;
}
.rack-tryon-section h2 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #1a1a1a;
}
.rack-tryon-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
    resize: vertical;
    transition: border-color 0.2s;
}
.rack-tryon-form textarea:focus {
    outline: none;
    border-color: #e67e22;
}
.rack-tryon-note {
    font-size: 0.82rem;
    color: #888;
    margin: 0.4rem 0 0;
}

/* Save to Rack button on frame cards */
.rack-save-btn {
    display: block;
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.35rem 0;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 0 0 6px 6px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.18s;
    letter-spacing: 0.3px;
}
.rack-save-btn:hover { background: #e67e22; }
.rack-save-btn--saved {
    background: #27ae60;
    cursor: default;
}
.rack-save-btn--saved:hover { background: #27ae60; }

/* Floating rack badge on frame-browser */
.rack-float-badge {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.1rem;
    border-radius: 30px;
    text-decoration: none;
    border-bottom: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 500;
    transition: background 0.18s;
}
.rack-float-badge:hover { background: #e67e22; color: #fff; }
.rack-float-badge--guest { background: #555; }
.rack-float-badge--guest:hover { background: #e67e22; }

/* ── Contact page ─────────────────────────────────────────────── */
.contact-page { max-width: 1100px; margin: 2rem auto; padding: 0 1.2rem 3rem; }
.contact-page .page-title { text-align: center; color: #e67e22; margin-bottom: 1.8rem; }

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}
@media (max-width: 780px) {
    .contact-layout { grid-template-columns: 1fr; }
}

/* Photo — constrained, not full-bleed */
.contact-photo {
    width: 100%;
    max-width: 420px;
    height: 260px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}

.contact-details h2 { color: #e67e22; margin-top: 0; }
.contact-details address { font-style: normal; }
.contact-details address p { margin: 0.4rem 0; }
.contact-details a { color: #e67e22; }
.contact-details a:hover { color: #c0392b; }

/* Opening hours table */
.hours-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.95em; }
.hours-table th {
    background: #1a1a1a;
    color: #e67e22;
    text-align: left;
    padding: 0.5rem 0.8rem;
}
.hours-table td { padding: 0.45rem 0.8rem; border-bottom: 1px solid #e0e0e0; }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table tr:nth-child(even) td { background: #f9f9f9; }

/* Contact form column */
.contact-form-col h2 { color: #e67e22; margin-top: 0; }
.contact-form { display: flex; flex-direction: column; gap: 0.9rem; }
.contact-form label { font-weight: 600; font-size: 0.93em; color: #333; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.95em;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.18s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: #e67e22; outline: none; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button[type="submit"] {
    background: #e67e22;
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.18s;
}
.contact-form button[type="submit"]:hover { background: #c0392b; }

.cf-success {
    background: #e6f9ed;
    border: 1px solid #2ecc71;
    color: #1a7a40;
    padding: 0.85rem 1.1rem;
    border-radius: 6px;
    margin-bottom: 1.2rem;
    font-size: 0.97em;
}
.cf-success--big {
    text-align: center;
    padding: 2rem 1.5rem;
    border-width: 2px;
}
.cf-success--big .cf-success__icon {
    font-size: 3rem;
    line-height: 1;
    color: #2ecc71;
    margin-bottom: 0.5rem;
}
.cf-success--big h3 {
    margin: 0.3rem 0 0.6rem;
    font-size: 1.4rem;
    color: #1a7a40;
}
.cf-success--big p { margin: 0.3rem 0; color: #1a7a40; }
.cf-success--big a { color: #1a7a40; font-weight: 700; }
.cf-error {
    background: #fdecea;
    border: 1px solid #e74c3c;
    color: #a93226;
    padding: 0.85rem 1.1rem;
    border-radius: 6px;
    margin-bottom: 1.2rem;
    font-size: 0.97em;
}

/* Google Maps embed */
.contact-map { margin-top: 2.5rem; border-radius: 8px; overflow: hidden; }
.contact-map iframe { display: block; width: 100%; border: none; }
.rack-badge-count {
    background: #e67e22;
    color: #fff;
    border-radius: 50%;
    min-width: 1.4rem;
    height: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════════
   MOBILE & RESPONSIVE IMPROVEMENTS
   All rules below only activate on narrow viewports.
   Nothing here changes layout on screens wider than 780 px (desktop).
══════════════════════════════════════════════════════════════════ */

/* Prevent horizontal scroll on every page */
html, body { overflow-x: hidden; }

/* Images must never exceed their container */
img { max-width: 100%; }

/* ── Header: compact on mobile ─────────────────────────────────── */
/* (rules merged into the nav @media block above for a single source of truth) */

/* Very small phones (≤ 420 px) */
@media (max-width: 420px) {
    .header-inner {
        padding: 0 0.55rem;
        min-height: 56px;
    }
    .main-nav   { top: 56px; }
    .site-logo  { height: 38px; }
    .site-title { font-size: 1.2rem; }
    .site-tagline { display: none; }
}

/* ── Page layout and component adjustments ─────────────────────── */
@media (max-width: 768px) {
    main { padding: 0.6rem; }

    /* Hero section */
    .hero { padding: 1.5rem 1rem; }

    /* About page: sidebar stacks below content */
    .about-layout {
        flex-direction: column;
        padding: 0.5rem;
        margin: 1rem auto;
        gap: 1rem;
    }
    .about-layout main { padding: 1rem; }
    .sidebar-quick-info {
        min-width: unset;
        max-width: 100%;
        width: 100%;
        margin-top: 0;
    }

    /* About page internals */
    .about-hero        { flex-direction: column; align-items: flex-start; }
    .about-card        { min-width: unset; max-width: 100%; }
    .about-timeline    { padding-left: 1em; margin: 1.5em 0 1em 0; }
    .about-opening-img { max-width: 100%; }

    /* Service detail card */
    .service-detail {
        padding: 1.2em 1em;
        margin: 1em 0.3em;
    }

    /* Services grid: cards go full width on mobile */
    .service-card { width: 100%; max-width: 100%; }

    /* Home page features list: stacks vertically */
    .features-list { flex-direction: column; }
    .features-list li { flex: 1 1 auto; }

    /* Admin / contact form rows: always stack on mobile */
    .form-row { flex-direction: column; }

    /* Search page */
    .search-page        { padding: 0 0.5rem; }
    .search-input-wrap  { max-width: 100%; }

    /* Contact page */
    .contact-photo { max-width: 100%; height: 200px; }
    .contact-form button[type="submit"] { align-self: stretch; width: 100%; }

    /* Personal rack */
    .rack-page         { padding: 0 0.6rem 2rem; }
    .rack-auth-box     { padding: 1.4rem 1.1rem; }
    .rack-tryon-section { padding: 1.2rem 1rem; }

    /* Admin form */
    .admin-form { padding: 1rem; margin: 1rem 0.3rem; }

    /* CTA buttons stretch full width */
    .cta-btn { display: block; text-align: center; }

    /* Tables with many columns: horizontal scroll instead of overflow */
    .products-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .hours-table { font-size: 0.88em; }

    /* Frames browse wrapper */
    .frames-browse-wrap { padding: 0 0.5rem; }

    /* Rack auth box full width */
    .rack-auth-box { max-width: 100%; }

    /* About community box */
    .about-community { padding: 1.2em 1em; }
}

/* ── Small phones (≤ 480 px) ────────────────────────────────────── */
@media (max-width: 480px) {
    /* Gallery: 2 images per row */
    .gallery img {
        width: calc(50% - 0.5rem);
        height: 85px;
    }

    /* Page heading sizes */
    .service-detail .page-title { font-size: 1.5rem; }
    .search-page .page-title    { font-size: 1.5rem; }
    .service-lead               { font-size: 1em; }

    /* Personal rack: 2-column grid on phones */
    .rack-grid { grid-template-columns: repeat(2, 1fr); }
    .rack-card img { height: 110px; }

    /* Frames/glasses grid: 2 columns */
    .glasses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    /* Google Maps embed height */
    .contact-map iframe { height: 240px; }

    /* About icon slightly smaller */
    .about-icon { font-size: 1.6em; }

    /* Timeline icon */
    .timeline-event .about-icon {
        font-size: 1.5em;
        padding: 0.2em 0.35em;
    }

    /* Section titles in service detail */
    .service-detail h2 { font-size: 1em; }
}
