/* Interaction, accessibility, and responsive fixes shared by both storefront pages. */
:root { --nav-height: 80px; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--nav-height) + 20px); }
[id] { scroll-margin-top: 18px; }
.fade-in { opacity: 1; transform: none; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 20000; transform: translateY(-180%); padding: 12px 20px; background: var(--espresso); color: white; border-radius: 10px; font-weight: 700; }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid #75412d; outline-offset: 4px; }
button, input, select { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
.nav-mobile-toggle, .modal-close, .mobile-menu-close { min-width: 44px; min-height: 44px; }
.nav-mobile-overlay:not(.active), .modal-overlay:not(.active), .admin-modal-overlay:not(.active) { visibility: hidden; }
.nav-mobile-overlay { padding: 80px 24px 28px; justify-content: flex-start; overflow-y: auto; overscroll-behavior: contain; gap: 20px; }
.nav-mobile-links { gap: 10px; width: 100%; }
.nav-mobile-links a { display: block; padding: 6px 12px; font-size: 1.4rem; min-height: 44px; text-align: center; }
.nav-mobile-brand { margin-top: 4px; }
.mobile-menu-close { position: absolute; right: 5%; top: 16px; border: 1px solid var(--terracotta); border-radius: 24px; padding: 8px 16px; color: var(--espresso); background: white; cursor: pointer; font-weight: 700; }
.hero-order-note, .catalog-intro-note, .modal-order-note { font-size: .94rem; line-height: 1.6; color: #665346; }
.hero-order-note { margin-top: 18px; max-width: 520px; }
.catalog-intro-note { max-width: 780px; margin: 0 0 20px; }
.catalog-shortcuts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.catalog-shortcuts a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border: 1px solid #cdb3a5; border-radius: 30px; color: var(--terracotta); background: white; text-decoration: none; font-size: .9rem; font-weight: 700; }
.catalog-shortcuts a:hover { background: var(--latte); }
.product-details-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; margin-bottom: 14px; border: 1px solid #cdb3a5; border-radius: 24px; background: transparent; color: var(--terracotta); font-weight: 700; font-size: .88rem; cursor: pointer; }
.product-details-btn:hover { background: var(--latte); }
.card-product-footer, .card-gym-footer, .card-cat-footer { flex-wrap: wrap; gap: 12px; }
.card-gym-img { height: 340px; aspect-ratio: auto; object-fit: contain; }
.card-product-btn, .card-gym-btn, .card-cat-btn { min-height: 44px; justify-content: center; text-align: center; }
.card-product-price, .card-gym-price, .card-cat-price { white-space: nowrap; }
.card-product-price span, .card-gym-price span, .card-cat-price span { opacity: .85 !important; }
.catalog-sub-label { opacity: 1; }
.card-product-desc, .card-gym-desc, .card-cat-desc, .modal-desc { opacity: 1; color: #665346; }
.gym-carousel { scrollbar-width: thin; scrollbar-color: var(--terracotta) var(--latte); padding-bottom: 14px; }
.gym-carousel::-webkit-scrollbar { display: block; height: 7px; }
.gym-carousel-status { margin: 8px 60px; text-align: center; color: #665346; font-size: .87rem; }
.gym-nav:disabled { opacity: .4; cursor: default; box-shadow: none; }
.gym-nav { font-size: 1.4rem; color: var(--espresso); }
.modal-box { display: block; max-height: calc(100dvh - 40px); overflow: hidden; }
.modal-scroll { display: grid; grid-template-columns: 1.1fr 1fr; max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; }
.modal-img-side { min-height: 0; display: flex; flex-direction: column; background: #f8f6f2; }
.modal-img { object-fit: contain; width: 100%; height: 420px; padding: 16px; }
.modal-content-side { overflow-y: visible; min-width: 0; padding-top: 58px; }
.modal-title { overflow-wrap: anywhere; }
.modal-wa-btn { min-height: 48px; padding: 14px 22px; text-align: center; justify-content: center; }
.modal-order-note { margin-top: 14px; }
.modal-close { font-size: 1.8rem; color: var(--espresso); }
.modal-gallery { display: flex; gap: 10px; padding: 0 16px 16px; flex-wrap: wrap; }
.modal-gallery button { border: 2px solid transparent; background: white; border-radius: 10px; padding: 4px; cursor: pointer; width: 68px; height: 68px; }
.modal-gallery button[aria-pressed="true"] { border-color: var(--terracotta); }
.modal-gallery img { width: 100%; height: 100%; object-fit: contain; }
.footer-col-title, .footer-copyright { color: #c6b4a8; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; color: #e1d4ca; }
.footer-links { gap: 4px; }
.wa-float { z-index: 90; bottom: max(20px, env(safe-area-inset-bottom)); }
.admin-modal-overlay { padding: 20px; }
.admin-modal-box { max-height: calc(100dvh - 40px); overflow-y: auto; }
@media (max-width: 1200px) {
  .nav { padding: 12px 5%; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-cta { margin-left: auto; margin-right: 12px; font-size: .85rem; padding: 10px 18px; }
}
@media (max-width: 900px) {
  .hero-order-note { margin-left: auto; margin-right: auto; }
  .card-gym-img { height: 280px; }
  .gym-carousel-wrap { padding-bottom: 52px; }
  .gym-nav { display: flex; top: auto; bottom: 0; transform: none; width: 44px; height: 44px; }
  .gym-nav-prev { left: 0; }
  .gym-nav-next { right: 0; }
  .gym-carousel-status { position: absolute; bottom: 12px; left: 48px; right: 48px; margin: 0; }
  .modal-overlay { padding: 12px; }
  .modal-box, .modal-scroll { max-height: calc(100dvh - 24px); }
  .modal-scroll { display: block; }
  .modal-img-side { min-height: 0; max-height: none; }
  .modal-img { height: min(36dvh, 290px); min-height: 150px; }
  .modal-content-side { padding: 24px; }
  .modal-desc { margin-bottom: 20px; }
  .modal-wa-btn { width: 100%; }
  .modal-gallery button { width: 54px; height: 54px; }
}
@media (max-width: 380px) {
  .nav-cta { font-size: .76rem; padding: 10px 12px; margin-right: 4px; }
  .nav-logo-img { max-width: 80px; }
  .catalog-shortcuts a { flex: 1 1 45%; justify-content: center; padding: 10px; }
  .modal-content-side { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html, .gym-carousel { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade-in { opacity: 1 !important; transform: none !important; }
}
