/* =====================================================================
   SHIM-ME Hub — Shop / Product Overview (Bucket B)
   Scoped to body #shim-shop per CLIENT-HUB-WORKFLOW.md §0 rules 1-3.
   - el_id="shim-shop" on the WPBakery row (BARE, no #)
   - stretch_row_content
   - All color/font props use !important so Total's late inline CSS loses
   ===================================================================== */

/* ---- Section + head -------------------------------------------------- */

body #shim-shop .shim-shop-wrapper {
    padding: 110px 0;
}

body #shim-shop .shim-shop__head {
    margin-bottom: 56px;
    max-width: 720px;
}

/* ---- Main two-column card (product hero + body) ---------------------- */

body #shim-shop .shim-shop__main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--shim-line);
    background: var(--shim-bg-3);
    margin-bottom: 60px;
}

body #shim-shop .shim-shop__hero {
    position: relative;
    background:
        radial-gradient(ellipse at center, rgba(227,29,30,0.2), transparent 70%),
        var(--shim-bg-3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--shim-line);
    padding: 60px;
    min-height: 520px;
}

body #shim-shop .shim-shop__hero img {
    width: 70%;
    object-fit: contain;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6));
    transition: opacity .2s ease;
}

body #shim-shop .shim-shop__hero-tag {
    position: absolute;
    top: 24px;
    left: 24px;
    background: var(--shim-red) !important;
    color: #fff !important;
    padding: 6px 10px;
    font-family: var(--shim-mono) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
}

body #shim-shop .shim-shop__body {
    padding: 48px;
    display: flex;
    flex-direction: column;
}

body #shim-shop .shim-shop__body .shim-eyebrow {
    margin-bottom: 4px;
}

body #shim-shop .shim-shop__h3 {
    font-family: var(--shim-display) !important;
    font-weight: 800 !important;
    font-size: 56px !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    color: var(--shim-text) !important;
    margin: 4px 0 16px;
}

body #shim-shop .shim-shop__copy {
    color: var(--shim-text-dim) !important;
    font-family: var(--shim-body) !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin: 0 0 28px;
}

/* ---- Price strip ----------------------------------------------------- */

body #shim-shop .shim-shop__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 18px 0;
    border-top: 1px solid var(--shim-line);
    border-bottom: 1px solid var(--shim-line);
    margin-bottom: 28px;
}

body #shim-shop .shim-shop__price .shim-mono {
    color: var(--shim-text-mute) !important;
    font-family: var(--shim-mono) !important;
    font-size: 11px !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
}

body #shim-shop .shim-shop__price b {
    font-family: var(--shim-display) !important;
    font-weight: 800 !important;
    font-size: 40px !important;
    color: #fff !important;
}

/* ---- Option pill rows ------------------------------------------------ */

body #shim-shop .shim-shop__opts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

body #shim-shop .shim-shop__opt {
    display: flex;
    align-items: center;
    gap: 16px;
}

body #shim-shop .shim-shop__opt > .shim-mono {
    width: 110px;
    flex-shrink: 0;
    font-family: var(--shim-mono) !important;
    font-size: 11px !important;
    color: var(--shim-text-mute) !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
}

body #shim-shop .shim-shop__opt-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

body #shim-shop .shim-shop__opt-pills span {
    font-family: var(--shim-mono) !important;
    font-size: 12px !important;
    padding: 8px 12px;
    border: 1px solid var(--shim-line-2);
    color: var(--shim-text-dim) !important;
    background: transparent;
    cursor: pointer;
    user-select: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

body #shim-shop .shim-shop__opt-pills span:hover {
    border-color: var(--shim-text-dim);
    color: var(--shim-text) !important;
}

body #shim-shop .shim-shop__opt-pills .is-on {
    background: #fff !important;
    color: #000 !important;
    border-color: #fff !important;
}

/* ---- Add-to-cart button --------------------------------------------- */

body #shim-shop .shim-shop__add-form {
    margin: 0;
    padding: 0;
    display: flex;
    margin-top: auto;
}

body #shim-shop .shim-shop__add-btn {
    align-self: flex-start;
    margin-top: auto;
}

body #shim-shop .shim-shop__add-btn[disabled] {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
}

/* ---- X-size quote form ---------------------------------------------- */

body #shim-shop .shim-shop__quote-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
    padding: 20px;
    background: var(--shim-bg-2);
    border: 1px solid var(--shim-line);
}

body #shim-shop .shim-shop__quote-form[hidden] {
    display: none;
}

body #shim-shop .shim-shop__quote-intro {
    color: var(--shim-text-dim) !important;
    font-family: var(--shim-body) !important;
    font-size: 14px !important;
    margin: 0 0 4px;
    line-height: 1.5 !important;
}

body #shim-shop .shim-shop__quote-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body #shim-shop .shim-shop__quote-form label .shim-mono {
    font-family: var(--shim-mono) !important;
    font-size: 10px !important;
    color: var(--shim-text-mute) !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
}

