:root {
    --color-neutral-200: #f7f7f4;
    --font-main: 'Inter', Arial, sans-serif;
    --border-radius--imgWrapper: 0.75rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    font-family: var(--font-main);
    /* elimina espacios vacios que se muestran */
    outline: none;
}



.store {
    background-color: var(--color-neutral-200);
}

.store__logoPerfil {
    width: clamp(60px, 10vw, 120px);
    height: clamp(60px, 10vw, 120px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.store__logoPerfil-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.store__logoPerfil-img:hover {
    transform: scale(1.05);
}


.store__title {
    font-size: clamp(1.5rem, 2vw, 2.75rem);
    font-weight: bold;
    /* margin: auto 0; */
}

/* Grupos de info y acción */
.store__info-group,
.store__action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
}

/* Menu de compartir */
.share-wrapper {
    position: relative;
}

.share-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 120%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    padding: 0.5rem 0;
    min-width: 180px;
}

.share-menu .share-option {
    background: none;
    border: none;
    text-align: left;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    color: #333;
    text-decoration: none;
    width: 100%;
}

.share-menu .share-option:hover {
    background-color: #f5f5f5;
}

.share-menu.show {
    display: flex;
}

/* fin menu compartir */


/* Enlaces con íconos */
.store__action-group a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: inherit;
    font-size: 0.95rem;
}

.store__action-group a:hover {
    text-decoration: underline;
}

/* Toggle menú móvil */
.store__menu-toggle {
    display: none;
    gap: 0.5rem;
}

.store__btn-toggle {
    background-color: #fff;
    color: #333;
    border: none;
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.store__btn-toggle:hover {
    background-color: #f2f2f2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}


/* Responsive: versión móvil */
@media (max-width: 576px) {

    .store__info-group,
    .store__action-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .store__menu-toggle {
        display: flex;
        flex-direction: row;
        width: auto;
        position: relative;
    }

    .share-menu--mobile {
        position: absolute;
        top: 40px;
        right: 0;
        z-index: 999;
    }

    .store__action-group {
        display: none !important;
    }

    .store__action-group.show {
        display: none !important;
    }
}











/* ============================
Tab Panel Styles
   ============================ */



.sidebar-wrapper {
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
}

.sidebar-visible {
    width: 250px;
    overflow: visible;
    padding: 20px;
}

#tabContentArea {
    flex-grow: 1;
    transition: margin-left 0.3s ease;
    background-color: #fffffc;
}


.content-expanded {
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

@media (max-width: 768px) {
    .content-expanded {
        margin-left: 0;
    }
}

#buscadorContainer {
    min-width: 300px;
}





/* ============================
Card Styles in TAB Comercio
   ============================ */

.product-card {
    background-color: transparent !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}



/* Oscurecer imagen ligeramente en hover */
.card-img-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    border-radius: var(--border-radius--imgWrapper);
    pointer-events: none;
}

.product-card:hover .card-img-wrapper::after {
    background: rgba(0, 0, 0, 0.1);
}

/* Iluminar botones en hover */
.product-card .btn:hover {
    filter: brightness(1.1);
}

/* Tamaño base en pantallas grandes (ya aplica por defecto con btn-sm) */
.product-card .btn {
    font-size: clamp(0.3rem, 1vw + 0.4rem, 0.9rem) !important;
    padding: clamp(0.1rem, 0.5vw + 0.2rem, 0.2rem) clamp(0.1rem, 1vw + 0.2rem, 0.2rem) !important;
    white-space: nowrap !important;
}



.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid #ddd;
    /* Borde suave */
    border-radius: var(--border-radius--imgWrapper);
    /* Bordes redondeados */
}


.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius--imgWrapper);
}


.product-card img {
    object-fit: cover;
    width: 100%;
    height: 100%;

}

.card-title {
    font-size: 1rem;
    height: 1.3rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    -webkit-hyphens: auto;
    hyphens: auto;
    font-family: 'Montserrat', sans-serif;
    font-weight: 543;
    color: #333;
}


.price-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-price {
    font-weight: 600;
    font-size: 1.05rem;
    color: #d32f2f;
}


.ellipsis-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0 4px;
}

/* Ajustar correctamente la posición del dropdown dentro de las tarjetas */
.product-card .dropdown {
    position: relative;
}

.product-card .dropdown-menu {
    top: 100% !important;
    margin-top: 0.25rem !important;
    z-index: 1050;
    /* aseguramos que quede encima */
    min-width: auto;
    /* que no sea muy ancho */
    width: max-content;
    transform: none !important;
}


.dropdown-toggle::after {
    display: none;
}

.dropdown-item.whatsapp-btn {
    font-size: 0.85rem;
    color: #25D366 !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dropdown-menu-end {
    left: auto !important;
    right: 0 !important;
}


.dropdown-item.whatsapp-btn::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url('https://cdn-icons-png.flaticon.com/512/733/733585.png');
    background-size: cover;
    display: inline-block;
}



/* ============================
slider Styles in TAB Venta
   ============================ */