  * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: 'Segoe UI', sans-serif;
      background: #f0f4f8;
      padding: 76px 0px 0px;
      color: #333;
    }

    #product-list{
      margin: 0px 16px 16px;
    }


    .cards-header {
      width: 95%;
      max-width: 1200px;
      margin: 0 auto 12px;
      padding: 12px 16px;
      background: #fff;
      border-radius: 6px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .cards-header .label-left {
      position: absolute;
      left: 16px;
      text-transform: uppercase;
      font-weight: 600;
      padding: 4px 8px;
      border-radius: 4px;
      font-size: 13px;
    }
    .cards-header .label-left.nuevo {
      background: #22a6b3;
      color: #fff;
    }
    .cards-header .label-left.oferta {
      background: #ed0505;
      color: #fff;
    }
    .cards-header .title-center {
      font-size: 18px;
      font-weight: 700;
      color: #333;
      text-align: center;
      text-transform: uppercase;
    }
    .cards-header .info-icon {
      position: absolute;
      right: 16px;
      font-size: 1.2em;
      color: #555;
      cursor: pointer;
    }
    .cards-header .info-icon .tooltip {
      position: absolute;
      top: 24px;
      right: 0;
      background: #fff;
      border: 1px solid #ccc;
      padding: 8px 12px;
      border-radius: 4px;
      font-size: 13px;
      color: #333;
      width: 220px;
      display: none;
      box-shadow: 0 2px 6px rgba(0,0,0,0.15);
      z-index: 1005;
    }
    .cards-header .info-icon:hover .tooltip,
    .cards-header .info-icon .tooltip.persist {
      display: block;
    }


    .cards-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 12px;
      margin: 0 auto 24px;
      max-width: 1200px;
    }
    .card {
      background: #fff;
      border-radius: 7px;
      overflow: hidden;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      width: 240px;
      text-align: center;
      position: relative;
      cursor: pointer;
      transition: transform 0.2s ease;
      flex-shrink: 0;
    }
    @media (min-width: 1200px) {
      .card {
        width: calc((100% - 2 * 164px) / 3);
      }
      .card:hover {
        transform: scale(1.03);
      }
    }
    @media (max-width: 600px) {
      .card {
        width: calc((100% - 12px) / 2);
      }
    }

    .card img {
      transition: opacity 0.1s ease; 
      width: 100%;
      height: auto;
      object-fit: cover;
      cursor: pointer;
    }
    .badge {
      position: absolute;
      top: 8px;
      left: 8px;
      padding: 3px 6px;
      border-radius: 4px;
      font-size: 12px;
      text-transform: uppercase;
      font-weight: 600;
      color: #fff;
    }
    .badge.oferta {
      background: #ed0505;
    }
    .badge.nuevo {
      background: #22a6b3;
    }
    .content {
      padding: 8px;
    }
    .content h3 {
      font-size: 14px;
      margin: 6px 0;
      color: #333;
      word-wrap: break-word;
      text-transform: uppercase;
    }
    .price {
      color: #22a6b3;
      font-weight: bold;
      font-size: 15px;
      margin: 6px 0;
    }
    .card select.variation {
      width: calc(100% - 16px);
      padding: 6px;
      margin: 6px auto;
      border-radius: 5px;
      border: 1px solid #ddd;
      font-size: 14px;
      display: block;
    }
    .card input.qty {
      width: calc(100% - 16px);
      padding: 4px;
      margin: 6px auto;
      border-radius: 5px;
      border: 1px solid #ddd;
      display: none;
      font-size: 14px;
    }
    .card .cart-button {
      padding: 6px;
      width: calc(100%);
      height: 36px;
      border: none;
      border-radius: 6px;
      background-color: #54a0ff;
      color: #fff;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      white-space: nowrap;
      display: none;
      transition: background-color 0.3s;
    }
    .card .cart-button:hover {
      background-color: #2e86de;
    }


    .navbar {
      position: fixed; top: 0; left: 0;
      width: 100%; height: 60px;
      background: #fff;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      z-index: 1010;
      display: flex; align-items: center; justify-content: center;
    }
    .navbar .menu-toggle,
    .navbar .cart-icon,
    .navbar .notif-bell {
      font-size: 1.5em;
      cursor: pointer;
      position: absolute; top: 50%; transform: translateY(-50%);
      color: #333;
    }
    .navbar .menu-toggle { left: 16px; }
    .navbar .notif-bell { right: 80px; }
    .navbar .cart-icon { right: 16px; }
    .cart-icon, .notif-bell {
      display: flex; align-items: center; position: relative;
    }
    .badge-cart, .badge-notif {
      background: #e84118;
      color: #fff;
      font-size: 12px;
      padding: 2px 6px;
      border-radius: 12px;
      position: absolute;
      top: -6px; right: -6px;
      display: none;
      z-index: 1;
    }
    .navbar .logo {
      position: absolute; left: 50%; transform: translateX(-50%);
    }
    .navbar .logo img { height: 53px; }


    .notif-dropdown {
      position: absolute;
      top: 130%; right: 0;
      background: #fff;
      border: 1px solid #ccc;
      border-radius: 4px;
      width: 250px;
      max-height: 300px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.15);
      overflow-y: auto;
      opacity: 0; visibility: hidden;
      transform: translateY(-10px);
      transition: opacity 0.3s ease, transform 0.3s ease;
      z-index: 1005;
      list-style: none;
      padding: 0; margin: 0;
    }
    @media (max-width: 600px) {
  .notif-dropdown {
    top: 155%; right: -36px;
  }
}

    .notif-dropdown.open {
      opacity: 1; transform: translateY(0); visibility: visible;
    }
    .notif-dropdown li {
      padding: 10px;
      border-bottom: 1px solid #eee;
      font-size: 0.9rem;
      color: #333;
    }
    .notif-dropdown li:last-child {
      border-bottom: none;
    }
    .notif-dropdown a {
      color: #22a6b3;
      text-decoration: none;
      margin-left: 8px;
      font-weight: 600;
    }
    .notif-dropdown a:hover {
      text-decoration: underline;
    }


    .page-title {
      position: absolute;
      left: 56px;
      top: 50%; transform: translateY(-50%);
      font-size: 18px;
      font-weight: 600;
      color: #333;
      cursor: pointer;
      user-select: none;
    }
    .page-title i {
      margin-left: 6px;
      font-size: 0.8em;
      transition: transform 0.3s ease;
    }
    .page-title.open i {
      transform: rotate(180deg);
    }
    .page-dropdown {
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      background: #fff;
      border: 1px solid #ccc;
      border-radius: 4px;
      width: 150px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.15);
      opacity: 0; visibility: hidden;
      transform: translateY(-10px);
      transition: opacity 0.3s ease, transform 0.3s ease;
      z-index: 1004;
      list-style: none;
      padding: 0; margin: 0;
      max-height: 200px;
      overflow-y: auto;
    }
    .page-dropdown.open {
      opacity: 1; transform: translateY(0); visibility: visible;
    }
    .page-dropdown li + li {
      margin-top: 0;
    }
    .page-dropdown li a {
      display: block;
      padding: 8px 12px;
      color: #333;
      text-decoration: none;
      font-size: 14px;
    }
    .page-dropdown li a:hover {
      background: #f0f4f8;
    }
    .page-dropdown li.active > a {
      color: #22a6b3;
      font-weight: 600;
    }
    @media (max-width: 600px) {
      .page-title i { display: none; }
    }
    @media (max-width: 425px) {
      .page-title {
          font-size: 16px;
      }
    }
    @media (max-width: 375px) {
      .page-title {
          font-size: 15px;
      }
    }
    @media (max-width: 350px) {
      .page-title { display: none; }
    }


    .overlay {
      position: fixed; top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.5);
      opacity: 0; visibility: hidden;
      transition: opacity 0.3s ease;
      z-index: 999;
    }
    .overlay.active {
      opacity: 1; visibility: visible;
    }


    .nav-menu {
      position: fixed; top: 0; left: -300px;
      width: 300px; height: 100vh;
      background: #fff;
      box-shadow: 2px 0 8px rgba(0,0,0,0.1);
      padding-top: 60px;
      list-style: none; margin: 0;
      transition: left 0.3s ease;
      z-index: 1002;
    }
    .nav-menu.open {
      left: 0;
    }
    .nav-menu li {
      position: relative;
    }
    .nav-menu li + li {
      margin-top: 4px;
    }
    .nav-menu li a {
      display: block;
      padding: 12px 16px;
      color: #333;
      text-decoration: none;
      font-size: 15px;
    }
    .nav-menu li a:hover {
      background: #f0f4f8;
    }
    .nav-menu .submenu {
      display: none;
      list-style: none;
      margin: 0; padding-left: 16px;
      background: #fafafa;
      max-height: 300px;
      overflow-y: auto;
    }
    .nav-menu li.open > .submenu {
      display: block;
    }
    .nav-menu .submenu li a {
      padding: 8px 16px;
      font-size: 14px;
    }
    .nav-menu .submenu li.active-model > a {
      color: #22a6b3;
      font-weight: 600;
    }