body #shim-shop .shim-shop__quote-form input[type="email"],
body #shim-shop .shim-shop__quote-form input[type="number"],
body #shim-shop .shim-shop__quote-form input[type="text"],
body #shim-shop .shim-shop__quote-form textarea {
    background: var(--shim-bg-3);
    border: 1px solid var(--shim-line);
    color: var(--shim-text) !important;
    font-family: var(--shim-body) !important;
    font-size: 14px !important;
    padding: 10px 12px;
    width: 100%;
    box-sizing: border-box;
}

body #shim-shop .shim-shop__quote-form input:focus,
body #shim-shop .shim-shop__quote-form textarea:focus {
    outline: none;
    border-color: var(--shim-red);
}

body #shim-shop .shim-shop__quote-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body #shim-shop .shim-shop__quote-msg {
    color: var(--shim-text-dim) !important;
    font-family: var(--shim-mono) !important;
    font-size: 11px !important;
    letter-spacing: 0.12em !important;
    margin: 4px 0 0;
    min-height: 16px;
}

body #shim-shop .shim-shop__quote-msg.is-success {
    color: #4ade80 !important;
}

body #shim-shop .shim-shop__quote-msg.is-error {
    color: var(--shim-red) !important;
}

/* ---- Extra parts grid ----------------------------------------------- */

body #shim-shop .shim-shop__parts {
    margin-top: 32px;
}

body #shim-shop .shim-shop__parts .shim-eyebrow {
    margin-bottom: 20px;
}

body #shim-shop .shim-shop__parts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

body #shim-shop .shim-shop__part {
    display: flex;
    gap: 0;
    align-items: stretch;
    background: var(--shim-bg-3);
    border: 1px solid var(--shim-line);
    color: inherit !important;
    text-decoration: none !important;
    transition: border-color .2s ease;
}

body #shim-shop .shim-shop__part:hover {
    border-color: var(--shim-red);
}

body #shim-shop .shim-shop__part-sw {
    width: 80px;
    flex-shrink: 0;
    border-right: 1px solid var(--shim-line);
}

body #shim-shop .shim-shop__part-sw--base {
    background: repeating-linear-gradient(90deg, #707378 0 4px, #4a4d52 4px 8px);
}

body #shim-shop .shim-shop__part-sw--ext {
    background: linear-gradient(180deg, #888a8e, #4a4c50);
}

body #shim-shop .shim-shop__part-sw--tb {
    background: #1a1a1a;
    background-image: repeating-linear-gradient(45deg, transparent 0 6px, rgba(227, 29, 30, 0.3) 6px 7px);
}

body #shim-shop .shim-shop__part-sw--wdg {
    background: linear-gradient(135deg, #6e7176 40%, #3a3c40 90%);
}

/* Part card — product image (replaces swatch when Woo image is set) */

body #shim-shop .shim-shop__part-img {
    width: 80px;
    flex-shrink: 0;
    border-right: 1px solid var(--shim-line);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--shim-bg-2);
}

body #shim-shop .shim-shop__part-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body #shim-shop .shim-shop__part-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

body #shim-shop .shim-shop__part-body .shim-mono {
    font-family: var(--shim-mono) !important;
    font-size: 10px !important;
    color: var(--shim-text-mute) !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
}

body #shim-shop .shim-shop__part-body h4 {
    font-family: var(--shim-display) !important;
    font-weight: 700 !important;
    font-size: 22px !important;
    text-transform: uppercase !important;
    color: var(--shim-text) !important;
    margin: 0;
    line-height: 1 !important;
}

body #shim-shop .shim-shop__part-p {
    font-family: var(--shim-mono) !important;
    font-size: 12px !important;
    color: var(--shim-text-dim) !important;
    margin-top: auto;
}

/* ---- Responsive ------------------------------------------------------ */

@media (max-width: 960px) {
    body #shim-shop .shim-shop-wrapper {
        padding: 80px 0;
    }

    body #shim-shop .shim-shop__main {
        grid-template-columns: 1fr;
    }

    body #shim-shop .shim-shop__hero {
        min-height: 340px;
        padding: 40px;
        border-right: 0;
        border-bottom: 1px solid var(--shim-line);
    }

    body #shim-shop .shim-shop__body {
        padding: 32px;
    }

    body #shim-shop .shim-shop__h3 {
        font-size: 44px !important;
    }

    body #shim-shop .shim-shop__parts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    body #shim-shop .shim-shop-wrapper {
        padding: 60px 0;
    }

    body #shim-shop .shim-shop__head {
        margin-bottom: 36px;
    }

    body #shim-shop .shim-shop__body {
        padding: 24px;
    }

    body #shim-shop .shim-shop__opt {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    body #shim-shop .shim-shop__opt > .shim-mono {
        width: auto;
    }

    body #shim-shop .shim-shop__parts-grid {
        grid-template-columns: 1fr;
    }
}
