/* ========================================================================
   SHOP ARCHIVE – Layout tipo Presta (sidebar izq + grilla)
   Contenedor = 1440 px (--container), sidebar + productos llenan todo el ancho.
   ======================================================================== */

/* Reset float legacy de Woo 10.5.2 */
.woocommerce .oz-shop-content ul.products::before,
.woocommerce .oz-shop-content ul.products::after,
.woocommerce-page .oz-shop-content ul.products::before,
.woocommerce-page .oz-shop-content ul.products::after {
  content: none !important;
  display: none !important;
}

.woocommerce .oz-shop-content ul.products li.product,
.woocommerce-page .oz-shop-content ul.products li.product {
  float: none !important;
  width: auto !important;
  clear: none !important;
  margin: 0 !important;
}

.woocommerce .oz-shop-content ul.products li.product.first,
.woocommerce .oz-shop-content ul.products li.product.last,
.woocommerce-page .oz-shop-content ul.products li.product.first,
.woocommerce-page .oz-shop-content ul.products li.product.last {
  clear: none !important;
}

/* Layout principal: sidebar + main */
.post-type-archive-product .oz-section,
.tax-product_cat .oz-section,
.tax-product_tag .oz-section,
.post-type-archive-product.woocommerce-page .oz-section {
  padding-top: 0;
}

.oz-shop-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  width: 100%;
  /* Aire antes del footer para que la columna de filtros no quede pegada al pie */
  padding-bottom: clamp(1.75rem, 4vw, 3.5rem);
  margin-bottom: clamp(1.25rem, 3vw, 2.5rem);
}

.oz-shop-sidebar {
  min-width: 0;
  padding-bottom: clamp(0.75rem, 2vw, 1.75rem);
}

.oz-shop-clear-filters-wrap {
  margin: 0 0 var(--space-md) 0;
}

.oz-shop-clear-filters {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0064ba;
  text-decoration: none;
}

.oz-shop-clear-filters:hover,
.oz-shop-clear-filters:focus-visible {
  text-decoration: underline;
  color: #004a94;
}

/* Marca ya fijada (archivo o filtro): sin bloque de descripción/logo ni logo en sidebar (plugins) */
body.oz-shop-brand-context .term-description,
body.oz-shop-brand-context .woocommerce-products-header__description,
body.oz-shop-brand-context .archive-description,
body.oz-shop-brand-context .oz-shop-sidebar .pwb-brand-banner,
body.oz-shop-brand-context .oz-shop-sidebar .pwb-before-shop-loop,
body.oz-shop-brand-context .oz-shop-sidebar .pwb-breadcrumb,
body.oz-shop-brand-context .yith-wcbr-archive-description,
body.oz-shop-brand-context .yith-wcbr-brand-banner,
body.oz-shop-brand-context .wc-brand-banner,
body.oz-shop-brand-context .woocommerce-brand-archive-header,
body.oz-shop-brand-context #brand-description,
body.oz-shop-brand-context .oz-shop-sidebar .widget_brand_description {
  display: none !important;
}

/* Sin repetir «Marca: …» en tarjetas cuando la lista ya es por marca */
body.oz-shop-brand-context .oz-product-brand-wrap {
  display: none !important;
}

.oz-shop-sidebar .oz-sidebar {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.oz-shop-content {
  min-width: 0;
}

/* Sidebar card */
.oz-filter-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.oz-filter-card .oz-widget + .oz-widget {
  border-top: 0;
  margin-top: var(--space-lg);
  padding-top: 0;
}

.oz-filter-card .oz-widget__title {
  margin-top: 15px;
  margin-bottom: var(--space-sm);
  font-size: 1rem;
}

/* More specific rule to ensure filter titles have top spacing (higher specificity + important) */
.oz-shop-sidebar .oz-filter-card .oz-widget__title,
.sidebar-woocommerce .oz-widget .oz-widget__title {
  margin-top: 15px !important;
}

.oz-shop-sidebar li,
.oz-shop-sidebar .oz-cat-item,
.oz-shop-sidebar .oz-cat-children {
  border: 0;
}

/* Toolbar */
.oz-shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  padding: 0.5rem 0.75rem;
  margin-bottom: var(--space-md);
}

/* Título a la izquierda, migas a la derecha, misma fila (!important vence main.css) */
.oz-shop-hero .oz-shop-hero__inner {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 0.5rem 1.25rem !important;
  justify-items: unset !important;
  text-align: left !important;
  width: 100% !important;
}

