/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Apr 27 2026 | 19:01:03 */
/* ==========================================================
   Veluvia Search — vls.css (Global Overlay Desktop & Scroll Fix)
========================================================== */

:root {
  --vs-gold:   #c5a059;
  --vs-carbon: #2d2926;
  --vs-c2:     #5c5650;
  --vs-c3:     #9c9690;
  --vs-cream:  #f9f7f2;
  --vs-border: #e8e4df;
  --vs-soft:   #f0ece7;
  --vs-white:  #ffffff;
  
  --vs-panel-h: 600px;
  --vs-right-w: 300px; 
  --vs-left-w:  400px; 
  --vs-t:       .3s cubic-bezier(0.25, 1, 0.5, 1);
}

header, .et-l--header, .et_pb_section, .et_pb_row { overflow: visible !important; }

.vls-wrap { position: relative; font-family: 'DM Sans', sans-serif; margin: 0; display: flex; justify-content: flex-end; align-items: center; z-index: 990; }

/* ── OVERLAY GLOBAL (Inyectado en body) ── */
.vls-global-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.65);
  z-index: 999990; /* Justo debajo del buscador */
  opacity: 0; visibility: hidden; transition: opacity var(--vs-t);
  pointer-events: none;
}
.vls-global-overlay.vls-active {
  opacity: 1; visibility: visible; pointer-events: auto;
}
@media (max-width: 1100px) {
  .vls-global-overlay { display: none !important; }
}

/* Pase VIP temporal para el menú de Divi cuando se abre el buscador */
.vls-divi-boost { z-index: 999999 !important; position: relative; }

/* ── ICONO GATILLO ── */
.vls-trigger {
  display: inline-flex !important; align-items: center; justify-content: center;
  width: 44px !important; height: 44px !important; 
  background: transparent !important; border: none !important; box-shadow: none !important;
  cursor: pointer; color: var(--vs-carbon); padding: 0; margin: 0; transition: color var(--vs-t);
}
.vls-trigger:hover { color: var(--vs-gold); }
.vls-tr-close { display: none; }
.vls-wrap.vls-active .vls-tr-search { display: none; }
.vls-wrap.vls-active .vls-tr-close { display: block; }

