/* =============================================================================
   DOOR SPECIALS — screen.css
   Fonts: Fraunces 400 (banners/headings) · Libre Franklin (body/buttons/nav)
   ============================================================================= */

/* ── 1. Custom Properties ─────────────────────────────────────────────────── */
:root {
    --font-banner:  'Fraunces', Georgia, serif;
    --font-body:    'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;

    --color-dark:       #111111;
    --color-dark-2:     #1c1c1c;
    --color-body-bg:    #f5ede0;
    --color-menu-bg:    #c8b896;
    --color-white:      #ffffff;
    --color-card-bg:    #ffffff;
    --color-text:       #1a1a1a;
    --color-text-muted: #666666;
    --color-border:     #e0d5c5;
    --color-accent:     #9a6b3a;

    --header-height: 80px;
    --menu-width:    70vw;
    --max-width:     1400px;

    --shadow-card: 0 2px 8px rgba(0,0,0,0.08);
    --transition:  0.25s ease;
}

/* ── 2. Base / Reset ──────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-text);
    background: var(--color-body-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-body);
}

/* ── 3. Layout ────────────────────────────────────────────────────────────── */
.root-a {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.root-a > main,
.root-a > .page-home,
.root-a > .page-catalog {
    flex: 1;
}

/* ── 4. Site Header ───────────────────────────────────────────────────────── */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    display: flex;
    align-items: stretch;
}

.site-header__inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 28px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header__logo img {
    height: 120px;
    width: auto;
}

.site-header__menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.site-header__menu-icon {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 34px;
}

.site-header__menu-icon span {
    display: block;
    height: 2.5px;
    background: var(--color-white);
    border-radius: 1px;
    transition: var(--transition);
}

.site-header__menu-label {
    line-height: 1;
}

/* Pages start at the very top — header overlays the hero */
.page-home,
.page-catalog,
.content-404 {
    padding-top: 0;
}

/* ── 5. Slide-out Menu ────────────────────────────────────────────────────── */
.site-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    opacity: 0;
    transition: opacity var(--transition);
}

.site-menu-overlay.is-active {
    display: block;
    opacity: 1;
}

.site-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--menu-width);
    max-width: 720px;
    z-index: 300;
    display: flex;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.site-menu.is-open {
    transform: translateX(0);
}

/* Left image strip */
.site-menu__image {
    width: 35%;
    flex-shrink: 0;
    overflow: hidden;
}

.site-menu__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right navigation panel */
.site-menu__panel {
    flex: 1;
    background: var(--color-menu-bg);
    overflow-y: auto;
    padding: 60px 48px 48px;
    position: relative;
}

.site-menu__close {
    position: absolute;
    top: 24px;
    right: 28px;
    font-size: 22px;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-menu__close:hover {
    opacity: 0.7;
}

.site-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.site-menu__section-title {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-dark);
    margin-bottom: 16px;
}

.site-menu__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-menu__links li a {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-dark-2);
    opacity: 0.75;
    transition: opacity var(--transition);
    display: block;
    padding: 2px 0;
}

.site-menu__links li a:hover {
    opacity: 1;
}

/* ── 6. Homepage — Hero Slider ────────────────────────────────────────────── */
.home-hero {
    position: relative;
    height: clamp(340px, 45vw, 600px);
    overflow: hidden;
}

.home-hero__track {
    position: absolute;
    inset: 0;
}

.home-hero__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

.home-hero__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.home-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
}

.home-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 40px 40px;
    max-width: 900px;
    width: 100%;
}

.home-hero__text {
    font-family: var(--font-banner);
    font-weight: 400;
    font-size: clamp(26px, 4vw, 42px);
    color: var(--color-white);
    line-height: 1.10;
    margin-bottom: 20px;
}

a.home-hero__cta,
a.home-hero__cta:link,
a.home-hero__cta:visited {
    display: inline-block;
    font-family: var(--font-banner);
    font-style: normal;
    font-weight: 400;
    font-size: clamp(26px, 4vw, 42px);
    color: var(--color-menu-bg);
    text-decoration: none;
    transition: opacity var(--transition);
}

