/*
Theme Name: sayonara
Author: sayonara
Description: Your description goes here
Version: 1
Template: hello-elementor

This is the child theme for Hello Elementor theme, generated with Generate Child Theme plugin by catchthemes.
*/

/* ── Fix tablas ancho en responsive ──────────────────────── */
@media (max-width:1024px) {
  .textos-legales table { display:block; overflow-x:auto; white-space:nowrap; }
  .textos-legales table tbody { display:table; width:100%; }
}

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --etg-cream:     #FEFCE8;
  --etg-blush:     #F5EDE8;
  --etg-terra:     #B04020;
  --etg-copper:    #C9826A;
  --etg-navy:      #1C2B4B;
  --etg-charcoal:  #444441;
  --etg-muted:     #888780;
  --etg-border:    rgba(28,43,75,0.10);
  --etg-sans:      'DM Sans', sans-serif;
  --etg-radius-lg: 14px;
  --etg-radius:    8px;
}

.wpfMainWrapper { font-family: var(--etg-sans) !important; }

/* ============================================================
   EN OFERTA
   ============================================================ */
[data-filter-type="wpfOnSale"] {
  background: #fff !important;
  border: 0.5px solid var(--etg-border) !important;
  border-radius: var(--etg-radius-lg) !important;
  margin-bottom: 4px !important;
  overflow: hidden !important;
}
[data-filter-type="wpfOnSale"] .wpfFilterTitle { display: none !important; }
[data-filter-type="wpfOnSale"] .wpfFilterContent { padding: 0 !important; }
[data-filter-type="wpfOnSale"] .wpfFilterVerScroll { padding:0 !important; margin:0 !important; list-style:none !important; }
[data-filter-type="wpfOnSale"] .wpfLiLabel {
  display: flex !important; align-items: center !important;
  justify-content: space-between !important; padding: 13px 16px !important;
  cursor: pointer !important; border-left: 2px solid transparent !important;
  gap: 8px !important; transition: background 0.15s !important;
}
[data-filter-type="wpfOnSale"] .wpfLiLabel:hover { background: var(--etg-blush) !important; border-left-color: var(--etg-copper) !important; }
[data-filter-type="wpfOnSale"] li.wpfChecked .wpfLiLabel { background: var(--etg-blush) !important; border-left-color: var(--etg-terra) !important; }
[data-filter-type="wpfOnSale"] .wpfCheckbox { display: none !important; }
[data-filter-type="wpfOnSale"] .wpfFilterTaxNameWrapper,
[data-filter-type="wpfOnSale"] .wpfValue { font-size: 14px !important; font-weight: 500 !important; color: var(--etg-navy) !important; }
[data-filter-type="wpfOnSale"] .wpfDisplay { display:flex !important; align-items:center !important; justify-content:space-between !important; flex:1 !important; }
[data-filter-type="wpfOnSale"] .wpfDisplay::after {
  content: '%' !important; background: var(--etg-terra) !important; color: #fff !important;
  font-size: 11px !important; font-weight: 700 !important; padding: 2px 8px !important; border-radius: 4px !important;
}
[data-filter-type="wpfOnSale"] .wpfCount { display: none !important; }

/* ============================================================
   PRECIO
   ============================================================ */
[data-filter-type="wpfPrice"] {
  background: #fff !important; border: 0.5px solid var(--etg-border) !important;
  border-radius: var(--etg-radius-lg) !important; overflow: hidden !important; margin-bottom: 4px !important;
}
[data-filter-type="wpfPrice"] .wpfFilterTitle {
  display:flex !important; align-items:center !important; justify-content:space-between !important;
  padding: 13px 16px 12px !important; border-bottom: 0.5px solid var(--etg-border) !important;
  cursor: pointer !important; transition: background 0.2s !important;
}
[data-filter-type="wpfPrice"] .wpfFilterTitle:hover { background: var(--etg-blush) !important; }
[data-filter-type="wpfPrice"] .wfpTitle { font-size:11px !important; font-weight:500 !important; letter-spacing:1.5px !important; text-transform:uppercase !important; color:var(--etg-muted) !important; }
[data-filter-type="wpfPrice"] .fa-minus,
[data-filter-type="wpfPrice"] .fa-plus { color: var(--etg-muted) !important; font-size: 12px !important; }
[data-filter-type="wpfPrice"] .wpfFilterContent { padding: 4px 0 !important; }

