/* ═══════════════════════════════════════════
   GLAMOUR FITNESS E CASUAL — Loja Principal
   ═══════════════════════════════════════════ */

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

:root {
  --black:    #0A0A0A;
  --white:    #FFFFFF;
  --off:      #F8F7F4;
  --gold:     #C8A86A;
  --gray:     #888888;
  --light:    #EEECE8;
  --serif:    'Cormorant Garamond', Georgia, serif;
  --sans:     'Raleway', 'Helvetica Neue', sans-serif;
  --ease:     cubic-bezier(.25,.46,.45,.94);
  --header-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

img { display:block; max-width:100%; }
a   { text-decoration:none; color:inherit; }
button { cursor:pointer; border:none; background:none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.hidden    { display: none !important; }

/* ── BARRA DE ANÚNCIOS ── */
.announcement-bar {
  background: var(--black);
  color: rgba(255,255,255,.70);
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 300;
  position: relative;
  overflow: hidden;
}
.announcement-item {
  position: absolute;
  opacity: 0;
  transition: opacity .6s ease;
  white-space: nowrap;
  user-select: none;
}
.announcement-item.active { opacity: 1; }

/* ── HEADER ── */
.header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light);
  transition: box-shadow .3s var(--ease);
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.06); }

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.header-logo-img {
  height: 52px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--black);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .25s, color .25s;
}
.nav-link:hover { border-color: var(--gold); color: var(--gold); }

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

.icon-btn {
  width: 40px; height: 40px;
  display: flex; align-items:center; justify-content:center;
  border-radius: 50%;
  transition: background .2s;
  color: var(--black);
}
.icon-btn svg { width:20px; height:20px; }
.icon-btn:hover { background: var(--light); }
.whatsapp-btn:hover { background: #e8f5e9; color: #2e7d32; }

.menu-btn { display:none; flex-direction:column; gap:5px; padding:8px; }
.menu-btn span { display:block; width:22px; height:1.5px; background:var(--black); transition:.3s; }

/* Barra de busca */
.search-bar {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s var(--ease);
  border-top: 1px solid transparent;
}
.search-bar.open {
  max-height: 72px;
  border-top-color: var(--light);
}
.search-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-inner svg { width:18px; height:18px; color:var(--gray); flex-shrink:0; }
.search-inner input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--sans);
  font-size: 14px;
  background: transparent;
  color: var(--black);
}
#searchClose { color:var(--gray); font-size:16px; padding:4px 8px; transition:color .2s; }
#searchClose:hover { color:var(--black); }

/* ── HERO CARROSSEL ── */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 92vh;
  min-height: 560px;
  overflow: hidden;
  background: #111;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
  overflow: hidden;
}
.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Fundo desfocado — preenche espaços vazios sem cortar a foto */
.slide-bg {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  object-fit: cover;
  filter: blur(22px);
  opacity: 0.55;
  z-index: 0;
}

/* Foto principal — sem corte, qualquer proporção */
.slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,.72) 0%,
    rgba(0,0,0,.42) 50%,
    rgba(0,0,0,.12) 100%
  );
  z-index: 2;
}

.slide-content {
  position: relative;
  z-index: 3;
  padding: 0 8%;
  max-width: 780px;
  color: var(--white);
}

.slide-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 300;
}

.slide-title {
  font-family: var(--serif);
  font-size: clamp(56px, 9vw, 130px);
  font-weight: 300;
  line-height: 0.92;
  margin-bottom: 28px;
  color: var(--white);
}
.slide-title em { font-style: italic; color: var(--gold); }

.slide-sub {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,.82);
  margin-bottom: 44px;
  max-width: 420px;
}

.slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--white);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.45);
  text-decoration: none;
  transition: border-color .3s, gap .3s;
}
.slide-cta:hover { border-color: var(--white); gap: 22px; }

/* Setas de navegação */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .3s, border-color .3s;
  backdrop-filter: blur(6px);
  line-height: 1;
}
.carousel-arrow:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.7);
}
.carousel-prev { left: 32px; }
.carousel-next { right: 32px; }

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width .35s ease, background .35s ease;
}
.carousel-dot.active { width: 28px; background: var(--white); }

@media (max-width: 768px) {
  .hero-carousel { height: 86vh; }
  .slide-content { padding: 0 24px; }
  .carousel-prev { left: 16px; }
  .carousel-next { right: 16px; }
  .carousel-arrow { width: 40px; height: 40px; font-size: 22px; }
  .carousel-dots  { bottom: 24px; }
}

