/* Settem Shop v2.0 — Sidebar + Drawer móvil */

.ss-wrapper { width: 100%; }

/* ── MÓVIL HEADER ── */
.ss-mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ss-filter-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #0d0d1a;
    border: 0.5px solid #1a1a2e;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s;
}

.ss-filter-btn:hover { border-color: rgba(232,0,106,0.4); }
.ss-filter-btn-icon { font-size: 13px; }
.ss-filter-btn-text { font-size: 12px; color: #aaa; }
.ss-filter-btn-dot { width: 7px; height: 7px; border-radius: 50%; background: #164ad3; }

.ss-count-mobile { display: none; }

/* ── LAYOUT PC ── */
.ss-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    position: relative;
}

/* ── SIDEBAR ── */
.ss-sidebar {
    display: flex;
    flex-direction: column;
}

.ss-sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: sticky;
    top: 20px;
}

.ss-drawer-close {
    display: none;
}

.ss-section-label {
    font-size: 8px;
    color: #444;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.ss-divider {
    height: 0.5px;
    background: #1a1a2e;
    margin: 16px 0;
    display: block;
}

/* Categorías — lista vertical */
.ss-cats {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ss-cat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    border: 0.5px solid transparent;
    font-family: inherit;
    background: none;
    transition: all 0.2s;
    width: 100%;
    text-align: left;
}

.ss-cat-item:hover:not(.on) { background: #0d0d1a; border-color: #1a1a2e; }
.ss-cat-item.on { background: rgba(232,0,106,0.08); border-color: rgba(232,0,106,0.4); }

.ss-cat-icon { font-size: 14px; flex-shrink: 0; }

.ss-cat-label {
    font-size: 11px;
    color: #555;
    white-space: nowrap;
}

.ss-cat-item.on .ss-cat-label { color: #164ad3; font-weight: 500; }

/* Precio — lista vertical */
.ss-prices {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ss-price-btn {
    text-align: left;
    padding: 8px 10px;
    border-radius: 6px;
    background: none;
    border: 0.5px solid transparent;
    font-size: 11px;
    color: #555;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    width: 100%;
}

.ss-price-btn:hover:not(.on) { background: #0d0d1a; border-color: #1a1a2e; color: #fff; }
.ss-price-btn.on { background: rgba(232,0,106,0.08); border-color: rgba(232,0,106,0.4); color: #164ad3; font-weight: 500; }

/* Contador en sidebar */
.ss-count-wrap {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 0.5px solid #1a1a2e;
}

.ss-count { font-size: 11px; color: #fff; }
.ss-count em { color: #164ad3; font-style: normal; }

/* Botón aplicar — solo móvil */
.ss-apply-btn { display: none; }

/* Overlay */
.ss-overlay { display: none; }

/* ── LOADING ── */
.ss-loading { display: flex; align-items: center; justify-content: center; padding: 60px 0; }
.ss-spinner { width: 32px; height: 32px; border: 2px solid #1a1a2e; border-top-color: #164ad3; border-radius: 50%; animation: ss-spin 0.7s linear infinite; }
@keyframes ss-spin { to { transform: rotate(360deg); } }

/* ── GRID ── */
.ss-products { width: 100%; min-width: 0; }
.ss-grid { display: grid; gap: 10px; width: 100%; }
.ss-cols-2 { grid-template-columns: repeat(2,1fr); }
.ss-cols-3 { grid-template-columns: repeat(3,1fr); }
.ss-cols-4 { grid-template-columns: repeat(4,1fr); }

/* ── CARD ── */
.ss-card { display: block; }

.ss-card-inner {
    display: block;
    background: #0d0d1a;
    border: 0.5px solid #1a1a2e;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none !important;
    transition: border-color 0.2s;
}

.ss-card-inner:hover { border-color: rgba(232,0,106,0.35); }

/* Thumbnail SIN ícono de play */
.ss-thumb {
    height: 160px;
    background: #1a0015;
    background-size: cover;
    background-position: center;
    position: relative;
}

.ss-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #164ad3;
    color: #fff;
    font-size: 8px;
    letter-spacing: 1px;
    padding: 2px 7px;
    border-radius: 3px;
    z-index: 1;
}

.ss-body { padding: 12px 14px 14px; }

.ss-cat {
    font-size: 8px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    display: inline-block;
    background: #1a1a2e;
    border: 0.5px solid #2a2a3e;
    border-radius: 3px;
    padding: 2px 8px;
}

.ss-name {
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
    display: block;
}

.ss-bottom { display: flex; justify-content: space-between; align-items: center; }

.ss-price { font-size: 14px; font-weight: 800; color: #fff; display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.ss-price .amount { color: #fff; }
.ss-price del, .ss-price del .amount { color: #444 !important; font-weight: 400; font-size: 11px; }
.ss-price ins, .ss-price ins .amount { color: #164ad3 !important; text-decoration: none; font-weight: 800; }

.ss-btn {
    font-size: 9px;
    color: #fff;
    background: #164ad3;
    padding: 5px 11px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    transition: background 0.2s;
    white-space: nowrap;
}

.ss-card-inner:hover .ss-btn { background: #cc005d; }

/* ── PAGINACIÓN ── */
.ss-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 24px; }

.ss-page-btn {
    width: 32px; height: 32px;
    border: 0.5px solid #1a1a2e;
    border-radius: 6px;
    background: none;
    color: #555;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}

.ss-page-btn:hover:not(.on):not(:disabled) { border-color: rgba(232,0,106,0.4); color: #164ad3; }
.ss-page-btn.on { background: #164ad3; border-color: #164ad3; color: #fff; }
.ss-page-btn:disabled { opacity: 0.3; cursor: default; }
.ss-dots { color: #333; font-size: 12px; }

/* ── EMPTY ── */
.ss-empty { text-align: center; padding: 60px 20px; color: #444; font-size: 13px; }

/* ── RESPONSIVE MÓVIL ── */
@media (max-width: 767px) {

    /* Mostrar header móvil */
    .ss-mobile-header { display: flex; }
    .ss-count-mobile  { display: block; }

    /* Layout: una sola columna */
    .ss-layout { grid-template-columns: 1fr; gap: 0; }

    /* Sidebar → Drawer lateral */
    .ss-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 85vw;
        background: #06060f;
        border-right: 0.5px solid #1a1a2e;
        z-index: 9999;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        display: block;
    }

    .ss-sidebar.open { transform: translateX(0); }

    .ss-sidebar-inner {
        position: static;
        padding: 20px 16px;
    }

    /* Botón cerrar drawer */
    .ss-drawer-close {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
        padding: 14px 16px 0;
        background: none;
        border: none;
        color: #555;
        font-size: 20px;
        cursor: pointer;
        font-family: inherit;
    }

    /* Ocultar contador en sidebar en móvil */
    .ss-count-sidebar { display: none; }

    /* Botón aplicar visible en móvil */
    .ss-apply-btn {
        display: block;
        width: 100%;
        background: #164ad3;
        color: #fff;
        border: none;
        font-size: 13px;
        font-weight: 500;
        padding: 13px;
        border-radius: 8px;
        cursor: pointer;
        font-family: inherit;
        margin-top: 24px;
        text-align: center;
    }

    /* Overlay */
    .ss-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.85);
        z-index: 9998;
    }

    .ss-overlay.open { display: block; }

    /* Grid 2 columnas en móvil — siempre, sin importar la clase */
    .ss-cols-2,
    .ss-cols-3,
    .ss-cols-4 { grid-template-columns: repeat(2,1fr); }

    .ss-thumb { height: 120px; }
}
