* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-optical-sizing: auto;
    font-optical-sizing: auto;
    background-color: #f4f4f4;
    margin: 0;
  }

  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
  }

  .footer a:focus-visible,
  .footer .vcard-download-button:focus-visible,
  .categoria-tabs button:focus-visible,
  .view-toggle-btn:focus-visible,
  .share-btn:focus-visible {
    outline: 3px solid #ffd166;
    outline-offset: 4px;
  }

  /* Enhanced Category Buttons */
  .categoria-btn {
    border-radius: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px 24px;
    color: white;
    border: none;
    margin: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
  }

  .categoria-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
  }

  .categoria-btn:hover::before {
    left: 100%;
  }

  .categoria-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  }

  .categoria-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scale(1.05);
  }

  .category {
    border-radius: 20px;
    background-color: #4caf50;
    padding: 10px;
    color: white;
    border: none;
    margin: 3px;
    font-size: large;
  }

  .container {
    max-width: 1200px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1;
    margin: 100px auto;
    width: 100%;
  }

  .listing-marquee {
    --marquee-start: #667eea;
    --marquee-end: #764ba2;
    display: block;
    padding: 8px 12px;
    border-radius: 10px;
    background-image: linear-gradient(135deg, var(--marquee-start), var(--marquee-end));
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    width: 100%;
    max-width: calc(100% - 40px);
    margin: 0 auto 20px;
  }

  .listing-marquee__text {
    display: inline-block;
    min-width: 100%;
    white-space: nowrap;
  }

  .cover {
    max-width: 300px;
    margin: 0 auto;
  }

  h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
  }

  .logo {
    margin: 0 auto;
    text-align: center;
    max-width: -webkit-fill-available;
    display: block;
    padding: 20px;
    width: -webkit-fit-content;
  }

  /* Enhanced Product Cards */
  .producto {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #fff;
    font-size: larger;
  }

  /* New Product Card Design */
  .producto-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 0;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 100%;
  }

  .producto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }

  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .producto-card:nth-child(1) { animation-delay: 0.1s; }
  .producto-card:nth-child(2) { animation-delay: 0.2s; }
  .producto-card:nth-child(3) { animation-delay: 0.3s; }
  .producto-card:nth-child(4) { animation-delay: 0.4s; }
  .producto-card:nth-child(5) { animation-delay: 0.5s; }

  .producto-imagen {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  }

  .producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
  }
  
  .producto-imagen img:not(.active) {
    display: none;
  }
  
  .producto-imagen img[style*="display: none"] {
    display: none !important;
  }

  .producto-card:hover .producto-imagen img {
    transform: scale(1.05);
  }

  .producto-imagen .prev,
  .producto-imagen .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
  }

  .producto-imagen .prev:hover,
  .producto-imagen .next:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
  }

  .producto-imagen .prev { left: 10px; }
  .producto-imagen .next { right: 10px; }

  .producto-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .producto-info h3 {
    font-size: 1.1em;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
  }

  .producto-info .descripcion {
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
    font-size: 0.9em;
  }

  .precios {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-shrink: 0;
  }

  .precio-original {
    color: #999;
    text-decoration: line-through;
    font-size: 0.95em;
  }

  .precio-promo {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.1em;
  }

  .precio {
    color: #4caf50;
    font-weight: bold;
    font-size: 1.1em;
  }

  /* Enhanced Buy Button */
  .btn-comprar {
    width: 100%;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
    flex-shrink: 0;
  }

  .btn-comprar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
  }

  .btn-comprar:hover::before {
    left: 100%;
  }

  .btn-comprar:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
  }

  .btn-comprar:active {
    transform: translateY(0);
  }

  /* Category Cards */
  .categoria-section {
    margin: 40px 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    width: 100%;
    max-width: 100%;
  }

  .categoria-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    text-align: center;
    font-size: 1.5em;
    font-weight: 600;
  }

  .categoria-products {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 15px !important;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
    align-items: stretch;
    padding: 20px !important;
    width: 100% !important;
  }

  .categoria-tabs {
    text-align: center;
    margin: 0 auto;
  }

  /* Category Tabs Styling */
  #categoria-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
  
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    text-align: center;
    margin: 0 auto;
}

