/* ============================================
   TRAJE. ESPORTE & FIT — Design System
   Paleta: Vermelho #E31B23 + Branco + Preto
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Variables --- */
:root {
  --red: #E31B23;
  --red-dark: #b8151b;
  --red-light: #ff3b42;
  --black: #0a0a0a;
  --dark: #111111;
  --dark-2: #1a1a1a;
  --gray: #888888;
  --gray-light: #e5e5e5;
  --gray-bg: #f5f5f5;
  --white: #ffffff;
  --pink: #d9a1bc;
  --pink-dark: #c48aa8;
  --pink-light: #f0d4e3;
  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.18);
  --radius: 8px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --header-h: 70px;
  --topbar-h: 38px;
}

/* --- Reset --- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  font-family: var(--font-secondary);
  color: var(--black);
  background: var(--white);
  line-height:1.6;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
a { text-decoration:none; color:inherit; transition: color var(--transition); }
ul, ol { list-style:none; }
img { max-width:100%; height:auto; display:block; }
button { cursor:pointer; border:none; background:none; font-family:inherit; }
input, select { font-family:inherit; }

/* --- Utility --- */
.container { max-width:1280px; margin:0 auto; padding:0 24px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* ============ TOP BAR ============ */
.topbar {
  background: var(--red);
  height: var(--topbar-h);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden; position:relative; z-index:1001;
}
.topbar__track {
  display:flex; gap:60px;
  animation: topbarScroll 20s linear infinite;
  white-space:nowrap;
}
.topbar__item {
  font-family: var(--font-secondary);
  font-size:.75rem; font-weight:600;
  color: var(--white);
  letter-spacing:.06em; text-transform:uppercase;
}
@keyframes topbarScroll {
  0% { transform:translateX(0); }
  100% { transform:translateX(-50%); }
}

/* ============ HEADER ============ */
.header {
  position:sticky; top:0; z-index:1000;
  background: var(--white);
  height: var(--header-h);
  border-bottom:1px solid var(--gray-light);
  transition: box-shadow var(--transition), background var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header__inner {
  max-width:1380px; margin:0 auto; padding:0 24px;
  display:flex; align-items:center; justify-content:space-between;
  height:100%;
}
.header__logo img { height:36px; width:auto; }
.header__nav { display:flex; gap:32px; }
.header__nav a {
  font-family: var(--font-primary);
  font-size:.85rem; font-weight:600;
  text-transform:uppercase; letter-spacing:.08em;
  color: var(--black); position:relative; padding:4px 0;
}
.header__nav a::after {
  content:''; position:absolute; bottom:-2px; left:0;
  width:0; height:2px; background:var(--red);
  transition: width var(--transition);
}
.header__nav a:hover::after, .header__nav a.active::after { width:100%; }
.header__nav a:hover { color:var(--red); }
.header__actions { display:flex; align-items:center; gap:16px; }
.header__actions button, .header__actions a {
  width:40px; height:40px; display:flex; align-items:center; justify-content:center;
  border-radius:50%; transition: background var(--transition);
}
.header__actions button:hover, .header__actions a:hover { background:var(--gray-bg); }
.header__actions svg { width:20px; height:20px; }
.cart-count {
  position:absolute; top:-4px; right:-4px;
  background:var(--red); color:var(--white);
  font-size:.6rem; font-weight:700; width:16px; height:16px;
  border-radius:50%; display:flex; align-items:center; justify-content:center;
}

/* Mobile menu toggle */
.menu-toggle { display:none; flex-direction:column; gap:5px; width:24px; }
.menu-toggle span { width:100%; height:2px; background:var(--black); transition:var(--transition); }

/* ============ HERO ============ */
.hero {
  position:relative; height:85vh; min-height:500px;
  overflow:hidden; display:flex; align-items:center; justify-content:center;
}
.hero__bg {
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  transform:scale(1.05);
  animation: heroZoom 12s ease-in-out infinite alternate;
}
@keyframes heroZoom { 0%{transform:scale(1.05)} 100%{transform:scale(1.12)} }
.hero__overlay {
  position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.3) 50%, rgba(227,27,35,.2) 100%);
}
.hero__content {
  position:relative; z-index:2; text-align:center;
  max-width:700px; padding:0 24px;
}
.hero__tag {
  font-family:var(--font-secondary);
  font-size:.7rem; font-weight:700; letter-spacing:.2em;
  text-transform:uppercase; color:var(--red-light);
  margin-bottom:16px;
}
.hero__title {
  font-family:var(--font-primary);
  font-size:clamp(2.2rem,6vw,4.5rem);
  font-weight:900; color:var(--white);
  line-height:1.05; margin-bottom:12px;
  text-transform:uppercase; letter-spacing:-.02em;
}
.hero__subtitle {
  font-size:1.1rem; color:rgba(255,255,255,.8);
  font-weight:300; margin-bottom:32px;
}
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--font-primary); font-weight:700;
  font-size:.85rem; text-transform:uppercase; letter-spacing:.1em;
  padding:14px 40px; border-radius:4px;
  transition: all var(--transition); position:relative; overflow:hidden;
}
.btn--red {
  background:var(--red); color:var(--white); border:2px solid var(--red);
}
.btn--red:hover { background:var(--red-dark); border-color:var(--red-dark); transform:translateY(-2px); box-shadow:0 6px 20px rgba(227,27,35,.4); }
.btn--outline {
  background:transparent; color:var(--white); border:2px solid var(--white);
}
.btn--outline:hover { background:var(--white); color:var(--black); }
.btn--dark { background:var(--black); color:var(--white); border:2px solid var(--black); }
.btn--dark:hover { background:var(--dark-2); }

