/**
 * Obra Certa — ob-shop.css v1.0
 * Fase 3: Listagem / categoria / busca / carrinho
 * DNA: verde #25D366 · azul var(--lc-primary-deep) · laranja var(--lc-cta)
 */

/* ============================================================
   TOKENS (espelha ob-product-rebuild.css)
   ============================================================ */
:root {
  --obs-green:   #25D366;
  --obs-blue:    var(--lc-primary-deep);
  --obs-orange:  var(--lc-cta);
  --obs-white:   #ffffff;
  --obs-soft:    #f4f6f9;
  --obs-border:  #e8ebf0;
  --obs-muted:   #8a96a3;
  --obs-text:    #1a1a2e;
  --obs-radius:  10px;
  --obs-tr:      180ms ease;
  --obs-shadow:  0 2px 12px rgba(0,0,0,.07);
}


/* ============================================================
   LAYOUT GERAL DA PÁGINA DE LISTAGEM
   ============================================================ */

/* Container principal da loja / arquivo */
.woocommerce.archive .site-main,
.woocommerce-page.archive .site-main,
.tax-product_cat .site-main,
.search-results .site-main {
  padding-top: 0;
}

/* Layout 2 colunas: sidebar esquerda + grid direita */
.woocommerce-products-header + .woocommerce-notices-wrapper,
.woocommerce-page .woocommerce,
.archive.woocommerce .woocommerce {
  display: block;
}


/* ============================================================
   ARCHIVE HEADER — Título da página/categoria
   ============================================================ */
.woocommerce-products-header {
  background: var(--obs-blue);
  color: #fff;
  padding: 32px 0 28px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}
.woocommerce-products-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,107,0,.12) 0%, transparent 60%);
  pointer-events: none;
}
.woocommerce-products-header .page-title,
.woocommerce-products-header h1.woocommerce-products-header__title {
  font-size: clamp(22px, 4vw, 36px) !important;
  font-weight: 800 !important;
  color: #fff !important;
  text-transform: uppercase !important;
  letter-spacing: -0.01em;
  margin: 0 !important;
  position: relative;
  z-index: 1;
}
.woocommerce-products-header__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--obs-green);
  border-radius: 2px;
  margin-top: 8px;
}

/* Descrição da categoria */
.term-description {
  color: rgba(255,255,255,.75);
  font-size: 14px;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}


/* ============================================================
   BARRA DE FERRAMENTAS (count + sort + view)
   ============================================================ */
.woocommerce-result-count,
.woocommerce-ordering {
  margin-bottom: 0;
}

/* Wrapper que envolve count + ordering (criado pelo WC) */
.woocommerce .woocommerce-result-count {
  font-size: 13px;
  color: var(--obs-muted);
  font-weight: 500;
  line-height: 38px;
  margin: 0;
}
.woocommerce .woocommerce-result-count strong {
  color: var(--obs-blue);
  font-weight: 700;
}

/* Select de ordenação */
.woocommerce .woocommerce-ordering {
  float: right;
  margin: 0;
}
.woocommerce .woocommerce-ordering select {
  height: 38px;
  border: 1.5px solid var(--obs-border) !important;
  border-radius: 8px !important;
  padding: 0 32px 0 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--obs-text) !important;
  background-color: var(--obs-white) !important;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238a96a3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  cursor: pointer;
  transition: border-color var(--obs-tr);
  min-width: 160px;
  box-shadow: none !important;
  outline: none !important;
}
.woocommerce .woocommerce-ordering select:focus {
  border-color: var(--obs-green) !important;
}

/* Toolbar container (injectado pelo tema pai ou WC) */
.ob-shop-toolbar,
.woocommerce .ob-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--obs-white);
  border: 1px solid var(--obs-border);
  border-radius: var(--obs-radius);
  padding: 10px 16px;
  margin-bottom: 20px;
  box-shadow: var(--obs-shadow);
}


/* ============================================================
   SIDEBAR — filtros e widgets
   ============================================================ */

/* Widget genérico */
.ob-shop-sidebar .widget,
.sidebar-shop .widget {
  background: var(--obs-white);
  border: 1px solid var(--obs-border);
  border-radius: var(--obs-radius);
  padding: 20px;
  margin-bottom: 16px !important;
  box-shadow: var(--obs-shadow);
}

/* Título do widget */
.ob-shop-sidebar .widget-title,
.ob-shop-sidebar .widgettitle,
.ob-shop-sidebar h2,
.sidebar-shop .widget-title,
.sidebar-shop .widgettitle {
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--obs-blue) !important;
  margin: 0 0 14px !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid var(--obs-green) !important;
}