#categoria-tabs.sticky {
    padding: 8px 15px;
    margin: 0;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.98);
}

#categoria-tabs.sticky .categoria-btn {
    padding: 8px 16px;
    font-size: 14px;
    margin: 4px;
}

#categoria-tabs.sticky .categoria-btn.active {
    transform: scale(1.02);
}

  /* Products List Grid */
  .productos-list {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 15px !important;
    padding: 20px !important;
    align-items: stretch;
    flex-wrap: unset !important;
    justify-content: unset !important;
  }
  
  /* When productos-list contains categoria-sections, it should be a block container */
  .productos-list:has(.categoria-section) {
    display: block !important;
    grid-template-columns: unset !important;
    gap: 0 !important;
  }

  /* Enhanced Popup Styles */
  .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
  }

  .popup-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  }

  .popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .popup-close:hover {
    background: #c0392b;
    transform: scale(1.1);
  }

  .popup-images {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 15px;
    margin: 20px 0;
  }

  .popup-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .popup-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
  }

  .btn-whatsapp,
  .btn-instagram {
    flex: 1;
    padding: 15px 20px;
    border-radius: 25px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
  }

  .btn-whatsapp {
    background: #25d366;
    color: white;
  }

  .btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
  }

  .btn-whatsapp:hover,
  .btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  }

  /* Scroll Animations */
  .scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
  }

  .scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Responsive Design */
  /* Tablet: 3 columns */
  @media (max-width: 1024px) {
    .productos-list {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }
    
    .categoria-products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        padding: 15px !important;
    }
    
    .producto-imagen {
        height: 160px;
    }
    
    .producto-info {
        padding: 12px;
    }
    
    .producto-info h3 {
        font-size: 1em;
    }
    
    .btn-comprar {
        padding: 9px 18px;
        font-size: 0.9em;
    }
  }

  /* Mobile: 2 columns */
  @media (max-width: 768px) {
    .container {
        width: 95%;
        margin: 50px auto;
        padding: 15px;
    }
    
    .productos-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 10px !important;
    }
    
    .categoria-products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 10px !important;
    }
    
    .producto-info {
        padding: 10px;
    }
    
    .producto-info h3 {
        font-size: 0.95em;
        margin-bottom: 6px;
    }
    
    .producto-info .descripcion {
        font-size: 0.8em;
        margin-bottom: 8px;
    }
    
    .precios {
        margin-bottom: 10px;
    }
    
    .precio-promo,
    .precio {
        font-size: 1em;
    }
    
    .precio-original {
        font-size: 0.85em;
    }
    
    .btn-comprar {
        padding: 8px 15px;
        font-size: 0.85em;
        border-radius: 15px;
    }
    
    .producto-imagen {
        height: 140px;
    }
    
    .categoria-btn {
        padding: 10px 16px;
        font-size: 14px;
        margin: 4px;
    }
    
    .categoria-section {
        margin: 20px 0;
    }
    
    .categoria-header {
        padding: 12px;
        font-size: 1.1em;
        border-radius: 10px 10px 0 0;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .popup-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .popup-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Mobile sticky tabs */
    #categoria-tabs {
        padding: 10px;
        margin: 15px 0;
    }
    
    #categoria-tabs.sticky {
        padding: 6px 10px;
        margin: 0;
    }
    
    #categoria-tabs.sticky .categoria-btn {
        padding: 6px 12px;
        font-size: 12px;
        margin: 2px;
    }
    
    /* Ensure sticky tabs work on mobile */
    #categoria-tabs {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
    }
    
    /* Prevent horizontal overflow */
    .categoria-section,
    .categoria-products,
    .productos-list {
        overflow-x: hidden;
    }
  }
  
  /* Extra small mobile: very compact layout */
  @media (max-width: 480px) {
    .producto-info h3 {
        font-size: 0.9em;
    }
    
    .producto-info .descripcion {
        font-size: 0.75em;
        line-height: 1.3;
    }
    
    .categoria-header {
        padding: 10px;
        font-size: 1em;
    }
    
    .btn-comprar {
        padding: 6px 12px;
        font-size: 0.8em;
    }
  }

  /* Loading Animation */
  .loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
  }

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

  /* Enhanced Footer */
  .footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
    margin-top: 50px;
  }

  .footer .info,
  .footer .logos,
  .footer .powered-by {
    flex: 1 1 300px;
    margin: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
  }

  .footer .info:hover,
  .footer .logos:hover,
  .footer .powered-by:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }

  .footer .info h3,
  .footer .powered-by h3 {
    margin-top: 0;
    font-size: 1.4em;
    margin-bottom: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  .footer .info p,
  .footer .powered-by p {
    margin: 10px 0;
    font-size: 1.05em;
    line-height: 1.7;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }

  .footer .info p {
    text-align: left;
  }

  .footer .info p strong {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
  }

  .footer .vcard-download {
    margin-top: 20px;
  }

  .footer .vcard-download-button {
    display: inline-flex;
    background-color: black;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 999px;
    background-image: linear-gradient(135deg, var(--download-start, #667eea), var(--download-end, #764ba2));
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .footer .vcard-download-button:hover,
  .footer .vcard-download-button:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }

  .footer .vcard-download-button .material-icons {
    font-size: 20px;
  }


  .footer .logos {
    text-align: center;
  }

  .footer .logos img {
    max-width: 120px;
    margin: 0 10px;
    vertical-align: middle;
    filter: brightness(0) invert(1);
  }

  .footer a:not(.vcard-download-button) {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .footer a:not(.vcard-download-button):hover {
    color: #f0f0f0;
    text-decoration: underline;
  }

  /* Social Links Styling */
  .social-link {
    display: block;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    padding: 5px 0;
  }

  .social-link:hover {
    color: #f0f0f0;
    text-decoration: none;
    transform: translateX(5px);
  }

  .social-link p {
    margin: 5px 0;
    font-size: 0.95em;
  }

  .social-link strong {
    font-weight: 600;
  }

  /* Enhanced Social Section */
  .social-section {
    margin: 25px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
  }

  .social-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #25d366, #4267B2, #1DA1F2, #e4405f);
    border-radius: 20px 20px 0 0;
  }

  .social-section h4 {
    margin: 0 0 20px 0;
    font-size: 1.3em;
    color: white;
    text-align: center;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .social-item {
    margin: 12px 0;
    padding: 15px 18px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
  }

  .social-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .social-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    font-weight: 500;
  }

  .social-icon {
    font-size: 1.4em;
    margin-right: 12px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
  }

  .social-item:hover .social-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
  }

  .social-section h4 .material-icons {
    font-size: 1.1em;
    margin-right: 8px;
    vertical-align: middle;
  }

  .social-text {
    font-size: 1em;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }

  /* Platform-specific colors */
  .whatsapp-link:hover {
    color: #25d366;
  }

  .whatsapp-link:hover .material-icons {
    color: #25d366;
  }

  .whatsapp-link:hover .social-icon {
    background: rgba(37, 211, 102, 0.2);
    border-color: #25d366;
  }

  .sinpe-link {
    cursor: default;
  }

  .sinpe-link:hover {
    color: #28a745;
  }

  .sinpe-link:hover .material-icons {
    color: #28a745;
  }

  .sinpe-link:hover .social-icon {
    background: rgba(40, 167, 69, 0.2);
    border-color: #28a745;
  }

  .instagram-link:hover {
    color: #e4405f;
  }

  .instagram-link:hover .material-icons {
    color: #e4405f;
  }

  .instagram-link:hover .social-icon {
    background: rgba(228, 64, 95, 0.2);
    border-color: #e4405f;
  }

  /* Material Icons specific styling */
  .social-icon.material-icons {
    font-size: 1.2em;
    transition: all 0.3s ease;
  }

  .social-section h4 .material-icons {
    font-size: 1.4em;
    margin-right: 10px;
    vertical-align: middle;
    opacity: 0.95;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  }

  /* Social Sharing Section */
  .social-sharing-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .social-sharing-section h4 {
    margin-bottom: 15px;
    color: white;
    font-size: 1.1em;
    display: flex;
    align-items: center;
  }

  .sharing-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
  }

  .share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }

  .share-btn .material-icons {
    font-size: 18px;
  }

  .share-btn span {
    font-size: 13px;
  }

  /* Platform-specific share button colors */
  .whatsapp-share:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: #25d366;
  }

  .facebook-share:hover {
    background: rgba(66, 103, 178, 0.2);
    border-color: #4267B2;
  }

  .twitter-share:hover {
    background: rgba(29, 161, 242, 0.2);
    border-color: #1DA1F2;
  }

  .telegram-share:hover {
    background: rgba(0, 136, 204, 0.2);
    border-color: #0088cc;
  }

  .copy-link:hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
  }

  /* Copy notification styles */
  .copy-notification {
    animation: slideInRight 0.3s ease;
  }

  @keyframes slideInRight {
    from {
      transform: translateX(100%);
    }
    to {
      transform: translateX(0);
    }
  }

  /* Mobile responsive for sharing buttons */
  @media (max-width: 768px) {
    .sharing-buttons {
      justify-content: center;
      gap: 8px;
    }

    .share-btn {
      padding: 8px 12px;
      font-size: 12px;
    }

    .share-btn .material-icons {
      font-size: 16px;
    }

    .share-btn span {
      font-size: 12px;
    }
  }

  /* QR Code Section */
  .qr-code-section {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
  }

  .qr-code-section h3 {
    margin-bottom: 1rem;
    color: white;
    font-size: 1.2rem;
  }

  .qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    min-height: 200px;
  }

  .qr-code-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
  }

  .qr-code-placeholder p {
    margin: 0;
    font-size: 0.9rem;
  }

  .qr-code-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }

  .qr-code-text {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
  }

  /* Additional Utility Classes */
  .text-center { text-align: center; }
  .text-left { text-align: left; }
  .text-right { text-align: right; }
  .mb-20 { margin-bottom: 20px; }
  .mt-20 { margin-top: 20px; }
  .p-20 { padding: 20px; }

  /* Smooth Scrolling */
  html {
    scroll-behavior: smooth;
  }

  /* Custom Scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }

  ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  }

  /* Animation for non-available products */
  .non-available {
    opacity: 0.6;
    filter: grayscale(50%);
  }

  .non-available .btn-comprar {
    background: #ccc;
    cursor: not-allowed;
  }

  .non-available .btn-comprar:hover {
    transform: none;
    box-shadow: none;
  }

  /* Heartbeat animation for logos */
  .heartbeat {
    width: 150px;
    animation: heartbeat 1.5s infinite;
  }

  @keyframes heartbeat {
    0%, 100% {
      transform: scale(1);
    }
    20% {
      transform: scale(1.1);
    }
    40% {
      transform: scale(0.9);
    }
    60% {
      transform: scale(1.1);
    }
    80% {
      transform: scale(1);
    }
  }

  /* SINPE section styling */
  .sinpe {
    text-align: center;
    margin: 20px auto;
    display: block;
    font-weight: 600;
  }

  /* Keep existing styles for compatibility */
  strike {
    color: gray;
  }

  .add-to-cart:hover {
    background-position: right center;
    color: #fff;
    text-decoration: none;
  }

  .producto h2 {
    margin-bottom: 10px;
    font-size: 18px;
  }

  .producto p {
    margin: 5px 0;
    font-size: larger;
  }

  .producto .precio {
    font-weight: bold;
    color: #4caf50;
  }

  .animation-container {
    background: black;
    position: fixed;
    height: 100%;
    width: 100%;
    z-index: 9999;
  }

  /* Keep existing shape animations */
  .shape1 {
    position: absolute;
    top: 42%;
    left: 70%;
    width: 25rem;
    height: 25rem;
    background: pink;
    border-radius: 24% 76% 77% 23% / 30% 30% 70% 70%;
    filter: blur(6rem);
    animation: shape1 20s infinite;
    z-index: -9999 !important;
    overflow: hidden;
  }

  @keyframes shape1 {
    0% {
      transform: translate(0, 0);
      border-radius: 24% 76% 77% 23% / 30% 30% 70% 70%;
    }
    25% {
      transform: translate(-55%, -10%);
      border-radius: 28% 72% 81% 19% / 78% 25% 75% 22%;
      height: 50rem;
      width: 80rem;
    }
    50% {
      transform: translate(-90%, -10%);
      border-radius: 60% 40% 0% 100% / 1% 74% 26% 99%;
    }
    75% {
      transform: translate(-30%, -10%);
      border-radius: 0% 100% 100% 0% / 0% 100% 100% 0%;
      height: 30rem;
      width: 45rem;
    }
    100% {
      transform: translate(0%, 0%);
      border-radius: 24% 76% 77% 23% / 30% 30% 70% 70%;
    }
  }

  .shape2 {
    position: absolute;
    top: 33%;
    left: 40%;
    width: 35rem;
    height: 25rem;
    background: lightblue;
    border-radius: 73% 27% 77% 23% / 53% 4% 96% 47%;
    filter: blur(12rem);
    animation: shape2 35s infinite;
    z-index: -9999 !important;
    overflow: hidden;
  }

  @keyframes shape2 {
    0% {
      transform: translate(0, 0);
      border-radius: 73% 27% 77% 23% / 53% 4% 96% 47%;
    }
    25% {
      transform: translate(-55%, -55%);
      border-radius: 28% 72% 81% 19% / 78% 25% 75% 22%;
      height: 50rem;
      width: 50rem;
    }
    50% {
      transform: translate(-70%, -70%);
      border-radius: 60% 40% 0% 100% / 1% 74% 26% 99%;
    }
    75% {
      transform: translate(-30%, -30%);
      border-radius: 0% 100% 100% 0% / 0% 100% 100% 0%;
    }
    100% {
      transform: translate(0%, 0%);
      border-radius: 73% 27% 77% 23% / 53% 4% 96% 47%;
    }
  }

  .shape3 {
    position: absolute;
    top: 20%;
    left: 80%;
    width: 25rem;
    height: 25rem;
    background: lightblue;
    border-radius: 70% 30% 80% 20% / 42% 25% 75% 58%;
    filter: blur(14rem);
    animation: shape3 35s infinite;
    z-index: -9999 !important;
    overflow: hidden;
  }

  @keyframes shape3 {
    0% {
      transform: translate(0, 0);
      border-radius: 70% 30% 80% 20% / 42% 25% 75% 58%;
    }
    25% {
      transform: translate(-125%, -25%);
      border-radius: 28% 72% 81% 19% / 78% 25% 75% 22%;
      height: 50rem;
      width: 50rem;
    }
    50% {
      transform: translate(-90%, -35%);
      border-radius: 60% 40% 0% 100% / 1% 74% 26% 99%;
    }
    75% {
      transform: translate(-30%, -40%);
      border-radius: 0% 100% 100% 0% / 0% 100% 100% 0%;
    }
    100% {
      transform: translate(0%, 0%);
      border-radius: 70% 30% 80% 20% / 42% 25% 75% 58%;
    }
  }

  .shape4 {
    position: absolute;
    top: 42%;
    left: 70%;
    width: 25rem;
    height: 25rem;
    background: pink;
    border-radius: 24% 76% 77% 23% / 30% 30% 70% 70%;
    filter: blur(5rem);
    z-index: -9999 !important;
    overflow: hidden;
  }

  .shape5 {
    position: absolute;
    top: 33%;
    left: 40%;
    width: 35rem;
    height: 25rem;
    background: lightyellow;
    border-radius: 73% 27% 77% 23% / 53% 4% 96% 47%;
    filter: blur(5rem);
    z-index: -9999 !important;
    overflow: hidden;
  }

  .shape6 {
    position: absolute;
    top: 20%;
    left: 80%;
    width: 25rem;
    height: 25rem;
    background: lightblue;
    border-radius: 70% 30% 80% 20% / 42% 25% 75% 58%;
    filter: blur(5rem);
    z-index: -9999 !important;
    overflow: hidden;
  }

  .btn-grad {
    background-image: linear-gradient(to right, #4776E6 0%, #8E54E9  51%, #4776E6  100%);
    margin: 10px;
    padding: 15px 45px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: white;            
    box-shadow: 0 0 20px #eee;
    border-radius: 10px;
    display: block;
  }

  .btn-grad:hover {
    background-position: right center;
    color: #fff;
    text-decoration: none;
  }

  header marquee {
    font-size: 1.5em;
    color: #fff;
    z-index: 9999999999;
  }

  .slider {
    position: relative;
    width: 100%;
    min-height: 80vh;
    overflow: hidden;
    margin-bottom: 10px;
  }

  .slider img {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    margin: 0 auto;
    text-align: center;
    display: block;
  }

  .slider img.active {
    opacity: 1;
  }

  .slider .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
  }

  .slider .prev {
    left: 10px;
  }

  .slider .next {
    right: 10px;
  }

  @media (max-width: 768px) {
    .footer {
      flex-direction: column;
      text-align: center;
    }
    .footer .info,
    .footer .logos,
    .footer .powered-by {
      flex: none;
      margin: 10px 0;
    }
    .slider {
      position: relative;
      width: 100%;
      min-height: 55vh;
      overflow: hidden;
      margin-bottom: 10px;
      margin: 0 auto;
    }
    
    /* Mobile Social Section */
    .social-section {
      margin: 15px 0;
      padding: 20px;
    }
    
    .social-section h4 {
      font-size: 1.1em;
      margin-bottom: 15px;
    }
    
    .social-item {
      margin: 8px 0;
      padding: 12px 15px;
    }
    
    .social-link {
      flex-direction: row;
      align-items: center;
    }
    
    .social-icon {
      width: 28px;
      height: 28px;
      font-size: 1.2em;
      margin-right: 10px;
    }
    
    .social-text {
      font-size: 0.95em;
    }

    .footer .info,
    .footer .logos,
    .footer .powered-by {
      padding: 15px;
      margin: 10px 0;
    }

    .footer .info h3,
    .footer .powered-by h3 {
      font-size: 1.2em;
      margin-bottom: 15px;
    }

    .footer .info p,
    .footer .powered-by p {
      font-size: 1em;
      margin: 8px 0;
    }
  }
  .hide   {
    display: none;
  }

  /* Shopping Cart Styles */
  .cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .cart-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 3001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
  }

  .cart-sidebar.active {
    right: 0;
  }

  .cart-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  /* Allow PHP-generated styles to override */
  .sd-product-listing-container .cart-header {
    background: inherit;
  }

  .cart-header h3 {
    margin: 0;
    font-size: 1.3em;
  }

  .cart-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
  }

  .cart-close:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
  }

  .cart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 15px;
    background: #f9f9f9;
    transition: all 0.3s ease;
  }

  .cart-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 15px;
  }

  .cart-item-details {
    flex: 1;
  }

  .cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
  }

  .cart-item-price {
    color: #4caf50;
    font-weight: bold;
    margin-bottom: 5px;
  }

  .cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .quantity-btn {
    background: #667eea;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }
  
  /* Allow PHP-generated styles to override */
  .sd-product-listing-container .quantity-btn {
    background: inherit;
  }

  .quantity-btn:hover {
    background: #5a6fd8;
    transform: scale(1.1);
  }

  .quantity-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
  }

  .quantity-display {
    font-weight: bold;
    min-width: 30px;
    text-align: center;
  }

  .cart-item-remove {
    background: #e74c3c;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    margin-left: 10px;
    transition: all 0.3s ease;
  }
  
  /* Allow PHP-generated styles to override */
  .sd-product-listing-container .cart-item-remove {
    background: inherit;
  }

  .cart-item-remove:hover {
    background: #c0392b;
    transform: scale(1.1);
  }

  .cart-footer {
    background: #f8f9fa;
    padding: 20px;
    border-top: 1px solid #eee;
  }

  .cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: bold;
  }

  .cart-total-amount {
    color: #4caf50;
    font-size: 1.4em;
  }

  .cart-actions {
    display: flex;
    gap: 10px;
  }

  .btn-clear-cart {
    flex: 1;
    padding: 12px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
  }

  .btn-clear-cart:hover {
    background: #5a6268;
  }

  .btn-checkout {
    flex: 2;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: larger;
    transition: all 0.3s ease;
  }
  
  /* Allow PHP-generated styles to override */
  .sd-product-listing-container .btn-checkout {
    background: inherit;
  }

  .btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
  }

  .btn-checkout:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }

  .btn-checkout-calendar {
    flex: 2;
    padding: 12px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: larger;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .btn-checkout-calendar:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
  }

  .btn-checkout-calendar:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }

  .cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
  }

  .cart-empty-icon {
    font-size: 3em;
    margin-bottom: 20px;
    opacity: 0.5;
  }

  /* Cart badge for button */
  .btn-comprar {
    position: relative;
  }

  .cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
  }
  
  /* Allow PHP-generated styles to override */
  .sd-product-listing-container .cart-badge {
    background: inherit;
  }
  
  /* Cart gradient styling will be applied dynamically via JavaScript */

  /* Responsive cart */
  @media (max-width: 768px) {
    .cart-sidebar {
      width: 100%;
      right: -100%;
    }
    
    .cart-item {
      flex-direction: column;
      text-align: center;
    }
    
    .cart-item-image {
      margin-right: 0;
      margin-bottom: 10px;
    }
    
    .cart-actions {
      flex-direction: column;
    }
  }
  .producto-count {
    font-size: smaller;
  }

  /* Hide cart elements in admin/backoffice */
  body.wp-admin .cart-overlay,
  body.wp-admin .cart-sidebar,
  body.wp-admin .cart-badge,
  body.wp-admin .cart-btn,
  body.admin-bar .cart-overlay,
  body.admin-bar .cart-sidebar,
  body.admin-bar .cart-badge,
  body.admin-bar .cart-btn {
    display: none !important;
  }

  /* PDF Preview Styles */
  .suitecrm-quote-preview {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }

  .pdf-preview-container {
    width: 100%;
    height: 100%;
  }

  .pdf-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: 1px solid #e0e0e0;
  }

  .pdf-preview-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
  }

  .pdf-preview-controls {
    display: flex;
    gap: 10px;
  }

  .pdf-preview-controls .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .pdf-preview-controls .btn-primary {
    background: #007cba;
    color: white;
  }

  .pdf-preview-controls .btn-primary:hover {
    background: #005a87;
    transform: translateY(-1px);
  }

  .pdf-preview-controls .btn-secondary {
    background: #6c757d;
    color: white;
  }

  .pdf-preview-controls .btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
  }

  .pdf-viewer-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    background: #f8f9fa;
  }

  .pdf-preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
  }

  .pdf-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #666;
  }

  .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  .pdf-loading p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
  }

  .pdf-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #dc3545;
    background: #f8d7da;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
  }

  .pdf-error i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
  }

  .pdf-error p {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    font-weight: 500;
  }

  .pdf-error .btn {
    padding: 10px 20px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.3s ease;
  }

  .pdf-error .btn:hover {
    background: #c82333;
  }

  /* Responsive design for PDF preview */
  @media (max-width: 768px) {
    .pdf-preview-header {
      flex-direction: column;
      gap: 15px;
      text-align: center;
    }

    .pdf-preview-controls {
      flex-direction: column;
      width: 100%;
    }

    .pdf-preview-controls .btn {
      width: 100%;
      justify-content: center;
    }

    .pdf-viewer-wrapper {
      height: 400px;
    }
  }

  @media (max-width: 480px) {
    .pdf-preview-header {
      padding: 15px;
    }

    .pdf-preview-header h2 {
      font-size: 1.2rem;
    }

    .pdf-viewer-wrapper {
      height: 300px;
    }
  }