.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;                   
  width: 400px;            
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0,0,0,0.1);
  padding-top: 60px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  z-index: 1005;
  transform: translateX(100%); 
}
.cart-sidebar.open {
  transform: translateX(0);   
}


@media (max-width: 480px) {
  .cart-sidebar {
    width: 75%;
  }
}

    .cart-header {
      display: flex; align-items: center; justify-content: center;
      padding: 12px 16px; border-bottom: 1px solid #ddd;
      position: relative;
    }
    .cart-header h3 {
      margin: 0; font-size: 18px; color: #333;
      display: flex; align-items: center; gap: 6px;
    }
    .cart-header .cart-count-sidebar {
      background: #e84118; color: #fff;
      font-size: 12px; padding: 2px 6px;
      border-radius: 12px;
    }

    .empty-cart {
      display: none;
      position: absolute;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      font-size: 16px; color: #666;
      text-align: center;
    }

    .cart-items {
      flex: 1; overflow-y: auto; padding: 8px 0; position: relative;
    }
    .cart-item {
      position: relative;
      display: flex; align-items: flex-start;
      padding: 8px 12px; border-bottom: 1px solid #eee;
      gap: 8px;
    }
    .cart-item img {
      width: 50px; height: 50px; object-fit: cover;
      border-radius: 4px; cursor: pointer;
    }
    .remove-item {
      position: absolute;
      bottom: 8px; right: 8px;
      background: transparent; border: none;
      font-size: 1.6em; font-weight: bold;
      cursor: pointer; color: #e84118;
    }
    .remove-item:hover {
      color: #c0392b;
    }

    .cart-item .item-info {
      flex: 1; display: flex; flex-direction: column;
      font-size: 14px; color: #333;
    }
    .cart-item .item-info .name {
      font-weight: 600; margin-bottom: 4px;
    }
    .cart-item .item-info .option {
      font-size: 13px; color: #666; margin-bottom: 4px;
    }
    .cart-item .item-info input.item-qty {
      display: block;
      width: 40px; margin-bottom: 4px;
      padding: 3px; border: 1px solid #ccc; border-radius: 4px;
      font-size: 13px; text-align: center;
    }

    .cart-item .item-controls {
      display: flex; flex-direction: column; align-items: flex-end;
      gap: 4px;
    }
    .cart-item .item-controls .price-unit,
    .cart-item .item-controls .price-total {
      font-size: 13px; color: #333;
    }

    .cart-footer {
      padding: 12px 16px; border-top: 1px solid #ddd;
      display: flex; flex-direction: column; gap: 8px;
    }
    .cart-footer .total {
      font-size: 16px; font-weight: 600; color: #333;
      text-align: right;
    }
    .cart-footer button {
      width: 100%; padding: 10px 0;
      border: none; border-radius: 5px;
      font-size: 14px; font-weight: 600;
      cursor: pointer;
    }
    #clear-cart {
      background: #e84118; color: #fff;
    }
    #clear-cart:hover {
      background: #c0392b;
    }
    #checkout {
      background: #22a6b3; color: #fff;
    }
    #checkout:hover {
      background: #1a797a;
    }

    .order-alert {
      position: absolute;
      top: 12px; left: 50%; transform: translateX(-50%);
      background: #e84118; color: #fff;
      padding: 8px 12px; border-radius: 4px;
      font-size: 14px; text-align: center;
      opacity: 0; visibility: hidden;
      transition: opacity 0.3s ease;
      z-index: 1020;
    }
    .order-alert.show {
      opacity: 1; visibility: visible;
    }

  
    .notification-container {
      position: fixed; top: 80px; right: 20px;
      z-index: 1001;
    }
    .notification {
      display: flex; align-items: center;
      background: #fff; color: #000;
      padding: 8px 12px; border-radius: 6px;
      margin-top: 8px; font-size: 13px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.2);
      opacity: 0; transform: translateX(20px);
      transition: opacity 0.5s ease, transform 0.5s ease;
      position: relative;
    }
    .notification.show {
      opacity: 1; transform: translateX(0);
    }
    .notification img {
      width: 32px; height: 32px; object-fit: cover;
      margin-right: 8px; border-radius: 4px;
    }
    .notification .info {
      display: flex; flex-direction: column;
    }
    .notification .close-btn {
      position: absolute; top: 4px; right: 4px;
      background: transparent; border: none;
      font-size: 1em; cursor: pointer; color: #888;
    }
    .notification .close-btn:hover {
      color: #555;
    }


    .modal-overlay {
      position: fixed; top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.5);
      opacity: 0; visibility: hidden;
      transition: opacity 0.3s ease;
      display: flex; justify-content: center; align-items: center;
      z-index: 1100;
    }
    .modal-overlay.show {
      opacity: 1; visibility: visible;
    }
    .modal-content {
      background: #fff; padding: 20px;
      border-radius: 8px; width: 300px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
    .modal-content h4 {
      margin-top: 0; margin-bottom: 12px; color: #333;
    }
    .modal-content .modal-body {
      font-size: 14px; color: #555; margin-bottom: 12px;
    }
    .modal-content .modal-body label {
      display: flex; align-items: center; gap: 8px;
      font-size: 13px; margin-bottom: 12px;
    }
    .modal-content .modal-footer {
      display: flex; justify-content: flex-end; gap: 8px;
    }
    .modal-content .modal-footer button {
      padding: 6px 12px; border: none; border-radius: 4px; font-size: 14px; cursor: pointer;
    }
    .modal-cancel { background: #ccc; color: #333; }
    .modal-confirm { background: #e84118; color: #fff; }
    .modal-confirm:hover { background: #c0392b; }


    .img-modal-overlay {
      position: fixed; top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.8);
      opacity: 0; visibility: hidden;
      transition: opacity 0.3s ease;
      display: flex; justify-content: center; align-items: center;
      z-index: 1200;
    }
    .img-modal-overlay.show {
      opacity: 1; visibility: visible;
    }
    .img-modal-content {
      position: relative;
      background: transparent;
      border-radius: 8px;
      padding: 0;
      width: 100vmin; height: 100vmin;
      max-width: 100vmin; max-height: 100vmin;
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
      overflow: hidden;
      display: flex; justify-content: center; align-items: center;
    }
    @media (min-width: 768px) {
      .img-modal-content {
        width: 60vmin; height: 60vmin;
      }
    }
    .img-modal-content img {
      max-width: 100%; max-height: 100%;
      width: auto; height: auto; border-radius: 4px;
      cursor: zoom-in; transition: transform 0.3s ease;
      object-fit: contain; display: block;
    }
    .img-modal-content img.zoomed {
      transform: scale(2); cursor: zoom-out;
    }
    .img-modal-close {
      position: absolute; top: 4px; right: 4px;
      background: rgba(255,255,255,0.9); border: none;
      font-size: 1.4em; cursor: pointer; border-radius: 50%;
      width: 34px; height: 34px; display: flex;
      align-items: center; justify-content: center;
      box-shadow: 0 2px 6px rgba(0,0,0,0.3);
      z-index: 1001;
    }
    .img-modal-close:hover {
      background: rgba(255,255,255,1);
    }


    #modalFinPedido {
      position: fixed; top: 0; left: 0;
      width: 100%; height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      display: none;
      justify-content: center; align-items: center;
      z-index: 2000; padding: 20px;
    }
    .checkout-modal {
      background-color: #fff;
      border-radius: 8px;
      width: 100%; max-width: 700px;
      max-height: 90vh;
      display: flex; flex-direction: column;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      overflow: hidden;
      position: relative;
      animation: slideInModal 0.3s ease;
    }
    @keyframes slideInModal {
      from { opacity: 0; transform: translateY(-20px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .checkout-header {
      background-color: #22a6b3;
      color: #fff;
      padding: 16px 24px;
      display: flex; justify-content: space-between; align-items: center;
      position: sticky; top: 0; z-index: 1;
    }
    .checkout-header h2 {
      font-size: 1.4rem; font-weight: 500;
    }
    .checkout-close {
      background: none; border: none;
      font-size: 1.5rem; color: #fff; cursor: pointer;
      transition: color 0.2s ease;
    }
    .checkout-close:hover {
      color: #e0e0e0;
    }

    .checkout-body {
      padding: 24px;
      overflow-y: auto;
      flex: 1;
    }
    .checkout-body form {
      display: flex; flex-direction: column; gap: 16px;
    }
    .form-row {
      display: flex; flex-direction: column; gap: 6px;
    }
    label {
      font-size: 0.95rem; color: #555;
    }
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
      padding: 10px 12px; font-size: 0.95rem;
      border: 1px solid #ccc; border-radius: 6px;
      background-color: #fafafa;
      transition: border-color 0.2s ease, background-color 0.2s ease;
    }
    input:focus,
    select:focus,
    textarea:focus {
      outline: none; border-color: #22a6b3; background-color: #fff;
    }
    textarea {
      resize: vertical; min-height: 80px;
    }
    .required::after {
      content: " *"; color: #d9534f;
    }
    .small-note {
      font-size: 0.85rem; color: #777; margin-top: 4px;
    }

    .input-error {
      border-color: #e84118 !important;
    }

    .total-section {
      border-top: 1px solid #e0e0e0; padding-top: 16px; margin-top: 16px;
    }
    .total-section p {
      font-size: 1rem; color: #333; margin-bottom: 6px;
    }
    .total-section .total-final {
      font-weight: 600; color: #22a6b3;
    }

    .checkout-footer {
      background-color: #fff;
      padding: 16px 24px;
      display: flex; justify-content: flex-end; gap: 12px;
      position: sticky; bottom: 0; z-index: 1;
      border-top: 1px solid #e0e0e0; flex-wrap: wrap;
    }
    .checkout-footer button {
      padding: 12px 24px; font-size: 1rem; border: none;
      border-radius: 50px; cursor: pointer; transition: background-color 0.2s ease;
      min-width: 140px; flex: 1 1 auto;
    }
    .btn-volver {
      background-color: #ccc; color: #333;
    }
    .btn-volver:hover {
      background-color: #b3b3b3;
    }
    .btn-confirmar {
      background-color: #22a6b3; color: #fff;
    }
    .btn-confirmar:hover {
      background-color: #1a797a;
    }

    .hidden {
      display: none;
    }

  
    .loading-overlay {
      position: absolute; top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(255,255,255,0.9);
      display: none; justify-content: center; align-items: center;
      z-index: 2;
    }
    .loading-overlay.show {
      display: flex;
    }
    .loader {
      border: 4px solid #f3f3f3;
      border-top: 4px solid #22a6b3;
      border-radius: 50%;
      width: 40px; height: 40px;
      animation: spin 1s linear infinite;
    }
    @keyframes spin {
      0%   { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    @media (max-width: 480px) {
      .checkout-body {
        padding: 16px;
      }
      .checkout-footer {
        flex-direction: column; gap: 10px;
      }
    }

 
    #orderSuccessModal {
      position: fixed; top: 0; left: 0;
      width: 100%; height: 100%;
      background-color: rgba(0,0,0,0.5);
      display: none; justify-content: center; align-items: center;
      z-index: 3000; padding: 20px;
    }
    .success-modal {
      background-color: #fff; border-radius: 8px;
      width: 100%; max-width: 500px; max-height: 90vh;
      display: flex; flex-direction: column;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      position: relative;
      animation: fadeInModal 0.3s ease;
    }
    @keyframes fadeInModal {
      from { opacity: 0; transform: translateY(-20px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .success-header {
      background-color: #22a6b3;
      color: #fff;
      padding: 16px 24px;
      display: flex; justify-content: space-between; align-items: center;
    }
    .success-header h3 {
      font-size: 1.3rem; margin: 0;
    }
    .success-close {
      background: none; border: none;
      font-size: 1.5rem; color: #fff; cursor: pointer;
    }
    .success-body {
      padding: 24px; overflow-y: auto; flex: 1;
    }
    .success-body h4 {
      margin-bottom: 12px; color: #333;
    }
    .success-body p {
      margin-bottom: 8px; font-size: 0.95rem; color: #555;
    }
    .success-body .order-summary {
      margin-top: 16px; border-top: 1px solid #e0e0e0;
      padding-top: 16px; overflow-x: auto;
    }
    .success-body .order-summary table {
      width: 100%; border-collapse: collapse; margin-bottom: 16px;
    }
    .success-body .order-summary th,
    .success-body .order-summary td {
      text-align: left; padding: 6px 8px;
      border-bottom: 1px solid #ddd; font-size: 0.9rem;
    }
    .success-body .order-summary img {
      width: 40px; height: 40px; object-fit: cover; border-radius: 4px;
      margin-right: 8px; vertical-align: middle;
    }
    .success-body .total-info {
      font-weight: 600; color: #22a6b3;
      text-align: right; font-size: 1rem; margin-bottom: 12px;
    }
    .action-button {
      display: inline-block; font-weight: 600; text-align: center;
      padding: 10px 16px; border-radius: 4px; cursor: pointer;
      font-size: 0.95rem; transition: background-color 0.2s ease,
         border-color 0.2s ease, color 0.2s ease;
      min-width: 140px; margin-right: 8px; text-decoration: none;
    }
    .action-button.primary {
      background-color: transparent; color: #22a6b3; border: 2px solid #22a6b3;
    }
    .action-button.primary:hover {
      background-color: #22a6b3; color: #fff;
    }
    .action-button.secondary {
      background-color: #22a6b3; color: #fff; border: 2px solid #22a6b3;
    }
    .action-button.secondary:hover {
      background-color: transparent; color: #22a6b3;
    }

    @media (max-width: 480px) {
      .success-body {
        padding: 16px;
      }
      .success-body .order-summary {
        margin-top: 12px; padding-top: 12px;
      }
      .success-body .order-summary table,
      .success-body .order-summary th,
      .success-body .order-summary td {
        font-size: 0.8rem;
      }
      .action-button {
        display: block; width: 100%; margin: 8px 0;
      }
    }

 
    @media (max-width: 600px) {
      .cards-header {
        flex-direction: column;
        align-items: center;
        padding-top: 12px;
      }
      .cards-header .label-left {
        position: static;
        width: 98%;
        text-align: center;
        margin-bottom: 8px;
      }
      .cards-header .info-icon {
        position: static;
        margin-top: 8px;
      }
    }

.card {
  position: relative; 
}
.card img {
  transition: opacity 0.3s ease;
  display: block;
  width: 100%;
}
.carousel-prev,
.carousel-next {
  position: absolute;
  top: calc(45% - 16px);
  /*transform: translateY(-50%);*/
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.24);
  color: #fff;
  font-size: 1.2em;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }


@media (max-width: 600px) {
  .carousel-prev,
  .carousel-next {
  position: absolute;
  top: calc(35% - 16px);
  /*transform: translateY(-50%);*/
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 1.2em;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s ease;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;   
  }
  
  .card.dragging .carousel-prev,
  .card.dragging .carousel-next {
    display: flex;
  }
}


.card:hover .carousel-prev,
.card:hover .carousel-next,
.card.dragging .carousel-prev,
.card.dragging .carousel-next {
  opacity: 1;
}

.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 10;
}


.image-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  left: 8px;        
  top: 45%;        
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.20);
  color: #fff;
  font-size: 1.2em;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 5;
}
.carousel-next { right: 8px; left: auto; }


@media (max-width: 600px) {
  .carousel-prev,
  .carousel-next {
    display: none;
  }
  .card.dragging .carousel-prev,
  .card.dragging .carousel-next {
    display: flex;
  }
}

.carousel-dots {
  position: absolute;
  bottom: 8px;       
  left: 50%;
  transform: translateX(-50%);
  display: flex !important;
  gap: 4px;
  z-index: 5;
}
.carousel-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  cursor: pointer;
  transition: background 0.2s ease;
}
.carousel-dots span.active {
  background: rgba(139, 130, 130);
}

.img-modal-content .carousel-prev,
.img-modal-content .carousel-next {
  display: flex !important;
  opacity: 1 !important;
}


@media (max-width: 600px) {
  .card .carousel-prev,
  .card .carousel-next {
    display: none !important;
  }
}


.img-modal-overlay {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex; align-items: center; justify-content: center;
  z-index: 1200;
  transition: opacity 0.3s ease;
}
.img-modal-overlay.show {
  opacity: 1; visibility: visible;
}
.img-modal-overlay:not(.show) {
  opacity: 0; visibility: hidden;
}


.img-modal-content {
  position: relative;
  width: 90vmin; height: 90vmin;
  max-width: 90vmin; max-height: 90vmin;
  background: transparent;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}


.img-modal-content img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  transition: opacity 0.1s ease;
}


.img-modal-close {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px;
  border: none; border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff; font-size: 1.2rem;
  cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
}
.img-modal-close:hover {
  background: rgba(0,0,0,0.7);
}


.img-modal-content .carousel-prev,
.img-modal-content .carousel-next {
  display: flex !important; opacity: 1 !important;
  position: absolute;
  width: 32px; height: 32px;
  border-radius: 50%; background: rgba(0,0,0,0.24);
  color: #fff; font-size: 1.2em; align-items: center; justify-content: center;
  z-index: 5;
}
.img-modal-content .carousel-prev { left: 8px; }
.img-modal-content .carousel-next { right: 8px; }


.img-modal-content .carousel-dots {
  display: flex !important;
  position: absolute; bottom: 8px; left: 50%;
  transform: translateX(-50%); gap: 4px;
  z-index: 5;
}
.img-modal-content .carousel-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.7); cursor: pointer;
  transition: background 0.2s;
}
.img-modal-content .carousel-dots span.active {
  background: rgba(255,255,255,1);
}

