/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #2196f3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.headerPermisos {
  background: #4a235a;
  color: aliceblue;
}

.textCenter {
  text-align-last: center;
}

.textcenter {
  text-align: center;
}
.textright {
  text-align: right;
}
.textleft {
  text-align: left;
}

#divLoading {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  background: blue;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(254, 254, 255, 0.65);
  z-index: 9999;
  display: none;
}

#divLoading img {
  width: 50px;
  height: 50px;
}
.accesorestringido img {
  width: 60%;
  height: 60%;
}
.required {
  color: red;
  font-size: 13pt;
  font-weight: bold;
}

/* Style portada categoria */

.prevPhoto {
  display: flex;
  justify-content: space-between;
  width: 300px;
  height: 200px;
  border: 1px solid #ccc;
  position: relative;
  cursor: pointer;
  background: url(../images/uploads/portada_categoria.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  margin: auto;
}

.prevPortada {
  width: 100%;
  min-width: 200px;
  background: none;
}
.prevPhoto label {
  cursor: pointer;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}
.prevPhoto img {
  width: 100%;
  height: 100%;
}
.upimg,
.notblock {
  display: none !important;
}
.errorArchivo {
  font-size: 16px;
  font-family: arial;
  color: #cc0000;
  text-align: center;
  font-weight: bold;
  margin-top: 10px;
}
.delPhoto {
  color: #fff;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  background: red;
  position: absolute;
  right: -10px;
  top: -10px;
  z-index: 10;
}
#tbl_list_productos img {
  width: 50px;
}
.imgProductoDelete {
  width: 175px;
}

#imgCategoria {
  text-align: center;
}
#imgCategoria img {
  width: 200px;
  margin: auto;
}

/*upload fotos */
#containerImages {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

#containerImages > div {
  margin-right: 10px;
  margin-bottom: 8px;
}

.prevImage {
  border: 1px solid #ccc;
  width: 120px;
  height: 148px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.prevImage img {
  width: 100%;
}

.inputUploadfile {
  display: none;
}

.btnUploadfile,
.btnDeleteImage {
  border: 0;
  background-color: #009688;
  text-align: center;
  padding: 2px 3px;
  color: #fff;
  font-size: 9pt;
  cursor: pointer;
  width: 100%;
}
.btnDeleteImage {
  background-color: #dc3545;
}
.prevImage .loading {
  width: 50px;
  height: 50px;
}
#celFotos img {
  width: 150px;
  margin: 10px;
}

/* tienda virtual */

.divmetodpago label,
#divCondiciones {
  width: 100%;
  display: flex;
}

.divmetodpago label input,
#divCondiciones input {
  margin-right: 15px;
}

#divCondiciones a {
  margin-left: 5px;
}

#divCondiciones a {
  margin-bottom: 0;
}

.custom-text-right {
  text-align: right !important;
}

.table.table-striped tfoot td {
  border-bottom: none;
}

.custom-thead1 {
  background-color: lightgrey;
}

#thead11 {
  background-color: lightgrey !important;
}

.containers1 {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
}

.left-content {
  flex: 1;
  padding: 20px;
}

