/*
Theme Name: Armazém Brasil
Theme URI: https://armazembrasil.com
Author: Photon Webs
Author URI: https://photonwebs.com
Description: Tema marketplace brasileiro para WooCommerce — layout original inspirado em marketplaces populares, otimizado para performance e mobile-first.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: armazem-brasil
Tags: e-commerce, woocommerce, custom-menu, custom-logo, threaded-comments, translation-ready, blog
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  --ab-yellow: #FFE600;
  --ab-yellow-hover: #F5DC00;
  --ab-blue: #3483FA;
  --ab-blue-hover: #2968C8;
  --ab-text: #333333;
  --ab-text-muted: #666666;
  --ab-text-light: #999999;
  --ab-border: #E6E6E6;
  --ab-bg: #FFFFFF;
  --ab-bg-soft: #F5F5F5;
  --ab-success: #00A650;
  --ab-deal: #E53935;
  --ab-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  --ab-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
  --ab-radius: 6px;
  --ab-radius-lg: 12px;
  --ab-max: 1200px;
  --ab-header-h: 64px;
  --ab-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--ab-font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ab-text);
  background: var(--ab-bg-soft);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ab-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ab-text);
}

p {
  margin: 0 0 1em;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.ab-container {
  width: 100%;
  max-width: var(--ab-max);
  margin: 0 auto;
  padding: 0 16px;
}

.ab-section {
  margin: 24px 0;
}

.ab-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ab-section-title .ab-badge-deal {
  font-size: 0.75rem;
  background: var(--ab-deal);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ==========================================================================
   Top utility bar
   ========================================================================== */
.ab-utility {
  background: #EBEBEB;
  border-bottom: 1px solid #E0E0E0;
  font-size: 12px;
  color: var(--ab-text-muted);
}

.ab-utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  flex-wrap: wrap;
  padding: 6px 0;
}

.ab-utility__cep {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ab-utility__cep svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: var(--ab-text-muted);
}

.ab-utility__cep a {
  color: var(--ab-blue);
  font-weight: 500;
}

.ab-utility__links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ab-utility__links a {
  color: var(--ab-text-muted);
}

.ab-utility__links a:hover {
  color: var(--ab-blue);
  text-decoration: none;
}

/* ==========================================================================
   Main header
   ========================================================================== */
.ab-header {
  background: var(--ab-yellow);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--ab-shadow);
}

.ab-header__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 12px 0;
  align-items: center;
}

.ab-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ab-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ab-text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.ab-logo:hover {
  text-decoration: none;
  color: var(--ab-text);
}

.ab-logo--custom .custom-logo-link {
  display: flex;
  align-items: center;
}

.ab-logo--custom .custom-logo {
  max-height: 40px;
  width: auto;
}

.ab-logo__mark {
  width: 36px;
  height: 36px;
  background: var(--ab-blue);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
}

.ab-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ab-header__link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ab-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: var(--ab-radius);
  transition: background 0.15s;
}

