/* Scoped to the existing catalogue; product and checkout styling stay theme-owned. */
.dr-shop-page .drb-cf-mobile,
.dr-shop-page .drb-cf-open { display: none; }
.dr-shop-page .drb-cf-form { margin: 0; }
.dr-shop-page .drb-cf-form [hidden] { display: none !important; }
.dr-shop-page .drb-cf-form-body { padding: 1.4rem 0; }
.dr-shop-page .drb-cf-form label:not(.drb-cf-stock) {
  display: block;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.3;
  margin: 0 0 0.55rem;
}
.dr-shop-page .drb-cf-form select {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  display: block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
  min-height: 48px;
  padding: 0.65rem 1.7rem 0.65rem 0.65rem;
  width: 100%;
  max-width: 100%;
}
.dr-shop-page .drb-cf-dependent { margin-top: 1.35rem; }
.dr-shop-page .drb-cf-note {
  color: var(--olive);
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.5;
  margin: 0.65rem 0 0;
}
.dr-shop-page .drb-cf-stock {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 400;
  gap: 0.65rem;
  line-height: 1.4;
  min-height: 44px;
  margin: 1.15rem 0 0;
}
.dr-shop-page .drb-cf-stock input { accent-color: var(--ink); height: 21px; width: 21px; flex: 0 0 21px; margin: 0; }
.dr-shop-page .drb-cf-form-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1rem; padding-top: 0.8rem; }
.dr-shop-page .drb-cf-reset { font-family: var(--serif); font-size: 0.85rem; text-decoration: underline; color: var(--ink); }
.dr-shop-page .drb-cf-form-actions button,
.dr-shop-page .drb-cf-empty-reset {
  align-items: center;
  background: var(--acid);
  border: 1px solid var(--ink);
  border-radius: 0;
  box-shadow: none;
  color: var(--ink);
  display: flex;
  font-family: var(--sans);
  font-size: 0.73rem;
  font-weight: 850;
  gap: 0.5rem;
  justify-content: space-between;
  letter-spacing: 0.035em;
  line-height: 1.25;
  min-height: 48px;
  padding: 0.75rem;
  text-decoration: none;
  text-transform: uppercase;
}
.dr-shop-page .drb-cf-form-actions button:hover { background: var(--ink); color: var(--acid); }
.dr-shop-page .drb-cf-active { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: -0.2rem 0 1.5rem; }
.dr-shop-page .drb-cf-active a { align-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--ink); display: inline-flex; font-family: var(--sans); font-size: 0.75rem; gap: 0.8rem; line-height: 1.3; min-height: 38px; padding: 0.5rem 0.65rem; text-decoration: none; }
.dr-shop-page .drb-cf-active a:hover { border-color: var(--ink); }
.dr-shop-page .drb-cf-empty-reset { display: inline-flex; margin-top: 1rem; }
.dr-shop-page .drb-cf-dialog:not([open]) { display: none; }
.dr-shop-page .drb-cf-dialog {
  background: var(--paper-light);
  border: 0;
  border-top: 3px solid var(--acid);
  border-radius: 0;
  box-shadow: none;
  color: var(--ink);
  margin: auto auto 0;
  max-height: calc(100dvh - 20px);
  max-width: 520px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0;
  width: 100%;
}
.dr-shop-page .drb-cf-dialog::backdrop { background: rgba(23, 23, 19, 0.55); }
.dr-shop-page .drb-cf-dialog-head { align-items: center; background: var(--paper-light); display: flex; gap: 0.5rem; justify-content: space-between; padding: 1.1rem 1.2rem 0.5rem; }
.dr-shop-page .drb-cf-dialog-head h2 { color: var(--ink); font-family: var(--sans); font-size: 1.5rem; font-weight: 850; letter-spacing: -0.045em; line-height: 1.1; margin: 0; text-transform: none; }
.dr-shop-page .drb-cf-close { align-items: center; background: transparent; border: 0; border-radius: 0; color: var(--ink); display: flex; flex: 0 0 44px; font-family: var(--sans); font-size: 1.7rem; font-weight: 400; height: 44px; justify-content: center; line-height: 1; padding: 0; width: 44px; }
.dr-shop-page .drb-cf-dialog .drb-cf-form-body { padding: 0.7rem 1.2rem 1.5rem; }
.dr-shop-page .drb-cf-dialog .drb-cf-form-actions { background: var(--paper-light); border-top: 1px solid var(--line); padding: 1rem 1.2rem max(1.2rem, env(safe-area-inset-bottom)); position: sticky; bottom: 0; }
.dr-shop-page :where(.drb-cf-mobile a, .drb-cf-form button, .drb-cf-form select, .drb-cf-form input, .drb-cf-close, .drb-cf-open):focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
@media (max-width: 720px) {
  .dr-shop-page .drb-cf-mobile { display: block; margin: 0 0 0.8rem; }
  .dr-shop-page .drb-cf-heading { align-items: center; display: flex; gap: 0.5rem; justify-content: space-between; margin: 0 0 0.85rem; }
  .dr-shop-page .drb-cf-heading h2 { color: var(--ink); font-family: var(--sans); font-size: 1.3rem; font-weight: 850; letter-spacing: -0.045em; line-height: 1.1; margin: 0; text-transform: none; }
  .dr-shop-page .drb-cf-heading > span { color: var(--ink); font-family: var(--serif); font-size: 0.78rem; line-height: 1.3; text-align: right; }
  .dr-shop-page .drb-cf-categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .dr-shop-page .drb-cf-tile { align-items: center; background: var(--ink); border: 1px solid var(--olive); color: var(--paper-light); display: flex; flex-direction: column; justify-content: flex-end; min-height: 86px; overflow: hidden; padding: 3px 0 0; text-decoration: none; }
  .dr-shop-page .drb-cf-art { background-repeat: no-repeat; background-size: 300% 200%; display: block; flex: 0 0 56px; height: 56px; width: 56px; }
  .dr-shop-page .drb-cf-art--all { background-position: 0% 0%; }
  .dr-shop-page .drb-cf-art--dreads { background-position: 50% 0%; }
  .dr-shop-page .drb-cf-art--care { background-position: 100% 0%; }
  .dr-shop-page .drb-cf-art--beads { background-position: 0% 100%; }
  .dr-shop-page .drb-cf-art--accessories { background-position: 50% 100%; }
  .dr-shop-page .drb-cf-art--more { background-position: 100% 100%; }
  .dr-shop-page .drb-cf-name { color: var(--paper-light); display: block; font-family: var(--sans); font-size: 0.75rem; font-weight: 750; letter-spacing: 0.015em; line-height: 1.2; padding: 6px 2px 7px; text-align: center; white-space: nowrap; width: 100%; }
  .dr-shop-page .drb-cf-tile.is-active { border-color: var(--acid); outline: 1px solid var(--acid); outline-offset: -2px; }
  .dr-shop-page .drb-cf-tile.is-active .drb-cf-name { background: var(--acid); color: var(--ink); }
  .dr-shop-page .drb-cf-tile:hover { border-color: var(--acid); color: var(--paper-light); }
  .dr-shop-page .drb-cf-extra { display: none; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
  .dr-shop-page .drb-cf-extra.is-open, .dr-shop-page .drb-cf-extra:target { display: grid; }
  .dr-shop-page .drb-cf-extra a { align-items: center; border: 1px solid var(--ink); color: var(--ink); display: flex; font-family: var(--sans); font-size: 0.75rem; font-weight: 750; justify-content: center; line-height: 1.25; min-height: 44px; padding: 0.5rem; text-align: center; text-decoration: none; }
  .dr-shop-page .drb-cf-extra a.is-active { background: var(--ink); color: var(--acid); }
  .dr-shop-page .catalog__toolbar { align-items: center; display: grid; grid-template-columns: 1fr 1.28fr; gap: 10px; margin-bottom: 1.2rem; padding: 0 0 1rem; }
  .dr-shop-page .catalog__toolbar > p { display: none; }
  .dr-shop-page .drb-cf-open { align-items: center; background: var(--acid); border: 1px solid var(--ink); color: var(--ink); display: flex; font-family: var(--sans); font-size: 0.78rem; font-weight: 850; gap: 8px; justify-content: center; letter-spacing: 0.04em; line-height: 1.25; min-height: 46px; padding: 0.6rem; text-decoration: none; text-transform: uppercase; }
  .dr-shop-page .drb-cf-filter-count { background: var(--ink); color: var(--acid); font-size: 0.72rem; padding: 2px 5px; }
  .dr-shop-page .catalog__toolbar form, .dr-shop-page .catalog__toolbar label { display: block; min-width: 0; width: 100%; }
  .dr-shop-page .catalog__toolbar select { border-radius: 0; color: var(--ink); font-family: var(--sans); font-size: 0.85rem; font-weight: 750; height: 46px; letter-spacing: 0; line-height: 1.3; max-width: none; padding: 0.45rem 1.3rem 0.45rem 0.2rem; text-transform: none; width: 100%; }
  .dr-shop-page .catalog__sidebar:target { display: block; margin-bottom: 1.5rem; position: static; }
  .dr-shop-page .catalog__sidebar:target .catalog-note { display: none; }
  .dr-shop-page .drb-cf-active a { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .dr-shop-page .drb-cf-tile { transition: none; }
}
