/* ═══════════════════════════════════════════
   CUBO — Main Stylesheet v2
═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:    #e41321;
  --purple: #6b4fbb;
  --purp2:  #5c3fb5;
  --text:   #222;
  --g1:     #f7f7f7;
  --g2:     #e8e8e8;
  --g3:     #999;
  --g4:     #555;
  --brd:    #e0e0e0;
  --fn:     'Nunito', sans-serif;
  --fb:     'Lato', sans-serif;
}

body { font-family: var(--fb); color: var(--text); background: #fff; font-size: 14px; line-height: 1.5; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ════ HEADER ════ */
.cubo-header { background: #fff; border-bottom: 1px solid var(--brd); position: sticky; top: 0; z-index: 200; }
.cubo-header__inner { max-width: 1380px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 16px; }

.cubo-logo { display: flex; align-items: center; flex-shrink: 0; }
.cubo-logo__icon { width: 36px; height: 36px; background: var(--red); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.cubo-logo__icon svg { width: 20px; height: 20px; }
.cubo-logo__name { font-family: var(--fn); font-weight: 900; font-size: 17px; color: var(--text); margin-left: 8px; letter-spacing: -0.3px; }

.cubo-search { flex: 1; max-width: 620px; display: flex; border: 2px solid var(--purple); border-radius: 24px; overflow: hidden; background: #fff; }
.cubo-search__input { flex: 1; border: none; outline: none; padding: 9px 16px; font-size: 14px; font-family: var(--fb); }
.cubo-search__input::placeholder { color: var(--g3); }
.cubo-search__btn { border: none; border-left: 1px solid var(--brd); background: #fff; padding: 0 14px; cursor: pointer; display: flex; align-items: center; color: var(--purple); }
.cubo-search__btn svg { width: 19px; height: 19px; }

.cubo-header__actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.cubo-hlink { font-size: 13px; font-weight: 600; color: var(--g4); white-space: nowrap; transition: color .15s; }
.cubo-hlink:hover { color: var(--purple); }
.cubo-hicon { background: none; border: none; cursor: pointer; display: flex; align-items: center; padding: 4px; position: relative; }
.cubo-hicon svg { width: 22px; height: 22px; transition: stroke .15s; }
.cubo-hicon:hover svg { stroke: var(--purple) !important; }
.cubo-cart-badge { position: absolute; top: -4px; right: -4px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; font-family: var(--fn); border-radius: 10px; padding: 1px 5px; min-width: 16px; text-align: center; }

/* ════ NAV ════ */
.cubo-nav { border-bottom: 1px solid var(--brd); background: #fff; }
.cubo-nav__inner { max-width: 1380px; margin: 0 auto; padding: 0 24px; display: flex; overflow-x: auto; scrollbar-width: none; }
.cubo-nav__inner::-webkit-scrollbar { display: none; }
.cubo-nav__item { padding: 12px 16px; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--g4); border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; display: flex; align-items: center; gap: 5px; }
.cubo-nav__item:hover { color: var(--text); }
.cubo-nav__item.current { color: var(--text); border-bottom-color: var(--red); }
.cubo-nav__badge { background: var(--purple); color: #fff; font-size: 9px; font-weight: 800; font-family: var(--fn); padding: 1px 5px; border-radius: 8px; text-transform: uppercase; }

/* ════ PAGE ════ */
.cubo-page { max-width: 1380px; margin: 0 auto; padding: 24px 24px 80px; }
.cubo-woo-wrap { width: 100%; }

/* ════ BREADCRUMB ════ */
.cubo-bc { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--g3); margin-bottom: 20px; flex-wrap: wrap; }
.cubo-bc a { color: var(--g3); }
.cubo-bc a:hover { color: var(--purple); text-decoration: underline; }
.cubo-bc__sep { color: var(--g2); }

/* ════ CATALOG — título, tags ════ */
.cubo-page-title { font-family: var(--fn); font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.cubo-page-desc { font-size: 14px; color: var(--g4); margin-bottom: 16px; line-height: 1.6; }

.cubo-topics { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.cubo-topics__label { font-size: 13px; font-weight: 600; color: var(--g4); }
.cubo-tag { background: var(--purple); color: #fff; font-size: 13px; font-weight: 700; font-family: var(--fn); padding: 6px 16px; border-radius: 20px; cursor: pointer; transition: background .15s, transform .1s; display: inline-block; }
.cubo-tag:hover { background: var(--purp2); transform: translateY(-1px); color: #fff; }

/* ════ FILTER BAR ════ */
.cubo-filterbar { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--brd); border-bottom: 1px solid var(--brd); padding: 10px 0; margin-bottom: 24px; gap: 12px; }
.cubo-filterbar__left { display: flex; align-items: center; gap: 10px; }
.cubo-fcount { font-size: 13px; color: var(--g3); }
.cubo-fsort-form { display: flex; align-items: center; }
.cubo-fsort { border: 1px solid var(--brd); border-radius: 20px; padding: 7px 32px 7px 14px; font-size: 13px; font-weight: 700; font-family: var(--fn); color: var(--text); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; cursor: pointer; outline: none; transition: border-color .15s; }
.cubo-fsort:hover, .cubo-fsort:focus { border-color: var(--purple); }

/* ════ PRODUCT GRID ════ */
/* Esto apunta al ul.products que genera WooCommerce */
.cubo-woo-wrap ul.products,
.cubo-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
@media (max-width: 1100px) { .cubo-woo-wrap ul.products, .cubo-grid { grid-template-columns: repeat(3,1fr) !important; } }
@media (max-width: 720px)  { .cubo-woo-wrap ul.products, .cubo-grid { grid-template-columns: repeat(2,1fr) !important; } }

/* ════ PRODUCT CARD ════ */
/* Aplica tanto a nuestro .cubo-card como al li.product de WC */
.cubo-woo-wrap li.product,
.cubo-card {
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  transition: transform .2s, box-shadow .2s;
  position: relative;
  list-style: none !important;
}
.cubo-woo-wrap li.product:hover,
.cubo-card:hover { transform: translateY(-2px); box-shadow: 0 4px 18px rgba(0,0,0,.11); }

/* Link wrapper */
.cubo-card__link { display: block; color: inherit; }
.cubo-woo-wrap li.product a { color: inherit; }

/* Imagen */
.cubo-card__img,
.cubo-woo-wrap li.product .woocommerce-loop-product__link {
  display: block;
  position: relative;
  background: var(--g1);
  aspect-ratio: 3/4;
  overflow: hidden;
}
.cubo-card__img img,
.cubo-woo-wrap li.product img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform .35s ease !important;
  aspect-ratio: 3/4 !important;
}
.cubo-woo-wrap li.product:hover img,
.cubo-card:hover .cubo-card__img img { transform: scale(1.04); }

/* Wishlist button */
.cubo-wish-btn {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
  z-index: 2; padding: 0;
}
.cubo-wish-btn svg { width: 16px; height: 16px; transition: fill .15s, stroke .15s; }
.cubo-woo-wrap li.product:hover .cubo-wish-btn,
.cubo-card:hover .cubo-wish-btn { opacity: 1; }
.cubo-wish-btn.is-on { opacity: 1; }
.cubo-wish-btn.is-on svg { fill: var(--red) !important; stroke: var(--red) !important; }
.cubo-wish-btn:hover svg { fill: var(--red) !important; stroke: var(--red) !important; }

/* Card info */
.cubo-card__info { padding: 10px 2px 14px; }

/* WC genera .woocommerce-loop-product__title y .price dentro del link */
.cubo-woo-wrap li.product .woocommerce-loop-product__link {
  aspect-ratio: unset;
  background: transparent;
  overflow: visible;
  position: static;
}
.cubo-woo-wrap li.product .woocommerce-loop-product__link img {
  aspect-ratio: 3/4 !important;
  display: block;
}
/* El texto queda fuera del link en nuestro template, pero por si WC lo pone adentro */
.cubo-woo-wrap li.product h2.woocommerce-loop-product__title,
.cubo-card__title {
  font-family: var(--fn) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  margin: 10px 0 2px !important;
  padding: 0 2px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cubo-card__author { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--g3); margin-bottom: 7px; padding: 0 2px; }
.cubo-card__check { display: inline-flex; align-items: center; justify-content: center; width: 13px; height: 13px; background: var(--purple); border-radius: 50%; color: #fff; font-size: 8px; font-weight: 900; flex-shrink: 0; }

.cubo-card__price,
.cubo-woo-wrap li.product .price {
  display: flex !important;
  align-items: baseline !important;
  gap: 5px !important;
  flex-wrap: wrap !important;
  padding: 0 2px !important;
  margin: 0 !important;
}
.cubo-price-now,
.cubo-woo-wrap li.product .price ins .woocommerce-Price-amount,
.cubo-woo-wrap li.product .price .woocommerce-Price-amount:only-child {
  font-family: var(--fn) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--red) !important;
  text-decoration: none !important;
}
.cubo-price-old,
.cubo-woo-wrap li.product .price del .woocommerce-Price-amount {
  font-size: 12px !important;
  color: var(--g3) !important;
  text-decoration: line-through !important;
}
.cubo-woo-wrap li.product .price del { text-decoration: none !important; }
.cubo-woo-wrap li.product .price ins { text-decoration: none !important; background: none !important; }
.cubo-price-off { font-size: 12px; color: var(--g3); }

/* Ocultar "Añadir al carrito" en el loop — no es el estilo marketplace */
.cubo-woo-wrap li.product .button.add_to_cart_button { display: none !important; }

/* ════ PAGINATION ════ */
.cubo-pagination { margin-top: 40px; }
.cubo-pagination .woocommerce-pagination { display: flex; justify-content: center; }
.cubo-pagination ul.page-numbers { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.cubo-pagination ul.page-numbers li { display: flex; }
.cubo-pagination .page-numbers { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--brd); background: #fff; font-size: 14px; font-weight: 600; color: var(--g4); display: flex; align-items: center; justify-content: center; transition: all .15s; }
.cubo-pagination .page-numbers:hover,
.cubo-pagination .page-numbers.current { background: var(--purple) !important; border-color: var(--purple) !important; color: #fff !important; }

/* Estado vacío */
.cubo-empty { text-align: center; padding: 80px 20px; color: var(--g4); }
.cubo-empty span { font-size: 52px; display: block; margin-bottom: 16px; }
.cubo-empty h3 { font-family: var(--fn); font-size: 20px; font-weight: 800; margin-bottom: 8px; color: var(--text); }

/* ════ SINGLE PRODUCT ════ */
.cubo-product-layout { display: grid; grid-template-columns: 1fr 430px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .cubo-product-layout { grid-template-columns: 1fr; } }

/* Galería */
.cubo-gallery { display: flex; gap: 10px; }
.cubo-thumbs-col { display: flex; flex-direction: column; gap: 8px; width: 72px; flex-shrink: 0; }
.cubo-thumb { width: 72px; height: 72px; border-radius: 6px; overflow: hidden; cursor: pointer; border: 2px solid transparent; background: var(--g1); transition: border-color .15s; flex-shrink: 0; }
.cubo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cubo-thumb.active { border-color: var(--purple); }
.cubo-thumb:hover { border-color: var(--g3); }

.cubo-gallery__main { flex: 1; position: relative; border-radius: 4px; overflow: hidden; background: var(--g1); }
.cubo-gallery__main img { width: 100%; display: block; object-fit: cover; }

.cubo-wish-btn--lg { width: 40px; height: 40px; top: 14px; right: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.12); opacity: 1; }
.cubo-wish-btn--lg svg { width: 18px; height: 18px; }

.cubo-gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.12); font-size: 18px; color: var(--g4); z-index: 2; }
.cubo-gallery__nav--prev { left: 12px; }
.cubo-gallery__nav--next { right: 12px; }

/* Panel */
.cubo-panel { position: sticky; top: 80px; }
.cubo-prod-title { font-family: var(--fn); font-size: 22px; font-weight: 900; line-height: 1.3; margin-bottom: 8px; }
.cubo-seller-line { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--g4); margin-bottom: 16px; flex-wrap: wrap; }
.cubo-seller-line strong { color: var(--text); font-weight: 700; }
.cubo-check-icon { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; background: var(--purple); border-radius: 50%; color: #fff; font-size: 9px; font-weight: 900; flex-shrink: 0; }

.cubo-price-block { margin-bottom: 16px; }
.cubo-price-main { font-family: var(--fn); font-size: 32px; font-weight: 900; color: var(--red); line-height: 1; }
.cubo-price-main .woocommerce-Price-amount { font-family: var(--fn); font-size: 32px; font-weight: 900; color: var(--red); }
.cubo-price-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.cubo-price-orig { font-size: 14px; color: var(--g3); text-decoration: line-through; }
.cubo-price-badge { background: #fef2f2; color: var(--red); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 10px; font-family: var(--fn); }
.cubo-urgency { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--purple); font-weight: 700; margin-top: 6px; }

.cubo-divider { border: none; border-top: 1px solid var(--brd); margin: 16px 0; }

/* Estilo card */
.cubo-opt { margin-bottom: 18px; }
.cubo-opt__hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cubo-opt__label { font-size: 14px; font-weight: 700; }
.cubo-style-card { display: flex; align-items: center; gap: 12px; border: 2px solid var(--purple); border-radius: 8px; padding: 10px 14px; background: #fff; }
.cubo-style-thumb { width: 48px; height: 48px; border-radius: 4px; background: var(--g1); overflow: hidden; flex-shrink: 0; }
.cubo-style-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cubo-style-info strong { display: block; font-size: 14px; font-weight: 700; }
.cubo-style-info span { font-size: 12px; color: var(--g4); }

/* ════ WooCommerce ATC overrides ════ */
/* Contenedor del form de WC */
.cubo-wc-atc { margin-top: 4px; }
.cubo-wc-atc form.cart { display: flex; flex-direction: column; gap: 8px; }

/* Tabla de variaciones */
.cubo-wc-atc table.variations { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.cubo-wc-atc table.variations td { padding: 5px 0; vertical-align: middle; }
.cubo-wc-atc table.variations .label { width: 90px; font-weight: 700; font-size: 14px; }
.cubo-wc-atc table.variations .label label { font-weight: 700; }
.cubo-wc-atc table.variations select,
.cubo-wc-atc .variations select {
  width: 100%;
  border: 1px solid var(--brd);
  border-radius: 6px;
  padding: 9px 32px 9px 12px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--fb);
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  cursor: pointer;
  outline: none;
  transition: border-color .15s;
}
.cubo-wc-atc table.variations select:focus { border-color: var(--purple); }

/* Reset link de variación */
.cubo-wc-atc .reset_variations { font-size: 12px; color: var(--g3); }

/* Precio de variación */
.cubo-wc-atc .woocommerce-variation-price { display: none; }

/* Cantidad */
.cubo-wc-atc .quantity { display: flex; align-items: center; gap: 8px; }
.cubo-wc-atc .quantity label { font-size: 14px; font-weight: 700; }
.cubo-wc-atc input.qty {
  width: 64px;
  border: 1px solid var(--brd);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  font-family: var(--fb);
  outline: none;
}
.cubo-wc-atc input.qty:focus { border-color: var(--purple); }

/* Botón principal Agregar al carrito */
.cubo-wc-atc button.single_add_to_cart_button,
.cubo-wc-atc .button.alt,
.cubo-wc-atc input.button {
  width: 100% !important;
  background: var(--red) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 30px !important;
  padding: 16px 24px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  font-family: var(--fn) !important;
  cursor: pointer !important;
  text-align: center !important;
  box-shadow: 0 4px 14px rgba(228,19,33,.28) !important;
  transition: background .15s, transform .1s, box-shadow .2s !important;
  letter-spacing: 0.2px !important;
  margin-top: 8px !important;
}
.cubo-wc-atc button.single_add_to_cart_button:hover {
  background: #c8111f !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(228,19,33,.38) !important;
}
.cubo-wc-atc button.single_add_to_cart_button:active { transform: none !important; }

/* Disponibilidad */
.cubo-wc-atc .woocommerce-variation-availability { font-size: 13px; color: var(--g4); margin-bottom: 4px; }
.cubo-wc-atc .stock { font-size: 12px; color: var(--g4); }
.cubo-wc-atc .stock.in-stock { color: #2a7c2a; }
.cubo-wc-atc .stock.out-of-stock { color: var(--red); }

/* Envío */
.cubo-delivery { margin-top: 20px; }
.cubo-ditem { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-top: 1px solid var(--brd); }
.cubo-dicon { font-size: 22px; flex-shrink: 0; line-height: 1; margin-top: 1px; }
.cubo-dtext { flex: 1; }
.cubo-dtext strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.cubo-dtext span { display: block; font-size: 13px; color: var(--g4); line-height: 1.5; }
.cubo-dtext a { color: var(--purple); text-decoration: underline; }
.cubo-dchev { align-self: center; color: var(--g3); font-size: 18px; margin-left: auto; }

/* Características */
.cubo-features { margin-top: 20px; border-top: 1px solid var(--brd); padding-top: 18px; }
.cubo-features__hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.cubo-features__title { font-family: var(--fn); font-size: 16px; font-weight: 800; }
.cubo-rating { display: flex; align-items: center; gap: 5px; }
.cubo-stars { color: #f5a623; font-size: 13px; }
.cubo-rating-num { font-weight: 700; font-size: 13px; }
.cubo-rating-count { color: var(--g3); font-size: 13px; }
.cubo-feat-list { list-style: none; }
.cubo-feat-list li { font-size: 13px; color: var(--g4); padding: 4px 0; display: flex; gap: 8px; line-height: 1.5; }
.cubo-feat-list li::before { content: "•"; color: var(--g3); font-size: 16px; line-height: 1.2; flex-shrink: 0; }

/* Descripción */
.cubo-description { max-width: 800px; margin: 40px 0; }
.cubo-description h2 { font-family: var(--fn); font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.cubo-description p { font-size: 14px; color: var(--g4); line-height: 1.7; }

/* Reviews */
.cubo-reviews { margin-top: 48px; }

/* Relacionados */
.cubo-related { margin-top: 60px; }
.cubo-related h2 { font-family: var(--fn); font-size: 22px; font-weight: 800; margin-bottom: 20px; }

/* ════ FOOTER ════ */
.cubo-footer { background: #1a1a2e; color: rgba(255,255,255,.55); padding: 40px 24px 24px; margin-top: 60px; }
.cubo-footer__inner { max-width: 1380px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 32px; margin-bottom: 32px; }
.cubo-footer__col-title { font-size: 11px; font-weight: 800; font-family: var(--fn); color: rgba(255,255,255,.85); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 14px; }
.cubo-footer__col a { display: block; font-size: 13px; color: rgba(255,255,255,.45); padding: 3px 0; transition: color .15s; }
.cubo-footer__col a:hover { color: #fff; }
.cubo-footer__bottom { max-width: 1380px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.cubo-footer__copy { font-size: 12px; color: rgba(255,255,255,.3); }
.cubo-footer__links { display: flex; gap: 16px; }
.cubo-footer__links a { font-size: 12px; color: rgba(255,255,255,.3); transition: color .15s; }
.cubo-footer__links a:hover { color: rgba(255,255,255,.7); }

/* ════ RESPONSIVE ════ */
@media (max-width: 768px) {
  .cubo-header__inner { flex-wrap: wrap; }
  .cubo-search { order: 3; flex: 1 0 100%; max-width: 100%; }
  .cubo-header__actions { gap: 10px; }
  .cubo-gallery { flex-direction: column-reverse; }
  .cubo-thumbs-col { flex-direction: row; width: auto; }
  .cubo-panel { position: static; }
}

/* ════ ANIMACIONES ════ */
@keyframes cuboUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
.cubo-woo-wrap li.product,
.cubo-card { animation: cuboUp .3s ease both; }
.cubo-woo-wrap li.product:nth-child(1), .cubo-card:nth-child(1) { animation-delay:.03s }
.cubo-woo-wrap li.product:nth-child(2), .cubo-card:nth-child(2) { animation-delay:.07s }
.cubo-woo-wrap li.product:nth-child(3), .cubo-card:nth-child(3) { animation-delay:.11s }
.cubo-woo-wrap li.product:nth-child(4), .cubo-card:nth-child(4) { animation-delay:.15s }
.cubo-woo-wrap li.product:nth-child(5), .cubo-card:nth-child(5) { animation-delay:.19s }
.cubo-woo-wrap li.product:nth-child(6), .cubo-card:nth-child(6) { animation-delay:.23s }
.cubo-woo-wrap li.product:nth-child(7), .cubo-card:nth-child(7) { animation-delay:.27s }
.cubo-woo-wrap li.product:nth-child(8), .cubo-card:nth-child(8) { animation-delay:.31s }

/* ════ TOPBAR (configurable desde Personalizar) ════ */
.cubo-topbar {
  background: var(--purple);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--fn);
  padding: 8px 24px;
  letter-spacing: 0.2px;
}

/* ════ LOGO: imagen subida vs fallback texto ════ */
.cubo-logo__img {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}
/* Cuando no hay logo subido: ícono inicial + nombre */
.cubo-logo__icon {
  width: 36px; height: 36px;
  background: var(--red); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--fn); font-weight: 900; font-size: 18px;
  flex-shrink: 0;
}

/* ════ BANNER DE CATEGORÍA (imagen de la categoría en WC) ════ */
.cubo-cat-banner {
  width: 100%; max-height: 220px;
  border-radius: 8px; overflow: hidden;
  margin-bottom: 20px;
}
.cubo-cat-banner__img {
  width: 100%; height: 220px;
  object-fit: cover; display: block;
}

/* ════ SLIDER HOME ════
   Wrapper que contiene el output de cualquier plugin de slider.
   El plugin controla la altura — nosotros solo contenemos y espaciamos. */
.cubo-slider {
  width: 100%;
  overflow: hidden;
  /* Sin margen lateral — ocupa todo el ancho */
  margin-bottom: 0;
  background: var(--g1);
  /* Altura mínima mientras el slider carga */
  min-height: 120px;
}

/* Eliminar cualquier margen/padding extra que inyecten los plugins */
.cubo-slider .cubo-slider-wrap,
.cubo-slider > * {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Forzar que imágenes y iframes del slider sean responsivos */
.cubo-slider img,
.cubo-slider iframe,
.cubo-slider video {
  max-width: 100% !important;
  height: auto;
}

/* ── Compatibilidad con plugins populares ── */

/* Revolution Slider */
.cubo-slider .rev_slider_wrapper,
.cubo-slider .rev_slider { width: 100% !important; }

/* Smart Slider 3 */
.cubo-slider .n2-ss-slider-wrapper { width: 100% !important; }

/* MetaSlider */
.cubo-slider .metaslider { width: 100% !important; }
.cubo-slider .metaslider .flexslider { margin: 0 !important; }

/* Elementor slider / hero */
.cubo-slider .elementor-section { width: 100% !important; }

/* Swiper (usado por muchos temas/plugins) */
.cubo-slider .swiper-container { width: 100% !important; }

/* WP Slick Slider */
.cubo-slider .slick-slider { width: 100% !important; }

/* Shortcode de imagen simple (si el usuario pone una imagen directamente) */
.cubo-slider img:only-child {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}