.guide-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 2001;
}
.guide-modal-overlay:not(.hidden) {
  opacity: 1; visibility: visible;
}
.guide-modal-content {
  position: relative;
  width: 77vmin; height: 77vmin;
  overflow: hidden;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
}
.guide-modal-content img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
}
.guide-close {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px;
  border: none; border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff; font-size: 1.2rem;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}
.guide-close:hover {
  background: rgba(0,0,0,0.7);
}

.site-footer {
  background: #fff;
  color: #555;
  padding: 24px 40px 11px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: space-between;
}

.footer-section {
  flex: 1 1 220px;
  min-width: 160px;
}

.footer-section h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #333;
  text-transform: uppercase;
}

.footer-section p,
.footer-section ul {
  margin: 0;
  line-height: 1.5;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 4px;
}

.footer-section ul li a {
  color: #22a6b3;
  text-decoration: none;
}

.footer-section ul li a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 16px;
  font-size: 0.8rem;
  color: #999;
  border-top: 1px solid #eee;
  padding-top: 8px;
}

@media (max-width: 900px) {
  .footer-content {
    gap: 16px;
  }
  .footer-section {
    flex: 1 1 45%;
  }
}


@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }
  .footer-section {
    width: 100%;
    text-align: center;
  }
}

#page-loader {
  position: fixed;
  top: 60px;                        
  left: 0;
  width: 100%;
  height: calc(100% - 60px);        
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1001;                    
  transition: opacity 0.5s ease;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #f3f3f3;
  border-top-color: #22a6b3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-text {
  margin-top: 12px;
  font-size: 1rem;
  color: #555;
}


