/* ================================================================
   TIENDA - Carrusel, Pills categorías, Grid productos, Footer nav
   ================================================================ */

/* ── Carrusel banner ────────────────────────────── */
.store-carousel-section {
    padding: 1.5rem;
}
.store-carousel-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--color-white);
    box-shadow: 0 4px 12px rgba(125, 91, 166, 0.1);
    height: 350px;
    max-width: 100%;
}
.store-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #E6E6FA 0%, #DFD7F0 100%);
}
.store-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}
.store-carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.store-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-height: 400px;
}
.store-carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
    z-index: 10;
}
.store-carousel-arrow {
    width: 44px;
    height: 44px;
    background-color: var(--color-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-primary);
    font-size: 1.4rem;
    pointer-events: all;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.store-carousel-arrow:hover {
    background-color: var(--color-primary);
    color: #fff;
}
.store-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}
.store-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}
.store-carousel-dot.active {
    background-color: var(--color-primary);
    width: 24px;
    border-radius: 5px;
}

/* ── Categorías pills ───────────────────────────── */
.store-categories-section {
    padding: 1.5rem 1.5rem 1rem;
}
.store-categories-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.store-categories-wrapper {
    position: relative;
}
.store-categories-wrapper::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, var(--color-bg));
    pointer-events: none;
    z-index: 2;
}
.store-categories-container {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
}
.store-categories-container.dragging {
    cursor: grabbing;
}
.store-categories-container::-webkit-scrollbar {
    height: 3px;
}
.store-categories-container::-webkit-scrollbar-track {
    background: transparent;
}
.store-categories-container::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: 10px;
}
.store-category-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius-pill);
    background-color: transparent;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex-shrink: 0;
    user-select: none;
    text-decoration: none;
}
.store-category-pill.active,
.store-category-pill:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* ── Grid productos ─────────────────────────────── */
.store-products-section {
    padding: 1.5rem;
}
.store-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}
.store-products-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
}
.store-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.store-product-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}
.store-product-card:hover {
    box-shadow: 0 8px 20px rgba(125, 91, 166, 0.15);
    transform: translateY(-3px);
}
.store-product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.store-product-favorite {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 34px;
    height: 34px;
    background-color: var(--color-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 2;
}
.store-product-favorite:hover {
    background-color: var(--color-surface);
}
.store-product-favorite.liked {
    color: #e74c3c;
}
.store-product-info {
    padding: 0.75rem;
}
.store-product-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.35rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.store-product-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}
.store-product-buy {
    width: 36px;
    height: 36px;
    background-color: var(--color-surface);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--color-primary);
    flex-shrink: 0;
}
.store-product-buy:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* ── Footer nav móvil ───────────────────────────── */
.store-footer-nav {
    display: none;
}
@media (max-width: 768px) {
    .store-footer-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 0.75rem 1rem;
        background-color: var(--color-white);
        border-top: 1px solid var(--color-border);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    }
    .store-footer-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
        text-decoration: none;
        color: var(--color-text-muted);
        font-size: 0.7rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    .store-footer-nav-item.active,
    .store-footer-nav-item:hover {
        color: var(--color-primary);
    }
    .store-footer-nav-icon {
        font-size: 1.3rem;
    }
    .store-products-section {
        padding-bottom: 100px;
    }
}