:root {
    --bg-color: #121212;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent: #bc6ff1; /* Lila Oscuro Medio Neon */
    --accent-hover: #d285ff;
    --accent-glow: rgba(188, 111, 241, 0.35);
    --glass-bg: rgba(14, 14, 20, 0.96);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.5);
    --border-color: #2e2e2e;
    --red: #ef4444;
    --green: #10b981;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
    background-color: #050505; /* Prevents white flash on mobile/trackpad overscroll */
    overscroll-behavior-y: none; /* Prevents rubber-banding bounce effect */
}
body { 
    font-family: 'Inter', sans-serif; 
    background: radial-gradient(circle at top center, #242424 0%, #050505 100%); 
    background-attachment: fixed;
    background-color: #050505;
    color: var(--text-primary); 
    line-height: 1.6;
}
h1, h2, h3 { 
    font-family: 'Outfit', sans-serif; 
    text-transform: uppercase;
    letter-spacing: 2px;
}
.highlight { color: var(--accent); font-weight: 700; }

.hero { 
    padding: 6rem 1.5rem 4rem; 
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}
.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    text-align: left;
}
.hero h1 { 
    font-size: 5rem; /* Massive typography */
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}
.side-logo {
    max-height: 120px; /* Tamaño del cubo VEXinWorks al lado */
    max-width: 100%;
    filter: drop-shadow(0 0 10px rgba(188, 111, 241, 0.4)); 
}
.hero p { 
    color: var(--text-secondary); 
    font-size: 1.1rem; 
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .hero-content { flex-direction: column; text-align: center; justify-content: center; }
    .hero h1 { font-size: 3.5rem; }
    .side-logo { max-height: 80px; margin-top: 1rem; }
}
@media (max-width: 480px) {
    .hero { padding: 3rem 1rem 2rem; }
    .hero h1 { font-size: 2.6rem; }
    .hero p { font-size: 0.9rem; }
    .side-logo { max-height: 60px; }
}

.container { max-width: 1300px; margin: 0 auto; padding: 0 1.5rem 5rem; }

.category-tabs { 
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
/* Mobile: responsive friendly wrap instead of overflow scroll */
@media (max-width: 600px) {
    .category-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding-bottom: 0.75rem;
        margin-bottom: 1.5rem;
    }
    .desktop-only { display: none !important; }
}
@media (min-width: 601px) {
    .mobile-only { display: none !important; }
}
.tab-btn { 
    background: transparent; 
    color: var(--text-secondary); 
    border: 1px solid transparent;
    padding: 0.4rem 1rem;
    cursor: pointer; 
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    position: relative;
    outline: none;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}
.tab-btn:hover { color: var(--text-primary); border-color: #555; }
.tab-btn.active { 
    color: var(--text-primary);
    border-color: var(--accent);
    background: rgba(188, 111, 241, 0.12);
}
.tab-btn.active::after {
    display: none; /* underline replaced by pill border */
}

/* Mobile Category Modal Items */
.mobile-cat-card {
    background: #242424;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.mobile-cat-card.selected {
    background: rgba(188, 111, 241, 0.2);
    border-color: var(--accent);
    box-shadow: inset 0 0 15px rgba(188, 111, 241, 0.2);
}
.mobile-cat-card span.emoji {
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}
.mobile-cat-card span.label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ── Smart Search Bar ─────────────────────────────── */
#smartSearchWrapper {
    width: 100%;
    max-width: 680px;
    margin: 0 auto 18px;
}
#smartSearchBox {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: 99px;
    padding: 10px 18px;
    transition: border-color 0.25s, box-shadow 0.25s;
}
#smartSearchBox:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(188,111,241,0.18), 0 4px 24px rgba(188,111,241,0.12);
}
#searchIcon { font-size: 1rem; opacity: 0.5; flex-shrink: 0; }
#smartSearchInput {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    min-width: 0;
}
#smartSearchInput::placeholder { color: #555; }
#searchClearBtn {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 2px 4px;
    border-radius: 50%;
    display: none;
    transition: color 0.2s;
}
#searchClearBtn:hover { color: var(--accent); }
#searchMeta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 0 8px;
    font-size: 0.8rem;
    color: #666;
}
#searchResultCount { color: var(--accent); font-weight: 700; }
mark.search-hl {
    background: rgba(188,111,241,0.28);
    color: var(--accent);
    border-radius: 3px;
    padding: 0 2px;
    font-weight: 700;
}
@media (max-width: 600px) {
    #smartSearchBox { padding: 8px 14px; }
    #smartSearchInput { font-size: 0.85rem; }
}

.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 2rem; 
}
/* 2 columns on mobile */
@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

