/* SEWARD visual repair v3.6.9. Loaded after the existing storefront assets. */

/* Product prices were painted white by the legacy archive rule, including the
 * nested WooCommerce amount/bdi nodes. Keep the live WC markup and make every
 * price node inherit the storefront ink colour. */
body.swc200 .swc-archive-product__price,
body.swc200 .swc-archive-product__price *,
body.swc200 .swc-archive-product__price :is(.amount, .woocommerce-Price-amount, .woocommerce-Price-currencySymbol, bdi, span) {
    color: var(--swc-ink) !important;
    -webkit-text-fill-color: currentColor !important;
    opacity: 1 !important;
}

/* A smaller floor keeps the product gallery proportional on short/mobile
 * viewports without changing the underlying product image or data. */
body.swc200 .swc-archive-product__stage {
    min-height: clamp(360px, 42vw, 600px);
}

/* Legacy editorial pages already contain their own shell. Let the current
 * storefront own the outer chrome and suppress the duplicate page chrome. */
body.swc200 .swc-content-page--legacy {
    min-width: 0;
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
}

body.swc200 .swc-content-page--legacy .sks-shell {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin-inline: 0;
    overflow: hidden;
}

body.swc200 .swc-content-page--legacy .sks-nav,
body.swc200 .swc-content-page--legacy .sks-footer,
body.swc200 .swc-content-page--legacy .sks-mobile-dock {
    display: none !important;
}

body.swc200 .swc-content-page--legacy .sks-page-hero {
    padding-block: clamp(64px, 7vw, 96px) 64px;
}

body.swc200 .swc-content-page--legacy .sks-shell h1,
body.swc200 .swc-content-page--legacy .sks-shell h2,
body.swc200 .swc-content-page--legacy .sks-shell h3 {
    max-width: 100%;
    color: #f7efe1 !important;
    overflow-wrap: anywhere;
}

body.swc200 .swc-content-page--legacy .sks-shell h1 {
    font-size: clamp(42px, 5vw, 76px) !important;
    line-height: .98 !important;
}

body.swc200 .swc-content-page--legacy .sks-shell * {
    min-width: 0;
}

body.swc200 .swc-content-page--legacy .sks-card-cost,
body.swc200 .swc-content-page--legacy .sks-card-cost *,
body.swc200 .swc-content-page--legacy .woocommerce-Price-amount,
body.swc200 .swc-content-page--legacy .woocommerce-Price-amount * {
    color: #f7efe1 !important;
    -webkit-text-fill-color: currentColor !important;
}

/* A dedicated, branded not-found surface replaces the raw WoodMart fallback. */
body.swc200.swc200-404-page .swc-404-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .65fr);
    gap: clamp(28px, 6vw, 90px);
    align-items: center;
    min-height: 420px;
    padding: clamp(34px, 7vw, 92px);
    border: 1px solid #243b4b;
    background: linear-gradient(120deg, #071a27, #0c2a3d);
    color: #fff;
}

body.swc200.swc200-404-page .swc-404-panel h1 {
    margin: 0;
    color: #fff !important;
    font-family: var(--swc-display);
    font-size: clamp(54px, 10vw, 140px);
    line-height: .86;
}

body.swc200.swc200-404-page .swc-404-panel h2 {
    margin: 18px 0 10px;
    color: #fff !important;
    font-family: var(--swc-display);
    font-size: clamp(28px, 4vw, 52px);
    line-height: .98;
    text-transform: uppercase;
}

body.swc200.swc200-404-page .swc-404-panel p {
    max-width: 560px;
    color: #d6e0e6;
    line-height: 1.7;
}

body.swc200.swc200-404-page .swc-404-panel__mark {
    display: grid;
    min-height: 230px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .24);
    color: #f5f0e8;
    font-family: var(--swc-display);
    font-size: clamp(70px, 14vw, 180px);
    font-weight: 800;
    line-height: .8;
}

body.swc200.swc200-404-page .swc-404-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

body.swc200.swc200-404-page .swc-404-panel__actions a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding-inline: 18px;
    background: var(--swc-red);
    color: #fff;
    font-family: var(--swc-display);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 720px) {
    body.swc200 .swc-archive-product__stage {
        min-height: clamp(280px, 78vw, 420px);
        aspect-ratio: 1 / .92;
    }

    body.swc200 .swc-content-page--legacy .sks-page-hero {
        padding-block: 48px 42px;
    }

    body.swc200 .swc-content-page--legacy .sks-shell h1 {
        font-size: clamp(36px, 12vw, 52px) !important;
    }

    body.swc200.swc200-404-page .swc-404-panel {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 30px 22px;
    }

    body.swc200.swc200-404-page .swc-404-panel__mark {
        min-height: 150px;
    }
}
