@import url("design-tokens.css");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    }
    
    body {
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.6;
    background: var(--gradient-page);
  }
    
    /* Header Styles */
    .header {
    background: var(--gradient-header-main);
    padding: 15px 0;
    border-bottom: 1px solid var(--color-header-border);
    }
    
    .header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--layout-header-inline);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-width: 0;
    }
    
    .logo {
    width: min(200px, 42vw);
    max-width: 100%;
    flex-shrink: 0;
    }

    .logo img {
    max-width: 100%;
    height: auto;
    display: block;
    }
    
    /* Tu barra de búsqueda original */
    .search-bar {
      flex: 1;
      min-width: 0;
      max-width: 600px;
      display: flex;
      position: relative; /* necesario para posicionar el dropdown */
    }
    
    /* === Resultados desplegables === */
    .search-results {
      position: absolute;
      top: 100%; /* justo debajo del input */
      left: 0;
      width: 100%;
      background: var(--color-surface);
      border: 1px solid var(--color-border);
      border-radius: 10px;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
      max-height: 350px;
      overflow-y: auto;
      z-index: 9999;
      margin-top: 5px;
      display: none;
      animation: fadeIn 0.2s ease-in-out;
    }
    
    /* Animación suave al aparecer */
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(-5px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    /* Cada ítem de resultado */
    .result-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 14px;
      cursor: pointer;
      transition: background 0.2s ease;
    }
    
    .result-item:hover {
      background: var(--color-search-row-hover);
    }
    
    /* Imagen del producto */
    .result-item img {
      width: 55px;
      height: 55px;
      object-fit: cover;
      border-radius: 8px;
      border: 1px solid var(--color-border);
      background-color: #fafafa;
    }
    
    /* Información del producto */
    .result-info {
      display: flex;
      flex-direction: column;
      justify-content: center;
      line-height: 1.3;
    }
    
    .result-info strong {
      font-size: 15px;
      color: var(--color-text);
      font-weight: 600;
    }
    
    .result-info span {
      font-size: 13px;
      color: var(--color-text-muted);
    }
    
    /* Scrollbar más discreta */
    .search-results::-webkit-scrollbar {
      width: 6px;
    }
    
    .search-results::-webkit-scrollbar-thumb {
      background-color: #ccc;
      border-radius: 10px;
    }
    
    .search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--color-border);
    font-size: 14px;
    }
    
    .search-bar button {
    background: var(--gradient-search-tech);
    color: var(--color-header-on-dark);
    border: none;
    padding: 10px 22px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0 999px 999px 0;
    box-shadow: var(--shadow-search-glow);
    transition: filter 0.2s ease, box-shadow 0.2s ease;
    }
    .search-bar button:hover {
    filter: brightness(1.08);
    box-shadow: var(--shadow-search-glow-hover);
    }
    
    .header-right {
    display: flex;
    align-items: center;
    gap: 30px;
    }
    
    .contact-info {
    text-align: right;
    }
    
    .phone {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-text);
    text-decoration: none;
    }
    
    .email {
    font-size: 12px;
    color: var(--color-interactive);
    text-decoration: none;
    }
    
    .account-link {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--color-interactive);
    }
    
    .cart-link {
    text-decoration: none;
    color: var(--color-text);
    font-size: 18px;
    }
    
    /* Navigation Bar */
    .navbar {
        background: var(--gradient-nav);
        display: flex;
        align-items: center;
        padding: 0 var(--layout-navbar-inline);
        position: relative;
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 0.25rem;
        column-gap: clamp(0.2rem, 1.2vw, 1rem);
    }
    
    .nav-item {
        position: relative;
        color: white;
        padding: 15px 20px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        text-transform: uppercase;
        border: none;
        background: none;
        margin-left: 0;
    }
    
    .navbar.fixed {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1000;
      box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    
    
    .nav-item:hover {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 5px;
    }
    
    .nav-item.promotions {
        background: var(--color-promo);
        border-radius: var(--radius-sm);
    }
    
    .nav-item.promotions:hover {
        background: var(--color-promo-hover);
    }
    
    .member-price {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 8px;
        color: white;
        font-size: 12px;
    }
    
    .member-price .star {
        color: var(--color-member-star);
    }
    
    .inactive-badge {
        background: var(--color-danger);
        padding: 2px 8px;
        border-radius: 3px;
        font-size: 11px;
    }
    /* Improved dropdown menu styles with better organization and collapsible categories */
    .dropdown {
      position: static;
    }
    .dropdown-content {
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%) translateY(10px); /* empieza un poco abajo */
      width: min(1200px, calc(100vw - 24px));
      max-width: 100%;
      max-height: 600px;
      overflow-y: auto;
      background: white;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
      z-index: 1000;
      padding: 30px;
      border-radius: 0 0 8px 8px;
    
      /* 🔥 IMPORTANTE */
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    
      transition: all 0.25s ease;
    }
    
    /* estado visible */
    .dropdown:hover .dropdown-content {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateX(-50%) translateY(0);
    }
    
    .dropdown-content h3 {
      color: var(--color-interactive-hover);
      font-size: 20px;
      margin-bottom: 25px;
      padding-bottom: 15px;
      border-bottom: 3px solid var(--color-interactive-hover);
    }
    
    /* Category list styles */
    .category-list {
      list-style: none;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
    }
    
    .category-item {
      background: var(--color-category-surface);
      border-radius: 8px;
      overflow: visible;
      transition: all 0.3s ease;
      border: 1px solid var(--color-category-border);
      position: relative;
      z-index: 1; /* Added z-index for proper layering */
    }
    
    /* Increase z-index when category is active to appear above others */
    .category-item.active {
      z-index: 200;
    }
    
    .category-item:hover {
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      transform: translateY(-2px);
    }
    
    .category-item > span {
      display: block;
      padding: 15px 20px;
      font-weight: 600;
      font-size: 14px;
      color: var(--color-interactive-hover);
      background: var(--gradient-category-tab);
      cursor: pointer;
      position: relative;
      transition: all 0.3s ease;
      border-radius: 8px; /* Added border radius to match container */
    }
    
    .category-item > span::after {
      content: "▼";
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 10px;
      transition: transform 0.3s ease;
      color: var(--color-interactive-hover); /* Added color for better visibility */
    }
    
    /* Change background when active */
    .category-item.active > span {
      background: var(--gradient-interactive-deep);
      color: white;
      border-radius: 8px 8px 0 0;
    }
    
    .category-item.active > span::after {
      transform: translateY(-50%) rotate(180deg);
      color: white; /* White arrow when active */
    }
    
    .category-item > span:hover {
      background: linear-gradient(135deg, #e8eef3 0%, #d8e3ed 100%);
      padding-left: 25px;
    }
    
    /* Override hover when active */
    .category-item.active > span:hover {
      background: var(--gradient-interactive-deep);
      padding-left: 20px;
    }
    
    /* Subcategory list styles */
    .subcategory-list {
      list-style: none;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
      background: white;
      position: absolute;
      left: 0;
      top: 100%;
      width: 100%;
      z-index: 250; /* Increased z-index to appear above everything */
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); /* Enhanced shadow for better depth */
      border-radius: 0 0 8px 8px;
      opacity: 0;
      pointer-events: none;
      border: 2px solid var(--color-interactive-hover); /* Better border styling */
      border-top: none;
    }
    
    .category-item.active .subcategory-list {
      max-height: 600px;
      padding: 10px 0; /* Added padding for better spacing */
      opacity: 1;
      pointer-events: auto;
      margin-top: 0;
    }
    
    /* ===== Featured Brands FIX ===== */
    .featured-brands {
        margin-bottom: clamp(1.25rem, 4vw, 2.5rem);
        margin-top: clamp(1rem, 5vh, 2.5rem);
    }
    
    .brands-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: var(--featured-brands-grid-gap);
        background: white;
        padding: var(--featured-brands-grid-pad);
        border: 1px solid var(--color-category-border);
        align-items: center;
    }
    
    .featured-brand-logo {
        display: flex;
        justify-content: center;
        align-items: center;
        height: clamp(56px, 14vw, 88px);
    }
    
    .featured-brand-logo img {
        max-width: 100%;
        max-height: var(--featured-brands-logo-max-h);
        object-fit: contain;
    }
    
    @media (max-width: 1024px) {
        .brands-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    
    @media (max-width: 768px) {
        .brands-grid {
            grid-template-columns: 1fr;
        }
    }
    
    
    .subcategory-list li {
      padding: 12px 25px;
      font-size: 14px;
      color: #555;
      cursor: pointer;
      transition: all 0.2s ease;
      border-left: 3px solid transparent;
      background: white;
      position: relative;
    }
    
    /* Added icon before each subcategory item */
    .subcategory-list li::before {
      content: "›";
      position: absolute;
      left: 12px;
      color: var(--color-interactive-hover);
      font-size: 18px;
      font-weight: bold;
      opacity: 0;
      transition: opacity 0.2s ease;
    }
    
    .subcategory-list li:hover::before {
      opacity: 1;
    }
    
    .subcategory-list li:hover {
      background: linear-gradient(90deg, #f0f7ff 0%, #ffffff 100%); /* Enhanced hover effect with gradient */
      color: var(--color-interactive-hover);
      padding-left: 30px;
      border-left-color: var(--color-interactive-hover);
      font-weight: 500;
    }
    
    .subcategory-list li:first-child {
      padding-top: 15px;
    }
    
    .subcategory-list li:last-child {
      padding-bottom: 15px;
      border-radius: 0 0 6px 6px;
    }
    
    /* Brands dropdown */
    .brand-link
    .brand-link {
      font-size: 12.5px;
      color: #444;
      cursor: pointer; /* 🔥 CLAVE */
      display: inline-block;
      padding: 3px 0;
      transition: all 0.2s ease;
    }
    
    /* HOVER */
    .brand-link:hover {
      color: var(--color-interactive-hover);
      padding-left: 6px;
    }
    
    /* EFECTO MÁS PRO */
    .brand-link::after {
      content: "";
      display: block;
      width: 0%;
      height: 1px;
      background: var(--color-interactive-hover);
      transition: width 0.2s ease;
    }
    
    .brand-link:hover::after {
      width: 100%;
    } 
    
    .brands-dropdown
    .brands-dropdown {
      width: min(950px, calc(100vw - 24px));
      max-width: 100%;
      min-width: 0;
      box-sizing: border-box;
      overflow-x: auto;
      padding: 15px 20px;
    }

    .brands-dropdown .dropdown-grid {
      grid-template-columns: repeat(auto-fill, minmax(min(9rem, 100%), 1fr));
    }
    
    /* LOGOS más compactos */
    .brand-logos {
      display: flex;
      gap: 10px;
      margin-bottom: 15px;
      padding-bottom: 10px;
      border-bottom: 1px solid #eee;
    }
    
    .brand-logo {
      height: 40px;
      padding: 5px 10px;
      border-radius: 6px;
    }
    
    /* GRID más compacto */
    .dropdown-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 15px;
    }
    
    /* LETRAS */
    .letter-title {
      font-size: 12px;
      margin-bottom: 5px;
      padding-bottom: 3px;
    }
    
    /* LISTA */
    .dropdown-column li {
      margin: 2px 0;
    }
    
    /* TEXTO */
    .brand-link {
      font-size: 12.5px;
      line-height: 1.2;
    } 
    
    
    
            /* Breadcrumb */
            .breadcrumb {
                max-width: 1400px;
                margin: 20px auto;
                padding: 0 var(--layout-header-inline);
                font-size: 14px;
                color: var(--color-text-muted);
            }
    
            .breadcrumb a {
                color: var(--color-interactive);
                text-decoration: none;
            }
    
            .breadcrumb a:hover {
                text-decoration: underline;
            }
    
            /* Main Content */
            .main-container {
                max-width: 1400px;
                margin: 0 auto;
                padding: 0 var(--layout-header-inline) clamp(1.5rem, 4vw, 2.5rem);
                display: flex;
                gap: var(--layout-section-gap);
            }
    
            .content-area {
                flex: 1;
            }
    
            .sidebar {
                width: 300px;
                flex-shrink: 0;
            }
    
            /* Category Section */
            .category-header {
                margin-bottom: 30px;
            }
    
            .category-header h1 {
                font-size: 32px;
                color: var(--color-text);
                padding-bottom: 10px;
                border-bottom: 3px solid var(--color-interactive-hover);
                display: inline-block;
            }
    
            .category-grid {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 20px;
                margin-bottom: 50px;
            }
    
            .category-card {
                background: white;
                border: 1px solid var(--color-category-border);
                padding: 30px;
                text-align: center;
                text-decoration: none;
                color: var(--color-text);
                transition: all 0.3s;
            }
    
            .category-card:hover {
                box-shadow: 0 4px 12px rgba(0,0,0,0.1);
                transform: translateY(-2px);
            }
    
            .category-card img {
                width: 100%;
                max-width: 200px;
                height: 200px;
                object-fit: contain;
                margin-bottom: 20px;
            }
    
            .category-card h3 {
                font-size: 18px;
                color: var(--color-interactive);
                font-weight: 500;
            }
    
            /* Featured Brands */
            .featured-brands {
                margin-bottom: clamp(1.25rem, 4vw, 2.5rem);
            }
    
            .featured-brands h2 {
                font-size: clamp(0.95rem, 1.35vw, 1.15rem);
                font-weight: 600;
                color: var(--color-text-muted);
                padding-bottom: 0.35rem;
                border-bottom: 1px solid rgba(0, 86, 179, 0.28);
                display: inline-block;
                margin-bottom: clamp(0.75rem, 2vw, 1rem);
            }
    
            .brands-grid {
                display: grid;
                grid-template-columns: repeat(4, 1fr);
                gap: var(--featured-brands-grid-gap);
                align-items: center;
                background: white;
                padding: var(--featured-brands-grid-pad);
                border: 1px solid var(--color-category-border);
            }
    
            .brand-logo {
                text-align: center;
            }
    
            .brand-logo img {
                max-width: 100%;
                height: auto;
                max-height: var(--featured-brands-logo-max-h);
                object-fit: contain;
            }
    
            /* Sidebar - Featured Products */
            .featured-products {
                background: white;
                border: 1px solid var(--color-category-border);
                padding: 20px;
            }
    
            .featured-products h2 {
                font-size: 24px;
                color: var(--color-text);
                padding-bottom: 10px;
                border-bottom: 3px solid var(--color-interactive-hover);
                margin-bottom: 20px;
            }
    
            .product-item {
                display: flex;
                gap: 15px;
                padding: 15px 0;
                border-bottom: 1px solid var(--color-category-border);
                text-decoration: none;
                color: var(--color-text);
            }
    
            .product-item:last-child {
                border-bottom: none;
            }
    
            .product-item:hover {
                background: #f9f9f9;
            }
    
            .product-item img {
                width: 80px;
                height: 80px;
                object-fit: contain;
            }
    
            .product-info h3 {
                font-size: 14px;
                color: var(--color-interactive);
                margin-bottom: 5px;
                font-weight: 500;
            }
    
            .product-info p {
                font-size: 12px;
                color: var(--color-text-muted);
                margin-bottom: 8px;
            }
    
            .product-price {
                display: flex;
                gap: 10px;
                align-items: center;
            }
    
            .product-price .original {
                text-decoration: line-through;
                color: #999;
                font-size: 13px;
            }
    
            .product-price .sale {
                color: var(--color-danger);
                font-weight: bold;
                font-size: 15px;
            }
    
            /* Product Experts Section */
            .experts-section {
                background: var(--gradient-interactive-deep);
                padding: var(--layout-section-padding);
                margin-top: 50px;
            }
    
            .experts-container {
                max-width: 1400px;
                margin: 0 auto;
                display: flex;
                align-items: center;
                gap: var(--layout-section-gap);
            }
    
            .expert-image {
                flex-shrink: 0;
            }
    
            .expert-image img {
                width: 150px;
                height: 150px;
                border-radius: 50%;
                border: 5px solid white;
            }
    
            .expert-content {
                flex: 1;
                color: white;
            }
    
            .expert-content h2 {
                font-size: 36px;
                margin-bottom: 15px;
            }
    
            .expert-content p {
                font-size: 20px;
                margin-bottom: 25px;
            }
    
            .expert-buttons {
                display: flex;
                gap: 15px;
            }
    
            .expert-btn {
                padding: 12px 30px;
                border: 2px solid white;
                background: transparent;
                color: white;
                font-size: 14px;
                font-weight: bold;
                cursor: pointer;
                transition: all 0.3s;
                text-decoration: none;
                display: inline-block;
            }
    
            .expert-btn:hover {
                background: white;
                color: var(--color-interactive-hover);
            }
    
            /* Contact Section */
            .contact-section {
                background: #f5f5f5;
                padding: var(--layout-section-padding);
                align-items: center;
            }
    
            .contact-container {
        max-width: 1400px;
        margin: 0 auto;
        display: flex;            /* 🔥 no grid */
        justify-content: center;  /* centro horizontal */
        align-items: center;      /* centro vertical */
        text-align: center;       /* centra texto */
    }
    
    
            .contact-left h2 {
                font-size: 28px;
                color: var(--color-text);
                margin-bottom: 30px;
            }
    
            .contact-methods {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: var(--layout-contact-row-gap);
        margin-bottom: 30px;
        flex-wrap: wrap; /* evita que se apriete */
    }
    
    .contact-method {
        min-width: 260px;
    }.contact-left h2 {
        font-size: 28px;
        color: var(--color-text);
        margin-bottom: 25px;
    }
    
    .contact-method h3 {
        font-size: 20px;
        color: var(--color-interactive);
        margin-bottom: 6px;
    }
    
    .contact-method p {
        color: var(--color-text-muted);
        font-size: 14px;
    }
    
            .real-people {
                display: flex;
                align-items: center;
                gap: 20px;
            }
    
            .real-people img {
                width: 80px;
                height: 80px;
                border-radius: 50%;
            }
    
            .real-people p {
                font-size: 18px;
                color: var(--color-text);
            }
    
            .contact-right {
                text-align: center;
            }
    
            .contact-right h2 {
                font-size: 28px;
                color: var(--color-text);
                margin-bottom: 15px;
            }
    
            .contact-right p {
                color: var(--color-text-muted);
                margin-bottom: 20px;
            }
    
            .social-icons {
                display: flex;
                justify-content: center;
                gap: 20px;
            }
    
            .social-icons a {
                color: var(--color-interactive);
                font-size: 32px;
                text-decoration: none;
            }
    
            /* Footer */
            .footer {
                background: white;
                padding: var(--layout-section-padding);
                border-top: 1px solid var(--color-category-border);
            }
    
            .footer-container {
                max-width: 1400px;
                margin: 0 auto;
                display: grid;
                grid-template-columns: repeat(4, 1fr);
                gap: var(--layout-section-gap);
            }
    
            .footer-column h3 {
                font-size: 18px;
                color: var(--color-text);
                margin-bottom: 15px;
                padding-bottom: 10px;
                border-bottom: 2px solid var(--color-interactive-hover);
            }
    
            .footer-column ul {
                list-style: none;
            }
    
            .footer-column ul li {
                margin-bottom: 10px;
            }
    
            .footer-column ul li a {
                color: var(--color-interactive);
                text-decoration: none;
                font-size: 14px;
            }
    
            .footer-column ul li a:hover {
                text-decoration: underline;
            }
    
            .company-info img {
                width: 200px;
                margin-bottom: 15px;
            }
    
            .company-info p {
                font-size: 14px;
                color: var(--color-text-muted);
                margin-bottom: 8px;
            }
    
            .company-info a {
                color: var(--color-interactive);
                text-decoration: none;
            }
    
            /* Responsive */
            @media (max-width: 1024px) {
                .category-grid {
                    grid-template-columns: repeat(2, 1fr);
                }
    
                .brands-grid {
                    grid-template-columns: repeat(2, 1fr);
                }
    
                .main-container {
                    flex-direction: column;
                }
    
                .sidebar {
                    width: 100%;
                }
            }
    
            @media (max-width: 768px) {
                .header-container {
                    flex-wrap: wrap;
                }
    
                .search-bar {
                    order: 3;
                    width: 100%;
                    max-width: 100%;
                }
    
                .nav-container {
                    flex-wrap: wrap;
                }
    
                .category-grid {
                    grid-template-columns: 1fr;
                }
    
                .brands-grid {
                    grid-template-columns: 1fr;
                }
    
                .experts-container {
                    flex-direction: column;
                    text-align: center;
                }
    
                .contact-container {
                    grid-template-columns: 1fr;
                }
    
                .footer-container {
                    grid-template-columns: 1fr;
                }
            }
    
    
    .cart-count {
      background: var(--color-promo);
      color: #fff;
      padding: 8px 16px;
      border-radius: 20px;
      cursor: pointer;
      font-weight: bold;
      font-size: 0.9rem;
      line-height: 1;
      transition: background 0.3s, transform 0.2s;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-right: 10px;
    }
    
    .cart-count:hover {
      background: var(--color-promo-hover);
      transform: translateY(-2px);
    }
    
    
    /* ===== PRODUCTOS ===== */
    
    #products-container {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 25px;
    }
    .product-card {
      background: #fff;
      border: 1px solid #e5e5e5;
      padding: 12px; /* antes 20px */
      display: flex;
      flex-direction: column;
      transition: all 0.25s ease;
      border-radius: 6px;
      width: 70%;
    }
    
    .product-card:hover {
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
      transform: translateY(-2px);
    }
    
    .product-image {
      text-align: center;
      margin-bottom: 10px; /* antes 15px */
    }
    
    .product-image img {
      width: 100%;
      height: 140px; /* antes 180px */
      object-fit: contain;
    }
    
    .product-info {
      flex-grow: 1;
    }
    
    .product-title {
      display: block;
      font-size: 14px; /* antes 16px */
      font-weight: 600;
      color: var(--color-interactive);
      cursor: pointer;
      margin-bottom: 6px;
      text-decoration: none;
      line-height: 1.3;
    }
    
    .product-title:hover {
      text-decoration: underline;
    }
    
    .catalog-number,
    .stock-info {
      font-size: 12px; /* antes 14px */
      color: var(--color-text-muted);
      margin-bottom: 3px;
    }
    
    .product-purchase {
      margin-top: 15px;
    }
    
    .add-to-cart-btn {
      width: 100%;
      background: var(--color-interactive);
      color: white;
      border: none;
      padding: 10px;
      font-weight: 600;
      cursor: pointer;
    }
    
    .add-to-cart-btn:hover {
      background: #004f9e;
    }
    
    .pagination {
      display: flex;
      justify-content: center;
      margin: 40px 0;
      gap: 10px;
      flex-wrap: wrap;
    }
    
    .pagination button {
      padding: 8px 14px;
      border: 1px solid #ccc;
      background: white;
      cursor: pointer;
      border-radius: 5px;
    }
    
    .pagination button:hover {
      background: #f0f0f0;
    }
    
    .pagination .active-page {
      background: #000;
      color: white;
      border-color: #000;
    }
    
    .skeleton-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 25px;
    }
    
    .skeleton-card {
      padding: 10px;
    }
    
    .skeleton-img {
      height: 120px;
      background: #eee;
      border-radius: 6px;
      margin-bottom: 10px;
    }
    
    .skeleton-text {
      height: 12px;
      background: #eee;
      margin-bottom: 6px;
      border-radius: 4px;
    }
    
    .skeleton-text.small {
      width: 60%;
    }
    
    .skeleton-img,
    .skeleton-text {
      animation: pulse 1.2s infinite ease-in-out;
    }
    
    @keyframes pulse {
      0% { opacity: 0.6; }
      50% { opacity: 1; }
      100% { opacity: 0.6; }
    }
    
    
    /* ================================= */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 80px;
  right: 10px;
  background-color: #25D366;
  color: white;
  font-size: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 999;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite, pulse 2s infinite;
}

    
    .whatsapp-float:hover {
      background-color: #1ebe5d;
      transform: scale(1.1);
    }

