/* assets/css/style.css */
:root {
    /* Streaming Juanex Light Theme */
    --primary: #0a1120;
    --secondary: #64748b;
    --accent: #2563eb;
    --bg-body: #ffffff;
    --bg-card: #ffffff;
    --nav-bg: #ffffff;
    --border: #d1d5db; /* Sharper line for 'nitid' look */
    --shadow: none;
    --shadow-premium: none; /* Clean header shadow */
    --celeste-accent: #00a8ff; /* New primary accent color */
    --radius-xl: 20px;
    --radius-lg: 16px;
    --juanex-celeste: #00a8ff;
}

/* Juanex Grid v3 - Consistent spacing */
.juanex-grid-v3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 5px;
}

@media (min-width: 768px) {
    .juanex-grid-v3 {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* Better responsiveness */
        gap: 20px;
    }
}

@media (min-width: 1200px) {
    .juanex-grid-v3 {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Auto-fill more cards when zooming out */
        gap: 40px;
    }
}

body {
    background-color: #ffffff !important;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    margin: 0;
}

/* Header & Location Bar */
.top-location-bar {
    background: #ffffff;
    padding: 8px 15px;
    border-bottom: none;
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center; /* Centering the text */
    gap: 8px;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.top-location-bar::-webkit-scrollbar { display: none; }
.top-location-bar i { color: #94a3b8; }

.navbar-juanex {
    background: var(--nav-bg);
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eee;
}
.brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}

/* Search Bar v3 */
.search-wrapper-v3 {
    position: relative;
    width: 280px !important; /* Final refinement for a balanced look */
}
.search-input-v3 {
    width: 100%;
    padding: 12px 15px 12px 40px; /* Space for left icon */
    border-radius: 10px;
    border: 1px solid var(--border);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: #fff;
    color: var(--primary);
}
.search-input-v3:hover {
    border-color: var(--celeste-accent);
}
.login-icon-v3 {
    width: 36px; /* Reducido ligeramente de 40px a 36px */
    height: 36px; /* Reducido ligeramente de 40px a 36px */
    border-radius: 8px; /* Ajustado proporcionalmente */
    border: 1.2px solid rgba(15, 23, 42, 0.7);
    background: #fff;
    cursor: pointer;
    font-size: 1.1rem; /* El icono se mantiene del mismo tamaño */
    color: rgba(15, 23, 42, 0.7);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-icon-v3:hover {
    color: var(--celeste-accent);
    border-color: var(--celeste-accent);
    transform: scale(1.1);
    background: #fff;
}
.search-input-v3:focus {
    outline: none;
    border-color: var(--celeste-accent);
    background: #fff;
    box-shadow: none;
}
.search-icon-left {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #43647f; /* Matching reference blue */
    font-size: 1rem;
    pointer-events: none;
    z-index: 5;
}

/* Unified Category + Controls row */
.flex-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

/* Category Slider - Adjusted for side-by-side */
.categories-container {
    flex: 1;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 5px 0;
}
.categories-container::-webkit-scrollbar { display: none; }

.cat-pill-v3 {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--border); /* Standardized for thin line match */
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}
.cat-pill-v3 i {
    font-size: 0.8rem;
}
.cat-pill-v3:hover {
    border-color: var(--celeste-accent);
    color: var(--celeste-accent);
}
.cat-pill-v3.active {
    background: var(--celeste-accent);
    border-color: var(--celeste-accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.3);
}

/* Controls (Sorting/Layout) - Now part of flex-row */
.controls-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}
.layout-toggle {
    display: flex;
    background: #fff;
    padding: 2px;
    border-radius: 8px;
    border: 1px solid var(--border); /* Standardized for thin line match */
}
.toggle-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #64748b;
}
.toggle-btn.active {
    background: #fff;
    color: #0f172a;
    box-shadow: none;
}

/* Product Card v3 */
.product-card-v3 {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border); /* Standardized for thin line match */
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card-v3:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
    border-color: rgba(0, 168, 255, 0.35);
}

.card-img-area {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px; /* Extra image size */
}

