/* Shared catalog geometry. Loaded after theme styles; detail pages are excluded. */
.marketplace-refresh .product-rail{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;align-items:stretch}
.marketplace-refresh .product-card{position:relative;height:100%;min-width:0;overflow:hidden;border-radius:10px}
.marketplace-refresh .product-card .product-image{display:block;width:100%;height:auto!important;aspect-ratio:1;flex:none;overflow:hidden;background:#faf8f3}
.marketplace-refresh .product-card .product-image img{display:block;width:100%;height:100%;object-fit:contain!important;box-sizing:border-box;padding:8px;transform:none!important}
.marketplace-refresh .product-card .product-details{position:static;display:flex;flex:1;flex-direction:column;gap:6px!important;padding:12px!important;min-width:0}
.marketplace-refresh .product-card .product-details::after{display:none!important}
.marketplace-refresh .product-card h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:2.8em!important;max-height:2.8em;font-size:14px!important;line-height:1.4!important;margin:0!important;overflow-wrap:anywhere}
.marketplace-refresh .product-card .product-seller{font-size:11px;line-height:1.5;margin:0!important;padding:0!important}
.marketplace-refresh .product-card .price-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 6px;min-height:0!important;margin-top:auto!important;padding:4px 0!important;border:0}
.marketplace-refresh .product-card .price-row strong{font-size:20px!important;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.marketplace-refresh .product-card .price-row small{font-size:11px!important;line-height:1.4}
.marketplace-refresh .product-card .price-row b{font-size:10px;line-height:1.4}
.marketplace-refresh .product-card .product-purchase-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:4px 0 0!important}
.marketplace-refresh .product-card .product-purchase-actions button{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:44px!important;margin:0!important;padding:8px 4px!important;font-size:12px!important;line-height:1.3;white-space:normal;overflow-wrap:anywhere;border-radius:7px!important}
.marketplace-refresh .product-card .product-social-actions{position:absolute!important;inset:auto!important;top:6px!important;inset-inline-end:6px!important;display:flex!important;gap:4px!important;flex-wrap:nowrap!important;margin:0!important;z-index:2}
.marketplace-refresh .product-card .product-social-actions button{display:flex!important;align-items:center;justify-content:center;flex:none!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:10px!important;background:#fffef9f2!important;color:#493715!important;border:1px solid #d4c9af!important;border-radius:50%!important;box-shadow:0 1px 4px #0001}
.marketplace-refresh .product-card .product-social-actions button span{display:none!important}
.marketplace-refresh .product-card .product-social-actions svg{width:19px;height:19px}
.marketplace-refresh .product-card .product-social-actions button[aria-pressed="true"]{color:#93243b!important;background:#ffe4eb!important}
.marketplace-refresh .product-card .product-image>span{top:auto!important;bottom:6px;inset-inline-start:6px;max-width:calc(100% - 12px)!important;font-size:9px;padding:3px 6px}
.marketplace-refresh .product-card [hidden]{display:none!important}
@media(max-width:1150px){.marketplace-refresh .product-rail{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){.marketplace-refresh .product-rail{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}}
@media(max-width:650px){
 .marketplace-refresh .product-rail{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .marketplace-refresh .product-card .product-details{padding:9px!important;gap:5px!important}
 .marketplace-refresh .product-card h3{font-size:13px!important}
 .marketplace-refresh .product-card .price-row strong{font-size:17px!important}
 .marketplace-refresh .product-card .product-seller{font-size:10px}
 .marketplace-refresh .product-card .product-image img{padding:6px}
 .marketplace-refresh .product-card .price-row .listing-availability{font-size:10px}
}

/* v103: remove inherited row sizing and keep purchase controls compact. */
.marketplace-refresh .product-card .product-details{min-height:0!important;justify-content:flex-start!important}
.marketplace-refresh .product-card .price-row{height:auto!important;flex:none!important;margin-top:0!important;justify-content:space-between!important}
.marketplace-refresh .product-card .price-row strong,.marketplace-refresh .product-card .price-row b{flex:0 1 auto!important;width:auto!important;margin:0!important}
.marketplace-refresh .product-card [hidden]{margin:0!important;padding:0!important}
.marketplace-refresh .product-card .product-purchase-actions{margin-top:auto!important;padding-top:4px}
@media(max-width:650px){
 .marketplace-refresh .product-card .product-purchase-actions button{font-size:11px!important;white-space:nowrap;overflow-wrap:normal;padding:8px 2px!important}
 .marketplace-refresh .product-card .product-details{gap:4px!important}
}

/* Compact desktop catalog introduction, shared across storefront themes. */
@media(min-width:901px){
 .marketplace-refresh .desktop-assurance-row{margin-bottom:10px!important;padding-block:10px!important}
 .marketplace-refresh .marketplace-products .section-heading{padding-top:12px!important;margin-bottom:10px!important;min-height:0!important}
 .marketplace-refresh .section-heading h2{margin-bottom:2px!important}
 .marketplace-refresh .catalog-filter-scope{width:auto!important;max-width:100%;margin:6px 0 0!important;padding:6px 10px!important;gap:8px!important;font-size:12px!important;border-radius:7px!important}
 .marketplace-refresh .catalog-clear-filters{padding:5px 8px!important;min-height:32px}
 .store-catalog{padding-top:18px!important}
 .store-heading{margin-bottom:10px!important}
 .store-catalog-tools{margin:10px 0 14px!important}
}

/* v104: mobile introduction and natural card copy height. */
.marketplace-refresh .product-card h3{min-height:0!important;max-height:2.8em}
.marketplace-refresh .product-card .price-row .listing-availability{flex-basis:auto!important;width:auto!important}
@media(max-width:900px){
 .marketplace-refresh .desktop-assurance-row{display:none!important}
}
@media(max-width:650px){
 .marketplace-refresh .marketplace-products .section-heading{padding-top:10px!important;margin-bottom:10px!important;gap:8px!important}
 .marketplace-refresh .catalog-filter-scope{width:auto!important;margin:5px 0 0!important;padding:5px 8px!important;font-size:11px!important;gap:6px!important;border-radius:7px!important}
 .marketplace-refresh .catalog-clear-filters{padding:6px 8px!important}
 .marketplace-refresh .desktop-category-links{display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;gap:18px!important;overflow-x:auto;max-width:100%;padding:9px 12px!important;min-height:0;scrollbar-width:none}
 .marketplace-refresh .desktop-category-links>*{flex:none;white-space:nowrap;font-size:11px!important}
 .marketplace-refresh .desktop-category-links::-webkit-scrollbar{display:none}
}

/* v105: phone shopping header */
.mobile-assistant-link,.mobile-help-link{display:none!important}
@media(max-width:650px){
.marketplace-refresh .shop-links-wrap,.marketplace-refresh .desktop-category-links{display:none!important}
.marketplace-refresh #mainnav .mobile-assistant-link,.marketplace-refresh #mainnav .mobile-help-link{display:block!important}
.marketplace-refresh #mainnav .visible-preferences{display:flex!important;flex-direction:column;gap:10px;width:100%;padding:8px 0}
.marketplace-refresh #mainnav .visible-preferences select{width:100%;min-height:44px;font-size:16px}
.marketplace-refresh #mainnav .favorites-toggle{display:flex!important;align-items:center;gap:8px;min-height:44px}
.marketplace-refresh #mainnav .favorites-toggle svg{width:22px;height:22px}
.marketplace-refresh #mainnav .currency-toggle{display:none!important}
.marketplace-refresh .marketplace-nav{padding-block:10px!important;row-gap:10px!important}
.marketplace-refresh .brand img{width:110px!important}
.marketplace-refresh .home-search.original-split-banner{margin-top:10px!important;margin-bottom:12px!important;min-height:0!important;padding:0!important}
.marketplace-refresh .original-split-copy{padding:10px!important}
.marketplace-refresh .original-split-copy h1{font-size:16px!important;margin-bottom:5px!important}
.marketplace-refresh .original-split-copy p{font-size:11px!important;line-height:1.4!important;margin-bottom:8px!important}
.marketplace-refresh .original-split-art img{height:120px!important}
.marketplace-refresh .original-split-button{min-height:40px!important;padding:8px 10px!important;font-size:11px!important}
.marketplace-refresh .marketplace-products{padding-top:0!important}
}

/* Compact mobile tools; logical insets mirror the menu with document direction. */
@media(max-width:650px){
.marketplace-refresh .shop-links-wrap{display:block!important}
.marketplace-refresh .shop-links{display:block!important;padding:0 12px 8px!important}
.marketplace-refresh .shop-links-items,.marketplace-refresh .header-preferences{display:none!important}
.marketplace-refresh .shop-links .visible-preferences{display:flex!important;flex-direction:row!important;justify-content:center!important;align-items:center!important;width:100%!important;margin:0!important;padding:0!important;gap:8px!important}
.marketplace-refresh .shop-links .visible-preferences select{height:36px!important;min-height:36px!important;max-height:36px!important;width:130px!important;max-width:calc(50% - 4px)!important;flex:0 1 130px!important;aspect-ratio:auto!important;padding:4px 8px!important;font-size:12px!important}
html[dir] .marketplace-refresh .marketplace-nav #mainnav.open{left:auto!important;right:auto!important;inset-inline-start:12px!important;inset-inline-end:auto!important;width:320px!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 130px)!important;overflow-y:auto!important;overscroll-behavior:contain}
.marketplace-refresh #mainnav .favorites-toggle{width:100%!important;height:44px!important;min-height:44px!important;max-height:44px!important;flex:0 0 auto!important;justify-content:flex-start!important;padding:9px 12px!important;aspect-ratio:auto!important}
.marketplace-refresh #mainnav .favorites-toggle .commerce-label{display:inline!important}
.marketplace-refresh #mainnav .favorites-toggle .commerce-count{position:static!important;inset:auto!important;width:22px!important;height:22px!important;min-width:22px!important;margin-inline-start:auto!important}
.marketplace-refresh #mainnav .mobile-assistant-link{border-top:1px solid #77663e!important;margin-top:8px!important}
}

/* Filters must hide the whole listing, including generated seller labels. */
.product-card[hidden],.store-card[hidden]{display:none!important}
