/*
Theme Name: 4chet
Theme URI: https://4chet.com
Author: 4chet
Description: Tema do marketplace 4chet. Header roxo e amarelo, busca, hero de ofertas, categorias, produtos e lojas em destaque.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: chet4
*/

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

:root {
  --navy: #5C3D8F;
  --navy-mid: #6A4A9E;
  --orange: #F2C233;
  --orange-light: #F5CF50;
  --surface: #F5F5F3;
  --border: #E8E8E6;
  --text: #1A1A1A;
  --muted: #6B7080;
  --white: #FFFFFF;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--surface);
  color: var(--text);
  min-height: 100vh;
}

/* ===== HEADER ===== */
.header-top {
  background: var(--navy);
  padding: 10px 0 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-dots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 28px;
  height: 28px;
}

.logo-dots span {
  background: var(--orange);
  border-radius: 50%;
  display: block;
}

.logo-text {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 26px;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1;
}

.search-wrap {
  flex: 1;
  display: flex;
  gap: 0;
}

.search-wrap input {
  flex: 1;
  height: 44px;
  padding: 0 18px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  border: none;
  outline: none;
  border-radius: 10px 0 0 10px;
  color: var(--text);
}

.search-wrap button {
  background: var(--orange);
  border: none;
  height: 44px;
  padding: 0 18px;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}

.search-wrap button:hover { background: var(--orange-light); }

.search-wrap button svg { display: block; }

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

.hbtn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  border-radius: 10px;
  padding: 8px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
  text-decoration: none;
}

.hbtn:hover { background: rgba(255,255,255,0.18); }

.hbtn-primary {
  background: var(--orange);
  border-color: var(--orange);
  font-weight: 600;
}

.hbtn-primary:hover { background: var(--orange-light); border-color: var(--orange-light); }

.cart-badge {
  background: var(--orange);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -4px;
  margin-top: -16px;
}

/* Nav cats */
.header-nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 4px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.header-nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: 8px 8px 0 0;
  transition: all 0.15s;
  white-space: nowrap;
}

.header-nav a:hover, .header-nav a.active {
  background: rgba(255,255,255,0.1);
  color: white;
}

/* ===== HERO BANNER ===== */
.hero {
  max-width: 1240px;
  margin: 20px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 12px;
}

.hero-main {
  background: linear-gradient(135deg, var(--navy) 0%, #4A2D7A 100%);
  border-radius: 20px;
  padding: 40px 48px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 280px;
}

.hero-main::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(242,194,51,0.15);
}

.hero-main::after {
  content: '';
  position: absolute;
  bottom: -80px; right: 180px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(242,194,51,0.09);
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-title {
  font-family: 'Nunito', sans-serif;
  font-size: 44px;
  font-weight: 900;
  color: white;
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 28px;
  line-height: 1.5;
}

.hero-cta {
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 100px;
  padding: 14px 30px;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.hero-cta:hover { background: var(--orange-light); transform: translateY(-1px); }

.hero-visual {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 400px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero-mascot-img {
  height: 340px;
  width: auto;
  display: block;
  filter: invert(1) brightness(1.1);
  mix-blend-mode: screen;
  position: relative;
  bottom: 0;
  transform: scaleX(-1);
  clip-path: inset(0 0 32px 0);
}

.hero-badges {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.hero-tag {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: white;
}

.hero-price-bubble {
  background: var(--orange);
  border-radius: 20px;
  padding: 14px 20px;
  text-align: center;
}

.hero-price-bubble .old { font-size: 11px; color: rgba(255,255,255,0.65); text-decoration: line-through; }
.hero-price-bubble .new { font-family: 'Nunito', sans-serif; font-size: 24px; font-weight: 900; color: white; }

/* Side banners */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-side-card {
  flex: 1;
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 128px;
  position: relative;
  overflow: hidden;
}

.hero-side-card.a { background: var(--orange); }
.hero-side-card.b { background: #1A1A2E; }

.hero-side-card::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.hero-side-card h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  font-weight: 900;
  color: white;
  line-height: 1.25;
}

.hero-side-card span {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

.side-cta {
  background: rgba(255,255,255,0.18);
  border: none;
  border-radius: 100px;
  padding: 6px 14px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  width: fit-content;
}

/* ===== CATEGORIES ===== */
.section {
  max-width: 1240px;
  margin: 0 auto 32px;
  padding: 0 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--navy);
}

.see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 100px;
  transition: background 0.15s;
}

.see-all:hover { background: rgba(242,194,51,0.10); }

.cats-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}

.cat-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.cat-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242,194,51,0.15);
}

.cat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #EEF0F8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-icon.orange { background: rgba(242,194,51,0.12); }
.cat-icon.navy { background: rgba(92,61,143,0.09); }