a.home-hero__cta:hover {
    opacity: 0.8;
    color: var(--color-menu-bg);
}

/* Slide indicators — overlaid on the hero */
.home-hero__dots {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 6px;
    align-items: center;
    pointer-events: none; /* let clicks pass through except on buttons */
}

.home-hero__dots button {
    pointer-events: auto;
}

.home-hero__dot {
    width: 36px;
    height: 10px;
    border-radius: 0;
    background: rgba(255,255,255,0.35);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background var(--transition);
}

.home-hero__dot.is-active {
    background: #ffffff;
}

/* ── 7. Homepage — Exterior Door Categories ───────────────────────────────── */
.home-categories {
    background: var(--color-white);
    padding: 56px 24px;
}

.home-categories__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.home-categories__heading {
    font-family: var(--font-banner);
    font-weight: 400;
    font-size: clamp(22px, 3vw, 32px);
    color: var(--color-text);
    text-align: center;
    margin-bottom: 28px;
}

.home-categories__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.category-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 3px;
}

.category-card__image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-card__image img {
    transform: scale(1.04);
}

.category-card__label {
    display: block;
    background: var(--color-menu-bg);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-white);
    text-align: center;
    padding: 14px 10px;
    margin-top: 8px;
}

/* ── 8. Homepage — Warehouse Banner ──────────────────────────────────────── */
.home-warehouse {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-warehouse__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home-warehouse__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.48);
}

.home-warehouse__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 48px 24px;
}

.home-warehouse__content p {
    font-family: var(--font-banner);
    font-weight: 400;
    font-size: clamp(18px, 3vw, 26px);
    color: var(--color-white);
    line-height: 1.5;
}

/* ── 9. Catalog — Page Hero ───────────────────────────────────────────────── */
.catalog-hero {
    position: relative;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.catalog-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.catalog-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20,10,5,0.62);
}

.catalog-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: calc(var(--header-height) + 20px);
}

.catalog-hero__title {
    font-family: var(--font-banner);
    font-weight: 400;
    font-size: clamp(28px, 5vw, 46px);
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 8px;
}

.catalog-hero__sub {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.75);
    border-bottom: 1px solid rgba(255,255,255,0.4);
    padding-bottom: 1px;
    transition: color var(--transition), border-color var(--transition);
}

.catalog-hero__sub:hover {
    color: var(--color-white);
    border-color: var(--color-white);
}

/* ── 10. Catalog — Body Layout ────────────────────────────────────────────── */
.catalog-body {
    display: flex;
    align-items: flex-start;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 24px 64px;
    gap: 32px;
}

/* ── 11. Catalog — Filter Sidebar ─────────────────────────────────────────── */
.catalog-filters {
    width: 210px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--header-height) + 16px);
}

.catalog-filters__heading {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.filter-group {
    border-top: 1px solid var(--color-border);
}

.filter-group:last-of-type {
    border-bottom: 1px solid var(--color-border);
}

.filter-group__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 0;
    text-align: left;
    color: var(--color-text);
}

.filter-group__label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.filter-group__label em {
    font-style: normal;
    font-weight: 400;
    color: var(--color-text-muted);
}

.filter-group__icon {
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    color: var(--color-text-muted);
}

.filter-group__body {
    padding: 4px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}

.filter-option input {
    accent-color: var(--color-dark);
    cursor: pointer;
}

