/*
Theme Name: Vivia Studio 2
Theme URI: https://viviastudio.com
Author: Vivia Studio
Author URI: https://viviastudio.com
Description: Tema oficial de Vivia Studio — textil personalizado en Zaragoza. Diseño editorial oscuro con tipografía Bebas Neue, paleta negro-dorado y secciones optimizadas para e-commerce WooCommerce.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vivia-studio-2
Tags: e-commerce, woocommerce, dark, editorial, custom-colors, custom-logo, full-width-template, blog
*/

/* ═══════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════ */
:root {
  --black:  #0a0a0a;
  --white:  #f5f5f0;
  --accent: #e8c84a;
  --gray:   #888888;
  --light:  #ebebeb;
  --dark-bg: #050505;
  --soft-bg: #f0f0eb;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --nav-h:    64px;
  --radius:   0;
  --transition: 0.25s ease;
}

/* ═══════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ═══════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════ */
/* Compensate for WP admin bar (32px desktop, 46px mobile) */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(10,10,10,0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

#siteHeader .custom-logo-link {
    display: flex;
    align-items: center;
}

#siteHeader .custom-logo {
    height: 38px;
    width: auto;
    display: block;
    filter: invert(1);
}

.site-footer .custom-logo-link {
    display: flex;
    align-items: center;
}

.site-footer .custom-logo {
    height: 38px;
    width: auto;
    display: block;
    filter: invert(1);
    margin-bottom: 20px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 3px;
  color: var(--white);
  text-decoration: none;
}
.site-logo span { color: var(--accent); }

.main-navigation {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-navigation a {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color var(--transition);
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a { color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: var(--black);
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: opacity var(--transition);
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.85; }

.account-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s;
}

.account-icon:hover { color: var(--accent); }

/* ── Header actions ── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--accent);
    transition: opacity 0.2s;
}

.cart-icon:hover { opacity: 0.75; }

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--accent);
    color: var(--black);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Nav list */
.primary-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.primary-menu > li {
    position: relative;
}

.primary-menu > li > a {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color .2s;
    white-space: nowrap;
    padding-top: 12px;
    padding-bottom: 12px;
}

.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-ancestor > a {
    color: var(--accent);
}

/* Dropdown */
.primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 180px;
    background: rgba(10,10,10,0.96);
    border-top: 2px solid var(--accent);
    list-style: none;
    z-index: 300;
    backdrop-filter: blur(12px);
}

.primary-menu li:hover > .sub-menu {
    display: block;
}

.primary-menu .sub-menu li a {
    display: block;
    padding: 12px 20px;
    color: rgba(255,255,255,0.65);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color .2s, background .2s;
    white-space: nowrap;
}

.primary-menu .sub-menu li a:hover {
    color: var(--accent);
    background: rgba(255,255,255,0.04);
}

/* ═══════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════ */
.vs-hero {
  height: 75vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  margin-top: var(--nav-h);
}

.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(5,5,5,0.9) 0%,
    rgba(5,5,5,0.4) 50%,
    rgba(5,5,5,0.9) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 60px 80px;
  max-width: 1000px;
  animation: vs-fadeUp 1s ease forwards;
}

.hero-label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-label::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 130px);
  line-height: 0.92;
  color: var(--white);
  margin-bottom: 24px;
}
.hero-title em { color: var(--accent); font-style: normal; }

.hero-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-dots {
  position: absolute;
  bottom: 32px; right: 60px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 6px; height: 6px;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.hero-dot.active {
  background: var(--accent);
  transform: scale(1.5);
}

/* ═══════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════ */
.btn-primary {
  background: var(--accent);
  color: var(--black);
  padding: 14px 32px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: transform var(--transition), opacity var(--transition);
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); opacity: 0.9; color: var(--black); }

.btn-ghost {
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  padding: 14px 32px;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: border-color var(--transition), background var(--transition);
  display: inline-block;
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.06);
  color: var(--white);
}

/* ═══════════════════════════════════════════════════
   TICKER
═══════════════════════════════════════════════════ */
.vs-ticker {
  background: var(--accent);
  padding: 12px 0;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: vs-ticker 25s linear infinite;
}
.ticker-item {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--black);
  flex-shrink: 0;
}
.ticker-item::before { content: '★  '; }