@keyframes spin {
  to { transform: rotate(360deg); }
}

.variations-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
  justify-content: center;
}
.variation-btn {
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  color: black;
}
.variation-btn:hover {
  background: #e0e0e0;
}
.variation-btn.active {
  background: #22a6b3;
  border-color: #22a6b3;
  color: #fff;
}
@media (max-width: 425px) {
  .variation-btn {
    padding: 6px 12px;
  }
}

.qty-container {
  display: none;
  align-items: center;
  gap: 4px;
  margin: 8px 0;
}

.qty-container .qty {
  width: 50px;            
  text-align: center;
  font-size: 1rem;
  padding: 4px;
  border: 1px solid #ddd;
  border-radius: 4px;
}


.qty-btn {
  background: #22a6b3;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  width: 30px;
  height: 24px;
  border-radius: 5px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.qty-btn:hover {
  background: #1a797a;
}
@media (max-width: 425px) {
  .qty-btn {
    width: 37px;
    height: 25px;
  }
}

.card.on-sale .price {
  color: #e84118; 
}

.card {
  position: relative;
}
.card .badge {
  z-index: 10;    
}


.card .carousel-prev,
.card .carousel-next,
.card .carousel-dots {
  z-index: 5;
}

html, body {
  touch-action: manipulation;
}

.page-models {
  position: absolute;
  left: 196px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  user-select: none;
}

@media (max-width: 672px) {
  .page-models {
    display: none;
  }
}

.page-models i {
  margin-left: 6px;
  font-size: 0.8em;
  transition: transform 0.3s ease;
}
.page-models.open i {
  transform: rotate(180deg);
}
.page-models .page-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 200px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  opacity: 0; visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1004;
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
}
.page-models.open .page-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-models .page-dropdown li a {
  display: block;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}
