/* S-Class .cc/.cci/.cc-spec translated to the actual cards of site s2. */
body[data-drev-v8~="cards"] [data-drev8-photo-card] {
    --drev8-radius:18px;
    --drev8-gutter:12px;
    --drev8-card-ink:#fffdf7;
    --drev8-card-muted:#ebe7da;
    --drev8-card-ease:cubic-bezier(.16,1,.3,1);
    min-width:0;
}

body[data-drev-v8~="cards"] .catalog_block.items.drev8-photo-grid:not(.owl-carousel) {
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:22px;
    width:100%;
    margin-inline:0;
}
body[data-drev-v8~="cards"] .catalog_block.items.drev8-photo-grid:not(.owl-carousel)::before,
body[data-drev-v8~="cards"] .catalog_block.items.drev8-photo-grid:not(.owl-carousel)::after {display:none}
body[data-drev-v8~="cards"] .catalog_block.items.drev8-photo-grid:not(.owl-carousel) > [data-drev8-photo-card] {
    display:flex;
    width:auto;
    min-width:0;
    max-width:none;
    padding:0;
    margin:0;
    float:none;
}

body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame {
    --drev8-glass-left:var(--drev8-gutter);
    --drev8-glass-right:var(--drev8-gutter);
    --drev8-action-reserve:0px;
}

body[data-drev-v8~="cards"] :is(.catalog_block.items,.display_list.show_un_props,.viewed-wrapper .swiper,.bigdata-wrapper .block-items)
 [data-drev8-photo-card][data-drev8-card-surface] .drev8-card-frame {
    position:relative;
    display:block;
    height:auto;
    width:100%;
    min-width:0;
    min-height:0;
    aspect-ratio:4/3;
    isolation:isolate;
    border:1px solid #2929231c;
    border-radius:var(--drev8-radius);
    overflow:hidden;
    color:var(--drev8-card-ink);
    background:#ece9e2;
    box-shadow:0 2px 8px #211d1411;
    transition:box-shadow 360ms var(--drev8-card-ease),border-color 360ms var(--drev8-card-ease);
}

