/* Mobile art direction shared by every public page. */
@media (max-width: 767px) {
  :root { --mobile-header: 76px; }
  html { scroll-padding-top: var(--mobile-header); }
  body { min-width: 0; overflow-x: hidden; }
  button, input, select, textarea { font-size: 16px; }

  .global-site-header { height: var(--mobile-header); min-height: var(--mobile-header); }
  .global-header-inner { height: var(--mobile-header); flex-wrap: nowrap; gap: 5px; padding: 0 12px; }
  .global-brand { gap: 7px; min-width: 0; font-size: clamp(18px, 5.5vw, 22px); letter-spacing: -1.25px; }
  .global-brand img { width: 42px; height: 42px; }
  .global-menu-button { position: absolute; top: 17px; right: 8px; order: 0; width: 42px; height: 42px; flex: 0 0 42px; margin: 0; border-radius: 50%; }
  .global-menu-button:active { background: #171a18; }
  .global-actions { position: absolute; top: 17px; right: 56px; order: 0; width: auto; flex: 0 0 auto; gap: 0; }
  .global-search { display: none; }
  .global-icon { width: 38px; height: 42px; }
  .global-icon svg { width: 22px; }
  .global-nav { position: fixed; top: var(--mobile-header); right: 0; left: 0; max-height: calc(100dvh - var(--mobile-header)); overflow-y: auto; gap: 3px; padding: 12px 14px 18px; background: rgba(8,11,9,.98); border-bottom: 1px solid #303530; box-shadow: 0 22px 50px rgba(0,0,0,.46); backdrop-filter: blur(18px); }
  .global-nav a { min-height: 52px; padding: 0 16px; border-radius: 8px; font-size: 15px; }
  .global-nav a:active { background: #151916 !important; }
  .global-nav a.active:after { top: 11px; bottom: 11px; left: 0; }

  .global-site-footer { padding: 0 18px; }
  .global-footer-main { min-height: 0; grid-template-columns: 1fr; gap: 15px; padding: 30px 0 25px; }
  .global-footer-brand { font-size: 21px; }
  .global-footer-main > p { font-size: 13px; line-height: 1.55; }
  .global-footer-main nav { flex-wrap: wrap; gap: 8px 22px; }
  .global-footer-main nav a { min-height: 32px; font-size: 13px; }
  .global-footer-bottom { min-height: 72px; gap: 7px; padding: 14px 0; font-size: 10px; line-height: 1.5; }
  .whatsapp-float { right: 16px; bottom: 16px; }

  /* Home */
  .hero { height: auto; min-height: calc(100svh - var(--mobile-header)); max-height: none; padding-bottom: 0; background-image: linear-gradient(180deg,rgba(3,5,4,.04) 0%,rgba(3,5,4,.12) 30%,#050706 64%,#050706 100%),url("assets/hero-cases-1600.webp"); background-position: 88% top; background-size: auto 58%,auto 58%; background-repeat: no-repeat; }
  .hero::after { background: linear-gradient(90deg,rgba(0,0,0,.42),transparent 75%); }
  .hero-content { width: 100%; min-height: calc(100svh - var(--mobile-header) - 126px); display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(245px,49vh,385px) 20px 28px; }
  .hero-eyebrow { display: none; }
  .hero h1 { max-width: 560px; font-size: clamp(40px,12.2vw,58px); letter-spacing: -2.5px; line-height: .95; }
  .hero-description { max-width: 390px; margin: 16px 0 21px; color: #c8ccc8; font-size: 15px; line-height: 1.5; }
  .hero-cta { width: calc(100% - 72px); height: 52px; font-size: 15px; }
  .hero-features { display: none; }
  .hero-side-note { display: none; }
  .trust-bar { position: relative; height: auto; grid-template-columns: repeat(3,1fr); gap: 0; padding: 13px 10px; background: #0a0d0b; }
  .trust-item,.trust-item:first-child { min-height: 76px; justify-content: center; gap: 7px; padding: 8px 7px; border-top: 0; border-left: 1px solid rgba(255,255,255,.09); text-align: center; }
  .trust-item:first-child { border-left: 0; }
  .trust-item svg { width: 24px; height: 24px; }
  .trust-item div { gap: 0; }
  .trust-item strong { font-size: 10px; line-height: 1.35; }
  .trust-item span { display: none; }

  .featured-products { padding: 43px 16px 53px; }
  .section-heading { align-items: flex-end; margin-bottom: 18px; }
  .section-heading h2 { max-width: 210px; font-size: 27px; line-height: 1.05; }
  .section-heading a { font-size: 12px; text-align: right; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .product-card:only-child { grid-column: 1 / -1; width: 100%; max-width: 340px; justify-self: center; }
  .product-body { padding: 12px 11px; }
  .product-category { font-size: 9px; }
  .product-name { min-height: 39px; font-size: 12px; }
  .product-price { margin: 8px 0 10px; font-size: 16px; }
  .product-button { min-height: 42px; font-size: 11px; }
  .products-status { min-height: 180px; padding: 20px; text-align: center; }
  .brand-values { display: none; }

  /* Store */
  .catalog-shell { width: calc(100% - 24px); padding: 18px 0 60px; }
  .mobile-filter-row { min-height: 46px; margin-bottom: 12px; }
  .mobile-filter-row button { min-height: 44px; padding: 0 16px; font-size: 14px; }
  .mobile-filter-row span { font-size: 12px; }
  .filters-panel { top: var(--mobile-header); bottom: 0; max-height: calc(100dvh - var(--mobile-header)); width: min(360px,92vw); padding: 23px 20px 36px; border-right: 1px solid #343934; }
  .filter-overlay { top: var(--mobile-header); }
  .filter-header h2 { font-size: 24px; }
  .filter-header p { font-size: 11px; }
  .filters-panel fieldset { padding: 8px 0 16px; }
  .filters-panel legend { padding-bottom: 0; font-size: 13px; }
  .filter-options label,.color-options label { min-height: 43px; height: auto; font-size: 14px; }
  .filter-options input,.color-options input { width: 19px; height: 19px; }
  .filter-options small,.color-options small { font-size: 11px; }
  .price-inputs label { font-size: 12px; }
  .price-inputs input { height: 48px; font-size: 16px; }
  .price-presets button { min-height: 38px; font-size: 13px; }
  .clear-all { min-height: 46px; font-size: 13px; }
  .catalog-results > .hero-search { min-height: 56px; height: auto; margin: 0 0 16px; padding: 5px 6px 5px 15px; }
  .hero-search svg { width: 21px; flex-basis: 21px; }
  .hero-search input { font-size: 16px; }
  .hero-search button { height: 44px; padding: 0 16px; font-size: 13px; }
  .results-toolbar { min-height: 52px; padding-bottom: 13px; }
  .results-toolbar label { width: 100%; display: grid; grid-template-columns: auto minmax(150px,190px); justify-content: space-between; gap: 12px; font-size: 12px; }
  .results-toolbar select { width: 100%; height: 44px; font-size: 14px; }
  .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .catalog-card { min-width: 0; border-radius: 10px; }
  .catalog-card:only-child { grid-column: 1 / -1; width: 100%; max-width: 340px; justify-self: center; }
  .card-color { top: 8px; left: 8px; max-width: calc(100% - 16px); padding: 5px 7px; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  .card-body { padding: 13px 11px 12px; }
  .card-body p { margin-bottom: 5px; font-size: 8px; }
  .card-body h2 { min-height: 38px; margin-bottom: 7px; font-size: 12px; line-height: 1.35; }
  .card-body > strong { margin-bottom: 11px; font-size: 16px; }
  .product-action { height: 42px; gap: 5px; font-size: 11px; }
  .product-action svg { width: 14px; }

  /* Product detail */
  body:has(.product-detail) main { width: calc(100% - 24px); }
  .breadcrumbs { min-height: 48px; height: auto; padding: 10px 0; font-size: 12px; }
  .product-detail { border-radius: 10px; }
  .product-gallery { min-height: 390px; padding: 48px 18px 16px; }
  .product-gallery > img { height: 295px; }
  .category-badge { top: 16px; left: 16px; font-size: 10px; }
  .product-thumbnails { justify-content: flex-start; padding: 12px 2px 2px; scroll-snap-type: x proximity; }
  .product-thumb { width: 60px; height: 60px; flex-basis: 60px; scroll-snap-align: start; }
  .product-info { padding: 29px 19px 25px; }
  .product-info h1 { font-size: clamp(32px,10vw,42px); letter-spacing: -1.8px; }
  .detail-price { margin: 22px 0 16px; font-size: 28px; }
  .description { font-size: 15px; line-height: 1.65; }
  .stock { font-size: 13px; }
  .whatsapp-buy { min-height: 52px; font-size: 15px; }
  .product-benefits p { min-height: 60px; padding: 13px; }
  .product-benefits strong { font-size: 12px; }
  .product-benefits small { font-size: 10px; }
  .related-section { padding: 50px 0 60px; overflow: hidden; }
  .section-title h2 { font-size: 27px; }
  .related-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78vw,285px); gap: 12px; overflow-x: auto; padding-bottom: 9px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .related-grid::-webkit-scrollbar { display: none; }
  .related-card { scroll-snap-align: start; }
  .related-card > div { height: 230px; }
  .related-card h3 { font-size: 14px; }
  .related-card > strong { font-size: 17px; }

  /* Contact */
  .contact-layout { padding: 30px 16px 55px; }
  .contact-details { gap: 10px; }
  .contact-details article { min-height: 112px; padding: 18px; border-radius: 10px; }
  .contact-details .icon { width: 48px; height: 48px; }
  .contact-details strong { font-size: 15px; overflow-wrap: anywhere; }
  .contact-details span { font-size: 11px; }
  .contact-details .whatsapp-button { min-height: 48px; padding: 0 18px; font-size: 14px; }

  /* Account and authentication */
  .auth-view { min-height: calc(100svh - var(--mobile-header)); padding: 30px 14px 45px; }
  .auth-card { width: 100%; padding: 28px 20px; border-radius: 12px; }
  .auth-card h1 { font-size: 34px; letter-spacing: -1.7px; }
  .auth-copy { font-size: 15px; line-height: 1.55; }
  .auth-card label { font-size: 13px; }
  .auth-card input { min-height: 52px; font-size: 16px; }
  .auth-card button[type="submit"] { min-height: 52px; font-size: 15px; }
  .account-app { min-height: calc(100svh - var(--mobile-header)); }
  .account-sidebar { top: var(--mobile-header); height: calc(100dvh - var(--mobile-header)); }
  .account-content { padding: 29px 16px 55px; }
  .account-panel h1 { font-size: 38px; letter-spacing: -2px; }
  .summary-grid { grid-template-columns: 1fr; }
  .profile-form { padding: 20px 16px; }
  .profile-form input { min-height: 52px; font-size: 16px; }
  .orders-list { gap: 12px; }
}

@media (max-width: 370px) {
  .global-header-inner { padding: 0 9px; }
  .global-brand { font-size: 17px; }
  .global-brand img { width: 38px; height: 38px; }
  .global-menu-button { right: 7px; width: 38px; flex-basis: 38px; }
  .global-actions { right: 49px; }
  .global-icon { width: 34px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-image-wrap, .card-image { aspect-ratio: 1.15 / 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-features, .related-grid { scroll-behavior: auto; }
}
