/*
Theme Name: Taty Quantica
Theme URI: https://tatyquantica.com.br/
Author: Taty Quantica
Description: Tema hibrido com landing page SPA e rotas classicas WordPress/WooCommerce.
Version: 0.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: taty-quantica
*/

:root {
  --tq-ink: #2e2649;
  --tq-ink-soft: #6b6385;
  --tq-purple: #6b5ba6;
  --tq-purple-dark: #4a3d78;
  --tq-gold: #d6a93c;
  --tq-canvas: #fbf7f0;
  --tq-surface: #fffdf9;
  --tq-border: rgba(107, 91, 166, 0.16);
  --tq-shadow: 0 18px 45px rgba(46, 38, 73, 0.09);
  --tq-radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body.taty-quantica-theme {
  margin: 0;
  background: #fbf7f0;
  color: #2e2649;
  font-family: "Nunito", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.tq-classic-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.tq-classic-page * {
  box-sizing: border-box;
}

body.tq-classic-page img {
  max-width: 100%;
  height: auto;
}

body.tq-classic-page a {
  color: var(--tq-purple);
}

body.tq-classic-page a:focus-visible,
body.tq-classic-page button:focus-visible,
body.tq-classic-page input:focus-visible,
body.tq-classic-page select:focus-visible,
body.tq-classic-page textarea:focus-visible {
  outline: 3px solid rgba(214, 169, 60, 0.78);
  outline-offset: 3px;
}

/* The source component is replaced by the runtime after React is ready. */
body.tq-spa-page x-dc {
  display: none !important;
}

.tq-classic-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--tq-border);
  background: rgba(251, 247, 240, 0.94);
  box-shadow: 0 8px 24px rgba(46, 38, 73, 0.05);
  backdrop-filter: blur(14px);
}

.tq-classic-header__inner {
  width: min(1200px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.tq-classic-brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}

.tq-classic-brand img {
  display: block;
  width: auto;
  height: 66px;
  object-fit: contain;
}

.tq-classic-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
}

.tq-classic-nav a {
  position: relative;
  padding: 10px 13px;
  border-radius: 20px;
  color: #4a4063;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.tq-classic-nav a:hover,
.tq-classic-nav a[aria-current="page"] {
  background: #f0e9f8;
  color: var(--tq-purple-dark);
}

.tq-classic-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tq-classic-account,
.tq-classic-cart {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--tq-border);
  border-radius: 25px;
  background: #fff;
  color: var(--tq-ink) !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tq-classic-account {
  padding: 0 17px;
}

.tq-classic-cart {
  position: relative;
  padding: 0 12px 0 15px;
}

.tq-classic-account:hover,
.tq-classic-cart:hover {
  transform: translateY(-1px);
  border-color: rgba(107, 91, 166, 0.34);
  box-shadow: 0 8px 20px rgba(46, 38, 73, 0.1);
}

.tq-classic-account svg,
.tq-classic-cart svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.tq-classic-cart__count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--tq-gold);
  color: var(--tq-ink);
  font-size: 12px;
}

.tq-page-main,
.tq-index-main {
  width: 100%;
  flex: 1 0 auto;
}

.tq-content-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.tq-page-heading {
  margin: 0 0 30px;
}

.tq-page-heading h1,
.tq-entry-title {
  margin: 0;
  color: var(--tq-ink);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.tq-entry {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--tq-border);
  border-radius: var(--tq-radius);
  background: var(--tq-surface);
  box-shadow: var(--tq-shadow);
}

.tq-post-list {
  display: grid;
  gap: 26px;
}

.tq-entry-title a {
  color: inherit !important;
  text-decoration: none;
}

.tq-entry-title a:hover {
  color: var(--tq-purple) !important;
}

.tq-entry-content {
  color: var(--tq-ink-soft);
  font-size: 17px;
  line-height: 1.72;
}

.tq-entry-header + .tq-entry-content {
  margin-top: 24px;
}

.tq-entry-content > :first-child {
  margin-top: 0;
}

.tq-entry-content > :last-child {
  margin-bottom: 0;
}

.tq-empty-state {
  text-align: center;
}

.navigation.pagination {
  margin-top: 34px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav-links .page-numbers {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tq-border);
  border-radius: 50%;
  background: #fff;
  color: var(--tq-purple);
  font-weight: 800;
  text-decoration: none;
}

.nav-links .page-numbers.current {
  border-color: var(--tq-purple);
  background: var(--tq-purple);
  color: #fff;
}

.tq-classic-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #2e2649;
  color: #e7e0f2;
}

.tq-classic-footer__inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.tq-classic-footer__brand {
  max-width: 480px;
}

.tq-classic-footer__brand img {
  width: auto;
  height: 64px;
  padding: 5px 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.94);
}

.tq-classic-footer__brand p {
  margin: 15px 0 0;
  color: #cfc6de;
  line-height: 1.6;
}

.tq-classic-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
}

.tq-classic-footer__nav a {
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.tq-classic-footer__nav a:hover {
  color: #e2c98f !important;
}

.tq-classic-footer__legal {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #aaa0bd;
  font-size: 12px;
  text-align: center;
}

.tq-noscript {
  max-width: 720px;
  margin: 48px auto;
  padding: 24px;
  border: 1px solid rgba(107, 91, 166, 0.2);
  border-radius: 16px;
  background: #fff;
  color: #2e2649;
  font: 600 16px/1.6 Arial, sans-serif;
  text-align: center;
}

/* Keep the fixed prototype header below WordPress's authenticated admin bar. */
@media screen and (min-width: 783px) {
  body.admin-bar.tq-spa-page #dc-root > .sc-host > div > header:first-of-type {
    top: 32px !important;
  }

  body.admin-bar .tq-classic-header {
    top: 32px;
  }
}

@media screen and (max-width: 782px) {
  body.admin-bar.tq-spa-page #dc-root > .sc-host > div > header:first-of-type {
    top: 46px !important;
  }

  body.admin-bar .tq-classic-header {
    top: 46px;
  }
}

@media screen and (max-width: 760px) {
  .tq-classic-header__inner {
    width: min(100% - 24px, 1200px);
    min-height: 68px;
    gap: 10px;
  }

  .tq-classic-brand img {
    height: 56px;
  }

  .tq-classic-nav {
    gap: 0;
  }

  .tq-classic-nav a {
    padding: 9px 8px;
    font-size: 13px;
  }

  .tq-classic-account,
  .tq-classic-cart {
    width: 40px;
    min-height: 40px;
    padding: 0;
  }

  .tq-classic-account span,
  .tq-classic-cart__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .tq-classic-cart__count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    font-size: 10px;
  }

  .tq-content-shell {
    width: min(100% - 24px, 1120px);
    padding: 34px 0 56px;
  }

  .tq-entry {
    border-radius: 18px;
  }

  .tq-classic-footer__inner {
    width: min(100% - 32px, 1120px);
    align-items: flex-start;
    flex-direction: column;
  }

  .tq-classic-footer__nav {
    justify-content: flex-start;
  }

  .tq-classic-footer__legal {
    width: min(100% - 32px, 1120px);
  }
}

@media screen and (max-width: 480px) {
  .tq-classic-nav a:first-child,
  .tq-classic-account {
    display: none;
  }

  .tq-classic-actions {
    margin-left: auto;
  }
}