.page-models .page-dropdown li a:hover {
  background: #f0f4f8;
}

.page-models .page-dropdown li.active > a {
  color: #22a6b3;
  font-weight: 600;
}
.card {
  position: relative;
}

.badge.sinstock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 2;
}

/* Igual que tu .modal-overlay existente */
#modalSenia { display: none; }
#modalSenia.show { 
  display: flex;
  z-index: 2000; 
}
#modalSenia .modal-content { max-width: 400px; border-radius: 8px; }
#modalSenia .modal-body p { margin-bottom: 12px; }
#btnContinuarPedido {
  background: #22a6b3;
  color: #fff;
  padding: 8px 16px;
  border-radius: 5px;
}
/* (Reusa .modal-overlay y .modal-content de tu modal de carrito, por ejemplo:) */
.modal-overlay.show { opacity:1; visibility:visible; }
#modalSenia .modal-content { max-width:400px; border-radius:8px; }
/* Ajusta padding / tipografía según tu estilo */
/* Modal de seña */
#modalSenia.modal-overlay {
  display: none;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease;
}
#modalSenia.modal-overlay.show {
  display: flex;
  opacity: 1; visibility: visible;
}
#modalSenia .modal-content {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-align: center;
}
#modalSenia .modal-content h4 {
  margin-bottom: 16px;
  font-size: 1.25rem;
}
#modalSenia .modal-body p {
  margin-bottom: 12px;
  font-size: 0.95rem;
}
#modalSenia .modal-body .small-note {
  font-size: 0.85rem;
  color: #666;
}
#modalSenia .modal-footer {
  margin-top: 16px;
}
#modalSenia .modal-footer .modal-confirm {
  background: #22a6b3;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