.product-icon-3d {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill the area since images are backgrounds */
    border-radius: 12px; /* Distinct rounded corners */
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(110deg, #f1f5f9 8%, #f8fafc 18%, #f1f5f9 33%);
    background-size: 200% 100%;
    animation: img-shimmer 1.4s linear infinite;
}
.product-icon-3d.loaded {
    animation: none;
    background: none;
}

.product-card-v3:hover .product-icon-3d {
    transform: scale(1.06);
}

@keyframes img-shimmer {
    to { background-position-x: -200%; }
}

/* Sold-out state */
.product-card-v3.is-sold-out .card-img-area {
    position: relative;
}
.product-card-v3.is-sold-out .product-icon-3d {
    filter: grayscale(1) brightness(0.92);
}
.product-card-v3.is-sold-out:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
}
.product-card-v3.is-sold-out:hover .product-icon-3d {
    transform: none;
}

/* No more overlays or pills for minimalist look */
.price-tag-v3, .badge-perfil-v3 {
    display: none !important;
}

.card-body-v3 {
    padding: 8px 14px 10px; /* Fine-tuned vertical spacing */
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.title-v3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1A2732; /* Specifically requested color */
    margin: 0 0 6px 0;
    line-height: 1.3;
}
.desc-v3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #1a4160;
    margin-bottom: 8px; /* Refined gap before price */
}

.footer-v3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.price-v3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A2732;
    white-space: nowrap;
}
.add-btn-v3 {
    width: auto;
    height: 32px; /* Slimmer for compact look */
    padding: 0 12px;
    border-radius: 8px; /* Slightly more square as the ref */
    background: #fff;
    border: 1px solid var(--border) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A2732; /* Specifically requested color */
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s;
}
.add-btn-v3:hover {
    border-color: var(--celeste-accent) !important;
    color: var(--celeste-accent);
    background: #fff;
}

/* Juanex Minimalist style - No overlays */

/* Product Cards */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.product-img-box {
    border-radius: var(--radius-md);
    aspect-ratio: 3 / 2;
    height: auto;
    width: calc(100% - 10px);
    margin: 5px auto 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 50%, #f0f9ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.glass-card:hover .product-img-box img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    z-index: 2;
}

.product-ribbon {
    position: absolute;
    top: 12px;
    left: -35px;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 3px 40px;
    transform: rotate(-45deg);
    text-transform: uppercase;
    box-shadow: none;
    letter-spacing: 1px;
    z-index: 3;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.badge-perfil {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    box-shadow: none;
}

.badge-cuenta {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
    box-shadow: none;
}

.card-content {
    padding: 0 15px 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary);
}

.product-rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.product-rating {
    margin-bottom: 0;
    display: flex;
    gap: 4px;
    color: #fbbf24;
    font-size: 0.9rem;
    filter: none;
}

.stock-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.stock-label.stock-high {
    color: #16a34a;
    border-color: #16a34a;
}

.stock-label.stock-mid,
.stock-label.stock-low {
    color: #d97706;
    border-color: #d97706;
}

.stock-label.stock-empty {
    color: #dc2626;
    border-color: #dc2626;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6rem;
}

/* Price Container (keep simple as it was) */
.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: 10px;
}

.btn-orange-action {
    background: var(--orange-gradient);
    color: #fff !important;
    text-decoration: none !important;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    margin-left: 10px;
}

.btn-orange-action:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: none;
    filter: brightness(1.1);
}

.btn-orange-action:disabled {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
}



/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.6);
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.pagination-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-page-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.6);
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-page-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.pagination-page-btn.active {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    box-shadow: var(--shadow);
    transform: scale(1.05);
}

.pagination-dots {
    padding: 0 4px;
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.9rem;
    user-select: none;
}

@media (max-width: 768px) {
    .pagination-container {
        gap: 6px;
        margin-top: 24px;
        padding: 12px 0;
    }

    .pagination-btn {
        padding: 8px 14px;
        font-size: 0.75rem;
        border-radius: 8px;
    }

    .pagination-page-btn {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
        border-radius: 8px;
    }
}

/* WhatsApp Float Container */
.whatsapp-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    z-index: 1000;
}

.whatsapp-button-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}