.ab-header__link:hover {
  background: rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

.ab-header__link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.ab-cart {
  position: relative;
}

.ab-cart__count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--ab-blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* Search form — HUGE */
.ab-search {
  width: 100%;
}

.ab-search__form {
  display: flex;
  width: 100%;
  background: #fff;
  border-radius: var(--ab-radius);
  overflow: hidden;
  box-shadow: var(--ab-shadow);
  border: 2px solid var(--ab-yellow);
}

.ab-search__form:focus-within {
  border-color: var(--ab-blue);
  box-shadow: 0 0 0 2px rgba(52, 131, 250, 0.25);
}

.ab-search__input {
  flex: 1;
  border: 0;
  padding: 14px 16px;
  font-size: 16px;
  outline: none;
  background: transparent;
  min-width: 0;
  color: var(--ab-text);
}

.ab-search__input::placeholder {
  color: var(--ab-text-light);
}

.ab-search__btn {
  border: 0;
  background: var(--ab-blue);
  padding: 0 18px;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  border-radius: 0;
}

.ab-search__btn:hover {
  background: var(--ab-blue-hover);
  color: #fff;
}

.ab-search__btn svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

/* Category nav strip */
.ab-catnav {
  background: var(--ab-yellow);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ab-catnav__inner {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 0 8px;
}

.ab-catnav__inner::-webkit-scrollbar {
  display: none;
}

.ab-catnav a,
.ab-catnav .menu a {
  display: block;
  padding: 8px 12px;
  color: var(--ab-text);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  border-radius: var(--ab-radius);
  text-decoration: none;
}

.ab-catnav a:hover,
.ab-catnav .menu a:hover {
  background: rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

.ab-catnav .menu {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ab-catnav .menu li {
  margin: 0;
}

.ab-catnav .sub-menu {
  display: none;
}

/* Mobile menu toggle */
.ab-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: var(--ab-radius);
  color: var(--ab-text);
  padding: 0;
}

.ab-menu-toggle:hover {
  background: rgba(0, 0, 0, 0.06);
}

.ab-menu-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

@media (min-width: 768px) {
  .ab-menu-toggle {
    display: none;
  }

  .ab-header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    padding: 12px 0;
  }

  .ab-header__top {
    display: contents;
  }

  .ab-logo {
    font-size: 1.35rem;
  }

  .ab-logo__mark {
    width: 40px;
    height: 40px;
  }

  .ab-search {
    order: 0;
  }

  .ab-header__actions {
    gap: 4px;
  }

  .ab-header__link span {
    display: inline;
  }

  .ab-catnav__inner {
    padding-bottom: 10px;
  }
}

@media (max-width: 767px) {
  .ab-header__link span.hide-mobile {
    display: none;
  }

  .ab-utility__links {
    display: none;
  }

  .ab-utility__links.is-open {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
  }
}

/* ==========================================================================
   Homepage
   ========================================================================== */
.ab-home {
  padding-bottom: 40px;
}

/* Promo banners */
.ab-banners {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

.ab-banner {
  background: linear-gradient(135deg, var(--ab-blue) 0%, #1a5fcc 100%);
  color: #fff;
  border-radius: var(--ab-radius-lg);
  padding: 28px 24px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--ab-shadow-md);
}

.ab-banner--yellow {
  background: linear-gradient(135deg, var(--ab-yellow) 0%, #f0d000 100%);
  color: var(--ab-text);
}

.ab-banner--deal {
  background: linear-gradient(135deg, var(--ab-deal) 0%, #c62828 100%);
}

.ab-banner__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
  margin-bottom: 6px;
}

.ab-banner__title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.2;
}

.ab-banner__desc {
  font-size: 14px;
  opacity: 0.95;
  margin: 0 0 14px;
}

.ab-banner__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background: #fff;
  color: var(--ab-blue);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.ab-banner--yellow .ab-banner__cta {
  background: var(--ab-blue);
  color: #fff;
}

.ab-banner__cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--ab-shadow-md);
  text-decoration: none;
}

@media (min-width: 768px) {
  .ab-banners {
    grid-template-columns: 2fr 1fr;
  }

  .ab-banner:first-child {
    grid-row: span 2;
    min-height: 280px;
  }

  .ab-banner__title {
    font-size: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .ab-banners {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .ab-banner:first-child {
    grid-row: span 1;
    min-height: 200px;
  }
}

/* Category icon grid */
.ab-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.ab-cat {
  background: #fff;
  border-radius: var(--ab-radius);
  padding: 16px 8px;
  text-align: center;
  text-decoration: none;
  color: var(--ab-text);
  box-shadow: var(--ab-shadow);
  transition: box-shadow 0.15s, transform 0.15s;
  border: 1px solid var(--ab-border);
}

.ab-cat:hover {
  box-shadow: var(--ab-shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--ab-text);
}

.ab-cat__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  background: var(--ab-bg-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.ab-cat__name {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

@media (min-width: 600px) {
  .ab-cats {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (min-width: 900px) {
  .ab-cats {
    grid-template-columns: repeat(10, 1fr);
  }

  .ab-cat__name {
    font-size: 12px;
  }
}

/* Product grid */
.ab-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 600px) {
  .ab-products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .ab-products {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1100px) {
  .ab-products {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Product card */
.ab-card {
  background: #fff;
  border-radius: var(--ab-radius);
  overflow: hidden;
  border: 1px solid var(--ab-border);
  transition: box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ab-card:hover {
  box-shadow: var(--ab-shadow-md);
  transform: translateY(-2px);
}

.ab-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ab-card__link:hover {
  text-decoration: none;
  color: inherit;
}

.ab-card__img {
  aspect-ratio: 1;
  background: var(--ab-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.ab-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.ab-card__placeholder {
  color: var(--ab-text-light);
  font-size: 2.5rem;
}

.ab-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--ab-deal);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 1;
}

.ab-card__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}

.ab-card__title {
  font-size: 13px;
  font-weight: 400;
  color: var(--ab-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  min-height: 2.7em;
}

.ab-card__price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ab-blue);
  margin-top: 4px;
}
.ab-card__price .woocommerce-Price-amount,
.ab-card__price .amount {
  color: var(--ab-blue);
  font-weight: 700;
}

.ab-card__price del {
  font-size: 0.8rem;
  color: var(--ab-text-light);
  font-weight: 400;
  margin-right: 6px;
}

.ab-card__installments {
  font-size: 12px;
  color: var(--ab-text-muted);
}

.ab-card__shipping {
  font-size: 12px;
  color: var(--ab-success);
  font-weight: 600;
  margin-top: auto;
  padding-top: 6px;
}

/* Trust strip */
.ab-trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  background: #fff;
  border-radius: var(--ab-radius-lg);
  padding: 24px 16px;
  border: 1px solid var(--ab-border);
  margin-top: 32px;
}

.ab-trust__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 8px;
}

.ab-trust__icon {
  width: 44px;
  height: 44px;
  background: rgba(52, 131, 250, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--ab-blue);
}

.ab-trust__title {
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 2px;
}

.ab-trust__desc {
  font-size: 12px;
  color: var(--ab-text-muted);
  margin: 0;
}

@media (min-width: 600px) {
  .ab-trust {
    grid-template-columns: repeat(2, 1fr);
    padding: 28px 24px;
  }
}
@media (min-width: 900px) {
  .ab-trust {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Empty / demo state */
.ab-empty {
  background: #fff;
  border: 1px dashed var(--ab-border);
  border-radius: var(--ab-radius);
  padding: 40px 24px;
  text-align: center;
  color: var(--ab-text-muted);
}

.ab-empty__icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.ab-empty__title {
  font-size: 1.1rem;
  color: var(--ab-text);
  margin-bottom: 8px;
}

.ab-empty__desc {
  font-size: 14px;
  max-width: 400px;
  margin: 0 auto 16px;
}

/* Demo product cards (when no WooCommerce products) */
.ab-demo-card .ab-card__img {
  background: linear-gradient(145deg, #f0f0f0, #e8e8e8);
}

/* ==========================================================================
   Shop / Archive layout
   ========================================================================== */
.ab-shop {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px 0 40px;
}

.ab-shop__sidebar {
  background: #fff;
  border-radius: var(--ab-radius);
  border: 1px solid var(--ab-border);
  padding: 16px;
}

.ab-shop__sidebar h3 {
  font-size: 14px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ab-border);
}

.ab-filters__group {
  margin-bottom: 20px;
}

.ab-filters__group:last-child {
  margin-bottom: 0;
}

.ab-filters__label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.ab-filters__list li {
  margin-bottom: 6px;
}

.ab-filters__list a,
.ab-filters__list label {
  font-size: 13px;
  color: var(--ab-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ab-filters__list a:hover {
  color: var(--ab-blue);
  text-decoration: none;
}

.ab-filters__stub {
  font-size: 12px;
  color: var(--ab-text-light);
  font-style: italic;
}

.ab-shop__main {
  min-width: 0;
}

.ab-shop__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.ab-shop__count {
  font-size: 13px;
  color: var(--ab-text-muted);
}

.ab-shop__sort select {
  padding: 8px 12px;
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius);
  background: #fff;
  color: var(--ab-text);
}

.ab-breadcrumb {
  font-size: 12px;
  color: var(--ab-text-muted);
  margin-bottom: 16px;
  padding-top: 16px;
}

.ab-breadcrumb a {
  color: var(--ab-text-muted);
}

.ab-breadcrumb span {
  margin: 0 6px;
  color: var(--ab-border);
}

@media (min-width: 900px) {
  .ab-shop {
    grid-template-columns: 240px 1fr;
  }
}

/* ==========================================================================
   Single product
   ========================================================================== */
.ab-product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px 0 40px;
  background: #fff;
  border-radius: var(--ab-radius-lg);
  margin: 16px 0 40px;
  padding: 16px;
  border: 1px solid var(--ab-border);
}

.ab-product__gallery {
  background: var(--ab-bg-soft);
  border-radius: var(--ab-radius);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.ab-product__gallery img {
  max-height: 100%;
  object-fit: contain;
  padding: 16px;
}

.ab-product__gallery-placeholder {
  font-size: 4rem;
  color: var(--ab-text-light);
}

.ab-product__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ab-product__title {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.ab-product__meta {
  font-size: 12px;
  color: var(--ab-text-muted);
}

.ab-product__price-block {
  background: var(--ab-bg-soft);
  border-radius: var(--ab-radius);
  padding: 16px;
}

.ab-product__price {
  font-size: 2rem;
  font-weight: 600;
  color: var(--ab-text);
  line-height: 1.2;
}

.ab-product__price del {
  font-size: 1rem;
  color: var(--ab-text-light);
  font-weight: 400;
  display: block;
  margin-bottom: 4px;
}

.ab-product__installments {
  font-size: 14px;
  color: var(--ab-text-muted);
  margin-top: 6px;
}

.ab-product__shipping {
  font-size: 14px;
  color: var(--ab-success);
  font-weight: 600;
  margin-top: 8px;
}

.ab-buybox {
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ab-buybox__stock {
  font-size: 14px;
  color: var(--ab-success);
  font-weight: 600;
}

.ab-buybox__qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ab-buybox__qty label {
  font-size: 13px;
  color: var(--ab-text-muted);
}

.ab-buybox__qty input {
  width: 64px;
  padding: 8px;
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius);
  text-align: center;
}

.ab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 0;
  border-radius: var(--ab-radius);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  width: 100%;
}

.ab-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.ab-btn--primary {
  background: var(--ab-blue);
  color: #fff;
}

.ab-btn--primary:hover {
  background: var(--ab-blue-hover);
  color: #fff;
}

.ab-btn--secondary {
  background: rgba(52, 131, 250, 0.12);
  color: var(--ab-blue);
}

.ab-btn--secondary:hover {
  background: rgba(52, 131, 250, 0.2);
  color: var(--ab-blue);
}

.ab-btn--yellow {
  background: var(--ab-yellow);
  color: var(--ab-text);
}

.ab-btn--yellow:hover {
  background: var(--ab-yellow-hover);
  color: var(--ab-text);
}

.ab-seller {
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ab-seller__avatar {
  width: 48px;
  height: 48px;
  background: var(--ab-blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.ab-seller__name {
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 2px;
}

.ab-seller__label {
  font-size: 12px;
  color: var(--ab-text-muted);
  margin: 0;
}

.ab-seller__badge {
  margin-left: auto;
  background: rgba(0, 166, 80, 0.1);
  color: var(--ab-success);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.ab-product__desc {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid var(--ab-border);
}

.ab-product__desc h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .ab-product {
    grid-template-columns: 1fr 1fr;
    padding: 24px;
    gap: 32px;
  }

  .ab-product__desc {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .ab-product {
    grid-template-columns: 1.2fr 1fr 280px;
  }

  .ab-product__buy-col {
    grid-column: 3;
    grid-row: 1;
  }

  .ab-product__desc {
    grid-column: 1 / -1;
  }
}

/* WooCommerce form overrides in buy box */
.ab-buybox .quantity {
  margin-bottom: 8px;
}

.ab-buybox .single_add_to_cart_button,
.ab-buybox button.button {
  background: var(--ab-blue) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: var(--ab-radius) !important;
  padding: 14px 24px !important;
  font-weight: 700 !important;
  width: 100%;
  font-size: 15px !important;
}

.ab-buybox .single_add_to_cart_button:hover {
  background: var(--ab-blue-hover) !important;
}

/* ==========================================================================
   Content pages / posts
   ========================================================================== */
.ab-content {
  background: #fff;
  border-radius: var(--ab-radius-lg);
  border: 1px solid var(--ab-border);
  padding: 24px;
  margin: 24px 0 40px;
  max-width: 800px;
}

.ab-content h1 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.ab-content .entry-content {
  font-size: 15px;
  line-height: 1.7;
}

.ab-content .entry-content p {
  margin-bottom: 1em;
}

.ab-content .entry-content ul,
.ab-content .entry-content ol {
  margin: 0 0 1em 1.5em;
  list-style: disc;
}

.ab-content .entry-content ol {
  list-style: decimal;
}

/* Search results */
.ab-search-results {
  padding: 24px 0 40px;
}

.ab-search-results h1 {
  font-size: 1.35rem;
  margin-bottom: 20px;
}

/* 404 */
.ab-404 {
  text-align: center;
  padding: 60px 24px;
  background: #fff;
  border-radius: var(--ab-radius-lg);
  border: 1px solid var(--ab-border);
  margin: 24px 0 40px;
}

.ab-404__code {
  font-size: 5rem;
  font-weight: 800;
  color: var(--ab-yellow);
  line-height: 1;
  text-shadow: 2px 2px 0 var(--ab-blue);
}

.ab-404__title {
  font-size: 1.5rem;
  margin: 16px 0 8px;
}

.ab-404__desc {
  color: var(--ab-text-muted);
  margin-bottom: 24px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.ab-footer {
  background: #333;
  color: #ccc;
  padding: 40px 0 0;
  margin-top: auto;
}

.ab-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 32px;
}

.ab-footer__col h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 12px;
  font-weight: 700;
}

.ab-footer__col a {
  color: #aaa;
  font-size: 13px;
  display: block;
  padding: 4px 0;
}

.ab-footer__col a:hover {
  color: var(--ab-yellow);
  text-decoration: none;
}

.ab-footer__col p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  color: #aaa;
}

.ab-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ab-footer__bottom {
  border-top: 1px solid #444;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 12px;
  color: #888;
}

.ab-footer__credit a {
  color: var(--ab-yellow);
  font-weight: 600;
}

.ab-footer__credit a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .ab-footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .ab-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   WooCommerce global tweaks
   ========================================================================== */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
  border-radius: var(--ab-radius);
  border-top: 3px solid var(--ab-blue);
}

.woocommerce .woocommerce-message {
  border-top-color: var(--ab-success);
}

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}

.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
}

@media (min-width: 600px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.woocommerce nav.woocommerce-pagination {
  margin-top: 24px;
  text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
  display: inline-flex;
  gap: 4px;
  border: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: 0;
  overflow: visible;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  padding: 8px 14px;
  border-radius: var(--ab-radius);
  border: 1px solid var(--ab-border);
  background: #fff;
  color: var(--ab-text);
  min-width: auto;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--ab-blue);
  color: #fff;
  border-color: var(--ab-blue);
}

.woocommerce-Price-amount {
  font-weight: inherit;
}

/* Cart / checkout pages */
.woocommerce-cart .ab-content,
.woocommerce-checkout .ab-content,
.woocommerce-account .ab-content {
  max-width: 100%;
}

.woocommerce table.shop_table {
  border-radius: var(--ab-radius);
  border-color: var(--ab-border);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--ab-blue) !important;
  color: #fff !important;
  border-radius: var(--ab-radius) !important;
  font-weight: 600 !important;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--ab-blue) !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--ab-blue-hover) !important;
}

/* Site wrapper */
.ab-site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.ab-main {
  flex: 1;
}

/* Widget areas */
.widget {
  margin-bottom: 16px;
}

.widget title,
.widget .widget-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Skip link */
.ab-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--ab-blue);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--ab-radius);
  z-index: 9999;
}

.ab-skip-link:focus {
  top: 8px;
}


/* ==========================================================================
   Opção A — Mercado Livre-style layout polish (v1.0.3)
   ========================================================================== */

/* Utility secure badge */
.ab-utility__secure {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ab-text-muted);
  font-size: 12px;
  white-space: nowrap;
}
.ab-utility__secure svg {
  width: 14px;
  height: 14px;
  fill: var(--ab-success);
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .ab-utility__secure { display: none; }
}

/* Header row: logo | HUGE search | actions */
.ab-header {
  background: var(--ab-yellow) !important;
  box-shadow: none;
}
.ab-header__inner { padding: 0; }
.ab-header__row {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 14px 0;
}
.ab-header__row .ab-search {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.ab-header__row .ab-search__form {
  border: 2px solid #E6C800;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  border-radius: 4px;
  min-height: 48px;
}
.ab-header__row .ab-search__input {
  padding: 14px 18px;
  font-size: 16px;
}
.ab-header__row .ab-search__btn {
  background: var(--ab-blue);
  color: #fff;
  padding: 0 20px;
  min-width: 52px;
}
.ab-header__row .ab-search__btn:hover {
  background: var(--ab-blue-hover);
}
.ab-header__row .ab-search__btn svg {
  fill: #fff;
}

.ab-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.ab-logo__name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ab-blue);
}
.ab-logo__name--br {
  color: var(--ab-success);
  font-size: 0.95rem;
}
.ab-logo__mark {
  background: var(--ab-blue);
  border-radius: 8px;
}