/* Lista de categorias */
.ob-shop-sidebar .widget_product_categories ul,
.sidebar-shop .widget_product_categories ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.ob-shop-sidebar .widget_product_categories li,
.sidebar-shop .widget_product_categories li {
  border-bottom: 1px solid var(--obs-border);
}
.ob-shop-sidebar .widget_product_categories li:last-child,
.sidebar-shop .widget_product_categories li:last-child {
  border-bottom: none;
}
.ob-shop-sidebar .widget_product_categories a,
.sidebar-shop .widget_product_categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--obs-text);
  text-decoration: none;
  transition: color var(--obs-tr);
}
.ob-shop-sidebar .widget_product_categories a:hover,
.sidebar-shop .widget_product_categories a:hover {
  color: var(--obs-green);
}
.ob-shop-sidebar .widget_product_categories .count,
.sidebar-shop .widget_product_categories .count {
  background: var(--obs-soft);
  border-radius: 20px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--obs-muted);
}
.ob-shop-sidebar .widget_product_categories .current-cat > a,
.sidebar-shop .widget_product_categories .current-cat > a {
  color: var(--obs-green);
  font-weight: 700;
}
.ob-shop-sidebar .widget_product_categories .current-cat > .count,
.sidebar-shop .widget_product_categories .current-cat > .count {
  background: rgba(37,211,102,.12);
  color: var(--lc-success-700);
}

/* Filtro de preço */
.widget_price_filter .price_slider_wrapper {
  padding-top: 8px;
}
.widget_price_filter .price_slider {
  margin-bottom: 12px !important;
  height: 4px !important;
}
.widget_price_filter .ui-slider-range {
  background: var(--obs-green) !important;
}
.widget_price_filter .ui-slider-handle {
  width: 16px !important;
  height: 16px !important;
  background: var(--obs-white) !important;
  border: 2px solid var(--obs-green) !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 6px rgba(37,211,102,.3) !important;
  top: -6px !important;
  cursor: grab;
}
.widget_price_filter .ui-slider-handle:active { cursor: grabbing !important; }
.widget_price_filter .price_label {
  font-size: 13px;
  color: var(--obs-text);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}
.widget_price_filter .price_label .from,
.widget_price_filter .price_label .to {
  color: var(--obs-blue);
  font-weight: 700;
}

/* Botão "Filtrar" (FILTER) → CTA verde */
.widget_price_filter .button,
.widget_price_filter button[type="submit"] {
  background: var(--obs-green) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 9px 20px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background var(--obs-tr), transform var(--obs-tr) !important;
  box-shadow: none !important;
  width: 100% !important;
  margin-top: 10px !important;
}
.widget_price_filter .button:hover,
.widget_price_filter button[type="submit"]:hover {
  background: var(--lc-success) !important;
  transform: translateY(-1px) !important;
}

/* Active filters */
.woocommerce-widget-layered-nav-list__item.chosen a {
  color: var(--obs-green) !important;
  font-weight: 700 !important;
}


/* ============================================================
   GRID DE PRODUTOS — listagem/arquivo
   ============================================================ */

/* ul.products usado pelo WooCommerce */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 18px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.woocommerce ul.products.columns-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}
.woocommerce ul.products.columns-2 {
  grid-template-columns: repeat(2, 1fr) !important;
}
.woocommerce ul.products li.product {
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
}

/* Com sidebar: 3 colunas */
.woocommerce-page .has-sidebar ul.products,
.archive.has-sidebar .woocommerce ul.products {
  grid-template-columns: repeat(3, 1fr) !important;
}


/* ============================================================
   FASE 2 CARD CSS — disponível globalmente (listing + home)
   ============================================================ */

/* Badge "Mais Vendido" */
.ob-badge--bestseller {
  background: var(--lc-primary-deep);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 2px;
  text-transform: uppercase;
}

/* Botão "Ver opções" — produto variável → verde sólido */
.ob-product-card__add-btn--outline {
  background: #25D366 !important;
  border: 1.5px solid #25D366 !important;
  color: #fff !important;
}
.ob-product-card__add-btn--outline:hover {
  background: var(--lc-success) !important;
  border-color: var(--lc-success) !important;
  color: #fff !important;
}

/* Indicador de estoque */
.ob-product-card__stock {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  color: #8a96a3;
}
.ob-product-card__stock--in  { color: var(--lc-success-700); }
.ob-product-card__stock--out { color: var(--lc-danger); }
.ob-stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #ccc;
}
.ob-product-card__stock--in  .ob-stock-dot {
  background: #25D366;
  box-shadow: 0 0 0 2px rgba(37,211,102,.2);
}
.ob-product-card__stock--out .ob-stock-dot { background: var(--lc-danger); }

