/**
 * Identidad mayorista — design system
 * Azul marino #112C4C · Eléctrico #087DE0 · Hielo #F4F7FA · Ámbar #F59E0B (ofertas)
 */
:root {
  --nova-navy: #112c4c;
  --nova-navy-deep: #0a1f33;
  --nova-electric: #087de0;
  --nova-electric-hover: #0668b8;
  --nova-electric-light: #3d9aed;
  --nova-ice: #f4f7fa;
  --nova-amber: #f59e0b;
  --nova-amber-dark: #d97706;

  --nova-brand: var(--nova-navy);
  --nova-cta: var(--nova-electric);
  --nova-offer: var(--nova-amber);

  --nova-bg: var(--nova-ice);
  --nova-surface: #ffffff;
  --nova-text: var(--nova-navy);
  --nova-muted: #5c6b7a;
  --nova-border: #d8e0e8;
  --nova-success: #25d366;
  --nova-container: 1200px;
  --nova-radius: 10px;
  --nova-shadow: 0 2px 16px rgba(17, 44, 76, 0.08);
  --nova-header-h: 76px;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Plus Jakarta Sans", "Outfit", var(--font-body);

  /* Compatibilidad con reglas anteriores del tema */
  --nova-purple: var(--nova-cta);
  --nova-purple-dark: var(--nova-navy);
  --nova-purple-light: var(--nova-electric-light);
  --nova-accent: var(--nova-offer);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  background: var(--nova-bg);
  color: var(--nova-text);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--nova-cta);
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.container {
  max-width: var(--nova-container);
  margin: 0 auto;
  padding: 0 16px;
}

/* —— Top bar / marquesina —— */
.top-bar {
  background: var(--nova-navy-deep);
  color: #fff;
  border-bottom: 2px solid var(--nova-electric);
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
}

.marquee-wrapper {
  overflow: hidden;
  padding: 8px 0;
}

.marquee-content {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: nova-marquee 40s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.marquee-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@keyframes nova-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* —— Header —— */
.header {
  background: var(--nova-surface);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--nova-border);
  border-bottom: 3px solid var(--nova-navy);
  transition: box-shadow 0.2s ease;
}

.header.scrolled {
  box-shadow: var(--nova-shadow);
}

.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.logo {
  text-decoration: none;
  color: inherit;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--nova-navy) 55%, var(--nova-electric) 55%);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  box-shadow: 0 2px 8px rgba(17, 44, 76, 0.2);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--nova-navy);
  letter-spacing: -0.03em;
}

.logo-tagline {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--nova-electric);
}

.logo-text span,
.footer-logo span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--nova-navy);
  letter-spacing: -0.02em;
}

.custom-logo-link img {
  max-height: 48px;
  width: auto;
}

.search-bar {
  display: flex;
  align-items: stretch;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  border: 2px solid var(--nova-border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--nova-bg);
  transition: border-color 0.2s;
}

.search-bar:focus-within {
  border-color: var(--nova-electric-light);
}

.search-bar__input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
  min-width: 0;
}

.search-bar__btn {
  border: none;
  background: var(--nova-electric);
  color: #fff;
  padding: 0 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.search-bar__btn svg {
  width: 20px;
  height: 20px;
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  padding: 0;
  border-radius: 50%;
  background: var(--nova-bg);
  color: var(--nova-text);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
  font: inherit;
}

.cart-btn:hover {
  background: var(--nova-border);
}

.cart-btn svg {
  width: 22px;
  height: 22px;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  background: var(--nova-electric);
  color: #fff;
  border-radius: 999px;
}

/* —— Location bar —— */
.location-bar {
  background: #fff;
  border-bottom: 1px solid var(--nova-border);
  font-size: 13px;
  color: var(--nova-muted);
}

.location-bar__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

/* —— Nav / mega menú —— */
.nav-bar {
  background: var(--nova-navy);
  color: #fff;
  position: relative;
  z-index: 90;
}

.nav-bar__inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
  font-family: inherit;
}

.nav-link svg {
  width: 20px;
  height: 20px;
}