.catalog-filters__disclaimer {
    margin-top: 20px;
    font-size: 10px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

/* ── 12. Catalog — Product Grid ───────────────────────────────────────────── */
.catalog-main {
    flex: 1;
    min-width: 0;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.catalog-toolbar__count {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
}

.catalog-toolbar__display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.catalog-toolbar__display select {
    font-family: var(--font-body);
    font-size: 13px;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    padding: 4px 8px;
    border-radius: 3px;
    color: var(--color-text);
    cursor: pointer;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.product-grid__loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: var(--color-text-muted);
    font-size: 14px;
}

/* Product Card */
.product-card {
    background: var(--color-card-bg);
    border-radius: 4px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition);
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
}

.product-card__image {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #ffffff;
    overflow: hidden;
}

.product-card__image img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.product-card__actions {
    display: flex;
    justify-content: center;
    padding: 0 14px;
    background: #fff;
}

.product-card__btn {
    padding: 7px 22px;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: #d8cdb5;
    color: #3a2e1e;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: opacity var(--transition);
}

.product-card__btn--view {
    background: #c6b798;
    color: #000000;
}

.product-card__btn:hover {
    opacity: 0.85;
}

.product-card__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.product-card__dims {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: var(--color-text);
    line-height: 1.4;
    margin: 0;
}

.product-card__glass {
    font-size: 12px;
    font-weight: 400;
    text-align: center;
    color: var(--color-text);
    line-height: 1.4;
    margin: 0;
}

/* ── 12b. Catalog Toolbar Controls ────────────────────────────────────────── */
.catalog-toolbar__controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.catalog-toolbar__clear {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--color-accent);
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: 1px;
    transition: opacity var(--transition);
}

.catalog-toolbar__clear:hover {
    opacity: 0.7;
}

/* Product Card Badge (view type label) */
.product-card__badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin: 0;
    padding-top: 6px;
}

/* Empty grid state */
.product-grid__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: var(--color-text-muted);
    font-size: 14px;
}

/* Pagination */
.catalog-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--color-border);
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-white);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.pagination-btn:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.pagination-btn.is-active {
    background: var(--color-dark);
    border-color: var(--color-dark);
    color: var(--color-white);
    pointer-events: none;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 36px;
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ── 13. Footer ───────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.65);
    padding: 56px 24px 36px;
    margin-top: auto;
}

.site-footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* 4-column layout: logo (wider) + 3 nav groups */
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.site-footer__logo img {
    height: 88px;
    width: auto;
    max-width: 100%;
    opacity: 0.85;
    transition: opacity var(--transition);
}

.site-footer__logo img:hover {
    opacity: 1;
}

/* Nav groups span the 3 columns after the logo */
.site-footer__nav {
    display: contents;
}

.site-footer__nav-group strong {
    display: block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 14px;
}

.site-footer__nav-group ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-footer__nav-group a {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}

.site-footer__nav-group a:hover {
    color: var(--color-white);
}

.site-footer__copy {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
}

/* ── 14. Buttons / Global CTAs ────────────────────────────────────────────── */
.btn-primary {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-white);
    background: var(--color-dark);
    border: 2px solid var(--color-dark);
    padding: 12px 28px;
    border-radius: 3px;
    transition: background var(--transition), color var(--transition);
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-dark);
}

/* ── 15. 404 Page ─────────────────────────────────────────────────────────── */
.content-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height));
}

.content-404__inner {
    text-align: center;
    padding: 60px 24px;
}

.content-404__inner h1 {
    font-family: var(--font-banner);
    font-size: 48px;
    margin-bottom: 16px;
}

