/**
 * Products Geolocalization - Styles
 *
 * Estilos adaptados para coincidir con el diseño de "Otros vendedores" de Dokan
 *
 * @package ProductsGeolocalization
 */

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.products-geoloc-container {
    clear: both;
    margin: 10px 0px 20px;
}

.products-geoloc-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.products-geoloc-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.products-geoloc-header-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    align-items: end;
}

/* Province Filter */
.products-geoloc-filter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.products-geoloc-filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.products-geoloc-filter-label i {
    color: #e74c3c;
    font-size: 14px;
}

.products-geoloc-province-filter {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.products-geoloc-province-filter:hover {
    border-color: #e74c3c;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.1);
}

.products-geoloc-province-filter:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

/* ============================================
   CITY SEARCH AUTOCOMPLETE
   ============================================ */
.products-geoloc-city-search-wrapper {
    position: relative;
}

.products-geoloc-city-search-container {
    position: relative;
    width: 100%;
}

.products-geoloc-city-search-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
    background: #ffffff;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.products-geoloc-city-search-input:hover {
    border-color: #9b59b6;
    box-shadow: 0 2px 6px rgba(155, 89, 182, 0.1);
}

.products-geoloc-city-search-input:focus {
    outline: none;
    border-color: #9b59b6;
    box-shadow: 0 0 0 4px rgba(155, 89, 182, 0.1);
}

.products-geoloc-city-search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Clear button */
.products-geoloc-clear-city-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: color 0.2s ease;
    z-index: 10;
}

.products-geoloc-clear-city-btn:hover {
    color: #e74c3c;
}

/* Autocomplete suggestions dropdown */
.products-geoloc-city-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.city-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
}

.city-suggestion-item:last-child {
    border-bottom: none;
}

.city-suggestion-item:hover {
    background: #f8f9fa;
}

.city-suggestion-item i {
    color: #9b59b6;
    font-size: 16px;
    flex-shrink: 0;
}

.city-suggestion-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.city-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.city-province {
    font-size: 12px;
    color: #666;
}

/* Loading state */
.city-suggestion-item.loading {
    justify-content: center;
    color: #999;
    cursor: default;
}

.city-suggestion-item.loading:hover {
    background: #fff;
}

/* No results */
.city-suggestion-item.no-results,
.city-suggestion-item.error {
    justify-content: center;
    color: #999;
    font-size: 13px;
    cursor: default;
}

.city-suggestion-item.no-results:hover,
.city-suggestion-item.error:hover {
    background: #fff;
}

.city-suggestion-item.error {
    color: #e74c3c;
}

/* City marker on map (purple) */
.city-marker {
    z-index: 900 !important; /* Below user marker, above vendor markers */
}

/* ============================================
   MAP CONTAINER
   ============================================ */
#products-geoloc-map-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

#products-geoloc-map {
    width: 100%;
    height: 500px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 1.21px 4.851px 27px 0px rgba(202, 210, 240, 0.2);
    border: 1px solid #edf2f7;
}

/* Loading state */
.products-geoloc-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 5px;
    z-index: 1000;
}

.products-geoloc-loading.hidden {
    display: none;
}

.products-geoloc-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e74c3c;
    border-radius: 50%;
    animation: products-geoloc-spin 1s linear infinite;
}

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

.products-geoloc-loading p {
    margin-top: 15px;
    color: #666;
    font-size: 16px;
}

/* ============================================
   BUTTONS
   ============================================ */
.products-geoloc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    height: 50px;
}

.products-geoloc-btn-primary {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.25);
}

.products-geoloc-btn-primary:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.products-geoloc-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

.products-geoloc-btn-primary:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.products-geoloc-btn-secondary {
    background: #ffffff;
    color: #333;
    border: 2px solid #e0e0e0;
}

