/* Product Preview: Figma 76:2141. Scope excludes mini-cart and search results. */
body.theme-savoy .nm-products .dudette-product-card { container-type: inline-size; --dudette-card-price-size: 18px; }
body.theme-savoy .nm-products .dudette-product-card .nm-shop-loop-product-wrap { display: flex; flex-direction: column; padding: 0; border: 0; background: var(--dudette-moody-grey); box-shadow: var(--dudette-shadow-down-medium); text-align: left; }
body.theme-savoy .nm-products .dudette-product-card .nm-shop-loop-thumbnail { flex: none; width: 100%; margin: 0; padding: 0; border-radius: 0; background: var(--dudette-pearly-white); }
body.theme-savoy .nm-products .dudette-product-card .nm-shop-loop-thumbnail-link { display: block; position: relative; aspect-ratio: 164 / 224; width: 100%; }
body.theme-savoy .nm-products .dudette-product-card .nm-shop-loop-thumbnail-link img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
body.theme-savoy .nm-products .dudette-product-card .nm-shop-loop-thumbnail .onsale { inset: auto auto 4px 0; width: auto; max-width: calc(100% - 40px); height: auto; min-height: 24px; margin: 0; padding: 0 8px; border-radius: 0; background: var(--dudette-green); color: var(--dudette-jazzy-black); font: 400 16px/24px Jost,sans-serif; text-transform: uppercase; }
body.theme-savoy .nm-products .dudette-product-card .nm-shop-loop-thumbnail .nm-label-itsnew + .onsale { bottom: 32px; }
body.theme-savoy .nm-products .dudette-product-card .nm-wishlist-button { display: flex; position: absolute; inset: 4px 4px auto auto; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 0; padding: 0; border: 0; border-radius: 4px; color: var(--dudette-jazzy-black); background: transparent; z-index: 12; opacity: 1; }
body.theme-savoy .nm-products .dudette-product-card .nm-wishlist-button i { display: block; width: 32px; height: 32px; font-size: 0; background: currentColor; -webkit-mask: url('heart.svg') center / 32px 32px no-repeat; mask: url('heart.svg') center / 32px 32px no-repeat; }
body.theme-savoy .nm-products .dudette-product-card .nm-wishlist-button i::before { content: none; }
body.theme-savoy .nm-products .dudette-product-card .nm-wishlist-button:hover,
body.theme-savoy .nm-products .dudette-product-card .nm-wishlist-button.added { background: transparent; }
body.theme-savoy .nm-products .dudette-product-card .nm-wishlist-button:hover i,
body.theme-savoy .nm-products .dudette-product-card .nm-wishlist-button.added i { -webkit-mask-image: url('heart-filled.svg'); mask-image: url('heart-filled.svg'); }
body.theme-savoy .nm-products .dudette-product-card .nm-quickview-btn { position: absolute; inset: auto 4px 4px auto; width: 24px; height: 24px; padding: 0; border: 0; font-size: 0; background: url('quickview.svg') center / 24px 24px no-repeat; z-index: 11; }
body.theme-savoy .nm-products .dudette-product-card .nm-shop-loop-details { display: flex; flex-direction: column; gap: 16px; flex: 1; min-height: 0; margin: 0; padding: 8px 16px 16px; background: var(--dudette-moody-grey); color: var(--dudette-pearly-white); }
body.theme-savoy .nm-products .dudette-product-card .dudette-card-heading { display: flex; flex-direction: column; gap: 8px; }
body.theme-savoy .nm-products .dudette-product-card .woocommerce-loop-product__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; min-height: 96px; max-height: 96px; margin: 0; padding: 0; color: var(--dudette-pearly-white); font: 400 24px/32px 'Futura Condensed PT',sans-serif; overflow-wrap: anywhere; }
body.theme-savoy .nm-products .dudette-product-card .woocommerce-loop-product__title a { color: inherit; }
body.theme-savoy .nm-products .dudette-product-card .dudette-card-size { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; min-height: 20px; max-height: 20px; margin: 0; color: var(--dudette-pearly-white); font: 500 14px/20px Jost,sans-serif; overflow-wrap: anywhere; }
body.theme-savoy .nm-products .dudette-product-card .dudette-card-footer { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px; min-height: 48px; margin-top: auto; }
body.theme-savoy .nm-products .dudette-product-card .nm-shop-loop-title-price { flex: 1 1 64px; min-width: 0; }
body.theme-savoy .nm-products .dudette-product-card .price { display: block; margin: 0; padding: 0; color: var(--dudette-green); font: 600 var(--dudette-card-price-size)/24px Jost,sans-serif; white-space: normal; opacity: 1; }
body.theme-savoy .nm-products .dudette-product-card .price .amount { color: inherit; }
body.theme-savoy .nm-products .dudette-product-card .price del { display: block; color: var(--dudette-light-green); font: 500 min(14px,var(--dudette-card-price-size))/20px Jost,sans-serif; opacity: 1; }
body.theme-savoy .nm-products .dudette-product-card .price ins { color: var(--dudette-green); background: none; text-decoration: none; }
body.theme-savoy .nm-products .dudette-product-card .nm-shop-loop-actions { position: static; display: flex; flex: 0 0 40px; justify-content: flex-end; width: auto; margin: 0 0 0 auto; padding: 0; opacity: 1; transform: none; }
body.theme-savoy .nm-products .dudette-product-card .nm-shop-loop-actions .dudette-card-buy { position: relative; display: flex; align-items: center; justify-content: center; box-sizing: border-box; flex: none; width: 40px; min-width: 40px; height: 40px; margin: 0; padding: 8px; border: 0; border-radius: 4px; background: var(--dudette-green); color: var(--dudette-jazzy-black); font-size: 0; line-height: 1; opacity: 1; }
body.theme-savoy .nm-products .dudette-product-card .dudette-card-buy img { display: block; width: 24px; height: 24px; }
body.theme-savoy .nm-products .dudette-product-card .dudette-card-buy::before { content: none; }
body.theme-savoy .nm-products .dudette-product-card .nm-shop-loop-actions .dudette-card-buy:hover { background: var(--dudette-light-green); }
body.theme-savoy .nm-products .dudette-product-card .nm-shop-loop-actions .dudette-card-buy.loading { opacity: .6; pointer-events: none; }
body.theme-savoy .nm-products .dudette-product-card a:focus-visible { outline: 2px solid var(--dudette-pearly-white); outline-offset: 3px; }
body.theme-savoy .nm-products .dudette-product-card .nm-shop-loop-thumbnail a:focus-visible { outline-color: var(--dudette-jazzy-black); outline-offset: -3px; }
body.theme-savoy .nm-products .dudette-product-card .nm-shop-loop-attributes { position: static; margin: 0; }
/* XS reserves three title lines; S, M and L reserve two. */
@media (min-width: 768px) {
    body.theme-savoy .nm-products .dudette-product-card .woocommerce-loop-product__title { -webkit-line-clamp: 2; min-height: 64px; max-height: 64px; }
}
/* Preserve two mobile columns and four desktop columns, as agreed. */
@media (min-width: 1024px) {
    body.theme-savoy ul.nm-products:not(.slick-slider):not(.owl-carousel) > li.dudette-product-card { width: 25%; }
    body.theme-savoy ul.nm-products:not(.slick-slider):not(.owl-carousel) > li.dudette-product-card:nth-child(n) { clear: none; }
    body.theme-savoy ul.nm-products:not(.slick-slider):not(.owl-carousel) > li.dudette-product-card:nth-child(4n+1) { clear: both; }
}
/* Savoy hides prices on hover when action links are enabled. Cards show both. */
body.theme-savoy .nm-products.products.has-action-links li.dudette-product-card:hover .price,
body.theme-savoy .nm-products.products.has-action-links li.dudette-product-card:focus-within .price { opacity: 1; visibility: visible; }

/* Keep Danish currency and the buy button side by side in narrow cards. */
@container (max-width: 200px) {
    body.theme-savoy .nm-products .dudette-product-card .nm-shop-loop-details { --dudette-card-price-size: 16px; }
}
@container (max-width: 180px) {
    body.theme-savoy .nm-products .dudette-product-card .nm-shop-loop-details { --dudette-card-price-size: 14px; }
}
@container (max-width: 160px) {
    body.theme-savoy .nm-products .dudette-product-card .nm-shop-loop-details { --dudette-card-price-size: 12px; }
}

/* Reserve two price lines for both sale prices and variant price ranges. */
body.theme-savoy .nm-products .dudette-product-card .price:has(> .amount ~ .amount) { display: flex; flex-wrap: wrap; column-gap: 2px; }
body.theme-savoy .nm-products .dudette-product-card .price:has(> .amount ~ .amount) > .amount:first-child { flex-basis: 100%; }body.theme-savoy .nm-products .dudette-product-card .price:has(> .amount ~ .amount) > span[aria-hidden]:not(.amount) { font: inherit; }
body.theme-savoy .nm-products .dudette-product-card .price:has(> .amount ~ .amount) { font-size: calc(var(--dudette-card-price-size) - 1px); }