/* Tablas más legibles (jerarquía visual clara; excluye tablas de maquetación si usas .layout-table) */
table:not(.layout-table) {
  border-collapse: collapse;
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
table:not(.layout-table) caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  padding: 0.5rem 0;
  color: var(--color-text);
}
table:not(.layout-table) thead th {
  background: var(--gradient-table-header);
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 2px solid var(--color-border-strong);
}
table:not(.layout-table) tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  color: var(--color-text);
}

@media (max-width: 768px) {
  /* Mueve el botón de WhatsApp más arriba para dejar espacio al chat */
  .whatsapp-float {
    bottom: 150px !important;
  }

  #zoho-chat-id,
  .zsalesiq {
    bottom: 20px !important;
  }

  .main-content,
  .filters-layout,
  .filter-results,
  .products-section {
    padding-inline: 12px;
  }

  .filter-sidebar,
  .filters-panel,
  .results-grid,
  .product-list {
    width: 100%;
    max-width: 100%;
  }

  .results-grid,
  .product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Para pantallas muy pequeñas, ajusta el tamaño si es necesario */
@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 140px !important;
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }
}
table:not(.layout-table) tbody tr:nth-child(even) { background: var(--color-surface-muted); }
table:not(.layout-table) tbody tr:hover { background: var(--color-interactive-soft); }
table:not(.layout-table) tbody tr:last-child td { border-bottom: none; }
