.ygen-native-commerce:has(> .ygen-catalog) {
    width: 100%;
    max-width: none;
    padding: 0;
}
.ygen-catalog {
    --yc-paper: var(--yg-cream, #fff9f3);
    --yc-ink: var(--yg-cacao, #714d40);
    --yc-fill: color-mix(in srgb, var(--yg-peach, #f5cdaa) 42%, var(--yc-paper));
    --yc-hero-fill: color-mix(in srgb, var(--yg-peach, #f5cdaa) 63%, var(--yc-paper));
    --yc-line: color-mix(in srgb, var(--yc-ink) 16%, var(--yc-paper));
    --yc-shadow: 0 0 10px color-mix(in srgb, var(--yc-ink) 8%, transparent);
    background: var(--ygen-colors-surface);
    color: var(--yc-ink);
}
.ygen-catalog [hidden] { display: none !important; }
.yc-age-note { margin: 0 0 12px; font-size: 14px; }
.yc-card-age { display: block; font-size: 13px; line-height: 1.4; }
.ygen-catalog a { color: inherit; }

/* Editorial heading with the same bottom sweep as the reference catalogue. */
.yc-hero {
    background: var(--yc-hero-fill);
    padding: 40px 0 90px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.yc-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px;
    height: 48px;
    background: var(--ygen-colors-surface);
    mask: url("sweep-edge.svg") center / 100% 100% no-repeat;
    pointer-events: none;
}
.yc-hero .yc-hero-image {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: -1;
    width: 58%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    mask-image: linear-gradient(to right, transparent, #000 60%);
    opacity: .5;
}
.yc-hero .yc-hero-image--cover {
    width: 76%;
    object-position: right center;
    mask-image: linear-gradient(to right, transparent, #000 39%);
    opacity: 1;
}
.yc-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 32px;
    font-size: 13px;
}
.yc-breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.ygen-catalog .yc-hero h1 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(38px, 4.7vw, 64px);
    line-height: 1.18;
    overflow-wrap: anywhere;
}
.yc-script {
    max-width: 650px;
    margin: 16px 0 0;
    font: 400 35px/1.15 var(--ygen-fonts-heading);
    transform: rotate(-2deg);
    transform-origin: left center;
}
.yc-hero .term-description { max-width: 650px; margin: 10px 0 0; font-size: 14px; }

.yc-results { display: grid; min-width: 0; padding-block: 50px 45px; scroll-margin-top: 12px; }
.yc-content { min-width: 0; }
.yc-content[aria-busy="true"]:not([data-ygen-page-loading]) { opacity: .55; }
.yc-filter-sidebar { display: grid; gap: 14px; min-width: 0; }
.yc-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgb(34 41 35 / 6%);
}
.yc-filter-title, .yc-filter-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    min-height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: 700 14px/1.4 var(--ygen-fonts-body);
}
.yc-filter-toggle { display: none; }
.yc-filter-title svg, .yc-filter-toggle svg { width: 19px; height: 19px; }
.yc-active-count {
    margin-left: auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--yc-fill);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.yc-filter-clear { padding-block: 8px; font-size: 13px; font-weight: 600; text-decoration: underline; }
.yc-applied-filters { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 7px; }
.yc-applied-filters a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    max-width: 100%;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--yc-fill);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.yc-applied-filters a:hover { text-decoration: underline; }

.yc-results .ygen-filter-form {
    display: grid;
    gap: 22px;
    width: 100%;
    min-width: 0;
    padding: 24px;
    margin: 0;
    border: 0;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--yc-shadow);
}
.yc-results .ygen-filter-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.yc-results .ygen-filter-grid label, .yc-results .ygen-filter-grid legend {
    display: grid;
    gap: 9px;
    font-size: 13px;
    font-weight: 700;
}
.yc-results .ygen-filter-prices { min-width: 0; margin: 0; padding: 0; border: 0; }
.yc-results .ygen-filter-prices legend { margin-bottom: 9px; }
.yc-results .ygen-filter-prices > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.yc-results .ygen-filter-grid :is(input, select) {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 12px;
    border: 0;
    border-radius: 12px;
    background: var(--yc-paper);
    color: var(--yc-ink);
    box-shadow: none;
    font: 400 14px/1.4 var(--ygen-fonts-body);
}
.yc-results :is(button, a):focus-visible {
    outline: 2px solid var(--yc-ink);
    outline-offset: 2px;
}
.yc-results .yc-select-trigger:focus-visible {
    outline: var(--ygen-field-focus);
    outline-offset: var(--ygen-field-focus-offset);
}
.yc-results .ygen-filter-grid .is-selected :is(input, .yc-select-trigger) { background: var(--yc-fill); font-weight: 600; }
.yc-results .ygen-filter-actions { display: grid; gap: 12px; margin: 0; }
.yc-results .ygen-filter-actions label { font-size: 13px; }
.yc-results .ygen-filter-actions input { accent-color: var(--yc-ink); }
.yc-results .ygen-filter-actions a { width: fit-content; font-size: 13px; }
.yc-ready .ygen-filter-actions :is(button[type="submit"], .yc-form-clear) { display: none; }
.yc-ready .ygen-filter-actions[data-ygen-fallback-only] { display: none; }

.yc-filter-field { display: grid; min-width: 0; gap: 8px; }
.yc-select { position: relative; min-width: 0; }
.yc-select-trigger {
    display: block;
    width: 100%;
    position: relative;
    min-height: 52px;
    padding: 14px 42px 14px 16px;
    text-align: left;
    overflow-wrap: anywhere;
    border: 0;
    border-radius: 16px;
    background: var(--yc-paper);
    color: var(--yc-ink);
    font: 400 15px/1.4 var(--ygen-fonts-body);
    cursor: pointer;
}
.yc-select-trigger::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 7px;
    height: 7px;
    border: solid currentColor;
    border-width: 0 1.6px 1.6px 0;
    transform: translateY(-70%) rotate(45deg);
}
.yc-select-trigger[aria-expanded="true"]::after { transform: translateY(-20%) rotate(225deg); }
.yc-select-trigger:is(:hover, [aria-expanded="true"]) { background: var(--yc-fill); }
.yc-select-options {
    position: absolute;
    z-index: 30;
    inset: calc(100% + 7px) 0 auto;
    padding: 7px;
    max-height: min(300px, 45dvh);
    overflow: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgb(34 41 35 / 12%);
}
.yc-select-options button {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    text-align: left;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--yc-ink);
    font: 400 14px/1.4 var(--ygen-fonts-body);
    cursor: pointer;
}
.yc-select-options button:is(:hover, :focus-visible, [aria-selected="true"]) { background: var(--yc-fill); }

