/*
 * HUACAN v2 — "hobby colorido" visual layer (2026-10-06).
 *
 * Why: the v1 look (Instrument Serif + Manrope, cream/terracotta, tiny
 * uppercase eyebrows, 01/02/03 numbering, square corners) is the stock
 * AI-generated "quiet editorial" template, and it clashes with the actual
 * product photography (bright, saturated, sparkly). v2 takes its colour from
 * the products instead: white ground, one vivid berry accent, deep aubergine
 * ink, gold stars, rounded friendly shapes.
 *
 * Mechanism: loaded LAST, only while the visitor has the v2 preview cookie
 * (see HP_Assets::v2_active()). It overrides the v1 tokens on :root, so every
 * component that reads var(--hp-*) follows automatically; the rest are
 * targeted overrides of v1 rules. Rollback = stop enqueueing this file.
 */

@font-face {
  font-family: 'Rubik';
  src: url('../fonts/v2-rubik-variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('../fonts/v2-nunito-sans-variable.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --hp-paper: #FFFFFF;
  --hp-cream: #FBF3F7;
  --hp-sand: #EEE3EA;
  --hp-lacquer: #B0185E;
  --hp-lacquer-hover: #8A1149;
  --hp-lacquer-on-dark: #F49AC1;
  --hp-jade: #0F7C80;
  --hp-meta: #6A5D70;
  --hp-ink: #24162E;
  --hp-meta-soft: #8B7E90;
  --hp-cream-on-dark: #D3C8D8;
  --hp-sun: #F2A900;

  --hp-font-serif: 'Rubik', 'Helvetica Neue', Arial, sans-serif;
  --hp-font-sans: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;

  --hp-radius: 14px;
  --hp-radius-sm: 10px;
}

body { color: var(--hp-ink); }

/* ---------- Headings: Rubik bold, tighter, smaller than the v1 serif sizes ---------- */
.hp-hero__headline,
.hp-editorial__heading,
.hp-craft__heading,
.hp-mosaic__title,
.hp-mosaic__name,
.hp-custom-photo__heading,
.hp-reviews__score,
.hp-newsletter__heading,
.hp-ba__heading,
.single-product .product_title,
.woocommerce-products-header__title,
.page-title,
body.single-post .entry-title,
body.page:not(.home) .entry-title,
.wp-block-post-title {
  font-family: var(--hp-font-serif) !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
}
.hp-hero__headline { font-size: 58px; line-height: 1.05; }
.hp-editorial__heading { font-size: 38px; line-height: 1.12; }
.hp-craft__heading { font-size: 36px; line-height: 1.12; }
.hp-mosaic__title { font-size: 36px; line-height: 1.1; }
.hp-mosaic__name { font-size: 30px; line-height: 1.1; }
.hp-mosaic__name--sm { font-size: 24px; }
.hp-mosaic__name--xs { font-size: 19px; }
.hp-custom-photo__heading { font-size: 54px; line-height: 1.05; }
.hp-custom-photo__heading em { font-style: normal; color: var(--hp-lacquer-on-dark); }
.hp-reviews__score { font-size: 48px; }
.hp-newsletter__heading { font-size: 32px; line-height: 1.15; }
.hp-ba__heading { font-size: 34px; line-height: 1.15; }
@media (max-width: 900px) {
  .hp-hero__headline { font-size: 38px; }
  .hp-editorial__heading, .hp-craft__heading { font-size: 28px; }
  .hp-mosaic__title, .hp-bestsellers__head .hp-mosaic__title { font-size: 28px; }
  .hp-custom-photo__heading { font-size: 36px; }
  .hp-newsletter__heading, .hp-ba__heading { font-size: 26px; }
}

/* ---------- Kill the AI-template tics ---------- */
/* Tiny uppercase section labels above every heading. */
.hp-eyebrow { display: none !important; }
/* …except in the hero, where "since 2011" is a real trust fact: show it as a pill. */
.hp-hero .hp-eyebrow {
  display: inline-flex !important;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--hp-paper);
  color: var(--hp-lacquer);
  font: 700 13px/1 var(--hp-font-sans);
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 1px 0 var(--hp-sand);
}
.hp-hero .hp-eyebrow::before { content: '✦'; color: var(--hp-sun); }
/* "01 / Diamond Painting" index labels on category tiles. */
.hp-mosaic__index { display: none; }
/* Uppercase micro-type everywhere → normal sentence case. */
.hp-btn,
.hp-text-link,
.hp-header__nav,
.hp-header__cart,
.hp-mobile-drawer nav a,
.hp-newsletter__field button,
.hp-card__badge,
.hp-ba__tag,
footer.huacan-footer-columns .huacan-footer-col h4,
.single_add_to_cart_button.button {
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* ---------- Buttons & links ---------- */
.hp-btn {
  border-radius: 999px;
  padding: 16px 30px;
  font: 700 16px/1 var(--hp-font-sans);
}
.hp-btn--primary { box-shadow: 0 6px 16px -6px rgba(176, 24, 94, .55); }
.hp-btn--secondary { padding: 15px 28px; }
.hp-text-link {
  font: 700 15px/1 var(--hp-font-sans);
  color: var(--hp-lacquer);
  border-bottom: 0;
  padding-bottom: 0;
}
.hp-text-link:hover { color: var(--hp-lacquer-hover); text-decoration: underline; text-underline-offset: 4px; }
.single_add_to_cart_button.button {
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 16px !important;
}

/* ---------- Header ---------- */
.hp-utility-bar { background: var(--hp-ink); }
.hp-utility-bar__dot { border-radius: 50%; background: var(--hp-sun); }
.hp-header { border-bottom-color: var(--hp-sand); }
.hp-header__nav { font: 700 15px/1 var(--hp-font-sans); gap: 26px; }
.hp-header__nav a:hover { border-bottom-color: transparent; }
.hp-header__dropdown { border-radius: var(--hp-radius-sm); overflow: hidden; }
.hp-header__dropdown a { font: 600 14px/1.3 var(--hp-font-sans); }
.hp-header__cart { font: 700 15px/1 var(--hp-font-sans); }
.hp-header__cart-badge { border-radius: 999px; padding: 0 6px; }
.hp-search {
  border-radius: 999px;
  border: 1px solid var(--hp-sand);
  background: var(--hp-cream);
  padding: 10px 16px;
}
.hp-search:focus-within { border-color: var(--hp-lacquer); }
.hp-mobile-drawer nav a { font: 700 16px/1 var(--hp-font-sans); }

/* ---------- Hero ---------- */
.hp-hero {
  background:
    radial-gradient(70% 90% at 0% 0%, #FDE7F1 0%, rgba(253, 231, 241, 0) 60%),
    radial-gradient(60% 80% at 100% 100%, #FFF3D6 0%, rgba(255, 243, 214, 0) 60%),
    var(--hp-cream);
}
.hp-hero__description { color: var(--hp-meta); font: 500 19px/1.6 var(--hp-font-sans); }
.hp-hero__trust { font: 700 14px/1 var(--hp-font-sans); color: var(--hp-ink); }
.hp-hero__trust .hp-star { color: var(--hp-sun); }
.hp-hero__media { overflow: hidden; }

/* ---------- Stars ---------- */
.hp-star,
.hp-card__rating .hp-star { color: var(--hp-sun); }

/* ---------- Product cards ---------- */
li.hp-card { gap: 12px; }
.hp-card__media { border-radius: var(--hp-radius); background: var(--hp-cream); }
.hp-card__badge {
  border-radius: 999px;
  padding: 6px 11px;
  font: 800 11px/1 var(--hp-font-sans);
}
.hp-card__badge--solid { background: var(--hp-lacquer); }
.hp-card__badge--outline { border-color: var(--hp-lacquer); }
.hp-card__title { font: 700 16px/1.35 var(--hp-font-sans); }
.hp-card__spec { font: 600 13px/1 var(--hp-font-sans); }
.hp-card__price { font: 800 17px/1 var(--hp-font-sans); color: var(--hp-lacquer); }
.hp-card__price del { color: var(--hp-meta); font-weight: 600; }
.hp-card__rating { font: 600 13px/1 var(--hp-font-sans); }
.hp-bestsellers__grid { --hp-card-badge-bg: var(--hp-lacquer); }

/* ---------- Editorial ("how it works") ---------- */
.hp-editorial__media img { border-radius: var(--hp-radius); }
.hp-editorial__body { color: var(--hp-meta); }
.hp-editorial__steps { border-top: 0; gap: 12px; }
.hp-editorial__step {
  border: 0;
  border-radius: var(--hp-radius);
  background: var(--hp-cream);
  padding: 20px 22px;
  align-items: center;
}
.hp-editorial__step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--hp-lacquer);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font: 800 15px/1 var(--hp-font-sans);
}
.hp-editorial__step-title { font: 800 18px/1.25 var(--hp-font-sans); }
.hp-editorial__step-body { font: 500 15px/1.5 var(--hp-font-sans); }

/* ---------- Before / after ---------- */
.hp-ba__viewer { border-radius: var(--hp-radius); }
.hp-ba__tag { border-radius: 999px; font: 800 12px/1 var(--hp-font-sans); background: rgba(36, 22, 46, .7); }
.hp-ba__handle-grip { border-radius: 50%; box-shadow: 0 2px 10px rgba(0, 0, 0, .2); }

/* ---------- Category mosaic ---------- */
.hp-mosaic__head { border-bottom: 0; padding-bottom: 0; }
.hp-mosaic__tile { border-radius: var(--hp-radius); }
.hp-mosaic__scrim {
  background: linear-gradient(to bottom, rgba(36, 22, 46, 0) 45%, rgba(36, 22, 46, .72) 100%);
  justify-content: flex-end;
  padding: 26px;
}
.hp-mosaic__count { color: #fff; opacity: .85; font: 700 14px/1 var(--hp-font-sans); }
.hp-mosaic__tile--dark { background: var(--hp-lacquer); }
.hp-mosaic__tile--dark:hover { background: var(--hp-lacquer-hover); }

/* ---------- Craft ---------- */
.hp-craft__media, .hp-craft__list { border-radius: var(--hp-radius); }
.hp-craft__item { border-bottom-color: var(--hp-sand); font: 600 15px/1.2 var(--hp-font-sans); color: var(--hp-ink); }
.hp-craft__body { color: var(--hp-meta); }

/* ---------- Custom photo (dark band) ---------- */
.hp-custom-photo { background: var(--hp-ink); }
.hp-custom-photo__media { border-radius: var(--hp-radius); }

/* ---------- Reviews ---------- */
.hp-reviews { border-bottom: 0; }
.hp-reviews__item {
  background: var(--hp-cream);
  border-radius: var(--hp-radius);
  padding: 22px;
}
.hp-reviews__item p { color: var(--hp-ink); font: 500 16px/1.6 var(--hp-font-sans); }
.hp-reviews__author { font: 700 13px/1 var(--hp-font-sans); }

/* ---------- Newsletter ---------- */
.hp-newsletter {
  background: linear-gradient(135deg, #FDE7F1 0%, #FFF3D6 100%);
}
.hp-newsletter__field {
  background: #fff;
  border: 1px solid var(--hp-sand);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
}
.hp-newsletter__field input { font: 500 16px/1 var(--hp-font-sans); border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; }
.hp-newsletter__field button {
  background: var(--hp-lacquer);
  color: #fff;
  border-radius: 999px;
  padding: 14px 22px;
  font: 700 15px/1 var(--hp-font-sans);
}
.hp-newsletter__field button:hover { background: var(--hp-lacquer-hover); color: #fff; transform: none; }

/* ---------- Footer ---------- */
footer.huacan-footer-columns .huacan-footer-col h4 { font: 800 14px/1 var(--hp-font-sans); color: #fff; }
footer.huacan-footer-columns .huacan-footer-menu a:hover { color: var(--hp-lacquer-on-dark); }
.huacan-footer-bottom { border-top-color: rgba(255, 255, 255, .1); }

/* Footer bottom bar: v1 left it boxed (narrower than the page) on a light strip. */
.huacan-footer-bottom { max-width: none !important; width: 100% !important; margin: 0 !important; }

/* ---------- Leftover accents outside the hp-* components ----------
   store-customizations.php forces Blocksy's palette-1/2 to gold (#B8862F) on
   :root with !important; html:root wins on specificity. That palette drives
   WooCommerce buttons, links, focus rings and radio/checkbox fills on PDP,
   cart and checkout. */
html:root {
  --theme-palette-color-1: #B0185E !important;
  --theme-palette-color-2: #8A1149 !important;
  --theme-palette-color-4: #24162E !important;
}
.flex-control-thumbs img.flex-active { border-color: var(--hp-lacquer) !important; }
/* variation-photo-swatches.php selected state was green (#16a34a). */
.variation-swatch-btn { border-radius: var(--hp-radius-sm); }
.variation-swatch-btn:hover { border-color: var(--hp-lacquer) !important; }
.variation-swatch-btn.is-selected { border-color: var(--hp-lacquer) !important; }
.variation-swatches--pill .variation-swatch-btn { border-radius: 999px; }
.variation-swatches--pill .variation-swatch-btn.is-selected {
  background: var(--hp-lacquer) !important;
  border-color: var(--hp-lacquer) !important;
  color: #fff !important;
}
/* Stock WooCommerce loops (cart cross-sells, "New in store"): same card language. */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 { color: var(--hp-ink) !important; font-weight: 700; }
.woocommerce ul.products li.product img { border-radius: var(--hp-radius); }

/* ---------- 2026-10-06: pedidos do dono (print da loja) ---------- */
/* logo maior */
body.hp-v2 .hp-header__logo img { height: 56px; }
@media (max-width: 900px) { body.hp-v2 .hp-header__logo img { height: 34px; } }
/* selo "Bestseller"/"New" no canto DIREITO: as fotos têm o logo "huacan" no canto esquerdo */
body.hp-v2 .hp-card__badge { left: auto; right: 14px; }
/* loja/categoria: contador sem caixa alta e fundo branco (sobrava o cinza-azulado do tema) */
body.hp-v2 .woocommerce-result-count { text-transform: none !important; letter-spacing: 0 !important; font-size: 14px !important; color: var(--hp-ink-soft, #5a4b63) !important; }
body.hp-v2.woocommerce-shop, body.hp-v2.tax-product_cat, body.hp-v2.tax-product_tag,
body.hp-v2.woocommerce-shop #main-container, body.hp-v2.tax-product_cat #main-container, body.hp-v2.tax-product_tag #main-container,
body.hp-v2.woocommerce-shop .site-main, body.hp-v2.tax-product_cat .site-main, body.hp-v2.tax-product_tag .site-main { background-color: #fff !important; }
/* celular: menos espaço branco entre o topo e o conteúdo (mesmo ajuste feito na Mujer) */
@media (max-width: 900px) {
  body.hp-v2:not(.home) .ct-container[data-vertical-spacing*="top"],
  body.hp-v2:not(.home) .ct-container-full[data-vertical-spacing*="top"] { padding-top: 18px !important; }
}

/* rodapé no celular: igual ao da Mujer — logo em cima, links em 2 colunas, sem recuo grande (pedido do dono) */
@media (max-width: 900px) {
  body.hp-v2 .huacan-footer-columns {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 32px 20px !important;
    padding: 44px 20px 36px !important;
    max-width: none !important;
  }
  body.hp-v2 .huacan-footer-columns > .huacan-footer-col { margin: 0 !important; padding: 0 !important; width: auto !important; min-width: 0; }
  body.hp-v2 .huacan-footer-columns > .huacan-footer-brand { grid-column: 1 / -1; }
  body.hp-v2 .huacan-footer-columns > .huacan-footer-col:last-child:nth-child(even) { grid-column: auto; }
  body.hp-v2 .huacan-footer-col h4 { margin: 0 0 10px !important; }
  body.hp-v2 .huacan-footer-menu li { margin: 0 0 8px !important; }
  body.hp-v2 .huacan-footer-bottom { padding: 18px 20px 24px !important; display: flex !important; flex-direction: column !important; gap: 6px !important; align-items: flex-start !important; }
}
@media (max-width: 900px) {
  body.hp-v2 .huacan-footer-menu li { margin: 0 !important; padding: 0 !important; }
  body.hp-v2 .huacan-footer-menu { gap: 2px !important; }
  body.hp-v2 .huacan-footer-menu a { display: inline-block; padding: 4px 0 !important; line-height: 1.35 !important; }
  body.hp-v2 .huacan-footer-bottom { border-top-color: rgba(255,255,255,.14) !important; }
}
/* frase sob o logo (2026-10-10): texto concreto (o que vende + frete), não a antiga frase poética */
body.hp-v2 .huacan-footer-tagline { display: block !important; margin: 14px 0 0 !important; max-width: 270px; font: 400 14px/1.55 var(--hp-font-sans) !important; color: rgba(255,255,255,.72) !important; }

/* botão principal: o hover do link do tema deixava o texto da mesma cor do fundo ("Shop all kits" sumia) */
body.hp-v2 a.hp-btn--primary:hover, body.hp-v2 a.hp-btn--primary:focus, body.hp-v2 a.hp-btn--primary:active { color: #fff !important; }

/* página de produto: "CATEGORIES:" sem caixa alta e preço na cor da marca */
body.hp-v2.single-product .product_meta, body.hp-v2.single-product .product_meta * { text-transform: none !important; letter-spacing: 0 !important; }
body.hp-v2.single-product .product_meta { font-size: 14px !important; color: var(--hp-ink) !important; }
body.hp-v2.single-product .product_meta a { color: var(--hp-lacquer) !important; font-weight: 600; }
body.hp-v2.single-product .summary .price,
body.hp-v2.single-product .summary .price ins,
body.hp-v2.single-product .summary .price .amount { color: var(--hp-ink) !important; }
body.hp-v2.single-product .summary .price del, body.hp-v2.single-product .summary .price del .amount { color: #8a7f90 !important; }

/* rodapé no computador centralizado (pedido do dono): colunas distribuídas numa faixa central de ~1040px */
@media (min-width: 901px) {
  body.hp-v2 footer.huacan-footer-columns {
    justify-content: space-between !important;
    padding-left: max(var(--hp-gutter-desktop, 40px), calc((100% - 1040px) / 2)) !important;
    padding-right: max(var(--hp-gutter-desktop, 40px), calc((100% - 1040px) / 2)) !important;
  }
  body.hp-v2 .huacan-footer-bottom { justify-content: center !important; }
}
body.hp-v2.single-product, body.hp-v2.single-product #main-container, body.hp-v2.single-product .site-main { background-color: #fff !important; }

/* 15/10/2026 (Claude): cabeçalho cabe em telas de 1025–1560px. Antes a logo sumia abaixo de ~1400px e o carrinho saía da tela abaixo de ~1280px (PT/ES pior). Logo nunca encolhe; menu, busca e margem lateral ficam mais compactos em telas médias; "Mais Vendidos" some só até 1180px. */
.hp-header__logo{flex:0 0 auto!important}@media(min-width:1025px) and (max-width:1560px){.hp-header__nav{gap:15px!important;font-size:14px!important}.hp-header__nav--right .hp-search{width:104px!important;min-width:0!important;flex:0 0 104px!important}.hp-header__nav--right .hp-search input{min-width:0!important;width:100%!important}.hp-header__nav--right .hp-search input::placeholder{color:transparent!important}}@media(min-width:1025px) and (max-width:1360px){.hp-header__row{padding-left:32px!important;padding-right:32px!important}.hp-header__nav{gap:13px!important;font-size:13.5px!important}.hp-header__nav--right .hp-search{width:84px!important;flex:0 0 84px!important}}@media(min-width:1025px) and (max-width:1180px){.hp-header__nav--right a[href*="orderby=popularity"]{display:none!important}.hp-header__nav--right .hp-search{width:64px!important;flex:0 0 64px!important}}
