/* Shared styles extracted from the Home page for consistent typography/layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #000000;        /* czarny jako główny kolor */
    --secondary: #333333;      /* ciemnoszary dla tekstów pomocniczych */
    --accent: #666666;         /* średni szary dla akcentów */
    --light: #ffffff;          /* białe tło */
    --dark: #000000;           /* czarny */
    --sand: #f5f5f5;           /* bardzo jasny szary dla odstępów */
    --shadow: rgba(0, 0, 0, 0.03) 0 8px 20px, rgba(0, 0, 0, 0.05) 0 2px 6px;
    --shadow-hover: rgba(0, 0, 0, 0.06) 0 20px 30px -10px;
    --border-radius: 32px;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-sans);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.5;
    scroll-behavior: smooth;
    font-weight: 400;
}

h1, h2, h3 {
    font-weight: 500;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    font-family: var(--font-serif);
    line-height: 1.0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

h2,
main > section h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-family: var(--font-serif);
    margin-bottom: 1rem;
    font-weight: 500;
    border-left: 4px solid var(--primary);
    padding-left: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.intro-title {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
}

h3 {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    font-weight: 600;
    margin-bottom: 1rem;
}

h4 {
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

p {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--secondary);
    line-height: 1.6;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Header */
header {
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 70px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.02));
}

.lang-switch {
    display: flex;
    gap: 0.3rem;
    background: var(--sand);
    padding: 0.3rem;
    border-radius: 40px;
}

.lang-btn {
    background: none;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
    color: var(--secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--font-sans);
    text-decoration: none;
    display: inline-block;
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-size: 0.9rem;
    transition: 0.2s;
    border-bottom: 2px solid transparent;
    padding-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    font-family: var(--font-sans);
}

nav a:hover {
    border-bottom-color: var(--primary);
    color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--accent);
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    cursor: pointer;
    color: var(--primary);
    line-height: 0;
}

.menu-toggle-icon {
    display: block;
    width: 24px;
    height: 24px;
}

picture {
    display: block;
    max-width: 100%;
}

picture img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-video-placeholder picture,
.hero-video-placeholder picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-carousel-slide picture,
.product-gallery-main picture {
    width: 100%;
    height: 100%;
}

.gallery-carousel-slide picture img,
.product-gallery-main picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero */
.hero {
    padding: 1rem 0 3rem;
    background: var(--light);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Hero h1: dwie linie + pozioma kreska na szerokość bloku tekstu */
.hero h1.hero-taglines {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: fit-content;
    max-width: 100%;
    line-height: 1.15;
}

.hero-tagline-top,
.hero-tagline-bottom {
    display: block;
}

.hero-tagline-rule {
    display: block;
    align-self: stretch;
    height: 1px;
    margin: 0.7rem 0 0.65rem;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.08) 55%, rgba(0, 0, 0, 0.02) 100%);
}

