/*
Theme Name: Busca Tudo v1
Theme URI: https://busca-tudo-atacado.guibarruchi.chatgpt.site/
Author: Busca Tudo
Description: Tema WooCommerce responsivo para atacado e varejo da Busca Tudo.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: busca-tudo
*/

:root {
  --bt-navy: #14243f;
  --bt-navy-deep: #0c1729;
  --bt-orange: #f47a00;
  --bt-orange-dark: #d96500;
  --bt-blue: #3b82c4;
  --bt-cream: #f4efe5;
  --bt-paper: #fff;
  --bt-surface: #f6f7f8;
  --bt-line: #dfe3e8;
  --bt-muted: #667085;
  --bt-ink: #172033;
  --bt-green: #18794e;
  --bt-shadow: 0 18px 45px rgba(12, 23, 41, .12);
  --bt-wrap: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bt-paper); color: var(--bt-ink); font-family: Inter, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body, button, input, textarea, select { font-family: Inter, Arial, sans-serif; }
h1, h2, h3, .bt-brand, .button, .wp-element-button { font-family: Montserrat, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, a, input, textarea, select { outline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(59,130,196,.45); }
.bt-wrap { width: min(var(--bt-wrap), calc(100% - 40px)); margin-inline: auto; }
.bt-kicker { display: block; margin-bottom: 10px; color: var(--bt-orange); font-size: 12px; font-weight: 900; letter-spacing: .15em; }
.bt-button, .button, button.button, input.button, .wp-element-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border: 0; border-radius: 8px; padding: 0 22px; background: var(--bt-orange); color: #fff; font-weight: 900; cursor: pointer; }
.bt-button:hover, .button:hover, button.button:hover, input.button:hover { background: var(--bt-orange-dark); color: #fff; }
.bt-button--light { background: #fff; color: var(--bt-navy); }

.bt-top-note { min-height: 34px; padding: 8px 20px; display: flex; justify-content: center; gap: 42px; background: var(--bt-navy-deep); color: #fff; font-size: 12px; font-weight: 800; }
.bt-site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--bt-line); background: rgba(255,255,255,.97); backdrop-filter: blur(12px); }
.admin-bar .bt-site-header { top: 32px; }
.bt-header-row { min-height: 82px; display: grid; grid-template-columns: auto minmax(280px,1fr) auto; align-items: center; gap: 28px; }
.bt-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--bt-navy); font-size: 23px; font-weight: 900; letter-spacing: -.06em; }
.bt-brand em { color: var(--bt-orange); font-style: normal; }
.bt-brand small { display: block; margin-top: 2px; color: var(--bt-muted); font: 700 8px/1.2 Inter, Arial, sans-serif; letter-spacing: .07em; }
.bt-logo-image { max-height: 52px; width: auto; }
.bt-search .woocommerce-product-search { display: flex; border: 1px solid var(--bt-line); border-radius: 999px; overflow: hidden; background: var(--bt-surface); }
.bt-search input { width: 100%; min-height: 46px; border: 0; padding: 0 18px; background: transparent; }
.bt-search button { width: 52px; border: 0; background: var(--bt-orange); color: #fff; cursor: pointer; }
.bt-header-actions { display: flex; align-items: center; gap: 10px; }
.bt-icon-link { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 0 14px; background: var(--bt-surface); font-size: 12px; font-weight: 800; }
.bt-icon-link svg { flex: 0 0 auto; }
.bt-cart-count { min-width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--bt-orange); color: #fff; font-size: 10px; }
.bt-menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--bt-surface); font-size: 22px; }
.bt-main-nav { border-top: 1px solid var(--bt-line); }
.bt-main-nav .menu { min-height: 44px; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; list-style: none; }
.bt-main-nav a { font-size: 12px; font-weight: 800; }

