@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
}

.menu {
    background-color: #75230C;
    background-image: url('assets/Vector.svg');
    color: #fff;
    height: 150px;
    position: relative;
    z-index: 2; 
}

.menu__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
}

.menu__container.image {
    width: 250px;
    height: auto;
}

.menu__links {
    height: 100%;
    transition: transform .5s;
    display: flex;
}

.menu__item {
    list-style: none;
    position: relative;
    height: 100%;
    --clip: polygon(0 0, 100% 0, 100% 0, 0 0);
    --transform: rotate(-90deg);
}

.menu__item:hover {
    --clip: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    --transform: rotate(0);
}

.menu__link {
    color: #fff;
    text-decoration: none;
    padding: 0 30px;
    display: flex;
    height: 100%;
    align-items: center;
    
}

.menu__link:hover {
    background-color: #d63031;
    
}

.menu__arrow {
    transform: var(--transform);
    transition: transform .3s;
    display: block;
    margin-left: 3px;
}

.menu__nesting {
    list-style: none;
    transition: clip-path .3s;
    clip-path: var(--clip);
    position: absolute;
    right: 0;
    bottom: 0;
    width: max-content;
    transform: translateY(100%);
    background-color: #e17055;
    z-index: 3; 
}

.menu__link--inside {
    padding: 30px 100px 30px 20px;
}

.menu__link--inside:hover {
    background-color: #e17055;
}

.menu__hamburguer {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
    cursor: pointer;
    display: none;
}

.menu__img {
    display: block;
    width: 50px;
}

@media (max-width: 800px) {
    .menu__hamburguer {
        display: flex;
    }

    .menu__item {
        --clip: 0;
        overflow: hidden;
    }

    .menu__item--active {
        --transform: rotate(0);
        --background: #d63031;
        
        
    }

    .menu__item--show {
        background-color: var(--background);
        
    }

    .menu__links {
        position: fixed;
        max-width: 400px;
        width: 100%;
        top: 70px;
        bottom: 0;
        right: 0;
        background-color: #e17055;
        overflow-y: auto;
        display: grid;
        grid-auto-rows: max-content;
        transform: translateX(100%);
    }

    .menu__links--show {
        transform: unset;
        width: 100%;
    }

    .menu__link {
        padding: 25px 0;
        padding-left: 30px;
        height: auto;
    }

    .menu__arrow {
        margin-left: auto;
        margin-right: 20px;
    }

    .menu__nesting {
        display: grid;
        position: unset;
        width: 100%;
        transform: translateY(0);
        height: 0;
        transition: height .3s;
    }

    .menu__link--inside {
        width: 90%;
        margin-left: auto;
        border-left: 1px solid #e17055;
    }
}

.search-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px;
    padding: 25px;
    background-color: #f8f8f8;
    border-radius: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-bar input[type="search"] {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 25px 0 0 25px;
    outline: none;
    font-size: 16px;
    background-color: #fff;
    transition: background-color 0.3s ease;
}

.search-bar input[type="search"]:focus {
    background-color: #f0f0f0;
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #ff7675;
}

.search-btn img {
    width: 38px;
    height: auto;
}

#conteitemcarrusel {
    height: 650px;
    overflow: hidden;
    position: relative;
    z-index: 1; 
    padding-left: 50px;
    padding-right: 50px;
    
}

.itemcarrusel {
    height: 105%;
    position: relative;
    padding: 20px;
}

.tarjetacarrusel {
    background-color: #d1a159;
    height: 100%;
}

.flechascarrusel {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 10px;
    padding-right: 45px;
}

.conteiner {
  display: grid;
  grid-template-columns: 280px 1fr; /* Sidebar fijo + contenido fluido */
  gap: 24px;
  align-items: start;
  width: 100%;
  max-width: 1600px;   /* opcional: controla el máximo en pantallas enormes */
  margin: 0 auto;      /* centra el contenido */
  padding: 16px;
}
 /* Sidebar “pegajoso” y contenido compacto */
.sidebar {
  position: sticky;
  top: 80px;           /* ajusta según tu header/nav */
  align-self: start;
}
.conteiner .sidebar a{
    color: rgb(0, 0, 0);
}
.conteiner .sidebar p a:hover{
    cursor: pointer;
    transform: scale(1.05);
    transition: all 1s ease;
}

