/* Layout */
.inv-layout{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
}
@media (max-width:1080px){ .inv-layout{ grid-template-columns: 1fr; } }

body.inv-locked{ overflow:hidden !important; }

/* Overlay controlled by body flag */
.inv-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.28);
  opacity:0; pointer-events:none; transition:opacity .18s ease; z-index:99990;
}
.inv-overlay[hidden]{ display:none; }
body.inv-filters-open .inv-overlay{ opacity:1; pointer-events:auto; }

/* Sidebar */
.inv-sidebar{
  background:#fff; border:1px solid #e5e7eb; border-radius:16px; padding:16px;
  height:fit-content; position:sticky; top:16px; z-index:100000;
}
.inv-sidebar.inv-hidden{ display:none !important; }
/* On desktop the sidebar must always be visible */
@media (min-width:1081px){
  .inv-sidebar.inv-hidden{ display:block !important; }
}

.inv-sidebar-header{ display:flex; align-items:center; justify-content:space-between; }
.inv-sidebar h3{ margin:0 0 8px; font-size:20px; }

@media (max-width:1080px){
  .inv-sidebar{ position:fixed; top:0; bottom:0; left:0; width:320px; max-width:90vw;
    transform:translateX(-110%); transition:transform .18s ease; border-radius:0; overflow:auto; }
  body.inv-filters-open .inv-sidebar{ transform:translateX(0); }
}

