/* Fusa Tech Center — Tienda online */

:root {
    --store-bg: #f1f5f9;
    --store-surface: #ffffff;
    --store-text: #0f172a;
    --store-muted: #64748b;
    --store-border: rgba(148, 163, 184, 0.22);
    --store-primary: #2563eb;
    --store-primary-dark: #1d4ed8;
    --store-accent: #06b6d4;
    --store-gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 45%, #06b6d4 100%);
    --store-header-bg: linear-gradient(135deg, #060b18 0%, #0f172a 55%, #1e293b 100%);
    --store-radius: 16px;
    --store-radius-sm: 12px;
    --store-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --store-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

.store-page {
    font-family: var(--store-font);
    background: var(--store-bg);
    color: var(--store-text);
    min-height: 100vh;
}

.store-page h1,
.store-page h2,
.store-page h3,
.store-page h4,
.store-page h5,
.store-page h6 {
    font-family: var(--store-font);
    letter-spacing: -0.02em;
}

/* Header */
.store-topbar {
    background: var(--store-header-bg);
    color: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.store-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.store-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    min-width: 0;
}

.store-brand:hover {
    color: #fff;
    opacity: 0.92;
}

.store-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--store-gradient);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.store-brand-text strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.2;
}

.store-brand-text small {
    display: block;
    font-size: 0.72rem;
    opacity: 0.72;
    font-weight: 500;
}

.store-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.store-topbar-actions .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.28);
    font-weight: 600;
}

.store-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
}

/* Toolbar búsqueda / filtros */
.store-toolbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(241, 245, 249, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--store-border);
    padding: 0.85rem 0;
}

.store-toolbar-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

@media (min-width: 768px) {
    .store-toolbar-inner {
        grid-template-columns: 1fr minmax(220px, 280px);
        align-items: center;
    }
}

.store-search-form,
.store-category-form {
    display: flex;
    gap: 0.5rem;
}

.store-search-form .form-control,
.store-toolbar .form-select {
    border-radius: 999px;
    border-color: var(--store-border);
    background: var(--store-surface);
    font-size: 0.92rem;
    box-shadow: none;
}

.store-search-form .form-control:focus,
.store-toolbar .form-select:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.store-search-form .btn-primary {
    border-radius: 999px;
    padding-inline: 1rem;
    background: var(--store-gradient);
    border: none;
    font-weight: 700;
}

/* Main */
.store-main {
    padding-top: 1.25rem;
    padding-bottom: 5rem;
}

.store-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 58%, #0e7490 100%);
    color: #fff;
    border-radius: 20px;
    padding: 1.35rem 1.4rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.store-hero-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.72;
    margin-bottom: 0.35rem;
}

.store-hero h1 {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    margin: 0 0 0.35rem;
}

.store-hero-lead {
    max-width: 36rem;
    font-size: 0.92rem;
    opacity: 0.86;
}

.store-hero-meta {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 0.85rem 1.1rem;
    min-width: 8.5rem;
    text-align: center;
}

.store-hero-meta strong {
    display: block;
    font-size: 1.6rem;
    line-height: 1.1;
}

.store-hero-meta span {
    font-size: 0.75rem;
    opacity: 0.78;
}

.store-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.store-section-head h4 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
}

.store-section-head .badge {
    font-weight: 600;
}

.store-products-grid {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
}

@media (min-width: 768px) {
    .store-products-grid {
        --bs-gutter-x: 1.25rem;
        --bs-gutter-y: 1.25rem;
    }
}

/* Product cards */
.store-page .product-card {
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius-sm);
    box-shadow: var(--store-shadow);
    background: var(--store-surface);
}

.store-page .product-card:hover,
.store-page .product-card-clickable:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.store-page .product-card .card-body {
    padding: 0.85rem;
}

.store-page .product-card .card-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.35rem;
}

.store-page .product-card .card-text {
    display: none;
}

.store-page .product-card .card-body > .badge {
    font-size: 0.62rem;
    padding: 0.25rem 0.45rem;
}

.store-page .product-card .product-price-final {
    font-size: 0.95rem;
}

.store-page .product-card .product-price-old {
    font-size: 0.78rem;
}

.store-page .product-card .product-stock {
    font-size: 0.62rem;
}

.store-page .product-card .btn-sm {
    font-size: 0.72rem;
    padding: 0.35rem 0.5rem;
    border-radius: 10px;
    font-weight: 700;
}

.store-page .product-card-media .product-carousel,
.store-page .product-card-media .carousel-item,
.store-page .product-card .card-img-top,
.store-page .product-card .product-store-img,
.store-page .product-card .product-store-video,
.store-page .product-card .placeholder-img {
    height: 132px;
}

.store-page .featured-discount-ribbon {
    font-size: 0.65rem;
    top: 8px;
    right: 8px;
}

.store-page .product-card--new {
    border-color: rgba(22, 163, 74, 0.45);
}

.store-page .product-card-flags {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.store-page .product-new-badge {
    display: inline-flex;
    align-items: center;
    background: #16a34a;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.22rem 0.5rem;
    border-radius: 6px;
    box-shadow: 0 6px 14px rgba(22, 163, 74, 0.28);
}

.store-page .product-combo-badge {
    position: static;
    top: auto;
    left: auto;
    font-size: 0.62rem;
}

.store-page .product-card .card-body small.text-muted code,
.store-page .product-card .card-body small.text-primary {
    font-size: 0.65rem;
}

.store-page .product-card .card-body .mt-auto small.text-primary {
    display: none;
}

@media (min-width: 576px) {
    .store-page .product-card .card-body {
        padding: 1rem;
    }

    .store-page .product-card .card-title {
        font-size: 0.95rem;
    }

    .store-page .product-card .card-text {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .store-page .product-card-media .product-carousel,
    .store-page .product-card-media .carousel-item,
    .store-page .product-card .card-img-top,
    .store-page .product-card .product-store-img,
    .store-page .product-card .product-store-video,
    .store-page .product-card .placeholder-img {
        height: 160px;
    }

    .store-page .product-card .card-body .mt-auto small.text-primary {
        display: inline;
    }
}

@media (min-width: 992px) {
    .store-page .product-card-media .product-carousel,
    .store-page .product-card-media .carousel-item,
    .store-page .product-card .card-img-top,
    .store-page .product-card .product-store-img,
    .store-page .product-card .product-store-video,
    .store-page .product-card .placeholder-img {
        height: 180px;
    }
}

.store-empty {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--store-surface);
    border-radius: var(--store-radius);
    border: 1px dashed var(--store-border);
}

/* Footer */
.store-footer {
    background: #0f172a;
    color: #e2e8f0;
    text-align: center;
    padding: 1.25rem 1rem;
    margin-top: 2rem;
}

.store-footer small {
    opacity: 0.65;
}
