/* Estilos generales */
body {
    background-image: url('../image/coffee-sales-website.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-top: 56px; /* Espacio para la navbar fija */
    font-family: 'Arial', sans-serif;
    color: #333;
}

/* Navbar */
.navbar {
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.navbar .nav-item a {
    color: #333 !important;
}

.navbar-nav .nav-item .nav-link {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
    padding-left: 15px;
    padding-right: 15px;
}

.navbar-nav .nav-item .nav-link i {
    margin-right: 5px;
}

.navbar-nav .nav-item .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Estilos de botones */
.btn-primary {
    background-color: #007bff;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-info {
    background-color: #17a2b8;
    border: none;
}

.btn-info:hover {
    background-color: #117a8b;
}


/* Estilos de tarjetas */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease-in-out;
    margin: 10px;
    min-height: 450px;
    background-color: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(5px);
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    margin-top: 20px;
    border-radius: 25px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    max-height: 200px;
    object-fit: cover;
    width: 90%;
}
.card img {
    min-height:200px;
}

.card-body {
    text-align: center;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
}

.card-text {
    font-size: 1rem;
    color: #555;
}
/* Estilos para las estrellas */
.stars {
    color: gold;
    font-size: 1.2em;
    display: inline-block;
}




/* Footer */
footer {
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 10px 0;
    position: relative;
    width: 100%;
    margin-top: 20px;
    bottom: 0;
}

footer p {
    margin: 0;
    color: #333;
}

footer a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #0056b3;
}

footer .social-icons {
    margin-top: 10px;
}

footer .social-icons a {
    margin: 0 10px;
    color: #333;
    transition: color 0.3s ease;
}

footer .social-icons a:hover {
    color: #007bff;
}

/* Estilos específicos */
#contenido {
    margin-left: auto;
}

#contenido h2 {
    color: #fff;
    background-color: #000;
    max-width: 75%;
    background-image: url('../image/wooden-background.webp'); /* Ajusta la ruta según sea necesario */
    background-size: cover;
    background-position: center;
    padding: 10px;
    font-size: 1.5rem;
    text-align: center;
    border-radius: 5px;
}
#sidebarDesktop {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 70px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    max-width: 200px;
}

#sidebarDesktop h5 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 15px;
}

#sidebarDesktop .list-group {
    border: none;
    padding-left: 0;
    list-style: none;
}

#sidebarDesktop .list-group-item {
    border: none;
    border-bottom: 1px solid #eee;
    padding: 10px 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
}

#sidebarDesktop .list-group-item ul, li, a {
    color: #000;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

#sidebarDesktop .list-group-item ul, li {
    list-style-type: none;
}

#sidebarDesktop .list-group-item ul, li, a:hover {
    text-decoration: none;
    color: #fff;
}

#sidebarDesktop .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px);
}


#cartContainer {
     display: none;
}

#cartContainer h2 {
    color: #3e2723; /* tono café suave para el modal */
}
/* === BOTÓN FLOTANTE DEL CARRITO === */
#cartFloatingBtn {
  position: fixed;
  bottom: 225px;
  right: 65px;
  background: rgba(102, 51, 0, 0.85); /* tono café oscuro */
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  cursor: pointer;
  z-index: 1050;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#cartFloatingBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Contador del carrito */
#cartCount {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ffb703;
  color: #000;
  font-size: 14px;
  font-weight: bold;
  border-radius: 50%;
  padding: 3px 7px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}


/* === PANEL LATERAL DEL CARRITO === */
#cartModal {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

#cartModal.active {
  transform: translateX(0);
}

/* Cabecera del modal */
#cartModalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
}

#cartModalHeader h4 {
  font-weight: bold;
  color: #3e2723;
}

#closeCartBtn {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #3e2723;
  cursor: pointer;
}

/* Contenido scrollable */
#cartModalBody {
  flex: 1;
  overflow-y: auto;
  margin-top: 15px;
}

/* Botón fijo al fondo */
#cartModalFooter {
  border-top: 1px solid #ccc;
  padding-top: 15px;
  text-align: center;
}

#cartModalFooter button {
  width: 100%;
  background-color: #6f4e37;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s;
}

#cartModalFooter button:hover {
  background-color: #5c4033;
}
body.cart-open {
  overflow: hidden;
}

body.cart-open::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(3px);
  z-index: 1055;
}

#cartCount.pulse {
  animation: pulseAnim 0.4s ease;
}

@keyframes pulseAnim {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* === RESPONSIVE PARA MÓVILES === */
@media (max-width: 768px) {
  #cartFloatingBtn {
    bottom: 60px;
    right: 5px;
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  #cartModal {
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }

  #cartModalFooter button {
    font-size: 1rem;
  }
}





/* Ajustes responsivos */
@media (max-width: 768px) {
    .col-12 {
        margin-bottom: 20px;
        margin-top: -70px;
        background-image: url('../image/wooden-background.webp'); /* Ajusta la ruta según sea necesario */
        background-size: cover;
        background-position: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        color: #fff;
    }
    
    .col-12 h5 {
        font-size: 28px;
        margin-top: 10px;
    }
    
    .product-container {
        margin-top: 70px;
    }

    .product-image, .img-thumbnail {
        max-height: 200px;
    }

    .star-rating {
        font-size: 30px;
    }

    #leaveReviewBtn {
        font-size: 14px;
        padding: 6px 15px;
    }

    #cartContainer {
        margin-bottom: 100px;
    }

    #leftMenuMobile li {
        background-image: url('../image/wooden-background.webp'); /* Ajusta la ruta según sea necesario */
        background-size: cover;
        background-position: center;
        color: #fff;
        margin-top: 10px;
        text-align: center;
    }

    #leftMenuMobile .list-group-item a {
        color: #fff !important;
    }

    #leftMenuMobile .list-group-item a:hover {
        color: #ccc !important;
    }

    #leftMenuMobile .list-group-item a {
        margin-bottom: -20px;
        font-size: 26px;
    }
    .collapse {
    transition: height 3.9s ease;
}

}