.container-title {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.container-title input {
  border: 1px solid #ccc;
  padding: 4px;
  border-radius: 7px;
  margin-right: 5px;
}

.dflex {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.ui-datepicker-calendar {
  display: none;
}

#modalFormProductos {
  max-width: 100%;
  overflow: hidden;
}

nav ul li a {
  text-decoration: none;
  padding: 10px;
  color: #333; /* Color de texto normal */
}

/* Estilo para el enlace activo (subrayado con un color diferente) */
nav ul li a.active {
  text-decoration: underline;
  color: #f00; /* Color de texto para el enlace activo */
}

.page-content ul li {
  list-style-type: disc;
  margin-left: 15px;
  margin-bottom: 10px;
}

.page-content ol li {
  list-style-type: decimal;
  margin-left: 15px;
  margin-bottom: 10px;
}

.page-content ul li ul li,
.page-content ol li ul li {
  list-style-type: circle;
  list-style-position: inside;
  margin-left: 15px;
}

.page-content ol li ol li,
.page-content ul li ol li {
  list-style-type: lower-latin;
  list-style-position: inside;
  margin-left: 15px;
}

.page-error h1,
.page-error .h1 {
  margin: 10px;
  font-size: 42px;
}

.page-error {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  min-height: calc(100vh - 110px);
  margin-bottom: 0;
}

/* Tarjeta del producto */
.product-item {
  background-color: #ffffff; /* Fondo blanco para contraste */
  border: 8px solid #f0f0f0; /* Borde sutil */
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  position: relative;
}

/* Hover con efecto de elevación */
.product-item:hover {
  transform: translateY(-6px);
  border-color: #a7c3f8; /* Color del borde al hacer hover (azul bootstrap) */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Imagen del producto */
.product-image img {
  border-radius: 10px;
  transition: transform 0.3s ease;
}

/* Zoom leve al pasar el mouse */
.product-item:hover img {
  transform: scale(1.05);
}

/* Nombre del producto */
.product-name {
    height: 48px;
    overflow: hidden;
}
.product-name a {
  color: #333;
  font-weight: 600;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limita a 2 líneas */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2em;
  max-height: 2.4em; /* (2 líneas * altura de línea) */
  font-size: 0.95rem;
}


.product-name a:hover {
  color: #0d6efd;
}

/* Precio */
.product-price {
  color: #DDB371;
  font-size: 1.1rem;
  font-weight: bold;
  margin: 8px 0;
}

/* Botón de carrito */
.icon-header-item {
  color: #555;
  font-size: 1.3rem;
  transition: color 0.3s;
}

.icon-header-item:hover {
  color: #0d6efd;
}


/* Contenedor de precio y carrito alineados */
.product-item .product-price,
.product-item .block2-txt-child2 {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

/* Hace que ambos estén centrados y alineados horizontalmente */
.product-item .product-price {
  font-size: 1.3rem; /* un poco más grande */
  font-weight: 700;
  color: #030303;
  margin-right: 8px; /* separación con el carrito */
}

/* Ícono del carrito */
.product-item .block2-txt-child2 .icon-header-item {
  font-size: 1.5rem;
  color: #555;
  transition: color 0.3s ease;
}

.product-item .block2-txt-child2 .icon-header-item:hover {
  color: #0d6efd;
}

/* --- SLIDER DE CATEGORÍAS --- */
.categorias {
  padding: 4rem 0;
  background: linear-gradient(135deg, #FBEAE7 0%, #fefeff 100%) !important;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #111;
}

.categorias-swiper {
  width: 100%;
  padding-bottom: 2rem;
}

.categoria-item {
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.categoria-item a {
  display: block;
  text-decoration: none;
  color: #111;
}

.categoria-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.8rem;
}

.categoria-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.categoria-item h3 {
  font-size: 1rem;
  font-weight: 600;
}

/* --- SWIPER CONTROLS --- */
.swiper-pagination-bullet-active {
  background: #ffb703;
}

.swiper-button-prev,
.swiper-button-next {
  color: #ffb703;
  transition: color 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  color: #111;
}

.swiper-pagination-bullet-active {
  background: #ffb703;
}

/* Quitar fondo blanco o sombra de los slides */
.swiper-slide {
  box-shadow: none !important;
  border: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
}

/* Opcional: mejora visual al pasar el mouse */
.swiper-slide:hover img {
  transform: scale(1.05);
  /* transition: transform 0.3s ease; */
}

.swiper-slide img {
  border-radius: 15px;
  width: 400px;
  height: 500px; /* ajusta la altura según tu gusto */
  object-fit: cover; /* recorta sin deformar */
  object-position: center; /* centra la parte visible */
  border-radius: 15px;
  transition: transform 0.3s ease;
}

/* Centra los textos y elimina márgenes innecesarios */
.swiper-slide p {
  margin-top: 10px;
  font-weight: 500;
  text-align: center;
}

/* Barra de navegación pastel */
.header-nav {
  background-color: #F8EFD9 !important; /* tono beige pastel */
  border-bottom: 1px solid #e8dcc2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Enlaces */
.header-nav .navmenu ul li a {
  color: #5a4633 !important; /* marrón suave para contraste */
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Hover y activo */
.header-nav .navmenu ul li a:hover,
.header-nav .navmenu ul li a.active {
  color: #a47d5c !important; /* tono arena medio */
}

/* ===== FOOTER ESTILO PASTEL SUAVE ===== */
#footer.footer {
  background-color: #F4EAD7; /* Beige suave y cálido */
  color: #5a4633; /* Marrón medio para texto */
  border-top: 1px solid #e1d5bb;
  padding-top: 40px;
  font-family: 'Poppins', sans-serif;
}

/* Títulos */
#footer .footer-widget h4,
#footer .footer-widget h5 {
  color: #4a3b2c;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Texto */
#footer .footer-widget p {
  color: #6b5845;
  line-height: 1.6;
}

#footer .footer-widget span {
  color: #6b5845;
  line-height: 1.6;
}

#footer strong {
  color: #4a3b2c;
  font-weight: 600;
}

/* Enlaces */
#footer .footer-widget a {
  color: #7a634a;
  text-decoration: none;
  transition: color 0.3s ease;
}

#footer .footer-widget a:hover {
  color: #a47d5c;
}