.bt-banner-shell { padding: 14px 0 0; background: var(--bt-surface); }
.bt-banner-carousel { position: relative; aspect-ratio: 3 / 1; overflow: hidden; border-radius: 20px; background: var(--bt-navy); box-shadow: var(--bt-shadow); }
.bt-banner-slide { position: absolute; inset: 0; visibility: hidden; opacity: 0; transition: opacity .45s ease; }
.bt-banner-slide.is-active { visibility: visible; opacity: 1; }
.bt-banner-slide a, .bt-banner-slide picture, .bt-banner-slide img { width: 100%; height: 100%; display: block; }
.bt-banner-slide img { object-fit: contain; background: var(--bt-navy); }
.bt-banner-fallback { height: 100%; padding: clamp(28px,5vw,68px); display: grid; align-content: center; color: #fff; background: linear-gradient(120deg,var(--bt-navy),#0b3c77); }
.bt-banner-fallback strong { max-width: 680px; font: 900 clamp(28px,5vw,62px)/.98 Montserrat,Arial,sans-serif; }
.bt-banner-controls { position: absolute; right: 18px; bottom: 16px; z-index: 3; display: flex; gap: 8px; }
.bt-banner-controls button { width: 34px; height: 34px; border: 0; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--bt-navy); cursor: pointer; }