/* Full yellow category nav */
.ab-catnav {
  background: var(--ab-yellow) !important;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: none !important;
}
.ab-catnav__inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ab-catnav__inner::-webkit-scrollbar { display: none; }
.ab-catnav a,
.ab-catnav .menu a {
  color: #333 !important;
  font-weight: 600 !important;
  font-size: 13px;
  padding: 8px 12px;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 4px;
}
.ab-catnav a:hover,
.ab-catnav .menu a:hover {
  background: rgba(0,0,0,0.06);
  text-decoration: none;
}
.ab-catnav .menu {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ab-catnav__all {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-weight: 700 !important;
}
.ab-catnav__more {
  display: inline-flex !important;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

@media (max-width: 768px) {
  .ab-header__row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .ab-header__row .ab-search {
    order: 3;
    flex: 1 1 100%;
  }
  .ab-catnav__more { display: none !important; }
}

/* Hero split */
.ab-hero-a {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.ab-hero-a__main {
  background: #FFF8DC;
  border-radius: 12px;
  padding: 32px 36px;
  position: relative;
  min-height: 240px;
  overflow: hidden;
  box-shadow: var(--ab-shadow);
}
.ab-hero-a__chip {
  display: inline-block;
  background: var(--ab-yellow);
  color: #333;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.ab-hero-a__title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: #0B3A8C;
  max-width: 18ch;
  margin: 0 0 10px;
  line-height: 1.2;
}
.ab-hero-a__desc {
  font-size: 14px;
  color: var(--ab-text-muted);
  max-width: 36ch;
  margin: 0 0 18px;
}
.ab-hero-a__cta {
  display: inline-block;
  background: var(--ab-blue);
  color: #fff !important;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none !important;
}
.ab-hero-a__cta:hover { background: var(--ab-blue-hover); }
.ab-hero-a__art {
  position: absolute;
  right: 28px;
  bottom: 20px;
  font-size: 80px;
  opacity: 0.92;
  line-height: 1;
}
.ab-hero-a__side {
  background: var(--ab-blue);
  border-radius: 12px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 20px;
  min-height: 240px;
  box-shadow: var(--ab-shadow);
}
.ab-hero-a__off {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 14px;
  line-height: 1.1;
  color: #fff;
}
.ab-hero-a__pill {
  background: var(--ab-yellow);
  color: #333;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
}
.ab-hero-a__note {
  margin: 16px 0 0;
  font-size: 11px;
  opacity: 0.85;
  color: #fff;
}
@media (max-width: 768px) {
  .ab-hero-a { grid-template-columns: 1fr; }
  .ab-hero-a__art { display: none; }
  .ab-hero-a__main, .ab-hero-a__side { min-height: 0; }
}

/* Section head with Ver todas */
.ab-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.ab-section-head .ab-section-title {
  margin: 0;
}
.ab-lightning {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--ab-yellow);
  border-radius: 50%;
  font-size: 14px;
  margin-right: 4px;
}
.ab-section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ab-blue);
  white-space: nowrap;
  text-decoration: none;
}
.ab-section-link:hover { text-decoration: underline; }

/* Category cards polish */
.ab-cats-section { margin-top: 8px; }
.ab-cat {
  border: none;
  box-shadow: var(--ab-shadow);
  border-radius: 8px;
  padding: 14px 6px;
}
.ab-cat__icon {
  background: rgba(52, 131, 250, 0.08);
  color: var(--ab-blue);
}

/* Frete grátis green uppercase */
.ab-card__shipping {
  font-size: 12px;
  color: var(--ab-success);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: auto;
  padding-top: 6px;
}