.assistant-container {
    position: relative; /* allow absolute panel positioning */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.assistant-toggle {
    position: relative;
    background: linear-gradient(135deg, #111827, #0b1220);
    color: #f8fafc;
    border: none;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease;
}

.assistant-toggle:hover {
    transform: translateY(-3px) scale(1.03);
}

.assistant-icon {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
}

.assistant-toggle .assistant-label { display: none; }


.assistant-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 14px;
    background: rgba(7, 14, 30, 0.98);
    border-radius: 24px;
    padding: 12px;
    width: 300px;
    max-width: calc(100vw - 20px);
    max-height: 350px;
    box-shadow: 0 34px 70px rgba(0, 0, 0, 0.34);
    border: 1px solid rgba(148, 163, 184, 0.14);
    transform-origin: bottom right;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 1200;
}

.assistant-panel.open {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.assistant-toggle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(79,70,229,0.08), transparent 45%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse-radar 2.2s infinite;
    opacity: 0.9;
}

.assistant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: #f8fafc;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.assistant-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.assistant-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    flex-shrink: 0;
}

.assistant-header-titles {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.assistant-header strong {
    font-size: 0.88rem;
    letter-spacing: -0.02em;
    font-family: 'Outfit', sans-serif;
}

.assistant-status {
    font-size: 0.72rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.assistant-header p {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: #94a3b8;
}

.assistant-header-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

#assistantClose, #assistantNewChat {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

#assistantClose:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

#assistantNewChat:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.assistant-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding-right: 4px;
    min-height: 160px;
    max-height: 260px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.assistant-messages::-webkit-scrollbar {
    display: none;
}

.assistant-message {
    padding: 12px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    max-width: 100%;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.assistant-message--bot {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    align-self: flex-start;
    border: 1px solid rgba(148, 163, 184, 0.10);
}

/* Suggestion chips */
.suggestion-chip {
    background: rgba(255,255,255,0.08);
    color: #94a3b8;
    border: 1px solid rgba(148,163,184,0.2);
    border-radius: 12px;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.suggestion-chip:hover {
    background: rgba(255,255,255,0.15);
    color: #f8fafc;
}

/* Message actions */
.message-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.message-actions button {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.85rem;
}
.message-actions button:hover {
    color: #f8fafc;
}

/* Timestamp */
.timestamp {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 2px;
}

/* Double check (read receipt) */
.double-check {
    color: #10b981;
    margin-left: 4px;
}

.assistant-message--user {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    align-self: flex-end;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.assistant-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.assistant-input-row input {
    flex: 1;
    min-width: 0;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}

.assistant-input-row input:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.5);
}

.assistant-input-row input::placeholder {
    color: #64748b;
    font-size: 0.82rem;
}

.assistant-input-row button {
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.assistant-input-row button:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.assistant-input-row button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.assistant-note {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: right;
    margin-top: -4px;
}

.whatsapp-bubble {
    background: #ffffff !important;
    color: #1A2732 !important; /* Specifically requested color */
    padding: 10px 16px;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    font-family: 'Inter', sans-serif; /* Matches product descriptions */
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    position: relative;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: none;
    pointer-events: none;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-bubble::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 8px solid #fff;
}

.cart-float {
    width: 50px !important; /* Slightly reduced as requested */
    height: 50px !important; /* Slightly reduced as requested */
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: var(--shadow);
    border: none;
    transition: all 0.3s;
    text-decoration: none;
    position: relative;
}

@media (max-width: 480px) {
    .whatsapp-container {
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-bubble {
        font-size: 0.75rem;
        font-family: 'Inter', sans-serif;
        padding: 7px 12px;
        margin-right: 10px;
    }
}

.cart-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
    animation: pulse-radar 2s infinite;
    opacity: 0.7;
}

@keyframes pulse-radar {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.cart-float:hover {
    transform: scale(1.1);
}

@keyframes cart-bump {
    0% { transform: scale(1); }
    30% { transform: scale(1.25); }
    55% { transform: scale(0.95); }
    100% { transform: scale(1); }
}
.login-icon-v3.cart-bump {
    animation: cart-bump 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    font-size: 0.75rem;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    border: 3px solid #fff;
}

/* Detalles button in cart — matches category pill hover */
.details-toggle-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: #1A2732;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 10px;
    height: 28px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
}
.details-toggle-btn:hover {
    border-color: var(--celeste-accent);
    color: var(--celeste-accent);
}

/* Cart close button — FA circle-xmark */
.cart-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: #94a3b8;
    padding: 0;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}
.cart-close-btn:hover {
    color: #ef4444;
    transform: scale(1.15);
}

/* Cart delete button — FA trash-can */
.cart-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    color: #94a3b8;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.cart-delete-btn:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* Offcanvas */
.offcanvas {
    background: linear-gradient(to bottom, #ffffff, #f1f5f9);
    color: var(--primary);
    border-left: 2px solid rgba(59, 130, 246, 0.15);
    box-shadow: none;
    backdrop-filter: blur(20px);
}

.offcanvas-header {
    padding: 30px;
    border-bottom: 1px solid var(--border);
}

.btn-close {
    background-color: var(--border);
    padding: 10px;
    border-radius: 50%;
    opacity: 0.8;
    filter: invert(1);
}

/* Responsive Grid */
@media (max-width: 768px) {

    /* Hide scrollbar but allow scrolling - Aggressive fix */
    html,
    body {
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        background: transparent !important;
    }

    .container {
        padding: 0 15px;
    }

    .hero {
        text-align: center;
        padding-top: 100px;
    }

    .hero p {
        margin: 0 auto 2.5rem;
    }

    .search-container {
        margin: 0 auto;
    }

    /* Keep cards beautiful on mobile */
    .product-title {
        font-size: 0.95rem;
        margin-bottom: 3px;
    }

    .product-desc {
        font-size: 0.72rem;
        height: 2.1rem;
        margin-bottom: 5px;
    }

    .product-price {
        font-size: 0.9rem;
        letter-spacing: -1px;
    }

    .glass-card {
        padding: 0;
    }

    .card-content {
        padding: 8px 10px 10px;
    }

    .product-rating-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 5px;
        width: 100%;
    }

    .product-rating {
        font-size: 0.7rem;
        gap: 2px;
    }

    .stock-label {
        font-size: 0.55rem;
        padding: 2px 6px;
        white-space: nowrap;
        width: fit-content;
        letter-spacing: 0;
    }

    .product-price-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 4px;
        margin-top: 5px;
    }

    .btn-orange-action {
        width: auto;
        height: auto;
        min-width: auto;
        background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
        border: none !important;
        color: #fff !important;
        padding: 4px 10px;
        margin-left: 0;
        flex-shrink: 0;
        box-shadow: none !important;
        border-radius: 6px;
        font-size: 0.55rem;
        font-weight: 900;
        letter-spacing: 0.5px;
    }

    .btn-content-mobile i {
        font-size: 1.1rem;
    }

    .btn-plus-overlay {
        position: absolute;
        top: -6px;
        right: -8px;
        background: linear-gradient(135deg, #3b82f6, #1d4ed8);
        color: #fff;
        font-size: 0.7rem;
        font-weight: 900;
        width: 16px;
        height: 16px;
        border-radius: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: none;
        border: 1px solid #fff;
    }

    .product-badge {
        font-size: 0.45rem;
        padding: 3px 6px;
        top: 8px;
        right: 8px;
    }

    .product-ribbon {
        font-size: 0.55rem;
        padding: 2px 30px;
        top: 8px;
        left: -30px;
    }

    .btn-add {
        width: 38px;
        height: 38px;
    }

    .mini-plus {
        top: 10px;
        left: 20px;
    }
}

/* Extra small devices optimization */
@media (max-width: 380px) {
    .product-title {
        font-size: 0.85rem;
    }

    .product-price {
        font-size: 0.9rem;
        letter-spacing: -1px;
    }

    .btn-orange-action {
        font-size: 0.6rem;
    }
}

/* Vertical Mobile Menu - Large Breakpoint (Tablets and Mobiles) */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 1rem;
        border-radius: 1rem;
        margin-top: 1rem;
        border: 1px solid var(--border);
        box-shadow: none;
    }

    .category-navbar {
        display: flex;
        flex-direction: column !important;
        width: 100%;
        gap: 0.8rem;
        overflow-x: hidden;
        padding-bottom: 0;
        mask-image: none;
        -webkit-mask-image: none;
        height: auto;
    }

    .pill-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        white-space: normal;
        margin: 0 !important;
        background: rgba(59, 130, 246, 0.05);
        /* Light blue tint for light bg */
        padding: 12px;
        font-size: 1rem;
        color: var(--secondary);
        /* Darker text */
    }

    .pill-btn:hover,
    .pill-btn.active {
        background: var(--accent-gradient);
        transform: translateX(5px);
    }

    /* Adjust Admin button container in mobile */
    .navbar-collapse>.d-flex {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border);
    }

    .navbar-collapse>.d-flex .btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
}

