/*
Theme Name: Meu Petshop
Theme URI: https://meupetshop10.com.br
Description: Tema filho do Storefront com a identidade visual Meu Petshop — laranja #E8842C, fonte Baloo 2, cantos arredondados. Réplica do protótipo aprovado.
Author: Meu Petshop
Template: storefront
Version: 1.1.0
Text Domain: meupetshop
*/

/* ============================================================
   RÉPLICA DO PROTÓTIPO APROVADO (index.html)
   Valores de cor, radius, sombra e espaçamento copiados 1:1.
   Templates próprios: header.php, front-page.php, footer.php
   ============================================================ */

:root {
  --mp-orange: #E8842C;
  --mp-orange-dark: #C96D1A;
  --mp-orange-light: #FDF3E7;
  --mp-ink: #2B2118;
  --mp-cream: #FFF9F2;
  --mp-muted: #8a7d6f;
}

/* ---------- Base (protótipo: body/container) ---------- */
body {
  font-family: 'Baloo 2', 'Nunito', system-ui, sans-serif !important;
  background: var(--mp-cream) !important;
  color: var(--mp-ink);
}

h1, h2, h3, h4, h5, h6,
.woocommerce-loop-product__title {
  font-family: 'Baloo 2', 'Nunito', system-ui, sans-serif !important;
  font-weight: 800;
  color: var(--mp-ink);
}

a { color: var(--mp-orange-dark); }
a:hover { color: var(--mp-orange); }

/* Largura do conteúdo = .container do protótipo (1100px, padding 0 20px) */
#content .col-full {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.site-content { padding-top: 0 !important; }

/* ---------- Barra superior (protótipo: .topbar) ---------- */
.mp-topbar {
  background: var(--mp-ink);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
}
.mp-topbar a { color: #FDCB8A; text-decoration: none; }

/* ---------- Cabeçalho (protótipo: header/.header-inner) ---------- */
.mp-header {
  background: var(--mp-orange);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.admin-bar .mp-header { top: 32px; }

.mp-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Logo (protótipo: .logo h1 / .logo span) */
.mp-logo-titulo {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .5px;
  color: #fff;
  line-height: 1;
  margin: 0;
  text-shadow:
    -2px -2px 0 var(--mp-ink),
     2px -2px 0 var(--mp-ink),
    -2px  2px 0 var(--mp-ink),
     2px  2px 0 var(--mp-ink),
     0    3px 0 var(--mp-ink);
}
.mp-logo-titulo a,
.mp-logo-titulo a:hover {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.mp-logo-sub {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: .95;
}

/* Busca (protótipo: .search-wrap) */
.mp-search-wrap {
  position: relative;
  flex: 1 1 260px;
  max-width: 420px;
  margin: 0;
}
.mp-search-wrap input[type="search"] {
  width: 100%;
  padding: 11px 16px 11px 40px;
  border-radius: 30px;
  border: 2px solid var(--mp-orange-dark);
  font-size: 14px;
  background: #fff;
  color: var(--mp-ink);
  outline: none;
  box-shadow: none;
}
.mp-search-wrap input::placeholder { color: #b0a493; }
.mp-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  z-index: 1;
}

/* Carrinho (protótipo: .cart-btn / .cart-count) */
.mp-cart-btn {
  background: #fff;
  color: var(--mp-orange) !important;
  border: 2px solid var(--mp-orange-dark);
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: opacity .2s;
}
.mp-cart-btn:hover { opacity: .92; }
.mp-cart-count {
  background: var(--mp-orange);
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}
.mp-cart-count.mp-vazio { display: none; }

/* Menu de navegação: discreto, integrado ao cabeçalho laranja */
.mp-nav { background: rgba(0,0,0,.10); }
.mp-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.mp-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
  overflow-x: auto;
}
.mp-menu li { margin: 0; }
.mp-menu li a {
  display: block;
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
}
.mp-menu li a:hover { background: rgba(255,255,255,.14); color: #fff; }
.mp-menu li.current-menu-item > a,
.mp-menu li.current_page_item > a { background: rgba(255,255,255,.18); }

/* ---------- Hero (protótipo: .hero) ---------- */
.mp-hero {
  background: linear-gradient(120deg, var(--mp-orange) 0%, #F09A45 100%);
  border-radius: 20px;
  padding: 32px;
  margin: 24px 0 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.mp-paw {
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-size: 130px;
  opacity: .18;
  transform: rotate(-12deg);
}
.mp-eyebrow {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  opacity: .95;
}
.mp-hero h2 {
  font-size: 26px;
  font-weight: 800;
  max-width: 480px;
  margin: 0;
  color: #fff !important;
  text-shadow:
    -1.5px -1.5px 0 var(--mp-ink),
     1.5px -1.5px 0 var(--mp-ink),
    -1.5px  1.5px 0 var(--mp-ink),
     1.5px  1.5px 0 var(--mp-ink);
}
.mp-hero p {
  margin: 10px 0 0;
  font-size: 15px;
  max-width: 440px;
  color: #fff;
  opacity: .95;
}

/* ---------- Serviços (protótipo: .services/.service) ---------- */
.mp-servicos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}
.mp-servico {
  background: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--mp-orange-light);
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.mp-servico .mp-icone { font-size: 28px; }
.mp-servico strong { display: block; font-size: 14px; font-weight: 800; }
.mp-servico span { font-size: 12px; color: var(--mp-muted); }

/* ---------- Pílulas de categorias (protótipo: .categories/.cat-btn) ---------- */
.mp-categorias {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 16px;
}
.mp-cat-btn {
  background: #fff;
  color: var(--mp-ink) !important;
  border: 2px solid #eee2d3;
  border-radius: 30px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none !important;
  transition: all .2s;
}
.mp-cat-btn:hover,
.mp-cat-btn.mp-ativo {
  background: var(--mp-orange);
  color: #fff !important;
  border-color: var(--mp-orange-dark);
  box-shadow: 0 2px 8px rgba(232,132,44,.35);
}

/* ---------- Grade de produtos (protótipo: .grid/.card) ---------- */
.mp-grade { padding-bottom: 40px; }

.mp-home ul.products,
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin: 0 !important;
}
.mp-home ul.products::before,
.mp-home ul.products::after { display: none; }

ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  border: 1.5px solid #f3e8da;
  display: flex;
  flex-direction: column;
  padding: 0 0 16px !important;
  transition: transform .2s, box-shadow .2s;
}
ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(232,132,44,.18);
}
ul.products li.product img {
  background: var(--mp-orange-light);
  border-radius: 0;
  margin-bottom: .8em !important;
}
ul.products li.product .woocommerce-loop-product__title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  padding: 0 16px;
}
ul.products li.product .price {
  color: var(--mp-orange-dark) !important;
  font-size: 19px;
  font-weight: 800;
  padding: 0 16px;
}
ul.products li.product .button { margin: 10px 16px 0; }

