  /* ===================================================================
     Home page design — hero band, "Shop by category", "Latest products",
     "Explore our menu" and "Our branches". Shared by sections/hero.liquid
     (tinted slide) and sections/home-*.liquid. Scoped with hm- / cx-herop.
     =================================================================== */

  /* ---- Hero: accent gradient with soft rings, big centred heading, pill dots ---- */
  .cx-herop__slide--tinted {
    background-image: linear-gradient(135deg, color-mix(in srgb, var(--slide-accent) 78%, #000) 0%, var(--slide-accent) 100%);
    padding: 4.5rem 0;
    overflow: hidden;
  }

  .cx-herop__slide--tinted::before,
  .cx-herop__slide--tinted::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    pointer-events: none;
  }

  .cx-herop__slide--tinted::before { width: 22rem; height: 22rem; top: -9rem; inset-inline-end: -5rem; }
  .cx-herop__slide--tinted::after { width: 14rem; height: 14rem; bottom: -7rem; inset-inline-start: 6%; }

  .cx-herop__slide--tinted > .container { position: relative; z-index: 1; }

  .cx-herop__slide--tinted .cx-herop__title {
    max-width: 40rem;
    margin-inline: auto;
    font-family: var(--font-body);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.12;
    text-transform: none;
  }

  .cx-herop__dots {
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    gap: 0.4rem;
  }

  .cx-herop__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); }
  .cx-herop__dot.is-active { width: 22px; border-radius: 999px; background: #fff; transform: none; }

  @media (max-width: 640px) {
    .cx-herop__slide--tinted { padding: 3rem 0 3.4rem; }
  }

  /* ---- Shared section chrome ---- */
  .hm-section { padding: 2.25rem 0; background: #fff; }

  .hm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1.25rem;
  }

  .hm-title { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; color: #111; }

  .hm-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--hm-accent);
    text-decoration: none;
  }

  .hm-link:hover { text-decoration: underline; }

  /* The "view all" link and the round prev/next buttons, together at the end of the heading row. */
  .hm-head__end { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }

  /* A single horizontally-swipeable row; N cards visible per breakpoint via --hm-n. */
  .hm-row {
    display: flex;
    gap: var(--hm-gap, 1rem);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .hm-row::-webkit-scrollbar { display: none; }

  .hm-row > * {
    flex: 0 0 calc((100% - (var(--hm-n) - 1) * var(--hm-gap, 1rem)) / var(--hm-n));
    scroll-snap-align: start;
    min-width: 0;
  }

  /* ---- Shop by category ---- */
  .hm-cat {
    display: block;
    padding: 0.5rem;
    border: 1px solid var(--adi-gray-200, #e5e5e5);
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
  }

  .hm-cat:hover { border-color: var(--hm-accent); transform: translateY(-2px); }

  .hm-cat__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1.1;
    border-radius: 12px;
    background: var(--adi-gray-100, #f2f3f5);
    color: color-mix(in srgb, var(--hm-accent) 45%, #999);
    overflow: hidden;
  }

  .hm-cat__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

  .hm-cat__label {
    position: absolute;
    inset-inline: 0.5rem;
    bottom: 0.5rem;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    background: #fff;
  }

  .hm-cat__name { display: block; font-size: 13px; font-weight: 800; color: #111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hm-cat__count { display: block; margin-top: 1px; font-size: 13px; color: var(--adi-gray-500, #767677); }

  /* ---- Latest products (reuses the product card) ---- */
  .hm-prod .cx-product-card { height: 100%; }

  /* ---- Explore our menu ---- */
  .hm-menu {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
    gap: 1rem;
    align-items: stretch;
  }

  .hm-menu__feature {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.6rem;
    min-height: 14rem;
    padding: 1.4rem;
    border-radius: 18px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--hm-accent) 80%, #000) 0%, var(--hm-accent) 100%);
    color: #fff;
    overflow: hidden;
  }

  .hm-menu__feature::before {
    content: "";
    position: absolute;
    width: 12rem;
    height: 12rem;
    top: -5rem;
    inset-inline-end: -4rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
  }

  .hm-pill {
    align-self: flex-start;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
  }

  .hm-menu__feature-title { margin: 0; font-size: 1.5rem; font-weight: 800; line-height: 1.2; }

  .hm-btn-white {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: #fff;
    color: var(--hm-accent);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: opacity 0.15s ease;
  }

  .hm-btn-white:hover { opacity: 0.9; }

  .hm-menu__tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .hm-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--adi-gray-200, #e5e5e5);
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease;
  }

  .hm-tile:hover { border-color: var(--hm-accent); }

  .hm-tile__title { display: block; font-size: 14px; font-weight: 800; color: #111; }
  .hm-tile__count { display: block; margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--hm-accent); }

  .hm-tile__go {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #111;
    color: #fff;
  }

  /* ---- Our branches ---- */
  .hm-nav { display: flex; gap: 0.5rem; }

  .hm-nav__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--adi-gray-200, #e5e5e5);
    border-radius: 50%;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  }

  .hm-nav__btn:hover,
  .hm-nav__btn--solid { background: var(--hm-accent); border-color: var(--hm-accent); color: #fff; }

  /* Right to left: the "<" button (scrolls left = forward) sits on the left and the ">" on the right,
     and the accent follows the forward button. */
  [dir="rtl"] .hm-nav { flex-direction: row-reverse; }
  [dir="rtl"] .hm-nav__btn--solid { background: #fff; border-color: var(--adi-gray-200, #e5e5e5); color: #333; }
  [dir="rtl"] .hm-nav__btn:not(.hm-nav__btn--solid) { background: var(--hm-accent); border-color: var(--hm-accent); color: #fff; }
  [dir="rtl"] .hm-nav__btn--solid:hover { background: var(--hm-accent); border-color: var(--hm-accent); color: #fff; }

  .hm-branch {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--adi-gray-200, #e5e5e5);
    border-radius: 16px;
    background: #fff;
  }

  .hm-branch__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    margin-bottom: 0.25rem;
    border-radius: 10px;
    background: color-mix(in srgb, var(--hm-accent) 12%, #fff);
    color: var(--hm-accent);
  }

  .hm-branch__name { margin: 0; font-size: 14px; font-weight: 800; color: #111; }

  .hm-branch__line {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
    font-size: 13px;
    color: var(--adi-gray-500, #767677);
  }

  .hm-branch__line svg { flex-shrink: 0; margin-top: 2px; color: #555; }
  .hm-branch__line a { color: inherit; text-decoration: none; }

  .hm-branch__dir {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 13px;
    font-weight: 800;
    color: var(--hm-accent);
    text-decoration: none;
  }

  .hm-branch__dir:hover { text-decoration: underline; }

  /* ---- Responsive ---- */
  .hm-row { --hm-n: 5; }
  .hm-row--prod { --hm-n: 4; }
  .hm-row--branch { --hm-n: 3; }

  @media (max-width: 991px) {
    .hm-row { --hm-n: 3.3; }
    .hm-row--prod { --hm-n: 3; }
    .hm-row--branch { --hm-n: 2.2; }
    .hm-menu { grid-template-columns: minmax(0, 1fr); }
  }

  @media (max-width: 640px) {
    .hm-section { padding: 1.6rem 0; }
    .hm-title { font-size: 1.3rem; }
    .hm-row { --hm-n: 1.6; }
    .hm-row--prod { --hm-n: 1.6; }
    .hm-row--branch { --hm-n: 1.2; }
    .hm-menu__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
    .hm-tile { padding: 0.9rem 0.85rem; gap: 0.5rem; }
    .hm-tile__go { width: 1.75rem; height: 1.75rem; }
  }
