  /* ===================================================================
     Shop page — matches the cart / checkout / login / register / search
     visual language: soft white cards, 16px radii, subtle shadows,
     accent-colored actions, uppercase micro-labels, color-mix focus
     tints. Departments/categories are no longer shown inline on the page —
     they live in their own slide-in drawer (opened via a "Categories"
     button, shown before the "Filter" button), owned by the
     `product-filters` snippet, alongside the faceted filters (price,
     availability, brand, options) drawer — identical behavior on every
     listing page (shop, brand, category, collection, search). Responsive: desktop (sidebar + grid at
     the section's configured column count), tablet (drawer, 3-column
     grid), mobile (drawer, 2-column grid). No filtering/pagination logic
     was changed — styling only.
     =================================================================== */

  .shop-page {
    position: relative;
    padding: 0 0 4rem;
    background: #fff;
  }

  /* ---- Hero: full-bleed accent-tinted band carrying the page title,
     same idea as kiddyland's dark title band but built from this theme's
     own accent color (darkened via color-mix so white text stays legible
     no matter how light the merchant's chosen accent is) instead of a
     hardcoded navy. ---- */
  .shop-hero {
    background: color-mix(in srgb, var(--shop-accent) 85%, #000 15%);
    padding: 4.5rem 0;
  }

  .shop-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 34rem;
    margin: 0 auto;
  }

  .shop-hero__title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
  }

  .shop-hero__desc {
    margin: 0.75rem 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
  }

  .shop-page .container {
    position: relative;
  }

  .shop-page::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
  }

  /* ---- Layout: filter bar + grid. The filter sidebar is no
     longer shown inline at any breakpoint — it's a slide-in drawer
     everywhere (Filter button), with Sort as a dropdown next to it. The
     bar sits inline right above the grid, below the title, at every
     breakpoint (mobile/tablet included, now that it's no longer fixed
     to the viewport). ---- */
  .shop-layout {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "side"
      "main";
    gap: 0;
    align-items: start;
    margin-top: 2.5rem;
  }

  .shop-layout .pf-root {
    grid-area: side;
  }

  /* No filters to show (e.g. zero results) — drop the empty sidebar gutter. */
  .shop-layout:not(:has(.pf-panel)) {
    grid-template-areas: "main";
  }

  /* ---- Desktop (≥992px): filters render as a static left-hand sidebar
     next to the grid instead of the mobile/tablet bar + slide-in drawer.
     product-filters.liquid's own default desktop styling already makes
     .pf-panel a sticky sidebar and keeps .pf-bar hidden — the only thing
     needed here is the two-column layout. ---- */
  @media (min-width: 992px) {
    .shop-layout {
      grid-template-columns: 16rem minmax(0, 1fr);
      grid-template-areas: "side main";
      column-gap: 2.5rem;
    }

    .shop-layout:not(:has(.pf-panel)) {
      grid-template-columns: 1fr;
      grid-template-areas: "main";
    }
  }

  /* ---- Main pane ----------------------------------------------------------- */
  .shop-main {
    grid-area: main;
    min-width: 0;
  }

  /* ---- Product grid --------------------------------------------------------- */
  .shop-grid {
    display: grid;
    gap: 1.25rem;
  }

  /* List view: single column, stacked rows (columns_* settings are
     ignored in this mode — see product-card.liquid's --list modifier). */
  .shop-grid.shop-grid--list {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  /* ---- Empty state ------------------------------------------------------- */
  .shop-empty {
    max-width: 26rem;
    margin: 2.5rem auto 0;
    text-align: center;
    padding: 3rem 1.5rem;
  }

  .shop-empty__title {
    margin: 0 0 0.5rem;
    font-family: var(--font-body);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    font-size: 1.1rem;
    color: #000;
  }

  .shop-empty__sub {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #767677;
  }

  /* ---- Pagination (shared snippet ships no styles of its own) ------------- */
  .shop-page .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 2.75rem;
  }

  .shop-page .pagination__pages {
    display: flex;
    gap: 0.3rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .shop-page .pagination__step,
  .shop-page .pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.7rem;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  }

  .shop-page .pagination__step:hover,
  .shop-page .pagination__page:hover {
    border-color: var(--shop-accent);
    color: var(--shop-accent);
  }

  .shop-page .pagination__step--off {
    opacity: 0.35;
    pointer-events: none;
  }

  .shop-page .pagination__page--current {
    background: var(--shop-accent);
    border-color: var(--shop-accent);
    color: #fff;
  }

  .shop-page .pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    color: #bbb;
  }

  /* ---- Mobile: tighten spacing & typography -------------------------------- */
  @media (max-width: 640px) {
    .shop-page {
      padding: 0 0 3rem;
    }

    .shop-hero {
      padding: 2.75rem 0;
    }

    .shop-hero__title {
      font-size: 1.45rem;
    }

    .shop-layout {
      margin-top: 1.5rem;
    }

    .shop-grid:not(.shop-grid--list) {
      gap: 0.85rem;
    }

    .shop-empty {
      padding: 2.5rem 1.5rem;
    }
  }