.category-dropdown {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  color: var(--nova-text);
  box-shadow: var(--nova-shadow);
  border-radius: 0 0 var(--nova-radius) var(--nova-radius);
  min-height: 320px;
  grid-template-columns: 280px 1fr;
}

.nav-bar__inner:hover .category-dropdown.is-open,
.category-dropdown.is-open {
  display: grid;
}

.cat-left-pane {
  border-right: 1px solid var(--nova-border);
  padding: 8px 0;
  max-height: 400px;
  overflow-y: auto;
}

.mobile-cat-header,
.mobile-cat-back-wrapper {
  display: none;
}

.cat-web-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 20px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  color: var(--nova-text);
  transition: background 0.15s;
}

.cat-web-item:hover,
.cat-web-item.active {
  background: rgba(123, 47, 190, 0.08);
  color: var(--nova-purple);
}

.cat-web-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.5;
}

.cat-right-pane {
  padding: 20px 24px;
  position: relative;
}

.cat-right-content {
  display: none;
}

.cat-right-content.is-visible {
  display: block;
}

.cat-right-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.cat-right-title a {
  text-decoration: none;
  color: inherit;
}

.cat-sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}

.cat-sub-item {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--nova-text);
  font-size: 14px;
  background: var(--nova-bg);
  transition: background 0.15s;
}

.cat-sub-item:hover {
  background: rgba(123, 47, 190, 0.12);
  color: var(--nova-purple);
}

.cat-sub-empty {
  color: var(--nova-muted);
  margin: 0;
}

.cat-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 85;
}

.cat-overlay.active {
  display: block;
}

/* —— Home —— */
.nova-home {
  padding-bottom: 48px;
}

.section-offers,
.section-random-products {
  padding: 28px 0;
}

.section-title-banner {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: var(--nova-navy);
  color: #fff;
  border-radius: var(--nova-radius);
  text-align: left;
  border-left: 4px solid var(--nova-electric);
  box-shadow: var(--nova-shadow);
}

.carousel-wrapper {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 40px;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide-item {
  flex: 0 0 220px;
  scroll-snap-align: start;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--nova-shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nova-purple);
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

.carousel-btn svg {
  width: 22px;
  height: 22px;
}

.section-banner {
  padding: 8px 0 24px;
}

.banner-slide {
  border-radius: var(--nova-radius);
  overflow: hidden;
  display: block;
}

.banner-slide img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.random-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* —— Product card —— */
.product-card {
  background: var(--nova-surface);
  border-radius: var(--nova-radius);
  padding: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
  box-shadow: var(--nova-shadow);
  transform: translateY(-2px);
}

.product-card__link {
  text-decoration: none;
  color: inherit;
}

.product-image-wrapper {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.product-badge--ingresando {
  background: var(--nova-navy);
  color: #fff;
}

.installments-text {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--nova-muted);
}

.nova-installments {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--nova-electric);
}

.nova-price-note--single {
  font-size: 14px;
  color: var(--nova-muted);
  margin-top: 4px;
}

.product-image-wrapper img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.product-pricing__discount-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 20px;
  margin-bottom: 4px;
}

.original-price {
  font-size: 12px;
  color: var(--nova-muted);
  text-decoration: line-through;
}

.discount-percent {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--nova-amber);
  padding: 2px 6px;
  border-radius: 4px;
}

.current-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--nova-navy);
  display: block;
}

.current-price .woocommerce-Price-amount {
  font-weight: 800;
}

.price-note {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--nova-muted);
}

.shipping-info {
  margin-top: 10px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.whatsapp-link {
  color: var(--nova-success);
  font-weight: 600;
  text-decoration: none;
}

.shipping-pickup {
  color: var(--nova-muted);
}

.product-card-footer {
  margin-top: auto;
  padding-top: 12px;
}

.product-card-footer .add-to-cart-btn,
.product-card-footer .button {
  width: 100%;
  text-align: center;
  background: var(--nova-electric) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  cursor: pointer;
  transition: background 0.2s;
}

.product-card-footer .add-to-cart-btn:hover {
  background: var(--nova-electric-hover) !important;
}

/* —— Shop archive / search —— */
.nova-main {
  padding: 24px 0 48px;
}

.nova-archive-header {
  margin-bottom: 24px;
}

.category-page-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0;
  font-weight: 700;
}

