
/* ═══════════════════════════════════════════════════════════════
   PRODUCT CATEGORY TEMPLATE  —  taxonomy-product_cat.php
═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   CATEGORY HERO BANNER
───────────────────────────────────────────── */
.vs2-cat-hero {
  position: relative;
  margin-top: 64px;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  background: var(--black);
  background-size: cover;
  background-position: center 30%;
  overflow: hidden;
}

.vs2-cat-hero.no-image { min-height: 180px; }

.vs2-cat-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5,5,5,0.95) 0%,
    rgba(5,5,5,0.55) 50%,
    rgba(5,5,5,0.75) 100%
  );
}

.vs2-cat-hero__content {
  position: relative;
  z-index: 2;
  padding: 40px 60px 48px;
  width: 100%;
}

.vs2-cat-hero__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 7vw, 100px);
  line-height: 0.95;
  color: var(--white);
  margin: 12px 0 0;
}

.vs2-cat-hero__desc {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  margin-top: 12px;
  max-width: 560px;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────
   BREADCRUMB (inside hero)
───────────────────────────────────────────── */
.vs2-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
}

.vs2-breadcrumb a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.vs2-breadcrumb a:hover { color: var(--accent); }
.vs2-breadcrumb__sep { color: rgba(255,255,255,0.2); }
.vs2-breadcrumb__current { color: var(--accent); }

/* ─────────────────────────────────────────────
   HERO SUBCATEGORY PILLS
───────────────────────────────────────────── */
.vs2-hero-subcats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.vs2-hero-subcat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 7px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.vs2-hero-subcat:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
}

.vs2-hero-subcat img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.vs2-hero-subcat:hover img {
  filter: brightness(0);
  opacity: 1;
}

.vs2-hero-subcat__name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 1;
}

.vs2-hero-subcat__count {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  margin-left: 2px;
}

.vs2-hero-subcat:hover .vs2-hero-subcat__count {
  color: rgba(0,0,0,0.45);
}

/* ─────────────────────────────────────────────
   MAIN WRAPPER
───────────────────────────────────────────── */
.vs2-cat-wrap {
  padding: 48px 60px 80px;
}

/* ─────────────────────────────────────────────
   PRODUCTS TOOLBAR
───────────────────────────────────────────── */
.vs2-products__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.vs2-result-count {
  font-size: 13px;
  color: var(--gray);
  white-space: nowrap;
  margin: 0;
}

.vs2-products__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.vs2-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: auto;
}

.vs2-toolbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

/* Style FiboFilters dropdowns to match the ordering select */
.vs2-filters select,
.vs2-filters .fibo-filter-dropdown {
    appearance: none;
    -webkit-appearance: none;
    background: var(--black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23e8c84a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 36px 8px 14px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: border-color 0.2s;
    border-radius: 0;
}

.vs2-filters select:hover,
.vs2-filters select:focus,
.vs2-filters .fibo-filter-dropdown:hover {
    border-color: var(--accent);
    outline: none;
}

/* Active filter indicator */
.vs2-filters select:not([value=""]),
.vs2-filters .fibo-filter-active {
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 768px) {
    .vs2-products__toolbar { flex-direction: column; align-items: flex-start; }
    .vs2-toolbar-right { margin-left: 0; width: 100%; justify-content: space-between; }
    .vs2-filters { width: 100%; }
    .vs2-filters select,
    .vs2-filters .fibo-filter-dropdown { flex: 1; min-width: 0; }
}

/* WooCommerce ordering select */
.woocommerce-ordering { margin: 0; }

.woocommerce-ordering select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23e8c84a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 36px 8px 14px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: border-color 0.2s;
  border-radius: 0;
}

.woocommerce-ordering select:hover,
.woocommerce-ordering select:focus {
  border-color: var(--accent);
  outline: none;
}

/* ─────────────────────────────────────────────
   PRODUCT GRID
───────────────────────────────────────────── */
.vs2-product-grid {
  display: grid;
  grid-template-columns: repeat(var(--vs2-cols, 4), 1fr);
  gap: 16px;
  list-style: none;
}