/* Rating stars */
.ob-product-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}
.ob-stars {
  --pct: calc(var(--rating) / 5 * 100%);
  display: inline-block;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 1px;
  background: linear-gradient(to right, var(--lc-warn) var(--pct), #ddd var(--pct));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ob-rating-count {
  font-size: 10px;
  color: #8a96a3;
}

/* Botão "Comprar" produto simples → verde (override Blocksy button[class*="ajax"]) */
.ob-product-card__add-btn {
  background: #25D366 !important;
  border-color: #25D366 !important;
  color: #fff !important;
}
.ob-product-card__add-btn:hover {
  background: var(--lc-success) !important;
  border-color: var(--lc-success) !important;
  color: #fff !important;
}

/* Card add-to-cart feedback */
.ob-product-card__add-btn.is-loading {
  opacity: 0.75;
  pointer-events: none;
}
.ob-product-card__add-btn.is-added {
  background: var(--lc-primary-deep) !important;
  pointer-events: none;
}


/* ============================================================
   PAGINAÇÃO
   ============================================================ */
.woocommerce-pagination {
  margin-top: 40px;
  text-align: center;
}
.woocommerce-pagination ul {
  display: inline-flex !important;
  gap: 6px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}
.woocommerce-pagination ul li {
  margin: 0 !important;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border: 1.5px solid var(--obs-border) !important;
  color: var(--obs-text) !important;
  text-decoration: none !important;
  background: var(--obs-white) !important;
  transition: all var(--obs-tr) !important;
  box-shadow: none !important;
}
.woocommerce-pagination ul li a:hover {
  border-color: var(--obs-green) !important;
  color: var(--obs-green) !important;
  background: rgba(37,211,102,.05) !important;
}
.woocommerce-pagination ul li span.current {
  background: var(--obs-green) !important;
  border-color: var(--obs-green) !important;
  color: #fff !important;
}


/* ============================================================
   CARRINHO — melhorias visuais
   ============================================================ */
.woocommerce-cart .woocommerce {
  background: transparent;
}
.woocommerce-cart table.cart {
  border: 1px solid var(--obs-border) !important;
  border-radius: var(--obs-radius) !important;
  overflow: hidden !important;
  box-shadow: var(--obs-shadow) !important;
}
.woocommerce-cart table.cart thead th {
  background: var(--obs-blue) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 12px 16px !important;
  border: none !important;
}
.woocommerce-cart table.cart tbody td {
  border-color: var(--obs-border) !important;
  padding: 16px !important;
  vertical-align: middle !important;
}
.woocommerce-cart table.cart .product-name a {
  color: var(--obs-blue) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
.woocommerce-cart table.cart .product-name a:hover {
  color: var(--obs-green) !important;
}
.woocommerce-cart .quantity input.qty {
  border: 1.5px solid var(--obs-border) !important;
  border-radius: 8px !important;
  text-align: center !important;
  font-weight: 700 !important;
  width: 64px !important;
  height: 38px !important;
  font-size: 14px !important;
}
.woocommerce-cart .quantity input.qty:focus {
  border-color: var(--obs-green) !important;
  outline: none !important;
}

/* Botão "Atualizar carrinho" → outline */
.woocommerce-cart .actions .button[name="update_cart"] {
  background: transparent !important;
  border: 1.5px solid var(--obs-border) !important;
  color: var(--obs-text) !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
  cursor: pointer !important;
  transition: border-color var(--obs-tr) !important;
}
.woocommerce-cart .actions .button[name="update_cart"]:hover {
  border-color: var(--obs-blue) !important;
  color: var(--obs-blue) !important;
}

/* Cart totals box */
.woocommerce-cart .cart_totals {
  background: var(--obs-white) !important;
  border: 1px solid var(--obs-border) !important;
  border-radius: var(--obs-radius) !important;
  padding: 24px !important;
  box-shadow: var(--obs-shadow) !important;
}
.woocommerce-cart .cart_totals h2 {
  font-size: 16px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: var(--obs-blue) !important;
  margin: 0 0 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid var(--obs-green) !important;
}
.woocommerce-cart .cart_totals table {
  border: none !important;
}
.woocommerce-cart .cart_totals table th {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--obs-muted) !important;
  padding: 8px 0 !important;
  border: none !important;
  background: transparent !important;
}
.woocommerce-cart .cart_totals table td {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--obs-text) !important;
  padding: 8px 0 !important;
  border: none !important;
  text-align: right !important;
}
.woocommerce-cart .cart_totals .order-total td {
  font-size: 22px !important;
  color: var(--obs-green) !important;
}