.products-geoloc-btn-secondary:hover {
    background: #f8f9fa;
    border-color: #e74c3c;
    color: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.products-geoloc-btn-secondary:active {
    transform: translateY(0);
}

.products-geoloc-icon {
    flex-shrink: 0;
}

/* ============================================
   NEAREST STORE PANEL (estilo Dokan)
   ============================================ */
.products-geoloc-nearest-panel {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #e74c3c;
    border-radius: 5px;
    box-shadow: 1.21px 4.851px 27px 0px rgba(202, 210, 240, 0.2);
    animation: products-geoloc-slide-down 0.3s ease;
}

@keyframes products-geoloc-slide-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.products-geoloc-nearest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.products-geoloc-nearest-header h4 {
    margin: 0;
    color: #e74c3c;
    font-size: 20px;
    font-weight: 600;
}

.products-geoloc-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #666;
    transition: color 0.2s ease;
}

.products-geoloc-close-btn:hover {
    color: #e74c3c;
}

.products-geoloc-nearest-content {
    display: grid;
    gap: 15px;
}

.products-geoloc-nearest-store {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-gap: 30px;
    align-items: start;
    padding: 24px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.products-geoloc-nearest-store:last-child {
    margin-bottom: 0;
}

/* Left side - Main info */
.products-geoloc-store-info-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.products-geoloc-product-info {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.products-geoloc-product-thumbnail {
    width: 80px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.products-geoloc-product-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.products-geoloc-product-title {
    margin: 0;
    font-size: 13px;
    color: #555;
    font-weight: 600;
    line-height: 1.4;
}

.products-geoloc-store-name {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
}

.products-geoloc-store-address {
    color: #666;
    margin: 0;
    line-height: 1.7;
    font-size: 14px;
}

.products-geoloc-nearest-store p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

.products-geoloc-nearest-store p strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Right side - Badge, Distance, Actions */
.products-geoloc-store-info-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    min-width: 200px;
}

.products-geoloc-position-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    margin: 0;
}

.products-geoloc-store-distance {
    display: inline-block;
    padding: 8px 20px;
    background: #e74c3c;
    color: #ffffff;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
    margin: 0;
}

.products-geoloc-store-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    border-top: none;
}

/* Los botones en .products-geoloc-store-actions ahora usan las clases .products-geoloc-action-btn */
.products-geoloc-store-actions .products-geoloc-action-btn {
    /* Los estilos ya están definidos en las clases .map-btn, .store-btn, .product-btn, .whatsapp-btn */
}

.products-geoloc-store-actions button.products-geoloc-action-btn {
    /* Asegurar que los botones (como Ubicación) tengan el mismo estilo que los enlaces */
    border: none;
    cursor: pointer;
}

/* ============================================
   VENDOR LIST - ESTILO DOKAN TABLE
   ============================================ */
.products-geoloc-vendor-list {
    margin: 50px 0;
}

.products-geoloc-vendor-list h4 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.products-geoloc-results-count {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.products-geoloc-vendor-list-content {
    display: block;
}

/* Load More Button Container */
.products-geoloc-load-more-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    padding: 20px 0;
}

.products-geoloc-load-more-container .products-geoloc-btn {
    min-width: 250px;
    font-size: 15px;
}

/* Estilo de card horizontal (NO tabla) */
.products-geoloc-vendor-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 20px 30px;
    width: 100%;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.products-geoloc-vendor-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.products-geoloc-vendor-item.current {
    border: 1px solid #e3e3e3;
    background: #fef5f4;
}

/* Vendor info - lado izquierdo */
.products-geoloc-vendor-info {
    flex: 1;
    min-width: 0;
}