/* ═══════════════════════════════════════════════════
   SECTION HEADERS
═══════════════════════════════════════════════════ */
.section-head {
  padding: 80px 60px 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.section-head.compact { padding-top: 60px; }

.section-label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  color: var(--black);
}
.section-link {
  font-size: 13px;
  color: var(--black);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity var(--transition);
  white-space: nowrap;
}
.section-link:hover { opacity: 0.6; }

/* ═══════════════════════════════════════════════════
   GENDER GRID
═══════════════════════════════════════════════════ */
.gender-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0 60px;
  margin-bottom: 6px;
}
.gender-card {
  position: relative;
  overflow: hidden;
  height: 420px;
  cursor: pointer;
}
.gender-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}
.gender-card:hover img { transform: scale(1.05); }
.gender-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 55%);
}
.gender-label {
  position: absolute;
  bottom: 24px; left: 24px;
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--white);
  letter-spacing: 2px;
}
.gender-sub {
  position: absolute;
  bottom: 18px; right: 20px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════
   CATEGORIES GRID
═══════════════════════════════════════════════════ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0 60px;
}
.cat-card {
  position: relative;
  overflow: hidden;
  height: 240px;
  cursor: pointer;
}
.cat-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cat-card:hover img { transform: scale(1.06); }
.cat-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.35);
  transition: background 0.3s;
}
.cat-card:hover .cat-overlay { background: rgba(0,0,0,0.2); }
.cat-label {
  position: absolute;
  bottom: 20px; left: 20px;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--white);
  letter-spacing: 2px;
}
.cat-arrow {
  position: absolute;
  bottom: 22px; right: 20px;
  color: var(--accent);
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.3s;
}
.cat-card:hover .cat-arrow { opacity: 1; }

/* ═══════════════════════════════════════════════════
   PROVIDER CAROUSEL
═══════════════════════════════════════════════════ */
.carousel-section { position: relative; }
.carousel-wrapper {
  padding: 0 60px;
  position: relative;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 8px;
  transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
.provider-card {
  flex: 0 0 calc(50% - 4px);
  position: relative;
  overflow: hidden;
  height: 500px;
  cursor: pointer;
}
.provider-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.provider-card:hover .provider-bg { transform: scale(1.05); }
.provider-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.1) 60%,
    transparent 100%);
}
.provider-info {
  position: absolute;
  bottom: 36px; left: 36px; right: 36px;
}
.provider-brand {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.provider-name {
  font-family: var(--font-display);
  font-size: 52px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 12px;
}
.provider-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  line-height: 1.5;
}
.provider-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--black);
  padding: 10px 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: transform var(--transition);
}
.provider-card:hover .provider-cta { transform: translateX(6px); }

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 24px 0 0;
}
.carousel-dot {
  width: 8px; height: 8px;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.carousel-dot.active {
  background: var(--black);
  transform: scale(1.3);
}

.carousel-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: calc(100% - 120px);
  left: 60px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}
.carousel-arrow {
  pointer-events: all;
  width: 48px; height: 48px;
  background: rgba(10,10,10,0.7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background var(--transition);
  backdrop-filter: blur(4px);
}
.carousel-arrow:hover {
  background: var(--accent);
  color: var(--black);
}

/* ═══════════════════════════════════════════════════
   CATALOG HIGHLIGHT
═══════════════════════════════════════════════════ */
.catalog-highlight {
  padding: 80px 60px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.catalog-panel {
  position: relative;
  overflow: hidden;
  height: 380px;
}
.catalog-panel img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.catalog-panel:hover img { transform: scale(1.04); }
.catalog-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, transparent 60%);
}
.catalog-content {
  position: absolute;
  bottom: 40px; left: 40px;
}
.catalog-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.catalog-title {
  font-family: var(--font-display);
  font-size: 48px;
  color: white;
  line-height: 1;
  margin-bottom: 20px;
}
.btn-catalog {
  background: var(--accent);
  color: var(--black);
  padding: 10px 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-block;
  transition: opacity var(--transition);
}
.btn-catalog:hover { opacity: 0.85; color: var(--black); }

/* ═══════════════════════════════════════════════════
   INFO STRIP
═══════════════════════════════════════════════════ */
.info-strip {
  background: var(--black);
  padding: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 6px;
}
.info-item {
  border-left: 2px solid var(--accent);
  padding-left: 24px;
}
.info-num {
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--accent);
  line-height: 1;
}
.info-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}
.info-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.3);
  margin-top: 8px;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════
   BLOG SECTION
