/**
 * Single-product kitchen styles. Scoped to .lba-kitchen-product-page.
 * Hand-written, no frameworks. Depends on main.css tokens.
 *
 * Revision v1 (2026-04-21):
 *   - Middle section rewired to 2-column meta (primary + Maker sidebar).
 *   - Request-a-Quote CTA removed.
 *   - Old bottom Maker block removed (.lba-brand-editorial).
 *   - Tabs reduced from 4 to 3 (Design Process extracted).
 *   - Dedicated Design Process section added, mirroring Kitchens landing
 *     page Our Approach treatment, scaled to 4 columns.
 *
 * Revision v2 (2026-04-21):
 *   - Meta section collapsed back to single-column, left-aligned.
 *   - Right-column Maker aside removed; Maker moved to 4th tab panel.
 *   - Gallery hero converted from <div><img></div> to <button><img></button>
 *     with cursor: zoom-in to signal the PhotoSwipe lightbox.
 *   - New .lba-cab-tab-panel--maker rules give the tabbed Maker block
 *     breathing room and a logo-forward layout.
 *
 * Revision v3 (2026-04-22):
 *   - The Maker tab removed entirely; back to 3 tabs.
 *   - .lba-cab-tab-panel--maker rules deleted.
 *   - Tablet-only Maker logo sizing deleted from the 1024px breakpoint.
 */

