/* Panel de categorías compartido por home y tienda. */
body.store-category-open { overflow: hidden; }
.store-category-backdrop[hidden] { display: none; }
.store-category-backdrop {
  position: fixed;
  inset: 0;
  z-index: 129;
  background: rgba(5, 8, 11, .48);
  opacity: 0;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  transition: opacity .28s ease;
}

.store-category-backdrop.is-open { opacity: 1; }

.store-category-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 130;
  width: min(410px, calc(100vw - 28px));
  overflow-y: auto;
  background: #fff;
  box-shadow: 24px 0 70px rgba(0, 0, 0, .2);
  transform: translateX(-105%);
  visibility: hidden;
  transition: transform .34s cubic-bezier(.22, 1, .36, 1), visibility .34s;
}

.store-category-drawer.is-open {
  visibility: visible;
  transform: translateX(0);
}

.store-category-drawer-header {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border-bottom: 1px solid #e6eaed;
}

.store-category-drawer-header a { display: block; width: 152px; }
.store-category-drawer-header img { display: block; width: 100%; height: auto; transform: scale(var(--store-front-menu-logo-scale, 1)); transform-origin: left center; }

.store-category-drawer-header button {
  appearance: none;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid #d8e0e5;
  border-radius: 50%;
  color: #101114;
  background: #fff;
  cursor: pointer;
}

.store-category-drawer-header svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.store-category-drawer-body { padding: 38px 24px 32px; }
.store-category-eyebrow { margin: 0 0 7px; color: #009db4; font-size: .68rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }

.store-category-drawer-body h2 {
  margin: 0 0 28px;
  color: #101114;
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: 2.3rem;
  letter-spacing: -.055em;
  line-height: 1;
}

.store-category-drawer nav { display: grid; gap: 8px; }

.store-category-group { display: grid; gap: 6px; }

.store-category-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.store-category-group.has-children .store-category-entry {
  grid-template-columns: minmax(0, 1fr) 52px;
}

.store-category-drawer nav button,
.store-category-drawer nav a.store-category-option {
  appearance: none;
  text-decoration: none;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #26313a;
  background: #f6f8f9;
  font: 800 .94rem/1.2 Arial, Helvetica, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.store-category-drawer nav .store-category-option:hover,
.store-category-drawer nav .store-category-option.is-active {
  border-color: #abe9f0;
  color: #075f6b;
  background: #edfbfd;
}

.store-category-drawer nav .store-category-option strong {
  min-width: 28px;
  padding: 5px 7px;
  border-radius: 999px;
  color: #63717d;
  background: #fff;
  font-size: .72rem;
  text-align: center;
}

.store-category-drawer nav .store-category-toggle {
  justify-content: center;
  gap: 0;
  padding: 0;
  color: #26313a;
  background: #f6f8f9;
  border-color: transparent;
}

.store-category-drawer nav .store-category-toggle:hover,
.store-category-drawer nav .store-category-toggle[aria-expanded="true"] {
  color: #075f6b;
  background: #edfbfd;
  border-color: #abe9f0;
}

.store-category-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}

.store-category-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.store-subcategory-list {
  position: relative;
  display: grid;
  gap: 6px;
  margin: 1px 0 5px 19px;
  padding-left: 15px;
}

.store-subcategory-list::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #21cce1, #b8eef4);
  content: "";
}

.store-subcategory-list[hidden] { display: none; }

.store-classic-home { margin: 0 0 25px; padding: 0 0 25px; border-bottom: 1px solid #dce4e8; }
.store-classic-home-link + .store-classic-home-link { margin-top: 7px; }
.store-classic-home-link { min-height: 54px; display: flex; align-items: center; gap: 12px; padding: 12px 15px; color: #26313a; background: #f6f8f9; border: 1px solid transparent; border-radius: 8px; font-size: .92rem; font-weight: 800; text-decoration: none; transition: border-color .2s ease, color .2s ease, background-color .2s ease; }
.store-classic-home-link:hover { color: #075f6b; background: #edfbfd; border-color: #abe9f0; }
.store-classic-home-link svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.store-category-catalogs { margin: 0 0 30px; padding: 0 0 25px; border-bottom: 1px solid #dce4e8; }
.store-category-catalogs > p { margin: 0 0 12px; color: #009db4; font-size: .68rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.store-category-catalogs > div { display: grid; gap: 7px; }
.store-category-catalogs a { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 15px; color: #26313a; background: #f6f8f9; border: 1px solid transparent; border-radius: 8px; font-size: .92rem; font-weight: 800; text-decoration: none; transition: border-color .2s ease, color .2s ease, background-color .2s ease; }
.store-category-catalogs a:hover { color: #075f6b; background: #edfbfd; border-color: #abe9f0; }
.store-category-catalogs a svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }


@media (prefers-reduced-motion: reduce) {
  .store-category-drawer, .store-category-backdrop { transition: none; }
}

.store-category-drawer nav .store-subcategory-option {
  min-height: 48px;
  padding-block: 10px;
  background: #fff;
  border-color: #e6edf0;
  font-size: .88rem;
}

.store-category-drawer :is(a, button):focus-visible {
  outline: 3px solid rgba(0, 198, 221, .27);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .store-category-drawer-header { min-height: 82px; padding: 16px 18px; }
  .store-category-drawer-header a { width: 132px; }
  .store-category-drawer-body { padding: 30px 18px; }
}

/* Fotos opcionales de categorías, compartidas por el menú y el panel de Tienda. */
.store-category-drawer nav .store-category-thumb {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  overflow: hidden;
  place-items: center;
  border: 1px solid #d9e4e8;
  border-radius: 11px;
  color: #008da1;
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .05);
}
.store-category-drawer nav .store-category-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.store-category-drawer nav .store-category-thumb svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.store-category-drawer nav .store-category-option-label {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}
.store-category-drawer nav .store-category-option strong { flex: 0 0 auto; }
.store-category-drawer nav .store-subcategory-option .store-category-thumb {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 10px;
}
