/* Botón "Añadir" redondo */
.add-button {
    display: inline-block;
    width: 100px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: #000;
    /* fondo negro */
    color: #fff;
    /* texto blanco */
    border: 1px solid #444;
    /* borde sutil gris */
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.3s, transform 0.2s;
}

.add-button:hover {
    background-color: #222;
    /* gris oscuro al hover */
    transform: scale(1.03);
}

/* Contador redondo al hacer click en Añadir */
.round-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100px;
    height: 36px;
    padding: 0 5px;
    border-radius: 30px;
    background-color: #000;
    /* fondo negro */
    border: 1px solid #444;
    box-sizing: border-box;
    margin-top: 5px;
}

/* Botones + / - dentro del contador redondo */
.round-counter .plus-prod,
.round-counter .minus-prod {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #333;
    /* gris oscuro */
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.round-counter .plus-prod:hover,
.round-counter .minus-prod:hover {
    background-color: #555;
    transform: scale(1.1);
}

/* Cantidad en el centro */
.round-counter .p-quantity {
    min-width: 20px;
    text-align: center;
    font-weight: bold;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}


.p-quantity {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-weight: bold;
    font-size: 14px;
    color: #fff;
}


.min-order {
    color: brown;
    font-size: 14px;
    margin-top: 5px;
}

.product-quantity {
    display: flex;
    justify-content: center;
    /* centra el botón o el contador */
    align-items: center;
}


/***********/
/* ==========================
   Carrito flotante
   ========================== */










   /* ==========================
   Carrito flotante tipo WhatsApp
   ========================== */
   #floating-cart-container {
       position: fixed;
       bottom: 20px;
       right: 20px;
       z-index: 1050;
   }

   #cart-icon {
       position: relative;
       width: 60px;
       height: 60px;
       background-color: #25D366;
       /* verde WhatsApp */
       color: #fff;
       border-radius: 50%;
       display: flex;
       justify-content: center;
       align-items: center;
       cursor: pointer;
       font-size: 28px;
       box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
       transition: transform 0.2s, background 0.2s;
   }

   #cart-icon:hover {
       background-color: #1ebe57;
       /* verde oscuro al hover */
       transform: scale(1.1);
   }

   #cart-counter {
       position: absolute;
       top: -5px;
       right: -5px;
       background-color: #dc3545;
       /* rojo para cantidad */
       color: #fff;
       font-size: 12px;
       font-weight: bold;
       width: 20px;
       height: 20px;
       border-radius: 50%;
       display: flex;
       justify-content: center;
       align-items: center;
   }

   /* ==========================
   Panel lateral
   ========================== */
   #cart-panel {
       position: fixed;
       top: 0;
       right: -400px;
       /* oculto por defecto */
       width: 400px;
       max-width: 90%;
       height: 100%;
       background-color: #fff;
       box-shadow: -4px 0 8px rgba(0, 0, 0, 0.3);
       z-index: 1100;
       display: flex;
       flex-direction: column;
       transition: right 0.3s ease-in-out;
       font-family: Arial, sans-serif;
   }

   #cart-panel.open {
       right: 0;
   }

   #panel-header {
       display: flex;
       justify-content: space-between;
       align-items: center;
       padding: 15px 20px;
       background-color: #25D366;
       /* verde WhatsApp */
       color: #fff;
   }

   #panel-header h3 {
       margin: 0;
       font-size: 1.2rem;
   }

   #panel-header button {
       background: none;
       border: none;
       color: #fff;
       font-size: 1.5rem;
       cursor: pointer;
   }

   #panel-content {
       flex: 1;
       overflow-y: auto;
       padding: 15px 20px;
   }

   /* Lista de productos en el carrito */
   #cart-items-list {
       display: flex;
       flex-direction: column;
       gap: 10px;
   }

   .cart-item {
       display: flex;
       justify-content: space-between;
       align-items: center;
       padding: 10px;
       border: 1px solid #ddd;
       border-radius: 8px;
   }

   .cart-item .item-name {
       font-weight: bold;
       flex: 1;
   }

   .cart-item .item-quantity {
       font-weight: bold;
       margin: 0 10px;
   }

   .cart-item .item-price {
       font-weight: bold;
       color: #dc3545;
   }

   /* Resumen y total */
   #cart-total-summary {
       margin-top: 20px;
       font-size: 1.1rem;
       display: flex;
       justify-content: space-between;
       font-weight: bold;
   }

   /* Botones del panel */
   .panel-button {
       width: 100%;
       background-color: #25D366;
       /* verde WhatsApp */
       color: #fff;
       border: none;
       padding: 10px;
       margin-top: 15px;
       border-radius: 8px;
       cursor: pointer;
       font-weight: bold;
       transition: background 0.2s, transform 0.2s;
   }

   .panel-button:hover {
       background-color: #1ebe57;
       /* verde oscuro hover */
       transform: scale(1.03);
   }

   .panel-back-button {
       background-color: transparent;
       color: #000;
       border: none;
       cursor: pointer;
       margin-bottom: 10px;
       font-weight: bold;
   }

   /* Scrollbar personalizado */
   #panel-content::-webkit-scrollbar {
       width: 6px;
   }

   #panel-content::-webkit-scrollbar-thumb {
       background-color: rgba(0, 0, 0, 0.3);
       border-radius: 3px;
   }



   /************tu pedido***/
   /* Botón redondo para eliminar productos del carrito */
 /* Contenedor de cada producto en el carrito */
 .cart-item {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 8px;
     border-bottom: 1px solid #ddd;
 }

 /* Botón redondo para eliminar productos */
 .cart-remove-btn {
     background-color: red;
     color: white;
     border: none;
     border-radius: 50%;
     width: 20px;
     height: 20px;
     font-size: 14px;
     font-weight: bold;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     line-height: 1;
     padding: 0;
     transition: background-color 0.2s ease;
 }

 .cart-remove-btn:hover {
     background-color: darkred;
 }



 /********index.php**********/

 /***acordeon boton nosotros***/


/* PANEL DEL ACORDEÓN (necesario para que esté cerrado al inicio) */
.panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
 .accordion {
     background: #e63946;
     color: #fff;
     cursor: pointer;
     padding: 10px 18px;
     border: none;
     border-radius: 8px;
     font-size: 16px;
     transition: background 0.3s;
     display: flex;
     /* Cambiado de block a flex */
     flex-direction: column;
     /* Para apilar texto + manita */
     align-items: center;
     /* Centrar contenido horizontal */
     margin: 0 auto 15px;
     width: fit-content;
 }

 .accordion:hover {
     background: #d62828;
 }

 .accordion .hand-icon {
     font-size: 0.8rem;
     margin-top: 4px;
     animation: bounce 1s infinite;
 }

 @keyframes bounce {

     0%,
     100% {
         transform: translateY(0);
     }

     50% {
         transform: translateY(-3px);
     }
 }


