/*
Theme Name: Roavi
Theme URI: https://roavi.com.br
Description: Tema da Roavi — child theme do Storefront com a identidade da marca (móveis e decoração): paleta oficial, tipografia Karibu e ajustes de vitrine, produto e checkout.
Author: Roavi
Template: storefront
Version: 1.2.2
Text Domain: roavi
*/

/* ===== Fonte da marca: Karibu ===== */
@font-face { font-family: 'Karibu'; src: url('fonts/Karibu-Book.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Karibu'; src: url('fonts/Karibu-DemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Karibu'; src: url('fonts/Karibu-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Karibu'; src: url('fonts/Karibu-Black.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --wine: #7b4d5a;
  --wine-dark: #653d49;
  --terra: #e18b62;
  --terra-dark: #c9724a;
  --olive: #776e10;
  --sand: #e0c6a6;
  --slate: #4e5f6a;
  --ink: #2e2429;
  --cream: #f7f1e8;
}

/* ===== Tipografia ===== */
body,
button,
input,
select,
optgroup,
textarea,
.site-title,
p,
.price,
.woocommerce-Price-amount {
  font-family: 'Karibu', system-ui, -apple-system, sans-serif;
}
body {
  color: var(--ink);
  background: #fff;
}
h1, h2, h3, h4, h5, h6,
.site-title,
.woocommerce-loop-product__title,
.product_title {
  font-family: 'Karibu', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
a { color: var(--wine); }
a:hover { color: var(--wine-dark); }

/* ===== Cabeçalho (vinho, marca) ===== */
.site-header {
  background-color: var(--wine);
  border-bottom: 3px solid var(--terra);
}
.site-header,
.site-header a,
.site-title a,
.site-branding,
.main-navigation ul li a,
.site-header .widget,
.site-header .widget a,
.site-header-cart .amount {
  color: #f4e7dd;
}
.main-navigation ul li a:hover,
.site-header a:hover,
.site-title a:hover {
  color: #fff;
}
.site-search .widget_product_search input[type='search'],
.site-header .widget_product_search input[type='search'] {
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  border: none;
}

/* ===== Botões / CTAs ===== */
button,
.button,
input[type='button'],
input[type='reset'],
input[type='submit'],
.added_to_cart,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce input.button.alt {
  background-color: var(--wine);
  color: #fff;
  border-radius: 9px;
  font-weight: 600;
  border: none;
}
button:hover,
.button:hover,
.added_to_cart:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit:hover {
  background-color: var(--terra);
  color: #3a2114;
}

/* ===== Selo de promoção + preços ===== */
.woocommerce span.onsale {
  background-color: var(--terra);
  color: #3a2114;
  border-radius: 999px;
  font-weight: 700;
}
.price,
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price {
  color: var(--ink);
  font-weight: 600;
}
.woocommerce ins,
.woocommerce div.product p.price ins {
  text-decoration: none;
  color: var(--wine);
  font-weight: 700;
}

/* ===== Vitrine / cards de produto ===== */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-weight: 700;
  font-size: 1rem;
}

/* ===== Rodapé (vinho) ===== */
.site-footer {
  background-color: var(--wine);
  color: #f0ddd4;
}
.site-footer a {
  color: #f4e7dd;
}
.site-footer a:hover {
  color: #fff;
}

/* ===== Acessibilidade ===== */
a:focus,
button:focus,
.button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}

/* ======================================================================
   HOME "Galeria Quente" — larguras Karibu + seções (escopo .rv-home)
   ====================================================================== */
@font-face { font-family: 'Karibu'; src: url('fonts/Karibu-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Karibu Expanded'; src: url('fonts/KaribuExpanded-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Karibu Expanded'; src: url('fonts/KaribuExpanded-Black.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Karibu Condensed'; src: url('fonts/KaribuCondensed-DemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Karibu Condensed'; src: url('fonts/KaribuCondensed-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

/* reset do container do Storefront só na home, pra permitir seções full-bleed */
.home #content { padding-top: 0 !important; }
.home .site-content .col-full { max-width: none !important; margin: 0 !important; padding: 0 !important; width: 100% !important; }
.rv-home { overflow-x: clip; }
.home #primary,
.home .content-area { margin: 0 !important; padding: 0 !important; width: 100% !important; float: none !important; }
.home .entry-header,
.home .page-title,
.home .storefront-breadcrumb { display: none !important; }

.rv-home { --paper: #fbf7f0; --cream: #f7f1e8; --cream-2: #efe6d6; --ink: #2a2126; --ink-soft: #6d5f64; }
.rv-home { font-family: 'Karibu', system-ui, sans-serif; color: var(--ink); background: var(--paper); }
.rv-home .rv-wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.rv-home .rv-eyebrow { font-family: 'Karibu Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .28em; font-size: .78rem; color: var(--terra-dark); }
.rv-home .rv-btn { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; padding: 15px 28px; border-radius: 999px; font-size: 1rem; transition: .2s; text-decoration: none; line-height: 1; }
.rv-home .rv-btn-wine { background: var(--wine); color: #fff; }
.rv-home .rv-btn-wine:hover { background: var(--wine-dark); color: #fff; }
.rv-home .rv-btn-ghost { border: 1.5px solid currentColor; color: var(--ink); background: transparent; }
.rv-home .rv-btn-ghost:hover { background: var(--ink); color: var(--paper); }
.rv-home .rv-ghost-light { color: var(--cream); }
.rv-home .rv-ghost-light:hover { background: var(--cream); color: var(--wine); }
.rv-home .rv-sparks { display: inline-flex; gap: 6px; align-items: center; }
.rv-home .rv-sparks i { width: 13px; height: 13px; background: var(--terra); display: block; }
.rv-home .rv-sparks i:nth-child(2) { transform: rotate(45deg); width: 11px; height: 11px; }
.rv-home .rv-sparks i:nth-child(3) { width: 22px; height: 11px; }

/* hero */
.rv-home .rv-hero { background: var(--cream); }
.rv-home .rv-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; min-height: 78vh; padding-top: 56px; padding-bottom: 56px; }
.rv-home .rv-h1 { font-family: 'Karibu Expanded', sans-serif; font-weight: 800; font-size: 5rem; line-height: .98; letter-spacing: -.02em; margin: 22px 0 24px; color: var(--ink); }
.rv-home .rv-h1 em { font-style: normal; color: var(--wine); }
.rv-home .rv-sub { font-size: 1.25rem; color: var(--ink-soft); max-width: 30ch; margin-bottom: 34px; }
.rv-home .rv-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.rv-home .rv-hero-visual { position: relative; aspect-ratio: 4/5; border-radius: 26px; overflow: hidden; background: linear-gradient(150deg, var(--sand), #d7a884 55%, var(--terra)); box-shadow: 0 40px 80px -30px rgba(123,77,90,.5); }
.rv-home .rv-hero-visual .rv-mono { position: absolute; inset: 0; display: grid; place-items: center; opacity: .16; }
.rv-home .rv-hero-visual .rv-mono b { font-family: 'Karibu Expanded'; font-weight: 800; font-size: 20rem; color: #fff; line-height: 1; }
.rv-home .rv-cap { position: absolute; left: 24px; bottom: 22px; color: #3a2114; }
.rv-home .rv-cap .t { font-family: 'Karibu Condensed'; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; }
.rv-home .rv-cap .n { font-weight: 800; font-size: 1.4rem; margin-top: 2px; }
.rv-home .rv-float { position: absolute; top: 26px; right: 26px; }
.rv-home .rv-float i { width: 24px; height: 24px; background: #fff; display: block; margin-bottom: 10px; }
.rv-home .rv-float i:nth-child(2) { transform: rotate(45deg); width: 20px; height: 20px; margin-left: 6px; }

/* seções */
.rv-home .rv-sec { padding: 100px 0; }
.rv-home .rv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 44px; }
.rv-home .rv-h2 { font-family: 'Karibu Expanded'; font-weight: 700; font-size: 2.8rem; letter-spacing: -.02em; line-height: 1; color: var(--ink); }
.rv-home .rv-amb { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rv-home .rv-amb a { border-radius: 20px; padding: 26px; min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; transition: .25s; color: var(--ink); text-decoration: none; }
.rv-home .rv-amb a:hover { transform: translateY(-6px); }
.rv-home .rv-amb a:nth-child(1) { background: var(--sand); }
.rv-home .rv-amb a:nth-child(2) { background: #dbe0e2; }
.rv-home .rv-amb a:nth-child(3) { background: #e7e2c6; }
.rv-home .rv-amb a:nth-child(4) { background: var(--cream-2); }
.rv-home .rv-amb .k { font-family: 'Karibu Condensed'; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--terra-dark); }
.rv-home .rv-amb .nm { font-weight: 800; font-size: 1.5rem; margin-top: 4px; }
.rv-home .rv-amb .go { margin-top: 10px; font-weight: 600; color: var(--wine); }

/* manifesto full-bleed */
.rv-home .rv-manifesto { background: var(--wine); color: var(--cream); text-align: center; padding: 120px 0; }
.rv-home .rv-manifesto .rv-sparks { justify-content: center; margin-bottom: 26px; }
.rv-home .rv-h2-big { font-family: 'Karibu Expanded'; font-weight: 800; font-size: 4.2rem; line-height: 1.02; letter-spacing: -.02em; max-width: 16ch; margin: 0 auto 22px; }
.rv-home .rv-manifesto p { font-weight: 300; font-size: 1.3rem; color: #e6d6ce; max-width: 44ch; margin: 0 auto 34px; }

/* destaque */
.rv-home .rv-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.rv-home .rv-feat-visual { aspect-ratio: 1/1; border-radius: 24px; background: linear-gradient(160deg, #efe3d2, var(--sand)); position: relative; overflow: hidden; box-shadow: 0 30px 70px -34px rgba(123,77,90,.4); }
.rv-home .rv-feat-visual .rv-mono { position: absolute; inset: 0; display: grid; place-items: center; opacity: .12; }
.rv-home .rv-feat-visual .rv-mono b { font-family: 'Karibu Expanded'; font-weight: 800; font-size: 14rem; color: var(--wine); }
.rv-home .rv-fcap { position: absolute; left: 24px; bottom: 22px; color: #6b4a2f; font-family: 'Karibu Condensed'; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; }
.rv-home .rv-h3 { font-family: 'Karibu Expanded'; font-weight: 700; font-size: 2.5rem; line-height: 1.02; letter-spacing: -.02em; margin: 14px 0 10px; }
.rv-home .rv-price { font-size: 1.55rem; font-weight: 700; color: var(--wine); margin-bottom: 22px; }
.rv-home .rv-price span { font-size: 1rem; color: var(--ink-soft); font-weight: 400; }
.rv-home .rv-ticks { list-style: none; margin: 0 0 30px; padding: 0; }
.rv-home .rv-ticks li { display: flex; gap: 12px; align-items: center; padding: 9px 0; color: var(--ink-soft); font-size: 1.05rem; border-bottom: 1px solid #ece2d3; }
.rv-home .rv-ticks li b { color: var(--terra); font-weight: 800; }

/* confiança */
.rv-home .rv-trust { background: var(--cream-2); padding: 90px 0; }
.rv-home .rv-tr3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.rv-home .rv-tr3 .rv-sparks { margin-bottom: 16px; }
.rv-home .rv-tr3 h4 { font-weight: 800; font-size: 1.3rem; margin-bottom: 8px; max-width: 18ch; }
.rv-home .rv-tr3 p { color: var(--ink-soft); max-width: 30ch; }

/* newsletter */
.rv-home .rv-news { background: var(--terra); color: #3a2114; text-align: center; padding: 100px 0; }
.rv-home .rv-news .rv-h2-big { color: #3a2114; }
.rv-home .rv-news p { font-size: 1.2rem; margin-bottom: 30px; color: #5c3a1f; }
.rv-home .rv-newsform { display: flex; gap: 12px; max-width: 520px; margin: 0 auto; justify-content: center; }
.rv-home .rv-newsform input { flex: 1; padding: 16px 20px; border-radius: 999px; border: none; font: inherit; font-size: 1rem; }

@media (max-width: 900px) {
  .rv-home .rv-hero-grid, .rv-home .rv-feature-grid { grid-template-columns: 1fr; }
  .rv-home .rv-amb, .rv-home .rv-tr3 { grid-template-columns: 1fr 1fr; }
  .rv-home .rv-h1 { font-size: 3.2rem; }
  .rv-home .rv-h2-big { font-size: 2.6rem; }
}

/* ======================================================================
   HEADER e FOOTER da Roavi (substituem os do Storefront)
   ====================================================================== */
.rv-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 247, 240, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid #e9ddce;
}
.rv-header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 40px; height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.rv-brand {
  font-family: 'Karibu', sans-serif; font-weight: 800; font-size: 1.55rem;
  letter-spacing: .07em; color: var(--wine); text-decoration: none; line-height: 1;
  display: inline-flex; align-items: center; gap: 11px;
}
.rv-brand:hover { color: var(--wine-dark); }
.rv-logo { width: 36px; height: 36px; border-radius: 8px; display: block; }
.rv-nav .rv-menu {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 30px;
  font-family: 'Karibu Condensed', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: .13em; font-size: .82rem;
}
.rv-nav .rv-menu a { color: var(--ink-soft, #6d5f64); text-decoration: none; }
.rv-nav .rv-menu a:hover { color: var(--wine); }
.rv-cart {
  font-family: 'Karibu Condensed', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; font-size: .82rem;
  color: var(--wine); text-decoration: none; white-space: nowrap;
}
.rv-cart:hover { color: var(--terra-dark); }

.rv-footer { background: #2a2126; color: #c9bcb4; padding: 70px 0 38px; }
.rv-footer-inner { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.rv-fgrid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.rv-brand-light { color: #fff; margin-bottom: 14px; font-size: 1.5rem; }
.rv-fbrand p { max-width: 32ch; color: #9a8b83; margin: 0; }
.rv-footer h5 {
  font-family: 'Karibu Condensed', sans-serif; text-transform: uppercase;
  letter-spacing: .16em; font-size: .76rem; color: #fff; margin: 0 0 16px; font-weight: 700;
}
.rv-footer ul { list-style: none; margin: 0; padding: 0; }
.rv-footer li { margin-bottom: 10px; }
.rv-footer a { color: #c9bcb4; text-decoration: none; }
.rv-footer a:hover { color: #fff; }
.rv-fbar {
  border-top: 1px solid #46393f; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: #8a7b73; font-size: .9rem;
}

/* toggle do menu mobile (escondido no desktop) */
.rv-nav-toggle { display: none; }
.rv-burger { display: none; }

@media (max-width: 820px) {
  .rv-header-inner { flex-wrap: wrap; height: auto; padding: 14px 18px; }
  .rv-brand { order: 1; }
  .rv-cart { order: 2; margin-left: auto; }
  .rv-burger {
    order: 3; display: flex; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 8px; margin-left: 14px;
  }
  .rv-burger span { width: 24px; height: 2px; background: var(--wine); display: block; transition: .2s; }
  .rv-nav { order: 4; flex-basis: 100%; display: none; }
  #rv-nav-toggle:checked ~ .rv-nav { display: block; }
  #rv-nav-toggle:checked ~ .rv-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #rv-nav-toggle:checked ~ .rv-burger span:nth-child(2) { opacity: 0; }
  #rv-nav-toggle:checked ~ .rv-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .rv-nav .rv-menu { flex-direction: column; gap: 4px; padding: 10px 0 4px; font-size: .95rem; }
  .rv-nav .rv-menu a { display: block; padding: 8px 2px; }
}

/* ===== responsivo geral (home + footer) ===== */
@media (max-width: 820px) {
  .rv-fgrid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 600px) {
  .rv-home .rv-wrap { padding: 0 20px; }
  .rv-home .rv-sec, .rv-home .rv-trust, .rv-home .rv-news { padding: 60px 0; }
  .rv-home .rv-manifesto { padding: 72px 0; }
  .rv-home .rv-hero-grid { min-height: 0; gap: 32px; }
  .rv-home .rv-h1 { font-size: 2.7rem; }
  .rv-home .rv-h2, .rv-home .rv-h3 { font-size: 2rem; }
  .rv-home .rv-h2-big { font-size: 2.2rem; }
  .rv-home .rv-amb, .rv-home .rv-tr3 { grid-template-columns: 1fr; }
  .rv-home .rv-head { flex-direction: column; align-items: flex-start; }
  .rv-home .rv-newsform { flex-direction: column; }
  .rv-home .rv-cta { flex-direction: column; align-items: stretch; }
  .rv-home .rv-cta .rv-btn { justify-content: center; }
  .rv-fgrid { grid-template-columns: 1fr; gap: 24px; }
  .rv-fbar { flex-direction: column; gap: 6px; }
}