.nova-products-grid,
ul.products.nova-products-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.nova-product-loop-item {
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
}

.nova-empty {
  text-align: center;
  color: var(--nova-muted);
  padding: 48px 16px;
}

.woocommerce-result-count,
.woocommerce-ordering {
  margin-bottom: 16px;
}

/* —— Single product —— */
.single-product .nova-main .product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.single-product .woocommerce-product-gallery {
  background: #fff;
  border-radius: var(--nova-radius);
  padding: 16px;
}

.single-product .summary.entry-summary {
  background: #fff;
  border-radius: var(--nova-radius);
  padding: 24px;
}

.single-product .product_title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-top: 0;
}

.single-product .price {
  font-size: 1.5rem;
  color: var(--nova-purple);
  font-weight: 800;
}

.single-product .single_add_to_cart_button {
  background: var(--nova-purple) !important;
  border-radius: 8px !important;
  padding: 12px 28px !important;
  font-weight: 600 !important;
}

.nova-whatsapp-consult__link {
  background: var(--nova-success) !important;
  border-color: var(--nova-success) !important;
  border-radius: 8px !important;
}

/* —— Footer —— */
.footer {
  background: var(--nova-navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 32px;
}

.footer-col h4 {
  color: #fff;
  margin: 0 0 12px;
  font-family: var(--font-display);
}

.footer-text {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-link {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  margin-top: 8px;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  text-align: center;
  font-size: 13px;
}

.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--nova-success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s;
}

.whatsapp-btn:hover {
  transform: scale(1.05);
}

.whatsapp-btn svg {
  width: 28px;
  height: 28px;
}

/* —— WooCommerce cart/checkout basics —— */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  background: #fff;
  padding: 24px;
  border-radius: var(--nova-radius);
}

/* —— Pagination —— */
.navigation.pagination {
  margin-top: 24px;
}

.nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-numbers {
  padding: 8px 14px;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: var(--nova-text);
  border: 1px solid var(--nova-border);
}

.page-numbers.current {
  background: var(--nova-purple);
  color: #fff;
  border-color: var(--nova-purple);
}

/* —— Responsive —— */
@media (max-width: 1024px) {
  .random-products-grid,
  .nova-products-grid,
  ul.products.nova-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .single-product .nova-main .product {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-grid {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .logo {
    grid-column: 1;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .search-bar {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
  }

  .nav-bar__inner:hover .category-dropdown.is-open {
    display: none;
  }

  .category-dropdown.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: 0;
    z-index: 300;
    border-radius: 0;
    min-height: 100vh;
    grid-template-columns: 1fr;
  }

  .category-dropdown.mobile-open.show-sub .cat-left-pane {
    display: none;
  }

  .mobile-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--nova-border);
  }

  .mobile-cat-header h3 {
    margin: 0;
    font-size: 1.1rem;
  }

  .mobile-cat-close {
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }

  .category-dropdown.mobile-open.show-sub .mobile-cat-back-wrapper {
    display: block;
    margin-bottom: 12px;
  }

  .mobile-cat-back-btn {
    border: none;
    background: var(--nova-bg);
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: left;
  }

  .random-products-grid,
  .nova-products-grid,
  ul.products.nova-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .carousel-slide-item {
    flex: 0 0 180px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .carousel-btn {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .random-products-grid,
  .nova-products-grid,
  ul.products.nova-products-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Fase 2: carrito drawer —— */
body.nova-cart-open,
body.nova-filters-open {
  overflow: hidden;
}

.nova-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.nova-cart-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.nova-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  background: var(--nova-surface);
  z-index: 410;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.nova-cart-drawer.is-open {
  transform: translateX(0);
}

.nova-cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--nova-border);
}

.nova-cart-drawer__header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.nova-cart-drawer__close {
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--nova-muted);
}