/* Custom Desktop Container Width */
/* Custom Desktop Container Width */
@media (min-width: 1200px) {
    .container.main-custom-container {
        max-width: 1200px;
        /* Expanded width with small margins */
    }
}

/* Custom Login Button */
.btn-login-custom {
    background: var(--accent-gradient) !important;
    box-shadow: none !important;
    color: #fff !important;
    transition: all 0.3s ease;
}

.btn-login-custom:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af) !important;
    box-shadow: none !important;
    transform: translateY(-2px);
}

/* ── Navbar Search (always visible) ── */
.nav-search {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    height: 38px;
    gap: 0;
}

.nav-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 38px;
    background: transparent;
    border: none;
    cursor: default;
    color: #64748b;
    font-size: 1rem;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
}

.nav-search-input {
    width: 130px;
    opacity: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: var(--primary);
    padding: 0 4px;
    pointer-events: auto;
}

.nav-search-input::placeholder {
    color: #94a3b8;
}

@media (max-width: 991.98px) {
    .nav-search-input {
        width: 80px;
        opacity: 1;
        padding: 0 4px;
        pointer-events: auto;
        font-size: 0.85rem;
    }
    .nav-search {
        margin-right: 0;
    }
    .navbar-toggler {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4px 6px;
    }
}

/* ============================================
   🚀 PRO UPGRADE — FuxLatin Premium Design
   ============================================ */