/* ============ CATEGORIES GRID ============ */
.categories { padding:60px 0; }
.categories__grid {
  display:grid; grid-template-columns:1fr 1fr; gap:16px;
}
.category-card {
  position:relative; overflow:hidden; border-radius:var(--radius);
  height:400px; cursor:pointer;
}
.category-card img {
  width:100%; height:100%; object-fit:cover;
  transition: transform .6s ease;
}
.category-card:hover img { transform:scale(1.08); }
.category-card__overlay {
  position:absolute; inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:32px;
}
.category-card__title {
  font-family:var(--font-primary);
  font-size:1.8rem; font-weight:800;
  color:var(--white); text-transform:uppercase;
  margin-bottom:8px;
}
.category-card__cta {
  font-size:.8rem; font-weight:600;
  color:var(--red-light); text-transform:uppercase;
  letter-spacing:.1em;
  display:flex; align-items:center; gap:6px;
}
.category-card__cta svg { width:16px; height:16px; transition: transform var(--transition); }
.category-card:hover .category-card__cta svg { transform:translateX(4px); }

/* ============ SECTION TITLES ============ */
.section-title {
  text-align:center; margin-bottom:48px;
}
.section-title__tag {
  font-size:.7rem; font-weight:700; letter-spacing:.2em;
  text-transform:uppercase; color:var(--red);
  margin-bottom:8px;
}
.section-title h2 {
  font-family:var(--font-primary);
  font-size:clamp(1.6rem,4vw,2.8rem);
  font-weight:800; text-transform:uppercase;
  letter-spacing:-.01em; line-height:1.1;
}
.section-title p {
  color:var(--gray); font-size:.95rem; margin-top:8px;
}

/* ============ PRODUCT GRID ============ */
.products { padding:80px 0; }
.products__grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:24px;
}
.product-card {
  background:var(--white); border-radius:var(--radius);
  overflow:hidden; transition: transform var(--transition), box-shadow var(--transition);
  border:1px solid var(--gray-light);
}
.product-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-lg); }
.product-card__img {
  position:relative; overflow:hidden;
  aspect-ratio:3/4; background:var(--gray-bg);
}
.product-card__img img {
  width:100%; height:100%; object-fit:cover;
  transition: transform .5s ease;
}
.product-card:hover .product-card__img img { transform:scale(1.06); }
.product-card__badge {
  position:absolute; top:12px; left:12px;
  background:var(--red); color:var(--white);
  font-size:.65rem; font-weight:700; padding:4px 10px;
  border-radius:3px; text-transform:uppercase; letter-spacing:.05em;
}
.product-card__quick {
  position:absolute; bottom:12px; right:12px;
  background:var(--white); width:40px; height:40px;
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-md); opacity:0;
  transform:translateY(8px); transition:var(--transition);
}
.product-card:hover .product-card__quick { opacity:1; transform:translateY(0); }
.product-card__info { padding:16px 20px 20px; }
.product-card__brand {
  font-size:.65rem; font-weight:700; text-transform:uppercase;
  letter-spacing:.1em; color:var(--gray); margin-bottom:4px;
}
.product-card__name {
  font-family:var(--font-primary);
  font-size:.95rem; font-weight:700;
  margin-bottom:8px; line-height:1.3;
}
.product-card__price {
  display:flex; align-items:baseline; gap:8px;
}
.product-card__price .current {
  font-family:var(--font-primary);
  font-size:1.15rem; font-weight:800; color:var(--red);
}
.product-card__price .old {
  font-size:.8rem; color:var(--gray);
  text-decoration:line-through;
}
.product-card__buy {
  margin-top:12px; width:100%;
  background:var(--black); color:var(--white);
  font-family:var(--font-primary); font-size:.75rem;
  font-weight:700; text-transform:uppercase; letter-spacing:.08em;
  padding:12px; border-radius:4px;
  transition: background var(--transition);
}
.product-card__buy:hover { background:var(--red); }

