/* Compact store and group cards in a grid, so every store is visible at a glance on
   home and the stores page. Same libseh-storefront layer and two-ID scope as product-card.css. */
@layer libseh-storefront {
/* Grids: 2 columns on phones, more as the screen grows. */
html:root body.luxury-ui[data-lang][data-dir][class] :is(.ls-store-track,.store-directory.stores-grid,.ls-fav-stores,.follows-grid):not(#_):not(#_){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;overflow:visible!important;transform:none!important;width:auto!important;padding:0!important;margin:0!important;align-items:stretch!important;scroll-snap-type:none!important}
@media (min-width:640px){html:root body.luxury-ui[data-lang][data-dir][class] :is(.ls-store-track,.store-directory.stores-grid,.ls-fav-stores,.follows-grid):not(#_):not(#_){grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}}
@media (min-width:900px){html:root body.luxury-ui[data-lang][data-dir][class] :is(.ls-store-track,.store-directory.stores-grid,.ls-fav-stores,.follows-grid):not(#_):not(#_){grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media (min-width:1200px){html:root body.luxury-ui[data-lang][data-dir][class] :is(.ls-store-track,.store-directory.stores-grid,.ls-fav-stores,.follows-grid):not(#_):not(#_){grid-template-columns:repeat(5,minmax(0,1fr))!important}}
html:root body.luxury-ui[data-lang][data-dir][class] .ls-store-carousel:not(#_):not(#_){overflow:visible!important;padding:0!important;margin:0!important}
html:root body.luxury-ui[data-lang][data-dir][class] .ls-store-carousel:not(#_):not(#_) .home-rail-controls{display:none!important}

/* Card shell */
html:root body.luxury-ui[data-lang][data-dir][class] :is(.ls-store-card,.lg-compact-group,.lg-reference-card):not(#_):not(#_){position:relative!important;display:flex!important;flex-direction:column!important;flex:none!important;width:auto!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;background:#f6f1e8!important;border:1px solid #e7dccb!important;border-radius:16px!important;box-shadow:0 4px 12px rgba(63,48,39,.06)!important;overflow:hidden!important;scroll-snap-align:none!important;transform:none!important}
html:root body.luxury-ui[data-lang][data-dir][class] :is(.ls-store-card,.lg-reference-card)[hidden]:not(#_):not(#_){display:none!important}

/* Picture */
html:root body.luxury-ui[data-lang][data-dir][class] :is(.ls-store-media,.lg-compact-art,.lg-reference-cover):not(#_):not(#_){position:relative!important;display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:5/4!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#f1e9dc!important;overflow:hidden!important}
html:root body.luxury-ui[data-lang][data-dir][class] :is(.ls-store-cover,.lg-reference-cover > a):not(#_):not(#_){display:block!important;width:100%!important;height:100%!important;padding:0!important;margin:0!important;background:none!important;border:0!important;border-radius:0!important}
html:root body.luxury-ui[data-lang][data-dir][class] :is(.ls-store-cover,.lg-reference-cover > a,.lg-compact-art) img:not(#_):not(#_){display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;object-fit:cover!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:none!important}
html:root body.luxury-ui[data-lang][data-dir][class] .ls-store-card.logo-only .ls-store-cover img:not(#_):not(#_){object-fit:contain!important;padding:10px!important;background:#f6f1e8!important}
html:root body.luxury-ui[data-lang][data-dir][class] .store-card-brand:not(#_):not(#_){position:absolute!important;top:auto!important;bottom:6px!important;left:auto!important;right:auto!important;inset-inline-start:6px!important;z-index:2!important;display:block!important;width:36px!important;height:36px!important;margin:0!important;padding:2px!important;border-radius:50%!important;border:0!important;background:#f6f1e8!important;box-shadow:0 2px 6px rgba(40,24,20,.2)!important;overflow:hidden!important;transform:none!important}
html:root body.luxury-ui[data-lang][data-dir][class] .store-card-brand img:not(#_):not(#_){width:100%!important;height:100%!important;object-fit:contain!important;border-radius:50%!important;margin:0!important;padding:0!important}
html:root body.luxury-ui[data-lang][data-dir][class] .ls-store-chips:not(#_):not(#_){position:absolute!important;top:6px!important;bottom:auto!important;left:auto!important;right:auto!important;inset-inline-start:6px!important;z-index:2!important;display:flex!important;margin:0!important;padding:0!important;max-width:calc(100% - 44px)!important}
html:root body.luxury-ui[data-lang][data-dir][class] .ls-store-chips .ls-chip:not(#_):not(#_){display:block!important;min-height:0!important;padding:2px 7px!important;border-radius:999px!important;border:0!important;font-size:10px!important;line-height:1.5!important;font-weight:600!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;background:rgba(252,249,243,.94)!important;color:#59633a!important;box-shadow:none!important}
html:root body.luxury-ui[data-lang][data-dir][class] .ls-store-chips .ls-chip:is(.closed,.paused):not(#_):not(#_){color:#66001f!important}
html:root body.luxury-ui[data-lang][data-dir][class] .ls-store-fav-form:not(#_):not(#_){position:absolute!important;top:5px!important;bottom:auto!important;left:auto!important;right:auto!important;inset-inline-end:5px!important;z-index:3!important;margin:0!important;padding:0!important;background:none!important;border:0!important}
html:root body.luxury-ui[data-lang][data-dir][class] .ls-store-media > a.store-heart:not(#_):not(#_){position:absolute!important;top:5px!important;bottom:auto!important;left:auto!important;right:auto!important;inset-inline-end:5px!important;z-index:3!important}
html:root body.luxury-ui[data-lang][data-dir][class] .ls-store-card .store-heart:not(#_):not(#_){display:grid!important;place-items:center!important;width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:rgba(252,249,243,.94)!important;box-shadow:0 2px 6px rgba(40,24,20,.15)!important}
html:root body.luxury-ui[data-lang][data-dir][class] .ls-store-card .store-heart :is(img,svg):not(#_):not(#_){width:16px!important;height:16px!important}
html:root body.luxury-ui[data-lang][data-dir][class] .ls-store-card .store-heart.saved:not(#_):not(#_){background:#66001f!important}
html:root body.luxury-ui[data-lang][data-dir][class] .ls-store-card .store-heart.saved img:not(#_):not(#_){filter:brightness(0) invert(1)!important}
html:root body.luxury-ui[data-lang][data-dir][class] :is(.lg-compact-badge,.lg-reference-badge):not(#_):not(#_){display:inline-block!important;width:auto!important;height:auto!important;min-height:0!important;padding:2px 7px!important;border:0!important;border-radius:999px!important;background:#f3e6e6!important;color:#66001f!important;font-size:10px!important;line-height:1.5!important;font-weight:600!important;align-self:flex-start!important}
html:root body.luxury-ui[data-lang][data-dir][class] .lg-reference-badge:not(#_):not(#_){position:absolute!important;top:6px!important;left:auto!important;right:auto!important;inset-inline-start:6px!important;z-index:2!important;background:rgba(252,249,243,.94)!important}

/* Text: name and town only */
html:root body.luxury-ui[data-lang][data-dir][class] :is(.ls-store-body,.lg-compact-body,.lg-reference-body):not(#_):not(#_){position:static!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:3px!important;flex:1!important;min-width:0!important;margin:0!important;padding:8px 10px 10px!important;background:transparent!important;text-align:start!important}
html:root body.luxury-ui[data-lang][data-dir][class] :is(.ls-store-body h2,.lg-compact-body h3,.lg-reference-body h2,.lg-reference-body h3):not(#_):not(#_){display:flex!important;align-items:center!important;gap:4px!important;margin:0!important;min-width:0!important;font-size:13.5px!important;line-height:1.4!important;font-weight:700!important;color:#3f3027!important}
html:root body.luxury-ui[data-lang][data-dir][class] :is(.ls-store-name,.lg-compact-body h3 a,.lg-reference-body h2 a,.lg-reference-body h3 a):not(#_):not(#_){min-width:0!important;color:#3f3027!important;text-decoration:none!important;white-space:normal!important;overflow:hidden!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow-wrap:anywhere}
html:root body.luxury-ui[data-lang][data-dir][class] .ls-store-body .sp-verified:not(#_):not(#_){flex:none!important;display:grid!important;place-items:center!important;width:14px!important;height:14px!important;border-radius:50%!important;background:#59633a!important;color:#fff!important;font-size:9px!important;font-style:normal!important}
html:root body.luxury-ui[data-lang][data-dir][class] .ls-store-meta:not(#_):not(#_){display:block!important;margin:0!important;padding:0!important;font-size:12px!important;line-height:1.5!important;color:#655a50!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html:root body.luxury-ui[data-lang][data-dir][class] .ls-store-meta span:not(#_):not(#_){display:inline!important;padding:0!important;margin:0!important;background:none!important;border:0!important;color:inherit!important;font-size:inherit!important}
html:root body.luxury-ui[data-lang][data-dir][class] .ls-store-meta span + span::before{content:' · '}
html:root body.luxury-ui[data-lang][data-dir][class] :is(.lg-compact-body > p,.lg-reference-meta,.lg-reference-count):not(#_):not(#_){margin:0!important;padding:0!important;font-size:12px!important;line-height:1.5!important;color:#655a50!important;background:none!important;border:0!important}
html:root body.luxury-ui[data-lang][data-dir][class] :is(.ls-store-desc,.ls-store-tags,.ls-store-stats,.lux-store-group-badge,.lg-reference-description,.lg-reference-previews,.lg-reference-pending,.lg-reference-body > .lg-group-logo):not(#_):not(#_){display:none!important}

/* One small button */
html:root body.luxury-ui[data-lang][data-dir][class] .ls-store-actions:not(#_):not(#_){display:block!important;margin:auto 0 0!important;padding:5px 0 0!important;background:none!important;border:0!important}
html:root body.luxury-ui[data-lang][data-dir][class] .ls-store-actions > :not(.pill.primary):not(#_):not(#_){display:none!important}
html:root body.luxury-ui[data-lang][data-dir][class] :is(.ls-store-actions > .pill.primary,.lg-compact-body > .pill,.lg-reference-button):not(#_):not(#_){display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;height:32px!important;min-height:32px!important;margin:auto 0 0!important;padding:0 8px!important;border:0!important;border-radius:999px!important;background:#66001f!important;color:#fff!important;font-size:12px!important;font-weight:600!important;line-height:1!important;text-decoration:none!important;box-shadow:none!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
}

/* Hidden cards stay hidden whatever the card rules say; show-more button under the home grid. */
@layer libseh-storefront {
html:root body.luxury-ui[data-lang][data-dir][class] .ls-store-track > [hidden]:not(#_):not(#_){display:none!important}
html:root body.luxury-ui[data-lang][data-dir][class] .home-stores-more:not(#_):not(#_){display:flex!important;justify-content:center!important;margin:18px 0 4px!important}
html:root body.luxury-ui[data-lang][data-dir][class] .home-stores-more .pill:not(#_):not(#_){min-height:44px!important;padding:0 32px!important;border-radius:999px!important;background:transparent!important;border:1.5px solid #66001f!important;color:#66001f!important;font-size:14px!important;font-weight:700!important;box-shadow:none!important;cursor:pointer!important}
html:root body.luxury-ui[data-lang][data-dir][class] .home-stores-more .pill[hidden]:not(#_):not(#_){display:none!important}

/* Group cards: the cover fills the whole card, details sit on a soft wine fade at the bottom. */
html:root body.luxury-ui[data-lang][data-dir][class] :is(.lg-compact-group,.lg-reference-card):not(#_):not(#_){min-height:245px!important;border:0!important;background:#3a0a18!important;box-shadow:0 8px 20px rgba(63,10,30,.22)!important}
html:root body.luxury-ui[data-lang][data-dir][class] :is(.lg-compact-art,.lg-reference-cover):not(#_):not(#_){position:absolute!important;inset:0!important;width:100%!important;height:100%!important;aspect-ratio:auto!important;background:#3a0a18!important;z-index:0!important}
html:root body.luxury-ui[data-lang][data-dir][class] :is(.lg-compact-art,.lg-reference-cover > a) img:not(#_):not(#_){width:100%!important;height:100%!important;object-fit:cover!important;padding:0!important;background:none!important}
html:root body.luxury-ui[data-lang][data-dir][class] :is(.lg-compact-art,.lg-reference-cover)::after{content:''!important;position:absolute!important;inset:0!important;pointer-events:none!important;background:linear-gradient(to top,rgba(58,10,24,.95) 0%,rgba(58,10,24,.8) 38%,rgba(58,10,24,.12) 72%,rgba(58,10,24,0) 100%)!important}
html:root body.luxury-ui[data-lang][data-dir][class] :is(.lg-compact-body,.lg-reference-body):not(#_):not(#_){position:relative!important;z-index:1!important;flex:1!important;justify-content:flex-end!important;align-items:center!important;text-align:center!important;gap:3px!important;padding:12px 10px 10px!important;pointer-events:none!important}
html:root body.luxury-ui[data-lang][data-dir][class] :is(.lg-compact-body,.lg-reference-body) a:not(#_):not(#_){pointer-events:auto!important}
html:root body.luxury-ui[data-lang][data-dir][class] :is(.lg-compact-body,.lg-reference-body) > .lg-group-logo:not(#_):not(#_){display:none!important}
html:root body.luxury-ui[data-lang][data-dir][class] :is(.lg-compact-body h3,.lg-reference-body h3):not(#_):not(#_){justify-content:center!important;width:100%!important;font-size:14px!important;color:#fff!important}
html:root body.luxury-ui[data-lang][data-dir][class] :is(.lg-compact-body h3 a,.lg-reference-body h3 a):not(#_):not(#_){color:#fff!important}
html:root body.luxury-ui[data-lang][data-dir][class] :is(.lg-compact-body > p,.lg-reference-meta,.lg-reference-count):not(#_):not(#_){color:rgba(255,255,255,.82)!important;text-align:center!important;width:100%!important}
html:root body.luxury-ui[data-lang][data-dir][class] .lg-compact-badge:not(#_):not(#_){position:absolute!important;top:8px!important;left:auto!important;right:auto!important;inset-inline-start:8px!important;background:rgba(252,249,243,.94)!important;color:#66001f!important}
html:root body.luxury-ui[data-lang][data-dir][class] .lg-reference-badge:not(#_):not(#_){top:8px!important;inset-inline-start:8px!important;color:#66001f!important}
html:root body.luxury-ui[data-lang][data-dir][class] :is(.lg-compact-body > .pill,.lg-reference-button):not(#_):not(#_):not(#_){margin:6px 0 0!important;background:#f6f1e8!important;color:#66001f!important;font-weight:700!important}
}