.bt-hero { padding: 76px 0; background: linear-gradient(135deg,#fff 52%,var(--bt-cream) 52%); }
.bt-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; }
.bt-hero h1 { margin: 0 0 22px; max-width: 720px; color: var(--bt-navy); font-size: clamp(44px,6vw,78px); line-height: .98; letter-spacing: -.055em; }
.bt-hero h1 em { color: var(--bt-orange); font-style: normal; }
.bt-hero p { max-width: 640px; color: var(--bt-muted); font-size: 18px; line-height: 1.65; }
.bt-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.bt-kit { border-radius: 24px; padding: 34px; background: var(--bt-navy); color: #fff; box-shadow: var(--bt-shadow); }
.bt-kit h2 { margin: 0 0 24px; font-size: 30px; }
.bt-kit-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.bt-kit-card { min-height: 130px; display: grid; place-content: center; gap: 8px; border-radius: 16px; background: rgba(255,255,255,.1); text-align: center; }
.bt-kit-card span { font-size: 34px; }

.bt-section { padding: 74px 0; }
.bt-section--surface { background: var(--bt-surface); }
.bt-section-heading { max-width: 780px; margin-bottom: 34px; }
.bt-section-heading h2 { margin: 0 0 12px; color: var(--bt-navy); font-size: clamp(30px,4vw,48px); line-height: 1.08; }
.bt-section-heading p { color: var(--bt-muted); font-size: 17px; line-height: 1.6; }
.bt-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.bt-categories a { border: 1px solid var(--bt-line); border-radius: 999px; padding: 9px 14px; background: #fff; font-size: 12px; font-weight: 800; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; border: 1px solid var(--bt-line); border-radius: 16px; padding: 14px; background: #fff; box-shadow: 0 10px 28px rgba(12,23,41,.06); }
.woocommerce ul.products li.product img { aspect-ratio: 1; border-radius: 12px; object-fit: cover; background: var(--bt-surface); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--bt-navy); font-size: 16px; line-height: 1.25; }
.woocommerce ul.products li.product .price { color: var(--bt-orange); font-weight: 900; }
.bt-wholesale-price { display: block; margin-top: 7px; color: var(--bt-green); font-size: 12px; font-weight: 800; }
.woocommerce a.remove { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid var(--bt-line); border-radius: 999px; color: #b42318 !important; font-size: 0; }
.woocommerce a.remove:hover { border-color: #b42318; background: #fff1f0; color: #b42318 !important; }
.woocommerce a.remove svg { width: 18px; height: 18px; }

.bt-wholesale { background: var(--bt-navy); color: #fff; }
.bt-wholesale-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.bt-wholesale h2 { margin-top: 0; font-size: clamp(32px,4vw,52px); line-height: 1.06; }
.bt-tier-board { overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; }
.bt-tier-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; padding: 18px; border-bottom: 1px solid rgba(255,255,255,.14); }
.bt-tier-row.is-featured { background: var(--bt-orange); }
.bt-benefit-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.bt-benefit { border-top: 4px solid var(--bt-orange); padding: 24px; background: #fff; box-shadow: 0 12px 28px rgba(12,23,41,.06); }
.bt-benefit span { color: var(--bt-orange); font-weight: 900; }
.bt-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; }
.bt-faq details { border-bottom: 1px solid var(--bt-line); padding: 18px 0; }
.bt-faq summary { color: var(--bt-navy); font-weight: 900; cursor: pointer; }
.bt-blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.bt-post-card { overflow: hidden; border: 1px solid var(--bt-line); border-radius: 16px; background: #fff; }
.bt-post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.bt-post-card div { padding: 22px; }
.bt-post-card h3 { margin: 8px 0; color: var(--bt-navy); }

.bt-sales { padding: 54px 0; background: var(--bt-orange); color: #fff; }
.bt-sales .bt-wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.bt-sales h2 { max-width: 760px; margin: 0; font-size: clamp(28px,4vw,44px); }
.bt-site-footer { padding: 54px 0 24px; background: var(--bt-navy-deep); color: #fff; }
.bt-footer-grid { display: grid; grid-template-columns: 2fr repeat(3,1fr); gap: 34px; }
.bt-footer-grid h3 { margin-top: 0; color: var(--bt-orange); font-size: 13px; }
.bt-footer-grid a { display: block; margin: 10px 0; color: rgba(255,255,255,.75); font-size: 13px; }
.bt-footer-bottom { margin-top: 38px; padding-top: 20px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.62); font-size: 11px; }

.bt-content { min-height: 55vh; padding: 58px 0; }
.bt-content article { max-width: 840px; margin-inline: auto; }
.bt-content h1 { color: var(--bt-navy); font-size: clamp(34px,5vw,58px); }
.bt-content .entry-content { font-size: 17px; line-height: 1.75; }
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
.woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; border: 1px solid var(--bt-line); border-radius: 14px; overflow: hidden; }
.woocommerce-MyAccount-navigation a { display: block; padding: 13px 15px; border-bottom: 1px solid var(--bt-line); font-weight: 800; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--bt-orange); color: #fff; }
.bt-savings-table { width: 100%; border-collapse: collapse; }
.bt-savings-table th, .bt-savings-table td { padding: 12px; border-bottom: 1px solid var(--bt-line); text-align: left; }

@media (max-width: 980px) {
  .bt-header-row { grid-template-columns: auto 1fr auto; }
  .bt-search { grid-column: 1 / -1; grid-row: 2; padding-bottom: 14px; }
  .bt-menu-toggle { display: inline-grid; place-items: center; }
  .bt-main-nav { display: none; }
  .bt-main-nav.is-open { display: block; }
  .bt-main-nav .menu { min-height: auto; padding: 16px 0; align-items: stretch; flex-direction: column; gap: 0; }
  .bt-main-nav a { display: block; padding: 10px 0; }
  .bt-hero-grid, .bt-wholesale-grid, .bt-faq { grid-template-columns: 1fr; }
  .woocommerce ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bt-benefit-grid { grid-template-columns: repeat(2,1fr); }
  .bt-blog-grid { grid-template-columns: repeat(2,1fr); }
  .bt-footer-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 680px) {
  .admin-bar .bt-site-header { top: 46px; }
  .bt-wrap { width: min(100% - 24px,var(--bt-wrap)); }
  .bt-top-note span:nth-child(n+2) { display: none; }
  .bt-header-row { min-height: 68px; gap: 9px; }
  .bt-brand { font-size: 19px; }
  .bt-brand small { display: none; }
  .bt-icon-link span:not(.bt-cart-count) { display: none; }
  .bt-icon-link { width: 42px; padding: 0; justify-content: center; }
  .bt-banner-carousel { aspect-ratio: 3 / 1; border-radius: 12px; }
  .bt-banner-slide img { object-fit: contain; }
  .bt-banner-controls { right: 8px; bottom: 7px; }
  .bt-banner-controls button { width: 28px; height: 28px; }
  .bt-hero { padding: 48px 0; background: #fff; }
  .bt-hero h1 { font-size: 44px; }
  .bt-kit-grid { grid-template-columns: 1fr; }
  .bt-section { padding: 52px 0; }
  .woocommerce ul.products { grid-template-columns: 1fr; }
  .bt-benefit-grid, .bt-blog-grid, .bt-footer-grid { grid-template-columns: 1fr; }
  .bt-tier-row { grid-template-columns: 1fr; }
  .bt-sales .bt-wrap, .bt-footer-bottom { align-items: flex-start; flex-direction: column; }
  .woocommerce-account .woocommerce { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
