/* MDS 2026-11-29: new category bar (TEST only). Luxury tweaks on top of redesign.css.
   Does not change product grid, prices, cart, checkout or payment. */

/* Fit 9 items (incl. Todas + Marcas) with a little more room for longer labels. */
.mds-cats-inner { gap: 0 2px; }
.mds-cat > a { letter-spacing: 0.06em; padding: 0 5px; }
.mds-cat > a::after { left: 5px; right: 5px; }

.mds-cat-todas > a { gap: 8px; }
.mds-cat-todas-icon { display: block; flex-shrink: 0; }

/* Desktop: do not set overflow on .mds-cats — overflow-x:auto would also
   clip the mega menus (CSS treats the other axis as auto). 9 items fit
   at 1280; mid widths already tighten letter-spacing. */
@media only screen and (min-width: 901px) {
  .mds-cats { overflow: visible; }
}

@media only screen and (max-width: 1100px) and (min-width: 901px) {
  .mds-cat > a { letter-spacing: 0.04em; font-size: 10px; padding: 0 4px; }
}

/* Phone: a swipeable bar is always visible. The hamburger opens the same
   nav as a vertical accordion with dropdowns (see mds-catbar.js). */
@media only screen and (max-width: 900px) {
  .mds-cats {
    display: block !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid #E8E6E3;
    background: #FFFFFF;
  }
  .mds-cats-inner {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    min-width: max-content;
    width: max-content;
    padding: 0 12px !important;
  }
  .mds-cat > a {
    height: 44px;
    font-size: 12px;
    letter-spacing: 0.06em;
    padding: 0 12px;
    border-bottom: 0 !important;
  }
  .mds-cat > a::after { display: none; }
  .mds-cats .mds-drop { display: none !important; }

  .mds-header.is-open .mds-cats {
    overflow: visible;
    -webkit-overflow-scrolling: auto;
  }
  .mds-header.is-open .mds-cats-inner {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    min-width: 0;
    width: auto;
    padding: 8px 16px 16px !important;
  }
  .mds-header.is-open .mds-cat > a {
    border-bottom: 1px solid #E8E6E3 !important;
    padding: 0 4px;
  }
  .mds-header.is-open .mds-cats .mds-drop {
    display: none !important;
    position: static;
    border: 0;
    box-shadow: none;
    padding: 0 0 8px 12px;
  }
  .mds-header.is-open .mds-cat.is-open > .mds-drop { display: block !important; }
}

/* ---- category directory + Envelhecimento hub ---- */
.mds-hub {
  max-width: 1120px;
  margin: 0 auto 64px;
  padding: 8px 24px 40px;
  box-sizing: border-box;
}
.mds-hub-title {
  font-family: Outfit, "Helvetica Neue", Arial, sans-serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #1A1A1A;
  margin: 8px 0 12px;
}
.mds-hub-lead {
  font-family: Outfit, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: #5A5A5A;
  max-width: 640px;
  margin: 0 0 36px;
}
.mds-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.mds-hub-grid.mds-hub-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mds-hub-card {
  display: block;
  background: #FFFFFF;
  border: 1px solid #E8E6E3;
  padding: 28px 22px 24px;
  text-decoration: none !important;
  color: #1A1A1A !important;
  min-height: 120px;
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mds-hub-card:hover {
  border-color: #C4A574;
  box-shadow: 0 8px 24px rgba(26,26,26,0.06);
  color: #1A1A1A !important;
}
.mds-hub-card h2,
.mds-hub-card .mds-hub-card-title {
  font-family: Outfit, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  color: #1A1A1A;
}
.mds-hub-card p {
  font-family: Outfit, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.45;
  color: #5A5A5A;
  margin: 0;
}
.mds-hub-section {
  margin: 8px 0 36px;
}
.mds-hub-section h2 {
  font-family: Outfit, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2F4A43;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E8E6E3;
}
@media only screen and (max-width: 900px) {
  .mds-hub { padding: 4px 16px 32px; }
  .mds-hub-title { font-size: 26px; }
  .mds-hub-grid,
  .mds-hub-grid.mds-hub-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media only screen and (max-width: 420px) {
  .mds-hub-grid,
  .mds-hub-grid.mds-hub-grid-5 { grid-template-columns: 1fr; }
}

/* Todas mega: the shared 8-item 2-column rule overlaps long names in this panel. */
.mds-mega-todas .mds-mega-col ul:has(> li:nth-child(8)) { columns: 1; column-gap: 0; }