.nova-cart-drawer__content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.nova-cart-drawer__empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--nova-muted);
}

.nova-cart-drawer__items {
  list-style: none;
  margin: 0;
  padding: 12px 16px;
  flex: 1;
}

.nova-cart-drawer__item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--nova-border);
}

.nova-cart-drawer__item-thumb img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
  background: #fafafa;
}

.nova-cart-drawer__item-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}

.nova-cart-drawer__item-title a {
  color: inherit;
  text-decoration: none;
}

.nova-cart-drawer__item-meta {
  margin: 0;
  font-size: 13px;
  color: var(--nova-muted);
}

.nova-cart-drawer__remove {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: #c62828;
  text-decoration: none;
}

.nova-cart-drawer__footer {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--nova-border);
  background: #fafafa;
}

.nova-cart-drawer__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 15px;
}

.nova-cart-drawer__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nova-cart-drawer__wa {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nova-success);
  text-decoration: none;
}

.nova-btn {
  display: inline-block;
  text-align: center;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.nova-btn--primary {
  background: var(--nova-electric);
  color: #fff !important;
  border: none;
}

.nova-btn--primary:hover {
  background: var(--nova-electric-hover);
}

.nova-btn--outline {
  background: #fff;
  color: var(--nova-navy) !important;
  border-color: var(--nova-navy);
}

/* —— Fase 2: toolbar y filtros —— */
.nova-shop-toolbar {
  margin-bottom: 20px;
}

.nova-shop-toolbar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.nova-breadcrumb {
  font-size: 13px;
  color: var(--nova-muted);
}

.nova-breadcrumb a {
  color: var(--nova-purple);
  text-decoration: none;
}

.nova-breadcrumb--single {
  margin-bottom: 16px;
}

.woocommerce-breadcrumb {
  margin: 0;
}

.nova-filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 2px solid var(--nova-border);
  border-radius: 8px;
  background: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.nova-filters-toggle:hover {
  border-color: var(--nova-purple-light);
}

.nova-shop-toolbar__meta {
  font-size: 13px;
  color: var(--nova-muted);
}

.nova-filters-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.nova-filters-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.nova-filters-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.nova-filters-modal__panel {
  position: relative;
  width: min(440px, 100%);
  background: #fff;
  border-radius: var(--nova-radius);
  padding: 0;
  box-shadow: var(--nova-shadow);
  max-height: 90vh;
  overflow-y: auto;
}

.nova-filters-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--nova-border);
}

.nova-filters-modal__header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.nova-filters-modal__close {
  border: none;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}

.nova-filters-form {
  padding: 20px;
}

.nova-filters-field {
  margin-bottom: 16px;
}

.nova-filters-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.nova-filters-field select,
.nova-filters-field input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--nova-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}

.nova-filters-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.nova-filters-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.nova-filters-actions .nova-btn {
  flex: 1;
}

.nova-related-products {
  margin-top: 40px;
  padding-top: 8px;
}

.nova-related-products .section-title-banner {
  margin-bottom: 16px;
}

/* Checkout / carrito páginas WC */
.woocommerce-cart .woocommerce table.shop_table,
.woocommerce-checkout .woocommerce {
  border-radius: var(--nova-radius);
}

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout #order_review_heading {
  font-family: var(--font-display);
}

.woocommerce #payment {
  border-radius: var(--nova-radius);
  background: #fafafa;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 8px;
}

/* —— Fase 3: cantidades drawer —— */
.nova-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  border: 1px solid var(--nova-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.nova-qty-control.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.nova-qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--nova-bg);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--nova-text);
}

.nova-qty-input {
  width: 44px;
  border: none;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 0;
  -moz-appearance: textfield;
}

.nova-qty-input::-webkit-outer-spin-button,
.nova-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.nova-cart-drawer__qty-fixed {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--nova-muted);
}

/* —— Fase 3: filtros atributos —— */
.nova-filters-checks {
  border: none;
  margin: 0 0 16px;
  padding: 0;
}

