/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */

/* Configuración correcta para DIN Next LT Pro */
@font-face {
  font-family: "DINNextLTPro";
  src: url("../fonts/DINNextLTPro-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DINNextLTPro";
  src: url("../fonts/DINNextLTPro-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Configuración correcta para DIN Next Rounded LT Pro */
@font-face {
  font-family: "DINNextRoundedLTPro";
  src: url("../fonts/DINNextRoundedLTPro-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DINNextRoundedLTPro";
  src: url("../fonts/DINNextRoundedLTPro-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DINNextRoundedLTPro";
  src: url("../fonts/DINNextRoundedLTPro-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DINNextRoundedLTPro";
  src: url("../fonts/DINNextRoundedLTPro-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.product-price {
  color: #00a0e6 !important;
}

.products-grid .product-miniature-layout-1 {
  text-align: left;
  font-size: 14px !important;
}

.products-grid .product-miniature-layout-1 .product-description {
  /*margin-left: -10px;*/
  border-radius: 12px;
}

a:hover:not(.nav-link):not(.btn) {
  color: #02648f;
}

.products-grid .product-miniature-layout-1 {
  margin-left: 20px;
  margin-right: 20px;
}

.product-miniature-default .product-thumbnail img {
  border-radius: 10px;
}

a:link:not(.nav-link):not(.btn),
a:visited:not(.nav-link):not(.btn) {
  color: #02648f;
}

/* Aplicación de fuentes */
body {
  font-family: "DINNextLTPro";
  font-weight: 400; /* Regular */
}

h1 {
  font-family: "DINNextRoundedLTPro";
  font-weight: 700; /* Bold */
  font-size: 40px;
}

h2,
button {
  font-family: "DINNextLTPro";
  font-weight: 500; /* Medium - asumiendo que quieres un peso intermedio */
  font-size: 22px;
}
/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */
.resumen-total-cart {
  background-color: #02648f;
  color: white;
  padding: 0px;
  margin: 0px;
  height: 45px;
  align-items: center;
  justify-content: center;
  border-radius: 20px 20px 0px 0px;
}

.body-cart {
  border-radius: 20px 20px 20px 20px;
  border-color: #00a0e6;
  border: solid 4px #00a0e6;
  background-color: white;
}

.cart-detailed-actions a,
.cart-detailed-actions a:hover {
  background-color: #00a0e6;
  color: white;
  border-radius: 37px;
  text-transform: uppercase;
}

.promo-code i {
  display: none;
  visibility: hidden;
}

.promo-code input {
  border-radius: 37px !important;
  margin-right: 10px;
  border: solid 1px #02648f;
}

.promo-code button,
.promo-code button:hover,
.promo-code button:focus,
.promo-code button:active {
  background-color: #02648f;
  color: white;
  border-radius: 37px;
  text-transform: uppercase;
}

.cart-grid-body a.btn {
  background-color: #02648f;
  color: white;
  border-radius: 37px;
  text-transform: uppercase;
}

.cart-item {
  background-color: white;
  border: none;
}

#content-wrapper .page-title {
  justify-content: center;
  margin-top: 30px;
  align-items: center;
  display: flex;
  font-size: 25px !important;
}

.container-account {
  display: flex;
  justify-content: space-around;
  width: 100%;
}

.div-btn-sign-out {
  display: flex;
  justify-content: center;
}

.btn-sign-out {
  color: #00a0e6;
  border: solid 2px #00a0e6;
  border-radius: 15px;
  text-transform: uppercase;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-sign-out:hover {
  color: #00a0e6;
}

.card-account .card {
  /* background-color: #7a808230; */
  border: solid 1px #02648f !important;
  color: black;
  border-radius: 15px;
  box-shadow: 0 0 15px 3px rgba(0, 0, 0, 0.1);
}

.card-account .card-body {
  color: black;
}

/* Botones del checkout */
.continue {
  background-color: #02648f !important;
  color: white;
  border-radius: 37px;
  text-transform: uppercase;
}
.ps-shown-by-js button {
  background-color: #02648f !important;
  color: white;
  border-radius: 37px;
  text-transform: uppercase;
}

/* Titulos de las etapas del checkout */
.step-title {
  color: #00a0e6 !important;
}

/* Radio del select de direccion del checkout */
.address-item .address-alias {
  color: #00a0e6 !important;
}

.radio-block input[type="radio"]:checked + .radio-block::after {
  background: #00a0e6;
}

button.btn.btn-primary.disabled {
  background-color: #02648f !important;
  color: white;
  border-radius: 37px;
  text-transform: uppercase;
}
/* imagenes del pago */
/* .payment-option label {
  display: flex;
  align-items: center;
} */

div.option-icon-image {
  display: inline;
}

/* Flechas que no se ven */
.btn-touchspin {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; /* Ajusta al tamaño de tu botón */
  height: 30px;
  padding: 0;
}
/* Flecha hacia ARRIBA (SVG) */
.touchspin-up {
  display: inline-block !important;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 6L18 12M12 6L6 12' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  left: 3px !important;
  color: #02648f !important;
}

/* Flecha hacia ABAJO (SVG) */
.touchspin-down {
  display: inline-block !important;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 18L18 12M12 18L6 12' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  left: 3px !important;
  color: #02648f !important;
  top: -1px !important;
}

/* Ocultar el ícono de FontAwesome */
.touchspin-up::before,
.touchspin-down::before {
  display: none !important;
}

/* Estilos del nombre de cesta en el cart */
.title-cart-container {
  height: 70px;
  background-color: #02648f;
  width: 50%;
  border-radius: 25px 25px 0px 0px;
  bottom: -25px;
  position: relative;
  z-index: 1;
}
.title-cart-detail-container {
  height: 70px;
  background-color: #02648f;
  width: max-content;
  border-radius: 25px 25px 0px 0px;
  bottom: -25px;
  position: relative;
  z-index: 1;
}
.title-cart-text {
  color: white;
  text-transform: uppercase;
  padding-left: 25px;
  padding-top: 10px;
  padding-right: 25px;
  font-weight: normal;
}
.cart-container {
  border-radius: 25px !important;
  background-color: white !important;
  overflow: hidden;
  position: relative;
  z-index: 2 !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.cart-total-action {
  border-radius: 25px !important;
  background-color: white !important;
  overflow: hidden;
  position: relative;
  z-index: 2 !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.cart-summary {
  border: none !important;
}

/* Elementos dentro del div de productos en el cart */
.cart-custom-items {
  margin: 20px;
}

.cart-line-product-actions {
  padding-right: 20px;
}

/* Check out  */
.cart-container-emty {
  border-radius: 25px !important;
  background-color: white !important;
  overflow: hidden;
  position: relative;
  z-index: 2 !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  height: auto;
}

.cart-container-emty-text {
  font-size: 25px;
  margin-top: 10px;
  margin-inline-start: 30px;
  margin-bottom: 10px;
}

.btn-cart-container-emty {
  margin-inline-start: 25px;
  margin-bottom: 10px;
}

.title-checkout-sumary-container {
  height: 70px;
  background-color: #02648f;
  width: 100%;
  border-radius: 25px 25px 0px 0px;
  bottom: -25px;
  position: relative;
  z-index: 1;
}

.title-checkout-sumary-text {
  color: white;
  text-transform: uppercase;
  padding-left: 25px;
  padding-top: 10px;
}

.cart-summary-container {
  border-radius: 25px !important;
  background-color: white !important;
  overflow: hidden;
  position: relative;
  z-index: 2 !important;
  box-shadow: 0 0 10px rgba(0,  0,  0,  0.5) !important;
  border: 1px rgba(160, 160, 160, 0.25) solid;
}

/* VER MAS */
/* Estilo base truncado - exactamente como lo quieres */
.product-description-container.truncated .product-description {
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 14.5em; /* 10 líneas × 1.5em */
  line-height: 1.5em;
  transition: all 0.4s ease;
  position: relative;
}

/* Efecto de degradado */
.product-description-container.truncated .product-description::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2em;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 1) 80%
  );
  pointer-events: none;
}

/* Estilo expandido */
.product-description-container.expanded .product-description {
  -webkit-line-clamp: unset;
  max-height: none;
  display: block;
}

.product-description-container.expanded .product-description::after {
  display: none;
}

/* Contenedor de botones - estilo personalizado */
.description-toggle-buttons {
  margin-top: 5px;
  text-align: right;
  margin-right: 80px;
}

/* Botones - exactamente como los especificaste */
.toggle-description {
  background: none;
  border: none;
  color: #2fb5d2;
  cursor: pointer;
  font-size: 18px; /* Tamaño más grande */
  padding: 0px 30px; /* Espaciado horizontal amplio */
  margin-left: -5px; /* Ajuste de posición */
  transition: all 0.2s ease;
  margin-bottom: 20px;
  margin-top: 10px;
}

.toggle-description:hover {
  text-decoration: underline;
  color: #25a0c0; /* Color ligeramente más oscuro al hover */
}

/* Ocultar/mostrar botones según estado */
.product-description-container:not(.needs-toggle) .description-toggle-buttons {
  display: none;
}

.toggle-less {
  display: none;
}

.product-description-container.expanded .toggle-more {
  display: none;
}

.product-description-container.expanded .toggle-less {
  display: inline-block;
}

/* Codigo para Busqueda */
.products-selection {
  display: none;
}

.recommended-products-title {
  text-align: center;
  margin: 20px 0;
  padding: 10px 0;
  color: #333;
  border-bottom: 1px solid #eee; /* Opcional: línea decorativa */
}

.recommended-products-title h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  padding: 0;
}

.search-term {
  color: #25a0c0;
  font-weight: bold;
}
.page-title {
  margin-bottom: 20px;
  text-align: center;
}

/* Contenedor del primer producto */
.first-product-wrapper {
  margin-bottom: 100px;
  border-radius: 12px;
  max-width: 250px;
  margin: 0 auto; /* Centra la imagen */
}

.product-thumbnail img {
  margin-bottom: 100px;
  border-radius: 12px;

  max-width: 200px;
  margin: 0 auto; /* Centra la imagen */
}

/* Media Queries para hacerlo responsive */
@media (max-width: 768px) {
  .first-product-wrapper {
    max-width: 350px;
    padding: 12px;
  }
}

@media (max-width: 576px) {
  .first-product-wrapper {
    max-width: 100%;
    margin-left: 15px;
    margin-right: 15px;
    border-radius: 8px;
  }
}

@media (max-width: 400px) {
  .first-product-wrapper {
    padding: 10px;
    margin-left: 10px;
    margin-right: 10px;
  }
}

/* Garantizar visibilidad de nombre y precio */
.first-product-wrapper .product-title,
.first-product-wrapper .product-price-and-shipping {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  height: auto !important;
  margin-top: 15px;
  color: #25a0c0;
  padding: 0 26px;
}

/* Asegurar que solo el primer producto destacado sea visible */
.first-product-wrapper {
  display: block !important;
  margin-bottom: 30px;
}

.first-product-wrapper ~ .products .product-miniature[data-id-product="X"] {
  display: none !important;
}

/* Oculta el primer elemento pero mantiene su espacio en el layout */
.js-product-miniature-wrapper:first-of-type {
  visibility: hidden !important;
  position: relative !important;
  /* Mantiene el espacio sin contenido visible */
  height: 0 !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  overflow: hidden !important;
}

/* Elimina el contenido interno del primer elemento */
.js-product-miniature-wrapper:first-of-type > * {
  display: none !important;
}

/* Mantiene el diseño de elementos uno al lado del otro */
.js-product-miniature-wrapper {
  display: inline-block !important;
  vertical-align: top !important;
  float: left !important;
  box-sizing: border-box !important;
  position: relative !important;
  /* Conserva las clases de columnas Bootstrap */
  min-height: 0 !important;
}

/* Contenedor padre - corrige el layout */
.product-list,
.products-grid {
  width: 100% !important;
  contain: layout !important;
  font-size: 0 !important; /* Elimina espacios entre elementos inline-block */

  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  align-content: center;
  justify-content: flex-end;
}

/* Reset para el contenedor padre */
.product-list:after,
.products-grid:after {
  content: "";
  display: table !important;
  clear: both !important;
}

/* Asegura las proporciones de las columnas */
.col-6 {
  width: 50% !important;
}
.col-md-4 {
  width: 33.333% !important;
}
.col-lg-3 {
  width: 25% !important;
}
.col-xl-15 {
  width: 20% !important;
}

/* Responsividad */
@media (max-width: 767px) {
  .col-md-4,
  .col-lg-3,
  .col-xl-15 {
    width: 50% !important;
  }
}

.-back-to-top-visible {
  background-color: transparent !important;
}

#back-to-top i {
  color: #fe5000 !important;
}

#submit-login,
.btn-register {
  background-color: #02648f;
  border-radius: 25px;
}

.forgot-password {
  text-align: center;
  margin-bottom: 10px;
}
.no-account {
  text-align: center;
}

@media (max-width: 576px) {
  .title-cart-container,
  .card-header-prime,
  .title-cart-detail-container {
    width: 100% !important;
  }
}

.product-add-to-cart.pt-3.js-product-add-to-cart {
  display: flex;
  flex-direction: column-reverse;
}

.swiper-button-prev.swiper-button-inner-prev.swiper-button-arrow {
  background: none !important;
}

.swiper-button-next.swiper-button-inner-next.swiper-button-arrow {
  background: none !important;
}

.cart-total .value {
  color: #007bff !important;
}

/* VER   DESCRIPCION COMPLETA */
/* Estilo para el botón - Versión minimalista */
.toggle-description-btn {
  background: transparent; /* Fondo transparente */
  color: #02648f; /* Color azul oscuro solicitado */
  border: none;
  padding: 0; /* Sin padding adicional */
  cursor: pointer;
  font-size: 22px; /* Tamaño aumentado a 22px */
  margin: 15px 0;
  font-weight: normal; /* Peso normal de fuente */
  text-decoration: underline; /* Subrayado */
  display: inline-block;
  transition: color 0.2s ease;
  position: relative;
}