#modalSenia .modal-footer .modal-confirm:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.small-note {
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.2;
}

/* Botón deshabilitado */
#checkout:disabled {
  background: #ccc !important;
  cursor: not-allowed !important;
  color: #666 !important;
}


/* ---------------------Marcador flotante -------------------------------------*/
/* ——— Marcador flotante ——— */
#filter-toggle {
  position: fixed;
  top: 50%;
  right: 19px;
  transform: translate(50%, -50%);
  background: #22a6b3;
  color: #fff;
  padding: 12px;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  z-index: 1004;
  box-shadow: -2px 2px 6px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
}
#filter-toggle:hover {
  background: #1a797a;
}


/* ——— Sidebar de filtros ——— */
#filter-sidebar {
  position: fixed;
  top: 60px; /* justo debajo del navbar */
  right: -280px;
  width: 280px;
  height: calc(100vh - 60px);
  background: #fff;
  box-shadow: -2px 0 8px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  z-index: 1003;
  display: flex;
  flex-direction: column;
}
#filter-sidebar.open {
  right: 0;
}

/* Cuando está abierto, desplaza también el toggle */
/* #filter-sidebar.open ~ #filter-toggle,
   #filter-sidebar.open + #filter-toggle {
  right: 280px;
} */

/* ——— Encabezado del sidebar ——— */
#filter-sidebar .filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eee;
}
#filter-sidebar .filters-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
}
#filter-sidebar .filters-header button {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #555;
}

