/*
Theme Name: T.G.D.A Theme
Theme URI: https://tgda.com.br
Author: T.G.D.A Studio
Author URI: https://tgda.com.br
Description: Tema WordPress + WooCommerce minimalista e de alta conversão para a T.G.D.A. Estética streetwear premium, HTML5 semântico, CSS Grid/Flexbox e JavaScript puro (zero frameworks).
Version: 1.2.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tgda
Tags: e-commerce, woocommerce, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, translation-ready
WC requires at least: 8.0
WC tested up to: 9.4
*/

/* ============================================================
   1. DESIGN TOKENS
   Edite aqui e o site inteiro acompanha.
   ============================================================ */
:root {
  /* Marca */
  --tgda-ink: #1a1a1a;           /* Primária: preto / grafite */
  --tgda-ink-soft: #2a2a28;
  --tgda-accent: #ff4d00;        /* Secundária: laranja neon */
  --tgda-accent-soft: #ffe4d6;
  --tgda-bg: #f9f9f9;            /* Fundo do site */
  --tgda-surface: #ffffff;
  --tgda-border: #e7e4de;
  --tgda-muted: #96938c;
  --tgda-on-dark: #f8f7f4;
  --tgda-success: #1f9d55;

  /* Tipografia */
  --tgda-font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --tgda-font-body: "Inter", system-ui, -apple-system, sans-serif;
  --tgda-font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --tgda-container: 1440px;
  --tgda-gutter: clamp(16px, 4vw, 28px);
  --tgda-radius: 18px;
  --tgda-radius-lg: 24px;
  --tgda-radius-pill: 999px;
  --tgda-header-height: 76px;

  /* Movimento */
  --tgda-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tgda-speed: 0.35s;
}

/* ============================================================
   2. RESET ENXUTO + BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--tgda-bg);
  color: var(--tgda-ink);
  font-family: var(--tgda-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

button {
  cursor: pointer;
  border: 0;
  background: none;
}

::selection {
  background: var(--tgda-accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--tgda-accent);
  outline-offset: 3px;
}

h1, h2, h3, .tgda-display {
  margin: 0;
  font-family: var(--tgda-font-display);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

/* ============================================================
   3. UTILITÁRIOS
   ============================================================ */
.tgda-container {
  width: 100%;
  max-width: var(--tgda-container);
  margin-inline: auto;
  padding-inline: var(--tgda-gutter);
}