/* Botão "Ir para o checkout" → CTA verde */
.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  background: var(--obs-green) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  padding: 16px 24px !important;
  text-decoration: none !important;
  transition: background var(--obs-tr), transform var(--obs-tr) !important;
  box-shadow: 0 4px 16px rgba(37,211,102,.3) !important;
  margin-top: 16px !important;
}
.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
  background: var(--lc-success) !important;
  transform: translateY(-1px) !important;
}


/* ============================================================
   HOME HERO — corrige acento roxo para laranja/verde
   ============================================================ */

/* Sobrescreve qualquer cor roxa/violeta no hero do slider */
.ob-hero-slide [style*="color: #9"],
.ob-hero-slide [style*="color:#9"],
.ob-hero-slide [style*="color: rgb(155"],
.ob-hero-slide [style*="color: rgb(147"] {
  color: var(--obs-orange) !important;
}

/* Botões roxos → verde no hero */
.ob-hero-slide .wp-block-button__link[style*="background-color: #9"],
.ob-hero-slide .wp-block-button__link[style*="background:#9"],
.ob-hero-slide .wp-block-button__link[style*="background-color: rgb(155"],
.ob-hero .wp-block-button__link[style*="background-color: #9"],
.ob-hero .wp-block-button__link[style*="background:#9"] {
  background-color: var(--obs-green) !important;
  border-color: var(--obs-green) !important;
}

/* Garante que botões CTA do hero sempre seguem o DNA:
   sólido = verde, outline = sem fill */
.ob-hero-slide__cta a,
.ob-hero .ct-button,
.ob-hero-item__cta a {
  background: var(--obs-green) !important;
  border-color: var(--obs-green) !important;
  color: #fff !important;
}
.ob-hero-slide__cta a:hover,
.ob-hero .ct-button:hover,
.ob-hero-item__cta a:hover {
  background: var(--lc-success) !important;
}


/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1100px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .woocommerce-pagination ul li a,
  .woocommerce-pagination ul li span {
    width: 34px !important;
    height: 34px !important;
    font-size: 12px !important;
  }
}
@media (max-width: 480px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .woocommerce ul.products.columns-1 {
    grid-template-columns: 1fr !important;
  }
}


/* ============================================================
   SIDE CART (carrinho lateral) — upgrades DNA Fase 3
   ============================================================ */

/* Header do cart lateral */
#ob-cart-sidebar .ob-cart-header,
.ob-cart-sidebar .ob-cart-header {
  background: var(--obs-blue) !important;
  color: #fff !important;
  padding: 16px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-shrink: 0 !important;
  border-bottom: 3px solid var(--obs-green) !important;
}
#ob-cart-sidebar .ob-cart-header__title,
.ob-cart-sidebar .ob-cart-header__title {
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: #fff !important;
  margin: 0 !important;
}
#ob-cart-sidebar .ob-cart-header__close,
.ob-cart-sidebar .ob-cart-header__close,
#ob-cart-sidebar .ob-cart-close {
  background: rgba(255,255,255,.12) !important;
  border: none !important;
  color: #fff !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 18px !important;
  line-height: 1 !important;
  transition: background var(--obs-tr) !important;
  flex-shrink: 0 !important;
}
#ob-cart-sidebar .ob-cart-header__close:hover,
.ob-cart-sidebar .ob-cart-header__close:hover,
#ob-cart-sidebar .ob-cart-close:hover {
  background: rgba(255,255,255,.25) !important;
}

/* Lista de itens — scroll */
#ob-cart-sidebar .ob-cart-items,
.ob-cart-sidebar .ob-cart-items,
#ob-cart-sidebar .woocommerce-mini-cart {
  flex: 1 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}
#ob-cart-sidebar .woocommerce-mini-cart::-webkit-scrollbar { width: 4px; }
#ob-cart-sidebar .woocommerce-mini-cart::-webkit-scrollbar-thumb {
  background: rgba(13,27,75,.2);
  border-radius: 2px;
}

/* Preço do item no side cart */
#ob-cart-sidebar .product-data .woocommerce-Price-amount,
.ob-cart-sidebar .product-data .woocommerce-Price-amount {
  color: var(--obs-blue) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
}

/* Footer do cart lateral */
#ob-cart-sidebar .ob-cart-footer,
.ob-cart-sidebar .ob-cart-footer {
  border-top: 1px solid var(--obs-border) !important;
  padding: 16px 20px !important;
  background: var(--obs-white) !important;
  flex-shrink: 0 !important;
}