/* ——— Cuerpo del sidebar ——— */
#filter-sidebar .filters-body {
  padding: 16px;
  overflow-y: auto;
}
.filter-block {
  margin-bottom: 24px;
}
.filter-block h4 {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #555;
}
.filter-block select {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}

/* ——— Responsive: ocupa todo en móvil ——— */
@media (max-width: 480px) {
  #filter-sidebar {
    width: 60%;
    right: -100%;
  }
  #filter-sidebar.open {
    right: 0;
  }
  /* #filter-sidebar.open ~ #filter-toggle,
   #filter-sidebar.open + #filter-toggle {
  right: 280px;
} */
}

#filter-sidebar {
  display: flex;
  flex-direction: column;
}

/* Cuerpo de filtros */
.filters-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* Pie con los botones */
.filters-footer {
  padding: 12px 16px;
  border-top: 1px solid #eee;
  background: #fff;
  display: flex;
  flex-direction: column;  /* apila verticalmente */
  gap: 12px;               /* separa los botones */
}

/* Botones ocupando el 100% */
#filter-reset,
#filter-apply {
  width: 100%;
  padding: 12px 0;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

/* Estilos individuales */
#filter-reset {
  background: #fff;
  color: #333;
  border: 1px solid #ccc;
}
#filter-reset:hover {
  background: #f4f4f4;
}

#filter-apply {
  background: #22a6b3;
  color: #fff;
}
#filter-apply:hover {
  background: #1a797a;
}

/* Cursos sobre selects y botones */
#sizeFilter,
#genderFilter {
  width: 100%;            /* para que coincidan con los botones */
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: #000;
}
#sizeFilter:hover,
#genderFilter:hover {
  cursor: pointer;
}


/* ===== Desktop (>= 990px) ===== */
@media (min-width: 990px) {
  /* Sidebar de filtros fijo y siempre abierto */
  #filter-sidebar {
    position: fixed;
    top: 60px;                 /* justo debajo del navbar */
    left: 0;
    width: 20%;                /* ocupa el 15% del ancho */
    height: calc(100vh - 60px);
    transform: none !important;/* ignora cualquier translate-left */
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    transition: none;          /* ya no necesita animación */
    z-index: 998;             /* debajo del navbar, sobre el contenido */
  }

  /* Oculta el botón de cerrar y el toggle flotante */
  #filter-close,
  #filter-toggle {
    display: none;
  }

  /* El overlay ya no debe aparecer para el filtro */
  /* (seguirá usándose para nav y carrito) */
  #filter-sidebar.open + .overlay { /* si tu overlay está justo después */
    display: none !important;
  }

  /* Productos se mueven para dejar espacio a la izquierda */
  #product-list {
    margin-left: 21%;
    margin-right: 0;
    width: 78%;  /* opcional, no estrictamente necesario si es block */
  }

  .site-footer{
    margin-left: 20%;
  }

}

