/* Navegação por rituais, com submenus nativos acessíveis por teclado. */
.header { gap: 24px; }
.header #store-navigation { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.nav-group { position: relative; }
.nav-group summary { cursor: pointer; list-style: none; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: "+"; margin-left: 9px; }
.nav-group[open] > summary::after { content: "−"; }
.nav-group summary { padding: 32px 0; }
.nav-submenu { position: absolute; top: 100%; left: 0; min-width: 210px; padding: 10px; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 14px 30px #24221f12; z-index: 12; }
.header #store-navigation .nav-submenu a { display: block; padding: 13px 12px; border: 0; font-size: 13px; text-transform: none; letter-spacing: .02em; }
.nav-submenu a:hover { background: var(--cream); }
summary:focus-visible, .mobile-menu:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.catalog { scroll-margin-top: 110px; }
@media (max-width: 1100px) {
  .header { grid-template-columns: auto 1fr auto; height: 78px; gap: 16px; }
  .header .mobile-menu { display: block; padding: 10px; font-size: 24px; cursor: pointer; color: var(--ink); }
  .header #store-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 100px); overflow-y: auto; padding: 12px 5vw 24px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px #24221f12; }
  .header #store-navigation.is-open { display: block; }
  .header #store-navigation > a, .nav-group summary { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav-group summary::after { float: right; }
  .nav-submenu { position: static; box-shadow: none; border: 0; padding: 4px 12px 12px; }
  .header .orders-link { display: none; }
}
@media (max-width: 750px) {
  .header { padding: 0 3vw; gap: 8px; }
  .header .brand { font-size: 19px; }
  .header-actions { gap: 8px; }
  .header .session-menu .account-link { font-size: 0; display: inline-block; }
  .header .session-menu .account-link::before { content: "Conta"; font-size: 10px; }
  .header .cart-button { font-size: 10px; padding: 0; }
  .header .cart-button span { margin-left: 2px; }
}
@media (max-width: 380px) {
  .header .brand { font-size: 16px; }
  .header .brand small { font-size: 7px; }
  .header .mobile-menu { padding: 6px; }
}
@media (max-width: 750px) {
  .header > .brand { font-size: 19px; }
  .header > .brand small { font-size: 8px; }
  .header > .header-actions { min-width: 0; }
}
@media (max-width: 380px) {
  .header > .brand { font-size: 16px; }
  .header > .brand small { font-size: 7px; }
}
/* A vitrine mantém as oito imagens originais em uma faixa deslizante. */
.showcase-carousel { position: relative; }
.carousel-controls { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.carousel-controls button {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #fff9;
  border-radius: 50%;
  background: rgba(247, 244, 238, .94);
  box-shadow: 0 6px 22px #24221f38;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  transform: translateY(-50%);
  transition: background .2s, transform .2s;
}
.carousel-controls button[data-carousel="previous"] { left: 14px; }
.carousel-controls button[data-carousel="next"] { right: 14px; }
.carousel-controls button:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.categories .showcase-track {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.categories .showcase-track::-webkit-scrollbar { display: none; width: 0; height: 0; }
.categories .showcase-track .category-card { flex: 0 0 calc((100% - 40px) / 3); min-height: 480px; scroll-snap-align: start; }
.showcase-track:focus-visible, .carousel-controls button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 900px) {
  .categories .showcase-track .category-card { flex-basis: calc((100% - 20px) / 2); min-height: 440px; }
}
@media (max-width: 600px) {
  .carousel-controls button { width: 42px; height: 42px; font-size: 19px; }
  .carousel-controls button[data-carousel="previous"] { left: 8px; }
  .carousel-controls button[data-carousel="next"] { right: 8px; }
  .categories .showcase-track .category-card { flex-basis: 88%; min-height: 420px; }
  .showcase-track .category-card span { left: 24px; bottom: 24px; }
  .showcase-track .category-card strong { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { .showcase-track .category-card img { transition: none; } }
