/*
Theme Name: CompraMix
Theme URI: https://compramix.shop
Author: CompraMix
Description: Tema WooCommerce para loja de variedades com foco em clareza e confianca.
Version: 1.0.6
Text Domain: compra-mix
*/

:root {
  --cm-ink: #123f43;
  --cm-ink-deep: #082d31;
  --cm-coral: #ed6742;
  --cm-coral-dark: #c94c2b;
  --cm-cream: #fbf8f2;
  --cm-paper: #ffffff;
  --cm-line: #dfdfd8;
  --cm-muted: #617173;
  --cm-green: #247a53;
  --cm-max: 1180px;
  --cm-radius: 8px;
  --cm-shadow: 0 12px 32px rgba(8, 45, 49, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cm-cream); color: var(--cm-ink-deep); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { display: block; height: auto; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.cm-container { width: min(calc(100% - 40px), var(--cm-max)); margin: 0 auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.cm-topbar { background: var(--cm-ink-deep); color: #e9f1ee; font-size: 13px; }
.cm-topbar .cm-container { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cm-topbar p { margin: 0; }
.cm-topbar a { color: #fff; font-weight: 700; }
.cm-header { position: relative; z-index: 20; background: var(--cm-paper); border-bottom: 1px solid var(--cm-line); }
.cm-header-main { min-height: 82px; display: grid; grid-template-columns: 230px 1fr auto; align-items: center; gap: 28px; }
.cm-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--cm-ink); font-size: 28px; font-weight: 800; letter-spacing: 0; line-height: 1; }
.cm-brand-mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--cm-coral); border-radius: 8px; color: #fff; font-size: 21px; font-weight: 800; }
.cm-brand b { color: var(--cm-coral); }
.cm-search { display: flex; max-width: 580px; min-width: 0; border: 1px solid #b8c6c4; border-radius: 6px; overflow: hidden; background: #fff; }
.cm-search:focus-within { border-color: var(--cm-ink); box-shadow: 0 0 0 3px rgba(18, 63, 67, .12); }
.cm-search input { min-width: 0; flex: 1; border: 0; padding: 12px 14px; color: var(--cm-ink-deep); outline: 0; }
.cm-search button { min-width: 48px; border: 0; background: var(--cm-ink); color: #fff; cursor: pointer; font-weight: 700; }
.cm-search button:hover { background: var(--cm-ink-deep); }
.cm-header-actions { display: flex; align-items: center; gap: 18px; }
.cm-account, .cm-cart { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--cm-ink); font-size: 14px; font-weight: 700; }
.cm-account span, .cm-cart .cm-cart-icon { display: grid; place-items: center; width: 30px; height: 30px; background: #e9f1ee; border-radius: 50%; font-size: 15px; }
.cm-cart .cm-cart-icon { position: relative; background: var(--cm-coral); color: #fff; }
.cm-cart-count { position: absolute; top: -6px; right: -7px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--cm-ink-deep); color: #fff; font-size: 10px; }
.cm-nav { border-top: 1px solid #eef0eb; }
.cm-nav .cm-container { min-height: 50px; display: flex; align-items: center; gap: 26px; }
.cm-menu { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.cm-menu a { color: var(--cm-ink); font-size: 14px; font-weight: 700; }
.cm-menu a:hover, .cm-menu .current-menu-item a { color: var(--cm-coral-dark); }
.cm-menu-toggle { display: none; border: 0; padding: 10px 0; background: transparent; color: var(--cm-ink); font-weight: 800; cursor: pointer; }

.cm-hero { min-height: 508px; background: #f7f1e7 url('assets/images/compra-mix-hero.jpg') center center / cover no-repeat; }
.cm-hero .cm-container { min-height: 508px; display: flex; align-items: center; }
.cm-hero-content { width: min(100%, 500px); padding: 48px 0; }
.cm-kicker { margin: 0 0 12px; color: var(--cm-coral-dark); font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.cm-hero h1 { max-width: 500px; margin: 0; color: var(--cm-ink-deep); font-size: clamp(38px, 5vw, 62px); line-height: 1.05; letter-spacing: 0; }
.cm-hero h1 span { color: var(--cm-coral-dark); }
.cm-hero p:not(.cm-kicker) { max-width: 410px; margin: 20px 0 28px; color: #345457; font-size: 18px; }
.cm-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 20px; border: 1px solid var(--cm-coral); border-radius: 5px; background: var(--cm-coral); color: #fff; font-size: 15px; font-weight: 800; text-align: center; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.cm-button:hover { background: var(--cm-coral-dark); border-color: var(--cm-coral-dark); color: #fff; transform: translateY(-1px); }
.cm-button.cm-button-outline { background: transparent; border-color: var(--cm-ink); color: var(--cm-ink); }
.cm-button.cm-button-outline:hover { background: var(--cm-ink); color: #fff; }

.cm-benefits { background: var(--cm-ink); color: #fff; }
.cm-benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.cm-benefit { min-height: 104px; display: flex; align-items: center; gap: 14px; padding: 22px 28px; border-right: 1px solid rgba(255,255,255,.15); }
.cm-benefit:last-child { border-right: 0; }
.cm-benefit-icon { display: grid; flex: 0 0 39px; place-items: center; width: 39px; height: 39px; border-radius: 50%; background: var(--cm-coral); color: #fff; font-weight: 800; }
.cm-benefit strong, .cm-benefit span { display: block; }
.cm-benefit strong { font-size: 15px; }
.cm-benefit span { color: #cbe0dc; font-size: 13px; }

.cm-section { padding: 70px 0; }
.cm-section.cm-section-white { background: #fff; }
.cm-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.cm-section-head h2 { margin: 0; color: var(--cm-ink-deep); font-size: 32px; line-height: 1.15; letter-spacing: 0; }
.cm-section-head p { max-width: 470px; margin: 7px 0 0; color: var(--cm-muted); }
.cm-section-link { color: var(--cm-coral-dark); font-size: 14px; font-weight: 800; white-space: nowrap; }
.cm-section-link:hover { color: var(--cm-ink); }
.cm-categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cm-category { min-height: 152px; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; border: 1px solid var(--cm-line); border-radius: var(--cm-radius); background: #fff; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.cm-category:hover { border-color: var(--cm-coral); box-shadow: var(--cm-shadow); transform: translateY(-2px); }
.cm-category-symbol { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: auto; border-radius: 7px; background: #e9f1ee; color: var(--cm-ink); font-size: 22px; font-weight: 800; }
.cm-category strong { color: var(--cm-ink); font-size: 17px; }
.cm-category span { color: var(--cm-muted); font-size: 13px; }

.cm-product-grid ul.products, .woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; }
.cm-product-grid ul.products::before, .cm-product-grid ul.products::after, .woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product, .cm-product-grid ul.products li.product { width: auto; float: none; margin: 0; padding: 0; }
.woocommerce ul.products li.product a img { margin-bottom: 14px; border-radius: 7px; background: #f2f1ec; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 45px; padding: 0; color: var(--cm-ink-deep); font-size: 16px; line-height: 1.35; }
.woocommerce ul.products li.product .price { margin: 7px 0 11px; color: var(--cm-coral-dark); font-size: 16px; font-weight: 800; }
.woocommerce ul.products li.product .button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button { border-radius: 5px; background: var(--cm-ink); color: #fff; font-size: 13px; font-weight: 800; }
.woocommerce ul.products li.product .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--cm-coral-dark); color: #fff; }
.woocommerce span.onsale { min-width: 48px; min-height: 48px; padding: 0; background: var(--cm-coral); line-height: 48px; }
.cm-empty-products { display: grid; min-height: 240px; place-items: center; border: 1px dashed #b8c6c4; border-radius: var(--cm-radius); color: var(--cm-muted); text-align: center; }
.cm-empty-products p { max-width: 420px; padding: 30px; }

.cm-trust { background: #e9f1ee; }
.cm-trust-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 60px; align-items: center; }
.cm-trust h2 { margin: 0; color: var(--cm-ink-deep); font-size: 34px; line-height: 1.15; }
.cm-trust p { color: #456467; }
.cm-trust-list { display: grid; gap: 16px; margin: 25px 0 0; padding: 0; list-style: none; }
.cm-trust-list li { display: flex; gap: 11px; align-items: start; color: var(--cm-ink); font-weight: 700; }
.cm-check { display: grid; flex: 0 0 23px; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: var(--cm-green); color: #fff; font-size: 13px; }
.cm-trust-card { padding: 34px; border-radius: var(--cm-radius); background: #fff; box-shadow: var(--cm-shadow); }
.cm-trust-card p { margin: 0; color: var(--cm-ink); font-size: 20px; font-weight: 700; line-height: 1.35; }
.cm-trust-card span { display: block; margin-top: 15px; color: var(--cm-muted); font-size: 14px; }

.cm-footer { background: var(--cm-ink-deep); color: #d7e7e3; }
.cm-footer-main { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 35px; padding: 54px 0 45px; }
.cm-footer .cm-brand { color: #fff; }
.cm-footer p { max-width: 320px; margin: 16px 0 0; color: #b9d0ca; font-size: 14px; }
.cm-footer h3 { margin: 0 0 14px; color: #fff; font-size: 15px; }
.cm-footer ul { margin: 0; padding: 0; list-style: none; }
.cm-footer li { margin: 0 0 8px; font-size: 14px; }
.cm-footer a:hover { color: #fff; }
.cm-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.14); color: #a6c0ba; font-size: 13px; }

.cm-page { padding: 52px 0 76px; }
.cm-page-title { margin: 0 0 28px; color: var(--cm-ink-deep); font-size: 36px; }
.cm-page .entry-content { max-width: 780px; }
.cm-page .entry-content > *:first-child { margin-top: 0; }
.woocommerce .woocommerce-breadcrumb { color: var(--cm-muted); font-size: 13px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--cm-ink); }
.woocommerce div.product .product_title { color: var(--cm-ink-deep); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--cm-coral-dark); font-weight: 800; }
.woocommerce div.product form.cart .button { min-height: 44px; background: var(--cm-coral); }
.woocommerce div.product form.cart .button:hover { background: var(--cm-coral-dark); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--cm-coral); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--cm-coral-dark); }

@media (max-width: 900px) {
  .cm-header-main { grid-template-columns: 1fr auto; gap: 15px; padding: 17px 0; }
  .cm-search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .cm-account { display: none; }
  .cm-nav .cm-container { display: block; min-height: 0; }
  .cm-menu-toggle { display: block; }
  .cm-menu { display: none; align-items: stretch; gap: 0; padding: 0 0 12px; }
  .cm-menu.is-open { display: flex; flex-direction: column; }
  .cm-menu li a { display: block; padding: 9px 0; }
  .cm-benefit { padding: 20px 14px; }
  .cm-categories, .cm-product-grid ul.products, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cm-trust-grid { gap: 30px; }
  .cm-footer-main { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cm-container { width: min(calc(100% - 28px), var(--cm-max)); }
  .cm-topbar .cm-container { justify-content: center; min-height: 38px; text-align: center; }
  .cm-topbar p:last-child { display: none; }
  .cm-header-main { grid-template-columns: 1fr auto; }
  .cm-brand { font-size: 24px; }
  .cm-brand-mark { width: 30px; height: 30px; }
  .cm-cart-label { display: none; }
  .cm-hero, .cm-hero .cm-container { min-height: 480px; }
  .cm-hero { background-position: 65% center; }
  .cm-hero-content { padding: 42px 0 185px; }
  .cm-hero h1 { max-width: 330px; font-size: 39px; }
  .cm-hero p:not(.cm-kicker) { max-width: 280px; font-size: 16px; }
  .cm-benefit-grid { grid-template-columns: 1fr; }
  .cm-benefit { min-height: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .cm-benefit:last-child { border-bottom: 0; }
  .cm-section { padding: 48px 0; }
  .cm-section-head { align-items: start; flex-direction: column; margin-bottom: 22px; }
  .cm-section-head h2, .cm-trust h2 { font-size: 28px; }
  .cm-categories { gap: 10px; }
  .cm-category { min-height: 130px; padding: 15px; }
  .cm-category strong { font-size: 15px; }
  .cm-product-grid ul.products, .woocommerce ul.products { gap: 14px 10px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14px; }
  .woocommerce ul.products li.product .button { padding: .65em .75em; font-size: 12px; }
  .cm-trust-grid { grid-template-columns: 1fr; }
  .cm-trust-card { padding: 25px; }
  .cm-footer-main { grid-template-columns: 1fr 1fr; gap: 30px 18px; padding: 42px 0 32px; }
  .cm-footer-main > :first-child { grid-column: 1 / -1; }
  .cm-footer-bottom { flex-direction: column; gap: 5px; }
}