.wpfPriceFilterRange { margin: 14px 16px 10px !important; }
.ui-slider { height:3px !important; background:var(--etg-border) !important; border:none !important; border-radius:2px !important; }
.ui-slider-range { background:var(--etg-terra) !important; height:3px !important; top:0 !important; border-radius:2px !important; }
.ui-slider-handle {
  width:18px !important; height:18px !important; background:#fff !important;
  border:2px solid var(--etg-terra) !important; border-radius:50% !important;
  top:-8px !important; margin-left:-9px !important; cursor:grab !important;
  outline:none !important; box-shadow:0 2px 6px rgba(176,64,32,0.2) !important;
}
.ui-slider-handle:hover,
.ui-slider-handle.ui-state-active { border-color:#922F15 !important; box-shadow:0 0 0 4px rgba(176,64,32,0.15) !important; }
.wpfFilterWrapper .ui-slider-horizontal { width:87% !important; }
.wpfPriceInputs { display:flex !important; align-items:center !important; gap:6px !important; padding:4px 16px 12px !important; }
.wpfPriceRangeField {
  flex:1 !important; padding:6px 8px !important; border:0.5px solid var(--etg-border) !important;
  border-radius:var(--etg-radius) !important; font-family:var(--etg-sans) !important; font-size:13px !important;
  color:var(--etg-navy) !important; background:var(--etg-cream) !important; outline:none !important;
  text-align:center !important; min-width:0 !important;
}
.wpfPriceRangeField:focus { border-color: var(--etg-terra) !important; }
.wpfFilterDelimeter { font-size:12px !important; color:var(--etg-muted) !important; }
.wpfCurrencySymbol { font-size:13px !important; color:var(--etg-muted) !important; }

/* ============================================================
   CATEGORY — jerarquía padre / hijo
   ============================================================ */
[data-filter-type="wpfCategory"] {
  background:#fff !important; border:0.5px solid var(--etg-border) !important;
  border-radius:var(--etg-radius-lg) !important; overflow:hidden !important; margin-bottom:4px !important;
}

/* Ocultar título */
[data-filter-type="wpfCategory"] .wpfFilterTitle { display: none !important; }

/* Fix WBW max-height:0 — categorías siempre visibles */
[data-filter-type="wpfCategory"] .wpfFilterContent {
  max-height: none !important;
  overflow: visible !important;
  height: auto !important;
}
[data-filter-type="wpfCategory"] .wpfFilterVerScroll {
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}
[data-filter-type="wpfCategory"] .wpfFilterWrapper {
  overflow: visible !important;
}

/* Padre */
[data-filter-type="wpfCategory"] li[data-parent="0"] { border-bottom:0.5px solid rgba(28,43,75,0.06) !important; padding:0 !important; }
[data-filter-type="wpfCategory"] li[data-parent="0"] > .wpfLiLabel {
  display:flex !important; align-items:center !important; padding:11px 16px !important;
  cursor:pointer !important; border-left:2px solid transparent !important;
  gap:8px !important; transition:background 0.15s !important; background:#fff !important;
}
[data-filter-type="wpfCategory"] li[data-parent="0"] > .wpfLiLabel:hover { background:var(--etg-blush) !important; border-left-color:var(--etg-copper) !important; }
[data-filter-type="wpfCategory"] li[data-parent="0"].wpfChecked > .wpfLiLabel { background:var(--etg-blush) !important; border-left-color:var(--etg-terra) !important; }
[data-filter-type="wpfCategory"] li[data-parent="0"] > .wpfLiLabel .wpfFilterTaxNameWrapper { font-size:13px !important; font-weight:500 !important; color:var(--etg-navy) !important; }
[data-filter-type="wpfCategory"] li[data-parent="0"].wpfChecked > .wpfLiLabel .wpfFilterTaxNameWrapper { color:var(--etg-terra) !important; }
[data-filter-type="wpfCategory"] li[data-parent="0"] > .wpfLiLabel .wpfCount { font-size:11px !important; color:var(--etg-muted) !important; }
[data-filter-type="wpfCategory"] li[data-parent="0"] > .wpfLiLabel .wpfDisplay { display:flex !important; align-items:center !important; justify-content:space-between !important; flex:1 !important; }

/* Flecha — JS añade etg-has-children / etg-open */
[data-filter-type="wpfCategory"] li[data-parent="0"] > .wpfLiLabel .wpfDisplay::after { content:none !important; display:none !important; }
[data-filter-type="wpfCategory"] li.etg-has-children > .wpfLiLabel .wpfDisplay::after { content:'›' !important; display:inline-block !important; font-size:16px !important; color:#888780 !important; line-height:1 !important; transition:transform 0.25s !important; transform:rotate(0deg) !important; }
[data-filter-type="wpfCategory"] li.etg-open > .wpfLiLabel .wpfDisplay::after { transform:rotate(90deg) !important; color:#B04020 !important; }

/* Hijos ocultos por defecto en desktop — JS los abre */
[data-filter-type="wpfCategory"] li.etg-has-children > ul { display:none !important; }
[data-filter-type="wpfCategory"] li.etg-open > ul { display:block !important; }

/* Checkbox padres CON hijos: oculto */
[data-filter-type="wpfCategory"] li[data-parent="0"] > .wpfLiLabel .wpfCheckbox { display:block !important; position:absolute !important; width:0 !important; height:0 !important; overflow:hidden !important; pointer-events:none !important; opacity:0 !important; }
/* Checkbox padres SIN hijos: overlay clickeable */
[data-filter-type="wpfCategory"] li.etg-no-children > .wpfLiLabel { position:relative !important; }
[data-filter-type="wpfCategory"] li.etg-no-children > .wpfLiLabel .wpfCheckbox { display:block !important; position:absolute !important; width:100% !important; height:100% !important; top:0 !important; left:0 !important; opacity:0 !important; pointer-events:auto !important; cursor:pointer !important; }
[data-filter-type="wpfCategory"] li.etg-no-children > .wpfLiLabel .wpfCheckbox label { display:block !important; width:100% !important; height:100% !important; cursor:pointer !important; }

/* ul hijos */
[data-filter-type="wpfCategory"] li[data-parent="0"] > ul { background:#fafafa !important; border-top:0.5px solid rgba(28,43,75,0.06) !important; padding:4px 0 !important; margin:0 !important; list-style:none !important; }

/* Hijo */
[data-filter-type="wpfCategory"] li[data-parent="0"] > ul > li { padding:0 !important; border-bottom:none !important; }
[data-filter-type="wpfCategory"] li[data-parent="0"] > ul > li .wpfLiLabel { position:relative !important; display:flex !important; align-items:center !important; padding:7px 16px 7px 28px !important; cursor:pointer !important; border-left:2px solid transparent !important; gap:0 !important; transition:background 0.15s !important; }
[data-filter-type="wpfCategory"] li[data-parent="0"] > ul > li .wpfLiLabel:hover { background:var(--etg-blush) !important; border-left-color:var(--etg-copper) !important; }
[data-filter-type="wpfCategory"] li[data-parent="0"] > ul > li.wpfChecked .wpfLiLabel { background:var(--etg-blush) !important; border-left-color:var(--etg-terra) !important; }
[data-filter-type="wpfCategory"] li[data-parent="0"] > ul > li .wpfFilterTaxNameWrapper { font-size:12px !important; font-weight:300 !important; color:var(--etg-charcoal) !important; }
[data-filter-type="wpfCategory"] li[data-parent="0"] > ul > li.wpfChecked .wpfFilterTaxNameWrapper { color:var(--etg-navy) !important; font-weight:400 !important; }
[data-filter-type="wpfCategory"] li[data-parent="0"] > ul > li .wpfCount { font-size:11px !important; color:var(--etg-muted) !important; }
[data-filter-type="wpfCategory"] li[data-parent="0"] > ul > li.wpfChecked .wpfFilterTaxNameWrapper::before { content:'· ' !important; color:#B04020 !important; font-size:16px !important; font-weight:700 !important; }
/* Checkbox hijos: overlay clickeable */
[data-filter-type="wpfCategory"] li[data-parent="0"] > ul > li .wpfCheckbox { display:block !important; position:absolute !important; width:100% !important; height:100% !important; top:0 !important; left:0 !important; opacity:0 !important; pointer-events:auto !important; cursor:pointer !important; }
[data-filter-type="wpfCategory"] li[data-parent="0"] > ul > li .wpfCheckbox label { display:block !important; width:100% !important; height:100% !important; cursor:pointer !important; }

/* Colapsado WBW */
.wpfFilterWrapper.wpfCollapsed .wpfFilterContent { display:none !important; }
.wpfFilterWrapper.wpfCollapsed .wpfFilterTitle { border-bottom:none !important; }

/* ============================================================
   TAGS — tabs horizontales
   ============================================================ */
[data-filter-type="wpfTags"] {
  background:#fff !important; border:none !important;
  border-bottom:1.5px solid var(--etg-border) !important;
  border-radius:0 !important; margin-bottom:0 !important; overflow:visible !important;
}
[data-filter-type="wpfTags"] .wpfFilterTitle { display:none !important; }
[data-filter-type="wpfTags"] .wpfFilterContent { padding:0 !important; }
[data-filter-type="wpfTags"] .wpfFilterVerScroll,
[data-filter-type="wpfTags"] ul { display:flex !important; flex-direction:row !important; max-height:none !important; overflow:visible !important; padding:0 !important; margin:0 !important; list-style:none !important; }
[data-filter-type="wpfTags"] li { padding:0 !important; border:none !important; }
[data-filter-type="wpfTags"] .wpfCheckbox,
[data-filter-type="wpfTags"] .wpfCheckbox * { display:none !important; visibility:hidden !important; width:0 !important; height:0 !important; overflow:hidden !important; position:absolute !important; pointer-events:none !important; }
[data-filter-type="wpfTags"] .wpfCount { display:none !important; }
[data-filter-type="wpfTags"] .wpfLiLabel {
  display:flex !important; align-items:center !important; justify-content:center !important;
  padding:16px 28px !important; border-left:none !important;
  border-bottom:3px solid transparent !important; background:transparent !important;
  cursor:pointer !important; gap:0 !important; transition:all 0.2s !important; min-height:52px !important;
}
[data-filter-type="wpfTags"] .wpfValue,
[data-filter-type="wpfTags"] .wpfFilterTaxNameWrapper { font-size:15px !important; font-weight:500 !important; color:var(--etg-muted) !important; white-space:nowrap !important; }
[data-filter-type="wpfTags"] .wpfLiLabel:hover { border-left:none !important; border-bottom:3px solid var(--etg-copper) !important; background:transparent !important; }
[data-filter-type="wpfTags"] .wpfLiLabel:hover .wpfValue,
[data-filter-type="wpfTags"] .wpfLiLabel:hover .wpfFilterTaxNameWrapper { color:var(--etg-navy) !important; }
[data-filter-type="wpfTags"] li.wpfChecked .wpfLiLabel { border-left:none !important; border-bottom:3px solid var(--etg-terra) !important; background:transparent !important; }
[data-filter-type="wpfTags"] li.wpfChecked .wpfValue,
[data-filter-type="wpfTags"] li.wpfChecked .wpfFilterTaxNameWrapper { color:var(--etg-navy) !important; font-weight:600 !important; }

/* Colores por tag */
[data-term-slug="for-her"] .wpfValue,
[data-term-slug="for-her"] .wpfFilterTaxNameWrapper { color:#8B2020 !important; }
[data-term-slug="for-her"].wpfChecked .wpfLiLabel { border-bottom-color:#C0393E !important; }
[data-term-slug="for-him"] .wpfValue,
[data-term-slug="for-him"] .wpfFilterTaxNameWrapper { color:#1C3A7A !important; }
[data-term-slug="for-him"].wpfChecked .wpfLiLabel { border-bottom-color:#2A52A8 !important; }
[data-term-slug="for-kids"] .wpfValue,
[data-term-slug="for-kids"] .wpfFilterTaxNameWrapper { color:#1A5C1A !important; }
[data-term-slug="for-kids"].wpfChecked .wpfLiLabel { border-bottom-color:#2A7D2A !important; }
[data-term-slug="for-pets"] .wpfValue,
[data-term-slug="for-pets"] .wpfFilterTaxNameWrapper { color:#7A4500 !important; }
[data-term-slug="for-pets"].wpfChecked .wpfLiLabel { border-bottom-color:#C97020 !important; }

/* ============================================================
   TAB ALL
   ============================================================ */
.etg-all-tab .wpfLiLabel { display:flex !important; align-items:center !important; justify-content:center !important; padding:16px 28px !important; border-left:none !important; border-bottom:3px solid transparent !important; background:transparent !important; cursor:pointer !important; min-height:52px !important; transition:all 0.2s !important; }
.etg-all-tab .wpfFilterTaxNameWrapper { font-size:15px !important; font-weight:500 !important; color:#888780 !important; }
.etg-all-tab.etg-all-active .wpfLiLabel { border-bottom:3px solid #B04020 !important; }
.etg-all-tab.etg-all-active .wpfFilterTaxNameWrapper { color:#1C2B4B !important; font-weight:600 !important; }
.etg-all-tab .wpfLiLabel:hover { border-bottom:3px solid #C9826A !important; }
.etg-all-tab .wpfLiLabel:hover .wpfFilterTaxNameWrapper { color:#1C2B4B !important; }

/* ============================================================
   MONEDAS
   ============================================================ */
.wmc-currency .wmc-active { background-color:#ffffff00 !important; }
.wmc-currency { background-color:#ffffff00 !important; }


/*Cookies*/
button.cky-btn, .cky-btn-accept, cky-btn-reject {
    color: #ffffff !important;
    background-color: #B45E55 !important;
    border-color: #B45E55 !important;
    font-size: 12px !important;
    padding: 12px 14px !important;
}
.cky-btn-revisit-wrapper.cky-revisit-bottom-left{background-color: #B45E55 !important;}