/* ==========================================================================
   BABAEI — shop reference leftovers
   --------------------------------------------------------------------------
   This file held 2,901 lines and 1,284 !important. It carried at least eight
   complete shop-navbar rewrites, six product-card rewrites and a duplicate
   card system inherited from storefront.css — every layer using !important to
   beat the layer below it, and .shop-reference__sidebar declared sticky, then
   static, then sticky again.

   Two passes removed all of that. What is left here is only what this file
   still owns and nothing else defines:

     .shop-reference                 page surface for the shop namespace
     .shop-reference__crumbs         breadcrumb (index hero and category hero)
     .shop-reference__eyebrow        category hero label
     .shop-reference__category-hero  the category page's own header
     loading affordance              filter/more-products in-flight state

   The nav, drawer and hero live in css/pages/shop-shell.css.
   The catalog, filter rail and product card live in css/pages/shop-catalog.css.
   Palette tokens live in css/pages/shop-shell.css; type in css/fonts.css.
   Both used to be re-declared here with !important, which silently beat the new
   sheets and would have kept the old price typography on the new cards.
   ========================================================================== */

.shop-reference {
    width: 100%;
    background: var(--sh-cream);
    color: var(--sh-ink);
}

/* --- breadcrumb --------------------------------------------------------- */

/* Muted ink, because both places this renders are now light surfaces: the
   index hero (overridden to cream in shop-shell.css) and the category hero.
   The old colour was near-white, which made the category breadcrumb almost
   invisible on its own light header. */
.shop-reference__crumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--sh-muted);
    font-size: 11px;
}

.shop-reference__crumbs a {
    color: inherit;
    text-decoration: none;
    transition: color var(--sh-fast);
}

.shop-reference__crumbs a:hover {
    color: var(--sh-forest);
}

.shop-reference__crumbs span:nth-child(2) {
    font-size: 18px;
    line-height: 1;
}

/* --- category hero ------------------------------------------------------ */

.shop-reference__eyebrow {
    display: inline-block;
    color: var(--sh-forest);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .24em;
    direction: ltr;
    unicode-bidi: isolate;
}

.shop-reference__category-hero {
    width: min(1240px, 100% - (var(--sh-gutter) * 2));
    margin: 0 auto;
    padding: 34px 0 22px;
}

.shop-reference__category-hero h1 {
    margin: 7px 0 6px;
    font-size: clamp(30px, 4.4vw, 48px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.08;
}

.shop-reference__category-hero p {
    max-width: 650px;
    margin: 0;
    color: var(--sh-muted);
    font-size: 13.5px;
    line-height: 1.9;
}

/* ==========================================================================
   Loading affordance
   shop-reference.js adds .is-filter-loading while it swaps the catalog and
   .is-loading-more while infinite scroll appends a page. The old spinners were
   deleted along with the rules that referenced them; this is the replacement,
   and the only animation left in this file.
   ========================================================================== */

.shop-reference.is-filter-loading .shop-reference__results,
.shop-reference.is-loading-more .shop-reference__products {
    opacity: .55;
    transition: opacity var(--sh-fast);
}

.shop-reference__infinite-sentinel {
    position: relative;
    height: 1px;
}

.shop-reference.is-loading-more .shop-reference__infinite-sentinel::after {
    content: "";
    position: absolute;
    top: 26px;
    inset-inline-start: 50%;
    width: 20px;
    height: 20px;
    margin-inline-start: -10px;
    border: 2px solid var(--sh-sand);
    border-top-color: var(--sh-forest);
    border-radius: 50%;
    animation: sh-catalog-spin .7s linear infinite;
}

@keyframes sh-catalog-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .shop-reference.is-loading-more .shop-reference__infinite-sentinel::after {
        animation-duration: 2.4s;
    }
}

@media (max-width: 940px) {
    .shop-reference__category-hero {
        padding: 24px 0 18px;
    }
}