.hero p {
    font-size: 1.2rem;
    color: var(--secondary);
    margin: 0.75rem 0 1.25rem;
    font-weight: 300;
    max-width: 90%;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2.8rem;
    border-radius: 0px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-sans);
    border: 1px solid var(--primary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    margin-left: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.hero-actions .btn-outline {
    margin-left: 0;
}

.customization-cta {
    text-align: center;
    margin-top: 1.5rem;
}

.btn:hover {
    background: transparent;
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.hero-video-placeholder {
    background: var(--sand);
    border-radius: 0px;
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    border: 1px solid rgba(0,0,0,0.05);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.hero-video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: white;
    padding: 1.2rem;
    border-radius: 50%;
    box-shadow: var(--shadow);
    color: var(--primary);
}

/* Intro */
.intro {
    padding: 2.5rem 0;
    background: var(--light);
    border-top: 1px solid rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.intro-content {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 1.5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.intro-content--pair {
    display: block;
    max-width: 1140px;
}

.intro-content--pair .intro-title {
    text-align: left;
    margin: 0 0 1.15rem;
}

.intro-media-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: end;
}

.intro-shot {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--light);
}

.intro-shot-media {
    overflow: hidden;
    background: #eceae6;
    aspect-ratio: 4 / 3;
}

.intro-shot-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.intro-shot-caption {
    display: block;
    margin: 0;
    padding: 0.7rem 0.85rem 0.85rem;
    min-height: 2.85rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.35;
    color: var(--primary);
    box-sizing: border-box;
}

.intro-parapet-link {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.intro-parapet-link:hover,
.intro-parapet-link:focus-visible {
    border-color: rgba(0, 0, 0, 0.22);
    box-shadow: var(--shadow-hover, 0 8px 24px rgba(0, 0, 0, 0.08));
    outline: none;
}

.intro-portrait {
    flex-shrink: 0;
    width: 280px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

.intro-portrait--landscape {
    width: min(52%, 560px);
}

.intro-content:has(.intro-portrait--landscape) {
    max-width: 1140px;
}

.intro-portrait img {
    width: 100%;
    height: auto;
    display: block;
}

.intro-portrait video {
    width: 100%;
    height: auto;
    display: block;
}

.intro-text {
    flex: 1;
    min-width: 0;
    text-align: left;
    font-size: 1.2rem;
    color: var(--secondary);
}

.intro-text .intro-title {
    text-align: left;
}

@media (max-width: 900px) {
    .intro-media-pair {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .intro-parapet-link {
        display: none;
    }
}

/* Trend showcase */
.trend-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.trend-card {
    background: var(--light);
    border-radius: 0px;
    padding: 2rem;
    box-shadow: none;
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}

.trend-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
    border-color: rgba(0,0,0,0.1);
}

.trend-icon {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.trend-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--primary);
    stroke-width: 1.2;
    fill: none;
}

.trend-card h4 {
    margin-bottom: 0.8rem;
}

.trend-card p {
    font-size: 0.95rem;
}

/* Long blog posts: calmer vertical rhythm (same width as other trend-cards) */
.blog-article.trend-card {
    margin-bottom: 2rem;
    padding: 2rem;
}

.blog-article.trend-card:hover {
    transform: none;
    box-shadow: none;
}

.blog-article > h3 {
    margin: 0 0 1.1rem;
    line-height: 1.3;
}

.blog-article > p,
.blog-article > ul,
.blog-article > ol {
    margin: 0 0 1.05rem;
    line-height: 1.65;
}

.blog-article > h4 {
    margin: 1.75rem 0 0.65rem;
    line-height: 1.3;
}

.blog-article > ul,
.blog-article > ol {
    padding-left: 1.25rem;
}

.blog-article > ul li,
.blog-article > ol li {
    margin-bottom: 0.45rem;
}

.blog-article .blog-tip {
    margin: 1.1rem 0 1.25rem;
    padding: 0.85rem 1rem;
    border-left: 3px solid var(--primary);
    background: rgba(0, 0, 0, 0.03);
}

.blog-article .blog-tip p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
}

.blog-article .blog-tip + .blog-tip {
    margin-top: 0.75rem;
}

.blog-article figure {
    margin: 1.5rem 0 1.75rem;
}

.blog-article figure img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f7f4ef;
}

.blog-article figcaption {
    font-size: 0.85rem;
    color: var(--secondary);
    margin-top: 0.55rem;
    line-height: 1.45;
}

.blog-article .blog-cta {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Realizacje */
.realizations {
    background: var(--light);
    padding: 2.5rem 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    background: white;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: none;
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}

.gallery-item:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(0,0,0,0.1);
}

.gallery-img {
    width: 100%;
    aspect-ratio: 1 / 0.9;
    background: var(--sand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background-size: cover;
    background-position: center;
}

.gallery-item:nth-child(1) .gallery-img { background: var(--sand); }
.gallery-carousel { position: relative; width: 100%; aspect-ratio: 1 / 0.9; overflow: hidden; background: var(--sand); }
.gallery-carousel-track { display: flex; transition: transform 0.4s ease; height: 100%; }
.gallery-carousel-slide { flex: 0 0 100%; height: 100%; cursor: pointer; }
.gallery-carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-carousel-nav { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.gallery-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.6); border: 1px solid rgba(0,0,0,0.2); cursor: pointer; transition: 0.2s; }
.gallery-carousel-dot.active { background: var(--primary); }
.gallery-carousel-prev, .gallery-carousel-next { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; background: rgba(255,255,255,0.9); border: 1px solid rgba(0,0,0,0.1); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; transition: 0.2s; }
.gallery-carousel-prev { left: 8px; }
.gallery-carousel-next { right: 8px; }
.gallery-carousel-prev:hover, .gallery-carousel-next:hover { background: white; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 2rem 4rem; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 95%; max-height: 95%; object-fit: contain; pointer-events: none; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; background: rgba(255,255,255,0.2); border: none; border-radius: 50%; color: white; font-size: 1.5rem; cursor: pointer; z-index: 2; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.35); border-radius: 50%; color: white; font-size: 1.75rem; line-height: 1; cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-nav[hidden] { display: none; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.gallery-item:nth-child(2) .gallery-img { background-image: linear-gradient(120deg, #d5d5d5, #c5c5c5); }
.gallery-item:nth-child(3) .gallery-img { background-image: linear-gradient(80deg, #c5c5c5, #b5b5b5); }
.gallery-item:nth-child(4) .gallery-img { background-image: linear-gradient(200deg, #d0d0d0, #e0e0e0); }
.gallery-item:nth-child(5) .gallery-img { background-image: linear-gradient(40deg, #b5b5b5, #c5c5c5); }
.gallery-item:nth-child(6) .gallery-img { background-image: linear-gradient(160deg, #c0c0c0, #d0d0d0); }

.gallery-caption {
    padding: 1.5rem;
    background: white;
}
.gallery-caption h4 {
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}
.gallery-caption p {
    color: var(--secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.product-cta {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.35);
    padding: 0.45rem 0.75rem;
    color: var(--primary);
    transition: 0.2s;
}

.product-cta:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Personalizacja */
.customization {
    padding: 2.5rem 0;
    background: var(--light);
    border-top: 1px solid rgba(0,0,0,0.03);
}

.custom-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    margin: 1.5rem auto;
    max-width: 52rem;
}
.feature {
    flex: 0 1 200px;
    text-align: center;
}
.feature svg {
    width: 48px;
    height: 48px;
    stroke: var(--primary);
    stroke-width: 1.2;
    fill: none;
    display: block;
    margin: 0 auto 1rem;
}
.feature h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}
.feature p {
    color: var(--secondary);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    line-height: 1.45;
}


/* Footer */
footer {
    background: var(--light);
    color: var(--secondary);
    padding: 2rem 0 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.footer-col h4 {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.footer-col p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 300;
}
.footer-nav {
    border-top: 1px solid rgba(0,0,0,0.08);
    margin-top: 2rem;
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
}
.footer-nav a {
    font-size: 0.85rem;
    color: var(--secondary);
    opacity: 0.7;
    text-decoration: none;
    transition: opacity 0.2s;
    font-weight: 400;
}
.footer-nav a:hover { opacity: 1; }
.copyright {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    opacity: 0.6;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-premium {
    background: var(--sand);
    color: var(--primary);
    font-size: 0.7rem;
    padding: 0.3rem 1rem;
    border-radius: 0px;
    display: inline-block;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Meta Ads support section */
.meta-ads-story {
    padding: 2.5rem 0;
    background: var(--sand);
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.meta-ads-inner {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

.meta-ads-story h2 {
    margin-bottom: 1.25rem;
}

.meta-ads-lead {
    max-width: 100%;
    margin: 0 0 1.25rem;
    text-align: left;
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--secondary);
    font-weight: 300;
}

.meta-ads-points {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.meta-ads-point {
    border-left: 3px solid var(--primary);
    padding: 1.35rem 0 1.35rem 1.35rem;
    margin: 0;
    background: rgba(255, 255, 255, 0.65);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.meta-ads-point:last-of-type {
    border-bottom: none;
}

.meta-ads-point-title {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.5rem 0.65rem;
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.35;
    margin: 0 0 0.65rem;
    color: var(--primary);
}

.meta-ads-point-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.85rem;
    height: 1.85rem;
    padding: 0 0.35rem;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: var(--light);
    color: var(--primary);
    flex-shrink: 0;
}

.meta-ads-point-sub {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    width: 100%;
    margin-top: 0.35rem;
    line-height: 1.45;
}

@media (min-width: 600px) {
    .meta-ads-point-sub {
        display: inline;
        width: auto;
        margin-top: 0;
    }
}

.meta-ads-point p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.62;
    color: var(--secondary);
    font-weight: 300;
}

.meta-ads-closing {
    margin-top: 1.25rem;
    padding: 0.875rem 1.5rem 0.875rem 1.5rem;
    background: var(--light);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow);
}

.meta-ads-closing-title {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 600;
    margin: 0 0 0.85rem;
    letter-spacing: -0.01em;
    color: var(--primary);
}

.meta-ads-closing p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.62;
    color: var(--secondary);
    font-weight: 300;
}

.meta-ads-cta-row {
    margin-top: 1.25rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1000px) {
    nav ul { gap: 1.5rem; }
}

@media (max-width: 900px) {
    .hero-grid, .footer-grid { grid-template-columns: 1fr; }
    .intro-content { flex-direction: column; align-items: center; }
    .intro-portrait { width: 240px; margin: 0 auto; }
    .intro-portrait--landscape { width: min(100%, 640px); }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    nav ul { display: none; }
    .menu-toggle { display: block; }
    .header-inner { justify-content: space-between; }
}

@media (max-width: 600px) {
    .gallery { grid-template-columns: 1fr; }
    .btn { display: block; width: 100%; margin: 0.5rem 0; text-align: center; }
    .btn-outline { margin-left: 0; }
    .logo-img { height: 50px; max-width: 180px; }
    h1 { font-size: 2.5rem; }
}

@media (max-width: 900px) {
    nav ul.show {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
        background: white;
        border: 1px solid rgba(0,0,0,0.05);
        margin-top: 1rem;
        padding: 1.5rem;
        max-height: min(70vh, calc(100dvh - 5.5rem));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
}

/* FAQ */
.faq-wrap {
    max-width: 880px;
    margin: 0 auto;
}

.faq-list {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 1.1rem 1.25rem;
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--primary);
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(0,0,0,0.6);
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-answer {
    padding: 0 1.25rem 1.25rem;
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.65;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.review-card {
    border: 1px solid rgba(0,0,0,0.08);
    padding: 1.5rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.review-stars {
    color: #D4A017;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
}

.review-text {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--secondary);
    font-weight: 300;
    flex: 1;
}

.review-author {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-top: 0.3rem;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.reviews-summary-score {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1;
    color: var(--primary);
}

.reviews-summary-stars {
    color: #D4A017;
    font-size: 1.3rem;
    letter-spacing: 0.08em;
}

.reviews-summary-count {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 300;
}

/* ─── Shop: Bestseller badge ─── */
.gallery-item--bestseller {
    position: relative;
    border: 2px solid var(--accent);
    box-shadow: 0 4px 24px rgba(200,169,97,0.18);
}
.badge-bestseller {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    background: linear-gradient(135deg, var(--accent) 0%, #b8912e 100%);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.45rem 1.1rem 0.45rem 0.75rem;
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
    line-height: 1;
}

/* ─── Shop: Product Cards ─── */
.product-shop-info {
    display: flex;
    gap: 1rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}
.product-id, .product-dims {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--sand);
    padding: 0.25rem 0.6rem;
    border: 1px solid rgba(0,0,0,0.06);
}
.product-price {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0.6rem 0 0.4rem;
    letter-spacing: -0.01em;
}
.product-price-inquiry {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--accent);
}
.product-wood-select {
    margin: 0.5rem 0 0.4rem;
}
.product-wood-select label {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary);
    display: block;
    margin-bottom: 0.3rem;
}
.wood-select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    border: 1px solid rgba(0,0,0,0.15);
    background: #fff;
    color: var(--dark);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
}
.product-finish-select {
    margin: 0.5rem 0 0.8rem;
}
.product-finish-select label {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary);
    display: block;
    margin-bottom: 0.3rem;
}
.finish-select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    border: 1px solid rgba(0,0,0,0.15);
    background: #fff;
    color: var(--dark);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
}
.finish-select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}
.add-to-cart-btn {
    width: 100%;
    text-align: center;
    cursor: pointer;
}

/* ─── Cart Toast ─── */
.cart-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: #fff;
    padding: 1rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    z-index: 2000;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-width: 360px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.cart-toast.show { transform: translateY(0); opacity: 1; }
.cart-toast a { color: #fff; text-decoration: underline; margin-left: 0.5rem; font-weight: 600; }

/* ─── Cart Count Badge ─── */
.cart-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    margin-left: 0.3rem;
    vertical-align: middle;
    line-height: 1;
}

/* ─── Cart Page ─── */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}
.cart-table th {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary);
    text-align: left;
    padding: 0.75rem 0.5rem;
    border-bottom: 2px solid var(--primary);
}
.cart-table td {
    padding: 1rem 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--secondary);
    vertical-align: middle;
}
.cart-table-img { width: 70px; }
.cart-table-img img { width: 60px; height: 60px; object-fit: cover; border: 1px solid rgba(0,0,0,0.06); }
.cart-table-img-placeholder {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e8dcc8, #c4a574);
    border: 1px solid rgba(0,0,0,0.06);
}
.cart-config-note {
    display: block;
    margin-top: 0.25rem;
    color: var(--accent);
    line-height: 1.4;
}
.cart-remove-btn {
    background: none;
    border: 1px solid rgba(0,0,0,0.15);
    color: var(--secondary);
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.cart-remove-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.cart-summary {
    border-top: 2px solid var(--primary);
    padding: 1rem 0;
}
.cart-summary-line {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-sans);
    font-size: 1.2rem;
}
.cart-summary-line strong {
    font-family: var(--font-serif);
    font-size: 1.6rem;
}
.cart-note {
    font-size: 0.85rem;
    margin-top: 0.4rem;
}
.cart-empty a { color: var(--primary); text-decoration: underline; }

@media (max-width: 700px) {
    .cart-table th:nth-child(3), .cart-table td:nth-child(3),
    .cart-table th:nth-child(4), .cart-table td:nth-child(4),
    .cart-table th:nth-child(5), .cart-table td:nth-child(5),
    .cart-table th:nth-child(6), .cart-table td:nth-child(6) { display: none; }
    .cart-table-img img { width: 44px; height: 44px; }
}

/* ─── Order Form ─── */
.order-form { margin-top: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--secondary);
    margin-bottom: 0.35rem;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    border: 1px solid rgba(0,0,0,0.15);
    background: #fff;
    color: var(--dark);
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 80px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* Payment Methods */
.payment-methods { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.75rem; }
.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    transition: 0.2s;
}
.payment-option:hover { border-color: rgba(0,0,0,0.25); }
.payment-option input[type="radio"] { margin-top: 0.25rem; accent-color: var(--primary); }
.payment-option-inner { display: flex; flex-direction: column; gap: 0.15rem; }
.payment-option-inner strong { font-family: var(--font-sans); font-size: 0.9rem; }
.payment-option-inner small { font-family: var(--font-sans); font-size: 0.78rem; color: var(--accent); font-weight: 300; }

/* Consents */
.form-consents { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--secondary);
    line-height: 1.5;
    cursor: pointer;
}
.consent-label input[type="checkbox"] { margin-top: 0.2rem; flex-shrink: 0; accent-color: var(--primary); }
.consent-label a { color: var(--primary); text-decoration: underline; }

/* Order Confirmation */
.order-confirmation { text-align: center; padding: 2rem 0; }
.order-confirmation h2 { border-left: none; text-align: center; padding-left: 0; }
.order-confirmation p { max-width: 600px; margin: 1rem auto; }
.payment-info-box {
    background: var(--sand);
    border: 1px solid rgba(0,0,0,0.08);
    padding: 1.5rem;
    margin: 1.5rem auto;
    max-width: 500px;
    text-align: left;
}
.payment-info-box h4 { margin-bottom: 0.75rem; }

/* ─── Cookie Banner ─── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: #fff;
    padding: 1.2rem 5%;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 1500;
    flex-wrap: wrap;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.cookie-banner-text {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 300;
    line-height: 1.5;
    flex: 1;
    min-width: 250px;
}
.cookie-banner-text a { color: #fff; text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cookie-btn {
    padding: 0.6rem 1.4rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid #fff;
    transition: 0.2s;
}
.cookie-btn-accept { background: #fff; color: var(--primary); }
.cookie-btn-accept:hover { background: var(--sand); }
.cookie-btn-reject { background: transparent; color: #fff; }
.cookie-btn-reject:hover { background: rgba(255,255,255,0.1); }

/* Performance: contain layout for heavy sections */
.gallery { contain: layout style; }
.gallery-carousel { contain: layout; }
.lightbox img { will-change: transform; }

/* Ensure subpage H1 inherits H2 styling */
main h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-family: var(--font-serif);
    margin-bottom: 1rem;
    font-weight: 500;
    border-left: 4px solid var(--primary);
    padding-left: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Reduce CLS: explicit aspect ratio for common images */
.hero-video-placeholder img,
.gallery-carousel-slide img {
    aspect-ratio: 4/3;
    object-fit: cover;
    background-color: var(--sand);
}

/* Reduce LCP: prioritize above-fold content paint */
.hero { contain: layout style; }

/* Print stylesheet for accessibility */
@media print {
    header, footer, .lightbox, .menu-toggle, .lang-switch { display: none !important; }
    main { padding: 0; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Product Page ─── */
.product-page { padding: 2rem 0 4rem; }
.product-breadcrumb {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}
.product-breadcrumb a { color: var(--secondary); text-decoration: none; }
.product-breadcrumb a:hover { color: var(--primary); text-decoration: underline; }
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.product-gallery { position: relative; }
.product-gallery-carousel { border: 1px solid rgba(0,0,0,0.06); }
.product-gallery-main--single img,
.product-gallery-main--single {
    width: 100%;
    display: block;
    border: 1px solid rgba(0,0,0,0.06);
}
.product-badge { position: absolute; top: 1rem; left: 1rem; z-index: 2; }
.product-details h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    border-left: none;
    padding-left: 0;
    text-transform: none;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.product-lead { color: var(--secondary); margin-bottom: 0.75rem; line-height: 1.6; }
.product-option-label {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary);
    display: block;
    margin-bottom: 0.6rem;
}
.product-wood-picker { margin: 1rem 0 0.75rem; }
.wood-swatch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 0.5rem;
    max-width: 420px;
}
.wood-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem;
    border: 2px solid transparent;
    background: none;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
    font-family: var(--font-sans);
    font-size: 0.62rem;
    line-height: 1.2;
    text-align: center;
    color: var(--secondary);
}
.wood-swatch:hover { border-color: rgba(0,0,0,0.15); }
.wood-swatch.active {
    border-color: var(--primary);
    transform: scale(1.02);
}
.wood-swatch img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 2px;
}
.wood-swatch span { max-width: 72px; }
.wood-select--hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
.wood-selected-label {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--secondary);
    margin-top: 0.5rem;
}
.wood-selected-label strong { font-weight: 600; }
.product-stain-picker { margin: 1.25rem 0 0.75rem; }
.stain-note {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--secondary);
    margin: 0 0 0.75rem;
    max-width: 36rem;
}
.stain-swatch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 0.5rem;
    max-width: 520px;
}
.stain-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem;
    border: 2px solid transparent;
    background: none;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
    font-family: var(--font-sans);
    font-size: 0.58rem;
    line-height: 1.2;
    text-align: center;
    color: var(--secondary);
}
.stain-swatch:hover { border-color: rgba(0,0,0,0.15); }
.stain-swatch.active {
    border-color: var(--primary);
    transform: scale(1.02);
}
.stain-swatch img,
.stain-swatch-preview {
    width: 64px;
    height: 72px;
    object-fit: cover;
    object-position: center 18%;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 2px;
    display: block;
}
.stain-swatch-preview {
    background:
        linear-gradient(160deg, #f3ebdd 0%, #e2d2b8 45%, #c9b28e 100%);
}
.stain-swatch span { max-width: 76px; }
.stain-select--hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
.stain-selected-label {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--secondary);
    margin-top: 0.5rem;
}
.stain-selected-label strong { font-weight: 600; }
.product-description {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}
.product-description h2 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    border-left: none;
    padding-left: 0;
    text-transform: none;
}
.product-description p { color: var(--secondary); line-height: 1.7; margin-bottom: 0.75rem; }
.product-delivery-estimate {
    margin: 1.25rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(201, 169, 97, 0.08);
}
.product-delivery-estimate__title {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary);
    margin: 0 0 0.5rem;
}
.product-delivery-estimate__dates {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--primary);
    margin: 0 0 0.45rem;
    line-height: 1.35;
}
.product-delivery-estimate__note,
.product-delivery-estimate__shipping {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--secondary);
    line-height: 1.55;
    margin: 0.35rem 0 0;
}
.product-delivery-estimate--compact {
    margin: 0;
    padding: 0.85rem 1rem;
}
.gallery-caption h4 a.gallery-item-link {
    display: inline;
    text-decoration: none;
    color: inherit;
}
.gallery-caption h4 a.gallery-item-link:hover { color: var(--primary); }
.product-detail-btn {
    display: inline-block;
    margin-top: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}
.product-detail-btn:hover { opacity: 0.75; }
@media (max-width: 900px) {
    .product-layout { grid-template-columns: 1fr; gap: 2rem; }
    .wood-swatch-grid { max-width: none; }
}

/* ─── Samples order section ─── */
.samples-section {
    padding: 4rem 0;
    background: var(--sand, #f5f0e8);
    border-top: 1px solid rgba(0,0,0,0.06);
}
.samples-header {
    margin-bottom: 2rem;
}
.samples-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}
.samples-header p {
    color: var(--secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.samples-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}
.samples-photo {
    margin: 0;
    aspect-ratio: 1;
    max-height: 560px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    overflow: hidden;
}
.samples-photo__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.samples-form-wrap {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 1.5rem;
}
.samples-form .btn { width: 100%; margin-top: 0.5rem; }
@media (max-width: 768px) {
    .samples-layout { grid-template-columns: 1fr; gap: 2rem; }
}

