/* ==========================================================================
   AFROW® Streetwear Brand — Design System Mobile-First (100% Go)
   Base: 360px–639px (Mobile) -> Progressive Enhancement: 640 / 768 / 1024 / 1280
   ========================================================================== */

:root {
  --red: #e3182d;
  --red-hover: #c81427;
  --red-scroll: rgba(227, 24, 45, 0.30);
  --red-scroll-hover: rgba(227, 24, 45, 0.65);
  --black: #000000;
  --surface: #0a0a0a;
  --surface-2: #121212;
  --white: #f5f5f5;
  --gray: #6b6b6b;
  --gray-light: #9a9a9a;
  --border: rgba(255, 255, 255, 0.11);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
  color: var(--white);
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  overflow-x: clip;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* ==========================================================================
   REGRA ESTRITA DE SCROLLBARS — MOBILE INVISÍVEL / DESKTOP 3PX TRANSPARENTE
   ========================================================================== */

/* Mobile & Touch: 100% invisível mantendo rolagem funcional e suave */
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  *,
  html,
  body {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    -webkit-overflow-scrolling: touch;
  }

  *::-webkit-scrollbar,
  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
  }
}

/* Desktop (telas >= 768px com ponteiro fino): máximo 3px, trilho transparente, thumb #E3182D 30% */
@media (min-width: 768px) and (pointer: fine) {
  *,
  html,
  body {
    scrollbar-width: thin;
    scrollbar-color: rgba(227, 24, 45, 0.30) transparent;
  }

  *::-webkit-scrollbar,
  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    width: 3px !important;
    height: 3px !important;
  }

  *::-webkit-scrollbar-track,
  html::-webkit-scrollbar-track,
  body::-webkit-scrollbar-track,
  *::-webkit-scrollbar-corner,
  html::-webkit-scrollbar-corner,
  body::-webkit-scrollbar-corner {
    background: transparent !important;
  }

  *::-webkit-scrollbar-thumb,
  html::-webkit-scrollbar-thumb,
  body::-webkit-scrollbar-thumb {
    background-color: rgba(227, 24, 45, 0.30) !important;
    border-radius: 9999px !important;
  }

  *::-webkit-scrollbar-thumb:hover,
  html::-webkit-scrollbar-thumb:hover,
  body::-webkit-scrollbar-thumb:hover {
    background-color: rgba(227, 24, 45, 0.65) !important;
  }
}

/* ==========================================================================
   LAYOUT BASE (MOBILE-FIRST: 360px+)
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.grid-bg {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}

.noise-bg {
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Top bar & Header */
.top-bar {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.brand:hover img {
  transform: scale(1.08);
}

.brand-name {
  font-size: 18px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand-name span {
  color: var(--red);
}

.brand-sub {
  display: block;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--gray);
  margin-top: 2px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-only {
  display: none !important;
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--surface);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(310px, 86vw);
  z-index: 65;
  background: #070707;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f5f5f5;
}

.mobile-nav-link:active,
.mobile-nav-link:hover {
  background: rgba(227, 24, 45, 0.12);
  color: #fff;
}

/* Botões com área de toque mínima 44px */
.btn-outline-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--surface);
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-outline-sm:hover {
  border-color: var(--red);
  color: #fff;
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  padding: 13px 22px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--red-hover);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 13px 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: #fff;
  background: #121212;
}

/* ==========================================================================
   HERO MOBILE-FIRST
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: 28px 0 42px;
}

.hero-glow-1 {
  position: absolute;
  top: -100px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(227, 24, 45, 0.22);
  filter: blur(100px);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: -60px;
  left: 10%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(227, 24, 45, 0.1);
  filter: blur(90px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(227, 24, 45, 0.55);
  background: rgba(227, 24, 45, 0.1);
  color: var(--red);
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-title {
  margin: 16px 0 0;
  font-size: clamp(36px, 10.5vw, 76px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero-title span {
  display: block;
  color: var(--red);
}

.hero-sub {
  margin: 16px 0 0;
  max-width: 560px;
  font-size: 13px;
  line-height: 1.65;
  color: #a3a3a3;
}

.hero-ctas {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.hero-stats {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hero-stats strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
}

.hero-stats strong.red {
  color: var(--red);
}

.hero-stats span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  display: block;
  margin-top: 2px;
}

.hero-visual {
  position: relative;
}

.hero-frame {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--surface);
  overflow: hidden;
}

.hero-frame img.main-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.55) 65%, transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-float-card {
  display: none;
  position: absolute;
  top: -16px;
  right: -16px;
  width: 168px;
  background: #000;
  border: 1px solid rgba(227, 24, 45, 0.7);
  padding: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.hero-float-card img {
  width: 100%;
  height: 76px;
  object-fit: cover;
}

.hero-float-card p {
  margin: 6px 0 0;
  text-align: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Marquee */
