/* ---------------------------------------------------
   Móveis Rústicos — estilo rústico / madeira
--------------------------------------------------- */

:root {
    --wood-dark: #3d2418;
    --wood: #5c3826;
    --wood-light: #8a5a3c;
    --cream: #f6efe3;
    --cream-soft: #efe4d2;
    --gold: #c8973f;
    --gold-light: #e0b667;
    --text-dark: #2c1c12;
    --text-muted: #6b5a4c;
    --white: #fffaf3;
    --shadow: 0 10px 30px rgba(61, 36, 24, 0.15);
    --radius: 14px;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Poppins', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; color: var(--wood-dark); margin: 0 0 .5em; }

.eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.eyebrow.center, .section-title.center, .section-subtitle.center { text-align: center; }

.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); }

.section-subtitle {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    color: var(--text-muted);
}

.btn {
    display: inline-block;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    border: 2px solid transparent;
    cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-accent { background: var(--gold); color: var(--wood-dark); box-shadow: 0 8px 20px rgba(200,151,63,.35); }
.btn-accent:hover { background: var(--gold-light); }

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

.btn-outline { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn-outline:hover { background: var(--cream); color: var(--wood-dark); }

.btn-outline-dark { border-color: var(--wood-dark); color: var(--wood-dark); background: transparent; }
.btn-outline-dark:hover { background: var(--wood-dark); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(61, 36, 24, 0.96);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 20px rgba(0,0,0,.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
    gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }

.brand-monogram {
    width: 42px; height: 42px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gold);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { color: var(--cream); font-family: var(--font-heading); font-size: 1.15rem; }
.brand-text small { color: var(--gold-light); font-size: 0.68rem; letter-spacing: .15em; text-transform: uppercase; }

.main-nav { display: flex; gap: 1.8rem; }
.main-nav a {
    color: var(--cream-soft);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}
.main-nav a:hover { color: var(--gold-light); }

.header-cta { white-space: nowrap; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px; height: 34px;
    background: transparent;
    border: none;
    cursor: pointer;
}
.nav-toggle span { width: 100%; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 22px; right: 22px;
    z-index: 200;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    background: #4f3020;
}
.hero-content { position: relative; text-align: center; padding: 6rem 24px; }

.hero-monogram {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 84px; height: 84px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.4rem, 5vw, 4rem);
    margin-bottom: 0.4em;
}

.hero-subtitle {
    color: var(--cream-soft);
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    max-width: 560px;
    margin: 0 auto 2.2rem;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Info strip ---------- */
.info-strip { background: var(--gold); color: var(--wood-dark); padding: 1.4rem 0; }
.info-strip-inner {
    display: flex; flex-wrap: wrap; gap: 1.6rem;
    justify-content: space-between;
    align-items: center;
}
.info-item { display: flex; align-items: center; gap: .7rem; flex: 1 1 220px; }
.info-item svg { flex-shrink: 0; }
.info-item div { display: flex; flex-direction: column; line-height: 1.3; }
.info-item strong { font-size: 0.95rem; }
.info-item span { font-size: 0.82rem; opacity: .85; }

/* ---------- About ---------- */
.about { padding: 6rem 0; background: var(--white); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}
.about-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
    object-fit: cover;
}
.about-text p { color: var(--text-muted); margin-bottom: 1.2rem; }
.about-text h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }

/* ---------- Catalog ---------- */
.catalog { padding: 6rem 0; background: var(--cream); }

.catalog-search {
    position: relative;
    max-width: 520px;
    margin: 0 auto 1.6rem;
    color: var(--wood-light);
}
.catalog-search svg {
    position: absolute; left: 18px; top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.catalog-search input {
    width: 100%;
    padding: 0.85rem 1.2rem 0.85rem 3rem;
    border-radius: 999px;
    border: 1.5px solid var(--cream-soft);
    background: var(--white);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(61, 36, 24, .06);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.catalog-search input::placeholder { color: var(--text-muted); opacity: .8; }
.catalog-search input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(200, 151, 63, .18);
}

.filter-bar {
    display: flex; flex-wrap: wrap; gap: .7rem;
    justify-content: center;
    margin-bottom: 2.8rem;
}
.filter-btn {
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    border: 1.5px solid var(--wood-light);
    background: transparent;
    color: var(--wood);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s ease;
}
.filter-btn:hover { background: var(--cream-soft); }
.filter-btn.active { background: var(--wood-dark); border-color: var(--wood-dark); color: var(--white); }

/* Fixed columns so a lone card keeps the same width as in a full row. */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(61,36,24,.22); }

.product-image { aspect-ratio: 4/3; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-image img { transform: scale(1.06); }

.product-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-category {
    font-size: 0.7rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--gold); font-weight: 600;
}
/* Title and description are clamped to fixed line counts so every card has the same height. */
.product-body h3 {
    font-size: 1.3rem; line-height: 1.25; margin-bottom: .3rem;
    min-height: 2.5em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-body p {
    color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; margin: 0 0 1rem;
    min-height: 4.8em;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.product-actions { margin-top: auto; }
.product-link { color: var(--wood-dark); font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.product-link:hover { color: var(--gold); }

.product-image { position: relative; display: block; }
.product-photo-count {
    position: absolute; right: 12px; top: 12px;
    background: rgba(44, 28, 18, .78); color: var(--cream);
    font-size: 0.75rem; font-weight: 500;
    padding: .25rem .7rem; border-radius: 999px;
}
/* ---------- Availability ---------- */
.availability-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase;
    padding: .3rem .75rem; border-radius: 999px;
    line-height: 1.3;
}
.availability-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.availability-badge.is-available { background: #e3f3e6; color: #1f7a3a; }
.availability-badge.is-unavailable { background: #f1e6e1; color: #8c3b2a; }

.product-badges { position: absolute; left: 12px; top: 12px; }
.product-badges .availability-badge { box-shadow: 0 2px 8px rgba(0,0,0,.15); }

.product-note {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: .5rem 1rem;
    background: rgba(200, 151, 63, .95);
    color: var(--wood-dark);
    font-size: 0.78rem; font-weight: 600;
    letter-spacing: .03em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.product-card.is-unavailable .product-image img { filter: grayscale(.6); opacity: .8; }

.detail-availability {
    display: flex; flex-direction: column; align-items: flex-start; gap: .8rem;
    margin: .2rem 0 1.4rem;
}
.detail-availability .availability-badge { font-size: 0.8rem; padding: .4rem .95rem; }
.availability-note {
    display: flex; align-items: flex-start; gap: .55rem;
    margin: 0;
    padding: .8rem 1rem;
    width: 100%;
    background: #fbf1dc;
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    color: var(--wood-dark);
    font-weight: 600; font-size: 0.95rem;
}
.availability-note svg { flex-shrink: 0; margin-top: .15rem; color: var(--gold); }

.product-body h3 a { color: inherit; text-decoration: none; }
.product-body h3 a:hover { color: var(--wood-light); }
.product-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.product-link-wa { color: #1e9e50; }
.product-link-wa:hover { color: #25D366; }

.pagination {
    display: flex; flex-wrap: wrap; gap: .5rem;
    justify-content: center;
    margin-top: 3rem;
}
.pagination[hidden] { display: none; }
.page-btn {
    min-width: 42px; height: 42px;
    padding: 0 .8rem;
    border-radius: 999px;
    border: 1.5px solid var(--wood-light);
    background: transparent;
    color: var(--wood);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s ease;
}
.page-btn:hover:not(:disabled) { background: var(--cream-soft); }
.page-btn.active { background: var(--wood-dark); border-color: var(--wood-dark); color: var(--white); }
.page-btn:disabled { opacity: .35; cursor: default; }
.page-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.empty-state { text-align: center; color: var(--text-muted); grid-column: 1/-1; padding: 2rem 0; }

/* ---------- Projects ---------- */
.projects { padding: 6rem 0; background: var(--white); }
.projects-page { padding: 2.5rem 0 6rem; min-height: 60vh; }

.project-card {
    background: var(--cream);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(61,36,24,.22); }

.project-image { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card:hover .project-image img { transform: scale(1.06); }

.project-type {
    position: absolute; left: 12px; top: 12px;
    background: var(--gold); color: var(--wood-dark);
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    padding: .3rem .8rem; border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.project-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.project-body h3 {
    font-size: 1.3rem; line-height: 1.25; margin: 0;
    min-height: 2.5em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.project-body h3 a { color: inherit; text-decoration: none; }
.project-body h3 a:hover { color: var(--wood-light); }
.project-meta { margin: 0 0 .8rem; min-height: 1.5em; font-size: 0.85rem; color: var(--text-muted); }
.project-body .product-link { margin-top: auto; }

.projects-cta {
    display: flex; flex-wrap: wrap; gap: 1rem;
    justify-content: center; align-items: center;
    margin-top: 3rem;
    text-align: center;
}
.projects-cta p { width: 100%; margin: 0; color: var(--text-muted); }

a.page-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* ---------- Gallery ---------- */
.gallery { padding: 6rem 0; background: var(--cream); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}
.gallery-item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-cta { text-align: center; margin-top: 2.5rem; }

/* ---------- Location ---------- */
.location { padding: 6rem 0; background: var(--wood-dark); color: var(--cream); }
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.location-text .eyebrow { color: var(--gold-light); }
.location-text h2 { color: var(--white); }
.location-text p { color: var(--cream-soft); margin-bottom: .6rem; }
.location-text .btn { margin-top: 1.2rem; }
.location-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }

/* ---------- Footer ---------- */
.site-footer { background: var(--wood-dark); color: var(--cream-soft); padding-top: 4rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand p { margin: .8rem 0 1rem; font-size: 0.9rem; color: var(--cream-soft); }
.social-links { display: flex; gap: .8rem; }
.social-links a {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25);
    display: flex; align-items: center; justify-content: center;
    color: var(--cream);
    transition: background .2s ease, border-color .2s ease;
}
.social-links a:hover { background: var(--gold); border-color: var(--gold); color: var(--wood-dark); }

.footer-links h4, .footer-contact h4 { color: var(--gold-light); font-family: var(--font-body); font-size: 0.85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links a { display: block; color: var(--cream-soft); text-decoration: none; margin-bottom: .6rem; font-size: 0.92rem; }
.footer-links a:hover { color: var(--gold-light); }
.footer-contact p { font-size: 0.9rem; margin: 0 0 .6rem; color: var(--cream-soft); }

.footer-bottom { padding: 1.4rem 0; }
.footer-bottom p { margin: 0; font-size: 0.8rem; text-align: center; color: rgba(246,239,227,.55); }

/* ---------- Product detail ---------- */
.product-detail { padding: 2.5rem 0 5rem; background: var(--white); }

.breadcrumb {
    display: flex; flex-wrap: wrap; gap: .5rem;
    font-size: 0.85rem; color: var(--text-muted);
    margin-bottom: 2rem;
}
.breadcrumb a { color: var(--wood-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span:last-child { color: var(--wood-dark); font-weight: 500; }

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
}

.detail-gallery { position: sticky; top: 100px; }

.detail-main {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--cream-soft);
    box-shadow: var(--shadow);
    cursor: zoom-in;
}
.detail-main:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.detail-main img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}
.detail-main.is-zooming img { transform: scale(2.2); }

.zoom-hint {
    position: absolute; left: 14px; bottom: 14px;
    display: inline-flex; align-items: center; gap: .4rem;
    background: rgba(44, 28, 18, .75); color: var(--cream);
    font-size: 0.75rem;
    padding: .35rem .8rem; border-radius: 999px;
    pointer-events: none;
    transition: opacity .2s ease;
}
.detail-main.is-zooming .zoom-hint { opacity: 0; }
.hint-touch { display: none; }
@media (hover: none) {
    .hint-desktop { display: none; }
    .hint-touch { display: inline; }
}

.gallery-nav {
    position: absolute; top: 50%;
    transform: translateY(-50%);
    width: 42px; height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 250, 243, .9);
    color: var(--wood-dark);
    font-size: 1.8rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
    transition: background .2s ease;
    z-index: 2;
}
.gallery-nav:hover { background: var(--gold-light); }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }

.detail-thumbs {
    position: relative;
    display: flex; gap: .7rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding: 4px 2px 6px;
    scrollbar-width: thin;
}
.thumb {
    flex: 0 0 88px;
    aspect-ratio: 1/1;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: var(--cream-soft);
    cursor: pointer;
    opacity: .65;
    transition: opacity .2s ease, border-color .2s ease;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb.active { opacity: 1; border-color: var(--gold); }

.detail-info h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.15; }
.detail-description { color: var(--text-muted); }
.detail-description p { margin: 0 0 1rem; }

.detail-specs {
    margin: 1.8rem 0;
    border-top: 1px solid var(--cream-soft);
}
.detail-specs div {
    display: grid; grid-template-columns: 120px 1fr; gap: 1rem;
    padding: .85rem 0;
    border-bottom: 1px solid var(--cream-soft);
}
.detail-specs dt {
    font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--gold); font-weight: 600;
    padding-top: .15rem;
}
.detail-specs dd { margin: 0; color: var(--text-dark); }

.detail-cta {
    margin-top: 2rem;
    padding: 1.6rem;
    background: var(--cream);
    border-radius: var(--radius);
    border: 1px solid var(--cream-soft);
}
.detail-cta p { margin: 0 0 1.2rem; font-size: 0.92rem; color: var(--text-muted); }
.btn-whatsapp {
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    width: 100%;
    background: #25D366; color: #fff;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(37, 211, 102, .3);
}
.btn-whatsapp:hover { background: #1ebe5a; }
.detail-cta-note { display: block; text-align: center; margin-top: .8rem; font-size: 0.8rem; color: var(--text-muted); }

.detail-back {
    display: inline-block; margin-top: 1.8rem;
    color: var(--wood-light); text-decoration: none; font-weight: 500; font-size: 0.92rem;
}
.detail-back:hover { color: var(--gold); }

.related { padding: 5rem 0 6rem; background: var(--cream); }
.related .section-title { margin-bottom: 2.5rem; }

/* ---------- Lightbox ---------- */
body.no-scroll { overflow: hidden; }

.lightbox {
    position: fixed; inset: 0;
    z-index: 1000;
    background: rgba(20, 12, 7, .96);
    display: flex; flex-direction: column;
}
.lightbox[hidden] { display: none; }

.lightbox-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 18px;
    color: var(--cream);
    position: relative; z-index: 2;
}
.lightbox-counter { font-size: 0.9rem; opacity: .8; }
.lightbox-tools { display: flex; gap: .5rem; }
.lightbox-tools button, .lightbox-nav {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08);
    color: var(--cream);
    font-size: 1.5rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .2s ease;
}
.lightbox-tools button:hover, .lightbox-nav:hover { background: rgba(255,255,255,.2); }

.lightbox-stage {
    flex: 1;
    min-height: 0;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    touch-action: none;
    cursor: zoom-in;
    user-select: none;
}
.lightbox-stage.is-zoomed { cursor: grab; }
.lightbox-stage.is-zoomed:active { cursor: grabbing; }
.lightbox-stage img {
    max-width: calc(100% - 32px);
    max-height: 100%;
    object-fit: contain;
    transform-origin: center center;
    transition: transform .08s linear;
    will-change: transform;
}

.lightbox-nav {
    position: absolute; top: 50%;
    transform: translateY(-50%);
    width: 52px; height: 52px;
    font-size: 2rem;
    z-index: 2;
}
.lightbox-nav.prev { left: 18px; }
.lightbox-nav.next { right: 18px; }

.lightbox-caption {
    margin: 0; padding: 12px 18px 20px;
    text-align: center; color: var(--cream-soft); font-size: 0.9rem;
}

/* ---------- 404 ---------- */
.not-found {
    padding: 4rem 0 5rem;
    background:
        radial-gradient(ellipse at top, rgba(200, 151, 63, .12), transparent 60%),
        var(--white);
}
.not-found-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

.not-found-art { width: min(340px, 85%); height: auto; margin-bottom: -.5rem; }
.nf-shadow { fill: rgba(61, 36, 24, .08); }
.nf-seat { fill: var(--wood-light); }
.nf-seat-top { fill: #a8744f; }
.nf-leg { fill: var(--wood); }
.nf-grain { fill: none; stroke: rgba(61, 36, 24, .35); stroke-width: 1.4; stroke-linecap: round; }
.nf-grain-leg { stroke: rgba(255, 250, 243, .18); }
.nf-dust { fill: var(--gold); opacity: .6; }

.not-found-code {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(4.5rem, 12vw, 7.5rem);
    line-height: 1;
    color: var(--gold);
    letter-spacing: .04em;
    margin-bottom: .6rem;
}
.not-found h1 {
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    line-height: 1.2;
    max-width: 640px;
}
.not-found-text { max-width: 560px; margin: 0 0 2rem; color: var(--text-muted); }
.not-found-search { width: 100%; margin-bottom: 1.6rem; }
.not-found-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

@media (max-width: 560px) {
    .not-found { padding-top: 2.5rem; }
    .not-found-actions { flex-direction: column; width: 100%; }
    .not-found-actions .btn { width: 100%; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .about-grid, .location-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
    .detail-grid { grid-template-columns: 1fr; gap: 2rem; }
    .detail-gallery { position: static; }
}

@media (max-width: 768px) {
    .main-nav, .header-cta { display: none; }
    .nav-toggle { display: flex; }

    .main-nav.is-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 78px; left: 0; right: 0;
        background: var(--wood-dark);
        padding: 1.2rem 24px 1.6rem;
        gap: 1rem;
        box-shadow: 0 10px 20px rgba(0,0,0,.2);
    }

    .hero { min-height: 100vh; }
    .info-strip-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .product-grid { grid-template-columns: 1fr; }
    .product-detail { padding-top: 1.5rem; }
    .thumb { flex-basis: 68px; }
    .gallery-nav { width: 36px; height: 36px; font-size: 1.5rem; }
    .detail-specs div { grid-template-columns: 1fr; gap: .2rem; }
    .lightbox-nav { top: auto; bottom: 64px; transform: none; width: 46px; height: 46px; }
}
