/* OROS Shopping - Marketplace V2.1. Customer homepage polish only.
   Works alongside marketplace-v2.css. No JS, cart, orders, or admin changes. */
:root { --oros-v21-line: #e9e4d9; --oros-v21-focus: #9a6c18; }
.oros-marketplace-home .catalog-section,
.oros-marketplace-home .marketplace-rail { min-width: 0; }
.oros-marketplace-home .marketplace-rail__head h2,
.oros-marketplace-home .section-head h2 { letter-spacing: -.016em; }
.oros-marketplace-home .marketplace-rail__head a,
.oros-marketplace-home .view-link { min-height: 40px; display: inline-flex; align-items: center; gap: 5px; }
.oros-marketplace-home .category-grid,
.oros-marketplace-home .marketplace-rail__track,
.oros-marketplace-home #products-grid { scroll-padding-inline: 12px; }
.oros-marketplace-home .category-tile { min-width: 0; text-decoration: none; }
.oros-marketplace-home .category-tile__name { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; overflow-wrap:anywhere; }
.oros-marketplace-home .category-tile__image img { width:100%; height:100%; object-fit:contain; }
.oros-marketplace-home .product-card { min-width: 0; height: 100%; display:flex; flex-direction:column; text-decoration:none; overflow:hidden; transition:transform .18s ease, box-shadow .18s ease; }
.oros-marketplace-home .product-card__picture { position:relative; aspect-ratio:1 / 1; overflow:hidden; }
.oros-marketplace-home .product-card__picture img { width:100%; height:100%; object-fit:contain !important; }
.oros-marketplace-home .product-card__body { display:flex; flex:1; flex-direction:column; gap:6px; min-height:0; }
.oros-marketplace-home .product-card__name { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; line-height:1.35; min-height:2.7em; overflow-wrap:anywhere; }
.oros-marketplace-home .product-card__prices { display:flex; align-items:baseline; flex-wrap:wrap; gap:5px 8px; }
.oros-marketplace-home .product-card__footer { margin-top:auto; display:flex; align-items:center; flex-wrap:wrap; gap:5px 8px; }
.oros-marketplace-home .product-card__pill { max-width:calc(100% - 12px); white-space:normal; }
.oros-marketplace-home .product-card:focus-visible,
.oros-marketplace-home .category-tile:focus-visible,
.oros-marketplace-home .marketplace-rail__head a:focus-visible,
.oros-marketplace-home .mobile-bottom a:focus-visible { outline:3px solid var(--oros-v21-focus); outline-offset:2px; }
@media (hover:hover) and (pointer:fine) {
 .oros-marketplace-home .product-card:hover { transform:translateY(-3px); box-shadow:0 9px 22px #4e3b1b16; }
 .oros-marketplace-home .marketplace-rail__head a:hover { text-decoration:underline; }
}
@media (min-width:1081px) {
 .oros-marketplace-home .catalog-section.container { padding:24px; }
 .oros-marketplace-home .marketplace-rail { padding:24px; }
 .oros-marketplace-home .marketplace-rails { gap:16px; }
 .oros-marketplace-home .marketplace-rail__track { gap:14px; }
 .oros-marketplace-home .category-grid { gap:20px; }
}
@media (min-width:771px) and (max-width:1080px) {
 .oros-marketplace-home .marketplace-rail__track { grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
 .oros-marketplace-home .marketplace-rail__track>.product-card:nth-child(n+5) { display:none; }
 .oros-marketplace-home .catalog-section.container,
 .oros-marketplace-home .marketplace-rail { padding:18px; }
}
@media (max-width:770px) {
 .oros-marketplace-home { overflow-x:clip; }
 .oros-marketplace-home .main-header { min-width:0; }
 .oros-marketplace-home .brand-lockup__horizontal { width:min(36vw,142px); max-width:100%; height:auto; }
 .oros-marketplace-home .searchbar { min-width:0; }
 .oros-marketplace-home .searchbar input { min-width:0; font-size:16px; }
 .oros-marketplace-home .catalog-section.container,
 .oros-marketplace-home .marketplace-rail { padding:15px 12px; }
 .oros-marketplace-home .catalog-section.container { margin-top:8px; }
 .oros-marketplace-home .category-grid { gap:13px; overscroll-behavior-inline:contain; -webkit-overflow-scrolling:touch; scroll-snap-type:x proximity; }
 .oros-marketplace-home .category-tile { flex:0 0 79px; max-width:79px; }
 .oros-marketplace-home .category-tile__image { width:66px; height:66px; padding:2px; }
 .oros-marketplace-home .category-tile__name { font-size:.69rem; min-height:2.4em; }
 .oros-marketplace-home .marketplace-rail__head { align-items:center; margin-bottom:8px; }
 .oros-marketplace-home .marketplace-rail__head h2 { font-size:1.04rem; }
 .oros-marketplace-home .marketplace-rail__head a { min-height:44px; font-size:.73rem; padding-inline:4px; }
 .oros-marketplace-home .marketplace-rail__track,
 .oros-marketplace-home #products-grid.product-grid { gap:10px; overscroll-behavior-inline:contain; -webkit-overflow-scrolling:touch; scroll-snap-type:x proximity; padding-bottom:8px; }
 .oros-marketplace-home .marketplace-rail__track>.product-card,
 .oros-marketplace-home .marketplace-rail__track>.product-card:nth-child(n+5),
 .oros-marketplace-home #products-grid.product-grid>.product-card { flex:0 0 clamp(146px,42vw,174px); width:clamp(146px,42vw,174px); max-width:none; scroll-snap-align:start; }
 .oros-marketplace-home .product-card__body { padding:9px; gap:5px; }
 .oros-marketplace-home .product-card__name { font-size:.74rem; }
 .oros-marketplace-home .product-card__prices strong { font-size:.92rem; }
 .oros-marketplace-home .product-card__prices del,
 .oros-marketplace-home .product-card__stock,
 .oros-marketplace-home .product-card__discount { font-size:.64rem; }
 .oros-marketplace-home .trust-strip__inner { gap:8px; }
 .oros-marketplace-home .trust { min-width:0; }
 .oros-marketplace-home .marketplace-offers { align-items:flex-start; }
 .oros-marketplace-home .mobile-bottom { padding-bottom:max(8px,env(safe-area-inset-bottom)); }
 .oros-marketplace-home .mobile-bottom a { min-height:44px; }
}
@media (max-width:360px) {
 .oros-marketplace-home .category-tile { flex-basis:72px; max-width:72px; }
 .oros-marketplace-home .category-tile__image { width:60px; height:60px; }
 .oros-marketplace-home .marketplace-rail__track>.product-card,
 .oros-marketplace-home .marketplace-rail__track>.product-card:nth-child(n+5),
 .oros-marketplace-home #products-grid.product-grid>.product-card { flex-basis:43vw; width:43vw; }
}
@media (prefers-reduced-motion:reduce) {
 .oros-marketplace-home .product-card { transition:none; }
 .oros-marketplace-home .product-card:hover { transform:none; }
 .oros-marketplace-home .category-grid,
 .oros-marketplace-home .marketplace-rail__track,
 .oros-marketplace-home #products-grid { scroll-behavior:auto; }
}
