/* ABOUTME: Erkado door pages — the style listing grid ([wsllc_erkado_listing]) and */
/* ABOUTME: the per-style product layout ([wsllc_erkado_door]). Data: data/erkado-doors.json. */

.wsllc-erk {
    --erk-ink: #1c2129;
    --erk-muted: #6b7480;
    --erk-line: #e3e6ea;
    --erk-tint: #f4f2ef;
    --erk-accent: #ca511d;
    --erk-accent-dark: #a8410f;
    --erk-radius: 6px;
    color: var(--erk-ink);
}
.wsllc-erk *,
.wsllc-erk *::before,
.wsllc-erk *::after { box-sizing: border-box; }
.wsllc-erk ul { list-style: none; margin: 0; padding: 0; }
/* site CSS rules a hairline under headings; these headings bring their own rules */
.wsllc-erk h1,
.wsllc-erk h2,
.wsllc-erk h3 { border-bottom: 0; padding-bottom: 0; }
.wsllc-erk li { margin: 0; }
.wsllc-erk img { display: block; max-width: 100%; height: auto; }

.wsllc-erk__eyebrow {
    display: block;
    margin: 0 0 6px;
    color: var(--erk-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.wsllc-erk__badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--erk-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.6;
    text-transform: uppercase;
    vertical-align: 1px;
}
.wsllc-erk__badge--best-price { background: var(--erk-ink); }

/* ── Listing ─────────────────────────────────────────────── */

.wsllc-erk--listing { margin: 8px 0 48px; }

.wsllc-erk__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
/* The7 styles bare buttons with its accent fill; reset for the pill look. */
.wsllc-erk .wsllc-erk__filter {
    margin: 0;
    padding: 8px 16px;
    border: 1px solid var(--erk-line) !important;
    border-radius: 999px;
    background: #fff !important;
    color: var(--erk-ink) !important;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    transition: border-color .15s, background-color .15s, color .15s;
}
.wsllc-erk .wsllc-erk__filter span { color: var(--erk-muted); margin-left: 4px; font-size: 12px; }
.wsllc-erk .wsllc-erk__filter:hover { border-color: var(--erk-ink) !important; }
.wsllc-erk .wsllc-erk__filter[aria-pressed="true"] {
    border-color: var(--erk-ink) !important;
    background: var(--erk-ink) !important;
    color: #fff !important;
}
.wsllc-erk .wsllc-erk__filter[aria-pressed="true"] span { color: rgba(255, 255, 255, .7); }
.wsllc-erk__filter:focus-visible,
.wsllc-erk__variant:focus-visible,
.wsllc-erk__card-link:focus-visible,
.wsllc-erk__btn:focus-visible { outline: 2px solid var(--erk-accent); outline-offset: 2px; }

.wsllc-erk__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 28px 20px;
}
.wsllc-erk__card[hidden] { display: none; }

.wsllc-erk__card-link {
    display: block;
    color: inherit !important;
    text-decoration: none !important;
}
/* Door on a warm tint; the room photo fades in behind it on hover. */
.wsllc-erk__card-media {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--erk-radius);
    background: var(--erk-tint);
}
.wsllc-erk__card-room {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity .45s ease, transform .9s ease;
}
.wsllc-erk__card-door {
    position: absolute;
    left: 50%;
    top: 50%;
    height: 82% !important;
    width: auto !important;
    max-width: 80%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    /* catalog crops carry the page's white around the door; multiply drops it into the tint */
    mix-blend-mode: multiply;
    transition: opacity .35s ease, transform .45s ease;
}
.wsllc-erk__card-link:hover .wsllc-erk__card-room,
.wsllc-erk__card-link:focus-visible .wsllc-erk__card-room { opacity: 1; transform: scale(1); }
.wsllc-erk__card-link:hover .wsllc-erk__card-door,
.wsllc-erk__card-link:focus-visible .wsllc-erk__card-door { opacity: 0; transform: translate(-50%, -48%); }
.wsllc-erk__badges { position: absolute; top: 10px; left: 4px; }