/* ==========================================================
   ESCRITORIO (>= 1101px)
========================================================== */
@media (min-width: 1101px) {
  
  .vls-field {
    position: absolute; right: 0; top: calc(100% + 5px);
    width: var(--vs-right-w); height: 44px; display: flex; align-items: center;
    background: var(--vs-white); border-bottom: 2px solid var(--vs-carbon);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all var(--vs-t);
    z-index: 999; 
  }
  .vls-wrap.vls-active .vls-field { opacity: 1; visibility: visible; transform: translateY(0); }
  .vls-field:focus-within { border-bottom-color: var(--vs-gold); }

  .vls-input { flex: 1; height: 100%; border: none; outline: none; background: transparent; padding: 0 10px; font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--vs-carbon); }
  .vls-input::placeholder { color: var(--vs-c3); font-weight: 400; }
  .vls-icon-search { padding: 0 10px; color: var(--vs-carbon); display: flex; align-items: center; }
  .vls-mobile-close { display: none; }

  /* PANEL MAESTRO */
  .vls-master-panel {
    position: absolute; right: 0; top: calc(100% + 60px);
    width: calc(var(--vs-left-w) + var(--vs-right-w)); 
    height: var(--vs-panel-h); 
    max-height: calc(100vh - 80px); 
    display: flex; flex-direction: row; background: var(--vs-white);
    border: 1px solid var(--vs-border); box-shadow: 0 24px 60px rgba(45,41,38,.12);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all var(--vs-t);
    z-index: 999; 
  }
  .vls-master-panel.vls-open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: all; }

  .vls-dropdown { flex: 0 0 var(--vs-left-w); width: var(--vs-left-w); overflow-y: auto; border-right: 1px solid var(--vs-soft); display: flex; flex-direction: column; }
  .vls-dropdown::-webkit-scrollbar { width: 4px; }
  .vls-dropdown::-webkit-scrollbar-thumb { background: var(--vs-border); border-radius: 4px; }

  /* Scroll panel visual */
  .vls-preview { 
    flex: 0 0 var(--vs-right-w); width: var(--vs-right-w); background: var(--vs-cream); 
    display: flex; flex-direction: column; opacity: 0; transition: opacity .2s ease; pointer-events: none; 
    overflow-y: auto; overflow-x: hidden;
  }
  .vls-preview::-webkit-scrollbar { width: 4px; }
  .vls-preview::-webkit-scrollbar-thumb { background: var(--vs-border); border-radius: 4px; }
  .vls-preview.vls-preview-visible { opacity: 1; pointer-events: all; }

  /* IMAGEN BLINDADA Y SIEMPRE CUADRADA */
  .vls-preview-img { 
    width: 100%; 
    aspect-ratio: 1 / 1 !important; 
    flex-shrink: 0 !important; 
    overflow: hidden; 
    background: var(--vs-white); 
    position: relative; 
    border-bottom: 1px solid var(--vs-border); 
  }
  .vls-preview-img img { 
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover !important; 
    object-position: center !important;
    transition: transform .5s ease; 
  }
  .vls-preview-img:hover img { transform: scale(1.04); }
  .vls-preview-sale { position: absolute; top: 12px; left: 12px; font-size: 9px; font-weight: 600; text-transform: uppercase; background: var(--vs-carbon); color: var(--vs-white); padding: 4px 10px; z-index: 2; }
  
  .vls-preview-body { padding: 24px; display: flex; flex-direction: column; flex-shrink: 0; justify-content: space-between; }
  .vls-preview-info { display: flex; flex-direction: column; gap: 6px; }
  .vls-preview-cat { font-size: 9px; font-weight: 500; text-transform: uppercase; color: var(--vs-gold); letter-spacing: .18em; }
  .vls-preview-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; line-height: 1.2; color: var(--vs-carbon); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .vls-preview-title:hover { color: var(--vs-gold); }
  .vls-preview-price { font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 700; color: var(--vs-gold); margin-top: 4px; }
  .vls-preview-price del .amount { font-size: 13px; font-weight: 400; color: var(--vs-c3); margin-right: 6px; }
  
  @media (max-height: 750px) { .vls-preview-excerpt { display: none !important; } .vls-preview-body { padding: 15px 24px; } }
  .vls-preview-excerpt { font-size: 12px; color: var(--vs-c2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 5px; }
  
  .vls-preview-bottom { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 15px; }
  .vls-preview-stock { display: flex; align-items: center; gap: 6px; font-size: 10px; text-transform: uppercase; color: var(--vs-c3); letter-spacing: .1em; }
  .vls-preview-stock::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
  .vls-preview-stock.in { color: #4caf82; }
  .vls-preview-actions { display: flex; gap: 8px; }
  .vls-preview-atc { flex: 1; display: inline-flex; align-items: center; justify-content: center; height: 44px; background: var(--vs-carbon); color: var(--vs-white); border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; transition: background var(--vs-t); }
  .vls-preview-atc:hover { background: var(--vs-gold); }
  .vls-preview-atc.vls-atc-loading { opacity: .65; pointer-events: none; }
  .vls-preview-wl { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--vs-white); border: 1px solid var(--vs-border); cursor: pointer; color: var(--vs-carbon); transition: all var(--vs-t); flex-shrink: 0; }
  .vls-preview-wl:hover { border-color: var(--vs-carbon); transform: scale(1.08); }
  .vls-preview-wl.vls-wl-active { color: #e63946; border-color: rgba(230,57,70,.3); }
  .vls-preview-wl.vls-wl-active svg path { fill: #e63946; stroke: #e63946; }
}

/* ==========================================================
   MÓVIL / TABLET (<= 1100px) - PORTAL INDEPENDIENTE
========================================================== */
@media (max-width: 1100px) {
  .vls-wrap .vls-field, .vls-wrap .vls-master-panel { display: none !important; }
  
  .vls-mobile-portal {
    position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    width: 100vw !important; height: 100vh !important;
    background: var(--vs-white) !important;
    z-index: 999999 !important;
    display: none; flex-direction: column;
  }
  .vls-mobile-portal.vls-active { display: flex !important; }
  
  .vls-mobile-portal .vls-field {
    display: flex !important; position: relative !important; width: 100% !important; height: 60px !important;
    align-items: center; justify-content: space-between; border-bottom: 1px solid var(--vs-border);
    background: var(--vs-white); flex-shrink: 0;
  }
  .vls-mobile-close { order: 1; display: flex; align-items: center; justify-content: center; background: transparent; border: none; padding: 0 15px; height: 100%; color: var(--vs-carbon); cursor: pointer; }
  .vls-input { order: 2; flex: 1; height: 100%; padding: 0 10px; font-size: 16px; border: none; outline: none; background: transparent; }
  .vls-icon-search { order: 3; padding: 0 15px; display: flex; align-items: center; justify-content: center; color: var(--vs-carbon); }
  
  .vls-mobile-portal .vls-master-panel {
    display: flex !important; position: relative !important;
    width: 100% !important; height: calc(100vh - 60px) !important;
    flex-direction: column; background: var(--vs-white);
    border: none !important; box-shadow: none !important; transform: none !important;
    opacity: 1; visibility: visible;
  }
  .vls-dropdown { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; width: 100%; border-right: none; }
  .vls-preview { display: none !important; }
}

/* ── UTILIDADES GLOBALES ── */
.vls-spinner { display: none; position: absolute; right: 50px; }
@media (max-width: 1100px) { .vls-spinner { right: 45px; } }
.vls-wrap.vls-searching .vls-spinner, .vls-mobile-portal.vls-searching .vls-spinner { display: flex; align-items: center; }
.vls-wrap.vls-searching .vls-icon-search, .vls-mobile-portal.vls-searching .vls-icon-search { opacity: 0; display: none; }
@keyframes vls-spin { to { transform: rotate(360deg); } }
.vls-spinner svg { animation: vls-spin .7s linear infinite; }

.vls-dd-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px 8px; border-bottom: 1px solid var(--vs-soft); }
.vls-dd-count { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--vs-c3); }
.vls-dd-see-all { font-size: 10px; font-weight: 600; text-transform: uppercase; color: var(--vs-gold); text-decoration: none; }

