/**
 * Zeo AJAX Search Styles
 * Responsive search bar with dropdown results
 * 
 * Z-INDEX HIERARCHY:
 * ==================
 * 10002 - Search container (input + button) - ALWAYS ON TOP
 * 10001 - Search results dropdown - Below search bar
 * 10000 - Search wrapper & Backdrop - Base layer
 * 
 * This ensures the search bar remains accessible even when
 * the results overlay is open, allowing continuous searching.
 */

/* ========================================
   Search Wrapper
   ======================================== */

.zeo-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    z-index: 0; /* Higher than everything to stay on top */
}

/* ========================================
   Search Container (Input + Button)
   ======================================== */

.zeo-search-container {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 4px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10002; /* Above results and backdrop */
}

.zeo-search-container:hover,
.zeo-search-container:focus-within {
    background-color: #0f0f0f;
    border-color: #534dfa;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.zeo-search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 25px !important;
    font-size: 15px;
    color: #fff !important;
    border-radius: 20px;
    background-color: #0f0f0f !important;
    outline: none;
    font-weight: 400 !important;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 10003; /* Above everything else */
}

.zeo-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.zeo-search-button {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0 !important;
    position: relative;
    z-index: 10003; /* Above everything else */
}

.zeo-search-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.zeo-search-button svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   Results Dropdown
   ======================================== */

.zeo-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    max-height: 600px;
    overflow: hidden;
    animation: slideDown 0.3s ease;
    z-index: 10001; /* Below search container but above backdrop */
    display: flex;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zeo-search-results-inner {
    display: flex;
    width: 100%;
    height: 100%;
    max-height: 600px;
}

/* Left sidebar - Results list */
.zeo-search-results-sidebar {
    width: 300px;
    flex-shrink: 0;
    background: #1a1a1a;
    overflow-y: auto;
    padding: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Right panel - Preview */
.zeo-search-results-preview {
    flex: 1;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

.zeo-preview-content {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.zeo-preview-placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-size: 16px;
}

.zeo-preview-placeholder svg {
    opacity: 0.2;
    margin-bottom: 20px;
}

/* Custom scrollbar for sidebar */
.zeo-search-results-sidebar::-webkit-scrollbar {
    width: 8px;
}

.zeo-search-results-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.zeo-search-results-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.zeo-search-results-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   Loading State
   ======================================== */

.zeo-search-loading {
    text-align: center;
    padding: 40px 20px;
}

.zeo-loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #5856D6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.zeo-search-loading p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

/* ========================================
   No Results State
   ======================================== */

.zeo-search-no-results {
    text-align: center;
    padding: 60px 20px;
}

.zeo-search-no-results svg {
    opacity: 0.3;
    margin-bottom: 20px;
}

.zeo-search-no-results p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    margin: 0;
}

/* ========================================
   Brand Results Section (Sidebar List)
   ======================================== */

.zeo-brands-section {
    margin-bottom: 24px;
}

.zeo-brands-title {
    font-size: 20px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    margin: 0 0 12px 0;
    padding: 0 8px;
}

.zeo-brand-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 8px;
    cursor: pointer;
    border: 2px solid transparent;
}

.zeo-brand-item:hover,
.zeo-brand-item.active {
    background: rgba(88, 86, 214, 0.15);
    border-color: #5856D6;
}

.zeo-brand-logo {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.zeo-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.zeo-brand-logo-placeholder {
    font-size: 20px;
    font-weight: 700;
    color: #5856D6;
}

.zeo-brand-info {
    flex: 1;
    min-width: 0;
}

.zeo-brand-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    display: block;
    margin-bottom: 2px;
}

.zeo-brand-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   Product Results Section (Sidebar List)
   ======================================== */

.zeo-products-section {
    margin-bottom: 16px;
}

.zeo-products-title {
    font-size: 20px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    margin: 0 0 12px 0;
    padding: 0 8px;
}

.zeo-products-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zeo-product-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}

.zeo-product-item:hover,
.zeo-product-item.active {
    background: rgba(88, 86, 214, 0.15);
    border-color: #5856D6;
}

.zeo-product-image-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.zeo-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.zeo-product-item:hover .zeo-product-image {
    transform: scale(1.1);
}

