.zf-product {
    --zf-ink: #13243a;
    --zf-muted: #526276;
    --zf-line: #dce4ef;
    --zf-blue: #154eb5;
    --zf-surface: #f3f6fb;
    color: var(--zf-ink);
    font-family: Manrope, system-ui, sans-serif;
}

.zf-product #content { min-width: 0; }

.zf-product-title { margin: 1.2rem 0 1.35rem; }

.zf-product-title h1 {
    max-inline-size: 42ch;
    color: var(--zf-ink);
    font-size: clamp(1.6rem, 2.35vw + .55rem, 2.25rem);
    margin: 0;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.zf-product-oem li {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.zf-product-oem li {
    max-width: 100%;
    border: 1px solid var(--zf-line);
    background: #fff;
    border-radius: .55rem;
    padding: .1rem .3rem .1rem .65rem;
    color: var(--zf-muted);
}

.zf-product code {
    font-size: .95rem;
    font-weight: 600;
    color: var(--zf-ink);
    overflow-wrap: anywhere;
}

.zf-product-copy {
    flex: none;
    min-width: 2.2rem;
    min-height: 2.2rem;
    padding: .25rem;
    border: 0;
    border-radius: .35rem;
    background: transparent;
    color: var(--zf-blue);
}

.zf-product-copy:hover { background: #eaf1ff; }
.zf-product-copy:focus-visible { outline: 2px solid var(--zf-blue); }

.zf-product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1rem, 3vw, 2rem);
}

.zf-product-gallery {
    border: 1px solid var(--zf-line);
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
}

.zf-product-main-photo {
    position: relative;
    display: grid;
    place-items: center;
    padding: clamp(.8rem, 3vw, 1.8rem);
    min-height: 15rem;
    height: clamp(16rem, 36vw, 31rem);
    background: #fff;
}

.zf-product-main-photo img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}

.zf-product-zoom {
    position: absolute;
    bottom: .85rem;
    right: .85rem;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--zf-line);
    border-radius: 50%;
    color: var(--zf-blue);
    background: #fff;
}

.zf-product-placeholder {
    align-content: center;
    gap: .6rem;
    color: var(--zf-muted);
    background: var(--zf-surface);
}

.zf-product-placeholder i { font-size: 2.3rem; }

.zf-product-photos {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    border-top: 1px solid var(--zf-line);
    padding: .75rem;
}

.zf-product-photos a {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    overflow: hidden;
    border: 1px solid var(--zf-line);
    border-radius: .5rem;
}

.zf-product-photos a:hover { border-color: var(--zf-blue); }
.zf-product-photos img { display: block; max-width: 100%; max-height: 100%; }

.zf-product-buy {
    min-width: 0;
    padding: clamp(1.1rem, 3.5vw, 1.8rem);
    background: var(--zf-surface);
    border: 1px solid var(--zf-line);
    border-radius: 1rem;
}

.zf-product-stock {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .38rem .7rem;
    color: #16634b;
    background: #e6f5ed;
    border-radius: .5rem;
    font-weight: 650;
}