.wsllc-erk__card-body { display: block; padding: 12px 2px 0; }
.wsllc-erk__card-title {
    display: block;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
}
.wsllc-erk__card-link:hover .wsllc-erk__card-title { color: var(--erk-accent); }
.wsllc-erk__card-meta { display: block; margin-top: 3px; color: var(--erk-muted); font-size: 13px; }
.wsllc-erk__empty { color: var(--erk-muted); }

@media (prefers-reduced-motion: reduce) {
    .wsllc-erk__card-room,
    .wsllc-erk__card-door { transition: none; }
}

/* ── Product page ────────────────────────────────────────── */

/* The shortcode prints its own h1 and breadcrumb. */
.wsllc-erkado-door-page .page-title { display: none; }

.wsllc-erk--door { padding: 8px 0 56px; }

.wsllc-erk__crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--erk-muted);
    font-size: 14px;
}
.wsllc-erk__crumbs a { color: var(--erk-muted); text-decoration: none; }
.wsllc-erk__crumbs a:hover { color: var(--erk-accent); }

.wsllc-erk__top {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: start;
}
/* not sticky: position:sticky silently fails inside The7's overflow:hidden wrappers */
.wsllc-erk__stage {
    margin: 0;
    padding: 32px 24px 16px;
    border-radius: var(--erk-radius);
    background: var(--erk-tint);
    text-align: center;
}
.wsllc-erk__stage-img {
    margin: 0 auto;
    max-height: 640px;
    width: auto !important;
    mix-blend-mode: multiply;
    transition: opacity .2s ease;
}
.wsllc-erk__stage-img.is-swapping { opacity: 0; }
.wsllc-erk__stage figcaption {
    margin-top: 14px;
    color: var(--erk-muted);
    font-size: 14px;
    font-weight: 500;
}

.wsllc-erk__title {
    margin: 0 0 8px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;
}
.wsllc-erk__subtitle { margin: 0 0 16px; color: var(--erk-muted); font-size: 16px; }
.wsllc-erk__blurb { margin: 0 0 8px; font-size: 16px; line-height: 1.65; max-width: 62ch; }

.wsllc-erk__label {
    margin: 28px 0 12px;
    padding-top: 20px;
    border-top: 1px solid var(--erk-line);
    font-size: 13px !important;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.3 !important;
    text-transform: uppercase;
}
.wsllc-erk__label span { color: var(--erk-muted); font-weight: 500; margin-left: 4px; }

.wsllc-erk__variants {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: 10px;
}
.wsllc-erk__variants.is-many { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.wsllc-erk .wsllc-erk__variant {
    display: block;
    width: 100%;
    margin: 0;
    padding: 6px 6px 4px;
    border: 1px solid transparent !important;
    border-radius: var(--erk-radius);
    background: transparent !important;
    color: var(--erk-ink) !important;
    font: inherit;
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}
.wsllc-erk .wsllc-erk__variant:hover { background: var(--erk-tint) !important; }
.wsllc-erk .wsllc-erk__variant[aria-pressed="true"] { border-color: var(--erk-ink) !important; background: #fff !important; }
.wsllc-erk__variant img { mix-blend-mode: multiply; margin: 0 auto; aspect-ratio: 65 / 140; object-fit: contain; width: 100%; }
.wsllc-erk__variant span { display: block; margin-top: 4px; font-size: 11px; line-height: 1.3; text-align: center; }

.wsllc-erk__finish-group h3 {
    margin: 12px 0 8px;
    color: var(--erk-muted);
    font-size: 12px !important;
    font-weight: 600;
    line-height: 1.3 !important;
}
.wsllc-erk__finishes { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.wsllc-erk__finish { width: 92px; font-size: 11px; line-height: 1.3; }
.wsllc-erk__finish img {
    width: 92px;
    height: 34px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
    margin-bottom: 4px;
}

.wsllc-erk__widths { display: flex; flex-wrap: wrap; gap: 6px; }
.wsllc-erk__widths li {
    min-width: 44px;
    padding: 5px 8px;
    border: 1px solid var(--erk-line);
    border-radius: 4px;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-align: center;
}
.wsllc-erk__note { margin: 8px 0 0; color: var(--erk-muted); font-size: 12px; }

.wsllc-erk__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.wsllc-erk__btn {
    display: inline-block;
    padding: 13px 24px;
    border: 1px solid var(--erk-accent);
    border-radius: 4px;
    background: var(--erk-accent);
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color .15s, border-color .15s, color .15s;
}
.wsllc-erk__btn:hover { background: var(--erk-accent-dark); border-color: var(--erk-accent-dark); }
.wsllc-erk__btn--ghost { background: transparent; color: var(--erk-ink) !important; border-color: var(--erk-line); }
.wsllc-erk__btn--ghost:hover { background: var(--erk-tint); border-color: var(--erk-ink); }

.wsllc-erk__room { margin: 64px 0 0; }
.wsllc-erk__room img { width: 100%; border-radius: var(--erk-radius); }
.wsllc-erk__room figcaption { margin-top: 10px; color: var(--erk-muted); font-size: 13px; }

.wsllc-erk__specs { margin-top: 56px; }
.wsllc-erk__specs-title { margin: 0 0 20px; font-size: 28px; }
.wsllc-erk__spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px 40px;
}
.wsllc-erk .wsllc-erk__spec h3 {
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--erk-ink);
    font-size: 16px !important;
    line-height: 1.3 !important;
}
.wsllc-erk__spec li {
    position: relative;
    padding: 6px 0 6px 16px;
    border-bottom: 1px solid var(--erk-line);
    font-size: 14px;
    line-height: 1.55;
}
.wsllc-erk__spec li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 15px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--erk-accent);
}

