/* Edge-to-edge product photography, clipped to the card's rounded top corners. */
.product-card>a,.product-card-compact>a{border-radius:inherit}
.product-card .product-card-img,.product-card-compact .pcc-img{aspect-ratio:1;display:block;padding:0;overflow:hidden;border-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0}
.product-card .product-card-img>picture,.product-card-compact .pcc-img>picture{display:block;width:100%;height:100%}
.product-card .product-card-img img,.product-card-compact .pcc-img img{width:100%;height:100%;max-height:none;object-fit:cover;object-position:center;transform:scale(1.045);transition:transform .25s ease}
@media(hover:hover){.product-card:hover .product-card-img img,.product-card-compact:hover .pcc-img img{transform:scale(1.08)}}
@media(prefers-reduced-motion:reduce){.product-card .product-card-img img,.product-card-compact .pcc-img img{transition:none}}
.product-card .card-qty-wrap,.product-card-compact .card-qty-wrap{display:flex}
.product-card .card-qty-wrap>button,.product-card-compact .card-qty-wrap>button{width:100%;min-height:44px}
.card-minimum-note{margin:0 0 6px;font-size:11px;line-height:1.4;color:#71717a}
.category-product-grid.is-christmas{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media(min-width:640px){.category-product-grid.is-christmas{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}}
@media(max-width:479px){.category-product-grid.is-christmas{gap:10px}}
@media(max-width:639px){.catalog-toolbar{flex-wrap:wrap}.catalog-toolbar>div{max-width:100%}.catalog-toolbar>div:last-child{margin-left:auto}.catalog-toolbar select{min-width:0;max-width:100%}}

/* Larger prices and four columns across desktop catalog views. */
.product-card .product-card-price,.product-card-compact .pcc-price{font-size:clamp(1.25rem,2vw,1.625rem);line-height:1.2;font-weight:800;white-space:normal;overflow-wrap:anywhere}
@media(min-width:1024px){.category-product-grid,.category-product-grid.is-christmas,#search-results-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Product cards 2.0: marketing, stock and verified price comparison are separate. */
.marketing-badge{display:inline-flex;align-items:center;justify-content:center;max-width:100%;padding:5px 9px;border-radius:8px;font-size:13px;font-weight:750;line-height:1.2;white-space:normal;overflow-wrap:anywhere;background:#f1f5f9;color:#334155;box-shadow:0 1px 3px #0000000a}
.marketing-badge--sale{background:#ffe3df;color:#963446}.marketing-badge--new{background:#dff5eb;color:#176044}.marketing-badge--featured{background:#eee5f7;color:#654164}
.product-marketing-overlay{position:absolute;top:8px;left:8px;z-index:15;display:flex;flex-direction:column;align-items:flex-start;gap:5px;max-width:calc(100% - 96px);pointer-events:none}
.product-stock-info{font-size:12px;line-height:1.35;color:#64748b;min-height:2.7em;margin-bottom:6px;overflow-wrap:anywhere;font-weight:500}
.product-price-block{display:flex;flex-direction:column;align-items:flex-start;min-width:0;max-width:100%;margin-top:auto;font-variant-numeric:tabular-nums}
.product-previous-price{font-size:13px;color:#71717a;line-height:1.3;min-height:1.3em;margin-bottom:4px;font-weight:500}.product-previous-price del{text-decoration-thickness:1px}
.product-price-block .product-current-price{font-size:clamp(20px,2vw,27px);font-weight:800;line-height:1.15;color:#654164;white-space:normal;overflow-wrap:anywhere}
.product-price-block.has-discount .product-current-price{color:#a63749}.product-price-detail .product-current-price{font-size:34px}.product-detail-badges{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}
.price-on-dark:not(.has-discount) .product-current-price{color:#e9d5ff}.price-on-dark .product-previous-price{color:#cbd5e1}.price-on-dark.has-discount .product-current-price{color:#fda4af}
.product-card,.product-card-compact{min-width:0;height:100%;border-radius:14px;overflow:hidden}.product-card>a,.product-card-compact>a{display:flex;flex-direction:column;flex:1;min-width:0}.product-card-body,.product-card-compact .pcc-body{display:flex;flex-direction:column;min-width:0;flex:1;gap:3px}.product-card-body{padding:12px}.product-card-compact .pcc-body{padding:10px}
.product-card-name,.product-card-compact .pcc-name{line-height:1.35;min-height:2.7em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-card-footer{margin-top:auto;min-width:0}.product-card-actions,.pcc-actions{margin-top:auto}.product-card .product-card-img,.product-card-compact .pcc-img{position:relative;flex-shrink:0;border-radius:13px 13px 0 0;overflow:hidden}.product-card .product-card-img img,.product-card-compact .pcc-img img{border-radius:inherit}
.product-list-side .product-price-block{align-items:flex-end}.product-list-item [data-product-badges]{display:flex;gap:5px;flex-wrap:wrap}
[data-promotion-preview] .product-card-img{height:180px;background:#f8fafc;display:flex;align-items:center;justify-content:center}[data-promotion-preview] .product-card-img img{width:100%;height:100%;object-fit:contain}[data-promotion-preview] .product-img-actions,[data-promotion-preview] [data-product-quick]{display:none}[data-promotion-preview] .product-card{background:white;border:1px solid #e2e8f0}[data-promotion-preview] .product-card-actions{padding:12px}[data-promotion-preview] .product-current-price{font-size:25px}
@media(max-width:639px){.marketing-badge{font-size:12px;padding:4px 7px}.product-marketing-overlay{max-width:calc(100% - 94px);left:6px;top:6px}.product-card-body{padding:10px}.product-price-block .product-current-price{font-size:22px}.product-previous-price{font-size:12px}.product-list-side .product-price-block{align-items:flex-start}.product-price-detail .product-current-price{font-size:30px}}

.product-list-item .product-stock-info{min-height:0;margin:5px 0}.product-dark-card{display:flex;flex-direction:column;height:100%;min-width:0}.product-dark-card>a{flex:1}.product-dark-card .product-price-block{margin-top:0}[data-promotion-preview] button[x-show="!ok"]{background:#f38b70;border-color:#f38b70;color:#302039}

/* Discount belongs next to the previous price in every price block. */
.product-previous-price{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.product-discount-percent{display:inline-block;white-space:nowrap;border-radius:5px;padding:2px 5px;background:#fff0ee;color:#a63749;font-size:12px;font-weight:700;line-height:1.2}
.price-on-dark .product-discount-percent{background:#fff0ee;color:#a63749}

/* Consistent price baselines, minimum quantity above the price. */
.product-previous-price{min-height:22px}.product-previous-price del{color:#52525b}.price-on-dark .product-previous-price del{color:#e2e8f0}
.product-price-block>.card-minimum-note{min-height:16px;margin:0 0 4px;line-height:16px}
.supplier-related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
[data-supplier-related]{container-type:inline-size}
@container(min-width:630px){.supplier-related-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@container(min-width:850px){.supplier-related-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@container(min-width:1070px){.supplier-related-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}

/* One compact mobile row: filters, view and sorting. */
@media(max-width:767px){
 .catalog-toolbar{flex-wrap:nowrap;gap:8px;padding-top:8px;padding-bottom:8px;margin-bottom:12px}
 .catalog-toolbar .catalog-toolbar-count{display:none}
 .catalog-toolbar>div:first-child{flex:none}
 .catalog-toolbar>div:last-child{flex:1;min-width:0;gap:6px;justify-content:flex-end}
 .catalog-toolbar>div:last-child>div{flex-shrink:0}
 .catalog-toolbar>div:last-child>div>a{min-width:36px;min-height:40px}
 .catalog-toolbar>div:first-child>button{min-height:40px;padding:6px 8px;font-size:13px;white-space:nowrap}
 .catalog-toolbar select{flex:1;width:0;min-width:0;max-width:190px;height:40px;padding-left:6px;padding-right:20px}
}

/* Give mobile list prices a full row instead of squeezing them beside cart controls. */
@media(max-width:639px){
 .product-list-side{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;align-items:start}
 .product-list-side>div{min-width:0;width:100%}
 .product-list-side .product-current-price,.product-list-side .product-previous-price del{white-space:nowrap;overflow-wrap:normal;word-break:normal}
 .product-list-side .product-previous-price{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
 .product-list-side>div:last-child{display:flex;gap:8px}
 .product-list-side>div:last-child>button{flex:1;min-width:0}
}

/* Highlighted technical attributes stay attached to the bottom of the image. */
.product-attribute-overlay{position:absolute;inset:auto 0 0;z-index:2;display:flex;flex-wrap:wrap;align-items:flex-end;gap:6px;padding:16px 8px 8px;background:linear-gradient(transparent,rgba(255,255,255,.88));pointer-events:none}
.product-attribute-overlay .attr-badge{max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;font-size:11px;line-height:1.3;gap:3px;padding:3px 5px;align-items:baseline}
.product-attribute-overlay .attr-badge>span{min-width:0}
@media(max-width:639px){.product-attribute-overlay{gap:5px;padding:12px 6px 6px}.product-attribute-overlay .attr-badge{font-size:10px;padding:2px 4px}}

/* Compact numbered window; four navigation controls retain their positions at boundaries. */
.pagination-window{justify-content:center;gap:4px;flex-wrap:wrap}
.pagination-window a,.pagination-window>span.page-link-nav{box-sizing:border-box;flex-shrink:0;min-width:40px;width:auto;height:44px;padding:0 8px;font-variant-numeric:tabular-nums}
.pagination-window .page-link-nav{font-size:23px;line-height:1}
.pagination-window [aria-disabled=true]{opacity:.35;cursor:default;pointer-events:none}
.pagination-window a:focus-visible{outline:2px solid #654164;outline-offset:2px}
@media(max-width:639px){.pagination-window a,.pagination-window>span.page-link-nav{min-width:32px;padding:0 6px}}

.pagination-container{container-type:inline-size;container-name:shop-pagination;min-width:0}
.pagination-window .pagination-short{display:contents}
.pagination-window .pagination-all{display:none}
