:root {
  --brand-green: #06402b;
  --brand-gold: #d3af37;
}

/* Impede espaços e rolagem horizontal indesejada */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ========================================
   CABEÇALHO
   ======================================== */

.site-header {
  background: var(--brand-green);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.header-main {
  grid-template-columns: minmax(270px, 300px) minmax(260px, 1fr) 190px;
  gap: 24px;
}

.site-header .brand {
  width: 100%;
}

.site-header .brand strong {
  color: var(--brand-gold);
  font-size: 22px;
  white-space: nowrap;
}

.site-header .brand span {
  color: rgba(255, 255, 255, 0.8);
}

.header-search {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.header-search input {
  color: #18140f;
}

.header-search input::placeholder {
  color: #716b63;
}

.header-search button {
  color: var(--brand-green);
}

.header-action span {
  color: rgba(255, 255, 255, 0.7);
}

.header-action strong,
.cart-trigger {
  color: #ffffff;
}

.cart-count {
  color: var(--brand-green);
  background: var(--brand-gold);
}

.site-header .icon-button {
  color: #ffffff;
}

/* Menu de categorias */

.category-nav {
  border-top-color: rgba(255, 255, 255, 0.15);
}

.category-nav .container {
  justify-content: flex-start;
}

.category-nav a {
  color: #ffffff;
}

.category-nav a:hover {
  color: var(--brand-gold);
}

/* ========================================
   BANNER PRINCIPAL
   ======================================== */

.hero {
  position: relative;
  width: 100%;
  min-height: clamp(480px, 39.25vw, 628px);

  background-image:
    linear-gradient(
      90deg,
      rgba(6, 64, 43, 0.9) 0%,
      rgba(6, 64, 43, 0.65) 42%,
      rgba(6, 64, 43, 0.18) 100%
    ),
    url("../img/banner-home.jpg");

  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.hero-grid {
  min-height: inherit;
  grid-template-columns: minmax(0, 650px) 1fr;
}

.hero-copy {
  max-width: 650px;
}

.hero .eyebrow {
  color: var(--brand-gold);
}

.hero h1 {
  color: #ffffff;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.25);
}

.hero-copy > p {
  color: rgba(255, 255, 255, 0.9);
}

.hero .button-primary {
  color: var(--brand-green);
  background: var(--brand-gold);
  border-color: var(--brand-gold);
}

.hero .button-primary:hover {
  color: var(--brand-green);
  background: #e2c35f;
}

.hero .button-ghost {
  color: #ffffff;
  background: rgba(6, 64, 43, 0.25);
  border-color: rgba(255, 255, 255, 0.75);
}

.hero .button-ghost:hover {
  background: rgba(6, 64, 43, 0.5);
}

.hero-proof {
  color: rgba(255, 255, 255, 0.9);
}

/* Segurança caso o HTML antigo ainda tenha o vetor */

.hero-art {
  display: none;
}

/* ========================================
   PROTEÇÕES GERAIS DE RESPONSIVIDADE
   ======================================== */

.product-card,
.product-card-body,
.product-info,
.gallery {
  min-width: 0;
}

.product-card h3 a,
.product-info h1,
.rich-text {
  overflow-wrap: anywhere;
}

/* ========================================
   TABLETS E CELULARES
   ======================================== */

@media (max-width: 900px) {
  .header-main {
    grid-template-columns: 40px minmax(0, 1fr) 50px;
    gap: 6px;
  }

  .site-header .brand {
    width: 100%;
    max-width: 100%;
    align-items: center;
    text-align: center;
  }

  .site-header .brand strong {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(13px, 3.8vw, 18px);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header .brand span {
    font-size: 6px;
    letter-spacing: 0.22em;
  }

  .category-nav {
    max-height: calc(100vh - 102px);
    overflow-y: auto;
  }

  .category-nav .container {
    max-height: calc(100vh - 125px);
    overflow-y: auto;
  }

  .hero {
    min-height: 600px;
    background-position: 65% center;

    background-image:
      linear-gradient(
        0deg,
        rgba(6, 64, 43, 0.96) 0%,
        rgba(6, 64, 43, 0.78) 45%,
        rgba(6, 64, 43, 0.25) 100%
      ),
      url("../img/banner-home.jpg");
  }

  .hero-grid {
    display: flex;
    align-items: flex-end;
    min-height: inherit;
  }

  .hero-copy {
    width: 100%;
    padding: 70px 0 48px;
  }
}

/* ========================================
   CELULARES PEQUENOS
   ======================================== */

@media (max-width: 600px) {
  .header-main {
    grid-template-columns: 38px minmax(0, 1fr) 42px;
  }

  .site-header .brand strong {
    font-size: clamp(12px, 3.9vw, 16px);
  }

  .hero {
    min-height: 560px;
  }

  .hero-copy {
    padding: 60px 0 38px;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 42px);
    line-height: 1.08;
  }

  .hero-copy > p {
    font-size: 14px;
    line-height: 1.55;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-proof {
    gap: 8px;
  }

  .product-grid,
  .product-grid-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .product-card h3 {
    font-size: 14px;
    line-height: 1.3;
  }

  .category-card h3 {
    font-size: clamp(16px, 5vw, 20px);
    overflow-wrap: anywhere;
  }

  .detail-actions {
    grid-template-columns: 1fr;
  }

  .quantity-picker {
    width: 100%;
  }
}

/* ========================================
   PALETA GLOBAL — VERDE E DOURADO
   ======================================== */

:root {
  --brand-green: #06402b;
  --brand-green-dark: #032d20;
  --brand-green-deep: #021c14;
  --brand-green-medium: #0d6849;
  --brand-green-light: #edf5f0;
  --brand-green-light2: #cedfd4;

  --brand-gold: #d3af37;
  --brand-gold-dark: #9d7f1c;
  --brand-gold-light: #ead889;

  /* Substitui as variáveis marrons do style.css */
  --ink: #052e21;
  --muted: #607269;
  --cream: #f1f7f3;
  --paper: #ffffff;
  --line: #d4e3da;
  --gold: #d3af37;
  --gold-dark: #9d7f1c;
  --green: #0d6849;
  --shadow: 0 18px 50px rgba(6, 64, 43, 0.12);
}

/* Faixa superior */

.announcement {
  color: #f8efce;
  background: var(--brand-green-deep);
}

.announcement-track i {
  color: var(--brand-gold);
}

/* Cabeçalho */

.site-header {
  background: var(--brand-green);
  border-bottom-color: rgba(211, 175, 55, 0.22);
}

.category-nav {
  border-top-color: rgba(211, 175, 55, 0.22);
}

.category-nav a:hover {
  color: var(--brand-gold);
}

.cart-count {
  color: var(--brand-green);
  background: var(--brand-gold);
}

/* Botões principais */

.button-primary {
  color: #ffffff;
  background: var(--brand-green);
  border-color: var(--brand-green);
}

.button-primary:hover {
  color: var(--brand-green-deep);
  background: var(--brand-gold);
  border-color: var(--brand-gold);
}

.button-ghost {
  color: var(--brand-green);
  border-color: var(--brand-green);
}

.button-outline {
  color: var(--brand-green);
  background: #ffffff;
  border-color: var(--brand-green);
}

.button-card {
  color: var(--brand-green);
  background: #ffffff;
  border-color: var(--brand-green);
}

.button-card:hover {
  color: #ffffff;
  background: var(--brand-green);
}

/* Mantém os botões do banner adequados para a fotografia */

.hero .button-primary {
  color: var(--brand-green);
  background: var(--brand-gold);
  border-color: var(--brand-gold);
}

.hero .button-primary:hover {
  color: var(--brand-green-deep);
  background: var(--brand-gold-light);
  border-color: var(--brand-gold-light);
}

.hero .button-ghost {
  color: #ffffff;
  background: rgba(6, 64, 43, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
}

.hero .button-ghost:hover {
  color: var(--brand-gold-light);
  background: rgba(3, 45, 32, 0.75);
  border-color: var(--brand-gold);
}

/* Seção de categorias */

.categories-section {
  background: var(--brand-green-light);
}

.category-tone-1 {
  color: #ffffff;
  background: var(--brand-green);
}

.category-tone-2 {
  color: var(--brand-green-deep);
  background: var(--brand-gold);
}

.category-tone-3 {
  color: #ffffff;
  background: var(--brand-green-medium);
}

.category-tone-4 {
  color: var(--brand-green-deep);
  background: var(--brand-gold-light);
}

.category-card::after {
  border-color: rgba(255, 255, 255, 0.3);
}

/* Produtos */

.product-image,
.gallery-main,
.gallery-thumbs button,
.cart-item img {
  background: #f2f7f4;
}

.product-brand {
  color: var(--brand-gold-dark);
}

.product-badge {
  color: #ffffff;
  background: var(--brand-green);
}

.product-badge.sold-out {
  background: #697b72;
}

/* Seção de funcionamento */

.how-it-works {
  color: #ffffff;
  background: var(--brand-green-deep);
}

.eyebrow.light,
.steps b {
  color: var(--brand-gold);
}

.steps > div {
  border-color: rgba(211, 175, 55, 0.22);
}

.steps p {
  color: #bdcbc3;
}

/* Banner das páginas internas */

.page-banner {
  background:
    linear-gradient(
      110deg,
      var(--brand-green-light) 0%,
      #ffffff 58%,
      rgba(211, 175, 55, 0.2) 100%
    );
}

/* Área de descrição do produto */

.description-section,
.empty-state {
  background: var(--brand-green-light);
}

.rich-text {
  color: #52655b;
}

/* Filtros e formulários */

.filters-title,
.filter-group,
.catalog-toolbar {
  border-color: var(--line);
}

.filter-group a.active,
.filter-group a:hover {
  color: var(--brand-green);
}

select,
.mobile-filter-search input {
  color: var(--brand-green-deep);
  background: #ffffff;
  border-color: var(--line);
}

.mobile-filter-search button {
  color: #ffffff;
  background: var(--brand-green);
}

/* Página individual */

.detail-price,
.detail-benefits {
  border-color: var(--line);
}

.detail-benefits b {
  color: var(--brand-gold-dark);
}

.quantity-picker,
.gallery-thumbs button {
  border-color: var(--line);
}

.gallery-thumbs button.active {
  border-color: var(--brand-gold-dark);
}

/* Carrinho */

.cart-drawer {
  background: #ffffff;
}

.cart-header {
  border-color: var(--line);
}

.cart-summary {
  background: var(--brand-green-light);
  border-color: var(--line);
}

.empty-bag {
  color: var(--brand-gold);
}

.toast {
  color: #ffffff;
  background: var(--brand-green);
}

/* Rodapé */

.site-footer {
  color: #dce8e1;
  background: var(--brand-green-deep);
}

.site-footer .brand span {
  color: var(--brand-gold);
}

.footer-grid h3 {
  color: var(--brand-gold-light);
}

.footer-grid p,
.footer-grid a:not(.brand) {
  color: #aebdb5;
}

.footer-grid a:not(.brand):hover {
  color: var(--brand-gold);
}

.footer-bottom {
  color: #87998f;
  border-top-color: rgba(211, 175, 55, 0.2);
}

/* Mensagens do sistema */

.flash {
  color: var(--brand-green-deep);
  background: #fffbea;
  border-color: var(--brand-gold);
}

.flash-success {
  color: var(--brand-green-deep);
  background: var(--brand-green-light);
  border-color: var(--brand-green-medium);
}

