/* ============================================================
   Página de tienda del vendedor (catálogo)
   Namespace: stp-  ·  No sobreescribe clases de Bootstrap 5
   Ubicación sugerida: public/css/tienda_vendedor.css
   ============================================================ */

:root {
    --stp-brand: #6a3fbf;
    --stp-brand-soft: #6a3fbf1a;
    --stp-border: #e6eaf0;
    --stp-muted: #7a8699;
    --stp-bg-soft: #f7f9fc;
    --stp-ink: #1f2733;
}

/* ------------------------------------------------------------
   Cabecera de la tienda
   ------------------------------------------------------------ */

.stp-header {
    background: linear-gradient(135deg, #705abd 0%, #6a3fbf 100%);
    border-radius: 1rem;
    padding: 1.75rem;
    color: #fff;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
}

.stp-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.stp-store-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.stp-store-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0;
}

.stp-store-meta i {
    color: var(--stp-brand);
}

.stp-badge-count {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    padding: 0.5rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .stp-badge-count {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* ------------------------------------------------------------
   Grid de productos
   ------------------------------------------------------------ */

.stp-section-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--stp-ink);
    margin-bottom: 1.1rem;
}

/* ------------------------------------------------------------
   Tarjeta de producto
   ------------------------------------------------------------ */

.stp-card {
    border: 1px solid var(--stp-border);
    border-radius: 0.85rem;
    overflow: hidden;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.stp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.12);
    border-color: var(--stp-brand);
}

.stp-img-wrap {
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--stp-bg-soft);
    overflow: hidden;
    position: relative;
}

.stp-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease-out;
}

.stp-card:hover .stp-img-wrap img {
    transform: scale(1.05);
}

.stp-card-body {
    padding: 0.9rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 8.5rem;
}

.stp-category {
    display: inline-block;
    align-self: flex-start;
    max-width: 100%;
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--stp-brand);
    font-weight: 600;
    background: var(--stp-brand-soft);
    border: 1px solid rgba(22, 167, 233, 0.20);
    border-radius: 2rem;
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stp-title {
    font-size: 0.8rem;
    line-height: 1.35;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stp-price {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--stp-ink);
    margin-top: auto;
    margin-bottom: 0;
}

.stp-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ------------------------------------------------------------
   Estado vacío
   ------------------------------------------------------------ */

.stp-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--stp-muted);
}

.stp-empty i {
    font-size: 3rem;
    opacity: 0.4;
    display: block;
    margin-bottom: 1rem;
}