═══════════════════════════════════════════════════ */
.blog-section {
  background: var(--soft-bg);
  padding: 4px 0 80px;
}
.blog-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
  padding: 0 60px;
}
.blog-card { overflow: hidden; }
.blog-img { overflow: hidden; }
.blog-img img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-img img { transform: scale(1.04); }
.blog-content { padding: 20px 0; }
.blog-cat {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.blog-title {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 8px;
  display: block;
}
.blog-title:hover { color: var(--gray); }
.blog-date { font-size: 12px; color: var(--gray); }

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.site-footer {
  background: var(--dark-bg);
  padding: 60px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 4px;
  color: var(--white);
  margin-bottom: 12px;
  display: block;
}
.footer-logo span { color: var(--accent); }
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  max-width: 240px;
}
.footer-col-title {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════
   WOOCOMMERCE OVERRIDES
═══════════════════════════════════════════════════ */
.woocommerce-store-notice { display: none; }

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  padding: 8px 0 0;
}
.woocommerce ul.products li.product .price {
  color: var(--accent);
  font-weight: 700;
}
.woocommerce ul.products li.product a img {
  transition: transform 0.5s ease;
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.04); }

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--accent);
  color: var(--black);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 12px;
  border-radius: 0;
  padding: 10px 20px;
  transition: opacity var(--transition);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover { background: var(--accent); opacity: 0.85; color: var(--black); }

/* ═══════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════ */
@keyframes vs-fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes vs-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .main-navigation { gap: 20px; }
  .gender-grid { grid-template-columns: repeat(2, 1fr); }
  .gender-card:last-child { grid-column: span 2; height: 280px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid .blog-card:first-child { grid-column: span 2; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-header { padding: 0 24px; }
  .main-navigation { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: rgba(10,10,10,0.97); padding: 24px; gap: 16px; }
  .main-navigation.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .vs-hero { height: 85vh; }
  .hero-content { padding: 0 24px 60px; }

  .section-head { padding: 60px 24px 32px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .gender-grid { padding: 0 24px; grid-template-columns: 1fr; }
  .gender-card:last-child { grid-column: span 1; height: 320px; }
  .cat-grid { padding: 0 24px; grid-template-columns: 1fr; }
  .carousel-wrapper { padding: 0 24px; }
  .carousel-arrows { left: 24px; width: calc(100% - 48px); }
  .provider-card { flex: 0 0 100%; }
  .catalog-highlight { padding: 40px 24px 0; grid-template-columns: 1fr; }
  .info-strip { padding: 40px 24px; grid-template-columns: 1fr; }
  .blog-grid { padding: 0 24px; grid-template-columns: 1fr; }
  .blog-grid .blog-card:first-child { grid-column: span 1; }
  .site-footer { padding: 40px 24px; }
  .footer-top { grid-template-columns: 1fr; }
}

/* ── YITH Filter — reset & theme ───────────────────────────────────────── */

/* Hide the verbose heading */
.yith-wcan-filter h4.filter-title {
    display: none !important;
}

/* Lay filters out horizontally */
.yith-wcan-filters .filters-container form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.yith-wcan-filter {
    position: relative !important;
}

/* Hide white padding */
.yith-wcan-filters {
    margin-bottom: 0 !important;
}

.yith-wcan-filter.filter-tax.select-design {
    margin-bottom: 0 !important;
}

/* The "Todo" trigger button */
.yith-wcan-filter .yith-wcan-dropdown {
    min-width: 130px;
    background: var(--black) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 0 !important;
    padding: 0 !important;
    cursor: pointer;
}

.yith-wcan-filter .yith-wcan-dropdown .dropdown-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    font-size: 12px;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white) !important;
}

/* Chevron via pseudo-element */
.yith-wcan-filter .yith-wcan-dropdown .dropdown-label::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 6px;
    margin-left: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23e8c84a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
    flex-shrink: 0;
}

.yith-wcan-filter .yith-wcan-dropdown:hover,
.yith-wcan-filter .yith-wcan-dropdown:focus {
    border-color: var(--accent) !important;
    outline: none;
}