.marquee-wrap {
  overflow: hidden;
  background: var(--red);
  color: #fff;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: afrow-marquee 26s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-track span {
  white-space: nowrap;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-right: 16px;
}

@keyframes afrow-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Seções e Vitrine */
.section {
  padding: 48px 0;
}

.section-dark {
  background: #050505;
  border-top: 1px solid var(--border);
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}

.kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 6px;
}

.section-title {
  margin: 0;
  font-size: clamp(24px, 6.5vw, 44px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.product-card {
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}

.product-card:hover {
  border-color: rgba(227, 24, 45, 0.75);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #000;
  display: block;
}

.product-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.product-media img.hover-img {
  opacity: 0;
}

.product-card:hover .product-media img.base-img {
  opacity: 0;
  transform: scale(1.04);
}

.product-card:hover .product-media img.hover-img {
  opacity: 1;
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quick-bar {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  padding: 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.82) 78%, transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  opacity: 1;
}

.size-pills {
  display: flex;
  gap: 4px;
}

.size-pill {
  min-width: 36px;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.size-pill.active,
.size-pill:hover {
  border-color: var(--red);
  background: var(--red);
}

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.product-title {
  margin: 6px 0 4px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.product-sub {
  margin: 0;
  font-size: 12px;
  color: var(--gray);
}

.product-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.price-old {
  display: block;
  font-size: 11px;
  color: var(--gray);
  text-decoration: line-through;
}

.price-now {
  font-size: 21px;
  font-weight: 900;
}

/* Qualidade & Comparativo */
.toggle-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #000;
  padding: 4px;
}

.toggle-tab {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.toggle-tab.active {
  background: var(--red);
  color: #fff;
}

.quality-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.quality-compare-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}

.quality-cards-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

.tech-card {
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.tech-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.tech-card-body {
  padding: 14px;
}

/* Manifesto & Lookbook */
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.pilar-item {
  display: flex;
  gap: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 14px;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}

.pilar-item:hover {
  border-color: rgba(227, 24, 45, 0.65);
}

.pilar-num {
  color: var(--red);
  font-weight: 900;
  font-size: 14px;
}

.lookbook-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lookbook-tall {
  grid-column: span 2;
}

.lookbook-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  background: var(--surface);
}

.lookbook-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Produto Detalhe */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 22px;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.option-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.option-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

/* Checkout */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 24px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.pay-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

/* Cart Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 430px;
  z-index: 61;
  background: #080808;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.cart-drawer.open {
  transform: translateX(0);
}

/* Formulários / Cards */
.card-box {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 18px;
}

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 6px;
}

.field-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #000;
  color: #fff;
  padding: 10px 13px;
  font-size: 14px;
  outline: none;
}

.field-input:focus {
  border-color: var(--red);
}

/* ==========================================================================
   PAINEL ADMINISTRATIVO MOBILE-FIRST
   ========================================================================== */

.admin-header-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0;
}

.admin-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.admin-tabs-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  width: 100%;
}

.admin-tabs-bar .adm-tab {
  min-height: 44px;
  padding: 8px 10px;
  font-size: 10px;
}

.adm-kpis {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.adm-dash-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}

.adm-prod-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.adm-prod-table-wrap {
  display: none;
}

.adm-prod-cards-mobile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Toast */
.afrow-toast {
  position: fixed;
  left: 16px;
  right: 16px;
  top: 14px;
  z-index: 90;
  background: #0d0d0d;
  border: 1px solid var(--red);
  color: #fff;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.25s;
}

.afrow-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #050505;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.vip-form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   BREAKPOINT SM: >= 640px (Phablets / Mobile Landscape)
   ========================================================================== */
@media (min-width: 640px) {
  .container {
    padding: 0 20px;
  }
  .top-bar {
    font-size: 10px;
    letter-spacing: 0.18em;
  }
  .hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .option-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
  .form-span-2 {
    grid-column: span 2;
  }
  .pay-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .adm-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .adm-prod-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .vip-form-row {
    flex-direction: row;
    gap: 0;
  }
  .afrow-toast {
    right: auto;
    max-width: 380px;
  }
  .toggle-tabs {
    width: auto;
    display: inline-flex;
  }
}