.card { 
    background: var(--bg-card); 
    border: 1px solid var(--border-color);
    cursor: pointer; 
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; 
    display: flex; 
    flex-direction: column; 
    border-radius: 8px;
    overflow: hidden;
}
.card:hover { 
    transform: translateY(-6px); 
    border-color: rgba(188, 111, 241, 0.5);
    box-shadow: 0 12px 40px rgba(188, 111, 241, 0.15), 0 4px 16px rgba(0,0,0,0.5);
}

.card-img-wrapper { 
    width: 100%; 
    height: 260px; 
    background: radial-gradient(circle at center, #2e2e2e 0%, #0d0d0d 100%); 
    display:flex; 
    align-items:center; 
    justify-content:center; 
    position: relative;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}
@media (max-width: 600px) { .card-img-wrapper { height: 140px; } }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; opacity: 0; transition: opacity 0.5s;}
.card-img-wrapper img.loaded { opacity: 1; filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.8)); }
.card:hover .card-img-wrapper img { transform: scale(1.05); transition: transform 0.5s; }

.thumb-loader {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.touch-indicator { 
    position: absolute; 
    top: 15px; 
    left: 15px; 
    z-index: 10; 
    background: rgba(30,30,30,0.8); 
    padding: 8px; 
    border-radius: 50%; 
    opacity: 0.6; 
    backdrop-filter: blur(4px);
    transition: opacity 0.3s, background 0.3s; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.card:hover .touch-indicator { 
    opacity: 1; 
    background: var(--accent);
}

.card-content { padding: 1.5rem; }
.card-title { font-size: 1.1rem; margin-bottom: 0.5rem; letter-spacing: 1px; }
.card-price { font-weight: 600; color: var(--accent); font-size: 1.1rem; font-family: 'Inter', sans-serif; }
@media (max-width: 600px) {
    .card-content { padding: 0.75rem; }
    .card-title { font-size: 0.75rem; letter-spacing: 0.5px; }
    .card-price { font-size: 0.85rem; }
}


/* Modal */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 1000; backdrop-filter: blur(8px);}
.modal.show { opacity: 1; visibility: visible; }
.glass {
    background: linear-gradient(145deg, rgba(18, 10, 30, 0.98) 0%, rgba(14, 14, 22, 0.99) 100%);
    border-radius: 12px;
    border: 1px solid rgba(188, 111, 241, 0.2);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(188, 111, 241, 0.06), inset 0 1px 0 rgba(255,255,255,0.04);
}
#itemModal .modal-content {
    animation: modalSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-content { width: 95%; max-width: 1200px; max-height: 90vh; padding: 4rem 3rem 3rem; position: relative; overflow-y: auto; }
@media (max-width: 600px) {
    .modal-content {
        width: 100%;
        max-height: 100dvh;
        height: 100dvh;
        border-radius: 0;
        padding: 1rem;
        overflow-y: auto;
    }
    .modal { align-items: flex-end; }
    .close-btn { top: 0.75rem; left: 0.75rem; right: auto; font-size: 1.8rem; }
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
    padding: 0;
}
.close-btn:hover { color: var(--accent); transform: translateX(-3px); }


.modal-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4rem; }
@media (max-width: 900px) { .modal-body { grid-template-columns: 1fr; gap: 2rem; } }

/* 3D Viewer Container */
.viewer-container { width: 100%; height: 500px; background: transparent; border: 1px solid var(--border-color); border-radius: 4px; overflow: hidden; position: relative; }
@media (max-width: 600px) { .viewer-container { height: 260px; } }
.viewer-container canvas { width: 100% !important; height: 100% !important; display: block; outline: none; }
@media (max-width: 600px) { .viewer-container canvas { touch-action: none; } }
.loading-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-weight: 500; font-size: 0.9rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 2px;}

.modal-info h2 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--text-primary); }
.description-box { color: var(--text-secondary); margin-bottom: 2rem; white-space: pre-wrap; font-size: 1rem; }

/* Forms & Pricing */
.price-section {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(20, 12, 35, 0.9) 0%, rgba(16, 16, 26, 0.95) 100%);
    border: 1px solid rgba(188, 111, 241, 0.18);
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 4px 20px rgba(0,0,0,0.4);
}

.form-group { margin-bottom: 1.5rem; }
.form-row { display: flex; gap: 1.5rem; }
.form-half { flex: 1; }

.price-section label { display: flex; align-items: center; font-weight: 500; margin-bottom: 0.5rem; color: var(--text-secondary); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px;}

.form-select { 
    width: 100%; 
    padding: 0.85rem 1.2rem; 
    border: 1px solid var(--border-color); /* Windows 11 base border */
    border-radius: 8px; /* Fluent UI smooth edges */
    font-family: 'Inter', sans-serif; 
    font-size: 0.95rem; 
    background: #1c1c1c; 
    color: #fff; 
    cursor: pointer; 
    outline: none; 
    transition: all 0.25s ease-in-out; 
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.02);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}
.form-select:hover {
    border-color: #555;
    background: #242424;
}
.form-select:focus { 
    border-color: var(--accent); 
    box-shadow: 0 0 0 2px rgba(188, 111, 241, 0.3);
}