.vs2-product-grid[data-cols="4"] { --vs2-cols: 4; }
.vs2-product-grid[data-cols="3"] { --vs2-cols: 3; }
.vs2-product-grid[data-cols="5"] { --vs2-cols: 5; }

/* ─────────────────────────────────────────────
   PRODUCT CARD
───────────────────────────────────────────── */
.vs2-product-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.2s;
}

.vs2-product-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  z-index: 1;
}

.vs2-product-card__img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--light);
}

.vs2-product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.vs2-product-card:hover .vs2-product-card__img { transform: scale(1.04); }

/* Badges */
.vs2-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  z-index: 2;
}

.vs2-badge--sale { background: var(--black); color: var(--accent); }
.vs2-badge--new  { background: var(--accent); color: var(--black); }

.vs2-product-card__body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.vs2-product-card__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--black);
  line-height: 1.1;
  transition: color 0.2s;
  display: block;
}

.vs2-product-card__title:hover { color: var(--gray); }

.vs2-product-card__price { font-size: 14px; font-weight: 500; color: var(--black); }
.vs2-product-card__price .woocommerce-Price-amount { color: var(--black); }
.vs2-product-card__price del .woocommerce-Price-amount { color: var(--gray); font-size: 12px; }
.vs2-product-card__price ins { text-decoration: none; color: var(--black); }

/* ─────────────────────────────────────────────
   SWATCHES
───────────────────────────────────────────── */
/* ── CFVSW swatches on category cards ── */
.vs2-product-card .cfvsw-swatches-container.cfvsw-shop-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    margin-top: 6px !important;
}

/* Color swatches */
.vs2-product-card .cfvsw-shop-container .cfvsw-swatches-option:not(.cfvsw-label-option) {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    border-radius: 50% !important;
    border: 1.5px solid rgba(0,0,0,0.12) !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: transform 0.15s, box-shadow 0.15s !important;
    padding: 0 !important;
}

.vs2-product-card .cfvsw-shop-container .cfvsw-swatches-option:not(.cfvsw-label-option) .cfvsw-swatch-inner {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    display: block !important;
}

.vs2-product-card .cfvsw-shop-container .cfvsw-swatches-option:not(.cfvsw-label-option):hover {
    transform: scale(1.2) !important;
}

.vs2-product-card .cfvsw-shop-container .cfvsw-swatches-option:not(.cfvsw-label-option).cfvsw-selected-swatch {
    box-shadow: 0 0 0 1.5px var(--white), 0 0 0 3px var(--black) !important;
}

/* Size/label swatches */
.vs2-product-card .cfvsw-shop-container .cfvsw-label-option {
    height: 22px !important;
    min-width: 22px !important;
    min-height: unset !important;
    border-radius: 0 !important;
    border: 1px solid rgba(0,0,0,0.15) !important;
    background: transparent !important;
    cursor: pointer !important;
    padding: 0 5px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.15s, border-color 0.15s !important;
}

.vs2-product-card .cfvsw-shop-container .cfvsw-label-option .cfvsw-swatch-inner {
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    color: var(--black) !important;
    line-height: 1 !important;
    background: none !important;
}

.vs2-product-card .cfvsw-shop-container .cfvsw-label-option:hover,
.vs2-product-card .cfvsw-shop-container .cfvsw-label-option.cfvsw-selected-swatch {
    background: var(--black) !important;
    border-color: var(--black) !important;
}

.vs2-product-card .cfvsw-shop-container .cfvsw-label-option:hover .cfvsw-swatch-inner,
.vs2-product-card .cfvsw-shop-container .cfvsw-label-option.cfvsw-selected-swatch .cfvsw-swatch-inner {
    color: var(--white) !important;
}

/* Hide table wrapper and reset link */
.vs2-product-card .cfvsw-shop-variations { display: contents !important; }
.vs2-product-card .cfvsw-shop-variations tbody,
.vs2-product-card .cfvsw-shop-variations tr { display: contents !important; }
.vs2-product-card .cfvsw-shop-variations td { display: block !important; padding: 0 !important; }
.vs2-product-card .reset_variations { display: none !important; }
.vs2-product-card .cfvsw-hidden-select { display: none !important; }

/* Variation form — no extra spacing */
.vs2-product-card .cfvsw_variations_form { margin: 0 !important; padding: 0 !important; }

