/*TITLE*/

h2 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: bolder;
}

h3 {
    color: var(--tertiary-color);
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  font-weight: 900;
  text-transform: uppercase;
}

.btn-cart{
  width: auto;
  padding: 0.5rem !important;
  line-height: 1;
}


/*NAVBAR*/

.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    visibility: visible;
    box-shadow: 3px 3px 6px #00000036;
}

.navbar-show {
    visibility: visible;
}


/*SLIDER*/

.slider {
    background-image: var(--cover-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    max-height: 450px;
    height: clamp(130px, 30vw, 450px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider img {
    max-width: 250px;
    height: 100%;
    width: clamp(50px, 25vw, 250px);
    border-radius: 100%;
}


/*MODALS*/

.store-information {
    font-size: 0.9rem;
    color: #000000;
}

.store-information a {
    padding: 0.25rem;
    background-color: aliceblue;
    text-decoration: none;
    font-size: 0.9rem;
    color: #000000;
}

.list-information {
    padding: 0;
    list-style: none;
}

.list-information i {
    width: 1rem;
}

.truncate {
    width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/*NEWS*/
.product{
    display: flex;
    gap: clamp(0.25rem,2vw,1rem);
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dotted black;
}
.products-title {
    display: flex;
    flex-direction: column;
    gap: clamp(0.25rem,1.5vw,1rem);
}

.categoryTitle {
    text-transform: uppercase;
    margin: 0;
    grid-area: 1/1/1/3;
}
.contentCategory {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(50%,15rem),1fr));
    gap: clamp(0.5rem, 3vw, 3rem);
    align-items: center;
}

.news {
    margin-block: clamp(2rem, 5vw, 5rem);
}

.product-description {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
}

h2,
h3,
.description {
    display: -webkit-box;
    /* Comportamiento tipo caja flexible */
    -webkit-line-clamp: 2;
    /* Máximo de líneas a mostrar */
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Oculta el exceso */
    text-overflow: ellipsis;
}

.description {
    font-size: clamp(0.8rem, 2vw, 1rem);
    text-transform: lowercase;
}
.description::first-letter{
  text-transform: uppercase;
}

.reverse {
    grid-area: 1 / 2 / 1 / 2;
    
}
.products-images{
    display: flex;
    justify-content: center;
}
.products-images img {
    width: 80%;
    height: auto;
    border-radius: 1rem;
    object-fit: cover;
    object-position: top;
}

.text-category {
    text-align: center;
    color: #979797;
    font-style: italic;
}

.text-price {
    text-align: center;
    font-size: clamp(0.8rem, 2vw, 1rem);
    font-weight: bold;
    font-family: sans-serif;
}


/*PRODUCTS*/

.grid-products {
    display: flex;
    flex-direction: column;
    column-gap: 3rem;
    gap: clamp(1rem, 5vw, 3rem);
    align-items: center;
    justify-content: center;
}

#btn-more {
    display: flex;
    justify-content: center;
    align-items: center;
}
@media(max-width:535px) {
    .reverse{
        grid-area: auto;
    }
}