/* ABOUTME: Fakro page — section jump links and listing stock badges ([wsllc_fakro_jump], */
/* ABOUTME: [wsllc_fakro_link]) and the product detail page ([wsllc_fakro_product]). */

/* ---- Fakro page (910): section anchors, jump pills, listing links ---- */

/* Land below The7's floating header instead of under it. */
#attic-ladders,
#skylights,
.wsllc-fakro #sizes { scroll-margin-top: 110px; }

.wsllc-fakro-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 0;
}
.wsllc-fakro-jump__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1px solid #c9ced6;
    border-radius: 999px;
    background: #fff;
    color: #1c2129 !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background-color .2s, border-color .2s, color .2s;
}
.wsllc-fakro-jump__link:hover,
.wsllc-fakro-jump__link:focus-visible {
    border-color: #ca511d;
    background: #ca511d;
    color: #fff !important;
}
.wsllc-fakro-jump__link.is-current {
    border-color: #1c2129;
    background: #1c2129;
    color: #fff !important;
    cursor: default;
}

.wsllc-fakro-link {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(202, 81, 29, .45);
    text-underline-offset: 3px;
}
.wsllc-fakro-link:hover { color: #ca511d; text-decoration-color: currentColor; }
.wsllc-fakro-link__arrow { display: inline-block; transition: transform .2s; }
.wsllc-fakro-link:hover .wsllc-fakro-link__arrow { transform: translateX(3px); }

/* ---- In-stock badge (listing + product page) ---- */

.wsllc-fakro-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding: 2px 10px 2px 8px;
    border-radius: 999px;
    background: #e6f4ea;
    color: #1e6b34;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.6;
    vertical-align: middle;
    white-space: nowrap;
}
.wsllc-fakro-stock__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2e9e4f;
    box-shadow: 0 0 0 3px rgba(46, 158, 79, .2);
}

/* ---- Product detail page ---- */

.wsllc-fakro-product-page .page-title { display: none; }

.wsllc-fakro {
    --fk-ink: #1c2129;
    --fk-muted: #6b7480;
    --fk-line: #e3e6ea;
    --fk-tint: #f2f4f6;
    --fk-accent: #ca511d;
    --fk-accent-dark: #a8410f;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 0 56px;
    color: var(--fk-ink);
}
.wsllc-fakro *,
.wsllc-fakro *::before,
.wsllc-fakro *::after { box-sizing: border-box; }
.wsllc-fakro ul { list-style: none; margin: 0; padding: 0; }
.wsllc-fakro li { margin: 0; }
.wsllc-fakro h1,
.wsllc-fakro h2,
.wsllc-fakro h3 { border-bottom: 0; padding-bottom: 0; color: var(--fk-ink); }
.wsllc-fakro img { display: block; max-width: 100%; height: auto; }

.wsllc-fakro__back {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--fk-muted) !important;
    font-size: 14px;
    text-decoration: none !important;
}
.wsllc-fakro__back:hover { color: var(--fk-accent) !important; }

.wsllc-fakro__hero {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: center;
}
.wsllc-fakro__shot {
    display: flex;
    justify-content: center;
    padding: 32px;
    border-radius: 8px;
    background: var(--fk-tint);
}
.wsllc-fakro__shot img { max-height: 560px; width: auto; }

.wsllc-fakro__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--fk-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.wsllc-fakro__title {
    margin: 0 0 12px;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.1;
}
.wsllc-fakro__code { color: var(--fk-accent); }
.wsllc-fakro__intro .wsllc-fakro-stock { margin-left: 0; font-size: 13px; }
.wsllc-fakro__lede {
    margin: 18px 0 24px;
    color: #3b434e;
    font-size: 17px;
    line-height: 1.6;
}

