/* tienda.css */

/* ------------------------------ */
/* Variables de color y fuentes   */
/* ------------------------------ */
:root {
    --primary-color: #6B46C1;
    --secondary-color: #D53F8C;
    --accent-color: #9F7AEA;
    --background-light: #FAF5FF;
    --background-white: #FFFFFF;
    --text-dark: #2D3748;
    --text-light: #718096;
    --border-color: #E9D8FD;
    --shadow-sm: 0 2px 4px rgba(107, 70, 193, 0.1);
    --shadow-md: 0 4px 6px rgba(107, 70, 193, 0.15);
    --shadow-lg: 0 10px 15px rgba(107, 70, 193, 0.2);
    --gradient-primary: linear-gradient(135deg, #6B46C1, #D53F8C);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background-light);
    color: #333;
    line-height: 1.6;
}

/* ----------- BÃƒÂºsqueda ---------- */
.search-container {
    background: var(--background-white);
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    margin-top: 70px;
}
.search-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.search-container .form-control {
    height: 3.5rem;
    border-radius: 0.75rem;
    padding: 0 1.5rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    background: var(--background-white);
    transition: var(--transition-smooth);
}

.search-container .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(159, 122, 234, 0.2);
}

.search-container .btn-search {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    height: 2.75rem;
    width: 2.75rem;
    border-radius: 0.5rem;
    background: var(--primary-color);
    border: none;
    color: white;
    transition: var(--transition-smooth);
}

/* -------- Productos (Cards) -------- */
.product-card {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    transition: var(--transition-smooth);
    height: 400px;
    width: 100%;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.product-card img {
    width: 100%;
    height: auto;
    min-height: 150px;
    object-fit: contain;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-card .card-img-wrapper {
    position: relative;
    padding-top: 75%;
    background: var(--background-light);
}

.product-card .card-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card .card-body {
    z-index: 1000;
    color: #000000;
    font-size: 20px;
    color: #a700df;
    /* text-shadow: 1px 2px 3px rgb(135 135 135); */
}

.product-card .card-title {
    font-size: 1.125rem;
    /* font-weight: 700; */
    color: #000000;
    line-height: 1.4;
    margin-top: 14rem;
    text-shadow: -1px -1px 0 white,
        1px -1px 0 white,
        -1px 1px 0 white,
        1px 1px 0 white;
}

.product-card .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1.25rem;
}

/* ----------- Botones ----------- */
.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    text-transform: none;
    letter-spacing: 0.025em;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

/* ---------- Filtros ----------- */
.filter-section {
    background: var(--background-white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.filter-section h5 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-range::-webkit-slider-thumb {
    background: var(--primary-color);
}

/* --------- PaginaciÃƒÂ³n --------- */
.pagination {
    gap: 0.25rem;
}

.page-link {
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* -------- Autocompletado -------- */
.ui-autocomplete {
    max-width: 500px;
    background: var(--background-white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: 0.75rem;
    padding: 0.8rem;
    z-index: 1050;
    overflow-y: auto;
    max-height: 350px;
}

.ui-autocomplete .ui-menu-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    border-radius: 0.5rem;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.ui-autocomplete .ui-menu-item:hover {
    background: var(--background-light);
    color: var(--text-dark);
}

.ui-autocomplete .ui-menu-item img {
    width: 70px!important;
    height: 70px!important;
    margin-right: 10px;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.ui-autocomplete .product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ui-autocomplete .product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ui-autocomplete .product-price {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--secondary-color);
}

/* -------- Notificaciones -------- */
.alert {
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.alert-success {
    background: var(--primary-color);
    color: white;
    border: none;
}

/* -------------------------------- */
/* ---- VersiÃƒÂ³n mÃƒÂ³vil: Ocultar ----- */
/* ---- filtros y mostrar flecha --- */
/* -------------------------------- */

@media (max-width: 992px) {
    /* Ajusta el breakpoint a tu gusto */

    /* Ocultamos la secciÃƒÂ³n de filtros inicialmente */
    .filter-section {
        display: none; /* Se oculta por defecto en mÃƒÂ³vil */
        transition: var(--transition-smooth);
    }

    /* Flecha o botÃƒÂ³n para mostrar filtros */
    .toggle-filters-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        background-color: var(--primary-color);
        color: #fff;
        border-radius: 0.5rem;
        padding: 0.5rem 1rem;
        cursor: pointer;
    }

    .toggle-filters-btn:hover {
        background-color: var(--accent-color);
    }
}

@media (max-width: 768px) {
    .search-container .form-control {
        height: 3rem;
    }
    .btn {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .search-container {
        padding: 20px;
        margin-top: 70px;
        width: 90%;
    }
    .product-card .card-title {
        font-size: 1rem;
    }
    .product-card .price {
        font-size: 1.125rem;
    }
    .toggle-filters-message{
    width:100%!important;
        font-size:14px;
}
}