/* Accordion + checks */
.inv-accordion details{ border-bottom:1px solid #e5e7eb; padding:8px 0; }
.inv-accordion summary{ cursor:pointer; font-weight:700; color:#0f172a; }
.inv-checkgrid{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:8px; margin-top:10px; }
@media (max-width:480px){ .inv-checkgrid{ grid-template-columns: 1fr; } }
.inv-check{ display:flex; align-items:center; gap:8px; padding:8px 10px; border:1px solid #e5e7eb; border-radius:10px; background:#fff; }
.inv-check input{ width:16px; height:16px; }

/* Range (PRICE SLIDER – final smooth-drag fix) */
.inv-range{
  position:relative;
  height:28px;
  display:flex;
  align-items:center;
}
.inv-range input[type=range]{
  position:absolute; left:0; right:0; width:100%;
  background:transparent;
  pointer-events:none;              /* only thumbs receive events */
  -webkit-appearance:none; appearance:none;
  height:0;                         /* prevent overlapped tracks from catching drags */
  margin:0;
  z-index:2;
  touch-action:none;                /* stop touch gestures from interrupting */
}
/* keep max (right) slider above min for consistent pointer capture */
.inv-range input[type=range]:last-of-type{ z-index:3; }

/* WebKit (Chrome/Safari/Edge) */
.inv-range input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none;
  pointer-events:auto;              /* thumb gets the events */
  width:14px; height:14px;          /* small knobs */
  border-radius:50%;
  background:#1f6feb; border:none; cursor:pointer;
  margin-top:-5px;                  /* center over 4px track */
  box-shadow:0 1px 3px rgba(0,0,0,.25);
}
.inv-range input[type=range]::-webkit-slider-runnable-track{
  height:4px; background:transparent;
}

/* Firefox */
.inv-range input[type=range]::-moz-range-thumb{
  pointer-events:auto;
  width:14px; height:14px;
  border-radius:50%;
  background:#1f6feb; border:none; cursor:pointer;
  box-shadow:0 1px 3px rgba(0,0,0,.25);
}
.inv-range input[type=range]::-moz-range-track{
  height:4px; background:transparent;
}

/* visible bar */
.inv-range-track{
  position:absolute; left:0; right:0; height:4px;
  border-radius:999px; background:#e5e7eb; z-index:1;
}
.inv-range-labels{
  display:flex; justify-content:space-between;
  font-size:14px; margin-top:6px; color:#111827;
}

.inv-actions{ display:flex; gap:10px; margin-top:14px; }
.inv-btn{ padding:10px 14px; border-radius:10px; border:1px solid #1f6feb; background:#1f6feb; color:#fff; cursor:pointer; }
.inv-btn-secondary{ background:#fff; color:#1f6feb; }

/* Toolbar */
.inv-content{ min-width:0; }
.inv-toolbar{ display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.inv-search{ flex:1 1 auto; }
#inv-search{ width:100%; padding:12px 14px; border:1px solid #e5e7eb; border-radius:999px; font-size:16px; }

/* Compact sorting: keep search widest */
.inv-sort{
  flex:0 0 150px; max-width:150px; min-width:130px;
  padding:10px 12px; border:1px solid #e5e7eb; border-radius:10px; background:#fff; font-size:14px;
}

.inv-icon-btn{
  border:1px solid #e5e7eb; background:#fff; width:40px; height:40px; border-radius:12px;
  display:inline-flex; align-items:center; justify-content:center; font-size:20px; cursor:pointer;
}
.inv-icon-btn:hover{ background:#f3f4f6; }

.inv-count{ margin:8px 0 12px; font-weight:600; color:#111827; }

/* Spinner */
.inv-spinner{ display:flex; gap:8px; align-items:center; justify-content:center; margin:24px 0; }
.inv-spinner[hidden]{ display:none; }
.inv-spinner-dot{ width:10px; height:10px; border-radius:50%; background:#1f6feb; animation:inv-bounce 1s infinite ease-in-out; }
.inv-spinner-dot:nth-child(2){ animation-delay:.12s; }
.inv-spinner-dot:nth-child(3){ animation-delay:.24s; }
@keyframes inv-bounce{ 0%,80%,100%{ transform:scale(0); } 40%{ transform:scale(1.0); } }
.dim{ opacity:.6; }

/* Grid */
.inv-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:16px; }
@media (max-width:1200px){ .inv-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width:900px){ .inv-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width:560px){ .inv-grid{ grid-template-columns: 1fr; } }

/* Cards */
.inv-card{ background:#fff; border:1px solid #e5e7eb; border-radius:16px; overflow:hidden;
  box-shadow:0 2px 8px rgba(17,24,39,.06); transition:transform .2s, box-shadow .2s; cursor:pointer; }
.inv-card:hover{ transform:translateY(-3px); box-shadow:0 8px 18px rgba(17,24,39,.10); }
.inv-thumb{ width:100%; padding-top:60%; background:#f3f4f6; background-size:cover; background-position:center; }
.inv-body{ padding:12px; }
.inv-title{ margin:0 0 6px; font-size:16px; font-weight:700; color:#0f172a; }
.inv-meta{ color:#6b7280; font-size:13px; margin-bottom:6px; }
.inv-tags{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:6px; }
.inv-tag{ font-size:12px; padding:4px 8px; border-radius:999px; background:#f1f5f9; color:#0f172a; border:1px solid #e2e8f0; }
.inv-price{ color:#0b6b2f; font-weight:800; font-size:16px; }

/* Empty */
.inv-empty{ grid-column:1 / -1; text-align:center; padding:24px; color:#6b7280; background:#fff; border:1px solid #e5e7eb; border-radius:12px; }

/* Pager */
.inv-pager{ display:flex; align-items:center; justify-content:center; gap:12px; margin:22px 0 8px; }
.inv-pager .inv-btn{ min-width:110px; }
#inv-page-info{ padding:8px 12px; border-radius:10px; background:#1f6feb; color:#fff; font-weight:700; }

/* Modal */
.inv-modal{ position:fixed; inset:0; background:rgba(0,0,0,.55); display:flex; align-items:center; justify-content:center;
  opacity:0; transition:opacity .18s ease; z-index:100010; }
.inv-modal[hidden]{ display:none; }
.inv-modal.show{ opacity:1; }

.inv-modal-dialog{
  width:min(960px, 95vw); background:#fff; border-radius:16px; overflow:hidden; position:relative;
  max-height:90vh; display:flex; flex-direction:column;
}
.inv-modal-title{ margin:12px 12px 8px; font-size:20px; font-weight:800; color:#0f172a; }

/* SQUARE, SMALL CONTROLS */
.inv-modal-close,
.inv-car-prev, .inv-car-next{
  width:28px; height:28px; border-radius:6px;
  border:1px solid #e5e7eb; background:#fff; color:#0f172a;
  display:flex; align-items:center; justify-content:center;
  font-size:16px; line-height:1; cursor:pointer; box-shadow:0 1px 3px rgba(0,0,0,.12);
}
.inv-modal-close{ position:absolute; top:8px; right:8px; }
.inv-modal-close:hover, .inv-car-prev:hover, .inv-car-next:hover{ background:#f8fafc; }

/* Carousel */
.inv-modal-body{ padding:0 12px 12px; overflow:auto; }
.inv-carousel{ position:relative; width:100%; aspect-ratio:16/9; background:#0f172a; display:flex; align-items:center; justify-content:center; border-radius:12px; overflow:hidden; }
.inv-carousel img{ width:100%; height:100%; object-fit:cover; }
.inv-car-prev{ position:absolute; left:8px; top:50%; transform:translateY(-50%); }
.inv-car-next{ position:absolute; right:8px; top:50%; transform:translateY(-50%); }

/* Modal meta */
.inv-modal-meta{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:10px; margin-top:12px; }
.inv-modal-meta div{ background:#f8fafc; border:1px solid #e5e7eb; border-radius:10px; padding:10px 12px; font-size:14px; color:#0f172a; }
@media (max-width:680px){ .inv-modal-meta{ grid-template-columns:1fr; } }

/* ===== Slider fila única ===== */
.inv-row{
  max-width:1280px;
  margin:0 auto;
  padding:16px;
  box-sizing:border-box;
}
.inv-slider{
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;
}
.inv-slide-viewport{
  overflow:hidden;
  width:100%;
}
.inv-slide-track{
  --per-view: 4;    /* JS ajusta a 1 en móvil */
  --gap: 14px;
  display:grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  column-gap: var(--gap);
  transition: transform .28s ease;
  will-change: transform;
}

/* flechas del slider, más delgadas/compactas */
.inv-slide-prev,
.inv-slide-next{
  width:28px;
  height:28px;
  border-radius:8px;
  border:1px solid #e5e7eb;
  background:#fff;
  color:#374151;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 1px 2px rgba(0,0,0,.06);
}
.inv-slide-prev:hover,
.inv-slide-next:hover{ background:#f8fafc; }
.inv-slide-prev:disabled,
.inv-slide-next:disabled{ opacity:.4; cursor:not-allowed; }

/* Indicadores: líneas en desktop, puntos en móvil; siempre en una fila */
.inv-slide-dots{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:12px;
  padding:0 8px;
  flex-wrap:wrap;       /* evita desborde horizontal */
}
.inv-dot{
  width:34px;
  height:4px;           /* línea delgada (desktop) */
  border-radius:2px;
  border:none;
  background:#cfd5dc;
  cursor:pointer;
}
.inv-dot.active{ background:#1f6feb; }

/* móvil: 1 por vista y dots como puntos */
@media (max-width:680px){
  .inv-slide-track{ --per-view: 1; }
  .inv-dot{
    width:8px;
    height:8px;
    border-radius:50%;
  }
}

/* asegura que las tarjetas del slider se vean compactas en una fila */
.inv-slide .inv-thumb{ padding-top:60%; }

aside.footer-widget-area section > div span {
    background-color: transparent !important;
  }

/* Mobile only: center the P in the footer widget area */
@media (max-width: 680px) {
  aside.footer-widget-area section > div > p.has-text-align-left,
  aside.footer-widget-area section > div > p.hast-text-align-left, /* typo-safe */
  aside.footer-widget-area p.has-text-align-left,                 /* fallbacks */
  aside.footer-widget-area p.hast-text-align-left {
    text-align: center !important;
  }
  
  
  aside.footer-widget-area section > div img {
    height: auto !important;
  }

  
}