.zeo-product-info {
    flex: 1;
    min-width: 0;
}

.zeo-product-brand {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #5856D6;
    margin-bottom: 2px;
}

.zeo-product-title {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zeo-product-price-wrapper {
    display: flex;
    flex-direction: row;
    color:white;
    font-size: 14px;
    gap: 2px;
}

.zeo-product-prices {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.zeo-product-price {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.zeo-product-regular-price {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
}

.zeo-product-sale-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #534dfa;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 6px;
    z-index: 2;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zeo-product-out-of-stock {
    opacity: 0.5;
}

.zeo-product-stock-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 1);
    z-index: 2;
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* ========================================
   Preview Panel (Right Side)
   ======================================== */

.zeo-preview-product {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.zeo-preview-image-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 30px;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
}

.zeo-preview-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.zeo-preview-sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #534dfa;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zeo-preview-brand {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #5856D6;
    margin-bottom: 12px;
}

.zeo-preview-title {
    font-size: 28px;
    font-weight: normal;
    color: #fff;
    margin-bottom: 0px;
    line-height: 34px;
}

.zeo-preview-prices {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
        color: #fff;
}

.zeo-preview-price {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.zeo-preview-regular-price {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
}

.zeo-preview-currency {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
}

.zeo-preview-button {
    display: inline-block;
    padding: 16px 40px;
    background: #5856D6;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.zeo-preview-button:hover {
    background: #4c4ac4;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(88, 86, 214, 0.4);
}

.zeo-preview-stock-status {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.zeo-preview-stock-status.in-stock {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    display: none;
}

.zeo-preview-stock-status.out-of-stock {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    display: none;
}

/* Brand Preview */
.zeo-preview-brand-item {
    text-align: center;
}

.zeo-preview-brand-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.zeo-preview-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.zeo-preview-brand-logo-placeholder {
    font-size: 48px;
    font-weight: 700;
    color: #5856D6;
}

.zeo-preview-brand-name {
    font-size: 32px;
    font-weight: normal;
    color: #fff;
    margin-bottom: 16px;
    line-height: 37px;
}

.zeo-preview-brand-count {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.zeo-preview-brand-button {
    display: inline-block;
    padding: 16px 40px;
    background: #5856D6;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.zeo-preview-brand-button:hover {
    background: #4c4ac4;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(88, 86, 214, 0.4);
}

/* ========================================
   View All Button
   ======================================== */

.zeo-view-all {
    display: block;
    width: 100%;
    padding: 14px;
    background: #5856D6;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.zeo-view-all:hover {
    background: #4c4ac4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 86, 214, 0.4);
}

.zeo-view-all-count {
    font-weight: 400;
    opacity: 0.9;
}

/* ========================================
   Backdrop
   ======================================== */

.zeo-search-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000; /* Below search container and results */
    animation: fadeIn 0.3s ease;
}

.zeo-section-title{
    color:white !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================================
   Responsive Breakpoints
   ======================================== */

/* Tablets */
@media (max-width: 768px) {
    .zeo-search-wrapper {
        max-width: 100%;
    }
    
    .zeo-search-results {
        max-height: 500px;
        flex-direction: column;
    }
    
    .zeo-search-results-sidebar {
        width: 100%;
        max-height: 250px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .zeo-search-results-preview {
        display: none;
    }
    
    .zeo-preview-image-wrapper {
        max-width: 250px;
    }
    
    .zeo-preview-title {
        font-size: 22px;
    }
    
    .zeo-preview-price {
        font-size: 28px;
    }

    .zeo-product-image {
        max-width: 80px;
    }
    
    .zeo-search-input {
        font-size: 14px;
        padding: 10px 16px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .zeo-search-container {
        padding: 3px;
    }
    
    .zeo-search-input {
        font-size: 14px;
        padding: 10px 14px;
    }
    
    .zeo-search-button {
        width: 36px;
        height: 36px;
    }
    
    .zeo-search-results {
        top: calc(100% + 8px);
        border-radius: 12px;
        max-height: 400px;
        flex-direction: column;
    }
    
    .zeo-search-results-sidebar {
        max-height: 200px;
        padding: 12px;
    }
    
    .zeo-search-results-preview {
        padding: 20px 15px;
    }
    
    .zeo-product-item {
        padding: 10px;
    }
    
    .zeo-product-image-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .zeo-product-title {
        font-size: 12px;
    }
    
    .zeo-product-price {
        font-size: 13px;
    }
    
    .zeo-brand-item {
        padding: 10px;
    }
    
    .zeo-brand-logo {
        width: 40px;
        height: 40px;
    }
    
    .zeo-preview-image-wrapper {
        max-width: 200px;
    }
    
    .zeo-preview-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .zeo-preview-price {
        font-size: 24px;
    }
    
    .zeo-preview-button {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .zeo-view-all {
        padding: 12px;
        font-size: 12px;
    }
}

/* Small mobile - Stack layout */
@media (max-width: 360px) {
    .zeo-search-results-sidebar {
        max-height: 180px;
    }
    
    .zeo-preview-image-wrapper {
        max-width: 160px;
    }
    
    .zeo-preview-title {
        font-size: 16px;
    }
    
    .zeo-preview-price {
        font-size: 20px;
    }
}

/* ========================================
   Dark Theme Variables (Optional)
   ======================================== */

.zeo-search-wrapper.dark-theme {
    --bg-primary: #000;
    --bg-secondary: #1a1a1a;
    --text-primary: #fff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --accent-color: #5856D6;
    --border-color: rgba(255, 255, 255, 0.1);
}

/* ========================================
   Accessibility
   ======================================== */

.zeo-search-input:focus {
    outline: 0;
    outline-offset: 0;
}

.zeo-search-button:focus {
    outline: 0;
    outline-offset:0;
}

.zeo-product-item:focus,
.zeo-brand-item:focus,
.zeo-view-all:focus {
    outline: 0;
    outline-offset: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .zeo-search-container,
    .zeo-search-button,
    .zeo-product-item,
    .zeo-brand-item,
    .zeo-view-all,
    .zeo-product-image {
        transition: none;
    }
    
    .zeo-search-results,
    .zeo-search-backdrop {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .zeo-search-container {
        border: 2px solid #fff;
    }
    
    .zeo-product-item,
    .zeo-brand-item {
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
}


/* ========================================
   Product Item Wrapper (Nuevo)
   Contiene el enlace del producto + botón móvil
   ======================================== */

.zeo-product-item-wrapper {
    position: relative;
    margin-bottom: 8px;
}

.zeo-product-item-wrapper:last-child {
    margin-bottom: 0;
}

/* ========================================
   Mobile Button - "Seleccionar opciones"
   Solo visible en móvil cuando NO hay preview
   
   CLASES:
   - .zeo-product-mobile-btn (identificador principal)
   - .zeo-search__mobile-action-btn (BEM, fuerza estilos)
   - .quick-view-btn (integración con modal)
   ======================================== */

.zeo-product-mobile-btn,
.zeo-search__mobile-action-btn {
    /* Layout - !important para evitar override */
    display: none !important; /* Oculto por defecto */
    width: 100% !important;
    padding: 12px 20px !important;
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
    
    /* Estilo - !important para evitar override */
    background: linear-gradient(135deg, #5856D6 0%, #6B5DD6 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    
    /* Tipografía - !important para evitar override */
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    letter-spacing: 0.3px !important;
    line-height: 1.2 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    text-decoration: none !important;
    text-transform: none !important;
    
    /* Interacción */
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    
    /* Estructura */
    position: relative !important;
    overflow: hidden !important;
    
    /* Reset de posibles estilos heredados */
    vertical-align: baseline !important;
    outline: none !important;
    box-shadow: none !important;
    min-height: auto !important;
    max-width: 100% !important;
}

/* Pseudo-elemento para efecto shine */
.zeo-product-mobile-btn::before,
.zeo-search__mobile-action-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: left 0.5s !important;
    pointer-events: none !important;
}

.zeo-product-mobile-btn:hover::before,
.zeo-search__mobile-action-btn:hover::before {
    left: 100% !important;
}

.zeo-product-mobile-btn:hover,
.zeo-search__mobile-action-btn:hover {
    background: linear-gradient(135deg, #6B5DD6 0%, #7E6FD6 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(88, 86, 214, 0.4) !important;
    color: #fff !important;
    border: none !important;
}

.zeo-product-mobile-btn:active,
.zeo-search__mobile-action-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(88, 86, 214, 0.3) !important;
}

/* Estado de carga (opcional, para futuro) */
.zeo-product-mobile-btn.loading,
.zeo-search__mobile-action-btn.loading {
    opacity: 0.7 !important;
    cursor: wait !important;
}

.zeo-product-mobile-btn.loading::after,
.zeo-search__mobile-action-btn.loading::after {
    content: '' !important;
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    margin-left: 8px !important;
    border: 2px solid #fff !important;
    border-top-color: transparent !important;
    border-radius: 50% !important;
    animation: spin 0.6s linear infinite !important;
}

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

/* ========================================
   Responsive Behavior
   ======================================== */

/* Tablet y móvil: Mostrar botón móvil */
@media (max-width: 768px) {
    .zeo-product-mobile-btn,
    .zeo-search__mobile-action-btn {
        display: block !important;
    }
    
    /* Ajuste de padding del wrapper para el botón */
    .zeo-product-item-wrapper {
        padding-bottom: 4px;
    }
}

/* Móvil pequeño: Botón más compacto */
@media (max-width: 480px) {
    .zeo-product-mobile-btn,
    .zeo-search__mobile-action-btn {
        padding: 10px 16px !important;
        font-size: 13px !important;
        margin-top: 6px !important;
    }
}

/* Desktop: Asegurar que el botón esté oculto */
@media (min-width: 769px) {
    .zeo-product-mobile-btn,
    .zeo-search__mobile-action-btn {
        display: none !important;
    }
}

/* ========================================
   Integration with Existing Styles
   ======================================== */

/* Asegurar que el product-item no se vea afectado */
.zeo-product-item-wrapper .zeo-product-item {
    /* El enlace mantiene sus estilos originales */
    margin-bottom: 0;
}

/* Cuando el botón está presente, ajustar espaciado */
.zeo-product-item-wrapper:has(.zeo-product-mobile-btn) .zeo-product-item {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Variante: Botón como parte visual del item en móvil */
@media (max-width: 768px) {
    .zeo-product-item-wrapper .zeo-product-item {
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }
}

/* ========================================
   Dark Mode Support (si tu tema lo usa)
   ======================================== */

@media (prefers-color-scheme: dark) {
    .zeo-product-mobile-btn,
    .zeo-search__mobile-action-btn {
        background: linear-gradient(135deg, #5856D6 0%, #6B5DD6 100%) !important;
    }
    
    .zeo-product-mobile-btn:hover,
    .zeo-search__mobile-action-btn:hover {
        background: linear-gradient(135deg, #6B5DD6 0%, #7E6FD6 100%) !important;
    }
}

/* ========================================
   Accessibility
   ======================================== */

/* Focus visible para navegación por teclado */
.zeo-product-mobile-btn:focus,
.zeo-search__mobile-action-btn:focus {
    outline: 2px solid #5856D6 !important;
    outline-offset: 2px !important;
}

/* Focus visible alternativo (para mejor contraste) */
.zeo-product-mobile-btn:focus-visible,
.zeo-search__mobile-action-btn:focus-visible {
    outline: 3px solid #5856D6 !important;
    outline-offset: 3px !important;
}

/* Reduce motion para usuarios con preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .zeo-product-mobile-btn,
    .zeo-search__mobile-action-btn,
    .zeo-product-mobile-btn::before,
    .zeo-search__mobile-action-btn::before {
        transition: none !important;
        animation: none !important;
    }
    
    .zeo-product-mobile-btn:hover,
    .zeo-search__mobile-action-btn:hover {
        transform: none !important;
    }
}

/* ========================================
   Estados especiales
   ======================================== */

/* Producto sin stock - botón deshabilitado */
.zeo-product-item-wrapper[data-out-of-stock="true"] .zeo-product-mobile-btn,
.zeo-product-item-wrapper[data-out-of-stock="true"] .zeo-search__mobile-action-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    cursor: not-allowed !important;
}

.zeo-product-item-wrapper[data-out-of-stock="true"] .zeo-product-mobile-btn:hover,
.zeo-product-item-wrapper[data-out-of-stock="true"] .zeo-search__mobile-action-btn:hover {
    transform: none !important;
    box-shadow: none !important;
}

