/* ===============================
MOBILE SEARCH TOKENS
=============================== */

:root{
    --ss-brand: #C30F16;
    --ss-brand-dark: #970c11;
    --ss-brand-deep: #6f080c;
    --ss-brand-soft: rgba(195, 15, 22, 0.08);
    --ss-brand-soft-2: rgba(195, 15, 22, 0.14);
    --ss-brand-soft-3: rgba(195, 15, 22, 0.22);
    --ss-accent: #f6d9b8;
    --ss-accent-soft: #fff3e7;
    --ss-surface: #ffffff;
    --ss-surface-soft: #fff8f7;
    --ss-surface-tint: #fff1f0;
    --ss-text: #181313;
    --ss-muted: #7b6666;
    --ss-border: #f1d8d6;
    --ss-shadow: 0 14px 34px rgba(195, 15, 22, 0.12);
}

/* ===============================
MOBILE SEARCH HEADER
=============================== */

.ss-mobile-header{
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.20) 0%, transparent 34%),
        linear-gradient(135deg, var(--ss-brand) 0%, var(--ss-brand-dark) 55%, var(--ss-brand-deep) 100%);
    padding: 14px 14px 18px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 12px 28px rgba(195, 15, 22, 0.20);
}

/* ===============================
SEARCH BAR
=============================== */

.ss-mobile-search{
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #ffffff 0%, #fff8f7 100%);
    border-radius: 16px;
    padding: 10px 14px;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

.ss-mobile-search img{
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: 0.85;
}

.ss-mobile-search input{
    border: none;
    outline: none;
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    background: transparent;
    color: var(--ss-text);
    padding-right: 26px;
}

.ss-mobile-search input::placeholder{
    color: #907878;
    font-weight: 400;
}

/* ===============================
CROSS BUTTON
=============================== */

.ss-cross-button{
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--ss-surface-tint);
    border: 1px solid var(--ss-brand-soft-2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ss-cross-button svg{
    width: 14px;
    height: 14px;
    color: var(--ss-brand);
}

.ss-cross-button:hover{
    background: #f9dfdd;
    transform: translateY(-50%) scale(1.04);
}

.ss-cross-button:hover svg{
    color: var(--ss-brand-dark);
}

/* ===============================
SEARCH RESULTS DROPDOWN
=============================== */

#ss-search-results{
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: var(--ss-surface);
    z-index: 999;
    border-radius: 18px;
    box-shadow: var(--ss-shadow);
    overflow: hidden;
    border: 1px solid var(--ss-border);
    backdrop-filter: blur(8px);
}

/* ===============================
SEARCH ITEM
=============================== */

.ss-search-item{
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #f6e3e1;
    align-items: center;
    text-decoration: none;
    transition: background 0.2s ease;
}

.ss-search-item:last-child{
    border-bottom: none;
}

.ss-search-item:hover{
    background: linear-gradient(180deg, var(--ss-surface-soft) 0%, #fff3f2 100%);
}

.ss-search-item img{
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 10px;
    background: #fafafa;
    flex-shrink: 0;
    border: 1px solid #f3e4e3;
}

/* ===============================
SEARCH INFO
=============================== */

.ss-search-info{
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ss-search-title{
    font-size: 14px;
    color: var(--ss-text);
    line-height: 1.35;
    font-weight: 600;
    word-break: break-word;
}

.ss-search-title strong{
    color: var(--ss-brand);
    font-weight: 700;
}

.ss-search-price{
    font-size: 13px;
    color: var(--ss-brand);
    font-weight: 700;
    margin-top: 4px;
}

/* ===============================
NO RESULT
=============================== */

.ss-no-result{
    padding: 22px 16px;
    text-align: center;
    font-size: 14px;
    color: var(--ss-muted);
}

/* ===============================
TRENDING SEARCH
=============================== */
.ss-trending-search{
    padding: 10px 10px 8px;
    background: linear-gradient(180deg, #ffffff 0%, #fff8f7 100%);
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 8px 18px rgba(195, 15, 22, 0.06);
    border: 1px solid #f1dfdd;
}

.ss-trend-item{
    display: inline-block;
    margin: 4px 4px 0 0;
    padding: 6px 10px;
    background: linear-gradient(180deg, var(--ss-accent-soft) 0%, #ffe8d4 100%);
    border: 1px solid rgba(195, 15, 22, 0.10);
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.1;
    text-decoration: none;
    color: var(--ss-brand-dark);
    font-weight: 600;
    transition: all 0.2s ease;
}

.ss-trend-item:hover{
    background: linear-gradient(135deg, var(--ss-brand) 0%, var(--ss-brand-dark) 100%);
    color: #fff;
    border-color: var(--ss-brand);
}

/* ===============================
PRODUCT GRID RESULT
=============================== */

.ss-search-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 15px;
    padding: 15px;
}

.ss-product-card{
    background: linear-gradient(180deg, #ffffff 0%, #fff8f7 100%);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.07);
    border: 1px solid #f3e2e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ss-product-card:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(195, 15, 22, 0.12);
}

.ss-product-card a{
    text-decoration: none;
    color: inherit;
    display: block;
}

.ss-product-card img{
    width: 100%;
    border-radius: 12px;
    display: block;
}

.ss-product-card h3{
    font-size: 14px;
    line-height: 1.4;
    margin: 10px 0 6px;
    color: var(--ss-text);
    min-height: 38px;
}

.price{
    color: var(--ss-brand);
    font-weight: 700;
    font-size: 14px;
}

.ss-no-products{
    text-align: center;
    padding: 36px 20px;
    color: var(--ss-muted);
}

/* ===============================
LOADER
=============================== */

.ss-loader{
    text-align: center;
    padding: 24px;
    font-size: 14px;
    color: var(--ss-muted);
    font-weight: 500;
}

/* ===============================
VIEW ALL
=============================== */

.ss-view-all{
    padding: 14px 16px;
    text-align: center;
    font-size: 13px;
    background: linear-gradient(180deg, #fff7f6 0%, #fff0ef 100%);
    cursor: pointer;
    border-top: 1px solid #f2dfdd;
    color: var(--ss-text);
    font-weight: 500;
    transition: background 0.2s ease;
}

.ss-view-all strong{
    color: var(--ss-brand);
}

.ss-view-all:hover{
    background: linear-gradient(180deg, #ffefee 0%, #ffe8e6 100%);
}

/* ===============================
RESPONSIVE TWEAKS
=============================== */

@media (max-width: 380px){
    .ss-search-grid{
        grid-template-columns: 1fr;
    }

    .ss-mobile-search{
        border-radius: 14px;
        padding: 9px 12px;
    }

    .ss-product-card h3{
        min-height: auto;
    }
}