/* ============ BANNER SECTION (Para Elas) ============ */
.banner-elas {
  position:relative; overflow:hidden;
  padding:100px 0;
  background: linear-gradient(135deg, var(--pink-dark) 0%, var(--pink) 50%, var(--pink-light) 100%);
}
.banner-elas__inner {
  display:flex; align-items:center; gap:60px;
  max-width:1280px; margin:0 auto; padding:0 24px;
}
.banner-elas__text { flex:1; }
.banner-elas__text h2 {
  font-family:var(--font-primary);
  font-size:clamp(2rem,4vw,3.5rem);
  font-weight:900; color:var(--white);
  text-transform:uppercase; line-height:1.05;
  margin-bottom:16px;
}
.banner-elas__text p {
  color:rgba(255,255,255,.85); font-size:1.05rem;
  margin-bottom:28px; max-width:440px;
}
.banner-elas__gallery {
  flex:1; display:grid;
  grid-template-columns:1fr 1fr; gap:12px;
}
.banner-elas__gallery img {
  border-radius:var(--radius); height:220px;
  object-fit:cover; width:100%;
}
.banner-elas__gallery img:first-child {
  grid-row:span 2; height:100%;
}

/* ============ ABOUT / SLOGAN ============ */
.about {
  padding:100px 0; text-align:center;
  background:var(--black); color:var(--white);
}
.about__logo { height:50px; margin:0 auto 24px; filter:brightness(0) invert(1); }
.about h2 {
  font-family:var(--font-primary);
  font-size:clamp(1.5rem,3.5vw,2.5rem);
  font-weight:300; max-width:600px; margin:0 auto 16px;
  line-height:1.3;
}
.about h2 strong { font-weight:800; color:var(--red); }
.about p { color:var(--gray); max-width:480px; margin:0 auto; }