/* Tooltip */
.info-tooltip { position: relative; margin-left: 8px; display: inline-flex; }
.info-icon { background: #333; color: #fff; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; display: flex; align-items: center; justify-content: center; cursor: help; font-weight: bold; margin-bottom:2px;}
.tooltip-content { position: absolute; bottom: 140%; right: -50px; width: 280px; padding: 1.2rem; background: var(--accent); color: #fff; border-radius: 4px; font-size: 0.85rem; font-weight: 400; opacity: 0; visibility: hidden; transition: all 0.2s; z-index: 100; box-shadow: var(--shadow-lg); line-height: 1.5; pointer-events: none;}
.info-tooltip:hover .tooltip-content { opacity: 1; visibility: visible; transform: translateY(-5px); }
.tooltip-content::after { content:''; position:absolute; bottom:-6px; right:55px; border-width: 6px 6px 0; border-style: solid; border-color: var(--accent) transparent transparent transparent;}

.price-tag {
    font-size: 2.4rem;
    font-weight: 700;
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Outfit', sans-serif;
    filter: drop-shadow(0 0 12px rgba(188,111,241,0.4));
}

.primary-btn {
    display: block; width: 100%; padding: 1.2rem;
    background: linear-gradient(135deg, var(--accent), #8b3fc9);
    color: #fff; text-align: center; text-decoration: none;
    border-radius: 10px; font-weight: 700; font-size: 1rem;
    text-transform: uppercase; letter-spacing: 2px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 18px rgba(188,111,241,0.3);
}
.primary-btn:hover {
    background: linear-gradient(135deg, var(--accent-hover), #9b4fe0);
    box-shadow: 0 6px 28px rgba(188,111,241,0.55);
    transform: translateY(-1px);
}

/* Cart button */
button.primary-btn { border: none; cursor: pointer; }
.cart-float-btn {
    position: fixed; bottom: 30px; right: 30px;
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    color: white; border: none; border-radius: 50px;
    padding: 15px 25px; font-size: 1.1rem; font-weight: 700;
    cursor: pointer; z-index: 999;
    box-shadow: 0 6px 24px rgba(188, 111, 241, 0.45), 0 2px 8px rgba(0,0,0,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex; align-items: center; gap: 10px;
    font-family: 'Outfit', sans-serif;
}
.cart-float-btn:hover {
    transform: scale(1.07) translateY(-2px);
    box-shadow: 0 10px 36px rgba(188, 111, 241, 0.6), 0 4px 16px rgba(0,0,0,0.5);
}
#cartCount {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 50%; padding: 2px 8px; font-size: 0.95rem;
    font-weight: 800; min-width: 24px; text-align: center;
}

/* Cart Item Rows */
.cart-items-list { max-height: 400px; overflow-y: auto; margin-bottom: 2rem; padding-right: 10px; }
.cart-item-row {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(255,255,255,0.04);
    padding: 14px 16px;
    border-radius: 10px; margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.07);
    transition: border-color 0.2s;
}
.cart-item-row:hover { border-color: rgba(188, 111, 241, 0.25); }
.cart-item-info { flex: 1; }
.cart-item-title { font-weight: 700; color: var(--text-primary); margin-bottom: 4px; font-size: 1rem; }
.cart-item-details { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 4px; }
.cart-item-price { color: var(--accent); font-weight: 700; font-size: 0.95rem; }
.cart-item-remove {
    background: rgba(239, 68, 68, 0.15); color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px; padding: 6px 12px;
    cursor: pointer; font-size: 0.85rem;
    font-weight: 700; transition: all 0.2s;
    margin-left: 12px;
}
.cart-item-remove:hover { background: #ef4444; color: #fff; border-color: #ef4444; }

/* Custom Scrollbar for dark mode */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* --- iOS STYLE DRUM PICKER --- */
.drum-picker {
    position: relative;
    height: 120px;
    background: var(--bg-color);
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    margin-top: 5px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}
.drum-picker::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 40px;
    transform: translateY(-50%);
    background: rgba(188, 111, 241, 0.15);
    border-top: 1px solid rgba(188, 111, 241, 0.5);
    border-bottom: 1px solid rgba(188, 111, 241, 0.5);
    pointer-events: none;
    z-index: 2;
}
.drum-picker::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, var(--bg-color) 0%, transparent 30%, transparent 70%, var(--bg-color) 100%);
    pointer-events: none;
    z-index: 3;
}
.drum-scroll {
    height: 100%;
    width: 100%;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    padding: 40px 0; /* (120 - 40)/2 */
}
.drum-scroll::-webkit-scrollbar { display: none; }
.drum-item {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    scroll-snap-align: center;
    transition: 0.2s;
    user-select: none;
    cursor: pointer;
    font-weight: 500;
}
.drum-item.active {
    color: var(--accent);
    font-weight: 800;
    font-size: 1.3rem; 
    text-shadow: 0 0 10px rgba(188,111,241,0.5);
}

/* ══════════════════════════════════════════════
   FEATURE: SKELETON LOADERS
   ══════════════════════════════════════════════ */
@keyframes skeleton-shimmer {
    0%   { background-position: -800px 0; }
    100% { background-position: 800px 0; }
}
.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    animation: skeleton-fade-in 0.3s ease;
}
@keyframes skeleton-fade-in { from { opacity: 0; } to { opacity: 1; } }
.skeleton-img {
    width: 100%;
    height: 260px;
    background: linear-gradient(90deg, #1e1e1e 25%, #2a2a2a 50%, #1e1e1e 75%);
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.4s infinite linear;
}
@media (max-width: 600px) { .skeleton-img { height: 160px; } }
.skeleton-body { padding: 14px 16px; }
.skeleton-line {
    height: 14px; border-radius: 6px;
    background: linear-gradient(90deg, #1e1e1e 25%, #2a2a2a 50%, #1e1e1e 75%);
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.4s infinite linear;
    margin-bottom: 10px;
}
.skeleton-line.short { width: 55%; }

/* ══════════════════════════════════════════════
   FEATURE: SCROLL TO TOP BUTTON
   ══════════════════════════════════════════════ */
#scrollToTopBtn {
    position: fixed;
    bottom: 100px;
    right: 32px;
    width: 44px; height: 44px;
    background: rgba(30, 12, 50, 0.92);
    border: 1px solid rgba(188,111,241,0.35);
    border-radius: 50%;
    color: var(--accent);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 998;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 12px rgba(188,111,241,0.15);
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}
#scrollToTopBtn.visible {
    opacity: 1; visibility: visible;
    transform: translateY(0);
}
#scrollToTopBtn:hover {
    background: rgba(188,111,241,0.2);
    border-color: var(--accent);
    box-shadow: 0 6px 24px rgba(188,111,241,0.3);
    transform: translateY(-2px);
}
@media (max-width: 600px) {
    #scrollToTopBtn { bottom: 90px; right: 16px; width: 40px; height: 40px; font-size: 1rem; }
}