body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame[data-drev8-glass-side="left"] {--drev8-glass-right:42%}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame[data-drev8-glass-side="right"] {--drev8-glass-left:42%}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame[data-drev8-has-action] {--drev8-action-reserve:54px}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame[data-drev8-wide-action] {--drev8-action-reserve:106px}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame[data-drev8-media="studio"] {background:#f4f1eb}

body[data-drev-v8~="cards"] :is(.catalog_block.items,.display_list.show_un_props,.viewed-wrapper .swiper,.bigdata-wrapper .block-items)
 [data-drev8-photo-card][data-drev8-card-surface] :is(.drev8-card-frame>.inner_wrap,.drev8-card-frame .image_block,.drev8-card-media) {
    position:absolute;
    inset:0;
    display:block;
    width:100%;
    height:100%;
    min-width:0;
    min-height:0;
    aspect-ratio:auto;
    margin:0;
    padding:0;
    background:transparent;
}

body[data-drev-v8~="cards"] :is(.catalog_block.items,.display_list.show_un_props,.viewed-wrapper .swiper,.bigdata-wrapper .block-items)
 [data-drev8-photo-card][data-drev8-card-surface] .drev8-card-media:has(.drev8-card-picture) > :is(a,.js-item-gallery,.thumb):not(.drev8-card-picture) {
    display:none;
}

body[data-drev-v8~="cards"] :is(.catalog_block.items,.display_list.show_un_props,.viewed-wrapper .swiper,.bigdata-wrapper .block-items)
 [data-drev8-photo-card][data-drev8-card-surface] .drev8-card-media .drev8-card-picture {
    position:absolute;
    inset:0;
    display:block;
    width:100%;
    height:100%;
    max-width:none;
    max-height:none;
    margin:0;
    padding:0;
    background:transparent;
    overflow:hidden;
}

body[data-drev-v8~="cards"] :is(.catalog_block.items,.display_list.show_un_props,.viewed-wrapper .swiper,.bigdata-wrapper .block-items)
 [data-drev8-photo-card][data-drev8-card-surface] .drev8-card-picture > img.drev8-card-photo {
    position:absolute;
    inset:0;
    display:block;
    width:100%;
    height:100%;
    max-width:none;
    max-height:none;
    margin:0;
    padding:0;
    object-fit:contain;
    object-position:var(--drev8-photo-x,50%) var(--drev8-photo-y,50%);
    transform:none;
    filter:none;
    box-shadow:none;
    background:none;
    transition:transform 600ms var(--drev8-card-ease);
}

body[data-drev-v8~="cards"] :is(.catalog_block.items,.viewed-wrapper .swiper,.bigdata-wrapper .block-items) [data-drev8-photo-card][data-drev8-card-surface]
 .drev8-card-frame[data-drev8-media="cover"] .drev8-card-picture > img.drev8-card-photo {object-fit:cover}

body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-picture > img:not(.drev8-card-photo) {display:none}

body[data-drev-v8~="cards"] :is(.catalog_block.items,.display_list.show_un_props,.viewed-wrapper .swiper,.bigdata-wrapper .block-items)
 [data-drev8-photo-card][data-drev8-card-surface] .drev8-card-glass {
    position:absolute;
    z-index:2;
    inset:auto var(--drev8-glass-right) var(--drev8-gutter) var(--drev8-glass-left);
    display:block;
    width:auto;
    min-width:0;
    max-width:none;
    height:auto;
    min-height:0;
    padding:10px 12px;
    margin:0;
    overflow:hidden;
    opacity:1;
    text-align:left;
    text-shadow:none;
    color:var(--drev8-card-ink);
    background:#262d29;
    border:1px solid #ffffff3d;
    border-radius:13px;
    box-shadow:0 8px 22px #161b1630;
}

@supports ((backdrop-filter:blur(8px)) or (-webkit-backdrop-filter:blur(8px))) {
    body[data-drev-v8~="cards"] :is(.catalog_block.items,.display_list.show_un_props,.viewed-wrapper .swiper,.bigdata-wrapper .block-items)
     [data-drev8-photo-card][data-drev8-card-surface] .drev8-card-glass {
        background:linear-gradient(147deg,#29332ce0,#242823c9);
        -webkit-backdrop-filter:blur(10px);
        backdrop-filter:blur(10px);
    }
}

body[data-drev-v8~="cards"] :is(.catalog_block.items,.display_list.show_un_props,.viewed-wrapper .swiper,.bigdata-wrapper .block-items)
 [data-drev8-photo-card][data-drev8-card-surface] .drev8-card-glass :is(.item-title,.block-item__title) {
    height:auto;
    max-height:none;
    min-height:0;
    margin:0;
    padding:0;
    color:inherit;
}

body[data-drev-v8~="cards"] :is(.catalog_block.items,.display_list.show_un_props,.viewed-wrapper .swiper,.bigdata-wrapper .block-items)
 [data-drev8-photo-card][data-drev8-card-surface] .drev8-card-glass :is(.item-title,.block-item__title) a {
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    max-height:2.55em;
    overflow:hidden;
    text-overflow:ellipsis;
    overflow-wrap:anywhere;
    color:var(--drev8-card-ink);
    font-size:var(--drev8-title-size,clamp(15px, .9vw, 18px));
    line-height:1.27;
    font-weight:650;
    text-align:left;
}

body[data-drev-v8~="cards"] :is(.catalog_block.items,.display_list.show_un_props,.viewed-wrapper .swiper,.bigdata-wrapper .block-items)
 [data-drev8-photo-card][data-drev8-card-surface] .drev8-card-glass :is(.item-title,.block-item__title) a span {color:var(--drev8-card-ink)}

body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-glass :is(.item-title,.block-item__title) a:focus-visible {
    outline:2px solid currentColor;
    outline-offset:-1px;
}

body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-specs {display:flex; flex-wrap:wrap; gap:4px; margin-top:4px}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-spec {
    display:inline-flex;
    align-items:center;
    max-width:100%;
    padding:2px 7px;
    border:1px solid #ffffff46;
    border-radius:99px;
    color:var(--drev8-card-muted);
    background:#ffffff12;
    font-size:11px;
    line-height:1.2;
    overflow-wrap:anywhere;
}

body[data-drev-v8~="cards"] :is(.catalog_block.items,.display_list.show_un_props,.viewed-wrapper .swiper,.bigdata-wrapper .block-items)
 [data-drev8-photo-card][data-drev8-card-surface] :is(.article_block,.drev8-card-article) {
    display:block;
    min-height:0;
    margin:3px 0 0;
    min-width:0;
    max-width:100%;
    color:var(--drev8-card-muted);
    font-size:11px;
    line-height:1.22;
    overflow-wrap:anywhere;
}
body[data-drev-v8~="cards"] [data-drev8-photo-card] :is(.article_block,.drev8-card-article) :is(span,div) {color:inherit;font:inherit}

body[data-drev-v8~="cards"] :is(.catalog_block.items,.display_list.show_un_props,.viewed-wrapper .swiper,.bigdata-wrapper .block-items)
 [data-drev8-photo-card][data-drev8-card-surface] .drev8-card-glass .item_info--top_block {display:block;min-height:0;gap:0}

body[data-drev-v8~="cards"] :is(.catalog_block.items,.display_list.show_un_props,.viewed-wrapper .swiper,.bigdata-wrapper .block-items)
 [data-drev8-photo-card][data-drev8-card-surface] .drev8-card-frame .cost.prices {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    column-gap:6px;
    min-width:0;
    min-height:36px;
    margin:4px 0 0;
    padding:0 var(--drev8-action-reserve) 0 0;
    color:var(--drev8-card-ink);
}

body[data-drev-v8~="cards"] :is(.catalog_block.items,.display_list.show_un_props,.viewed-wrapper .swiper,.bigdata-wrapper .block-items)
 [data-drev8-photo-card][data-drev8-card-surface] .drev8-card-frame :is(.price,.price span,.price_title,.price_measure) {
    color:var(--drev8-card-ink);
    font-size:clamp(14px, .95vw, 18px);
    line-height:1.22;
}

body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-price--quote > :not(.drev8-card-quote) {display:none!important}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-quote {font-size:13px; font-weight:650; line-height:1.25}

body[data-drev-v8~="cards"] .catalog_block.items
 [data-drev8-photo-card][data-drev8-card-surface="grid"] .drev8-card-frame > .inner_wrap .drev8-card-actions {
    position:absolute;
    z-index:3;
    inset:auto calc(var(--drev8-glass-right) + 8px) calc(var(--drev8-gutter) + 8px) auto;
    width:auto;
    min-width:0;
    max-width:118px;
    height:auto;
    min-height:0;
    margin:0;
    padding:0;
    background:transparent;
}

body[data-drev-v8~="cards"] :is(.catalog_block.items,.display_list.show_un_props) [data-drev8-photo-card][data-drev8-card-surface]
 .drev8-card-frame :is(.to-order,.read_more) {
    width:auto;
    min-width:44px;
    max-width:116px;
    min-height:44px;
    padding:4px 10px;
    align-items:center;
    justify-content:center;
    font-size:12px;
    line-height:1.15;
    white-space:normal;
    border-radius:24px;
}

body[data-drev-v8~="cards"] :is(.catalog_block.items,.display_list.show_un_props) [data-drev8-photo-card][data-drev8-card-surface]
 .drev8-card-frame :is(.like_icons):is(.drev8-card-media *) {
    position:absolute;
    z-index:5;
    inset:var(--drev8-gutter) var(--drev8-gutter) auto auto;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:6px;
    width:44px;
    height:auto;
    min-height:0;
    opacity:1;
    visibility:visible;
    transform:none;
}

body[data-drev-v8~="cards"] :is(.catalog_block.items,.display_list.show_un_props) [data-drev8-photo-card][data-drev8-card-surface]
 .drev8-card-frame .drev8-card-media :is(.fast_view_button,.wish_item_button,.dpr-v6-unavailable-heart,.wish_item,.fast_view_button>span) {
    min-width:44px;
    min-height:44px;
}

body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-media .wrapp_one_click {display:none}

body[data-drev-v8~="cards"] :is(.catalog_block.items,.display_list.show_un_props) [data-drev8-photo-card][data-drev8-card-surface]
 .drev8-card-frame[data-drev8-glass-side="left"] .drev8-card-media .like_icons {right:calc(42% + 8px)}

/* The native list remains a separate one-per-row layout with the same glass and true price/actions. */
body[data-drev-v8~="cards"] .display_list.show_un_props [data-drev8-photo-card][data-drev8-card-surface="list"] {
    border:0;
    padding:0;
    height:auto!important;
    background:none;
    box-shadow:none;
}
body[data-drev-v8~="cards"] .display_list.show_un_props [data-drev8-photo-card][data-drev8-card-surface="list"] .drev8-card-frame {
    aspect-ratio:3.4/1;
    min-height:250px;
    max-height:345px;
    --drev8-glass-left:var(--drev8-gutter);
    --drev8-glass-right:max(var(--drev8-gutter),calc(100% - 520px));
}
body[data-drev-v8~="cards"] .display_list.show_un_props [data-drev8-photo-card][data-drev8-card-surface="list"] .drev8-card-picture > img.drev8-card-photo {object-position:82% 50%}
body[data-drev-v8~="cards"] .display_list.show_un_props [data-drev8-photo-card][data-drev8-card-surface="list"] .drev8-card-glass {padding-bottom:59px}
body[data-drev-v8~="cards"] .display_list.show_un_props [data-drev8-photo-card][data-drev8-card-surface="list"] .drev8-card-glass
 :is(.like_icons,.wrapp_stockers,.item-description,.item_props,.item_props_list,.item_properties,.props_list) {display:none}
body[data-drev-v8~="cards"] .display_list.show_un_props [data-drev8-photo-card][data-drev8-card-surface="list"] .drev8-card-actions {
    position:absolute;
    z-index:3;
    inset:auto calc(var(--drev8-glass-right) + 10px) calc(var(--drev8-gutter) + 9px) calc(var(--drev8-glass-left) + 12px);
    display:block;
    margin:0;
    padding:0;
    width:auto;
    min-width:0;
}
body[data-drev-v8~="cards"] .display_list.show_un_props [data-drev8-photo-card][data-drev8-card-surface="list"] .drev8-card-actions .information {position:relative;min-height:44px;min-width:0;width:auto;padding:0;margin:0;background:none}
body[data-drev-v8~="cards"] .display_list.show_un_props [data-drev8-photo-card][data-drev8-card-surface="list"] .drev8-card-actions .cost.prices {min-height:44px;margin:0}
body[data-drev-v8~="cards"] .display_list.show_un_props [data-drev8-photo-card][data-drev8-card-surface="list"] .drev8-card-actions .counter_wrapp {position:absolute;inset:auto 0 0 auto;width:auto;padding:0;margin:0;min-width:0}
body[data-drev-v8~="cards"] .display_list.show_un_props [data-drev8-photo-card][data-drev8-card-surface="list"] .drev8-card-actions .counter_wrapp :is(.counter_block,.counter_block_inner,.sku_props,.one_click) {display:none}

body[data-drev-v8~="cards"] .viewed-wrapper .drev8-recent-slide {border:0;box-shadow:none;background:none}
body[data-drev-v8~="cards"] :is(.viewed-wrapper .swiper,.bigdata-wrapper .block-items) [data-drev8-photo-card][data-drev8-card-surface="recent"] {height:auto;background:none}
body[data-drev-v8~="cards"] :is(.viewed-wrapper .swiper,.bigdata-wrapper .block-items) [data-drev8-photo-card][data-drev8-card-surface="recent"] .drev8-card-frame {display:block}

@media (max-width:768px) {
    body[data-drev-v8~="cards"] [data-drev8-photo-card] {--drev8-gutter:9px;--drev8-radius:16px}
    body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-long {--drev8-title-size:13px}
    body[data-drev-v8~="cards"] .display_list.show_un_props [data-drev8-photo-card][data-drev8-card-surface="list"] .drev8-card-frame {
        aspect-ratio:4/3;
        min-height:0;
        max-height:none;
        --drev8-glass-right:var(--drev8-gutter);
    }
    body[data-drev-v8~="cards"] .display_list.show_un_props [data-drev8-photo-card][data-drev8-card-surface="list"] .drev8-card-picture > img.drev8-card-photo {object-position:50% 50%}
}

@media (min-width:600px) and (max-width:1100px) {
    body[data-drev-v8~="cards"] .catalog_block.items.drev8-photo-grid:not(.owl-carousel) {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:599px) {
    body[data-drev-v8~="cards"] .catalog_block.items.drev8-photo-grid:not(.owl-carousel) {grid-template-columns:minmax(0,1fr);gap:18px}
}

@media (hover:hover) and (prefers-reduced-motion:no-preference) {
    body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:hover {box-shadow:0 10px 30px #211d1429;border-color:#393b3245}
    body[data-drev-v8~="cards"] :is(.catalog_block.items,.viewed-wrapper .swiper,.bigdata-wrapper .block-items)
     [data-drev8-photo-card][data-drev8-card-surface] .drev8-card-frame[data-drev8-photo-zoom]:hover .drev8-card-picture > img.drev8-card-photo {transform:scale(1.023)}
}

@media (prefers-reduced-motion:reduce) {
    body[data-drev-v8~="cards"] [data-drev8-photo-card] :is(.drev8-card-frame,.drev8-card-photo) {transition:none}
}

/* V8 OWNER CORRECTION — NO GLASS PLAQUE.
   Keep the existing information node and native actions, but render its
   typography directly over the full-bleed photograph. No panel, blur, border,
   rounded backing, gradient, or container shadow is permitted here. */
body[data-drev-v8~="cards"] :is(.catalog_block.items,.display_list.show_un_props,.viewed-wrapper .swiper,.bigdata-wrapper .block-items)
 [data-drev8-photo-card][data-drev8-card-surface] .drev8-card-glass {
    padding: 0;
    overflow: visible;
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 2px 8px rgba(0,0,0,.62);
}

/* Metadata stays typographic. Do not turn collection/material labels into pills. */
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-spec {
    display: inline;
    max-width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: rgba(255,255,255,.96);
    background: transparent;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 550;
    text-shadow: inherit;
    overflow-wrap: anywhere;
}

/* Article and price remain directly on the photo and inherit glyph shadow only. */
body[data-drev-v8~="cards"] :is(.catalog_block.items,.display_list.show_un_props,.viewed-wrapper .swiper,.bigdata-wrapper .block-items)
 [data-drev8-photo-card][data-drev8-card-surface] :is(.article_block,.drev8-card-article) {
    color: rgba(255,255,255,.94);
    text-shadow: inherit;
}
body[data-drev-v8~="cards"] :is(.catalog_block.items,.display_list.show_un_props,.viewed-wrapper .swiper,.bigdata-wrapper .block-items)
 [data-drev8-photo-card][data-drev8-card-surface] .drev8-card-frame .cost.prices,
body[data-drev-v8~="cards"] :is(.catalog_block.items,.display_list.show_un_props,.viewed-wrapper .swiper,.bigdata-wrapper .block-items)
 [data-drev8-photo-card][data-drev8-card-surface] .drev8-card-frame :is(.price,.price span,.price_title,.price_measure),
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-quote {
    color: #fff;
    text-shadow: inherit;
}

/* Bright photographs may opt into dark typography after image-region review.
   This changes glyph color only; it never creates a backing panel. */
body[data-drev-v8~="cards"] [data-drev8-photo-card][data-drev8-text-tone="dark"] .drev8-card-glass,
body[data-drev-v8~="cards"] [data-drev8-photo-card][data-drev8-text-tone="dark"] .drev8-card-glass :is(.item-title,.block-item__title) a,
body[data-drev-v8~="cards"] [data-drev8-photo-card][data-drev8-text-tone="dark"] .drev8-card-glass :is(.item-title,.block-item__title) a span,
body[data-drev-v8~="cards"] [data-drev8-photo-card][data-drev8-text-tone="dark"] .drev8-card-glass :is(.article_block,.drev8-card-article,.drev8-card-spec,.cost.prices,.price,.price span,.price_title,.price_measure,.drev8-card-quote) {
    color: #191a17;
    text-shadow: 0 1px 0 rgba(255,255,255,.95), 0 0 7px rgba(255,255,255,.8);
}

/* Aspro adds a vertical separator to list descriptions and resets some text shadows. */
body[data-drev-v8~="cards"] .display_list.show_un_props
 [data-drev8-photo-card][data-drev8-card-surface="list"] .drev8-card-glass::after {
    content: none;
}
body[data-drev-v8~="cards"] :is(.catalog_block.items,.display_list.show_un_props,.viewed-wrapper .swiper,.bigdata-wrapper .block-items)
 [data-drev8-photo-card][data-drev8-card-surface] :is(.drev8-card-glass,.drev8-card-actions)
 :is(.item-title a,.item-title a span,.block-item__title a,.block-item__title a span,.drev8-card-spec,
     .article_block,.drev8-card-article,.article_block span,.drev8-card-article span,
     .price,.price span,.price_title,.price_measure,.block-item__cost,.drev8-card-quote) {
    color: var(--drev8-caption-ink,#fff);
    -webkit-text-stroke: 1.15px var(--drev8-caption-edge,#26221a);
    paint-order: stroke fill;
    text-shadow: var(--drev8-caption-shadow,0 1px 2px #171610f2,0 1px 5px #171610a8);
}
/* The recent Old Town 103 crop puts the caption on a sunlit wall. */
body[data-drev-v8~="cards"] [data-drev8-photo-card="1382"][data-drev8-card-surface="recent"],
body[data-drev-v8~="cards"] [data-drev8-photo-card][data-drev8-text-tone="dark"] {
    --drev8-caption-ink: #191a17;
    --drev8-caption-edge: #fffdf6;
    --drev8-caption-shadow: 0 1px 2px #fffdf6e8,0 1px 5px #fffdf6a8;
}
body[data-drev-v8~="cards"] [data-drev8-photo-card][data-drev8-card-surface]
 .drev8-card-media [data-drev8-control="heart"]:focus-visible {
    outline: 2px solid #171610 !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #fffdf6;
}

/* Use the existing accessible cart icon inside the compact list control. */
body[data-drev-v8~="cards"] .display_list.show_un_props [data-drev8-photo-card][data-drev8-card-surface="list"]
 .drev8-card-actions :is(.to-cart,.in-cart)[data-drev8-control="cart"]:has(> .drev8-icon-slot) {
    position: relative;
    inline-size: 44px;
    block-size: 44px;
    padding: 0;
}
body[data-drev-v8~="cards"] .display_list.show_un_props [data-drev8-photo-card][data-drev8-card-surface="list"]
 .drev8-card-actions :is(.to-cart,.in-cart)[data-drev8-control="cart"] > .drev8-icon-slot {
    position: absolute;
    inset: 0;
    margin: auto;
    color: inherit;
}
body[data-drev-v8~="cards"] .display_list.show_un_props [data-drev8-photo-card][data-drev8-card-surface="list"]
 .drev8-card-actions :is(.to-cart,.in-cart)[data-drev8-control="cart"][aria-label]:has(> .drev8-icon-slot) > span {
    display: none;
}
body[data-drev-v8~="cards"] .display_list.show_un_props [data-drev8-photo-card][data-drev8-card-surface="list"]
 .drev8-card-actions .dpr-v6-list-actions .button_block {
    width: auto;
}
body[data-drev-v8~="cards"] .display_list.show_un_props [data-drev8-photo-card][data-drev8-card-surface="list"]
 .drev8-card-actions .dpr-v6-list-actions .more_text {
    display: none;
}

/* Place the copy inside the existing object-fit aperture. The image and its fit are untouched. */
@supports (container-type: size) {
    body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame {
        container-type: size;
        --drev8-aperture-x: .5;
        --drev8-aperture-inline-gap: max(0px,calc(100cqw - 100cqh * var(--drev8-photo-ratio,1.6)));
        --drev8-aperture-block-gap: max(0px,calc(100cqh - 100cqw / var(--drev8-photo-ratio,1.6)));
        --drev8-caption-left: calc(var(--drev8-aperture-inline-gap) * var(--drev8-aperture-x) + var(--drev8-gutter));
        --drev8-caption-right: calc(var(--drev8-aperture-inline-gap) * (1 - var(--drev8-aperture-x)) + var(--drev8-gutter));
        --drev8-caption-bottom: calc(var(--drev8-aperture-block-gap) / 2 + var(--drev8-gutter));
    }
    body[data-drev-v8~="cards"] :is(.catalog_block.items,.viewed-wrapper .swiper)
     [data-drev8-photo-card][data-drev8-card-surface] .drev8-card-frame[data-drev8-media="cover"] {
        --drev8-aperture-inline-gap: 0px;
        --drev8-aperture-block-gap: 0px;
        --drev8-caption-left: var(--drev8-glass-left);
        --drev8-caption-right: var(--drev8-glass-right);
    }
    body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame[data-drev8-media="studio"] {
        --drev8-aperture-x: .88;
    }
    body[data-drev-v8~="cards"] .catalog_block.items [data-drev8-photo-card][data-drev8-card-surface="grid"]
     .drev8-card-frame[data-drev8-media="studio"][data-drev8-glass-side="left"] .drev8-card-glass .cost.prices {
        padding-right: 0;
    }
    body[data-drev-v8~="cards"] :is(.catalog_block.items,.display_list.show_un_props,.viewed-wrapper .swiper,.bigdata-wrapper .block-items)
     [data-drev8-photo-card][data-drev8-card-surface] .drev8-card-glass {
        inset: auto var(--drev8-caption-right) var(--drev8-caption-bottom) var(--drev8-caption-left);
    }
    body[data-drev-v8~="cards"] .display_list.show_un_props
     [data-drev8-photo-card][data-drev8-card-surface="list"] .drev8-card-frame {
        --drev8-aperture-x: .82;
    }
    body[data-drev-v8~="cards"] .display_list.show_un_props
     [data-drev8-photo-card][data-drev8-card-surface="list"] .drev8-card-glass {
        bottom: calc(var(--drev8-caption-bottom) + 46px);
    }
    body[data-drev-v8~="cards"] .display_list.show_un_props
     [data-drev8-photo-card][data-drev8-card-surface="list"] .drev8-card-long .drev8-card-glass .item-title a {
        -webkit-line-clamp: 3;
        max-height: 3.82em;
    }
    body[data-drev-v8~="cards"] .display_list.show_un_props
     [data-drev8-photo-card][data-drev8-card-surface="list"] .drev8-card-actions {
        inset: auto var(--drev8-caption-right) var(--drev8-caption-bottom) var(--drev8-caption-left);
    }
    @media (max-width: 768px) {
        body[data-drev-v8~="cards"] .display_list.show_un_props
         [data-drev8-photo-card][data-drev8-card-surface="list"] .drev8-card-frame {
            --drev8-aperture-x: .5;
        }
    }
}


/* Intrinsic dimensions carried by the existing V8 card images. */
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="200"][height="116"]){--drev8-photo-ratio:calc(200 / 116)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="200"][height="133"]){--drev8-photo-ratio:calc(200 / 133)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="200"][height="137"]){--drev8-photo-ratio:calc(200 / 137)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="200"][height="141"]){--drev8-photo-ratio:calc(200 / 141)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="200"][height="150"]){--drev8-photo-ratio:calc(200 / 150)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="200"][height="157"]){--drev8-photo-ratio:calc(200 / 157)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="200"][height="159"]){--drev8-photo-ratio:calc(200 / 159)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="200"][height="160"]){--drev8-photo-ratio:calc(200 / 160)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="661"][height="1848"]){--drev8-photo-ratio:calc(661 / 1848)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="710"][height="2000"]){--drev8-photo-ratio:calc(710 / 2000)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="782"][height="515"]){--drev8-photo-ratio:calc(782 / 515)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="912"][height="1818"]){--drev8-photo-ratio:calc(912 / 1818)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="938"][height="1920"]){--drev8-photo-ratio:calc(938 / 1920)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="1000"][height="800"]){--drev8-photo-ratio:calc(1000 / 800)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="1000"][height="801"]){--drev8-photo-ratio:calc(1000 / 801)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="1024"][height="640"]){--drev8-photo-ratio:calc(1024 / 640)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="1171"][height="512"]){--drev8-photo-ratio:calc(1171 / 512)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="1200"][height="799"]){--drev8-photo-ratio:calc(1200 / 799)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="1200"][height="1066"]){--drev8-photo-ratio:calc(1200 / 1066)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="1200"][height="1200"]){--drev8-photo-ratio:calc(1200 / 1200)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="1232"][height="1248"]){--drev8-photo-ratio:calc(1232 / 1248)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="1245"][height="962"]){--drev8-photo-ratio:calc(1245 / 962)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="1259"][height="866"]){--drev8-photo-ratio:calc(1259 / 866)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="1280"][height="853"]){--drev8-photo-ratio:calc(1280 / 853)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="1280"][height="1280"]){--drev8-photo-ratio:calc(1280 / 1280)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="1600"][height="1339"]){--drev8-photo-ratio:calc(1600 / 1339)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="1677"][height="1200"]){--drev8-photo-ratio:calc(1677 / 1200)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="1890"][height="1299"]){--drev8-photo-ratio:calc(1890 / 1299)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="1969"][height="1200"]){--drev8-photo-ratio:calc(1969 / 1200)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="1998"][height="1800"]){--drev8-photo-ratio:calc(1998 / 1800)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="2000"][height="1251"]){--drev8-photo-ratio:calc(2000 / 1251)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="2000"][height="1333"]){--drev8-photo-ratio:calc(2000 / 1333)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="2000"][height="1497"]){--drev8-photo-ratio:calc(2000 / 1497)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="2055"][height="1656"]){--drev8-photo-ratio:calc(2055 / 1656)}
body[data-drev-v8~="cards"] [data-drev8-photo-card] .drev8-card-frame:has(.drev8-card-photo[width="2523"][height="1800"]){--drev8-photo-ratio:calc(2523 / 1800)}