.content-404__inner p {
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

/* ── 16. Responsive ───────────────────────────────────────────────────────── */

/* Tablet (≤ 1024px) */
@media screen and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Small tablet (≤ 768px) */
@media screen and (max-width: 768px) {
    :root {
        --menu-width: 88vw;
    }

    .home-categories__grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .catalog-body {
        flex-direction: column;
        padding: 24px 16px 48px;
        gap: 24px;
    }

    .catalog-filters {
        width: 100%;
        position: static;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .site-menu__image {
        display: none;
    }

    .site-menu {
        width: var(--menu-width);
    }

    /* Shrink the transparent overlaid header so the logo doesn't dominate */
    .site-header__inner {
        padding: 16px 20px;
    }
    .site-header__logo img {
        height: 56px;
    }

    /* Reserve header space so the hero title clears the overlaid header */
    .home-hero__slide,
    .catalog-hero {
        padding-top: 88px;
    }
    .catalog-hero {
        height: auto;
        min-height: 200px;
        padding-bottom: 24px;
    }
    .catalog-hero__content {
        padding-top: 0;
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* ── Custom Rows ─────────────────────────────────────────────────────────── */
.custom-rows { width: 100%; }
.custom-rows__row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
.custom-rows__col {
    padding: 32px 40px;
    box-sizing: border-box;
}
.custom-rows__img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 16px;
}
.custom-rows__img--video { cursor: pointer; }
.custom-rows__video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.custom-rows__video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.custom-rows__text--placement-left   { text-align: left; }
.custom-rows__text--placement-right  { text-align: right; }
.custom-rows__text--placement-center { text-align: center; }
.custom-rows__text--align-left   { text-align: left; }
.custom-rows__text--align-right  { text-align: right; }
.custom-rows__text--align-center { text-align: center; }
.custom-rows__text h3 { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.custom-rows__text p  { font-size: 16px; line-height: 1.65; margin: 0 0 1em; }
.custom-rows__text p:last-child { margin-bottom: 0; }
.custom-rows__caption ul { list-style: disc;    margin: 0 0 1em 1.5em; }
.custom-rows__caption ol { list-style: decimal; margin: 0 0 1em 1.5em; }
.custom-rows__caption a  { text-decoration: underline; }

@media screen and (max-width: 768px) {
    .custom-rows__col { flex: 0 0 100% !important; max-width: 100% !important; padding: 24px 20px; }
}

/* ── Webpage intro copy ──────────────────────────────────────────────────── */
.webpage-intro {
    background: var(--color-white);
}
.webpage-intro__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
}
.webpage-intro__inner h2,
.webpage-intro__inner h3 {
    color: var(--color-dark);
    margin: 1.2em 0 0.4em;
}
.webpage-intro__inner p  { margin-bottom: 1em; }
.webpage-intro__inner ul { list-style: disc;    margin: 0 0 1em 1.5em; }
.webpage-intro__inner ol { list-style: decimal; margin: 0 0 1em 1.5em; }

/* ── Resource Page ───────────────────────────────────────────────────────── */
.resource-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}
.resource-content {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
}
.resource-content h2,
.resource-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: var(--color-dark);
}
.resource-content p { margin-bottom: 1em; }
.resource-content ul { list-style: disc;    margin: 0 0 1em 1.5em; }
.resource-content ol { list-style: decimal; margin: 0 0 1em 1.5em; }
.resource-content a {
    color: var(--color-dark);
    text-decoration: underline;
}

/* ── Quick View Modal ─────────────────────────────────────────────────────── */

/* Prevent body scroll when modal is open */
body.qv-open {
    overflow: hidden;
}

.qv-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 400;
}

.qv-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 500;
    background: var(--color-white);
    border-radius: 4px;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.22);
    width: min(900px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.qv-modal__close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    color: var(--color-text-muted);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition);
    z-index: 10;
}

.qv-modal__close:hover {
    color: var(--color-text);
}

/* Body: CSS grid — left column spans both content + button rows */
.qv-modal__body {
    display: grid;
    grid-template-columns: 46% 1fr;
    grid-template-rows: 1fr auto;
}

/* Left column spans both rows so it fills the full body height */
.qv-modal__left {
    grid-column: 1;
    grid-row: 1 / 3;
    padding: 32px 24px 20px;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
}

.qv-modal__image-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
}