/* Total no footer */
#ob-cart-sidebar .ob-cart-footer__total,
.ob-cart-sidebar .ob-cart-footer__total {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 12px !important;
}
#ob-cart-sidebar .ob-cart-footer__total-label,
.ob-cart-sidebar .ob-cart-footer__total-label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--obs-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}
#ob-cart-sidebar .ob-cart-footer__total-value,
.ob-cart-sidebar .ob-cart-footer__total-value,
#ob-cart-sidebar .ob-cart-total-value {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--obs-green) !important;
}
#ob-cart-sidebar .ob-cart-footer__total-value .woocommerce-Price-amount,
.ob-cart-sidebar .ob-cart-footer__total-value .woocommerce-Price-amount,
#ob-cart-sidebar .ob-cart-total-value .woocommerce-Price-amount {
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}

/* Botão "Finalizar Compra" no side cart → CTA verde */
#ob-cart-sidebar .ob-cart-footer__checkout,
.ob-cart-sidebar .ob-cart-footer__checkout,
#ob-cart-sidebar a.checkout,
#ob-cart-sidebar .ob-cart-checkout-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  background: var(--obs-green) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  padding: 14px 20px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background var(--obs-tr), transform var(--obs-tr) !important;
  box-shadow: 0 4px 16px rgba(37,211,102,.3) !important;
  margin-bottom: 8px !important;
}
#ob-cart-sidebar .ob-cart-footer__checkout:hover,
.ob-cart-sidebar .ob-cart-footer__checkout:hover,
#ob-cart-sidebar .ob-cart-checkout-btn:hover {
  background: var(--lc-success) !important;
  transform: translateY(-1px) !important;
}

/* Link "Ver carrinho" secundário */
#ob-cart-sidebar .ob-cart-footer__view,
.ob-cart-sidebar .ob-cart-footer__view,
#ob-cart-sidebar a.button.wc-forward {
  display: block !important;
  text-align: center !important;
  font-size: 12px !important;
  color: var(--obs-muted) !important;
  text-decoration: underline !important;
  padding: 4px !important;
}

/* Subtotal no mini cart do WC (dentro do sidebar) */
#ob-cart-sidebar .woocommerce-mini-cart__total {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 14px 20px 0 !important;
  margin: 0 !important;
  border-top: 1px solid var(--obs-border) !important;
}
#ob-cart-sidebar .woocommerce-mini-cart__total strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--obs-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
#ob-cart-sidebar .woocommerce-mini-cart__total .woocommerce-Price-amount {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: var(--obs-green) !important;
}

/* Botões do mini cart WC */
#ob-cart-sidebar .woocommerce-mini-cart__buttons a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 13px 20px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-align: center !important;
  text-decoration: none !important;
  transition: background var(--obs-tr), transform var(--obs-tr) !important;
  margin-bottom: 8px !important;
}
#ob-cart-sidebar .woocommerce-mini-cart__buttons .button.checkout,
#ob-cart-sidebar .woocommerce-mini-cart__buttons .checkout-button {
  background: var(--obs-green) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(37,211,102,.3) !important;
}
#ob-cart-sidebar .woocommerce-mini-cart__buttons .button.checkout:hover,
#ob-cart-sidebar .woocommerce-mini-cart__buttons .checkout-button:hover {
  background: var(--lc-success) !important;
  transform: translateY(-1px) !important;
}
#ob-cart-sidebar .woocommerce-mini-cart__buttons .button:not(.checkout):not(.checkout-button) {
  background: transparent !important;
  border: 1.5px solid var(--obs-border) !important;
  color: var(--obs-text) !important;
}
#ob-cart-sidebar .woocommerce-mini-cart__buttons .button:not(.checkout):not(.checkout-button):hover {
  border-color: var(--obs-blue) !important;
  color: var(--obs-blue) !important;
}


/* ── FIX: Botão principal do side cart → verde (override ob-btn--primary) ── */
#ob-cart-sidebar .ob-cart-sidebar__checkout,
.ob-cart-sidebar .ob-cart-sidebar__checkout,
#ob-cart-sidebar .ob-btn--primary {
  background: var(--obs-green) !important;
  border-color: var(--obs-green) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(37,211,102,.3) !important;
}
#ob-cart-sidebar .ob-cart-sidebar__checkout:hover,
.ob-cart-sidebar .ob-cart-sidebar__checkout:hover,
#ob-cart-sidebar .ob-btn--primary:hover {
  background: var(--lc-success) !important;
  border-color: var(--lc-success) !important;
  transform: translateY(-1px) !important;
}