.products-geoloc-vendor-info h5 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.products-geoloc-vendor-address {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Price cell - centro */
.products-geoloc-vendor-price {
    flex-shrink: 0;
    margin: 0 30px;
    text-align: center;
}

.products-geoloc-price-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #999;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.products-geoloc-price-value {
    color: #ff5252 !important;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

/* Ensure WooCommerce price elements inherit the red color */
.products-geoloc-price-value .woocommerce-Price-amount,
.products-geoloc-price-value .amount,
.products-geoloc-price-value bdi {
    color: #ff5252 !important;
}

/* Action buttons - lado derecho */
.products-geoloc-vendor-actions {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Modern icon-only buttons - compactos y modernos */
.products-geoloc-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.products-geoloc-icon-btn i {
    font-size: 16px;
}

.products-geoloc-icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.products-geoloc-icon-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Ubicación Button */
.products-geoloc-icon-btn.map-btn {
    background: #4a5568;
    color: #fff;
}

.products-geoloc-icon-btn.map-btn:hover {
    background: #3a4456;
}

/* Cómo llegar Button */
.products-geoloc-icon-btn.directions-btn {
    background: #4a5568;
    color: #fff;
}

.products-geoloc-icon-btn.directions-btn:hover {
    background: #3a4456;
}

/* Ver tienda Button */
.products-geoloc-icon-btn.store-btn {
    background: #4a5568;
    color: #fff;
}

.products-geoloc-icon-btn.store-btn:hover {
    background: #3a4456;
}

/* Ver producto Button */
.products-geoloc-icon-btn.product-btn {
    background: #4a5568;
    color: #fff;
}

.products-geoloc-icon-btn.product-btn:hover {
    background: #3a4456;
}

/* WhatsApp Button */
.products-geoloc-icon-btn.whatsapp-btn {
    background: #4a5568;
    color: #fff;
}

.products-geoloc-icon-btn.whatsapp-btn:hover {
    background: #3a4456;
}

/* ============================================
   CUSTOM MAP POPUP
   ============================================ */
.products-geoloc-popup {
    font-family: inherit;
}

.products-geoloc-popup h5 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.products-geoloc-popup p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.products-geoloc-popup-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}

/* Icon buttons in popup use same styles as cards */
.products-geoloc-popup-actions .products-geoloc-icon-btn {
    width: 38px;
    height: 38px;
    font-size: 15px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media screen and (max-width: 767px) {
    .products-geoloc-container {
        padding: 15px;
        margin: 15px 0;
    }

    .products-geoloc-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .products-geoloc-title {
        font-size: 20px;
    }

    .products-geoloc-header-controls {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .products-geoloc-filter-wrapper {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .products-geoloc-province-filter {
        width: 100%;
    }

    /* City search responsive */
    .products-geoloc-city-search-wrapper {
        min-width: 100%;
        width: 100%;
    }

    .products-geoloc-city-search-input {
        width: 100%;
    }

    #products-geoloc-map {
        height: 400px;
    }

    .products-geoloc-btn {
        width: 100%;
        justify-content: center;
    }

    /* Tabla responsive estilo Dokan */
    .products-geoloc-vendor-item {
        display: block;
        padding: 0;
        width: 100%;
    }

    .products-geoloc-vendor-info,
    .products-geoloc-vendor-price,
    .products-geoloc-vendor-distance,
    .products-geoloc-vendor-actions {
        display: block;
        width: 100% !important;
        text-align: center;
        padding: 15px 20px;
    }

    .products-geoloc-vendor-info {
        padding-top: 20px;
    }

    .products-geoloc-vendor-info h5 {
        display: block;
        margin: 10px 0;
    }

    .products-geoloc-vendor-price,
    .products-geoloc-vendor-distance {
        padding: 10px 0;
    }

    .cell-title {
        display: none !important;
    }

    .products-geoloc-vendor-distance,
    .products-geoloc-vendor-actions {
        border-top: 1px solid #e5edf0;
        margin-top: 10px;
        padding: 15px 20px;
        text-align: center;
        justify-content: center;
    }

    .products-geoloc-icon-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .products-geoloc-store-actions {
        justify-content: center;
    }

    .products-geoloc-load-more-container .products-geoloc-btn {
        width: 100%;
        font-size: 14px;
    }

    /* Grid layout - Mobile: Single column */
    .products-geoloc-nearest-store {
        grid-template-columns: 1fr;
        grid-gap: 20px;
        padding: 20px;
    }

    .products-geoloc-store-info-right {
        align-items: flex-start;
        min-width: auto;
        width: 100%;
    }

    .products-geoloc-position-badge,
    .products-geoloc-store-distance {
        width: 100%;
        text-align: center;
    }

    .products-geoloc-store-actions {
        width: 100%;
        justify-content: center;
    }

    .products-geoloc-store-name {
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    #products-geoloc-map {
        height: 300px;
    }

    .products-geoloc-title {
        font-size: 18px;
    }

    .products-geoloc-btn {
        font-size: 14px;
        padding: 10px 16px;
    }

    .products-geoloc-vendor-info h5 {
        font-size: 18px;
    }

    .products-geoloc-vendor-price .price,
    .products-geoloc-vendor-distance .distance-value {
        font-size: 16px;
    }
}

/* ============================================
   HIDE DOKAN'S ORIGINAL VENDOR COMPARISON
   ============================================ */
/* Hide Dokan's original "Otros proveedores disponibles" section */
.dokan-other-vendor-camparison,
.dokan-other-vendor-comparison,
.dokan-other-vendor-custom-comparison,
.dokan-other-vendor-camparison-table,
.dokan-product-spmv-container,
.dokan-other-vendors-wrapper,
.product-sellers-wrap,
.dokan-product-sellers,
.dokan-product-seller-wrap,
.dokan-seller-listing-wrapper,
.dokan-other-seller,
#dokan-product-seller-listing,
.dokan-single-seller {
    display: none !important;
}

/* ============================================
   SINGLE PRODUCT PAGE CIRCULAR BUTTONS
   ============================================ */
/* Contenedor para botones circulares en página de producto individual */
.products-geoloc-single-buttons-container {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.products-geoloc-single-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Botones circulares más grandes para página de producto individual */
.products-geoloc-single-buttons .products-geoloc-icon-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
}

.products-geoloc-single-buttons .products-geoloc-icon-btn i {
    font-size: 20px;
}

/* Responsive para botones de producto individual */
@media screen and (max-width: 767px) {
    .products-geoloc-single-buttons {
        gap: 10px;
    }

    .products-geoloc-single-buttons .products-geoloc-icon-btn {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .products-geoloc-single-buttons .products-geoloc-icon-btn i {
        font-size: 22px;
    }
}

/* ============================================
   VENDOR CARD CIRCULAR BUTTONS (after vendor name/rating)
   ============================================ */
/* Contenedor para botones en tarjeta de vendedor (zona "Libreria Superior") */
.dokan-vendor-name .products-geoloc-vendor-card-buttons-container {
    margin: 10px 0 0 0;
    padding: 0;
}

.dokan-vendor-name .products-geoloc-vendor-card-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

/* Botones más pequeños para la tarjeta de vendedor */
.products-geoloc-vendor-card-buttons .products-geoloc-icon-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.products-geoloc-vendor-card-buttons .products-geoloc-icon-btn i {
    font-size: 16px;
}

/* Responsive para botones de vendor card */
@media screen and (max-width: 767px) {
    .products-geoloc-vendor-card-buttons {
        justify-content: center;
    }

    .products-geoloc-vendor-card-buttons .products-geoloc-icon-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .products-geoloc-vendor-card-buttons .products-geoloc-icon-btn i {
        font-size: 18px;
    }
}

/* ============================================
   MASTER CATALOG "VIEW VENDORS" BUTTON
   ============================================ */
/* Botón para productos del master catalog que lleva a la sección de vendedores */
.products-geoloc-master-catalog-button-container {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.products-geoloc-master-catalog-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 12px 24px !important;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    height: 50px !important;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.25) !important;
    min-width: 300px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

.products-geoloc-master-catalog-button:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.products-geoloc-master-catalog-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

.products-geoloc-master-catalog-button i {
    font-size: 18px !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

.products-geoloc-master-catalog-button span {
    font-size: 15px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

/* Responsive */
@media screen and (max-width: 767px) {
    .products-geoloc-master-catalog-button {
        min-width: 100% !important;
        padding: 12px 24px !important;
        font-size: 15px !important;
        height: 50px !important;
    }

    .products-geoloc-master-catalog-button i {
        font-size: 18px !important;
    }
}

/* ============================================
   HIDE VENDOR CARD FOR MASTER CATALOG
   ============================================ */
/*
 * Ocultar tarjeta de vendedor para productos del master catalog
 * Usamos :has() selector para ocultar el contenedor si contiene enlace al master catalog
 */
body.single-product .dokan-vendor-info-wrap:has(a[href*="/librerias/sebacastellucci/"]) {
    display: none !important;
}

/* Fallback para navegadores sin soporte de :has() */
@supports not selector(:has(*)) {
    body.single-product .dokan-vendor-info-wrap a[href*="/librerias/sebacastellucci/"] {
        display: none !important;
    }

    body.single-product .dokan-vendor-image:has(+ .dokan-vendor-info a[href*="/librerias/sebacastellucci/"]) {
        display: none !important;
    }
}