/* ============ FOOTER ============ */
.footer {
  background:var(--dark); color:var(--gray);
  padding:60px 0 0;
}
.footer__grid {
  display:grid; grid-template-columns:2fr 1fr 1fr 1fr;
  gap:40px; padding-bottom:40px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.footer__brand img { height:32px; margin-bottom:16px; filter:brightness(0) invert(1); }
.footer__brand p { font-size:.85rem; line-height:1.7; max-width:280px; }
.footer h4 {
  font-family:var(--font-primary); font-size:.8rem;
  font-weight:700; text-transform:uppercase; letter-spacing:.1em;
  color:var(--white); margin-bottom:16px;
}
.footer ul li { margin-bottom:10px; }
.footer ul a { font-size:.85rem; transition:color var(--transition); }
.footer ul a:hover { color:var(--white); }
.footer__social { display:flex; gap:12px; margin-top:8px; }
.footer__social a {
  width:36px; height:36px; border-radius:50%;
  border:1px solid rgba(255,255,255,.15);
  display:flex; align-items:center; justify-content:center;
  transition: all var(--transition);
}
.footer__social a:hover { border-color:var(--red); background:var(--red); color:var(--white); }
.footer__social svg { width:16px; height:16px; }
.footer__bottom {
  padding:20px 0; text-align:center;
  font-size:.75rem; color:rgba(255,255,255,.35);
}

/* ============ CHECKOUT MODAL ============ */
.checkout-overlay {
  position:fixed; inset:0; z-index:9999;
  background:rgba(0,0,0,.6); backdrop-filter:blur(4px);
  display:none; align-items:center; justify-content:center;
  opacity:0; transition:opacity .3s ease;
}
.checkout-overlay.active { display:flex; opacity:1; }
.checkout-modal {
  background:var(--white); border-radius:12px;
  width:95%; max-width:480px; max-height:90vh;
  overflow-y:auto; padding:32px;
  box-shadow:var(--shadow-lg);
  transform:translateY(20px); transition:transform .3s ease;
}
.checkout-overlay.active .checkout-modal { transform:translateY(0); }
.checkout-modal__header {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:24px;
}
.checkout-modal__header h3 {
  font-family:var(--font-primary);
  font-size:1.2rem; font-weight:800;
  text-transform:uppercase;
}
.checkout-modal__close {
  width:32px; height:32px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:var(--gray-bg); transition:background var(--transition);
}
.checkout-modal__close:hover { background:var(--gray-light); }
.checkout-modal__product {
  display:flex; gap:16px; padding:16px;
  background:var(--gray-bg); border-radius:var(--radius);
  margin-bottom:24px;
}
.checkout-modal__product img {
  width:80px; height:80px; object-fit:cover; border-radius:6px;
}
.checkout-modal__product-info h4 {
  font-family:var(--font-primary);
  font-size:.9rem; font-weight:700; margin-bottom:4px;
}
.checkout-modal__product-info .price {
  font-size:1.1rem; font-weight:800; color:var(--red);
}
.form-group { margin-bottom:16px; }
.form-group label {
  display:block; font-size:.75rem; font-weight:600;
  text-transform:uppercase; letter-spacing:.05em;
  color:var(--gray); margin-bottom:6px;
}
.form-group input, .form-group select {
  width:100%; padding:12px 14px;
  border:1.5px solid var(--gray-light);
  border-radius:6px; font-size:.9rem;
  transition:border-color var(--transition);
  outline:none;
}
.form-group input:focus, .form-group select:focus {
  border-color:var(--red);
}
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.payment-methods {
  display:flex; gap:8px; margin-bottom:20px;
}
.payment-method {
  flex:1; padding:12px; border:2px solid var(--gray-light);
  border-radius:var(--radius); text-align:center;
  cursor:pointer; transition:all var(--transition);
  font-size:.8rem; font-weight:600;
}
.payment-method.active {
  border-color:var(--red); background:rgba(227,27,35,.05);
  color:var(--red);
}
.payment-method:hover { border-color:var(--red); }
.pix-display {
  text-align:center; padding:24px;
  background:var(--gray-bg); border-radius:var(--radius);
}
.pix-display img { max-width:200px; margin:0 auto 16px; }
.pix-display .copy-code {
  display:flex; gap:8px; margin-top:12px;
}
.pix-display .copy-code input {
  flex:1; padding:10px; border:1px solid var(--gray-light);
  border-radius:4px; font-size:.75rem;
}
.pix-display .copy-code button {
  background:var(--red); color:var(--white);
  padding:10px 16px; border-radius:4px;
  font-size:.75rem; font-weight:700;
}
.checkout-success {
  text-align:center; padding:40px 20px;
}
.checkout-success svg { width:64px; height:64px; color:var(--red); margin-bottom:16px; }
.checkout-success h3 {
  font-family:var(--font-primary);
  font-size:1.3rem; font-weight:800; margin-bottom:8px;
}

/* ============ CART DRAWER ============ */
.cart-drawer {
  position:fixed; top:0; right:-420px; z-index:9998;
  width:400px; max-width:90vw; height:100vh;
  background:var(--white); box-shadow:var(--shadow-lg);
  transition: right .4s cubic-bezier(.4,0,.2,1);
  display:flex; flex-direction:column;
}
.cart-drawer.open { right:0; }
.cart-drawer__header {
  padding:20px 24px; border-bottom:1px solid var(--gray-light);
  display:flex; align-items:center; justify-content:space-between;
}
.cart-drawer__header h3 {
  font-family:var(--font-primary); font-size:1rem;
  font-weight:800; text-transform:uppercase;
}
.cart-drawer__items { flex:1; overflow-y:auto; padding:16px 24px; }
.cart-item {
  display:flex; gap:12px; padding:16px 0;
  border-bottom:1px solid var(--gray-light);
}
.cart-item img { width:70px; height:70px; object-fit:cover; border-radius:6px; }
.cart-item__info { flex:1; }
.cart-item__name { font-size:.85rem; font-weight:600; margin-bottom:4px; }
.cart-item__price { font-size:.9rem; font-weight:800; color:var(--red); }
.cart-item__remove {
  font-size:.7rem; color:var(--gray); margin-top:4px;
  cursor:pointer;
}
.cart-item__remove:hover { color:var(--red); }
.cart-drawer__footer {
  padding:20px 24px; border-top:1px solid var(--gray-light);
}
.cart-drawer__total {
  display:flex; justify-content:space-between;
  font-family:var(--font-primary); font-weight:800;
  font-size:1.1rem; margin-bottom:16px;
}

/* ============ ANIMATIONS ============ */
.fade-up {
  opacity:0; transform:translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity:1; transform:translateY(0); }

/* ============ PAGE PARA ELAS ============ */
.elas-hero {
  position:relative; height:50vh; min-height:350px;
  overflow:hidden; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--pink-dark) 0%, var(--pink) 100%);
}
.elas-hero__content {
  text-align:center; position:relative; z-index:2;
}
.elas-hero__content img { height:60px; margin:0 auto 16px; }
.elas-hero__content h1 {
  font-family:var(--font-primary);
  font-size:clamp(2rem,5vw,3.5rem);
  font-weight:900; color:var(--white);
  text-transform:uppercase;
}
.elas-hero__content p {
  color:rgba(255,255,255,.8); font-size:1rem;
  margin-top:8px;
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position:fixed; inset:0; z-index:10000;
  background:rgba(0,0,0,.92);
  display:none; align-items:center; justify-content:center;
}
.lightbox.active { display:flex; }
.lightbox img { max-width:90%; max-height:85vh; border-radius:8px; }
.lightbox__close {
  position:absolute; top:20px; right:20px;
  color:var(--white); width:44px; height:44px;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%; background:rgba(255,255,255,.1);
  font-size:1.4rem;
}
.lightbox__nav {
  position:absolute; top:50%; transform:translateY(-50%);
  color:var(--white); width:48px; height:48px;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%; background:rgba(255,255,255,.1);
  font-size:1.2rem; transition:background var(--transition);
}
.lightbox__nav:hover { background:rgba(255,255,255,.25); }
.lightbox__nav--prev { left:20px; }
.lightbox__nav--next { right:20px; }