.oz-shop-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.oz-shop-hero .oz-shop-title {
  color: #fff !important;
}

.oz-shop-hero .woocommerce-breadcrumb.oz-breadcrumb,
.oz-shop-hero nav.woocommerce-breadcrumb {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  text-align: right !important;
  flex: 0 1 auto !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  margin-left: auto !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.oz-shop-hero .woocommerce-breadcrumb a,
.oz-shop-hero .oz-breadcrumb a {
  color: rgba(255, 255, 255, 0.95) !important;
}

.oz-shop-hero .woocommerce-breadcrumb a:hover,
.oz-shop-hero .oz-breadcrumb a:hover {
  color: #fff !important;
}

.oz-shop-hero .oz-breadcrumb__inner {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 0.35rem !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.oz-shop-view {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.oz-shop-view__btn {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-bg);
  color: var(--color-muted);
  width: 34px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.oz-shop-view__btn svg rect {
  fill: currentColor;
}

.oz-shop-view__btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-primary-contrast);
}

.oz-shop-toolbar .woocommerce-result-count {
  margin: 0;
  color: var(--color-text);
}

.oz-shop-toolbar .woocommerce-ordering {
  margin: 0 0 0 auto;
}

/* Grid de productos */
.oz-shop-content ul.products {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.oz-shop-content ul.products.columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.oz-shop-content ul.products.columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.oz-shop-content ul.products.columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.oz-shop-content ul.products.columns-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.oz-shop-content ul.products.columns-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* Tarjeta de producto */
.oz-product-card {
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-bg);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.oz-product-brand-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.oz-product-media {
  position: relative;
  width: 100%;
}

.oz-product-link {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: var(--color-surface);
  border-radius: 16px;
  overflow: hidden;
}

.oz-product-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
}

.oz-product-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--color-border, #e5e7eb);
  background: var(--color-bg, #fff);
  color: var(--color-text, #1f2937);
  font-size: 0.85rem;
  line-height: 1.2;
  font-weight: 700;
}

.oz-product-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.oz-badge {
  font-size: 0.75rem;
  line-height: 1;
  border-radius: 999px;
  padding: 0.3rem 0.45rem;
  color: var(--color-primary-contrast);
}

.oz-badge--sale {
  background: var(--color-primary);
}

.oz-badge--new {
  background: var(--color-text);
}

.oz-badge--oos {
  display: none !important;
}

/* Título: mismo estilo en tienda y shortcode (oscuro, legible, centrado) */
.oz-shop-content .oz-product-info .woocommerce-loop-product__title,
.oz-wc-products-grid .oz-product-info .woocommerce-loop-product__title,
.oz-product-info .woocommerce-loop-product__title {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0;
  text-align: center;
  min-height: 2.7em;
  color: var(--color-text, #1f2937);
  font-weight: 500;
}

.oz-product-info .woocommerce-loop-product__title a {
  color: var(--color-text, #1f2937);
  text-decoration: none;
}

.oz-product-info .price {
  margin: 0;
  font-weight: 700;
  text-align: center;
  color: var(--color-text);
}

.oz-product-info .star-rating {
  margin: 0 auto;
}

.oz-product-info {
  width: 100%;
  min-width: 0;
}

.oz-product-cta .button {
  width: auto;
  min-height: 44px;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  background: var(--color-secondary);
  color: var(--color-primary-contrast);
  font-weight: 600;
  line-height: 1;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.oz-product-cta .button:not(.oz-add-to-cart-icon)::before {
  content: "";
  width: 16px;
  height: 16px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 8v8'/><path d='M8 12h8'/></svg>");
}

/* CTA (cantidad + Cotizar): mismo layout en tienda y shortcode */
.oz-shop-content .oz-product-cta,
.oz-wc-products-grid .oz-product-cta,
.oz-product-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
}

/* Selector cantidad: borde sutil, mismo en tienda y shortcode */
.oz-shop-content .oz-qty-wrap,
.oz-wc-products-grid .oz-qty-wrap,
.oz-qty-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.2rem 0.35rem;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 10px;
  background: var(--color-bg, #ffffff);
}
.oz-shop-content .oz-qty-btn,
.oz-wc-products-grid .oz-qty-btn,
.oz-qty-btn {
  flex: 0 0 auto;
  width: clamp(32px, 9vw, 40px);
  height: clamp(32px, 9vw, 40px);
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--color-text, #1f2937);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.oz-shop-content .oz-qty-input,
.oz-wc-products-grid .oz-qty-input,
.oz-qty-input {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  height: clamp(32px, 9vw, 40px);
  border-radius: 0;
  border: 0;
  text-align: center;
  font-size: 0.95rem;
  padding: 0;
  background: transparent;
}
.oz-add-to-cart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  height: auto;
  border-radius: 12px;
  background: #f1651b; /* orange */
  color: #fff;
  margin-left: 0;
  border: 0;
  box-shadow: 0 6px 16px rgba(241,101,27,0.18);
  text-decoration: none;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  box-sizing: border-box;
}
.oz-add-to-cart-icon svg { display: none; }
.oz-add-to-cart-icon::before {
  content: "";
  width: clamp(14px, 4vw, 18px);
  height: clamp(14px, 4vw, 18px);
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1'/><circle cx='20' cy='21' r='1'/><path d='M1 1h4l2.2 11.2a2 2 0 0 0 2 1.6h9.9a2 2 0 0 0 2-1.6L23 6H6'/></svg>");
}
.oz-add-to-cart-icon::after {
  content: "Cotizar";
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* hide old full-width blue button if present */
.oz-product-cta .button:not(.oz-add-to-cart-icon) { display: none; }

/* compact card look: center title and reduce padding */
.oz-product-card {
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden; /* evita que iconos/contadores se salgan de la tarjeta */
}
.oz-product-info .woocommerce-loop-product__title {
  min-height: 3.2em;
  text-align: center;
}

/* Quitar flechas del input number (spinners) */
.oz-qty-input::-webkit-outer-spin-button,
.oz-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.oz-qty-input {
  -moz-appearance: textfield;
}

/* Widgets en sidebar: cuadro blanco por defecto; la tienda (.oz-shop-sidebar) fuerza bloques azules más abajo */
.sidebar-woocommerce .oz-widget,
.widget_oz_sidebar,
.oz-widget {
  background: var(--color-bg, #fff);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 12px;
  /* give a bit more top space so titles/content don't stick to the edge */
  padding: 1.5rem 1rem 1rem;
  box-shadow: 0 10px 24px rgba(8, 10, 15, 0.12);
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.oz-shop-sidebar .widget,
.oz-shop-sidebar .oz-widget {
  box-shadow: none !important;
  padding: 16px;
  background: #0064ba !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
}
.oz-widget__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
  text-align: center;
  width: 100%;
  color: var(--color-accent, #f1651b);
  font-weight: 700;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.oz-widget__title::before {
  content: " ";
  display: inline-block;
  width: 18px;
  height: 18px;
  background: var(--color-accent, #f1651b);
  border-radius: 4px;
}
.oz-widget ul {
  margin: 0;
  padding-left: 1rem;
}
.oz-shop-sidebar .oz-widget__title,
.sidebar-woocommerce .oz-widget .oz-widget__title {
  justify-content: flex-start !important;
  text-align: left !important;
  color: #fff !important;
}

.oz-shop-sidebar .oz-widget__title::before,
.sidebar-woocommerce .oz-widget .oz-widget__title::before {
  background: #fff !important;
}

/* Widgets nativos de WooCommerce / WordPress en la barra lateral */
.oz-shop-sidebar .widget .widget-title,
.oz-shop-sidebar .widget .widgettitle {
  color: #fff !important;
  font-weight: 700;
}

/* Bloque «Marcas» debajo de categorías: separación sin sombra extra */
.oz-filter-card--brands {
  margin-top: var(--space-md);
}

.oz-filter-card--brands .oz-shop-brands.oz-widget {
  margin-bottom: 0;
}

/* -------------------------------------------------------------------------
   Sidebar tienda: filtros estilo referencia (checkbox + texto + flecha / conteo)
   Color acento: azul tema #0064ba
   ------------------------------------------------------------------------- */
.oz-shop-sidebar .oz-widget__title::before,
.oz-shop-sidebar .widget_product_categories .widget-title::before,
.oz-shop-sidebar .woocommerce-widget-layered-nav .widget-title::before {
  background-color: transparent !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Ccircle cx='3' cy='4' r='1.8' fill='%23ffffff'/%3E%3Ccircle cx='3' cy='10' r='1.8' fill='%23ffffff'/%3E%3Ccircle cx='3' cy='16' r='1.8' fill='%23ffffff'/%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' d='M9 4h12M9 10h12M9 16h10'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  border-radius: 0 !important;
  width: 22px !important;
  height: 18px !important;
}

.oz-shop-sidebar .widget_product_categories .widget-title,
.oz-shop-sidebar .woocommerce-widget-layered-nav .widget-title {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  font-size: 0.9rem !important;
  margin-bottom: 0.35rem !important;
}

.oz-filter-row {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  width: 100%;
  min-width: 0;
  padding: 0.62rem 0.2rem !important;
  text-decoration: none !important;
  color: #fff !important;
  font-size: 0.92rem !important;
  line-height: 1.35;
  box-sizing: border-box;
}

.oz-filter-row:hover {
  color: rgba(255, 255, 255, 0.88) !important;
}

.oz-filter-row__check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  box-sizing: border-box;
}

.oz-filter-row.is-current .oz-filter-row__check,
.oz-shop-sidebar .widget_product_categories li.current-cat > a::before {
  background: #0064ba;
  border-color: #0064ba;
  box-shadow: inset 0 0 0 2px #fff;
}

.oz-filter-cat-item.is-current-cat .oz-filter-row__check {
  background: #0064ba;
  border-color: #0064ba;
  box-shadow: inset 0 0 0 2px #fff;
}

.oz-filter-row__text {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.oz-filter-row__chevron {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-right: 2px;
  border-right: 2px solid rgba(255, 255, 255, 0.85);
  border-bottom: 2px solid rgba(255, 255, 255, 0.85);
  transform: rotate(-45deg);
}

.oz-filter-row:hover .oz-filter-row__chevron {
  border-color: #fff;
}

.oz-filter-row__count {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.18);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  line-height: 1.2;
}

.oz-filter-row.is-current .oz-filter-row__count {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* Listas categorías / marcas (tema) */
.oz-shop-sidebar .oz-filter-cat-list,
.oz-shop-sidebar .oz-filter-brand-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.oz-shop-sidebar .oz-filter-cat-item,
.oz-shop-sidebar .oz-filter-brand-item {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.oz-shop-sidebar .oz-filter-cat-item:last-child,
.oz-shop-sidebar .oz-filter-brand-item:last-child {
  border-bottom: none;
}

/* Widget categorías WooCommerce: misma fila */
.oz-shop-sidebar .widget_product_categories ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.oz-shop-sidebar .widget_product_categories ul li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.oz-shop-sidebar .widget_product_categories ul li:last-child {
  border-bottom: none;
}

.oz-shop-sidebar .widget_product_categories ul li a {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  padding: 0.62rem 0.2rem !important;
  text-decoration: none !important;
  color: #fff !important;
  font-size: 0.92rem !important;
}

.oz-shop-sidebar .widget_product_categories ul li a::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  box-sizing: border-box;
}

.oz-shop-sidebar .widget_product_categories ul li.current-cat > a::before {
  background: #0064ba;
  border-color: #0064ba;
  box-shadow: inset 0 0 0 2px #fff;
}

.oz-shop-sidebar .widget_product_categories ul li a::after {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-left: auto;
  margin-right: 4px;
  border-right: 2px solid rgba(255, 255, 255, 0.85);
  border-bottom: 2px solid rgba(255, 255, 255, 0.85);
  transform: rotate(-45deg);
}

.oz-shop-sidebar .widget_product_categories ul li a:hover {
  color: rgba(255, 255, 255, 0.88) !important;
}

.oz-shop-sidebar .widget_product_categories ul li a:hover::after {
  border-color: #fff;
}

.oz-shop-sidebar .widget_product_categories .children {
  margin: 0 !important;
  padding: 0 0 0 0.65rem !important;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

/* Marca: sin subrayado heredado */
.oz-shop-brands .oz-filter-row.is-current {
  text-decoration: none !important;
  font-weight: 600;
  color: #fff !important;
}

.oz-widget ul li {
  margin: 0.45rem 0;
  list-style: disc;
  color: var(--color-text, #1f2937);
}

.oz-shop-sidebar .oz-widget.oz-shop-cats .oz-filter-cat-list > li,
.oz-shop-sidebar .oz-widget.oz-shop-brands .oz-filter-brand-list > li,
.oz-shop-sidebar .widget_product_categories li {
  list-style: none !important;
  margin: 0 !important;
}

/* Layered nav (p. ej. COLOR): enlaces y viñetas en blanco */
.oz-shop-sidebar .woocommerce-widget-layered-nav ul,
.oz-shop-sidebar .woocommerce-widget-layered-nav-list {
  color: #fff !important;
}

.oz-shop-sidebar .woocommerce-widget-layered-nav a,
.oz-shop-sidebar .woocommerce-widget-layered-nav-list a {
  color: #fff !important;
}

.oz-shop-sidebar .woocommerce-widget-layered-nav a:hover,
.oz-shop-sidebar .woocommerce-widget-layered-nav-list a:hover {
  color: rgba(255, 255, 255, 0.88) !important;
}

.oz-shop-sidebar .woocommerce-widget-layered-nav .count,
.oz-shop-sidebar .woocommerce-widget-layered-nav-list .count {
  color: rgba(255, 255, 255, 0.9) !important;
}

.oz-shop-sidebar .oz-widget ul li {
  color: #fff !important;
}

.oz-shop-sidebar .oz-widget ul li::marker {
  color: #fff;
}

.oz-shop-sidebar li {
  border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}

/* Quitar marco/outline celeste alrededor de la imagen del producto */
.oz-product-card .woocommerce-LoopProduct-link img,
.oz-product-card .woocommerce-loop-product__link img,
.oz-product-card img.attachment-woocommerce_thumbnail,
.oz-product-card img.attachment-shop_catalog {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  outline: none !important;
}

/* Ocultar badge "Nuevo" si viene de varias clases posibles */
.oz-product-card .oz-badge--new,
.oz-product-card .badge-new,
.oz-product-card .product-badge.new,
.oz-product-card .new-label,
.oz-product-card .woocommerce-loop-product__label--new,
.oz-product-card .onsale--new,
.oz-product-card .product-label--nuevo {
  display: none !important;
}

/* Asegurar que solo se muestre el botón circular naranja con icono de carrito.
   Ocultamos otros botones azules/pluses que plugins pudieran inyectar. */
.oz-product-cta .button:not(.oz-add-to-cart-icon) { display: none !important; }
.oz-product-cta a.oz-add-to-cart-icon { background: var(--color-accent, #f1651b) !important; }
.oz-product-cta .oz-add-to-cart-icon svg { fill: #fff !important; }
.oz-product-cta .plus,
.oz-product-cta .plus-icon,
.oz-product-cta .add-plus,
.oz-product-cta .qty-add,
.oz-product-cta .yith-wcwl-add-button,
.oz-product-cta .yith-wcwl-add-to-wishlist {
  display: none !important;
}

/* Forzar que en la tarjeta solo se muestre el control de cantidad y el botón circular de carrito.
   Oculta cualquier otro elemento (por ejemplo iconos añadidos por plugins) que esté dentro del contenedor */
.oz-product-cta > *:not(.oz-qty-wrap):not(.oz-add-to-cart-icon) {
  display: none !important;
}

/* Asegurar que el botón naranja muestre SOLO el icono SVG del carrito */
.oz-add-to-cart-icon > *:not(svg) {
  display: none !important;
}

/* Si algún plugin dibuja un pequeño botón redondo extra, ocultarlo también por selectores frecuentes */
.oz-product-cta .tinvwl_button,
.oz-product-cta .yith-wcwl-add-to-wishlist,
.oz-product-cta .quick-view,
.oz-product-cta .quickshop,
.oz-product-cta .compare-button,
.oz-product-cta .product-extra-btn {
  display: none !important;
}

/* Botón a ancho completo bajo el contador */
.oz-add-to-cart-icon,
.oz-add-to-cart-icon::before {
  border-radius: 12px;
}

/* Improve "Cargar más" wrapper/button further */
.oz-load-more-wrap .oz-load-more {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(241,101,27,1), rgba(227,80,18,1));
  box-shadow: 0 12px 30px rgba(241,101,27,0.18);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 0;
}
.oz-load-more-wrap .oz-load-more svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: #fff;
}

@media (max-width: 576px) {
  .oz-qty-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .oz-qty-input {
    height: 32px;
  }
  .oz-add-to-cart-icon {
    width: 100%;
    min-height: 42px;
  }
}

@media (max-width: 420px) {
  .oz-product-cta {
    justify-content: center;
  }
  .oz-add-to-cart-icon {
    width: 100%;
    min-height: 42px;
    margin-left: 0;
    border-radius: 12px;
  }
  .oz-add-to-cart-icon::after {
    font-size: 0.9rem;
  }
}

/* ========================================================================
   RESPONSIVE – Sidebar lateral desde 992px
   ======================================================================== */

@media (min-width: 992px) {
  .oz-shop-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .oz-shop-sidebar {
    position: sticky;
    top: 1rem;
    align-self: start;
  }
}

@media (min-width: 1200px) {
  .oz-shop-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

@media (min-width: 992px) {
  /* Tarjeta */
  .oz-product-card {
    padding: 0.85rem;
    border-radius: 14px;
  }

  /* Imagen: mantener proporción pero menos padding interno */
  .oz-product-link img {
    padding: 0.45rem;
  }

  /* Marca (badge) más pequeña */
  .oz-product-brand {
    padding: 0.22rem 0.6rem;
    font-size: 0.72rem;
  }

  /* Cantidad y botones más compactos */
  .oz-qty-btn {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }
  .oz-qty-input {
    height: 34px;
    font-size: 0.95rem;
  }

  .oz-add-to-cart-icon {
    min-height: 42px;
    box-shadow: 0 6px 14px rgba(241,101,27,0.14);
  }
  .oz-add-to-cart-icon svg { width: 16px; height: 16px; }

  /* Título y tipografía equilibrada */
  .oz-product-info .woocommerce-loop-product__title {
    font-size: 1rem;
    min-height: 2.6em;
  }

  /* Reduce gap entre columnas para pantallas grandes */
  .oz-shop-content ul.products {
    gap: calc(var(--space-md) * 0.9);
  }

  /* Paginación: números compactos (pills pequeños) */
  .woocommerce-pagination .page-numbers a,
  .woocommerce-pagination .nav-links a {
    min-width: 44px;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    box-shadow: none;
    font-weight: 600;
    margin: 0 0.375rem;
  }
  .woocommerce-pagination .page-numbers .current {
    background: var(--color-accent, #f1651b);
    color: #fff;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
  }
}

/* Ajustes para pantallas medianas (laptops pequeños) */
@media (min-width: 768px) and (max-width: 991px) {
  .oz-add-to-cart-icon {
    width: 100%;
    min-height: 42px;
  }
  .oz-qty-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .oz-qty-input {
    height: 32px;
  }
  .oz-product-card { padding: 0.8rem; }
}

/* Tablet / laptop: mantener 4 columnas cuando la vista está en modo 4+ (antes se forzaba a 3) */
@media (min-width: 768px) and (max-width: 991px) {
  .oz-shop-content ul.products.columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .oz-shop-content ul.products.columns-5,
  .oz-shop-content ul.products.columns-6 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .oz-shop-content ul.products.columns-2,
  .oz-shop-content ul.products.columns-3,
  .oz-shop-content ul.products.columns-4,
  .oz-shop-content ul.products.columns-5,
  .oz-shop-content ul.products.columns-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oz-shop-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .oz-shop-view {
    grid-column: 1;
  }

  .oz-shop-toolbar .woocommerce-ordering {
    grid-column: 2;
    margin-left: 0;
    justify-self: end;
  }

  .oz-shop-toolbar .woocommerce-result-count {
    grid-column: 1 / -1;
  }
}

@media (max-width: 479px) {
  .oz-shop-content ul.products.columns-2,
  .oz-shop-content ul.products.columns-3,
  .oz-shop-content ul.products.columns-4,
  .oz-shop-content ul.products.columns-5,
  .oz-shop-content ul.products.columns-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Estilos mejorados para el botón "Cargar más productos" / paginación */
.woocommerce-pagination,
.oz-load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 2.5rem 0; /* más espacio entre productos y paginación */
}
.woocommerce-pagination .page-numbers,
.woocommerce-pagination .nav-links,
.oz-load-more-wrap .oz-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .nav-links a,
.oz-load-more-wrap .oz-load-more a,
.oz-load-more-wrap button {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  text-transform: none;
  box-shadow: none;
  transition: background 120ms ease, transform 120ms ease;
  min-width: auto;
  max-width: none;
  text-align: center;
  cursor: pointer;
  font-size: 0.95rem;
}
.woocommerce-pagination .page-numbers a:hover,
.woocommerce-pagination .nav-links a:hover,
.oz-load-more-wrap .oz-load-more a:hover,
.oz-load-more-wrap button:hover {
  transform: translateY(-2px);
  background: rgba(241,101,27,0.06);
}
.woocommerce-pagination .page-numbers .dots,
.woocommerce-pagination .page-numbers span {
  display: none;
}
.woocommerce-pagination .page-numbers.current,
.woocommerce-pagination .page-numbers .current {
  background: var(--color-accent, #f1651b);
  color: #fff;
  border-color: var(--color-accent, #f1651b);
  box-shadow: none;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
}
.woocommerce-pagination { list-style: none; padding: 0; margin: 0; }

/* Variante compacta para móviles */
@media (max-width: 576px) {
  .woocommerce-pagination .page-numbers a,
  .oz-load-more-wrap .oz-load-more a,
  .oz-load-more-wrap button {
    min-width: 140px;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
  }
}

/* Paginado de tienda limpio en celular + espacio con footer */
@media (max-width: 767px) {
  .woocommerce-pagination,
  .oz-load-more-wrap {
    margin: 1.5rem 0 2.5rem;
    padding: 0 0.5rem;
  }

  .woocommerce-pagination .page-numbers,
  .woocommerce-pagination .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .woocommerce-pagination .page-numbers a,
  .woocommerce-pagination .page-numbers .current,
  .woocommerce-pagination .nav-links a {
    min-width: 44px;
    height: 38px;
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Añade espacio inferior al contenedor de productos para separar del paginado */
.oz-shop-content {
  padding-bottom: 1.5rem;
}

@media (min-width: 992px) {
  .woocommerce-pagination { margin-top: 3rem; margin-bottom: 3rem; }
  .oz-shop-content { padding-bottom: 2rem; }
}
/* Force-hide any residual bullets / pseudo markers in pagination */
.woocommerce-pagination,
.woocommerce-pagination ul,
.woocommerce-pagination ol,
.woocommerce-pagination li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce-pagination a::before,
.woocommerce-pagination span::before,
.woocommerce-pagination li::before,
.woocommerce-pagination li::marker,
.woocommerce-pagination .page-numbers::before,
.woocommerce-pagination .page-numbers a::before,
.woocommerce-pagination .page-numbers span::before,
.woocommerce-pagination .page-numbers .dots::before {
  display: none !important;
  content: none !important;
}

/* Remove any small background-dot images used by some pagination implementations */
.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span,
.woocommerce-pagination .nav-links a {
  background-image: none !important;
}

/* Make pagination compact and right-aligned on wide screens if desired */
@media (min-width: 768px) {
  .woocommerce-pagination { justify-content: center; }
}

/* ========================================================================
   OZ-Sliders: productos dentro del carrusel deben verse idénticos a la tienda.
   El slider usa la plantilla del tema (content-product.php), así que cada <li>
   ya tiene .oz-product-card. Reseteamos lo que WooCommerce y .oz-main ul/li
   puedan romper (floats, anchos, márgenes, bullets, padding).
   ======================================================================== */
.ozs ul.ozs__track,
.ozs .ozs__track.products {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
}
.ozs .ozs__track li.product,
.ozs .ozs__viewport li.product {
  float: none !important;
  width: auto !important;
  clear: none !important;
  margin: 0 !important;
  margin-bottom: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
}
.ozs .oz-product-card {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-bg);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow: hidden;
}
.ozs .oz-product-cta {
  margin-top: auto;
}

/* [oz_wc_products_theme id="1059"]: mismo loop que la tienda (varios productos por fila, no uno solo) */
.oz-wc-products-grid {
  width: 100%;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
}
.oz-wc-products-grid ul.products {
  width: 100%;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md, 1rem);
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
  padding-left: 0 !important;
}
.oz-wc-products-grid ul.products.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.oz-wc-products-grid ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.oz-wc-products-grid ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.oz-wc-products-grid ul.products.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.oz-wc-products-grid ul.products.columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.oz-wc-products-grid ul.products li.product {
  list-style: none !important;
  margin: 0 !important;
  margin-bottom: 0 !important;
  padding: 0;
  min-width: 0;
}
.oz-wc-products-grid .oz-product-card {
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-bg);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}
.oz-wc-products-grid .oz-product-cta {
  margin-top: auto;
}

