/*
Theme Name: Estilo Palitos
Theme URI: https://palitodepicole.com.br/
Author: Estilo
Description: Tema leve e responsivo para a loja Palito de Picolé.
Version: 1.2.0
Requires at least: 7.0
Requires PHP: 7.4
Text Domain: estilo-palitos
*/

:root {
  --estilo-red: #c9343a;
  --estilo-red-dark: #95242a;
  --estilo-gold: #ffd22a;
  --estilo-cream: #fff9f1;
  --estilo-wood: #efe0c7;
  --estilo-ink: #2e2b2a;
  --estilo-muted: #6e655f;
  --estilo-white: #ffffff;
  --estilo-border: #e4d8c8;
  --estilo-shadow: 0 22px 60px rgba(77, 48, 31, .12);
  --estilo-radius: 26px;
  --estilo-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--estilo-ink);
  background: var(--estilo-cream);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--estilo-red-dark); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--estilo-red); }
button, input, select, textarea { font: inherit; }
button, .button, input[type="submit"] { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--estilo-gold);
  outline-offset: 3px;
}

.estilo-container { width: min(calc(100% - 40px), var(--estilo-container)); margin-inline: auto; }
.estilo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--estilo-red-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.estilo-eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 99px; background: var(--estilo-gold); }
.estilo-title, h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  letter-spacing: -.025em;
}
.estilo-title { margin: 0; font-size: clamp(2.25rem, 5vw, 4.75rem); }
.estilo-subtitle { max-width: 700px; margin: 20px 0 0; color: var(--estilo-muted); font-size: 1.12rem; }

.estilo-announcement {
  padding: 9px 20px;
  color: var(--estilo-white);
  background: var(--estilo-red-dark);
  text-align: center;
  font-size: .9rem;
  font-weight: 700;
}
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(228, 216, 200, .8);
  background: rgba(255, 249, 241, .94);
  backdrop-filter: blur(14px);
}
.site-header__inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.site-brand img { display: block; width: 132px; max-height: 70px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--estilo-ink); text-decoration: none; font-size: .94rem; font-weight: 700; }
.site-nav a:hover { color: var(--estilo-red); }
.site-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  color: var(--estilo-white) !important;
  background: var(--estilo-red);
  box-shadow: 0 10px 24px rgba(201, 52, 58, .25);
}
.site-cart:hover { background: var(--estilo-red-dark); }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 9vw, 120px) 0;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 210, 42, .4), transparent 23%),
    radial-gradient(circle at 6% 90%, rgba(201, 52, 58, .12), transparent 28%),
    var(--estilo-cream);
}
.hero::after {
  position: absolute;
  width: 360px;
  height: 360px;
  right: -140px;
  bottom: -180px;
  border: 34px solid rgba(201, 52, 58, .08);
  border-radius: 50%;
  content: "";
}
.hero__grid { display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: clamp(35px, 7vw, 95px); }
.hero h1 { margin: 0; font-size: clamp(3rem, 6.5vw, 6.2rem); }
.hero h1 span { color: var(--estilo-red); }
.hero p { max-width: 650px; margin: 24px 0 30px; color: var(--estilo-muted); font-size: clamp(1.04rem, 1.5vw, 1.22rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; }
.estilo-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 25px;
  border: 0;
  border-radius: 999px;
  color: var(--estilo-white);
  background: var(--estilo-red);
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.estilo-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
  color: var(--estilo-white);
  background: var(--estilo-red-dark);
  box-shadow: 0 12px 28px rgba(201, 52, 58, .22);
  transform: translateY(-2px);
}
.estilo-button--ghost { color: var(--estilo-red-dark); background: transparent; box-shadow: inset 0 0 0 2px var(--estilo-red); }
.estilo-button--ghost:hover { color: var(--estilo-white); background: var(--estilo-red); }
.hero__visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.hero__blob {
  position: absolute;
  inset: 4% 4% 0;
  border-radius: 44% 56% 48% 52% / 60% 40% 60% 40%;
  background: linear-gradient(145deg, var(--estilo-gold), #ffe785);
  transform: rotate(-5deg);
}
.hero__image { position: relative; z-index: 1; width: min(100%, 620px); filter: drop-shadow(0 30px 28px rgba(86, 54, 31, .18)); }
.hero__seal {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 6%;
  width: 142px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 8px solid var(--estilo-cream);
  border-radius: 50%;
  color: var(--estilo-white);
  background: var(--estilo-red);
  text-align: center;
  font-weight: 900;
  line-height: 1.15;
  transform: rotate(8deg);
  box-shadow: var(--estilo-shadow);
}

.trust-strip { position: relative; z-index: 2; margin-top: -28px; }
.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--estilo-border);
  border-radius: var(--estilo-radius);
  background: var(--estilo-white);
  box-shadow: var(--estilo-shadow);
}
.trust-item { min-height: 108px; display: flex; align-items: center; gap: 14px; padding: 22px; border-right: 1px solid var(--estilo-border); }
.trust-item:last-child { border-right: 0; }
.trust-item__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--estilo-wood); color: var(--estilo-red-dark); font-weight: 900; }
.trust-item strong { display: block; line-height: 1.25; }
.trust-item span { color: var(--estilo-muted); font-size: .84rem; }