/* ============ RESPONSIVE ============ */
@media (max-width:1024px) {
  .products__grid { grid-template-columns:repeat(2,1fr); }
  .footer__grid { grid-template-columns:1fr 1fr; }
  .banner-elas__inner { flex-direction:column; text-align:center; }
  .banner-elas__text p { margin:0 auto 28px; }
}
@media (max-width:768px) {
  .header__nav { display:none; }
  .menu-toggle { display:flex; }
  .header__nav.open {
    display:flex; flex-direction:column;
    position:absolute; top:var(--header-h); left:0; right:0;
    background:var(--white); padding:24px;
    box-shadow:var(--shadow-md); gap:0;
    border-top:1px solid var(--gray-light);
  }
  .header__nav.open a {
    padding:14px 0; border-bottom:1px solid var(--gray-light);
    font-size:1rem;
  }
  .hero { height:70vh; }
  .categories__grid { grid-template-columns:1fr; }
  .category-card { height:280px; }
  .products__grid { grid-template-columns:1fr 1fr; gap:12px; }
  .product-card__info { padding:12px 14px 16px; }
  .product-card__name { font-size:.85rem; }
  .footer__grid { grid-template-columns:1fr; gap:24px; }
  .banner-elas__gallery { grid-template-columns:1fr 1fr; }
  .banner-elas__gallery img:first-child { grid-row:auto; }
}
@media (max-width:480px) {
  .products__grid { grid-template-columns:1fr; max-width:360px; margin:0 auto; }
  .hero__title { font-size:2rem; }
  .btn { padding:12px 28px; font-size:.8rem; }
}