/* ── FILTROS ── */
.filter-section { padding: 48px 0 0; }
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.filter-btn {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1px solid var(--light);
  color: var(--gray);
  border-radius: 2px;
  transition: all .25s var(--ease);
  background: var(--white);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ── GRADE DE PRODUTOS ── */
.products-section { padding: 40px 0 80px; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* Card do produto */
.product-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: var(--off);
  border-radius: 2px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.10); }

.card-img-wrap {
  position: relative;
  background: var(--light);
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.product-card:hover .card-img { transform: scale(1.06); }

.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--black);
  color: var(--white);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.36);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}
.product-card:hover .card-overlay { opacity: 1; }
.overlay-btn {
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 12px 28px;
  border: 1px solid var(--white);
  transition: background .25s, color .25s;
}
.overlay-btn:hover { background: var(--white); color: var(--black); }

.card-body { padding: 16px 18px 20px; }
.card-category {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.card-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 8px;
}
.card-price {
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
}
.card-sizes {
  margin-top: 8px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.size-tag {
  font-size: 9px;
  letter-spacing: 1px;
  padding: 3px 7px;
  border: 1px solid var(--light);
  color: var(--gray);
  border-radius: 1px;
}

/* Placeholder quando não há imagem */
.card-no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--light);
  color: var(--gray);
  font-size: 40px;
  position: absolute; inset: 0;
}

/* Loading */
.loading-state {
  grid-column: 1/-1;
  text-align:center;
  padding: 80px 0;
  color: var(--gray);
}
.spinner {
  width: 32px; height: 32px;
  border: 2px solid var(--light);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align:center; padding:80px 24px; color:var(--gray); font-size:15px; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.70);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.modal-overlay.open { opacity:1; pointer-events:all; }

.modal-box {
  background: var(--white);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  transform: translateY(20px);
  transition: transform .4s var(--ease);
}
.modal-overlay.open .modal-box { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  font-size: 18px;
  color: var(--gray);
  z-index: 10;
  padding: 6px 10px;
  transition: color .2s;
}
.modal-close:hover { color: var(--black); }

.modal-gallery { background: var(--off); }
.modal-main-img { width:100%; height:auto; display:block; }

.modal-info {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-category {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
}
.modal-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  line-height: 1.2;
}
.modal-price {
  font-size: 22px;
  font-weight: 500;
}
.modal-section { display:flex; flex-direction:column; gap:8px; }
.modal-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
}
.modal-desc { font-size:14px; font-weight:300; line-height:1.7; color:#444; }

.size-tags, .color-tags { display:flex; gap:6px; flex-wrap:wrap; }
.size-tags .size-tag { font-size:11px; padding:5px 12px; border:1px solid var(--black); color:var(--black); }
.color-tags .color-tag {
  font-size:11px; padding:5px 14px;
  background: var(--off); border:1px solid var(--light); border-radius:20px;
}

.modal-wa-btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 14px 24px;
  transition: background .25s;
}
.modal-wa-btn svg { width:18px; height:18px; }
.modal-wa-btn:hover { background: #128C7E; }

/* ── BANNERS DE CATEGORIA ── */
.category-banner {
  min-height: 70vh;
  background:
    linear-gradient(135deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.20) 100%),
    url('images/banner-fitness.jpg') center/cover no-repeat;
  background-color: #222;
  display: flex;
  align-items: center;
  padding: 80px 24px;
}
.casual-banner {
  background-image:
    linear-gradient(135deg, rgba(0,0,0,.48) 0%, rgba(0,0,0,.16) 100%),
    url('images/banner-casual.jpg');
  background-color: #333;
}
.banner-content { max-width: 500px; color: var(--white); }
.banner-label { font-size:11px; letter-spacing:6px; text-transform:uppercase; color:var(--gold); margin-bottom:16px; }
.banner-title {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 20px;
}
.banner-sub { font-size:15px; font-weight:300; line-height:1.8; color:rgba(255,255,255,.80); margin-bottom:32px; }
.banner-btn {
  font-family: var(--sans);
  font-size:11px; font-weight:500;
  letter-spacing:3px; text-transform:uppercase;
  padding:13px 36px;
  border:1px solid var(--white);
  color:var(--white);
  transition: background .3s, color .3s;
}
.banner-btn:hover { background:var(--white); color:var(--black); }