/* Badge de promoção (protótipo: .badge.promocao) */
.onsale,
ul.products li.product .onsale {
  background: #FFE3E3 !important;
  color: #C0392B !important;
  border-radius: 20px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  min-height: unset !important;
  line-height: 1.6 !important;
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
}

/* Estado vazio (protótipo: .empty) */
.mp-vazio-produtos {
  text-align: center;
  padding: 60px 20px;
  color: #b0a493;
}
.mp-vazio-produtos .mp-vazio-icone { font-size: 48px; }
.mp-vazio-produtos p { font-size: 16px; margin-top: 12px; font-weight: 600; }

/* ---------- Botões WooCommerce: pílulas laranja ---------- */
button, .button, .added_to_cart,
input[type=submit],
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wc-block-components-button {
  background-color: var(--mp-orange) !important;
  border: 2px solid var(--mp-orange-dark) !important;
  border-radius: 30px !important;
  color: #fff !important;
  font-family: 'Baloo 2', sans-serif !important;
  font-weight: 800 !important;
  padding: 10px 22px;
  transition: transform .15s, opacity .2s;
}
button:hover, .button:hover,
.woocommerce a.button:hover { opacity: .92; transform: translateY(-1px); }

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.wc-block-cart__submit-button {
  background-color: var(--mp-orange-dark) !important;
}

/* A pílula de busca e o botão do carrinho no cabeçalho não herdam o laranja */
.mp-search-wrap input[type="search"] { background: #fff !important; }

/* ---------- Página de produto ---------- */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--mp-orange-dark) !important;
  font-weight: 800;
  font-size: 1.4em;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  border-bottom-color: var(--mp-orange);
}

/* Selo "Retire hoje na loja" */
.mp-selo-retirada {
  display: inline-block;
  background: #E8F5E9;
  color: #2E7D32;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 30px;
  margin: 4px 0;
}

/* ---------- Widget de categorias (páginas internas) ---------- */
.product-categories li,
.wc-block-product-categories-list li {
  display: inline-block;
  margin: 4px;
}
.product-categories li a,
.wc-block-product-categories-list li a {
  display: inline-block;
  background: #fff;
  border: 2px solid #eee2d3;
  border-radius: 30px;
  padding: 8px 18px;
  font-weight: 700;
  color: var(--mp-ink);
  text-decoration: none;
  transition: all .2s;
}
.product-categories li a:hover,
.product-categories li.current-cat a {
  background: var(--mp-orange);
  border-color: var(--mp-orange-dark);
  color: #fff;
}

/* ---------- Título de páginas internas (esconder só na home) ---------- */
.home .entry-header,
.page-template-template-homepage .entry-header { display: none !important; }

/* ---------- Rodapé (protótipo: footer) ---------- */
.mp-footer {
  background: var(--mp-ink);
  color: #fff;
  padding: 28px 20px;
  text-align: center;
}
.mp-footer-brand {
  font-size: 22px;
  font-weight: 800;
  text-shadow:
    -1.5px -1.5px 0 var(--mp-orange),
     1.5px -1.5px 0 var(--mp-orange),
    -1.5px  1.5px 0 var(--mp-orange),
     1.5px  1.5px 0 var(--mp-orange);
}
.mp-footer p { font-size: 13px; opacity: .7; margin: 8px 0 0; color: #fff; }

/* ---------- Botão flutuante do WhatsApp ---------- */
.mp-whatsapp-flutuante {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9999;
  background: #25D366;
  color: #fff !important;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  text-decoration: none !important;
  transition: transform .15s;
  border: none !important;
  padding: 0 !important;
}
.mp-whatsapp-flutuante:hover { transform: scale(1.08); }

/* ---------- Notificações WooCommerce ---------- */
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--mp-orange) !important;
}
.woocommerce-message::before,
.woocommerce-info::before { color: var(--mp-orange) !important; }

/* ---------- Responsivo: empilhar com elegância ---------- */
@media (max-width: 768px) {
  .mp-logo-titulo { font-size: 24px; }
  .mp-search-wrap {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
  }
  .mp-cart-btn { padding: 9px 16px; font-size: 13px; }
  .mp-hero { padding: 26px 20px; }
  .mp-hero h2 { font-size: 22px; }
  .admin-bar .mp-header { top: 0; }
}
