/* WooCommerce shared styles — single product + shop / category / search archives */

.wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px
}

/* Buttons */
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt,
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    border: 2px solid transparent;
    transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease), opacity .2s var(--ease);
    white-space: nowrap;
    cursor: pointer
}

.btn-gold {
    background: var(--gold)!important;
    color: var(--ink)!important;
    border-color: var(--gold)!important
}

.btn-gold:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark)
}

.btn-gold-lg {
    padding: 14px 28px;
    font-size: 17px
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink)!important;
}

.btn-outline:hover {
    background: var(--ink);
    color: #fff
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .35)
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--ink);
    border-color: #fff
}

.btn-dark {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink)
}

.btn-dark:hover {
    background: #000
}

.btn .arrow {
    font-size: .85em;
    line-height: 1;
    transition: transform .2s var(--ease)
}

.btn:hover .arrow {
    transform: translateX(3px)
}

/* Promo */
.promo-strip {
    background: linear-gradient(90deg, var(--gold-soft) 0%, #FFE2A6 50%, var(--gold-soft) 100%);
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    padding: 12px 0
}

.promo-strip .wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--ink);
    font-weight: 600;
    text-align: center
}

.promo-strip .badge {
    font-size: 10.5px;
    font-weight: 800;
    background: var(--ink);
    color: var(--gold);
    padding: 4px 10px;
    border-radius: 3px;
    letter-spacing: .08em;
    text-transform: uppercase
}

.promo-strip b {
    color: var(--gold-deep);
    font-weight: 800
}

.promo-strip a {
    color: var(--ink);
    font-weight: 700;
    border-bottom: 1.5px solid var(--ink);
    cursor: pointer
}

.promo-strip a:hover {
    color: var(--gold-deep);
    border-bottom-color: var(--gold-deep)
}

/* Breadcrumbs */
.crumbs {
    padding: 14px 0;
    background: var(--canvas-tint);
    border-bottom: 1px solid var(--line)
}

.crumbs .wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 500;
    flex-wrap: wrap
}

.crumbs a {
    color: var(--muted);
    transition: color .2s var(--ease)
}

.crumbs a:hover {
    color: var(--gold-deep)
}

.crumbs .sep {
    color: var(--line);
    margin: 0 2px
}

.crumbs .current {
    color: var(--ink);
    font-weight: 600
}

/* Final CTA — navy gradient from v2005 */
.final-cta {
    background: linear-gradient(135deg, #070F22 0%, #0B1B3A 50%, #1A1F2E 100%);
    color: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden
}

.final-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(214, 177, 111, .12) 0, transparent 60%);
    pointer-events: none
}

.final-cta .wrap {
    position: relative
}

.final-cta .head {
    text-align: center;
    margin-bottom: 30px
}

.final-cta h2 {
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.1;
    margin-bottom: 12px
}

.final-cta h2 em {
    color: var(--gold);
    font-style: normal
}

.final-cta .head p {
    font-size: 15px;
    color: rgba(255, 255, 255, .78);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.55
}

.final-single-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 14px
}

/* Product tile — catalog cards + related / FBT sliders */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    transition: color .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease), opacity .25s var(--ease);
    display: flex;
    flex-direction: column;
    position: relative
}

.card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md)
}

.card .ci {
    height: 180px;
    background: var(--cream);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    position: relative
}

.card .ci img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .35s var(--ease)
}

.card:hover .ci img {
    transform: scale(1.04)
}

.card .ribbon {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--ink);
    color: var(--gold);
    padding: 4px 9px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    z-index: 2
}

.card .ribbon.new {
    background: var(--green);
    color: #fff
}

.card .ribbon.sale {
    background: var(--red);
    color: #fff
}

.card .ribbon.hot {
    background: var(--gold);
    color: var(--ink)
}

.card .ribbon.usa {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--ink)
}

.card .cb {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1
}

.card .brand {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--gold-deep);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 5px
}