/* Price */
.vs2-product-card span.price {
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
    display: block;
    margin-bottom: 4px;
}

.vs2-product-card span.price .woocommerce-Price-amount { color: var(--black); }
.vs2-product-card span.price del .woocommerce-Price-amount { color: var(--gray); font-size: 12px; }
.vs2-product-card span.price ins { text-decoration: none; }

/* ─────────────────────────────────────────────
   PAGINATION
───────────────────────────────────────────── */
.vs2-pagination { margin-top: 56px; display: flex; justify-content: center; }

.vs2-pagination ul { display: flex; gap: 4px; list-style: none; }

.vs2-pagination ul li a,
.vs2-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  border: 1px solid var(--light);
  color: var(--black);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.vs2-pagination ul li a:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.vs2-pagination ul li span.current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
}

.vs2-pagination ul li a[rel="prev"],
.vs2-pagination ul li a[rel="next"] {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────
   EMPTY STATE
───────────────────────────────────────────── */
.vs2-empty { padding: 80px 0; text-align: center; color: var(--gray); font-size: 15px; }

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1200px) {
  .vs2-product-grid { --vs2-cols: 3 !important; }
}

@media (max-width: 900px) {
  .vs2-cat-hero__content { padding: 32px 40px 40px; }
  .vs2-cat-wrap { padding: 40px 40px 60px; }
  .vs2-product-grid { --vs2-cols: 2 !important; }
  .vs2-products__toolbar { justify-content: space-between; }
}

@media (max-width: 600px) {
  .vs2-cat-hero__content { padding: 28px 24px 36px; }
  .vs2-cat-wrap { padding: 32px 24px 48px; }
  .vs2-hero-subcats { gap: 6px; }
  .vs2-product-grid { --vs2-cols: 2 !important; gap: 8px; }
  .vs2-product-card__body { padding: 10px 12px 14px; }
  .vs2-product-card__title { font-size: 16px; }
}

/* ─────────────────────────────────────────────
   COMPACT HERO (archive-product.php / tienda)
───────────────────────────────────────────── */
.vs2-cat-hero--compact {
  min-height: 80px !important;
  align-items: center;
}

.vs2-cat-hero--compact .vs2-cat-hero__content {
  padding: 24px 60px;
}

/* ─────────────────────────────────────────────
   LARGE SUBCATEGORY CARDS GRID
   (display type = subcategories only)
───────────────────────────────────────────── */
.vs2-subcats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 0;
}

.vs2-subcats-grid[data-count="1"] { grid-template-columns: 1fr; max-width: 480px; }
.vs2-subcats-grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.vs2-subcats-grid[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
.vs2-subcats-grid[data-count="4"] { grid-template-columns: repeat(4, 1fr); }

.vs2-subcat-bigcard {
  display: block;
  text-decoration: none;
  overflow: hidden;
  position: relative;
}

.vs2-subcat-bigcard__img {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--light);
}

.vs2-subcat-bigcard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

.vs2-subcat-bigcard:hover .vs2-subcat-bigcard__img img {
  transform: scale(1.05);
}

.vs2-subcat-bigcard__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  background: var(--light);
}

.vs2-subcat-bigcard__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5,5,5,0.80) 0%,
    rgba(5,5,5,0.10) 55%,
    transparent 100%
  );
  transition: opacity 0.3s;
}

.vs2-subcat-bigcard:hover .vs2-subcat-bigcard__overlay {
  opacity: 0.85;
}

.vs2-subcat-bigcard__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vs2-subcat-bigcard__name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--white);
  line-height: 1;
  display: block;
  transition: color 0.2s;
}

.vs2-subcat-bigcard:hover .vs2-subcat-bigcard__name {
  color: var(--accent);
}

.vs2-subcat-bigcard__count {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .vs2-subcats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .vs2-cat-hero--compact .vs2-cat-hero__content { padding: 20px 40px; }
}

@media (max-width: 600px) {
  .vs2-subcats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
  .vs2-cat-hero--compact .vs2-cat-hero__content { padding: 16px 24px; }
  .vs2-subcat-bigcard__name { font-size: 22px; }
}


.vs2-product-card .add_to_cart_button {
    display: none !important;
}