.conteiner .itemcont1 {
    background-color: aliceblue;
    border-radius: 15px;
}
.conteiner .itemcont1:hover{
    background-color: #e2d7d7b7;
   
}
.conteiner .itemcont2 {
    background-color: aliceblue;
    border-radius: 15px;
    
}
.conteiner .itemcont2:hover{
    background-color: #e2d7d7b7;
   
}
.conteiner .itemcont3 {
    background-color: aliceblue;
    border-radius: 15px;
}
.conteiner .itemcont3:hover{
    background-color: #e2d7d7b7;
   
}
.conteiner .itemcont4 {
    background-color: aliceblue;
    border-radius: 15px;
}
.conteiner .itemcont4:hover{
    background-color: #e2d7d7b7;
   
}
.conteiner .itemcont5 {
    background-color: aliceblue;
    border-radius: 15px;
}
.conteiner .itemcont5:hover{
    background-color: #e2d7d7b7;
   
}
.conteiner .itemcont6{
    background-color: aliceblue;
    border-radius: 15px;
}
.conteiner .itemcont6:hover{
    background-color: #e2d7d7b7;
   
}

.footer {
    background-color: #75230C;
    background-image: url('assets/Vector_footer.png');
    color: #fff;
    padding: 20px;
}

.footer .footer-conteiner {
    width: 100%;
    max-width: 1800px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 50px;
    padding: 60px 0px;
    justify-content: left;
}

.footer .footer-conteiner .fbox iframe {
    width: 500px;
    margin-right: 20px;
}

.footer .footer-conteiner .fbox ul {
    list-style-type: none;
    padding: 0;
}

.footer .footer-conteiner .fbox li {
    list-style-type: none;
    padding: 0;
}

.footer .footer-conteiner .fbox ul li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    list-style: none;
}

.footer .footer-conteiner .fbox ul li a {
    list-style-type: none;
    padding: 0;
}

.footer .footer-conteiner .fbox h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer .footer-conteiner .red-social {
    align-items: center;
    list-style-type: none;
}

.footer .footer-conteiner .red-social a {
    list-style-type: none;
    width: 1200px;
}

.info-icon {
    width: 20px;
    height: auto;
    margin-right: 10px;
}

.rrss-icon {
    width: 60px;
    height: auto;
    margin: auto;
}

.fbox a {
    text-decoration: none;
    color: #fdfafa;
}

.fbox a:hover {
    text-decoration: underline;
}

.imgbanner {
    width: 100%;
    height: 100%;
}

.hero.is-success {
    background: #f2f6fa;
}

.hero .nav,
.hero.is-success .nav {
    box-shadow: none;
}

.box {
    margin-top: 5rem;
    background-color: rgba(255, 255, 255, 0.1);
}

input {
    font-weight: 300;
}

p {
    font-weight: 700;
}

p.subtitle {
    padding-top: 1rem;
}

a {
    color: #fff;
    text-decoration: none;
}

a:hover {
    color: #fff;
}

.languages {
    margin-top: 10px;
}