.card .ttl {
    font-size: 14px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 7px;
    letter-spacing: -.005em;
    line-height: 1.25;
    height: 35px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.card .pitch {
    font-size: 12px;
    color: var(--ink-mid);
    line-height: 1.45;
    margin-bottom: 11px;
    font-style: italic;
    height: 52px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.card .specs-mini {
    font-size: 11.5px;
    color: var(--muted);
    margin-bottom: 9px;
    line-height: 1.4;
    display: flex;
    justify-content: space-between;
    gap: 6px
}

.card .specs-mini b {
    color: var(--ink);
    font-weight: 600;
    font-family: "SF Mono", ui-monospace, monospace
}

.card .compat {
    font-size: 11px;
    color: var(--ink-mid);
    margin-bottom: 11px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--line-soft);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.card .compat .lbl {
    font-size: 9px;
    font-weight: 800;
    color: var(--gold-deep);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-right: 6px
}

.card .compat span {
    color: var(--ink);
    font-weight: 600
}

.card .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: 10px;
    flex-wrap: wrap;
    row-gap: 8px
}

.card .price {
    font-size: 10.5px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
    flex-shrink: 0
}

.card .price b {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: 0;
    line-height: 1.1;
    text-transform: none
}

.card .row .btn-gold {
    padding: 7px 12px;
    font-size: 12px;
    flex-shrink: 0;
    white-space: nowrap
}

.card .ship-note {
    margin-top: 9px;
    font-size: 11px;
    color: var(--green);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 30px
}

.card .ship-note::before {
    content: "●";
    font-size: 8px
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 15, 34, .78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity .25s var(--ease);
    padding: 24px;
    overflow-y: auto
}

.modal-overlay.open {
    display: flex;
    opacity: 1
}

.modal-card {
    background: #fff;
    border-radius: 18px;
    max-width: 560px;
    width: 100%;
    position: relative;
    box-shadow: 0 40px 80px rgba(7, 15, 34, .4), 0 0 0 1px rgba(255, 255, 255, .06);
    transform: translateY(20px) scale(.97);
    transition: transform .35s var(--ease), opacity .25s var(--ease);
    opacity: 0;
    overflow: hidden;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    margin: auto
}

.modal-overlay.open .modal-card {
    transform: translateY(0) scale(1);
    opacity: 1
}

.modal-card::-webkit-scrollbar {
    width: 6px
}

.modal-card::-webkit-scrollbar-track {
    background: transparent
}

.modal-card::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 3px
}

.modal-card.lg {
    max-width: 760px
}

.modal-card.xl {
    max-width: 920px
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    cursor: pointer;
    z-index: 5;
    transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease), opacity .2s var(--ease);
    font-size: 18px;
    line-height: 1
}

.modal-close:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
    transform: rotate(90deg)
}

.modal-close svg {
    width: 14px;
    height: 14px
}

.modal-head {
    padding: 20px 28px 12px;
    border-bottom: 1px solid var(--line-soft)
}

.modal-head .modal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--gold-deep);
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 6px
}

.modal-head .modal-eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold)
}

.modal-head h3 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.18;
    color: var(--ink)
}

.modal-head h3 em {
    font-style: normal;
    color: var(--gold-deep)
}

.modal-head .modal-sub {
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px;
    line-height: 1.45
}

.modal-body {
    padding: 16px 28px 20px
}

.modal-foot {
    padding: 0 28px 20px
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px
}

.form-row-2 {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 10px;
    margin-bottom: 10px
}

.form-row-2 .form-row {
    margin-bottom: 0
}

.form-row label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ink-soft);
    letter-spacing: .01em
}

.form-row label .opt {
    color: var(--muted);
    font-weight: 500;
    font-size: 10.5px;
    margin-left: 4px
}

.form-row label .req {
    color: var(--red);
    margin-left: 2px
}

.form-row input, .form-row select, .form-row textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--ink);
    background: #fff;
    transition: color .15s var(--ease), background-color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease), opacity .15s var(--ease);
    font-weight: 500
}

.form-row input::placeholder, .form-row textarea::placeholder {
    color: #B8B8B5;
    font-weight: 400
}

.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(214, 177, 111, .18)
}

.form-row textarea {
    resize: vertical;
    min-height: 54px;
    line-height: 1.45;
    font-family: inherit
}

.form-row select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'><path d='M1 1.2l4 3.6 4-3.6' stroke='%237A7872' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 6px;
    padding-right: 34px
}

.modal-submit {
    width: 100%;
    justify-content: center;
    padding: 11px 22px;
    font-size: 14px;
    border-radius: 7px
}

.modal-trust {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    line-height: 1.45
}

.modal-trust b {
    color: var(--ink);
    font-weight: 700
}

.modal-trust svg {
    width: 13px;
    height: 13px;
    fill: var(--green);
    flex-shrink: 0
}

.modal-trust .mt-item {
    display: inline-flex;
    align-items: center;
    gap: 5px
}

/* Two-column modal (Claim Offer) */
.modal-2col {
    display: grid;
    grid-template-columns:1fr 1.05fr;
    gap: 0;
    min-height: 0
}

.modal-2col .modal-aside {
    background: linear-gradient(135deg, #070F22 0%, #0B1B3A 50%, #2D2A22 100%);
    color: #fff;
    padding: 22px 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px
}

.modal-2col .modal-aside::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 100% 0%, rgba(214, 177, 111, .22) 0, transparent 55%);
    pointer-events: none
}

.modal-2col .modal-aside > * {
    position: relative;
    z-index: 1
}

.offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    background: var(--gold);
    color: var(--ink);
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: .08em;
    text-transform: uppercase;
    align-self: flex-start;
    margin-bottom: 10px
}

.offer-headline {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.18;
    color: #fff;
    margin-bottom: 6px
}

.offer-headline em {
    font-style: normal;
    color: var(--gold)
}

.offer-desc {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .78);
    line-height: 1.5;
    margin-bottom: 12px
}

.offer-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0
}

.offer-perks li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #E6E5E2;
    padding: 3px 0;
    line-height: 1.4
}

.offer-perks li::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 9px;
    font-weight: 800;
    margin-top: 3px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M3 6.5L5 8.5L9 4' stroke='%230C0C0C' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: center
}