/* Active filter: gold border + gold label */
.yith-wcan-filter.filter-active .yith-wcan-dropdown {
    border-color: var(--accent) !important;
}

.yith-wcan-filter.filter-active .dropdown-label {
    color: var(--accent) !important;
}

/* Dropdown panel */
.yith-wcan-filter .yith-wcan-dropdown .dropdown-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--black) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-top: 2px solid var(--accent) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
    border-radius: 0 !important;
    z-index: 9999;
    max-height: 326px;
}

/* Search field */
.yith-wcan-filter .search-field-container {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.yith-wcan-filter .search-field {
    width: 100%;
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: var(--white) !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
    font-family: 'DM Sans', sans-serif !important;
    border-radius: 0 !important;
}

.yith-wcan-filter .search-field::placeholder {
    color: rgba(255,255,255,0.3) !important;
}

.yith-wcan-filter .search-field:focus {
    outline-color: var(--accent) !important;
}

/* List items */
.yith-wcan-filter .matching-items {
    list-style: none !important;
    margin: 0 !important;
    padding: 6px 0 !important;
}

.yith-wcan-filter .matching-items .filter-item {
    padding: 0 !important;
    margin: 0 !important;
}

.yith-wcan-filter .matching-items .filter-item label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 14px !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
}

.yith-wcan-filter .matching-items .filter-item label:hover {
    background: rgba(255,255,255,0.05) !important;
}

.yith-wcan-filter .matching-items .filter-item label a {
    font-size: 12px !important;
    font-family: 'DM Sans', sans-serif !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    color: rgba(255,255,255,0.65) !important;
    text-decoration: none !important;
}

.yith-wcan-filter .matching-items .filter-item label:hover a {
    color: var(--accent) !important;
}

/* Selected item */
.yith-wcan-filter .matching-items .filter-item.checked label a,
.yith-wcan-filter .matching-items .filter-item.selected label a {
    color: var(--accent) !important;
}

/* Checkbox styling */
.yith-wcan-filter .matching-items .filter-item input[type="checkbox"] {
    accent-color: var(--accent);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Kill YITH's pink/magenta accent everywhere */
.yith-wcan-filters * {
    --wcan-color-primary: var(--accent) !important;
    --wcan-color-secondary: var(--accent) !important;
    accent-color: var(--accent) !important;
}

/* Apply button */
.yith-wcan-filter .filter-apply-btn,
.yith-wcan-filter [class*="apply"] {
    background: var(--accent) !important;
    color: var(--black) !important;
    border-color: var(--accent) !important;
}

/* PerfectScrollbar (YITH's bundled JS scrollbar) */
.yith-wcan-filter .ps__thumb-y {
    background: var(--accent) !important;
}

.yith-wcan-filter .ps__rail-y:hover > .ps__thumb-y,
.yith-wcan-filter .ps__rail-y.ps--clicking .ps__thumb-y {
    background: var(--accent) !important;
}

.yith-wcan-filter .ps__rail-y {
    background: rgba(255,255,255,0.05) !important;
}

/* Native scrollbar (fallback) */
.yith-wcan-filter .dropdown-wrapper::-webkit-scrollbar {
    width: 4px;
}

.yith-wcan-filter .dropdown-wrapper::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}

.yith-wcan-filter .dropdown-wrapper::-webkit-scrollbar-thumb {
    background: var(--accent) !important;
}

/* "Mostrar más" link */
.yith-wcan-filter .show-more {
    display: block;
    padding: 8px 14px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent) !important;
    border-top: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .yith-wcan-filters .filters-container form {
        flex-direction: column;
        align-items: stretch;
    }

    .yith-wcan-filter .yith-wcan-dropdown {
        width: 100%;
    }
}

/* Fix pink scrollbar */
.yith-wcan-filter .matching-items.filter-items {
    overflow-y: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: var(--accent) rgba(255,255,255,0.05) !important;
}

.yith-wcan-filter .matching-items.filter-items::-webkit-scrollbar {
    width: 4px !important;
}

.yith-wcan-filter .matching-items.filter-items::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05) !important;
}

.yith-wcan-filter .matching-items.filter-items::-webkit-scrollbar-thumb {
    background: var(--accent) !important;
}

/* Remove duplicate chevron */
.yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown:after {
    background-image: none !important;
}