/* Keep the native filter and sort triggers in the same toolbar. */
#right_block_ajax > .filter-panel-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding-block: 6px;
}

#right_block_ajax > .filter-panel-wrapper > .filter-compact-block { margin: 0; padding-block: 0; min-width: 0; }
#right_block_ajax > .filter-panel-wrapper .bx_filter_vertical.compact { margin: 0; }
#right_block_ajax > .filter-panel-wrapper > .sort_header {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

#right_block_ajax > .filter-panel-wrapper .sort_header :is(.filter-panel__view, .controls-hr, .clearfix) {
    display: none !important;
}

#right_block_ajax > .filter-panel-wrapper .filter-panel__sort { float: none; min-width: 0; margin: 0; }
#right_block_ajax > .filter-panel-wrapper .dropdown-select__title {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    white-space: nowrap;
}
#right_block_ajax > .filter-panel-wrapper .filter-panel__sort .dropdown-menu-wrapper {
    left: auto;
    right: 0;
}

@media (width < 992px) {
    #right_block_ajax > .filter-panel-wrapper { display: block; }
    #right_block_ajax > .filter-panel-wrapper > .sort_header { justify-content: space-between; gap: 12px; }
    #right_block_ajax > .filter-panel-wrapper.filter_exists .filter-panel__filter {
        display: block;
        float: none;
        flex: none;
        margin: 0;
    }
    #right_block_ajax > .filter-panel-wrapper .dropdown-select__title > span {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* BYN uses the storefront outline with weight matched to the amount. */