/* Redes sociales */
#footer .social-links h5 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #4a3b2c;
}

#footer .social-links .social-icons a {
  background: #f8efd9;
  color: #5a4633;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#footer .social-links .social-icons a:hover {
  background: #e8dcc2;
  color: #a47d5c;
}

/* Iconos de contacto */
#footer .footer-contact .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  color: #5a4633;
}

#footer .footer-contact i {
  font-size: 1.1rem;
  color: #b89d73;
}

/* Footer bottom */
#footer .footer-bottom {
  background-color: #EFE2C1;
  border-top: 1px solid #e1d5bb;
  padding: 20px 0;
  font-size: 0.9rem;
  color: #6e5a43;
}

#footer .footer-bottom .copyright p {
  margin: 0;
  color: #6e5a43;
}

#footer .footer-bottom .credits a {
  color: #9d7f5d;
  text-decoration: none;
}

#footer .footer-bottom .credits a:hover {
  color: #b38a68;
}

/* Certificado PCI */
#footer .pci-certificado img {
  max-height: 200px;
}

#footer .pci-certificado p {
  color: #7a6a54;
}

/* Iconos de pago */
#footer .payment-icons i {
  font-size: 1.4rem;
  color: #7a634a;
  transition: color 0.3s ease;
}

#footer .payment-icons i:hover {
  color: #a47d5c;
}


/* === GRID GENERAL DE PRODUCTOS === */
.best-sellers-tienda {
  background: linear-gradient(135deg, #ffff 0%, #fefeff 100%) !important;
}
.section.best-sellers-tienda .row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

/* === TARJETA DEL PRODUCTO === */
.product-item {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: center;
  padding-bottom: 15px;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* === IMAGEN DEL PRODUCTO === */
.product-image {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #f1f1f1;
}

.product-image img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
  transform: scale(1.05);
}

/* === BOTÓN “VER PRODUCTO” === */
.cart-btn {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #1e3a8a, #1d4ed8); 
  color: #fff !important;
  border-radius: 20px;
  padding: 8px 18px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-btn:hover{
  opacity: 1;
  transform: translateX(-50%) translateY(-3px);
}

.product-item:hover .cart-btn {
  opacity: 1;
  bottom: 20px;
}

/* === TEXTO DE INFORMACIÓN === */
.product-info {
  padding: 10px 15px;
}

.product-name {
  font-size: 1rem;
  color: #333;
  font-weight: 600;
  margin-top: 10px;
  line-height: 1.3;
  height: 45px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* máximo 2 líneas */
  -webkit-box-orient: vertical;
}

.product-name a {
  color: inherit;
  text-decoration: none;
}

.product-price {
  color: #030303; /* azul pastel elegante */
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 8px;
}

/* === ÍCONO CARRITO PEQUEÑO === */
.block2-txt-child2 a i {
  font-size: 1.3rem;
  color: #999;
  transition: color 0.2s, transform 0.2s;
}

.block2-txt-child2 a:hover i {
  color: #2563eb;
  transform: scale(1.2);
}

.payment-icons i,
.payment-icons img {
  height: 28px;
  width: auto;
  color: #666;
  transition: transform 0.2s ease, color 0.2s ease;
}

.payment-icons i:hover,
.payment-icons img:hover {
  transform: scale(1.1);
  color: #ff7f50;
}

.payment-logo {
  filter: grayscale(100%);
  opacity: 0.85;
  transition: all 0.2s ease;
}

.payment-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}