.wsllc-fakro__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 28px;
    border: 1px solid var(--fk-line);
    border-radius: 8px;
}
.wsllc-fakro__stats > div { padding: 14px 16px; }
.wsllc-fakro__stats > div + div { border-left: 1px solid var(--fk-line); }
.wsllc-fakro__stats dt {
    margin: 0 0 2px;
    color: var(--fk-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.wsllc-fakro__stats dd { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.2; }

.wsllc-fakro__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.wsllc-fakro__btn {
    display: inline-block;
    padding: 12px 26px;
    border: 2px solid var(--fk-accent);
    border-radius: 4px;
    background: var(--fk-accent);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color .2s, border-color .2s, color .2s;
}
.wsllc-fakro__btn:hover { border-color: var(--fk-accent-dark); background: var(--fk-accent-dark); }
.wsllc-fakro__btn--ghost { background: transparent; color: var(--fk-accent) !important; }
.wsllc-fakro__btn--ghost:hover { background: var(--fk-accent); color: #fff !important; }
.wsllc-fakro__catalog-unused {
    display: inline-block;
    margin-top: 16px;
    color: var(--fk-muted) !important;
    font-size: 14px;
}
.wsllc-fakro__catalog:hover { color: var(--fk-accent) !important; }

.wsllc-fakro__section { margin-top: 64px; }
.wsllc-fakro__section h2 { margin: 0 0 24px; font-size: 28px; }

.wsllc-fakro__details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.wsllc-fakro__details li {
    padding: 20px;
    border: 1px solid var(--fk-line);
    border-radius: 8px;
}
.wsllc-fakro__details img {
    width: 100%;
    height: 120px;
    margin-bottom: 14px;
    border-radius: 6px;
    object-fit: cover;
}
.wsllc-fakro__details h3 { margin: 0 0 6px; font-size: 17px; }
.wsllc-fakro__details p { margin: 0; color: #4a525d; font-size: 15px; line-height: 1.5; }

.wsllc-fakro__features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 20px;
    margin-top: 24px !important;
}
.wsllc-fakro__features li {
    position: relative;
    padding-left: 24px;
    font-size: 15px;
    line-height: 1.5;
}
.wsllc-fakro__features li::before {
    content: "";
    position: absolute;
    top: .35em;
    left: 2px;
    width: 10px;
    height: 6px;
    border-bottom: 2px solid var(--fk-accent);
    border-left: 2px solid var(--fk-accent);
    transform: rotate(-45deg);
}

.wsllc-fakro__table-wrap {
    overflow-x: auto;
    border: 1px solid var(--fk-line);
    border-radius: 8px;
}
.wsllc-fakro__table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 13.5px;
    white-space: nowrap;
}
.wsllc-fakro__table th,
.wsllc-fakro__table td {
    padding: 11px 10px;
    border: 0;
    border-bottom: 1px solid var(--fk-line);
    text-align: left;
}
.wsllc-fakro__table thead th {
    background: var(--fk-tint);
    color: var(--fk-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: normal;
    vertical-align: bottom;
}
.wsllc-fakro__table tbody th { font-weight: 700; }
.wsllc-fakro__table tbody tr:last-child > * { border-bottom: 0; }
.wsllc-fakro__table tbody tr:hover { background: #fbf6f3; }
.wsllc-fakro__note { margin: 12px 0 0; color: var(--fk-muted); font-size: 14px; }

.wsllc-fakro__diagram-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}
.wsllc-fakro__diagram-grid img { border-radius: 8px; }
.wsllc-fakro__spec { margin: 0; border-top: 1px solid var(--fk-line); }
.wsllc-fakro__spec > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--fk-line);
    font-size: 15px;
}
.wsllc-fakro__spec dt { margin: 0; color: var(--fk-muted); font-weight: 400; }
.wsllc-fakro__spec dd { margin: 0; font-weight: 700; text-align: right; }

.wsllc-fakro__acc {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.wsllc-fakro__acc li {
    padding: 22px;
    border-radius: 8px;
    background: var(--fk-tint);
}
.wsllc-fakro__acc-code {
    color: var(--fk-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
}
.wsllc-fakro__acc h3 { margin: 4px 0 8px; font-size: 18px; }
.wsllc-fakro__acc p { margin: 0; color: #4a525d; font-size: 15px; line-height: 1.5; }

.wsllc-fakro__cta {
    margin-top: 64px;
    padding: 40px;
    border-radius: 8px;
    background: var(--fk-ink);
    text-align: center;
}
.wsllc-fakro__cta h2 { margin: 0 0 8px; color: #fff !important; font-size: 26px; }
.wsllc-fakro__cta p { margin: 0 0 22px; color: #c9ced6; }

@media (max-width: 980px) {
    .wsllc-fakro__hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .wsllc-fakro__shot img { max-height: 420px; }
    .wsllc-fakro__details,
    .wsllc-fakro__features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wsllc-fakro__diagram-grid,
    .wsllc-fakro__acc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .wsllc-fakro { padding-top: 12px; }
    .wsllc-fakro__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wsllc-fakro__stats > div:nth-child(3) { border-left: 0; }
    .wsllc-fakro__stats > div:nth-child(n+3) { border-top: 1px solid var(--fk-line); }
    .wsllc-fakro__details,
    .wsllc-fakro__features { grid-template-columns: minmax(0, 1fr); }
    .wsllc-fakro__cta { padding: 28px 20px; }
}

/* ---- Model grid ([wsllc_fakro_grid]) — same pattern as the Erkado style listing ---- */

.wsllc-fakro-grid {
    --fk-ink: #1c2129;
    --fk-muted: #6b7480;
    --fk-line: #d9dde3;
    --fk-tint: #f2f4f6;
    --fk-accent: #ca511d;
    margin: 8px 0 12px;
    color: var(--fk-ink);
}
.wsllc-fakro-grid *,
.wsllc-fakro-grid *::before,
.wsllc-fakro-grid *::after { box-sizing: border-box; }

.wsllc-fakro-grid__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
/* The7 styles bare buttons with its accent fill; reset for the pill look. */
.wsllc-fakro-grid .wsllc-fakro-grid__filter {
    margin: 0;
    padding: 8px 16px;
    border: 1px solid var(--fk-line) !important;
    border-radius: 999px;
    background: #fff !important;
    color: var(--fk-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-fakro-grid .wsllc-fakro-grid__filter span { margin-left: 4px; color: var(--fk-muted); font-size: 12px; }
.wsllc-fakro-grid .wsllc-fakro-grid__filter:hover { border-color: var(--fk-ink) !important; }
.wsllc-fakro-grid .wsllc-fakro-grid__filter[aria-pressed="true"] {
    border-color: var(--fk-ink) !important;
    background: var(--fk-ink) !important;
    color: #fff !important;
}
.wsllc-fakro-grid .wsllc-fakro-grid__filter[aria-pressed="true"] span { color: rgba(255, 255, 255, .7); }
.wsllc-fakro-grid__filter:focus-visible,
.wsllc-fakro-grid__link:focus-visible { outline: 2px solid var(--fk-accent); outline-offset: 2px; }

.wsllc-fakro-grid__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 28px 20px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.wsllc-fakro-grid__card { margin: 0 !important; padding: 0 !important; }
.wsllc-fakro-grid__card::before { display: none !important; }
.wsllc-fakro-grid__card[hidden] { display: none; }

.wsllc-fakro-grid__link { display: block; color: inherit !important; text-decoration: none !important; }
.wsllc-fakro-grid__media {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
}
.wsllc-fakro-grid--skylights .wsllc-fakro-grid__media { aspect-ratio: 4 / 3; }
.wsllc-fakro-grid__img,
.wsllc-fakro-grid__alt {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    transition: opacity .4s ease, transform .8s ease;
}
.wsllc-fakro-grid__img { object-fit: cover; }
/* Ladder cut-outs stand on a white panel; the installed diagram fades in on hover. */
.wsllc-fakro-grid__media--cutout .wsllc-fakro-grid__img { padding: 14px 18px 8px; object-fit: contain; }
.wsllc-fakro-grid__alt { object-fit: cover; opacity: 0; transform: scale(1.04); }
.wsllc-fakro-grid__media.has-hover::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--fk-line);
    border-radius: inherit;
    pointer-events: none;
}
.wsllc-fakro-grid__media--cutout { border: 1px solid var(--fk-line); }
.wsllc-fakro-grid__media--cutout.has-hover { border: 0; }
.wsllc-fakro-grid__link:hover .has-hover .wsllc-fakro-grid__alt,
.wsllc-fakro-grid__link:focus-visible .has-hover .wsllc-fakro-grid__alt { opacity: 1; transform: scale(1); }
.wsllc-fakro-grid__link:hover .has-hover .wsllc-fakro-grid__img,
.wsllc-fakro-grid__link:focus-visible .has-hover .wsllc-fakro-grid__img { opacity: 0; }
.wsllc-fakro-grid__link:hover .wsllc-fakro-grid__media:not(.has-hover) .wsllc-fakro-grid__img { transform: scale(1.04); }

.wsllc-fakro-grid__placeholder,
.wsllc-fakro__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e9ecf0, #d6dbe2);
    color: rgba(28, 33, 41, .35);
    font-size: 44px;
    font-weight: 800;
    letter-spacing: .04em;
}
.wsllc-fakro-grid__code {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 9px;
    border-radius: 4px;
    background: var(--fk-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
}

.wsllc-fakro-grid__body { display: block; padding: 12px 2px 0; }
.wsllc-fakro-grid__type {
    display: block;
    margin-bottom: 3px;
    color: var(--fk-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.wsllc-fakro-grid__title { display: block; font-size: 18px; font-weight: 600; line-height: 1.25; }
.wsllc-fakro-grid__link:hover .wsllc-fakro-grid__title { color: var(--fk-accent); }
.wsllc-fakro-grid__meta { display: block; margin-top: 4px; color: var(--fk-muted); font-size: 13px; }
.wsllc-fakro-grid__body .wsllc-fakro-stock { margin: 8px 0 0; }
.wsllc-fakro-grid__empty { color: var(--fk-muted); }

@media (prefers-reduced-motion: reduce) {
    .wsllc-fakro-grid__img,
    .wsllc-fakro-grid__alt { transition: none; }
}
@media (max-width: 600px) {
    .wsllc-fakro-grid__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
    .wsllc-fakro-grid--skylights .wsllc-fakro-grid__list { grid-template-columns: minmax(0, 1fr); }
    .wsllc-fakro-grid__title { font-size: 16px; }
}

/* ---- Detail page: image variants, references, prev/next ---- */

.wsllc-fakro__shot { position: relative; min-height: 280px; }
.wsllc-fakro__shot--photo,
.wsllc-fakro__shot--render { padding: 0; overflow: hidden; }
.wsllc-fakro__shot--photo img,
.wsllc-fakro__shot--render img { width: 100%; max-height: none !important; height: auto; }
.wsllc-fakro--skylights .wsllc-fakro__hero { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }

.wsllc-fakro__refs { margin: 16px 0 0; color: var(--fk-muted); font-size: 14px; }
.wsllc-fakro__refs a { color: var(--fk-muted) !important; }
.wsllc-fakro__refs a:hover { color: var(--fk-accent) !important; }

.wsllc-fakro__diagram-grid.is-spec-only { grid-template-columns: minmax(0, 1fr); max-width: 560px; }

.wsllc-fakro__pager {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--fk-line);
}
.wsllc-fakro__pager a { display: block; color: var(--fk-ink) !important; text-decoration: none !important; }
.wsllc-fakro__pager a span { display: block; color: var(--fk-muted); font-size: 13px; }
.wsllc-fakro__pager a strong { font-size: 17px; }
.wsllc-fakro__pager a:hover strong { color: var(--fk-accent); }
.wsllc-fakro__pager-next { margin-left: auto; text-align: right; }

@media (max-width: 980px) {
    .wsllc-fakro--skylights .wsllc-fakro__hero { grid-template-columns: minmax(0, 1fr); }
}

/* Fakro model pages (skylights + attic ladders): gray "Sizes & dimensions" table */
.parent-pageid-910 table,
.parent-pageid-910 table thead,
.parent-pageid-910 table tbody,
.parent-pageid-910 table tr,
.parent-pageid-910 table th,
.parent-pageid-910 table td {
  background-color: #f2f2f2 !important;
}
.parent-pageid-910 table th,
.parent-pageid-910 table td {
  border-color: #dcdcdc !important;
}