/* ── Enhanced Shadow Variables ── */
:root {
    --shadow-card: none;
    --shadow-card-hover: none;
    --shadow-btn-orange: none;
    --shadow-btn-orange-hover: none;
}

[data-theme="light"] {
    --shadow-card: none;
    --shadow-card-hover: none;
}

/* ── Override Card Shadows (legacy glass-card kept for non-card uses) ── */
/* Cards are now Tailwind-styled — shadow handled via shadow-card / shadow-card-hover classes */

/* ── Price: handled via inline style on Tailwind cards ── */

/* ── Button: handled via Tailwind on .btn-buy-action ── */

/* ── Trust Bar ── */
.trust-bar {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    z-index: 1029;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 7px 0;
}

.trust-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.74rem;
    font-weight: 750;
    color: var(--secondary);
    letter-spacing: 0.2px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s;
}

.trust-item i {
    color: var(--accent);
    font-size: 0.85rem;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .trust-bar-inner {
        gap: 14px;
    }
    .trust-item {
        font-size: 0.68rem;
        gap: 5px;
    }
}

@media (max-width: 400px) {
    .trust-item span {
        display: none;
    }
    .trust-item i {
        font-size: 1.05rem;
    }
    .trust-bar-inner {
        gap: 22px;
    }
}

/* ── Section Header ── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 850;
    color: var(--primary);
    margin: 0;
    letter-spacing: -0.5px;
}

.section-title .highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-count-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(59, 130, 246, 0.09);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.2px;
    transition: all 0.3s;
}

/* ── Card Entrance Animation ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-item {
    animation: fadeInUp 0.45s ease both;
}

.product-item:nth-child(1)  { animation-delay: 0.04s; }
.product-item:nth-child(2)  { animation-delay: 0.08s; }
.product-item:nth-child(3)  { animation-delay: 0.12s; }
.product-item:nth-child(4)  { animation-delay: 0.16s; }
.product-item:nth-child(5)  { animation-delay: 0.20s; }
.product-item:nth-child(6)  { animation-delay: 0.24s; }
.product-item:nth-child(7)  { animation-delay: 0.28s; }
.product-item:nth-child(8)  { animation-delay: 0.32s; }
.product-item:nth-child(9)  { animation-delay: 0.36s; }
.product-item:nth-child(10) { animation-delay: 0.40s; }
.product-item:nth-child(11) { animation-delay: 0.44s; }
.product-item:nth-child(12) { animation-delay: 0.48s; }

/* ── Premium Footer ── */
.site-footer {
    background: var(--glass);
    border-top: 1px solid var(--border);
    padding: 0 0 18px;
    margin-top: 10px;
}

