/* The shop's front page (shop.seraphliving.com): search, brand tiles, product rows. */
.shopfront-head { padding: calc(var(--header-total) + 48px) 0 48px; }
.shopfront-head__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 64px; align-items: end; }
.shopfront-head__title { margin: 0; font-family: var(--font-title); font-weight: 400; font-size: clamp(40px, 5vw, 72px); line-height: 1.1; letter-spacing: -0.02em; }
.shopfront-head__lead { margin: 16px 0 0; max-width: 44ch; font-size: 17px; line-height: 1.5; color: var(--text-secondary, #5C5A55); }

.shopfront-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 24px;
    border-radius: 999px;
    background: #F1F0EC;
    transition: box-shadow 160ms ease-out, background-color 160ms ease-out;
}
.shopfront-search:focus-within { background: #FFFFFF; box-shadow: 0 0 0 2px var(--gold); }
.shopfront-search .ti { font-size: 20px; color: var(--text-secondary, #5C5A55); }
.shopfront-search input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; font: inherit; font-size: 17px; color: var(--text); outline: none; }
.shopfront-search input::-webkit-search-cancel-button { display: none; }
.shopfront-search .btn { flex: none; min-height: 48px; padding: 0 32px; border-radius: 999px; }

.shopfront-brands, .shopfront-row { padding: 0 0 clamp(64px, 7vw, 96px); }
.shopfront-row__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.shopfront-row__title { margin: 0; font-family: var(--font-title); font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -0.02em; }
.shopfront-row__all { flex: none; font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px; transition: background-size 240ms cubic-bezier(0.22, 1, 0.36, 1); padding-bottom: 4px; }
.shopfront-row__all span { display: inline-block; transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) and (pointer: fine) {
    .shopfront-row__all:hover { background-size: 100% 1px; }
    .shopfront-row__all:hover span { transform: translateX(4px); }
}
.shopfront-row__all:focus-visible, .shopfront-brand:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* Fourteen tiles (all brands, then each brand) in one row that slides sideways; padding keeps focus rings unclipped. */
.shopfront-brands__list { display: flex; gap: 12px; margin: -8px 0; padding: 8px 0; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shopfront-brands__list::-webkit-scrollbar { display: none; }
.shopfront-brands__list > li { flex: 0 0 clamp(148px, 15vw, 200px); scroll-snap-align: start; }
.shopfront-brand { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 16px; background: #1E1D1B; color: #FBF8F1; text-decoration: none; }
.shopfront-brand img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1); }
.shopfront-brand::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 12, 12, 0) 40%, rgba(12, 12, 12, 0.72) 100%); }
.shopfront-brand__text { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 4px; }
.shopfront-brand__name { font-family: var(--font-title); font-size: 19px; line-height: 1.15; text-wrap: balance; }
.shopfront-brand__count { font-size: 14px; opacity: 0.86; }
/* A brand with nothing on sale yet: still there, quieter. */
.shopfront-brand--empty img { opacity: 0.55; }
.shopfront-brand--empty .shopfront-brand__count { opacity: 0.7; }
@media (hover: hover) and (pointer: fine) { .shopfront-brand:hover img { transform: scale(1.03); } }
.shopfront-brand:active img { transform: scale(1.01); }

.shopfront-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1099px) {
    .shopfront-head__inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
    .shopfront-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .shopfront-head { padding-top: calc(var(--header-total) + 32px); }
    .shopfront-search { padding-left: 16px; }
    .shopfront-search .btn { padding: 0 20px; }
    .shopfront-brands__list { gap: 8px; }
    .shopfront-brands__list > li { flex-basis: 42vw; }
    .shopfront-brand__text { left: 12px; right: 12px; bottom: 12px; }
    .shopfront-brand__name { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .shopfront-brand img, .shopfront-row__all, .shopfront-row__all span, .shopfront-search { transition: none; }
}
.shop-full__list a.is-empty { opacity: 0.6; }