i {
    padding: 10px;
}
.product {
    display: flex;
    flex-direction: column;
    text-align: center;
    border-radius: 15px;
  }
  
  .product-img {
    height: 158px;
    margin-bottom: 20px;
    image-resolution: cover;
  }
  
  .product-name {
    font-size: 1.5em;
    margin: 10px 0;
  }
  
  .product-description {
    font-size: 1em;
    margin:  0;
  }
  
  .product-price {
    font-size: 1.7em;
    color: #d63031;
    font-weight: bold;
    padding: 15px;
  }
  .addtocart {
    background-color: #e17055;
    color: whitesmoke;
    padding: 15px 20px;
    margin: 20px 50px;
    flex-direction: flex-end;
    border: none;
  }
  .addtocart:hover {
    cursor: pointer;
    transform: scale(1.05);
    transition: all 1s ease;
  }
  .fa-solid fa-cart-shopping{
    width: 80%;
  }
  .cart-summary {
    text-align: right;
    font-size: 1.2em;
    color: #333;
}

  .cart-count { font-size: 1.5em; }
  .cart-container {
    max-height: 150px; /* Ajusta la altura máxima del contenedor */
    overflow-y: auto; /* Añade scroll si el contenido es demasiado largo */
    border-bottom: 1px solid #ddd; /* Añade una línea divisoria */
    margin-bottom: 20px; /* Espacio entre los productos y el total */
}

 
 .cart-product{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
    padding: auto;
    grid-template-areas: 
    "cartimg cartinfo cartcant"
    "cartimg carttipo cartcant"
    "cartimg cartmedida cartcant"
    "cartimg cartdescrip cartcant"
    "cartimg cartprice cartbutt";
    grid-gap: 1em;
 }
 .cart-product-img {
    grid-area: cartimg;
 }
 .cart-product-name {
    grid-area: cartinfo;
 }
 .cart-product-tipo{
    grid-area: carttipo;
 }
 .cart-product-medida{
    grid-area: cartmedida;
 }
 .cart-product-description {
    grid-area: cartdescrip;
 }
 .cart-product-price {
    grid-area: cartprice;
 }
 .cartcant {
    grid-area: cartcant;
 }
 .cartelimin{
    grid-area: cartbutt;
 }
 .cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}
.cart-item img {
    width: 60px;
    height: auto;
    border-radius: 8px;
    margin-right: 20px;
}

.cart-item-info {
    flex-grow: 1;
    text-align: left;
}

.cart-item-info h4 {
    margin: 0;
    font-size: 1.1em;
    color: #333;
}

.cart-item-info p {
    margin: 5px 0;
    color: #888;
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-quantity button {
    background-color: #e17055;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 1em;
    border-radius: 4px;
}

.cart-quantity button:hover {
    background-color: #d63031;
}

.cart-quantity span {
    padding: 0 10px;
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
}
.cart-total {
    font-size: 1.5em;
    color: #d63031;
    text-align: right;
}

/* Botones del carrito */
.cart-action-btn {
    background-color: #e17055;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-right: 10px;
}


.cart-action-btn:hover {
    background-color: #d63031;
}
 /*style nuevo para carro*/

 #cartModal.modal{
  position: fixed !important;
  inset: 0 !important;
  display: none;
  place-items: center;            /* centra con grid */
  background: rgba(0,0,0,.55) !important;
  padding: 24px;
  z-index: 9999 !important;
}
#cartModal.modal.is-open{ display: grid; }

/* Caja del carrito */
#cartModal .modal-content{
  position: relative !important;
  background: #fff !important;   /* evita transparencia */
  color: #111;
  width: min(680px, 92vw);
  max-height: 100vh;
  overflow: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  padding: 16px;
}

/* Botón cerrar */
#cartModal .close{
  position: absolute;
  top: 10px; right: 12px;
  background: none; border: 0;
  font-size: 22px; cursor: pointer;
}

/* Evita que un click dentro cierre el modal */
#cartModal .modal-content{ pointer-events: auto; }
#cartModal{ pointer-events: auto; }

.modal {
  position: fixed;
  inset: 0;                 /* top:0; right:0; bottom:0; left:0 */
  display: none;            /* se activa con .is-open */
  place-items: center;      /* centra con CSS Grid (o usa flex si prefieres) */
  background: rgba(0,0,0,.5);
  padding: 24px;            /* margen interno para que no toque los bordes */
  z-index: 1000;
}
.modal.is-open {
  display: grid;            /* o display:flex; align-items:center; justify-content:center; */
}

modal .modal-content {
  width: min(560px, 92vw);  /* ancho responsivo */
  max-height: 100vh;         /* para que no se salga en pantallas chicas */
  overflow: auto;           /* scroll interno si hay mucho contenido */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
}
  .resultado_oculto{
    display: none;
}


/*pantallas de carga*/
/* Overlay de espera para generar pedido */
#order-wait {
  position: fixed;
  inset: 0;
  display: none;            /* se muestra con la clase .show */
  place-items: center;
  background: rgba(0,0,0,.45);
  z-index: 9999;
}

#order-wait.show { display: grid; }