.zf-product-stock-unavailable { color: #704200; background: #fff1d9; }

.zf-product-prices {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    margin: .8rem 0 .2rem;
    overflow-wrap: anywhere;
}

.zf-product-current-price {
    order: -1;
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
}

.zf-product-prices strong {
    font-size: clamp(2.2rem, 4vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -.045em;
}

.zf-product-prices del,
.zf-product-muted,
.zf-product-unavailable { color: var(--zf-muted); }

.zf-product-promotion {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    min-width: 0;
}

.zf-product-promotion del {
    color: #455a76;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration-thickness: 2px;
}

.zf-product-discount-badge {
    padding: .3rem .55rem;
    border-radius: .375rem;
    background: #ffe9e5;
    color: #a53022;
    font-size: .875rem;
    font-weight: 750;
    line-height: 1.25;
    white-space: nowrap;
}

.zf-product-discounts { margin: .7rem 0 0; }

.zf-product-meta {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: .5rem clamp(.55rem, 1.2vw, 1rem);
    margin: 1rem 0 0;
    padding-top: .8rem;
    border-top: 1px solid var(--zf-line);
    line-height: 1.35;
}

.zf-product-meta > div {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 10.5rem minmax(0, 1fr);
    grid-template-columns: subgrid;
    align-items: baseline;
    column-gap: inherit;
}

.zf-product-meta dt {
    color: var(--zf-muted);
    font-size: .875rem;
    font-weight: 550;
}

.zf-product-meta dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.zf-product-brand,
.zf-product-attribute dd {
    color: var(--zf-ink);
    font-size: .95rem;
    font-weight: 650;
}

.zf-product-brand i {
    margin-inline-start: .2em;
    color: var(--zf-muted);
    font-size: .72em;
}

.zf-product-brand:hover,
.zf-product-brand:focus-visible {
    color: var(--zf-blue);
    text-decoration: underline;
    text-underline-offset: .18em;
}

.zf-product-meta dd code {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
}

.zf-product-help-toggle {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid var(--zf-line);
    border-radius: .5rem;
    background: #fff;
    color: var(--zf-blue);
    vertical-align: middle;
    font-size: 1rem;
}

.zf-product-help-toggle:hover,
.zf-product-help-toggle[aria-expanded="true"] { background: #e7effe; }
.zf-product-help-toggle:focus-visible { outline: 2px solid var(--zf-blue); outline-offset: 2px; }

.zf-product-help-popover {
    --bs-popover-max-width: min(22rem, calc(100vw - 2rem));
    --bs-popover-border-color: #d5e0f1;
    --bs-popover-border-radius: .55rem;
    --bs-popover-body-color: #334c6b;
    --bs-popover-body-padding-x: .875rem;
    --bs-popover-body-padding-y: .6875rem;
    box-shadow: 0 6px 18px #182f5022;
}

.zf-product-order {
    display: grid;
    grid-template-columns: minmax(5rem, auto) minmax(0, 1fr);
    gap: .7rem;
    align-items: end;
    margin-top: 1rem;
}

.zf-product-order .form-label { margin-bottom: .3rem; }
.zf-product-order input { max-width: 8.5rem; min-height: 3rem; }
.zf-product-order button {
    min-height: 3rem;
    font-weight: 700;
    color: #fff;
    background: var(--zf-blue);
    border-color: var(--zf-blue);
}
.zf-product-order button:hover,
.zf-product-order button:focus-visible { color: #fff; background: #103e93; }
.zf-product-order button i { margin-right: .25rem; }

.zf-product-unavailable { margin: .85rem 0 0; }

.zf-product-actions { display: flex; gap: .55rem; align-items: center; margin-top: .9rem; }
.zf-product-secondary {
    min-width: 2.65rem;
    min-height: 2.65rem;
    background: #fff;
    border: 1px solid var(--zf-line);
    color: var(--zf-blue);
}
.zf-product-secondary:hover { background: #eaf1ff; border-color: var(--zf-blue); }

.zf-product-identifiers { border-top: 1px solid var(--zf-line); margin-top: 1.2rem; padding-top: 1rem; }
.zf-product-identifiers h2,
.zf-product-fitment h2 { font-size: 1.2rem; margin: 0 0 .65rem; }
.zf-product-oem { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 0; }
.zf-product-codes { margin: .65rem 0 0; }
.zf-product-codes div { display: flex; gap: .45rem; }
.zf-product-codes dd { margin: 0; overflow-wrap: anywhere; }

.zf-product-fitment {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    border: 1px solid #c9d9f1;
    border-radius: 1rem;
    background: #eef5ff;
    margin-top: 1.25rem;
    padding: clamp(1rem, 3vw, 1.5rem);
}
.zf-product-fitment-icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--zf-blue);
    background: #fff;
    border-radius: .55rem;
}
.zf-product-fitment dl,
.zf-product-fitment dd { margin-bottom: 0; }
.zf-product-fitment dl { display: grid; gap: .7rem; }

.zf-product-details {
    margin: 1.25rem 0 1.5rem;
    padding: clamp(.8rem, 2vw, 1.35rem);
    border: 1px solid var(--zf-line);
    border-radius: 1rem;
}
.zf-product-details .nav-tabs { gap: .4rem; margin-bottom: 1rem; padding-bottom: .7rem; border-color: var(--zf-line); }
.zf-product-details .nav-link { margin: 0; padding: .45rem .75rem; border-radius: .5rem; color: var(--zf-muted); }
.zf-product-details .nav-link:hover { border-color: var(--zf-line); color: var(--zf-blue); }
.zf-product-details .nav-link.active { border-color: var(--zf-line); background: var(--zf-surface); color: var(--zf-blue); font-weight: 600; }
.zf-product-details .tab-pane > :last-child { margin-bottom: 0; }
.zf-product-description-heading { margin: 0 0 .85rem; font-size: 1.25rem; }
.zf-product-description {
    max-width: 76ch;
    overflow-x: auto;
    overflow-wrap: anywhere;
    font-size: .95rem;
    line-height: 1.65;
}
.zf-product-description :is(p, ul, ol) { margin-bottom: .75rem; }
.zf-product-description > :last-child { margin-bottom: 0; }
.zf-product-description :is(ul, ol) { padding-inline-start: 1.35rem; }
.zf-product-description li + li { margin-top: .2rem; }
.zf-product-description li::marker { color: var(--zf-blue); }
.zf-product-description img { max-width: 100%; height: auto; }
.zf-product-description a { text-decoration: underline; text-underline-offset: .15em; }
.zf-product-description-tags { margin-top: .9rem; color: var(--zf-muted); }

@media (max-width: 767.98px) {
    .zf-product-grid { grid-template-columns: minmax(0, 1fr); }
    .zf-product-main-photo { height: clamp(16rem, 72vw, 24rem); }
    .zf-product-title { margin-bottom: 1rem; }
}