.nova-filters-checks legend {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.nova-filters-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 6px;
  cursor: pointer;
}

.nova-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.nova-active-filters__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--nova-border);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--nova-text);
}

.nova-active-filters__chip span {
  color: var(--nova-muted);
  font-size: 14px;
}

.nova-active-filters__clear {
  font-size: 12px;
  font-weight: 600;
  color: var(--nova-purple);
  text-decoration: none;
}

/* —— Fase 3: checkout —— */
.nova-checkout-intro {
  margin-bottom: 24px;
}

.nova-checkout-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 8px;
}

.nova-checkout-subtitle {
  margin: 0;
  color: var(--nova-muted);
  font-size: 15px;
}

.nova-checkout-form {
  background: transparent;
}

.nova-checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

.nova-checkout-main {
  background: #fff;
  border-radius: var(--nova-radius);
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.nova-checkout-sidebar {
  position: sticky;
  top: calc(var(--nova-header-h) + 16px);
  background: #fff;
  border-radius: var(--nova-radius);
  padding: 20px;
  box-shadow: var(--nova-shadow);
}

.nova-checkout-sidebar #order_review_heading {
  margin-top: 0;
  font-family: var(--font-display);
}

.nova-checkout-page .woocommerce-checkout .form-row input.input-text,
.nova-checkout-page .woocommerce-checkout .form-row textarea,
.nova-checkout-page .woocommerce-checkout .form-row select {
  border: 2px solid var(--nova-border);
  border-radius: 8px;
  padding: 10px 12px;
}

.nova-checkout-page #place_order {
  width: 100%;
  background: var(--nova-electric) !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 14px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
}

.nova-cart-page .woocommerce-cart-form {
  background: #fff;
  padding: 20px;
  border-radius: var(--nova-radius);
}

/* —— Fase 4: carrusel banners —— */
.nova-banner-carousel {
  position: relative;
  border-radius: var(--nova-radius);
  overflow: hidden;
  background: #111;
}

.banner-carousel__track {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 7;
  min-height: 160px;
}

.banner-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.banner-carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.banner-carousel__slide .banner-slide {
  display: block;
  width: 100%;
  height: 100%;
}

.banner-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--nova-purple);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--nova-shadow);
}

.banner-carousel__arrow--prev {
  left: 12px;
}

.banner-carousel__arrow--next {
  right: 12px;
}

.banner-carousel__arrow svg {
  width: 22px;
  height: 22px;
}

.banner-carousel__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.banner-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.banner-carousel__dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

/* —— Fase 4: página carrito —— */
.nova-cart-page-header {
  margin-bottom: 20px;
}

.nova-cart-page-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 6px;
}

.nova-cart-page-subtitle {
  margin: 0;
  color: var(--nova-muted);
}

.nova-cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.nova-cart-main .woocommerce-cart-form {
  margin: 0;
}

.nova-cart-sidebar .cart-collaterals {
  width: 100%;
  float: none;
}

.nova-cart-sidebar .cart_totals {
  background: #fff;
  border-radius: var(--nova-radius);
  padding: 20px;
  box-shadow: var(--nova-shadow);
  position: sticky;
  top: calc(var(--nova-header-h) + 16px);
}

.nova-cart-page .shop_table {
  border-radius: var(--nova-radius);
  overflow: hidden;
}

.nova-cart-page .shop_table th {
  background: var(--nova-bg);
  font-size: 13px;
}

.nova-cart-page .coupon .button,
.nova-cart-page button[name="update_cart"] {
  border-radius: 8px !important;
}

.nova-cart-page .checkout-button {
  width: 100%;
  text-align: center;
  background: var(--nova-electric) !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
}

@media (max-width: 900px) {
  .nova-cart-layout {
    grid-template-columns: 1fr;
  }

  .nova-cart-sidebar .cart_totals {
    position: static;
  }

  .banner-carousel__track {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 900px) {
  .nova-checkout-layout {
    grid-template-columns: 1fr;
  }

  .nova-checkout-sidebar {
    position: static;
    order: -1;
  }
}