.yc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 15px; }
.ygen-catalog .yc-card {
    --yc-card-padding: 14px;
    background: #fff;
    color: var(--yc-ink);
    border-radius: 24px;
    box-shadow: var(--yc-shadow);
    overflow: hidden;
    min-width: 0;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}
.yc-card-photo { display: block; aspect-ratio: 1.5; overflow: hidden; background: #fff; }
.yc-card-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.yc-card-summary { display: block; }
.yc-content .yc-card-summary:focus-visible { outline-offset: -3px; border-radius: inherit; }
.yc-card-body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 0 var(--yc-card-padding) var(--yc-card-padding); }
.ygen-catalog .yc-card h2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    min-height: 36px;
    margin: 12px var(--yc-card-padding) 8px;
    font: 700 16px/1.12 var(--ygen-fonts-body);
}
.ygen-catalog .yc-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
}
.yc-card-categories li {
    max-width: 100%;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--yc-hero-fill);
    font: 650 12px/1.35 var(--ygen-fonts-body);
    overflow-wrap: anywhere;
}
.yc-card-bottom {
    margin-block-start: auto;
    padding-block-start: 8px;
}
.yc-card-bottom--quick {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 7px;
}
.ygen-catalog .yc-card-cart-link {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0;
    font: 650 12px/1.3 var(--ygen-fonts-body);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.yc-price { min-width: 0; font-size: 16px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.yc-price del { display: block; font-size: 11px; font-weight: 400; line-height: 1.3; }
.yc-price ins { text-decoration: none; }
.yc-consult { font-size: 13px; font-weight: 700; }
.yc-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 7px;
    margin-block-start: 6px;
    font: 650 13px/1.35 var(--ygen-fonts-body);
}
.ygen-catalog .yc-card-details {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.yc-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 44px;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 750;
    white-space: nowrap;
}
.ygen-catalog .yc-card-add { background: var(--yc-ink); color: #fff; }
.ygen-catalog .yc-card-circle {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    border: 2px solid transparent;
    border-radius: 50%;
    background-clip: padding-box;
    text-decoration: none;
}
.yc-card-circle svg { width: 22px; height: 22px; }
.yc-card-circle.yc-card-add svg { stroke-width: 2; }
.yc-card-added { background-color: var(--yc-fill); }
.yc-card-circle[aria-busy="true"] { cursor: wait; }
.yc-card-circle[aria-busy="true"] svg { visibility: hidden; grid-area: 1/1; }
.yc-card-circle[aria-busy="true"]::after {
    content: "";
    grid-area: 1/1;
    box-sizing: border-box;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-inline-end-color: transparent;
    border-radius: 50%;
}
.yc-card-error { grid-column: 1/-1; margin: 3px 0 0; font-size: 12px; line-height: 1.4; }
@media (hover: hover) {
    .ygen-catalog .yc-card-add:not([aria-busy="true"]):hover { background-color: color-mix(in srgb, var(--yc-ink) 83%, #000); }
}
@media (prefers-reduced-motion: no-preference) {
    .yc-card-circle.yc-card-add { transition: background-color 150ms ease, transform 150ms ease; }
    .yc-card-circle[aria-busy="true"]::after { animation: yc-pagination-spin .75s linear infinite; }
    .yc-card-circle.yc-card-add:not([aria-busy="true"]):active { transform: scale(.96); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .yc-card-circle.yc-card-add:not([aria-busy="true"]):hover { transform: translateY(-1px); }
    .yc-card-circle.yc-card-add:not([aria-busy="true"]):hover:active { transform: scale(.96); }
}
.yc-pagination { position: relative; margin-block-start: 30px; }
.yc-pagination .nav-links { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 7px; }
.yc-pagination .page-numbers { padding: 10px 13px; border: 1px solid var(--yc-line); border-radius: 7px; font-size: 14px; }
.yc-pagination .current { background: var(--yc-ink); border-color: var(--yc-ink); color: var(--yc-paper); }
.yc-pagination-loader {
    position: absolute;
    inset-block-end: calc(100% + 5px);
    inset-inline-start: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--yc-ink);
    font: 600 13px/1.4 var(--ygen-fonts-body);
    white-space: nowrap;
    visibility: hidden;
    pointer-events: none;
}
.yc-pagination-loader::before {
    content: "";
    inline-size: 14px;
    block-size: 14px;
    border: 2px solid currentColor;
    border-inline-end-color: transparent;
    border-radius: 50%;
}
[data-ygen-page-loading] .yc-pagination-loader {
    visibility: visible;
    transition: visibility 0s 160ms;
}
@media (prefers-reduced-motion: no-preference) {
    [data-ygen-page-loading] .yc-pagination-loader::before { animation: yc-pagination-spin .75s linear infinite; }
}
@keyframes yc-pagination-spin { to { transform: rotate(1turn); } }
.yc-empty { text-align: center; max-width: 650px; margin: auto; padding: 35px 15px 45px; }
.yc-empty h2 { font-size: 27px; margin: 16px 0; }
.ygen-catalog .yc-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 17px;
    border-radius: 24px;
    background: var(--yc-fill);
    font-size: 14px;
    font-weight: 700;
}
.yc-button svg { width: 16px; height: 16px; }
.yc-filter-error { padding: 12px 15px; margin-bottom: 20px; background: var(--yc-fill); border-left: 3px solid var(--yc-ink); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .yc-card { transition: transform .22s ease; }
    .yc-card-photo img { transition: transform .3s ease; }
    .yc-card:hover { transform: translateY(-3px); }
    .yc-card:hover .yc-card-photo img { transform: scale(1.045); }
}
@media (min-width: 900px) {
    .yc-results { grid-template-columns: 280px minmax(0, 1fr); align-items: start; gap: 28px; }
    .yc-without-filters { grid-template-columns: minmax(0, 1fr); }
    .yc-filter-sidebar { position: sticky; top: calc(var(--ygen-sticky-stack, 0px) + 16px); }
    .yc-filter-bar:not([data-active]) { display: none; }
    .yc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}
@media (min-width: 1100px) {
    .yc-results:not(.yc-without-filters) { grid-template-columns: 320px minmax(0, 1fr); }
}
@media (min-width: 1400px) {
    .yc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
    .yc-filter-sidebar { display: contents; }
    .yc-filter-bar {
        position: sticky;
        top: calc(var(--ygen-sticky-stack, 0px) + 8px);
        z-index: 15;
        margin: 0 0 14px;
        padding: 10px 12px;
        border-radius: 16px;
        box-shadow: 0 4px 16px rgb(34 41 35 / 8%);
    }
    .yc-filter-toggle { display: flex; flex: 1; min-height: 40px; font-size: 15px; cursor: pointer; }
    .yc-filter-toggle svg { width: 21px; height: 21px; }
    .yc-filter-title,
    html:not(.ygen-catalogue-js) .yc-results:not(.yc-ready) .yc-filter-bar,
    .ygen-catalogue-js .yc-results:not(.yc-ready) .ygen-filter-form { display: none; }
    .yc-filter-clear { padding: 8px; font-size: 12px; }
    .yc-results .ygen-filter-form { order: 1; margin-bottom: 18px; padding: 22px 20px; gap: 18px; }
    .yc-results .ygen-filter-grid { gap: 18px; }
    .yc-results .ygen-filter-grid input { min-height: 52px; font-size: 16px; }
    .yc-applied-filters { order: 2; margin-bottom: 16px; }
    .yc-content { order: 3; }
}
@media (max-width: 799px) {
}
@media (max-width: 700px) {
    .yc-hero { padding: 28px 0 65px; }
    .yc-hero::after { height: 32px; }
    .yc-hero .yc-hero-image { width: 74%; opacity: .28; }
    .yc-hero .yc-hero-image--cover { width: 100%; opacity: .53; mask-image: linear-gradient(to right, transparent 8%, #000 84%); }
    .yc-script { font-size: 30px; }
}
@media (max-width: 540px) {
    .ygen-catalog .yc-card { --yc-card-padding: 10px; }
    .ygen-catalog .yc-card h2 { font-size: 14px; min-height: 32px; margin-block: 10px 6px; -webkit-line-clamp: 3; }
    .yc-card-categories li { padding-inline: 7px; font-size: 11px; }
    .yc-card-actions { font-size: 12px; gap: 4px; }
    .yc-card-action { gap: 4px; padding-inline: 7px; }
    .yc-consult { font-size: 12px; }
}
@media (max-width: 460px) {
    .yc-grid { gap: 15px 10px; }
}
@media (max-width: 359px) {
    .yc-grid { grid-template-columns: minmax(0, 1fr); }
}
