/*
Theme Name: 3D Criações Personalizados
Theme URI: https://www.instagram.com/3dcriacoespersonalizados/
Author: 3D Criações Personalizados
Description: Tema WordPress personalizado convertido do site estático da 3D Criações Personalizados. Inclui catálogo de produtos, preços, descontos, categorias, bonecos pintados à mão, WhatsApp e Instagram.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: tresd-criacoes
Tags: custom-logo, custom-menu, featured-images, e-commerce, portfolio, responsive-layout
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
      --bg: #070707;
      --bg2: #101018;
      --text: #f8f8f8;
      --muted: #c9cad1;
      --soft: rgba(255,255,255,.075);
      --soft2: rgba(255,255,255,.12);
      --border: rgba(255,255,255,.15);
      --gold: #d9a74f;
      --gold2: #ffd983;
      --blue: #1878ff;
      --red: #ff3e35;
      --green: #3fca65;
      --yellow: #ffc83d;
      --shadow: 0 24px 70px rgba(0,0,0,.38);
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--text);
      font-family: Arial, Helvetica, sans-serif;
      background:
        radial-gradient(circle at 18% 12%, rgba(24,120,255,.18), transparent 26%),
        radial-gradient(circle at 88% 14%, rgba(255,62,53,.16), transparent 27%),
        radial-gradient(circle at 74% 88%, rgba(217,167,79,.15), transparent 34%),
        linear-gradient(135deg, var(--bg), var(--bg2));
      overflow-x: hidden;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
      background-size: 44px 44px;
      mask-image: radial-gradient(circle at center, #000, transparent 74%);
      opacity: .42;
      pointer-events: none;
      z-index: -1;
    }

    a { color: inherit; }
    img { max-width: 100%; }

    .page {
      width: min(1180px, calc(100% - 32px));
      margin: 0 auto;
      padding: 24px 0 42px;
    }

    header {
      position: sticky;
      top: 0;
      z-index: 10;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 22px;
      padding: 14px 0;
      margin-bottom: 36px;
      background: rgba(7,7,7,.72);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid rgba(255,255,255,.05);
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 13px;
      text-decoration: none;
      min-width: 245px;
    }

    .brand-mark {
      width: 50px;
      height: 50px;
      border-radius: 14px;
      object-fit: cover;
      box-shadow: 0 15px 32px rgba(0,0,0,.42);
    }

    .brand strong {
      display: block;
      font-size: 18px;
      line-height: 1.05;
      letter-spacing: .3px;
    }

    .brand span {
      display: block;
      color: var(--muted);
      margin-top: 3px;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 1.5px;
    }

    nav {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      flex-wrap: wrap;
    }

    nav a {
      text-decoration: none;
      color: var(--muted);
      padding: 10px 13px;
      border-radius: 999px;
      font-size: 14px;
      border: 1px solid transparent;
      transition: .2s;
    }

    nav a:hover {
      color: #fff;
      border-color: var(--border);
      background: rgba(255,255,255,.055);
    }

    .hero {
      min-height: calc(100vh - 130px);
      display: grid;
      grid-template-columns: 1.04fr .96fr;
      align-items: center;
      gap: 38px;
      padding: 12px 0 18px;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 10px 15px;
      border: 1px solid rgba(217,167,79,.40);
      background: rgba(217,167,79,.095);
      border-radius: 999px;
      color: var(--gold2);
      text-transform: uppercase;
      letter-spacing: 1.6px;
      font-size: 13px;
      font-weight: 900;
    }

    .badge-dot {
      width: 9px;
      height: 9px;
      background: var(--green);
      border-radius: 50%;
      box-shadow: 0 0 0 0 rgba(63,202,101,.65);
      animation: pulse 1.8s infinite;
    }

    @keyframes pulse {
      70% { box-shadow: 0 0 0 12px rgba(63,202,101,0); }
      100% { box-shadow: 0 0 0 0 rgba(63,202,101,0); }
    }

    h1 {
      margin: 18px 0 18px;
      font-size: clamp(42px, 7vw, 88px);
      line-height: .93;
      letter-spacing: -2.5px;
      text-transform: uppercase;
    }

    .gold { color: var(--gold2); }
    .red { color: var(--red); }
    .blue { color: var(--blue); }
    .green { color: var(--green); }

    .hero p {
      max-width: 690px;
      margin: 0;
      color: var(--muted);
      font-size: clamp(18px, 2vw, 23px);
      line-height: 1.62;
    }

    .cta {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
      margin-top: 28px;
    }

    .btn {
      display: inline-block;
      text-decoration: none;
      padding: 15px 20px;
      border-radius: 16px;
      font-weight: 900;
      transition: .2s ease;
    }

    .btn:hover { transform: translateY(-2px); }

    .btn-primary {
      color: #080808;
      background: linear-gradient(90deg, var(--gold), #ffe3a1);
      box-shadow: 0 16px 38px rgba(217,167,79,.18);
    }

    .btn-secondary {
      border: 1px solid var(--border);
      background: rgba(255,255,255,.06);
      color: #fff;
    }

    .hero-visual {
      border: 1px solid var(--border);
      border-radius: 32px;
      padding: 16px;
      background: rgba(255,255,255,.065);
      box-shadow: var(--shadow);
      position: relative;
    }

    .hero-visual::before {
      content: "";
      position: absolute;
      inset: -2px;
      border-radius: 34px;
      background: linear-gradient(145deg, rgba(24,120,255,.42), rgba(255,62,53,.35), rgba(217,167,79,.35));
      filter: blur(22px);
      opacity: .5;
      z-index: -1;
    }

    .hero-visual > img {
      width: 100%;
      display: block;
      border-radius: 22px;
      aspect-ratio: 1 / 1;
      object-fit: cover;
    }

    .mini-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-top: 10px;
    }

    .mini-grid img {
      height: 120px;
      width: 100%;
      object-fit: cover;
      border-radius: 15px;
      border: 1px solid rgba(255,255,255,.10);
      background: rgba(0,0,0,.25);
    }

    .stats {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
      margin-top: 26px;
      max-width: 740px;
    }

    .stat {
      padding: 16px;
      border: 1px solid var(--border);
      border-radius: 20px;
      background: var(--soft);
    }

    .stat strong {
      display: block;
      font-size: 22px;
      color: var(--gold2);
    }

    .stat span {
      display: block;
      color: var(--muted);
      margin-top: 5px;
      font-size: 13px;
      line-height: 1.35;
    }

    section {
      margin-top: 86px;
      scroll-margin-top: 90px;
    }

    .section-head {
      text-align: center;
      max-width: 840px;
      margin: 0 auto 30px;
    }

    .section-head .tag {
      color: var(--gold2);
      text-transform: uppercase;
      font-size: 13px;
      font-weight: 900;
      letter-spacing: 2.4px;
      margin-bottom: 10px;
    }

    .section-head h2 {
      margin: 0 0 12px;
      font-size: clamp(30px, 4.3vw, 56px);
      line-height: 1.05;
      letter-spacing: -1.3px;
    }

    .section-head p {
      color: var(--muted);
      margin: 0;
      font-size: 18px;
      line-height: 1.6;
    }

    .categories {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
    }

    .category {
      border: 1px solid var(--border);
      background: var(--soft);
      border-radius: 24px;
      padding: 22px;
      box-shadow: 0 16px 42px rgba(0,0,0,.18);
      min-height: 184px;
    }

    .icon {
      width: 46px;
      height: 46px;
      border-radius: 14px;
      display: grid;
      place-items: center;
      color: #090909;
      font-weight: 900;
      margin-bottom: 14px;
      font-size: 18px;
    }

    .category h3 {
      margin: 0 0 9px;
      font-size: 20px;
    }

    .category p {
      margin: 0;
      color: var(--muted);
      line-height: 1.55;
      font-size: 15px;
    }

    .products {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
    }

    .product {
      position: relative;
      overflow: hidden;
      border-radius: 26px;
      border: 1px solid var(--border);
      background: var(--soft);
      box-shadow: var(--shadow);
      min-height: 365px;
    }

    .product img {
      width: 100%;
      height: 100%;
      min-height: 365px;
      object-fit: cover;
      display: block;
      transition: transform .28s ease;
    }

    .product:hover img {
      transform: scale(1.035);
    }

    .overlay {
      position: absolute;
      left: 14px;
      right: 14px;
      bottom: 14px;
      padding: 15px;
      border-radius: 18px;
      background: linear-gradient(180deg, rgba(0,0,0,.34), rgba(0,0,0,.82));
      border: 1px solid rgba(255,255,255,.14);
      backdrop-filter: blur(8px);
    }

    .overlay strong {
      display: block;
      font-size: 17px;
      margin-bottom: 4px;
    }

    .overlay span {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.42;
    }

    .split {
      display: grid;
      grid-template-columns: .95fr 1.05fr;
      gap: 24px;
      align-items: stretch;
    }

    .text-card {
      border: 1px solid var(--border);
      border-radius: 28px;
      background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.045));
      padding: 30px;
      box-shadow: var(--shadow);
    }

    .text-card h2 {
      margin: 0 0 14px;
      font-size: clamp(30px, 4vw, 54px);
      line-height: 1.06;
    }

    .text-card p {
      color: var(--muted);
      line-height: 1.7;
      font-size: 17px;
      margin: 0 0 14px;
    }

    .checks {
      display: grid;
      gap: 12px;
      margin-top: 20px;
    }

    .check-item {
      display: flex;
      gap: 12px;
      align-items: flex-start;
      color: var(--muted);
      line-height: 1.5;
    }

    .check {
      width: 26px;
      height: 26px;
      flex: 0 0 26px;
      border-radius: 9px;
      display: grid;
      place-items: center;
      background: rgba(217,167,79,.16);
      color: var(--gold2);
      border: 1px solid rgba(217,167,79,.36);
      font-weight: 900;
    }

    .image-card {
      overflow: hidden;
      border-radius: 28px;
      border: 1px solid var(--border);
      background: var(--soft);
      box-shadow: var(--shadow);
    }

    .image-card img {
      width: 100%;
      height: 100%;
      min-height: 500px;
      object-fit: cover;
      display: block;
    }

    .process {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 14px;
      counter-reset: step;
    }

    .step {
      counter-increment: step;
      border: 1px solid var(--border);
      border-radius: 22px;
      padding: 20px;
      background: var(--soft);
      position: relative;
      min-height: 160px;
    }

    .step::before {
      content: counter(step, decimal-leading-zero);
      display: block;
      color: var(--gold2);
      font-weight: 900;
      font-size: 28px;
      margin-bottom: 10px;
    }

    .step h3 {
      margin: 0 0 8px;
      font-size: 18px;
    }

    .step p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.5;
    }

    .contact {
      margin-top: 88px;
      border: 1px solid rgba(217,167,79,.36);
      border-radius: 34px;
      padding: 38px;
      text-align: center;
      background:
        radial-gradient(circle at 16% 16%, rgba(24,120,255,.16), transparent 30%),
        radial-gradient(circle at 86% 22%, rgba(255,62,53,.15), transparent 30%),
        linear-gradient(135deg, rgba(217,167,79,.11), rgba(255,255,255,.045));
      box-shadow: var(--shadow);
    }

    .contact h2 {
      margin: 0 0 12px;
      font-size: clamp(34px, 5.5vw, 74px);
      line-height: .96;
      text-transform: uppercase;
    }

    .contact p {
      margin: 0 auto;
      color: var(--muted);
      max-width: 790px;
      line-height: 1.58;
      font-size: 19px;
    }

    .contact .cta { justify-content: center; }

    footer {
      margin-top: 44px;
      padding-top: 24px;
      border-top: 1px solid var(--border);
      color: var(--muted);
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 16px;
      font-size: 14px;
    }

    @media (max-width: 980px) {
      .hero, .split { grid-template-columns: 1fr; }
      .hero { min-height: auto; }
      .categories { grid-template-columns: repeat(2, 1fr); }
      .products { grid-template-columns: repeat(2, 1fr); }
      .process { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 640px) {
      .page { width: min(100% - 24px, 1180px); padding-top: 14px; }
      header { position: static; align-items: flex-start; flex-direction: column; margin-bottom: 22px; }
      nav { justify-content: flex-start; }
      h1 { letter-spacing: -1px; }
      .cta { flex-direction: column; }
      .btn { text-align: center; }
      .stats, .categories, .products, .process, .mini-grid { grid-template-columns: 1fr; }
      .product, .product img { min-height: 310px; }
      .image-card img { min-height: 320px; }
      .text-card, .contact { padding: 24px 18px; }
    }
  
    /* =========================================================
       AJUSTES DE INTERFACE APÓS REVISÃO DE QA
       ========================================================= */

    /* Reduz espaços excessivos entre os grandes blocos. */
    .hero {
      min-height: auto;
      padding-top: 42px;
      padding-bottom: 28px;
    }

    section {
      margin-top: 68px;
    }

    .section-head {
      margin-bottom: 38px;
    }

    /* Mais respiro entre categorias e produtos. */
    .categories {
      gap: 22px;
    }

    .products {
      gap: 30px 24px;
    }

    /* Hierarquia visual mais clara nos cards. */
    .category {
      padding: 24px;
      min-height: 170px;
      transition: transform .22s ease, border-color .22s ease, background .22s ease;
    }

    .category:hover {
      transform: translateY(-3px);
      border-color: rgba(217,167,79,.38);
      background: rgba(255,255,255,.095);
    }

    .category h3 {
      font-size: 21px;
      line-height: 1.22;
    }

    .product {
      min-height: 390px;
      isolation: isolate;
      transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
    }

    .product:hover {
      transform: translateY(-4px);
      border-color: rgba(217,167,79,.42);
      box-shadow: 0 28px 75px rgba(0,0,0,.48);
    }

    .product img {
      min-height: 390px;
    }

    .overlay {
      left: 16px;
      right: 16px;
      bottom: 16px;
      padding: 18px;
      background: linear-gradient(180deg, rgba(0,0,0,.48), rgba(0,0,0,.91));
    }

    /* Limita títulos longos a duas linhas e descrições a três. */
    .overlay strong,
    .product-title,
    .product__title,
    [data-product-title] {
      display: -webkit-box;
      overflow: hidden;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      min-height: 44px;
      font-size: 18px;
      line-height: 1.24;
      margin-bottom: 7px;
      text-wrap: balance;
    }

    .overlay span,
    .product-description,
    .product__description {
      display: -webkit-box;
      overflow: hidden;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
      line-clamp: 3;
      line-height: 1.48;
    }

    /* Hierarquia preparada para preço e desconto. */
    .product-price,
    .price,
    [data-price] {
      display: block;
      margin-top: 12px;
      font-size: 21px;
      line-height: 1.1;
      font-weight: 900;
      color: var(--gold2);
    }

    .product-old-price,
    .old-price,
    [data-old-price] {
      margin-right: 8px;
      color: var(--muted);
      font-size: 13px;
      text-decoration: line-through;
    }

    .product-discount,
    .discount,
    [data-discount] {
      display: inline-flex;
      align-items: center;
      width: fit-content;
      margin-top: 8px;
      padding: 5px 9px;
      border-radius: 999px;
      background: rgba(63,202,101,.16);
      border: 1px solid rgba(63,202,101,.36);
      color: #92f0aa;
      font-size: 12px;
      font-weight: 900;
    }

    .product-actions,
    .card-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 14px;
      flex-wrap: wrap;
    }

    .product-actions a,
    .product-actions button,
    .card-actions a,
    .card-actions button {
      min-height: 42px;
    }

    .split {
      gap: 30px;
    }

    .text-card {
      padding: 32px;
    }

    .image-card img {
      min-height: 440px;
    }

    @media (max-width: 980px) {
      section {
        margin-top: 60px;
      }

      .products {
        gap: 24px 20px;
      }
    }

    @media (max-width: 640px) {
      .hero {
        padding-top: 18px;
        padding-bottom: 12px;
      }

      section {
        margin-top: 52px;
      }

      .section-head {
        margin-bottom: 26px;
      }

      .categories,
      .products {
        gap: 20px;
      }

      .product,
      .product img {
        min-height: 340px;
      }

      .overlay {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 15px;
      }

      .overlay strong,
      .product-title,
      .product__title,
      [data-product-title] {
        min-height: auto;
        font-size: 17px;
      }

      .text-card {
        padding: 24px 20px;
      }

      .image-card img {
        min-height: 310px;
      }
    }