/* ══════════════════════════════════════════════
   FEATURE: STICKY MOBILE FILTER BAR
   ══════════════════════════════════════════════ */
.sticky-filter-bar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(18, 18, 18, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 10px 1rem;
    margin: 0 -1.5rem 1.5rem;
    transition: box-shadow 0.3s;
}
.sticky-filter-bar.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

/* ══════════════════════════════════════════════
   FEATURE: SEARCH LIVE DROPDOWN
   ══════════════════════════════════════════════ */
#searchDropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: rgba(18, 10, 30, 0.98);
    border: 1px solid rgba(188,111,241,0.25);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.7), 0 0 0 1px rgba(188,111,241,0.06);
    backdrop-filter: blur(16px);
    z-index: 1000;
    overflow: hidden;
    animation: dropdownIn 0.18s ease;
    max-height: 380px;
    overflow-y: auto;
}
@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.search-drop-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.search-drop-item:last-child { border-bottom: none; }
.search-drop-item:hover { background: rgba(188,111,241,0.12); }
.search-drop-thumb {
    width: 44px; height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: #1e1e1e;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.07);
}
.search-drop-thumb-placeholder {
    width: 44px; height: 44px;
    border-radius: 8px;
    background: #1e1e1e;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.search-drop-info { flex: 1; min-width: 0; }
.search-drop-name {
    font-size: 0.9rem; font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-drop-cat {
    font-size: 0.73rem; color: var(--text-secondary);
    margin-top: 2px;
}
.search-drop-price {
    font-size: 0.82rem; font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}
.search-drop-more {
    padding: 10px 16px;
    font-size: 0.8rem;
    color: var(--accent);
    text-align: center;
    font-weight: 600;
    cursor: pointer;
}
.search-drop-more:hover { background: rgba(188,111,241,0.08); }
#smartSearchWrapper { position: relative; }

/* ══════════════════════════════════════════════
   FEATURE: CATEGORY COUNT BADGE
   ══════════════════════════════════════════════ */
.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    color: var(--text-secondary);
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 99px;
    padding: 1px 6px;
    margin-left: 5px;
    vertical-align: middle;
    min-width: 18px;
    transition: all 0.2s;
}
.tab-btn.active .tab-count {
    background: rgba(188,111,241,0.25);
    color: var(--accent);
}