/* ==========================================================================
   BREAKPOINT MD: >= 768px (Tablets)
   ========================================================================== */
@media (min-width: 768px) {
  .section {
    padding: 68px 0;
  }
  .section-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .quality-compare-box {
    grid-template-columns: 1.4fr 1fr;
  }
  .quality-cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-thumbs {
    grid-template-columns: repeat(7, 1fr);
  }
  .lookbook-tall {
    grid-column: span 1;
    grid-row: span 2;
  }
  .footer-grid {
    grid-template-columns: 1.3fr 0.8fr 1.1fr;
  }
  .adm-prod-table-wrap {
    display: block;
  }
  .adm-prod-cards-mobile {
    display: none;
  }
  .card-box {
    padding: 24px;
  }
}

/* ==========================================================================
   BREAKPOINT LG: >= 1024px (Desktop)
   ========================================================================== */
@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none !important;
  }
  .desktop-only {
    display: inline-flex !important;
  }
  .nav-links {
    display: flex;
  }
  .brand-name {
    font-size: 21px;
  }
  .brand img {
    width: 38px;
    height: 38px;
  }
  .hero {
    padding: 52px 0 68px;
  }
  .hero-grid {
    grid-template-columns: 1.22fr 0.95fr;
    gap: 48px;
  }
  .hero-float-card {
    display: block;
  }
  .hero-stats strong {
    font-size: 19px;
  }
  .hero-sub {
    font-size: 15px;
  }
  .quick-bar {
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.25s ease;
  }
  .product-card:hover .quick-bar {
    opacity: 1;
    transform: translateY(0);
  }
  .quality-grid {
    grid-template-columns: 5fr 7fr;
    gap: 28px;
  }
  .manifesto-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .product-detail-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
  }
  .checkout-grid {
    grid-template-columns: 1.25fr 0.85fr;
    gap: 30px;
  }
  .admin-header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
  }
  .admin-header-top {
    width: auto;
  }
  .admin-tabs-bar {
    display: flex;
    width: auto;
    overflow: visible;
  }
  .adm-kpis {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .adm-dash-grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 20px;
  }
  .adm-prod-form-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ==========================================================================
   BREAKPOINT XL: >= 1280px (Desktop Largo / Ultrawide)
   ========================================================================== */
@media (min-width: 1280px) {
  .products-grid {
    gap: 32px;
  }
  .section {
    padding: 84px 0;
  }
}

/* ==========================================================================
   V2: SELETOR DE IDIOMA/MOEDA, MODAIS PROPRIETÁRIOS, LIGHTBOX & GRÁFICOS
   ========================================================================== */

.locale-bar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.locale-select {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--surface);
  color: #fff;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
}

.locale-select:focus,
.locale-select:hover {
  border-color: var(--red);
}

/* Modais Proprietários AFROW */
.afrow-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.afrow-modal-backdrop.open {
  display: flex;
  animation: afrow-fade-in 0.2s ease;
}

.afrow-modal-box {
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid var(--red);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.9);
  animation: afrow-slide-up 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.afrow-modal-box.sm {
  max-width: 460px;
}

.afrow-modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0a0a0a;
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.afrow-modal-body {
  padding: 20px;
}

.afrow-modal-close {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #000;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.afrow-modal-close:hover {
  border-color: var(--red);
  color: var(--red);
}

@keyframes afrow-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes afrow-slide-up {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Gráficos Dashboard Admin */
.chart-bars-7d {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: end;
  height: 190px;
  padding-top: 24px;
}

.chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 6px;
}

.chart-bar-track {
  width: 100%;
  max-width: 40px;
  height: 128px;
  background: #141414;
  display: flex;
  align-items: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.chart-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, #e3182d 0%, rgba(227, 24, 45, 0.45) 100%);
  transition: height 0.35s ease;
  min-height: 4px;
}

/* Estúdio CMS sub-abas */
.studio-subtabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}

@media (min-width: 768px) {
  .studio-subtabs {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .studio-subtabs {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Lookbook Editorial Grid */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .editorial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .editorial-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* ==========================================================================
   V3: PWA SAFE-AREA (iOS NOTCH / DYNAMIC ISLAND) & STANDALONE MODE
   ========================================================================== */
.top-bar {
  padding-top: max(8px, env(safe-area-inset-top));
}

.site-footer {
  padding-bottom: max(28px, env(safe-area-inset-bottom));
}

.cart-drawer,
.mobile-nav-drawer {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

@media (display-mode: standalone) {
  .pwa-install-trigger {
    display: none !important;
  }
}