.qv-modal__image-wrap img {
    max-width: 100%;
    max-height: 340px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.qv-modal__exterior-label {
    margin-top: 10px;
    font-size: 12px;
    text-align: center;
}

.qv-modal__disclaimer {
    margin-top: 6px;
    font-size: 9.5px;
    line-height: 1.5;
    color: var(--color-text-muted);
    text-align: center;
}

/* Right column — details */
.qv-modal__right {
    grid-column: 2;
    grid-row: 1;
    padding: 36px 32px 16px;
}

.qv-modal__loading {
    font-size: 14px;
    color: var(--color-text-muted);
    padding: 40px 0;
}

.qv-modal__title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 20px;
    color: var(--color-text);
    margin-bottom: 14px;
    line-height: 1.2;
}

.qv-modal__bullets {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qv-modal__bullets li {
    font-size: 13px;
    color: var(--color-text);
    line-height: 1.4;
}

/* Select Details section */
.qv-modal__selects {
    padding-top: 4px;
    margin-bottom: 20px;
}

.qv-modal__select-heading {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: 12px;
}

.qv-select-wrap {
    position: relative;
    margin-bottom: 10px;
}

.qv-select-wrap::after {
    content: '\25BC';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: var(--color-text-muted);
    pointer-events: none;
}

.qv-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 3px;
    padding: 9px 36px 9px 12px;
    cursor: pointer;
    transition: border-color var(--transition);
}

.qv-select:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Unselected (required) state — prompt the user in red until a choice is made */
.qv-select.is-unselected {
    color: #c0392b;
    border-color: #c0392b;
}

.qv-select__placeholder {
    color: #c0392b;
}

/* Real options render in the normal text color once the dropdown is open */
.qv-select option:not(.qv-select__placeholder) {
    color: var(--color-text);
}

/* Purchase button — grid row 2, right column only */
.qv-modal__purchase {
    grid-column: 2;
    grid-row: 2;
    display: block;
    width: calc(100% - 64px);
    margin: 0 32px 28px;
    padding: 13px 20px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: #c6b798;
    color: #000000;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: opacity var(--transition);
}

.qv-modal__purchase:hover {
    opacity: 0.88;
}

.qv-modal__purchase:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Footer: benefits + gallery */
.qv-modal__footer {
    padding: 8px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.qv-modal__footer-title {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: 10px;
}

.qv-modal__footer-body {
    font-size: 13px;
    line-height: 1.65;
    color: var(--color-text);
    margin: 0;
}

/* Additional Pictures grid */
.qv-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.qv-gallery__item {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: block;
}

.qv-gallery__item:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.qv-gallery__thumb {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 3px;
    background: var(--color-body-bg);
}

.qv-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.qv-gallery__item:hover .qv-gallery__thumb img {
    transform: scale(1.04);
}

/* ── Lightbox ── */
.lb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}

.lb-overlay.is-open {
    display: flex;
}

.lb-img-wrap {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    border-radius: 3px;
}

.lb-close,
.lb-prev,
.lb-next {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 36px;
    line-height: 1;
    padding: 12px;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
    opacity: 1;
}

.lb-close {
    top: 16px;
    right: 16px;
    font-size: 44px;
}

.lb-prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
}

.lb-next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
}

body.lb-open {
    overflow: hidden;
}

/* Variant count badge on product card */
.product-card__variants {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--color-accent);
    margin: 0;
}

/* Modal responsive */
@media screen and (max-width: 680px) {
    .qv-modal__body {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .qv-modal__left {
        grid-column: 1;
        grid-row: 1;
        padding: 24px 20px 16px;
    }

    .qv-modal__right {
        grid-column: 1;
        grid-row: 2;
        padding: 24px 20px 12px;
    }

    .qv-modal__purchase {
        grid-column: 1;
        grid-row: 3;
        width: calc(100% - 40px);
        margin: 0 20px 24px;
    }

    .qv-modal__image-wrap {
        min-height: 180px;
    }

    .qv-modal__image-wrap img {
        max-height: 220px;
    }
}

/* Mobile (≤ 480px) */
@media screen and (max-width: 480px) {
    .home-categories__grid {
        grid-template-columns: 1fr;
    }

    .qv-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }


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

    .catalog-hero {
        min-height: 180px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
    }
}