.offer-stamp {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 10px;
    font-size: 10.5px;
    color: rgba(255, 255, 255, .6);
    display: flex;
    align-items: center;
    gap: 8px
}

.offer-stamp b {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: .04em
}

.modal-2col .modal-side {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.modal-2col .modal-side h4 {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.005em;
    color: var(--ink);
    margin-bottom: 4px
}

.modal-2col .modal-side .ms-sub {
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 12px;
    line-height: 1.45
}

/* Equipment dropdown with checkboxes */
.eq-multi-hint {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.4
}

/* Modal step indicator (for multi-step forms) */
.modal-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px
}

.modal-step {
    flex: 1;
    height: 3px;
    background: var(--line);
    border-radius: 2px;
    position: relative;
    overflow: hidden
}

.modal-step.done {
    background: var(--gold)
}

.modal-step.active {
    background: linear-gradient(90deg, var(--gold) 0%, var(--line) 100%)
}

/* Modal success state */
.modal-success {
    padding: 48px 36px;
    text-align: center
}

.modal-success .ms-ico {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-soft), #FFE2A6);
    color: var(--gold-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px
}

.modal-success .ms-ico svg {
    width: 32px;
    height: 32px;
    fill: currentColor
}

.modal-success h4 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--ink);
    margin-bottom: 8px
}

.modal-success p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.55;
    max-width: 380px;
    margin: 0 auto 20px
}

/* No body scroll when modal open */
body.modal-open {
    overflow: hidden
}

/* EMIL POLISH (Emil Kowalski design-eng) */
.btn:active {
    transform: scale(.97)
}

@media (prefers-reduced-motion: no-preference) {
    .em-reveal {
        opacity: 0;
        transform: translateY(12px);
        transition: opacity .5s var(--ease-out), transform .5s var(--ease-out)
    }

    .em-reveal.em-in {
        opacity: 1;
        transform: none
    }
}

@keyframes emRise {
    from {
        opacity: 0;
        transform: translateY(10px)
    }
    to {
        opacity: 1;
        transform: none
    }
}

@media (max-width: 1024px) {
    .modal-2col {
        grid-template-columns:1fr
    }
}

@media (max-width: 640px) {
    .form-row-2 {
        grid-template-columns:1fr
    }
}

/* Prevent overflow from long content */
.form-row, .form-row-2,
.modal-2col, .modal-card, .modal-side, .modal-aside {
    min-width: 0
}

.card .ttl, .card .pitch, .card .compat,
.modal-head h3, .offer-headline {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto
}

/* --- 7.4 Modal viewport guardrails --- */
.modal-overlay {
    width: 100vw;
    max-width: 100%;
    padding: 14px
}

.modal-card {
    max-width: calc(100vw - 28px)
}

@media (min-width: 769px) {
    .modal-card {
        max-width: 560px
    }

    .modal-card.lg {
        max-width: 760px
    }

    .modal-card.xl {
        max-width: 920px
    }
}

/* --- 8. FORMS — iOS-safe font-size, full width inputs --- */
.form-row input, .form-row select, .form-row textarea {
    max-width: 100%;
    box-sizing: border-box
}

.form-row textarea {
    resize: vertical
}

@media (max-width: 768px) {
    .modal-head {
        padding: 18px 18px 12px
    }

    .modal-body {
        padding: 14px 18px 18px
    }

    .form-row-2 {
        grid-template-columns:1fr;
        gap: 0
    }

    .form-row-2 .form-row {
        margin-bottom: 10px
    }

    .form-row input, .form-row select, .form-row textarea {
        font-size: 16px;
        padding: 10px 12px
    }

    .form-row label {
        font-size: 12px
    }

    .modal-submit {
        padding: 12px 18px;
        font-size: 14.5px
    }

    .modal-trust {
        gap: 8px;
        font-size: 10.5px;
        margin-top: 8px
    }

    .modal-head h3 {
        font-size: 18px
    }

    .modal-head .modal-sub {
        font-size: 12.5px
    }

    input[type="date"] {
        min-width: 0;
        width: 100%
    }
}

/* --- 15. FINAL CTA --- */
@media (max-width: 768px) {
    .final-cta {
        padding: 36px 0
    }

    .final-cta h2 {
        font-size: 22px
    }

    .final-cta .head p {
        font-size: 13.5px
    }

    .final-single-cta {
        flex-direction: column;
        width: 100%;
        gap: 10px
    }

    .final-single-cta .btn {
        width: 100%;
        justify-content: center;
        font-size: 14px;
        padding: 13px 18px
    }
}

/* --- 17. PROMO STRIP responsive --- */
@media (max-width: 768px) {
    .promo-strip .wrap {
        gap: 10px;
        font-size: 12px;
        flex-direction: column;
        text-align: center
    }
}

/* --- 18. CRUMBS responsive --- */
@media (max-width: 768px) {
    .crumbs {
        padding: 10px 0
    }

    .crumbs .wrap {
        font-size: 11.5px;
        gap: 4px
    }
}

.added_to_cart.wc-forward {
    display: none!important;
}