/* Integração com WordPress */
body.admin-bar header { top: 32px; }
.site-content { min-height: 60vh; }
.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;
}
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { width: 50px; height: 50px; border-radius: 14px; object-fit: cover; }
.menu { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.menu li { margin: 0; }
.menu a {
  display: block; text-decoration: none; color: var(--muted);
  padding: 10px 13px; border-radius: 999px; font-size: 14px;
  border: 1px solid transparent; transition: .2s;
}
.menu a:hover, .menu .current-menu-item > a {
  color: #fff; border-color: var(--border); background: rgba(255,255,255,.055);
}
.product-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.product-link {
  display: inline-flex; margin-top: 12px; padding: 10px 13px;
  border-radius: 12px; background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.17); text-decoration: none;
  font-size: 13px; font-weight: 900;
}
.product-link:hover { background: rgba(255,255,255,.17); }
.product-placeholder {
  min-height: 390px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(24,120,255,.22), rgba(217,167,79,.18));
  color: var(--muted); text-align: center; padding: 30px;
}
.wp-content-card {
  border: 1px solid var(--border); border-radius: 28px; background: var(--soft);
  padding: 30px; box-shadow: var(--shadow); color: var(--muted); line-height: 1.7;
}
.wp-content-card h1, .wp-content-card h2, .wp-content-card h3 { color: var(--text); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination a, .pagination span {
  padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 10px; text-decoration: none;
}
.notice-store {
  margin-top: 18px; color: var(--muted); font-size: 13px; line-height: 1.5;
}
.woocommerce .page-title { color: var(--text); }
.woocommerce ul.products li.product {
  border: 1px solid var(--border); border-radius: 20px;
  padding: 15px; background: var(--soft);
}
@media (max-width: 782px) {
  body.admin-bar header { top: 46px; }
}