.wsllc-erk__pager {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--erk-line);
}
.wsllc-erk__pager a { color: var(--erk-ink); text-decoration: none; font-weight: 600; font-size: 17px; }
.wsllc-erk__pager a:hover { color: var(--erk-accent); }
.wsllc-erk__pager a span {
    display: block;
    color: var(--erk-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.wsllc-erk__pager-next { grid-column: 3; text-align: right; }
.wsllc-erk__pager-all { grid-column: 2; grid-row: 1; font-size: 14px !important; }

/* ── Hardware (handles) ── */

.wsllc-erk__hardware { margin-top: 56px; }
.wsllc-erk__lede { margin: -8px 0 8px; color: var(--erk-muted); font-size: 15px; max-width: 70ch; }
.wsllc-erk__handles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 24px 18px;
}
.wsllc-erk__handle-media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    padding: 10px;
    border-radius: var(--erk-radius);
    background: var(--erk-tint);
}
.wsllc-erk__handle-media img {
    max-height: 100%;
    width: auto !important;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: opacity .18s ease;
}
.wsllc-erk__handle-media img.is-swapping { opacity: 0; }
.wsllc-erk__handle-name { display: block; margin-top: 8px; font-size: 15px; font-weight: 600; }
.wsllc-erk__handle-finish { display: block; color: var(--erk-muted); font-size: 12px; }
.wsllc-erk__handle-finishes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.wsllc-erk .wsllc-erk__handle-finishes button {
    margin: 0;
    padding: 2px 7px;
    border: 1px solid var(--erk-line) !important;
    border-radius: 999px;
    background: #fff !important;
    color: var(--erk-muted) !important;
    font: inherit;
    font-size: 11px;
    line-height: 1.5;
    cursor: pointer;
}
.wsllc-erk .wsllc-erk__handle-finishes button:hover { border-color: var(--erk-ink) !important; color: var(--erk-ink) !important; }
.wsllc-erk .wsllc-erk__handle-finishes button[aria-pressed="true"] {
    border-color: var(--erk-ink) !important;
    background: var(--erk-ink) !important;
    color: #fff !important;
}

@media (max-width: 900px) {
    .wsllc-erk__top { grid-template-columns: 1fr; gap: 28px; }
    .wsllc-erk__stage-img { max-height: 420px; }
}
@media (max-width: 560px) {
    .wsllc-erk__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
    .wsllc-erk__card-title { font-size: 16px; }
    .wsllc-erk__handles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
    .wsllc-erk__pager { grid-template-columns: 1fr 1fr; }
    .wsllc-erk__pager-all { grid-column: 1 / -1; grid-row: 2; text-align: center; }
}