.tgda-eyebrow {
  margin: 0;
  font-family: var(--tgda-font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 12px 20px;
  clip: auto;
  background: var(--tgda-ink);
  color: var(--tgda-on-dark);
  border-radius: var(--tgda-radius-pill);
}

/* ============================================================
   4. BOTÕES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--tgda-radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  transition: background var(--tgda-speed) var(--tgda-ease),
    color var(--tgda-speed) var(--tgda-ease),
    border-color var(--tgda-speed) var(--tgda-ease);
}

.btn--dark {
  background: var(--tgda-ink);
  color: var(--tgda-on-dark);
}

.btn--dark:hover {
  background: var(--tgda-accent);
  color: #fff;
}

.btn--accent {
  background: var(--tgda-accent);
  color: #fff;
}

.btn--accent:hover {
  background: var(--tgda-ink);
}

.btn--ghost {
  border-color: rgb(26 26 26 / 20%);
  color: var(--tgda-ink);
}

.btn--ghost:hover {
  border-color: var(--tgda-ink);
  background: var(--tgda-surface);
}

.btn--block {
  width: 100%;
}

/* ============================================================
   5. ACESSIBILIDADE / MOVIMENTO REDUZIDO
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* O restante do layout (header, hero, grids, footer) vive em
   assets/css/theme.css para manter este arquivo modular. */
/* Storefront assets loaded directly for hosting compatibility */
@import url('./assets/css/woocommerce.css');

/* React-style visual system */
body, body .woocommerce {
  background: #f8f7f4 !important;
  color: #111110;
}

.announcement-bar {
  height: 36px;
  background: #111110 !important;
  overflow: hidden;
}
.announcement-bar__ticker { width: 100%; height: 100%; overflow: hidden; }
.announcement-bar__track {
  width: max-content;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
  padding-inline: 28px;
  animation: tgda-ticker 24s linear infinite;
}
.announcement-bar__track .tgda-eyebrow { white-space: nowrap; color: #fff; font-size: 10px; }
.announcement-bar__dot { width: 4px; height: 4px; flex: 0 0 4px; border-radius: 50%; background: #ff4d00; }
@keyframes tgda-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .announcement-bar__track { animation: none; justify-content: center; } }
.announcement-bar__track span { white-space: nowrap; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.announcement-bar__track b { color: var(--tgda-accent, #ff4d00); }
.category-pills { padding: 12px 0 0; }
.category-pills__track { display: flex !important; align-items: center !important; gap: 10px !important; overflow-x: auto; }
.category-pill { flex: 0 0 auto; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid #dedbd4; border-radius: 999px; background: #fff; color: #111110; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-decoration: none; transition: .2s ease; }
.category-pill:hover { border-color: #111110; transform: translateY(-1px); }
.category-pill.is-active { border-color: #111110; background: #111110; color: #fff; }
.site-header { background: rgb(248 247 244 / 92%) !important; backdrop-filter: blur(18px); }
.site-header__inner { min-height: 76px !important; }
.site-logo a {
  font-family: "Arial Narrow", Impact, sans-serif !important;
  font-size: 28px !important;
  letter-spacing: -0.02em;
}
.custom-logo-link img,
.site-logo .custom-logo { display: none !important; }
.custom-logo-link::after {
  content: "T.G.D.A.";
  display: inline-block;
  color: #111110;
  font-family: "Arial Narrow", Impact, sans-serif;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.site-logo em { color: #ff4d00; font-style: normal; }
.main-nav a { font-size: 13px !important; font-weight: 600 !important; }

.tgda-container { max-width: 1440px !important; }
.hero { padding-block: 40px 56px !important; }
.hero__grid { align-items: center !important; }
.hero__title { font-family: Impact, "Arial Narrow", sans-serif !important; font-size: clamp(58px, 8vw, 118px) !important; line-height: .86 !important; }
.hero__title span { color: #ff4d00 !important; }
.hero__media { min-height: 600px !important; border-radius: 24px !important; }
.hero__image { object-fit: cover !important; }

.section { padding-block: 72px !important; }
.section__title { font-family: Impact, "Arial Narrow", sans-serif !important; font-size: clamp(36px, 5vw, 56px) !important; line-height: .9 !important; }
.category-grid { grid-template-columns: repeat(3, 1fr) !important; }
.category-card, .product-card { border-radius: 18px !important; }
.category-card img { aspect-ratio: 4 / 5 !important; }

.woocommerce .products,
ul.products.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 34px 20px !important;
}
.woocommerce ul.products li.product {
  border: 0 !important;
  border-radius: 18px 18px 12px 12px !important;
  overflow: visible !important;
  background: transparent !important;
}
.woocommerce ul.products li.product > a:first-child {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #eeece7 !important;
}
.woocommerce ul.products li.product > a:first-child img,
.woocommerce ul.products li.product img {
  aspect-ratio: 4 / 5 !important;
  height: auto !important;
  max-height: none !important;
  object-fit: cover !important;
  background: #eeece7 !important;
  transition: transform .8s cubic-bezier(.22,1,.36,1) !important;
}
.woocommerce ul.products li.product:hover > a:first-child img { transform: scale(1.05); }
.woocommerce-loop-product__title {
  min-height: 0 !important;
  padding: 14px 0 4px !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
}
.woocommerce ul.products li.product .price {
  padding: 4px 0 0 !important;
  font-size: 16px !important;
}
.woocommerce ul.products li.product .button {
  width: 100% !important;
  margin: 12px 0 0 !important;
  border-radius: 999px !important;
}

.site-footer { background: #111110 !important; }
.footer-title { font-family: Impact, "Arial Narrow", sans-serif !important; font-size: clamp(36px, 5vw, 64px) !important; line-height: .95 !important; }

@media (max-width: 1024px) {
  .hero__media { min-height: 520px !important; }
  .woocommerce .products, ul.products.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
.tgda-page { padding: clamp(48px, 7vw, 96px) 0 !important; }
.tgda-page__inner { max-width: 900px !important; }
.tgda-page__article { background: #fff; border-radius: 24px; padding: clamp(28px, 6vw, 72px); box-shadow: 0 18px 50px rgb(17 17 16 / 7%); }
.tgda-page__header { margin-bottom: 36px; }
.tgda-page__title { margin: 12px 0 0 !important; font-family: Impact, "Arial Narrow", sans-serif !important; font-size: clamp(44px, 7vw, 76px) !important; line-height: .92 !important; }
.tgda-page__content { font-size: 16px; line-height: 1.75; color: #3e3e3a; }
.tgda-page__content h2, .tgda-page__content h3 { color: #111110; margin-top: 36px; font-family: Impact, "Arial Narrow", sans-serif; letter-spacing: -.02em; }
.tgda-page__content table { width: 100%; border-collapse: collapse; margin-block: 24px; }
.tgda-page__content th, .tgda-page__content td { border: 1px solid #e8e5de; padding: 12px 14px; text-align: left; }
.tgda-page__content th { background: #f8f7f4; color: #111110; }

.footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.newsletter-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.75fr);
  gap: clamp(28px, 7vw, 80px);
  align-items: center;
  padding-bottom: 46px;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}
.newsletter-grid .footer-title { max-width: 650px; margin-bottom: 18px; }
.newsletter-benefit { margin: 7px 0; color: rgb(248 247 244 / 72%); font-size: 14px; }
.newsletter-form__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 8px; border-radius: 999px; background: #fff; }
.newsletter-form__input { width: 100%; min-height: 48px; border: 0; outline: 0; padding: 0 18px; border-radius: 999px; color: #111110; }
.newsletter-form__row .btn { min-height: 48px; white-space: nowrap; }
.newsletter-form__note { margin: 10px 8px 0; font-size: 11px; color: rgb(248 247 244 / 42%); }

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
  .newsletter-grid { grid-template-columns: 1fr !important; }
  .newsletter-form__row { grid-template-columns: 1fr; border-radius: 18px; }
  .newsletter-form__input { min-height: 52px; }
  .newsletter-form__row .btn { width: 100%; }
  .hero { padding-block: 24px 32px !important; }
  .hero__grid { gap: 28px !important; }
  .hero__title { font-size: clamp(54px, 16vw, 78px) !important; }
  .hero__media { min-height: 430px !important; }
  .category-pills__track { justify-content: flex-start !important; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .category-pills__track::-webkit-scrollbar { display: none; }
  .category-grid { grid-template-columns: 1fr !important; }
  .section { padding-block: 48px !important; }
  .woocommerce .products, ul.products.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px 10px !important; }
  .woocommerce ul.products li.product > a:first-child img, .woocommerce ul.products li.product img { aspect-ratio: 4 / 5 !important; }
}