.booking-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.booking-modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.booking-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.booking-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

.btn-booking-check,
.btn-booking-confirm {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.btn-booking-check {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-booking-confirm {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
}

.btn-booking-check:hover,
.btn-booking-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Flatpickr Custom Styles */
.flatpickr-input {
    transition: all 0.3s ease;
}

.flatpickr-input:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

/* Flatpickr calendar customization */
.flatpickr-calendar {
    font-family: inherit;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-color: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.flatpickr-day.inRange {
    background: rgba(102, 126, 234, 0.2) !important;
    border-color: rgba(102, 126, 234, 0.2) !important;
}

.flatpickr-day:hover {
    background: rgba(102, 126, 234, 0.4) !important;
}

/* Product details modal */
body.sd-modal-open {
    overflow: hidden;
}

.sd-product-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
}

.sd-product-modal.is-visible {
    display: flex;
}

.sd-product-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.sd-product-modal__dialog {
    position: relative;
    background: #ffffff;
    width: min(1040px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border-radius: 18px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    z-index: 1;
}

.sd-product-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: #111111;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.sd-product-modal__close:hover,
.sd-product-modal__close:focus {
    background: rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.sd-product-modal__content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sd-product-modal__main {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.sd-product-modal__media {
    flex: 1 1 320px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sd-product-modal__media-main {
    position: relative;
    overflow: hidden; /* Ensure transforms don't overflow */
    border-radius: 16px;
    background: #f5f5f5;
}

.sd-product-modal__media-main img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 420px;
    transition: transform 0.3s ease; /* Smooth transition for transforms */
}

.sd-product-modal__media-placeholder {
    background: #f5f5f5;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    color: #666666;
}

.sd-product-modal__media-placeholder .material-icons {
    font-size: 48px;
    margin-bottom: 12px;
}

.sd-product-modal__media-thumbs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sd-product-modal__thumb {
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    background: transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.sd-product-modal__thumb.is-active,
.sd-product-modal__thumb:hover,
.sd-product-modal__thumb:focus {
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.sd-product-modal__thumb img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.sd-product-modal__info {
    flex: 1 1 360px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sd-product-modal__info h2 {
    font-size: 2rem;
    margin: 0;
    line-height: 1.2;
}

.sd-product-modal__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sd-product-modal__chip {
    background: rgba(0, 0, 0, 0.05);
    color: #333333;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
}

.sd-product-modal__description {
    margin: 0;
    color: #4a4a4a;
    line-height: 1.5;
}

.sd-product-modal__notes {
    font-size: 0.9rem;
    color: #555555;
    line-height: 1.5;
}

.sd-product-modal__price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111111;
}

.sd-product-modal__price .precio-original {
    font-size: 1rem;
    margin-right: 12px;
}

.sd-product-modal__limits {
    font-size: 0.85rem;
    color: #6a6a6a;
}

.sd-product-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.sd-product-modal__cart-btn,
.sd-product-modal__share-btn {
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
}

.sd-product-modal__cart-btn {
    background: #111111;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.sd-product-modal__cart-btn:hover,
.sd-product-modal__cart-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.sd-product-modal__share-btn {
    background: transparent;
    color: #333333;
    border-color: #333333;
}

.sd-product-modal__share-btn:hover,
.sd-product-modal__share-btn:focus {
    transform: translateY(-1px);
    background: rgba(0, 0, 0, 0.05);
}

.sd-product-modal__share-feedback {
    font-size: 0.85rem;
    color: #4caf50;
}

.sd-product-modal__footer {
    margin-top: 8px;
    display: flex;
    justify-content: center;
}

.sd-product-modal__all-products-btn {
    width: 100%;
    max-width: 320px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border: 2px solid #333333;
    background: transparent;
    color: #333333;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.sd-product-modal__all-products-btn:hover,
.sd-product-modal__all-products-btn:focus {
    transform: translateY(-1px);
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.sd-product-modal__related {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sd-product-modal__related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.sd-product-modal__slider {
    position: relative;
}

.sd-product-modal__slider-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
}

.sd-product-modal__slider-track::-webkit-scrollbar {
    height: 6px;
}

.sd-product-modal__slider-track::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 999px;
}

.sd-product-modal__slider-btn {
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: #111111;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sd-product-modal__slider-btn:hover,
.sd-product-modal__slider-btn:focus {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.sd-product-modal__slider-btn:disabled {
    opacity: 0.4;
    cursor: default;
    transform: none;
}

.sd-product-modal__related-card {
    min-width: 190px;
    max-width: 220px;
    scroll-snap-align: start;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 16px;
    padding: 12px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sd-product-modal__related-card:hover,
.sd-product-modal__related-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.sd-product-modal__related-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
}

.sd-product-modal__related-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.sd-product-modal__related-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #222222;
}

.sd-product-modal__related-price {
    font-size: 0.9rem;
    color: #555555;
}

@media (max-width: 1024px) {
    .sd-product-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 32px);
    }
    .sd-product-modal__main {
        flex-direction: column;
    }
    .sd-product-modal__media,
    .sd-product-modal__info {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .sd-product-modal {
        padding: 0;
    }
    .sd-product-modal__dialog {
        border-radius: 0;
        max-height: 100vh;
        height: 100vh;
        padding: 24px;
    }
    .sd-product-modal__close {
        top: 16px;
        right: 16px;
    }
    .sd-product-modal__slider-track {
        gap: 12px;
    }
}