.footer-brand {
    display: none;
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--secondary);
    margin: 0 0 18px;
    font-weight: 500;
}

.footer-badges {
    display: flex;
    margin-top: 15px;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--secondary);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 100px;
    transition: all 0.2s;
}

.site-footer .footer-badges .footer-badge i,
.site-footer .footer-badges .footer-badge svg {
    color: #94a3b8 !important;
    fill: #94a3b8 !important;
    font-size: 0.8rem;
}

.footer-payments {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.footer-payment-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: #fff;
    letter-spacing: 0.2px;
}
.footer-payment-badge.yape { background: linear-gradient(135deg, #78197b, #4b1057); }
.footer-payment-badge.plin { background: linear-gradient(135deg, #00c2a8, #009e88); }
.footer-payment-badge.cards { background: linear-gradient(135deg, #1e293b, #0f172a); }
.footer-payment-badge i { font-size: 0.85rem; }

.footer-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0 14px;
}

.footer-copy {
    font-size: 0.76rem;
    color: var(--secondary);
    margin: 0;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 576px) {
    .site-footer { padding: 26px 0 14px; }
    .footer-brand { font-size: 1.2rem; }
    .footer-badges { gap: 6px; }
    .footer-badge { font-size: 0.67rem; padding: 4px 10px; }
}

/* ── Navbar Enhanced Shadow ── */
.glass-nav {
    box-shadow: none !important;
}

/* ── Pagination Light Theme Fix ── */
[data-theme="light"] .pagination-btn,
[data-theme="light"] .pagination-page-btn {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--primary);
}

/* ── No Results State ── */
.no-results-v3 {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    width: 100%;
}

.no-results-icon-v3 {
    width: 80px;
    height: 80px;
    background: #f1f5f9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #94a3b8;
    font-size: 2.5rem;
}

.no-results-title-v3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.no-results-text-v3 {
    font-size: 0.9rem;
    color: #64748b;
}

/* ── Mobile Layout Restructuring & Search ── */
@media (max-width: 767px) {
    .navbar-juanex {
        padding: 12px 0;
    }
    .brand-name {
        font-size: 1.15rem;
    }
    .top-location-bar {
        justify-content: center;
        padding: 8px 5px;
        background: transparent;
        font-size: 0.72rem;
    }
    .login-icon-v3 {
        width: 36px; /* Reducido ligeramente de 40px a 36px */
        height: 36px; /* Reducido ligeramente de 40px a 36px */
        border-radius: 8px; /* Ajustado proporcionalmente */
        border: 1.2px solid rgba(15, 23, 42, 0.7);
        background: #fff;
        font-size: 1.1rem; /* El icono se mantiene del mismo tamaño */
        color: rgba(15, 23, 42, 0.7);
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .login-icon-v3:hover {
        opacity: 1;
        color: #0f172a;
        border-color: #0f172a;
    }
    .mobile-search-box {
        position: relative;
        width: 100%;
    }
    .mobile-search-input {
        width: 100%;
        padding: 12px 15px 12px 42px;
        border-radius: 12px;
        border: 1px solid var(--border);
        font-family: 'Inter', sans-serif;
        font-size: 0.95rem;
        background: #fff;
        transition: all 0.3s;
        color: var(--primary);
    }
    .mobile-search-input:focus {
        outline: none;
        border-color: var(--celeste-accent);
    }
    .mobile-search-icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
        font-size: 1rem;
    }
    .price-v3 {
        font-size: 0.88rem; /* Extra reduction for mobile */
    }
    .add-btn-v3 {
        padding: 0 8px; /* Extra reduction for mobile */
        font-size: 0.72rem;
    }
}

/* ── Hide elements on PC ── */
@media (min-width: 768px) {
    .mobile-search-container {
        display: none !important;
    }
}