:is(#right_block_ajax .catalog_block, #popup_iframe_wrapper .fast_view_frame, .wave1-quick-layer)
 .price_currency:has(.dp-byn-symbol) { font-size: inherit; font-weight: inherit; line-height: inherit; }

:is(#right_block_ajax .catalog_block, #popup_iframe_wrapper .fast_view_frame, .wave1-quick-layer) .dp-byn-symbol {
    --drev-byn-outline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-9 -9 665 818'%3E%3Cpath fill-rule='evenodd' stroke='%23000' stroke-width='16' stroke-linejoin='round' d='M113 0H558V89H202V329H402L449 334 482 343 505 352 535 368 573 397 586 410 609 439 630 478 642 516 647 555 645 597 639 625 632 646 613 684 588 717 557 746 516 772 474 789 424 799 113 800V609H0V520H113ZM202 418V520H404V609H202V711H409L431 708 466 697 495 681 509 670 534 642 546 621 555 594 558 573 556 540 550 518 539 495 522 472 496 449 480 439 458 429 434 422 415 419Z'/%3E%3C/svg%3E");
    display: inline-block;
    width: .615em;
    height: .755em;
    margin: 0 0 0 .13em;
    background: currentColor;
    -webkit-mask: var(--drev-byn-outline) center / 100% 100% no-repeat;
    mask: var(--drev-byn-outline) center / 100% 100% no-repeat;
    vertical-align: baseline;
    translate: 0 .012em;
}