.order-wait__box {
  width: min(92vw, 360px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  padding: 22px 20px;
  text-align: center;
}

.order-wait__spinner {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 4px solid #e9e9e9;
  border-top-color: #2b7de9;
  margin: 0 auto 12px;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.order-wait__title {
  font-size: 1.05rem;
  margin: 0 0 6px;
  color: #222;
}
.order-wait__text {
  margin: 0;
  color: #555;
  font-size: .95rem;
}

.about-us {
    background-color: #f9f9f9;
    padding: 20px;
    margin: 20px auto;
    border-radius: 8px;
    max-width: 800px;
    font-family: 'Arial', sans-serif;
}

.about-us h1 {
    font-size: 2em;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.about-us p {
    line-height: 1.6;
    color: #555;
}

.about-us h2 {
    font-size: 1.5em;
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.about-us p strong {
    color: #000;
}

.about-us ul {
    list-style-type: none;
    padding: 0;
}

.about-us ul li {
    margin: 10px 0;
}

.about-us .contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.about-us .contact-info li {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.about-us .contact-info img {
    margin-right: 10px;
}

.about-us .social-media {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.about-us .social-media li {
    margin: 0 10px;
}

.about-us .social-media img {
    width: 30px;
    height: 30px;
}
.product-details{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 50px 25px 25px 50px 50px;
    grid-template-areas:
     "img nombre nombre"
     "img tipo ."
     "img medida ."
     "img descrip dispo"
     "img precio carro"
    ;
    width: 1250px;
    height: 350px;
    gap: 1em;
    background-color: #f1f1f1;
    text-align: left;
    padding: 15px;
}
.product-tipo{
    grid-area: tipo;
}
.product-description{
    grid-area: descrip;
}
.pproduct-img{
    grid-area: img;
    height: 300px;

}
.product-name{
   grid-area: nombre;
}
.product-medida{
    grid-area: medida;
}
.product-disponibilidad{
    grid-area: dispo;
}
.product-price{
    grid-area: precio;

}
.paddtocart {
    background-color: #e17055;
    color: whitesmoke;
    grid-area: carro;
    border: none;
  }
  .paddtocart:hover {
    cursor: pointer;
    transform: scale(1.05);
    transition: all 1s ease;
  }

  .whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}
.popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 8px;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

.popup-content p {
    margin: 0;
    padding-bottom: 10px;
}

.popup-close {
    background-color: #e17055;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.featured-products {
    margin: 50px auto;
    padding: 20px;
    width: 95%;
    background-color: #f8f8f8;
    border-radius: 15px;
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.featured-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.featured-product {
    background-color: aliceblue;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.featured-product:hover {
    transform: scale(1.05);
}

.featured-product img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.featured-product h3 {
    font-size: 1.5em;
    margin: 10px 0;
}

.featured-product p {
    font-size: 1.2em;
    color: #666;
}

.featured-product button {
    background-color: #e17055;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
}

.featured-product button:hover {
    background-color: #d63031;
}


.delivery-options {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.delivery-options h3, .cart-comments h3 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.delivery-option {
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.delivery-option input {
    margin-right: 10px;
}

.cart-comments {
    margin: 15px 0;
}

.cart-comments textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 20px;
    resize: vertical;
    font-family: inherit;
}
.modal-content {
    max-width: 600px;
    padding: 20px;
}

/* Productos */
.featured-container,
.products-area { flex: 1; padding: 1rem; width: 100%; }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.card h4 { margin: 0; font-size: 1rem; }
.pager {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.pager button {
  border: 1px solid #ddd;
  background: #f9f9f9;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.pager button.active { background: #222; color: #fff; border-color: #222; }
.pager button:disabled { opacity: .5; cursor: not-allowed; }
.product-card .thumb {
  aspect-ratio: 1 / 1;
  background: #f4f4f4;
  overflow: hidden;
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;            /* rellena sin deformar */
}
.product-card .info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
}
.product-card .title {
  font-size: 1rem;
  line-height: 1.2;
  min-height: 2.4em;            /* 2 líneas */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .price { font-weight: 700; }
.product-card .meta {
  font-size: .9rem;
  color: #444;
  display: grid;
  gap: 4px;
}
.product-card .actions { margin-top: auto; }
.product-card .add-btn {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;          /* más cuadrado, no chip */
  border: 1px solid #1f2937;
  background: #1f2937;
  color: #fff;
}

.product-card {
  background: aliceblue;        /* como .itemcont1 */
  border-radius: 15px;          /* como .itemcont1 */
  transition: background .2s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.product-card:hover {
  background: #e2d7d7b7;        /* como .itemcont1:hover */
}

/* Cuerpo con la info */
.card .body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px 14px;
}
.card .title {
  font-size: 1rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}
.card .info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
}
.card .meta {
  color: #666;
  font-size: .9rem;
  line-height: 1.35;
}
.card .price {
  margin-top: 4px;
  font-weight: 800;
  font-size: 1.05rem;
}
.card .actions { margin-top: auto; }

.card .actions .add-to-cart {
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid #1f2937;
  background: #1f2937;
  color: #fff;
}
.card .actions .add-to-cart:hover {
  filter: brightness(.96);
}
@media (min-width: 1400px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
  }
}

@media (min-width: 1700px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  }
}
/*destacados*/
/* Grid para destacados */
.featured-products .featured-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* Tarjeta destacada con el estilo que pediste */
.featured-card {
  background: aliceblue;              /* igual a .itemcont1 */
  border-radius: 15px;                /* igual a .itemcont1 */
  transition: background .2s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.featured-card:hover {                 /* igual a .itemcont1:hover */
  background: #e2d7d7b7;
}

/* Imagen cuadrada arriba */
.featured-card .thumb {
  aspect-ratio: 1 / 1;
  background: #f4f4f4;
  overflow: hidden;
}
.featured-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contenido */
.featured-card .info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
}
.featured-card .title {
  font-size: 1rem;
  line-height: 1.2;
  min-height: 2.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-card .price {
  font-weight: 700;
}
.featured-card .meta {
  font-size: .9rem;
  color: #444;
  display: grid;
  gap: 4px;
}
.featured-card .actions { margin-top: auto; }
.featured-card .add-btn {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #1f2937;
  background: #1f2937;
  color: #fff;
}

/* Bloque scrollable para los pedidos */
#pedidos-container{
  max-width: 700px;
  margin: 24px auto;
  padding: 10px 20px;

  /* hace el panel scrolleable */
  max-height: 62vh;        /* ajusta a gusto: 55–70vh */
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch; /* scroll suave en móviles */

  /* opcional (si quieres que parezca una tarjeta grande) */
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* pequeños retoques */
#pedidos-container .pedido:last-child{ margin-bottom: 8px; }

/* Haz que el botón de cerrar sesión se mantenga visible al hacer scroll de la página */
.button{
  position: sticky;   /* se “pega” al borde inferior del viewport */
  bottom: 16px;
  z-index: 2;
}

/* En pantallas pequeñas, un poco más alto el panel para aprovechar el espacio */
@media (max-width: 768px){
  #pedidos-container{ max-height: 68vh; }
}

/* ===============================
   Responsive overrides
   (pégalo al final de tu style.css)
   =============================== */

:root{
  --container-max: 1200px;
  --space: clamp(12px, 1.4vw, 24px);
  --nav-h: clamp(64px, 10vw, 150px);
}

/* Tipografía base fluida */
html { font-size: 100%; }
body { font-size: clamp(14px, 1.05vw, 16px); }

/* Nav fluido */
.menu{ height: var(--nav-h); }
.menu__container{ width: min(92%, var(--container-max)); }
.menu__container.image{ width: clamp(160px, 18vw, 250px); }

/* Barra de búsqueda fluida */
.search-bar{
  width: min(92%, var(--container-max));
  margin-inline: auto;
  padding: clamp(14px, 2.2vw, 25px);
}
.search-bar input[type="search"]{ font-size: clamp(14px, 1vw, 16px); }
.search-btn img{ width: clamp(26px, 3vw, 38px); }

/* Carrusel: alto y paddings fluidos */
#conteitemcarrusel{
  height: clamp(240px, 45vw, 650px);
  padding-inline: clamp(12px, 4vw, 50px);
}
.itemcarrusel{ padding: clamp(8px, 1.6vw, 20px); }
.flechascarrusel{ padding-inline: clamp(6px, 2.8vw, 45px); }

/* Layout principal: sidebar + contenido */
.conteiner{
  grid-template-columns: 280px 1fr;
  gap: clamp(12px, 1.6vw, 24px);
  padding: clamp(10px, 2vw, 16px);
  max-width: 1600px;
  width: min(96%, 1600px);
}
.sidebar{ top: calc(var(--nav-h) + 8px); }

/* Catálogo / tarjetas: gaps fluidos */
.catalog-grid{
  grid-template-columns: repeat(auto-fill, minmax(clamp(220px, 26vw, 320px), 1fr));
  gap: clamp(12px, 1.8vw, 28px);
}

/* Featured: ya usas auto-fit, ajusto gap */
.featured-container{ gap: clamp(12px, 1.8vw, 20px); }

/* Footer responsive */
.footer .footer-conteiner{
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-gap: clamp(16px, 3vw, 50px);
  width: min(92%, var(--container-max));
}
.footer .footer-conteiner .fbox iframe{
  width: 100%;
  height: clamp(220px, 28vw, 300px);
}

/* Modal carrito: ancho/alto fluidos (ya estabas cerca) */
#cartModal .modal-content{
  width: min(680px, 92vw);
  max-height: min(86vh, 900px);
  padding: clamp(14px, 2vw, 16px);
}

/* Contenedor de items del carrito: altura en función del viewport */
.cart-container{
  max-height: clamp(140px, 30vh, 360px);
}

/* Bloque de pedidos (perfil) – ya lo dejaste scrollable */
#pedidos-container{
  max-height: clamp(52vh, 62vh, 70vh);
}

/* Ficha de producto (página detalle): quitar anchos fijos */
.product-details{
  width: 100%;
  max-width: 1200px;
  height: auto;
  grid-template-columns: minmax(220px, 1fr) 1fr 1fr;
  grid-template-rows: auto;
  gap: clamp(10px, 1.2vw, 16px);
  padding: clamp(12px, 1.6vw, 15px);
}
.pproduct-img{ height: auto; }

/* ===============================
   Breakpoints
   =============================== */

/* Tablets ≤ 1024px */
@media (max-width: 1024px){
  .conteiner{
    grid-template-columns: 1fr;   /* sidebar arriba, contenido abajo */
  }
  .sidebar{ position: static; }    /* deja de ser sticky en tablets/móvil */
  .menu__links{
    top: var(--nav-h);             /* menú móvil bajo el header fluido */
  }
  .product-details{
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "img img"
      "nombre nombre"
      "tipo medida"
      "descrip dispo"
      "precio carro";
  }
}

/* Móviles ≤ 768px */
@media (max-width: 768px){
  .menu__links{ max-width: 92vw; }
  .search-bar{
    padding: clamp(10px, 3vw, 16px);
    border-radius: 14px;
  }
  .featured-products{
    width: min(96%, var(--container-max));
    padding: clamp(12px, 3vw, 20px);
  }
  .product-details{
    grid-template-columns: 1fr;
    grid-template-areas:
      "img"
      "nombre"
      "tipo"
      "medida"
      "descrip"
      "dispo"
      "precio"
      "carro";
  }
  .pproduct-img{ height: clamp(220px, 48vw, 320px); }
  .product-card .title,
  .featured-card .title{ min-height: auto; -webkit-line-clamp: 3; }
}

/* Teléfonos pequeños ≤ 480px */
@media (max-width: 480px){
  .menu__img{ width: 40px; }
  .menu__container.image{ width: clamp(140px, 45vw, 180px); }
  .cart-item img{ width: 48px; margin-right: 12px; }
  .pager{ gap: 6px; }
  .pager button{ padding: 8px 10px; }
}
@media (max-width: 1024px){
  .conteiner{
    grid-template-columns: 1fr;   /* el contenido ocupa todo el ancho */
  }
  .sidebar{
    display: none !important;     /* oculta la barra lateral */
  }
}

/* Si quieres ocultarla todavía antes, sube el breakpoint: 1200px, por ejemplo */
@media (max-width: 768px){
  .conteiner{ grid-template-columns: 1fr; }
  .sidebar{ display: none !important; }
}


.submenu {
  display: none;
  margin-left: 15px;
}

.submenu li {
  list-style: none;
}