.lba-kitchen-product-page {
    background: var(--lba-white, #ffffff);
    color: var(--lba-black, #1a1a1a);
    font-family: var(--lba-font-secondary, 'Inter', sans-serif);
}

/* Flush utility duplicated from catalogue.css so this template works without
 * requiring catalogue.css on product pages. Identical rule. */
.lba-page-main--flush {
    padding: 0;
    margin: 0;
    max-width: none;
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.lba-cab-breadcrumb {
    padding: 32px 48px 0;
    max-width: 1280px;
    margin: 0 auto;
}
.lba-cab-breadcrumb__inner {
    font-family: var(--lba-font-secondary, 'Inter', sans-serif);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--lba-gray-500, #737373);
    line-height: 1.5;
}
.lba-cab-breadcrumb a {
    color: var(--lba-gray-500, #737373);
    text-decoration: none;
    transition: color 0.15s ease;
}
.lba-cab-breadcrumb a:hover,
.lba-cab-breadcrumb a:focus-visible {
    color: var(--lba-black, #1a1a1a);
}
.lba-cab-breadcrumb__sep {
    margin: 0 8px;
    color: var(--lba-gray-300, #d4d4d4);
}
.lba-cab-breadcrumb__current {
    color: var(--lba-black, #1a1a1a);
}

/* ============================================================
   Article container
   ============================================================ */
.lba-product-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 48px 96px;
}

/* ============================================================
   Brand eyebrow above gallery (kept from revision v0)
   ============================================================ */
.lba-brand-badge {
    text-align: center;
    font-family: var(--lba-font-secondary, 'Inter', sans-serif);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--lba-gray-500, #737373);
    margin: 0 0 32px;
}

/* ============================================================
   Gallery
   ============================================================ */
.lba-kitchen-gallery {
    margin: 0 0 64px;
}
/* Hero is now a <button> that opens the PhotoSwipe lightbox. Reset the
   default button chrome and flag zoomability with the cursor. */
.lba-kitchen-gallery__hero {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: var(--lba-gray-100, #f7f7f7);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: zoom-in;
}
.lba-kitchen-gallery__hero:focus-visible {
    outline: 2px solid var(--lba-black, #1a1a1a);
    outline-offset: 2px;
}
.lba-kitchen-gallery__hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.lba-kitchen-gallery__thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 4px;
}
.lba-kitchen-gallery__thumb {
    flex: 0 0 auto;
    width: 140px;
    height: 78px;
    padding: 0;
    border: 1px solid transparent;
    background: var(--lba-gray-100, #f7f7f7);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 200ms ease, opacity 200ms ease;
    opacity: 0.75;
}
.lba-kitchen-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lba-kitchen-gallery__thumb:hover,
.lba-kitchen-gallery__thumb:focus-visible {
    opacity: 1;
}
.lba-kitchen-gallery__thumb.is-active {
    border-color: var(--lba-black, #1a1a1a);
    opacity: 1;
}

/* ============================================================
   Meta section (v3): single-column, left-aligned.
   Brand eyebrow, H1, designer, single CTA stacked under the gallery.
   The Maker block that used to live in the right column (v1) and
   then in a 4th tab panel (v2) was removed entirely in v3.
   ============================================================ */
.lba-kitchen-product__meta {
    margin: 0 0 80px;
    text-align: left;
    max-width: 760px;
}
.lba-kitchen-product__eyebrow {
    font-family: var(--lba-font-secondary, 'Inter', sans-serif);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--lba-gray-500, #737373);
    margin: 0 0 20px;
}
.lba-kitchen-product__eyebrow-sep {
    margin: 0 10px;
    color: var(--lba-gray-300, #d4d4d4);
}
.lba-kitchen-product__title {
    font-family: var(--lba-font-primary, 'Inter', sans-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    font-weight: 400;
    color: var(--lba-black, #1a1a1a);
    margin: 0 0 0.5rem;
    text-align: left;
}
.lba-kitchen-product__designer {
    font-family: var(--lba-font-secondary, 'Inter', sans-serif);
    font-size: 0.9375rem;
    font-style: italic;
    color: var(--lba-gray-700, #404040);
    margin: 0 0 32px;
    text-align: left;
}
.lba-kitchen-product__cta {
    display: inline-block;
    padding: 18px 44px;
    min-width: 340px;
    max-width: 380px;
    text-align: center;
    text-decoration: none;
    background: var(--lba-black, #1a1a1a);
    color: var(--lba-white, #ffffff) !important;
    border: 1px solid var(--lba-black, #1a1a1a);
    font-family: var(--lba-font-secondary, 'Inter', sans-serif);
    font-size: 0.9375rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background-color 200ms ease, color 200ms ease;
}
.lba-kitchen-product__cta:hover,
.lba-kitchen-product__cta:focus-visible {
    background: transparent;
    color: var(--lba-black, #1a1a1a) !important;
}

/* ============================================================
   Tabs (3 tabs: Overview / Specifications / Finishes)
   Design Process lives in its own section below the tabs.
   ============================================================ */
.lba-cab-tabs {
    margin: 0 0 96px;
    border-top: 1px solid var(--lba-gray-200, #eeeeee);
}
.lba-cab-tabs-nav {
    display: flex;
    gap: 0;
    justify-content: flex-start;
    border-bottom: 1px solid var(--lba-gray-200, #eeeeee);
    margin-bottom: 40px;
    overflow-x: auto;
    scrollbar-width: thin;
}
.lba-cab-tab-button {
    flex: 0 0 auto;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 24px 32px;
    font-family: var(--lba-font-secondary, 'Inter', sans-serif);
    font-size: 0.8125rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--lba-gray-500, #737373);
    cursor: pointer;
    transition: color 200ms ease, border-color 200ms ease;
    margin-bottom: -1px;
}
.lba-cab-tab-button:hover,
.lba-cab-tab-button:focus-visible {
    color: var(--lba-black, #1a1a1a);
}
.lba-cab-tab-button.is-active {
    color: var(--lba-black, #1a1a1a);
    border-bottom-color: var(--lba-black, #1a1a1a);
}
.lba-cab-tabs-content {
    max-width: 960px;
    margin: 0 auto;
}
.lba-cab-tab-panel {
    font-family: var(--lba-font-secondary, 'Inter', sans-serif);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--lba-gray-700, #404040);
}
.lba-cab-tab-panel p {
    margin: 0 0 20px;
}
.lba-cab-tab-panel p:last-child {
    margin-bottom: 0;
}
.lba-cab-tab-panel[hidden] {
    display: none;
}

/* Spec grid (Specifications tab) */
.lba-cab-spec-grid {
    display: grid;
    grid-template-columns: minmax(160px, 240px) 1fr;
    column-gap: 32px;
    row-gap: 20px;
    align-items: start;
}
.lba-cab-spec-label {
    font-family: var(--lba-font-secondary, 'Inter', sans-serif);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--lba-gray-500, #737373);
    padding-top: 2px;
}
.lba-cab-spec-value {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--lba-black, #1a1a1a);
}

/* ============================================================
   Design Process section (dedicated, mirrors Kitchens landing page)
   Desktop: 4 columns with hairline dividers between steps.
   Tablet:  2x2 grid.
   Mobile:  stacked with border-top between steps.
   ============================================================ */
.lba-kitchen-product__process {
    padding: 96px 48px;
    background: var(--lba-white, #ffffff);
    border-top: 1px solid var(--lba-gray-200, #eeeeee);
    margin: 0 -48px -96px;
}
.lba-kitchen-product__process-inner {
    max-width: 1280px;
    margin: 0 auto;
}
.lba-kitchen-product__process-header {
    text-align: center;
    margin-bottom: 64px;
}
.lba-kitchen-product__process-heading {
    font-family: var(--lba-font-primary, 'Inter', sans-serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.1;
    font-weight: 400;
    color: var(--lba-black, #1a1a1a);
    margin: 0;
}
.lba-kitchen-product__process-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.lba-kitchen-product__process-step {
    padding: 0 32px;
    border-left: 1px solid var(--lba-gray-200, #eeeeee);
}
.lba-kitchen-product__process-step:first-child {
    border-left: 0;
    padding-left: 0;
}
.lba-kitchen-product__process-step:last-child {
    padding-right: 0;
}
.lba-kitchen-product__process-number {
    font-family: var(--lba-font-secondary, 'Inter', sans-serif);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--lba-gray-500, #737373);
    margin: 0 0 20px;
}
.lba-kitchen-product__process-step-title {
    font-family: var(--lba-font-primary, 'Inter', sans-serif);
    font-size: 1.25rem;
    line-height: 1.25;
    font-weight: 400;
    color: var(--lba-black, #1a1a1a);
    margin: 0 0 14px;
}
.lba-kitchen-product__process-step-body {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--lba-gray-700, #404040);
    margin: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .lba-cab-breadcrumb,
    .lba-product-page {
        padding-left: 32px;
        padding-right: 32px;
    }

    .lba-cab-tab-button {
        padding: 20px 20px;
    }

    /* Process section: 2x2 grid */
    .lba-kitchen-product__process {
        padding: 72px 32px;
        margin: 0 -32px -96px;
    }
    .lba-kitchen-product__process-steps {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 48px;
    }
    .lba-kitchen-product__process-step {
        padding: 0 24px;
    }
    .lba-kitchen-product__process-step:nth-child(3) {
        border-left: 0;
        padding-left: 0;
    }
    .lba-kitchen-product__process-step:nth-child(2),
    .lba-kitchen-product__process-step:nth-child(4) {
        padding-right: 0;
    }
    .lba-kitchen-product__process-step:nth-child(3),
    .lba-kitchen-product__process-step:nth-child(4) {
        padding-top: 48px;
        border-top: 1px solid var(--lba-gray-200, #eeeeee);
    }
}

@media (max-width: 640px) {
    .lba-cab-breadcrumb {
        padding: 20px 20px 0;
    }
    .lba-product-page {
        padding: 28px 20px 56px;
    }
    .lba-kitchen-gallery {
        margin-bottom: 40px;
    }
    .lba-kitchen-gallery__thumb {
        width: 96px;
        height: 54px;
    }
    .lba-kitchen-product__meta {
        margin-bottom: 56px;
    }
    .lba-kitchen-product__cta {
        min-width: 0;
        max-width: none;
        width: 100%;
        padding: 16px 24px;
    }
    .lba-cab-tabs-nav {
        gap: 0;
    }
    .lba-cab-tab-button {
        padding: 16px 14px;
        font-size: 0.6875rem;
    }
    .lba-cab-spec-grid {
        grid-template-columns: 1fr;
        row-gap: 6px;
    }
    .lba-cab-spec-label {
        padding-top: 0;
    }
    .lba-cab-spec-value {
        margin-bottom: 14px;
    }

    /* Process section stacks, hairline above each step after the first */
    .lba-kitchen-product__process {
        padding: 56px 20px;
        margin: 0 -20px -56px;
    }
    .lba-kitchen-product__process-header {
        margin-bottom: 40px;
    }
    .lba-kitchen-product__process-steps {
        grid-template-columns: 1fr;
        row-gap: 0;
    }
    .lba-kitchen-product__process-step {
        padding: 40px 0;
        border-left: 0 !important;
        border-top: 1px solid var(--lba-gray-200, #eeeeee);
    }
    .lba-kitchen-product__process-step:first-child {
        padding-top: 0;
        border-top: 0;
    }
    .lba-kitchen-product__process-step:last-child {
        padding-bottom: 0;
    }
}