/* ── FOOTER ── */
.footer { background: var(--black); color: rgba(255,255,255,.75); }
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}
.footer-logo {
  height: 60px; width:auto;
  margin-bottom: 16px;
}
.footer-brand p { font-size:14px; font-weight:300; line-height:1.7; }
.footer-links h4, .footer-contact h4 {
  font-size:10px; letter-spacing:4px; text-transform:uppercase;
  color:rgba(255,255,255,.40); margin-bottom:16px;
}
.footer-links, .footer-contact { display:flex; flex-direction:column; gap:10px; }
.footer-links a, .footer-contact a, .footer-contact p {
  font-size:14px; font-weight:300; color:rgba(255,255,255,.70);
  transition:color .2s; display:flex; align-items:center; gap:8px;
}
.footer-links a:hover, .footer-contact a:hover { color:var(--white); }
.footer-contact small { font-size:12px; color:rgba(255,255,255,.40); display:block; margin-top:2px; }
.footer-bottom {
  border-top:1px solid rgba(255,255,255,.08);
  text-align:center; padding:20px 24px;
  font-size:12px; font-weight:300; color:rgba(255,255,255,.35);
}

/* ── EM DESTAQUE ── */
.featured-strip { padding: 56px 0 40px; background: var(--off); }
.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--light);
}
.section-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 1px;
  white-space: nowrap;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .featured-grid {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    scrollbar-width: none;
    padding-bottom: 8px;
  }
  .featured-grid::-webkit-scrollbar { display: none; }
  .featured-grid .product-card { flex: 0 0 220px; }
}

/* ── BARRA DE CONFIANÇA ── */
.trust-bar {
  background: #111;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 28px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,.07);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child  { border-right: none; }
.trust-item svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--gold); }
@media (max-width: 768px) {
  .trust-bar-inner { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 24px 16px; }
  .trust-item { border-right: none; padding: 0; }
}

/* ── PREÇO PROMOCIONAL ── */
.price-old  { text-decoration: line-through; color: var(--gray); font-size: 13px; margin-right: 4px; }
.price-sale { color: #9A6E00; font-weight: 600; font-size: 17px; }
.card-badge.promo { background: var(--gold); left: auto; right: 12px; }
.filter-promo { border-color: var(--gold); color: var(--gold); }
.filter-promo.active, .filter-promo:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }

/* ── GALERIA DO MODAL ── */
.modal-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px;
  overflow-x: auto;
  background: var(--light);
  scrollbar-width: thin;
}
.modal-thumbs:empty, .modal-thumbs.hidden { display: none; }
.modal-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  border-radius: 2px;
  transition: border-color .2s;
}
.modal-thumb:hover  { border-color: rgba(200,168,106,.5); }
.modal-thumb.active { border-color: var(--gold); }

/* ── SELETORES DE TAMANHO E COR ── */
.size-selector, .color-selector { display: flex; gap: 6px; flex-wrap: wrap; }
.size-option {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  padding: 7px 14px;
  border: 1px solid var(--light);
  background: var(--white);
  color: var(--black);
  border-radius: 2px;
  cursor: pointer;
  transition: all .2s;
}
.size-option:hover    { border-color: var(--black); }
.size-option.selected { background: var(--black); color: var(--white); border-color: var(--black); }
.color-option {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  padding: 7px 16px;
  border: 1px solid var(--light);
  background: var(--off);
  color: var(--black);
  border-radius: 20px;
  cursor: pointer;
  transition: all .2s;
}
.color-option:hover    { border-color: var(--black); }
.color-option.selected { background: var(--gold); border-color: var(--gold); color: var(--white); }

/* ── RESPONSIVO ── */
@media (max-width:768px) {
  .header-nav { display:none; }
  .header-nav.open {
    display:flex; flex-direction:column;
    position:absolute; top:var(--header-h); left:0; right:0;
    background:var(--white); padding:24px;
    border-bottom:1px solid var(--light);
    gap:20px; box-shadow:0 8px 24px rgba(0,0,0,.08);
  }
  .menu-btn { display:flex; }
  .modal-box { grid-template-columns:1fr; max-height:95vh; }
  .modal-main-img { aspect-ratio:1/1; }
  .footer-inner { grid-template-columns:1fr; gap:32px; }
}

@media (max-width:480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap:16px; }
  .modal-info { padding:24px 20px; }
}