.vls-item { display: flex; align-items: center; gap: 15px; padding: 12px 20px; cursor: pointer; border-bottom: 1px solid var(--vs-soft); text-decoration: none; color: inherit; transition: background var(--vs-t); position: relative; pointer-events: all; }
.vls-item:hover, .vls-item.vls-active { background: rgba(197,160,89,.04); }
.vls-item.vls-active::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--vs-gold); }
.vls-item:hover .vls-item-title, .vls-item.vls-active .vls-item-title { color: var(--vs-gold); }

.vls-item-thumb { width: 55px; height: 55px; flex-shrink: 0; overflow: hidden; background: var(--vs-white); border: 1px solid var(--vs-border); pointer-events: none; }
.vls-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vls-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; pointer-events: none; }
.vls-item-cat { font-size: 8px; font-weight: 500; text-transform: uppercase; color: var(--vs-gold); }
.vls-item-title { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 400; color: var(--vs-carbon); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vls-item-price { font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600; color: var(--vs-gold); }
.vls-item-price del .amount { font-size: 11px; font-weight: 400; color: var(--vs-c3); margin-right: 4px; }
.vls-item-price ins { text-decoration: none; }
.vls-dd-empty { padding: 50px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--vs-c3); }

.vls-item-title mark {
  background: rgba(197,160,89,.25);
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}
@keyframes vls-heart { 0%,100%{transform:scale(1)} 40%{transform:scale(1.4)} 70%{transform:scale(.9)} }
.vls-preview-wl.vls-pulsing svg { animation: vls-heart .4s ease; }
.vls-atc-done svg { color: var(--vs-gold); }