.cat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  line-height: 1.3;
}

/* ===== FLASH DEALS ===== */
.flash-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.flash-badge {
  background: var(--orange);
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
  border-radius: 100px;
  padding: 5px 14px;
  letter-spacing: 0.3px;
}

.flash-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.timer-block {
  background: var(--navy);
  color: white;
  border-radius: 7px;
  padding: 3px 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 900;
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.prod-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.prod-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(92,61,143,0.12);
}

.prod-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.prod-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--orange);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 100px;
  padding: 3px 10px;
}

.prod-badge.free { background: #17A85A; }

.prod-info { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 4px; }

.prod-category { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }

.prod-name {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.35;
  margin-top: 2px;
}

.prod-price-row { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }

.prod-price {
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--navy);
}

.prod-old {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
}

.prod-installments { font-size: 11px; color: #17A85A; font-weight: 500; margin-top: 2px; }

.prod-cta {
  margin: 10px 14px 14px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s;
  width: calc(100% - 28px);
}

.prod-cta:hover { background: var(--orange); }

/* ===== FEATURED SELLERS ===== */
.sellers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.seller-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.seller-card:hover {
  border-color: var(--navy);
  box-shadow: 0 4px 16px rgba(92,61,143,0.09);
}

.seller-avatar {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: white;
}

.seller-name {
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
}

.seller-meta { font-size: 12px; color: var(--muted); }

.seller-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #17A85A;
}

/* ===== PROMO BANNER ===== */
.promo-strip {
  max-width: 1240px;
  margin: 0 auto 32px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.promo-card {
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.promo-card.a { background: var(--navy); }
.promo-card.b { background: var(--orange); }
.promo-card.c { background: #1A1A2E; }

.promo-card::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -40px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.promo-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.6); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
.promo-title { font-family: 'Nunito', sans-serif; font-size: 22px; font-weight: 900; color: white; line-height: 1.2; margin-bottom: 14px; }
.promo-btn { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2); border-radius: 100px; padding: 8px 18px; color: white; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-block; transition: background 0.15s; }
.promo-btn:hover { background: rgba(255,255,255,0.25); }


/* ===== MASCOT SECTION ===== */
.mascot-section {
  background: var(--navy);
  padding: 60px 24px;
  margin-bottom: 0;
}

.mascot-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: center;
}

.mascot-image-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 280px;
  position: relative;
}

.mascot-big-img {
  height: 280px;
  width: auto;
  display: block;
  filter: invert(1) brightness(1.05);
  mix-blend-mode: screen;
  transform: scaleX(-1);
  clip-path: inset(0 0 32px 0);
}

.mascot-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.mascot-heading {
  font-family: 'Nunito', sans-serif;
  font-size: 42px;
  font-weight: 900;
  color: white;
  line-height: 1.1;
  margin-bottom: 16px;
}

.mascot-desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin-bottom: 28px;
}

.mascot-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mascot-pill {
  background: rgba(242,194,51,0.18);
  border: 1.5px solid rgba(242,194,51,0.4);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 48px 0 24px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 220px repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo { margin-bottom: 14px; }

.footer-brand p {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,0.5);
}

.footer-col h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13px; transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--orange); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

.footer-badges { display: flex; gap: 8px; }
.footer-badge {
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
}

/* SVG icons helper */
svg { vertical-align: middle; }

/* ===== PAGINAS INTERNAS (posts, paginas, busca, 404) ===== */
.chet-content { max-width: 880px; margin: 32px auto 48px; padding: 0 24px; }
.chet-content article { background: var(--white); border: 1.5px solid var(--border); border-radius: 16px; padding: 28px 32px; margin-bottom: 16px; }
.chet-content h1, .chet-content h2 { font-family: 'Nunito', sans-serif; font-weight: 900; color: var(--navy); line-height: 1.2; margin-bottom: 12px; }
.chet-content h1 { font-size: 30px; }
.chet-content h2 { font-size: 22px; }
.chet-content h2 a { color: inherit; text-decoration: none; }
.chet-content h2 a:hover { color: var(--orange); }
.chet-content p, .chet-content li { line-height: 1.7; margin-bottom: 12px; }
.chet-content ul, .chet-content ol { padding-left: 22px; }
.chet-content a { color: var(--navy); }
.chet-content img { max-width: 100%; height: auto; border-radius: 10px; }
.chet-meta { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.chet-content .nav-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.header-nav a.current-menu-item, .header-nav a.current_page_item { background: rgba(255,255,255,0.1); color: white; }
.header-nav { overflow-x: auto; }
@media (max-width: 960px) {
  .header-main { flex-wrap: wrap; }
  .search-wrap { order: 3; flex-basis: 100%; }
  .hero { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: repeat(4, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
