:is(.ag-market-archive, .ag-market-results, .ag-market) {
    --ag-market-ink: #161a20;
    --ag-market-red: #ad1230;
    --ag-market-muted: #515863;
    --ag-market-line: #dddfe3;
    --ag-market-bg: #f5f5f4;
}
.ag-market, .ag-market-archive main {
    background: var(--ag-market-bg);
    color: var(--ag-market-ink);
    padding-block: clamp(22px, 3vw, 44px) clamp(46px, 7vw, 90px);
}
.ag-market-wrap { width: min(100% - 48px, 1240px); margin-inline: auto; }
.ag-market-hero h1, .ag-market-product h1, .ag-market-results #ag-cam-result-title {
    font-size: clamp(2.05rem, 4.3vw, 4.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.057em;
    text-wrap: balance;
    margin: 0;
}
.ag-market-hero .ag-market-kicker, .ag-market-product .ag-market-kicker {
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .085em;
    margin: 0 0 13px;
}
.ag-market-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 11px 16px;
    box-sizing: border-box;
    min-height: 48px;
    border-radius: 9px;
    background: var(--ag-market-red);
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
    text-decoration: none;
}
.ag-market-primary:is(:hover,:focus-visible) { background: #8a1028; color: white; }
:is(.ag-market,.ag-market-archive,.ag-market-results) main :focus-visible,
.ag-market :focus-visible { outline: 2px solid #b61736; outline-offset: 4px; }
.ag-market-archive main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-inline: clamp(16px, 4vw, 52px);
}
.ag-market-archive main > * { width: min(100%, 1240px); max-width: 1240px; margin: 0 auto; box-sizing: border-box; }
.ag-market-archive main > .wc-block-breadcrumbs { margin-bottom: 18px; color: var(--ag-market-muted); font-size: .83rem; }
.ag-market-archive main > :is(.wp-block-term-description, .ag-archive-intro) { display: none; }
.ag-market-archive main > :is(.wp-block-group.is-nowrap, .ag-market-archive-stock) { order: 1; }
.ag-market-archive main > .wp-block-group.is-nowrap { margin-block: 14px; gap: 10px; flex-wrap: wrap; }
.ag-market-archive main > .wp-block-group.is-nowrap p { font-size: .88rem; margin: 0; }
.ag-market-archive main > .wp-block-group.is-nowrap select { min-height: 44px; border: 1px solid #aeb4be; padding: 7px; border-radius: 8px; background: #fff; color: #161a20; font: inherit; font-size: .88rem; }
.ag-market-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    min-height: 235px;
    overflow: hidden;
    border-radius: 20px;
    background: #191c22;
    color: white;
}
.ag-market-hero-copy { align-self: center; padding: clamp(22px, 4vw, 48px); }
.ag-market-hero-copy h1 { color: white; }
.ag-market-hero-copy .ag-market-kicker { color: #ffbac6; }
.ag-market-hero-copy p:not(.ag-market-kicker) { color: #e1e3e7; margin: 12px 0 20px; font-size: 1rem; line-height: 1.55; }
.ag-market-hero:not(:has(.ag-market-hero-photo)) { grid-template-columns: 1fr; }
.ag-market-hero-photo { position: absolute; inset: 0 0 0 auto; width: 46.5%; height: 100%; display: block; object-fit: cover; object-position: 55% 50%; }
.ag-market-arrow {
    display: inline-block;
    width: 6px;
    height: 6px;
    box-sizing: border-box;
    border: solid currentColor;
    border-width: 1.5px 1.5px 0 0;
    transform: rotate(45deg);
    flex: 0 0 auto;
    margin-inline-end: 3px;
    vertical-align: .15em;
}
.ag-cam-card-action .ag-market-arrow { align-self: center; }
.ag-market-archive main > .ag-market-directory {
    padding: clamp(18px, 3vw, 36px);
    margin-block: 22px 28px;
    border: 1px solid var(--ag-market-line);
    border-radius: 18px;
    background: white;
}
.ag-market-section-head { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
.ag-market-section-head h2, .ag-market-archive-stock h2, .ag-market-fitment h2 {
    font-size: clamp(1.3rem, 2.5vw, 2.1rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.043em;
    margin: 0;
}
.ag-market-directory .ag-market-section-head h2 { margin: 0 auto 0 0; }
.ag-market-search { width: min(100%, 290px); }
.ag-market-search input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #aeb4be;
    border-radius: 8px;
    min-height: 44px;
    padding: 8px 12px;
    background: #fff;
    color: #161a20;
    font: inherit;
    font-size: 1rem;
}
.ag-market-directory ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; grid-template-columns: repeat(5,minmax(0,1fr)); }
.ag-market-directory li a {
    min-height: 46px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    box-sizing: border-box;
    padding: 8px 11px;
    background: #f7f7f7;
    border: 1px solid #e5e6e8;
    border-radius: 8px;
    color: var(--ag-market-ink);
    font-size: .88rem;
    font-weight: 750;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.ag-market-directory li a:hover { border-color: var(--ag-market-red); color: var(--ag-market-red); }
.ag-market-directory li a span:last-child { color: var(--ag-market-red); }
.ag-market-directory p { font-size: .95rem; color: var(--ag-market-muted); }
.ag-market-archive-stock h2 { margin: 6px 0 16px; }
.ag-market-archive-stock .wc-block-product-template { gap: 14px; }
.ag-market-archive-stock .wc-block-product {
    min-width: 0;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--ag-market-line);
    background: white;
}
.ag-market-archive-stock .wc-block-product .ag-cam-art img:not(.ag-cam-watermark) { aspect-ratio: 4 / 3; object-fit: contain; }
.ag-market-archive-stock .wc-block-product :is(.wp-block-post-title,.wp-block-button) { padding-inline: 12px; overflow-wrap: anywhere; }
.ag-market-archive-stock .wc-block-product .wp-block-post-title { font-size: clamp(.95rem,1.6vw,1.2rem) !important; line-height: 1.3; font-weight: 800; }
.ag-market-archive-stock .wc-block-product .wp-block-button a { min-height: 36px; font-size: .84rem; }
.ag-market-finder-anchor, .ag-market-change { scroll-margin-top: 110px; }
.ag-market-finder-anchor { display: flow-root; }
.ag-market-results .ag-cam-catalog-page { padding-block: clamp(18px,3vw,40px) clamp(40px,6vw,76px); background: var(--ag-market-bg); }
.ag-market-results .ag-cam-catalog-page .ag-cam-container { width: min(100% - 48px, 1240px); }
.ag-market-change { margin: 0 0 14px; }
.ag-market-change summary {
    width: fit-content;
    cursor: pointer;
    padding: 8px 13px;
    min-height: 28px;
    border: 1px solid var(--ag-market-line);
    border-radius: 8px;
    background: white;
    color: var(--ag-market-ink);
    font-size: .88rem;
    font-weight: 800;
    line-height: 28px;
}
.ag-market-change summary::marker { color: var(--ag-market-red); }
.ag-market-results .ag-market-change .ag-catalog-finder { width: 100%; margin: 9px 0 0; box-shadow: none; }
.ag-market-results .ag-cam-catalog-page .ag-cam-results { margin: 0; }
.ag-market-results .ag-cam-empty h1 { color: var(--ag-market-ink); }
.ag-market-results #cam-sonuclari:focus:not(:focus-visible) { outline: none; }
.ag-market-results .ag-cam-catalog-page .ag-cam-results-head {
    border-radius: 18px;
    background: #191c22;
    color: #fff;
    align-items: center;
    padding: clamp(18px, 3.3vw, 38px);
}
.ag-market-results .ag-cam-results-head :is(h1, p, .ag-cam-vehicle-path a) { color: #eceff2; }
.ag-market-results .ag-cam-vehicle-path li + li::before { color: #a9b1bc; }
.ag-market-results .ag-cam-results-head .ag-cam-quote { background: #fff; color: var(--ag-market-ink); }
.ag-market-results .ag-cam-results-head .ag-cam-quote:hover { background: #fce7eb; color: #89132b; }
.ag-market-results .ag-cam-results .ag-cam-results-bar {
    margin-top: 14px;
    padding: 3px 0 8px;
    border-block-width: 0 1px;
}
.ag-market-results .ag-cam-position-filters button { min-height: 44px; padding: 6px 12px; }
.ag-market-results .ag-cam-position-filters button span { margin-inline-start: 4px; opacity: .8; font-size: .78em; }
.ag-market-results .ag-cam-results-head p { font-size: .91rem; }
:is(.ag-market-results,.ag-market-product) .ag-cam-cards { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.ag-market-card {
    min-width: 0;
    border: 1px solid var(--ag-market-line);
    border-radius: 14px;
    background: white;
    overflow: hidden;
}
.ag-market-card:hover { border-color: #b5a0a5; }
.ag-market-card[hidden] { display: none; }
.ag-market-card .ag-cam-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.ag-market-card-media { position: relative; }
:is(.ag-market-results,.ag-market-product) .ag-market-card .ag-cam-art { aspect-ratio: 5 / 4; background: #bfbab6; }
.ag-market-product .ag-market-card .ag-cam-art img:not(.ag-cam-watermark) { display: block; width: 100%; height: 100%; object-fit: contain; }
.ag-market-card-type {
    position: absolute;
    top: 9px;
    left: 9px;
    max-width: calc(100% - 18px);
    box-sizing: border-box;
    padding: 3px 7px;
    border-radius: 5px;
    color: #23252a;
    background: #fff;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.25;
}
:is(.ag-market-results,.ag-market-product) .ag-market-card .ag-cam-card-info { display: flex; flex: 1; flex-direction: column; gap: 7px; padding: 13px; }
:is(.ag-market-results,.ag-market-product) .ag-market-card h3 {
    color: var(--ag-market-ink);
    font-size: clamp(.91rem, 1.4vw, 1.1rem);
    font-weight: 800;
    line-height: 1.32;
    margin: 0;
    overflow-wrap: anywhere;
}
.ag-market-card .ag-cam-card-year { font-size: .78rem; margin: 0; color: var(--ag-market-muted); }
:is(.ag-market-results,.ag-market-product) .ag-market-card .ag-cam-card-action { display: flex; justify-content: space-between; font-size: .81rem; font-weight: 800; margin-top: auto; }
.ag-market-results .ag-market-card .ag-cam-card-action::after { content: none; }
.ag-market-product-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-bottom: 15px; }
.ag-market-product-nav .ag-cam-vehicle-path ol { margin: 0; font-size: .77rem; }
.ag-market-back { color: #802039; font-size: .88rem; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.ag-market-product-hero {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    grid-template-areas: "media copy";
    gap: clamp(12px,3vw,36px);
    border-radius: 20px;
    border: 1px solid var(--ag-market-line);
    background: white;
    padding: clamp(14px,2.4vw,28px);
}
.ag-market-product-copy { grid-area: copy; align-self: center; min-width: 0; padding: 10px clamp(0px,1.5vw,20px); }
.ag-market-product .ag-market-kicker { color: var(--ag-market-red); }
.ag-market-product h1 { font-size: clamp(1.8rem,3.6vw,3.5rem); }
.ag-market-product-lead { margin: 13px 0 14px; color: var(--ag-market-muted); font-size: 1rem; line-height: 1.6; }
.ag-market-product-media { grid-area: media; align-self: start; margin: 0; }
.ag-market-product-media .ag-cam-art { background: #bdb8b3; border-radius: 12px; aspect-ratio: 1.18; }
.ag-market-product-media .ag-cam-art img:not(.ag-cam-watermark) { height: 100%; aspect-ratio: auto; }
.ag-market-product-media figcaption { color: var(--ag-market-muted); font-size: .78rem; margin: 7px 0 0; }
.ag-market-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-block: 15px; }
.ag-market-facts > div { background: #f4f4f5; border-radius: 8px; padding: 8px 10px; }
.ag-market-facts dt { font-size: .75rem; color: var(--ag-market-muted); }
.ag-market-facts dd { font-size: .94rem; font-weight: 800; margin: 2px 0 0; overflow-wrap: anywhere; }
.ag-market-small { margin: 9px 0 0; font-size: .81rem; color: var(--ag-market-muted); }
.ag-market-fitment { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin-block: 16px 32px; }
.ag-market-fitment > section { background: white; border: 1px solid var(--ag-market-line); border-radius: 14px; padding: clamp(16px,2.4vw,26px); }
.ag-market-fitment h2 { font-size: clamp(1.14rem,2vw,1.52rem); }
.ag-market-fitment p { font-size: .92rem; color: var(--ag-market-muted); line-height: 1.55; margin: 8px 0 10px; }
.ag-market-fitment a { color: #802039; font-size: .88rem; font-weight: 800; text-underline-offset: .22em; }
.ag-market-mobile-quote { display: none; }
@media (max-width: 900px) {
    .ag-market-directory ul { grid-template-columns: repeat(4,minmax(0,1fr)); }
    :is(.ag-market-results,.ag-market-product) .ag-cam-cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 640px) {
    .ag-market-wrap, .ag-market-results .ag-cam-catalog-page .ag-cam-container { width: calc(100% - 28px); }
    .ag-market-archive main { padding-inline: 14px; }
    .ag-market-hero { grid-template-columns: 1fr; min-height: 0; border-radius: 14px; }
    .ag-market-hero-photo { position: static; width: 100%; height: 124px; object-position: 50% 52%; }
    .ag-market-directory ul { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ag-market-search { width: 100%; }
    .ag-market-archive-stock .wc-block-product-template { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
    .ag-market-results .ag-cam-catalog-page .ag-cam-results-head { align-items: flex-start; gap: 13px; border-radius: 14px; }
    .ag-market-results #ag-cam-result-title { font-size: clamp(1.95rem,8vw,2.65rem); }
    .ag-market-results .ag-cam-results .ag-cam-position-filters { width: 100%; flex-wrap: nowrap; overflow-x: auto; padding: 4px; margin-left: -4px; }
    .ag-market-results .ag-cam-position-filters button { flex: 0 0 auto; white-space: nowrap; }
    .ag-market-results .ag-cam-results .ag-cam-result-count { margin-left: auto; }
    :is(.ag-market-results,.ag-market-product) .ag-cam-cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
    :is(.ag-market-results,.ag-market-product) .ag-market-card .ag-cam-card-info { padding: 10px; }
    .ag-market-product-hero { grid-template-columns: minmax(0,1fr); grid-template-areas: "kicker" "title" "media" "lead" "facts" "small"; border-radius: 14px; gap: 9px; }
    .ag-market-product-copy { display: contents; }
    .ag-market-product .ag-market-kicker { grid-area: kicker; margin: 0; }
    .ag-market-product h1 { grid-area: title; }
    .ag-market-product-lead { grid-area: lead; margin: 0; }
    .ag-market-facts { grid-area: facts; margin: 0; }
    .ag-market-small { grid-area: small; margin: 0; }
    .ag-market-product-quote { display: none; }
    .ag-market-product-media .ag-cam-art { aspect-ratio: 1.55; }
    .ag-market-fitment { grid-template-columns: 1fr; }
    .ag-market-mobile-quote {
        display: block;
        position: fixed;
        z-index: 14;
        inset: auto 0 0;
        box-sizing: border-box;
        padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid var(--ag-market-line);
        box-shadow: 0 -5px 18px #17162114;
    }
    .ag-market-mobile-quote a { display: flex; }
    .ag-market-product-page { padding-bottom: calc(65px + env(safe-area-inset-bottom)); }
    .ag-market-product-page .ag-back-top { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

html.has-modal-open .ag-market-mobile-quote { display: none; }