.section { padding: clamp(72px, 9vw, 118px) 0; }
.section--white { background: var(--estilo-white); }
.section--wood { background: var(--estilo-wood); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 35px; margin-bottom: 42px; }
.section-heading h2 { max-width: 720px; margin: 0; font-size: clamp(2.3rem, 4.4vw, 4rem); }
.section-heading p { max-width: 430px; margin: 0; color: var(--estilo-muted); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--estilo-border);
  border-radius: var(--estilo-radius);
  background: var(--estilo-white);
  box-shadow: 0 16px 40px rgba(77, 48, 31, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--estilo-shadow); }
.product-card__image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.product-card__image img { width: 100%; height: 100%; padding: 12px 18px 4px; object-fit: contain; transition: transform .35s ease; }
.product-card__body { display: flex; flex: 1; flex-direction: column; }
.product-card__footer { margin-top: auto; }
.product-card:hover .product-card__image img { transform: scale(1.03); }
.product-card__badge { position: absolute; top: 18px; left: 18px; padding: 7px 12px; border-radius: 999px; color: var(--estilo-white); background: var(--estilo-red); font-size: .74rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.product-card__body { padding: 25px; }
.product-card__sku { color: var(--estilo-red-dark); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.product-card h3 { margin: 7px 0 10px; font-size: 1.65rem; }
.product-card h3 a { color: var(--estilo-ink); text-decoration: none; }
.product-card p { min-height: 78px; margin: 0 0 18px; color: var(--estilo-muted); font-size: .95rem; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.product-card__price { color: var(--estilo-red-dark); font-size: 1.35rem; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.product-card__link { font-weight: 900; text-decoration: none; }

.custom-section { position: relative; overflow: hidden; color: var(--estilo-white); background: var(--estilo-red-dark); }
.custom-section::before { position: absolute; inset: 0; background: radial-gradient(circle at 80% 25%, rgba(255, 210, 42, .25), transparent 28%); content: ""; }
.custom-section__grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 70px; }
.custom-section__visual { position: relative; min-height: 460px; display: grid; place-items: center; }
.custom-section__visual img { max-height: 430px; width: auto; filter: drop-shadow(0 28px 28px rgba(0, 0, 0, .25)); }
.custom-section h2 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.7rem); }
.custom-section p { color: rgba(255, 255, 255, .82); font-size: 1.08rem; }
.custom-section .estilo-button { color: var(--estilo-ink); background: var(--estilo-gold); }
.custom-section .estilo-button:hover { background: #ffe477; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: steps; }
.step { position: relative; padding: 30px; border-radius: var(--estilo-radius); background: var(--estilo-white); counter-increment: steps; }
.step::before { content: "0" counter(steps); display: block; margin-bottom: 35px; color: var(--estilo-red); font: 800 2rem/1 Georgia, serif; }
.step h3 { margin: 0 0 12px; font-size: 1.5rem; }
.step p { margin: 0; color: var(--estilo-muted); }

.faq-section { background: var(--estilo-cream); }
.faq-grid { display: grid; gap: 14px; max-width: 920px; }
.faq-grid details { overflow: hidden; border: 1px solid var(--estilo-border); border-radius: 18px; background: var(--estilo-white); box-shadow: 0 10px 26px rgba(77, 48, 31, .05); }
.faq-grid summary { position: relative; padding: 22px 58px 22px 24px; font-weight: 850; cursor: pointer; list-style: none; }
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after { position: absolute; right: 23px; top: 50%; color: var(--estilo-red); font-size: 1.4rem; content: "+"; transform: translateY(-50%); }
.faq-grid details[open] summary::after { content: "−"; }
.faq-grid details p { margin: 0; padding: 0 24px 22px; color: var(--estilo-muted); }

.region-box { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: clamp(34px, 6vw, 68px); border-radius: calc(var(--estilo-radius) + 10px); background: var(--estilo-white); box-shadow: var(--estilo-shadow); }
.region-map { min-height: 300px; display: grid; place-items: center; border-radius: var(--estilo-radius); background: linear-gradient(145deg, var(--estilo-wood), #fff7e7); }
.region-map__states { max-width: 420px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.region-map__states span { padding: 10px 14px; border: 1px solid rgba(201,52,58,.2); border-radius: 999px; color: var(--estilo-red-dark); background: var(--estilo-white); font-weight: 800; }
.region-box h2 { margin: 0 0 18px; font-size: clamp(2.2rem, 4vw, 3.6rem); }
.region-box p { color: var(--estilo-muted); }

.site-main { min-height: 55vh; }
.content-area { padding: 70px 0 100px; }
.page-header { margin-bottom: 40px; }
.page-header h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.2rem); }
.entry-content { max-width: 860px; }
.entry-content > * { max-width: 100%; }

.woocommerce .woocommerce-breadcrumb { margin-bottom: 24px; color: var(--estilo-muted); font-size: .86rem; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; padding: 18px; border: 1px solid var(--estilo-border); border-radius: var(--estilo-radius); background: var(--estilo-white); box-shadow: 0 12px 34px rgba(77, 48, 31, .07); }
.woocommerce ul.products li.product a img { margin-bottom: 18px; border-radius: 18px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--estilo-ink); font-size: 1.35rem; }
.woocommerce ul.products li.product .price { color: var(--estilo-red-dark); font-size: 1.15rem; font-weight: 900; }
.woocommerce div.product { display: flow-root; }
.woocommerce div.product div.images img { border-radius: var(--estilo-radius); background: var(--estilo-white); }
.woocommerce div.product .product_title { margin-top: 0; font-size: clamp(2.4rem, 5vw, 4rem); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--estilo-red-dark); font-size: 1.7rem; font-weight: 900; }
.woocommerce .quantity .qty { min-height: 50px; border: 1px solid var(--estilo-border); border-radius: 14px; }
.woocommerce div.product form.cart .button { min-height: 50px; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--estilo-red); border-radius: 14px; background: var(--estilo-white); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--estilo-red); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--estilo-border);
  border-radius: 12px;
  background: var(--estilo-white);
}
.woocommerce-checkout #payment { border-radius: 18px; background: var(--estilo-wood); }
.estilo-upload-field { margin: 22px 0; padding: 20px; border: 2px dashed #d2b78e; border-radius: 18px; background: #fffaf0; }
.estilo-upload-field label { display: block; margin-bottom: 8px; font-weight: 900; }
.estilo-upload-field input[type="file"] { width: 100%; padding: 12px; border: 1px solid var(--estilo-border); border-radius: 12px; background: var(--estilo-white); }
.estilo-upload-field small { display: block; margin-top: 8px; color: var(--estilo-muted); }

.estilo-shipping-checker { margin: 24px 0; padding: 20px; border: 1px solid var(--estilo-border); border-radius: 18px; background: var(--estilo-white); }
.estilo-shipping-checker > strong { display: block; margin-bottom: 10px; font-size: 1.05rem; }
.estilo-shipping-checker__form { display: flex; flex-wrap: wrap; gap: 10px; }
.estilo-shipping-checker__form input { flex: 1 1 160px; min-height: 50px; padding: 12px 14px; border: 1px solid var(--estilo-border); border-radius: 14px; }
.estilo-shipping-checker__form .button { min-height: 50px; }
.estilo-shipping-checker__result { display: none; margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; font-weight: 800; }
.estilo-shipping-checker__result.is-success { display: block; color: #1d5f36; background: #e8f7ee; }
.estilo-shipping-checker__result.is-error { display: block; color: #8f252a; background: #fff0f0; }

.site-footer { padding: 70px 0 30px; color: rgba(255,255,255,.78); background: var(--estilo-ink); }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 55px; }
.site-footer img { width: 140px; margin-bottom: 20px; filter: drop-shadow(0 4px 14px rgba(0,0,0,.3)); }
.site-footer h3 { margin: 0 0 16px; color: var(--estilo-white); font-size: 1.2rem; }
.site-footer a { color: var(--estilo-white); text-decoration: none; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 9px; }
.site-footer__bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; }

@media (max-width: 900px) {
  .site-nav { gap: 14px; }
  .site-nav a:not(.site-cart):not(.site-nav__products) { display: none; }
  .site-nav__products { display: inline-flex; }
  .hero__grid, .custom-section__grid, .region-box { grid-template-columns: 1fr; }
  .hero__visual { min-height: 420px; }
  .trust-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--estilo-border); }
  .product-grid, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .faq-grid { max-width: none; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .estilo-container { width: min(calc(100% - 28px), var(--estilo-container)); }
  .site-header__inner { min-height: 76px; }
  .estilo-announcement { padding: 8px 14px; font-size: .78rem; }
  .site-brand img { width: 92px; }
  .site-nav { gap: 9px; }
  .site-nav__products { font-size: .84rem !important; }
  .site-cart { min-height: 42px; padding: 0 13px; font-size: .82rem; }
  .hero { padding-top: 58px; }
  .hero h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
  .hero__actions .estilo-button { flex: 1 1 100%; }
  .hero__visual { min-height: 330px; }
  .hero__seal { width: 108px; padding: 12px; border-width: 5px; font-size: .78rem; }
  .trust-strip { margin-top: -18px; }
  .trust-strip__grid, .product-grid, .woocommerce ul.products, .site-footer__grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--estilo-border); }
  .trust-item:last-child { border-bottom: 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .product-card__image { aspect-ratio: 4 / 3; }
  .product-card p { min-height: auto; }
  .custom-section__visual { min-height: 360px; }
  .region-box { padding: 28px; }
  .region-map { min-height: 230px; }
  .site-footer { padding-top: 55px; }
}