/* ===== Estilos para el buscador ===== */
.filter-block .search-wrapper {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.filter-block .search-wrapper input {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
}
.filter-block .search-wrapper button {
  padding: 6px 10px;
  border: none;
  background: #22a6b3;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.filter-block .search-wrapper button:hover {
  background: #1a797a;
}
/* ===== Ajustes para el buscador dentro del sidebar ===== */
.search-wrapper {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  width: 100%;
}
.search-wrapper input {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  min-width: 0; /* importante para que no desborde en flex */
}
.search-wrapper button {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: none;
  background: #22a6b3;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.search-wrapper button:hover {
  background: #1a797a;
}

/* Asegúrate de que .filters-body no tenga padding que provoque scroll horizontal */
.filters-body {
  padding: 16px;
  overflow-y: auto;
  box-sizing: border-box;
}
#noResults {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  color: #666;
  font-size: 1.1rem;
  text-align: center;
}
@media (min-width: 990px) {
    #noResults {
        padding: 25% 40px;
    }
}

@media (max-width: 990px) {
    #noResults {
        padding: 30% 40px;
    }
}

@media (max-width: 426px) {
    #noResults {
        padding: 70% 40px;
    }
}

#noResults i {
  margin-bottom: 12px;
  color: #ccc;
}
#noResults.hidden {
  display: none;
}


/* Opcional: añade margen inferior al último grupo para separar del footer */
.cards-container:last-of-type {
  margin-bottom: 100px;    /* ajusta la distancia al footer */
}
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.checkbox-group label {
  font-size: 0.95rem;
  color: #333;
  cursor: pointer;
}
.checkbox-group input[type="checkbox"] {
  margin-right: 8px;
  cursor: pointer;
}
/* Contenedor de opciones en 2 columnas en desktop, 1 en móvil */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px 16px;
  margin-top: 8px;
}

/* Cada label como flex para centrar checkbox y texto */
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #333;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background .2s;
  cursor: pointer;
}
.checkbox-group label:hover {
  background: #f0f4f8;
}

/* Aumentar tamaño del checkbox mismo */
.checkbox-group input[type="checkbox"] {
  width: 1.2em;
  height: 1.2em;
  margin: 0;
  cursor: pointer;
}

/* Responsive: en móviles 1 columna */
@media (max-width: 600px) {
  .checkbox-group {
    grid-template-columns: 1fr;
  }
}
/* === Slider de precio con colores dentro / fuera de rango === */
.price-slider {
  position: relative;
  height: 32px;
  margin: 8px 0;

  /* Colores configurables */
  --bar-outside: #e5e7eb;   /* fuera del rango */
  --bar-inside:  #22a6b3;   /* dentro del rango */
  --thumb-color: #22a6b3;
}

/* Pista completa (fuera de rango) */
.price-slider::before {
  content: '';
  position: absolute;
  top: 50%; transform: translateY(-50%);
  height: 4px; width: 100%;
  background: var(--bar-outside);
  border-radius: 2px;
}

/* Tramo activo (dentro del rango) */
.price-slider::after {
  content: '';
  position: absolute;
  top: 50%; transform: translateY(-50%);
  height: 4px;
  /* Estos bordes los ajusta el JS con --p1 y --p2 */
  left: var(--p1, 0%);
  right: calc(100% - var(--p2, 100%));
  background: var(--bar-inside);
  border-radius: 2px;
}

/* Ocultamos el fondo nativo y superponemos los dos inputs */
.price-slider input[type=range] {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  pointer-events: none;       /* no captura el track, solo el thumb */
  -webkit-appearance: none;
  background: none;
  margin: 0; padding: 0;
  height: 32px;
}

/* Thumb: WebKit */
.price-slider input[type=range]::-webkit-slider-thumb {
  pointer-events: all;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--thumb-color);
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  -webkit-appearance: none;
  cursor: pointer;
}

/* Thumb: Firefox */
.price-slider input[type=range]::-moz-range-thumb {
  pointer-events: all;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--thumb-color);
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  cursor: pointer;
}

/* Accesibilidad visual al enfocar/hover */
.price-slider input[type=range]:focus::-webkit-slider-thumb,
.price-slider input[type=range]::-webkit-slider-thumb:hover,
.price-slider input[type=range]:focus::-moz-range-thumb,
.price-slider input[type=range]::-moz-range-thumb:hover {
  box-shadow: 0 0 0 4px rgba(34,166,179,.2);
}

.price-values {
  font-size: 0.9rem;
  margin-top: 4px;
}
/* Asegura stacking y que la pista no bloquee el thumb */
.price-slider {
  position: relative;
}

/* La pista (fuera y dentro del rango) NO debe capturar eventos */
.price-slider::before,
.price-slider::after {
  pointer-events: none;
  z-index: 1;           /* detrás de los thumbs */
}

/* Los inputs por encima de la pista, pero sin capturar el track */
.price-slider input[type=range] {
  position: absolute;
  z-index: 2;
  pointer-events: none; /* sólo el thumb recibe eventos */
}

/* Los thumbs sí capturan eventos en TODO su círculo */
.price-slider input[type=range]::-webkit-slider-thumb,
.price-slider input[type=range]::-moz-range-thumb {
  pointer-events: all;
  position: relative;
  z-index: 3;
  /* (tu estilo actual del thumb se mantiene) */
}



/* === Overlay fixes (consistent hide on close + pointer events) === */
body.no-scroll { overflow: hidden; }
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, visibility 0s linear .25s;
  z-index: 999;
}
.overlay.active {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .25s ease;
}
/* Ensure sidebars are above overlay */
.nav-menu.open, .cart-sidebar.open, #filter-sidebar.open { z-index: 1000; }
