/* Estilos generales */
.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.col-md-3 {
    padding: 10px;
    box-sizing: border-box;
}

a.enlace {
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
    text-decoration: none;
}

.link-hover-gray:hover {
    color: #0a58ca !important;
}
.lista-romanos {
    list-style-type: lower-roman;
    font-size: 17.5px;
}

/* Formularios compra */

.custom-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.custom-circle {
    width: 40px;
    height: 40px;
    border: 2px solid #f6911e;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    font-weight: bold;
    color: #f6911e;
}

.custom-circle.completed {
    background-color: #f6911e;
    color: #fff;
}

.custom-circle.active {
    background-color: #ff6b00 !important;
}

.custom-line {
    height: 2px;
    background-color: #f6911e;
    flex-grow: 1;
    margin: 0 10px;
    align-self: center;
}

/* Resumen de compra */

.order-summary-card {
    background: #fff;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #f5f5f5;
  }
  
  /* Título */
  .order-summary-card .order-summary-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
  }
  
  /* Lista de productos */
  .order-summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .order-summary-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
  }
  
  .order-summary-list li:last-child {
    border-bottom: none;
  }
  
  /* Botón eliminar */
  .btn-eliminar {
    border: none;
    background: none;
    color: #dc3545;
    font-size: 1.2rem;
    cursor: pointer;
    margin-right: 0.75rem;
  }
  
  /* Imagen */
  .item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 0.75rem;
  }
  
  /* Datos del producto */
  .item-details h6 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
  }
  
  .item-details small {
    display: block;
    font-size: 0.85rem;
    color: #666;
  }
  
  /* Precio de cada producto */
  .item-price {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-left: 1rem;
  }
  
  /* Controles de cantidad */
  /* Controles de cantidad */
.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    border-radius: 4px;
    padding: 4px 8px;
    width: fit-content;
  }
  
  .quantity-controls button,
  .btn-qty {
    background: none;
    border: none;
    font-size: 18px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .quantity-controls button:hover,
  .btn-qty:hover {
    background-color: #eaeaea;
    border-radius: 4px;
  }
  
  .quantity-controls span {
    width: 24px;
    text-align: center;
    font-weight: 500;
    font-size: 1rem;
  }
  
  /* Pie de totales */
  .order-summary-footer {
    margin-top: 1.5rem;
  }
  
  .footer-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
  }
  
  .footer-item .label {
    font-size: 16px;
    color: #666;
  }
  
  .footer-item .value {
    font-size: 16px;
    color: #7e7e7e;
  }
  
  .footer-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-top: 1rem;
  }

  @media (max-width: 768px) {
    .order-summary-card {
      padding: 1rem;
      margin: 1rem auto;
      width: 100%;
    }
  
    .order-summary-list li {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .item-image {
      margin-bottom: 0.5rem;
    }
  
    .quantity-controls {
      margin-top: 0.5rem;
    }
  
    .footer-total {
      font-size: 1.1rem;
      flex-direction: column;
      gap: 0.5rem;
    }
  
    .order-summary-footer .footer-item {
      flex-direction: column;
      align-items: flex-start;
    }
  }

  /* Ajustes para controles de cantidad en pantallas < 1200px */
  @media (max-width: 1200px) {
    .quantity-controls {
      flex-direction: column !important;
      gap: 0.25rem;
      padding: 4px 4px;
    }
  
    .quantity-controls button {
      margin: 0;
    }
  
    .quantity-controls span {
      margin: 0;
    }
  }

  @media (max-width: 991.98px) {
    #resumen-compra {
      display: none !important;
    }
  }
  @media (min-width: 992px) {
    #resumen-compra {
      display: block !important;
    }
  }

/* Carrusel principal */
.slick-prev,
.slick-next {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #333;
    background: none;
    border: none;
    z-index: 10;
    cursor: pointer;
}

.slick-prev svg,
.slick-next svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Carrusel de productos */
#productosInicio {
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

.slick-slide {
    display: flex !important;
    justify-content: center;
}

/* Tarjetas de producto */
.card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    background-color: transparent;
    width: 100%;
    max-width: 250px;
    height: 370px;
    position: relative;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.image-container {
    position: relative;
    height: 80%;
    overflow: hidden;
    width: 100%;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease-in-out;
}

.card:hover .thumbnail-image {
    transform: scale(1.1);
}

/* Íconos en la esquina superior derecha */
.icon-container {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.card:hover .icon-container {
    opacity: 1;
    visibility: visible;
}

.icon-container a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.icon-container a:hover {
    background-color: #000;
    transform: scale(1.1);
}

/* Detalles del producto */
.product-detail-container {
    height: 20%;
    width: 100%;
    padding: 10px 5px;
    text-align: center;
    background: transparent;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.dress-name {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.new-price {
    font-size: 18px;
    font-weight: bold;
    color: #555;
    margin-top: 5px;
    display: block;
    line-height: 1.4;
}

/* Carrusel de testimonios */
#carruselTestimonios .slick-slide {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

#carruselTestimonios .card {
    border: none !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background-color: #EEEEEE !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    position: relative !important;
    height: 400px !important;
    /* width: 300px !important; */
    margin: 0 auto;
}

#carruselTestimonios .card-body {
    padding: 20px !important;
}

#carruselTestimonios img.lazy-image {
    border-radius: 50%;
    width: 60px !important;
    height: 60px !important;
    object-fit: cover !important;
}

#carruselTestimonios .rating .star {
    width: 16px !important;
    height: 16px !important;
}

#carruselTestimonios .fw-bold {
    font-size: 14px !important;
    color: #333 !important;
}

#carruselTestimonios p {
    color: #f39c12 !important;
    font-weight: bold !important;
}
#carruselTestimonios .slick-slide {
    width: 300px !important;
}

/* Carrusel principal */
.vh-100 {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.lazy-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center; 
}

.custom-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover; 
    background-position: left center;
    background-repeat: no-repeat;
}

/* Estilos para la Vista en Lista de Productos */
#verProductosLista {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#ProductosLista {
    width: 100%; 
    max-width: 1200px;
    margin: 0 auto; 
    display: flex;
    flex-direction: column;
    gap: 20px; 
}

/* Tarjeta para Vista en Lista */
.card-product {
    display: flex;
    flex-direction: row;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
    min-height: 250px;
    max-width: 100%;
    align-items: flex-start;
    overflow: visible;
}


/* Estilos para la Vista en Cuadrícula de Productos */
#verProductosCuadricula {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 0 15px;
    margin: 0 auto;
}

#ProductosCuadricula {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tarjeta para Vista en Cuadrícula */
.custom-card {
    flex: 1 1 calc(25% - 20px);
    max-width: calc(25% - 20px);
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    height: fit-content;
    flex-direction: column;
}

.custom-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    padding: 5px;
    flex: 0.65;
}

.custom-card .card-body {
    padding: 8px 15px;
    text-align: center;
    flex: 0.35; /* 35% de la altura */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.custom-card .price {
    font-size: 16px;
    color: #333;
    margin: 2px 0;
}

.custom-card .product-title {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin: 2px 0;
}

.custom-card .product-title a:hover {
    color: #f6911e;
}

.custom-card .btn-add-to-cart {
    padding: 8px 15px;
    font-size: 14px;
    margin-top: 5px;
    background-color: #f6911e;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.custom-card .btn-add-to-cart:hover {
    background-color: #d87e1c;
}
.product-desc {
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    margin-bottom: 15px;
}

/* Elementos Comunes */
.product-image {
    position: relative;
    flex-shrink: 0;
    height: 300px;
    width: auto;
    margin-right: 20px;
    overflow: hidden;
    border-radius: 6px;
}

.product-image img {
    width: auto;
    height: 330px;
    object-fit: cover;
}

.product-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding-right: 10px;
    box-sizing: border-box;
    min-height: 230px; 
}

/* Estilos de Precios y Títulos */
.price {
    font-size: 18px;
    margin-bottom: 10px;
    word-wrap: break-word;
}

.price del {
    color: #999;
    margin-right: 10px;
    font-size: 14px;
}

.price span {
    color: #000;
    font-weight: bold;
}

.product-title {
    font-size: 18px;
    margin-bottom: 10px;
    word-wrap: break-word;
}

.product-title a {
    color: #000;
    text-decoration: none;
    font-size: 20px;
}

/* Botón Agregar al Carrito */
.btn-add-cart {
    display: inline-block;
    background-color: #f6911e;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    margin-top: auto;
    margin-bottom: 1.5rem;
    width: fit-content;
    border: none;
}

.btn-add-cart:hover {
    background-color: rgb(255, 179, 92);
}

/* Media Queries para Vista en Cuadrícula */
@media (max-width: 992px) {
    .custom-card {
        flex: 1 1 calc(33.33% - 20px);
        max-width: calc(33.33% - 20px);
    }
}

@media (max-width: 768px) {
    .custom-card {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    .custom-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Media queries para dispositivos móviles */
@media (max-width: 768px) {
    .card-product {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }

    .product-image {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .product-image img {
        width: 100%;
        height: auto;
        max-height: 200px;
    }

    .product-details {
        width: 100%;
        padding-right: 0;
    }

    .product-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .price {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .btn-add-cart {
        width: 100%;
        margin: 10px 0;
        padding: 12px 20px;
    }
}

/* Ajustes adicionales para pantallas muy pequeñas */
@media (max-width: 480px) {
    .product-desc {
        -webkit-line-clamp: 4;
    }

    .card-product {
        padding: 10px;
    }
}   

/* Estilos para el index de carrito de compras */
#opciones-envio {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.titulo-envio {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.contenedor-tarjetas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.opcion-envio {
    max-width: 250px;
    transition: all 0.2s;
    cursor: pointer;
    height: auto !important;
}

.card-envio {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.card-envio img {
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.card-envio .card-title {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.card-envio .card-text {
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.card-envio-detalle {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    width: 100%;
    flex-grow: 0;
}

.card-envio-detalle .card-title {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.card-envio-detalle .card-text {
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.card-envio-detalle .shipping-price {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    font-weight: bold;
}

.selected-shipping {
    box-shadow: 0 0 0 3px orange !important;
}

/* Para el loader */
.custom-loader {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.custom-loader .dots span {
    position: absolute;
    height: 10px;
    width: 10px;
    background: #f39c12;
    border-radius: 50%;
    transform: rotate(calc(var(--i) * (360deg / 15))) translateY(35px);
    animation: animateDots 1.5s linear infinite;
    animation-delay: calc(var(--i) * 0.1s);
    opacity: 0;
}

@keyframes animateDots {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.loader-text {
    margin-top: 2rem;
    color: #5e5e5e;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Para footer */
.btn-oval-orange {
    background-color: #228b22;
    color: white;
    padding: 4px 25px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: bold;
    display: inline-block;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-oval-orange:hover {
    background-color: #246724;
    transform: scale(1.05);
}

.conocenos-info {
    font-size: 16px;
    color: #333; 
    margin-bottom: 16px;
}

.conocenos-info .text-dark {
    color: #222 !important;
}

/* Para el tipo de entrega */
.opcion-recogida {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.opcion-recogida:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-recogida {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-recogida .card-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-recogida i {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.card-recogida h6 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.card-recogida .text-muted {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.card-recogida .fw-bold {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.text-success {
    color: #28a745 !important;
}


/* Estilos específicos para el carrusel de miniaturas */
#slide_thumb_5 {
    width: 100%;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Para pantallas medianas y grandes (>=768px) - Vertical */
@media (min-width: 768px) and (max-width: 1260px) {
    #slide_thumb_5 {
        display: block !important;
        height: auto !important;
        max-height: 450px;
        overflow-y: auto;
        padding-right: 10px;
    }
    
    #slide_thumb_5 .slick-track {
        display: flex !important;
        flex-direction: column !important;
        transform: none !important;
        width: 100% !important;
    }
    
    #slide_thumb_5 .slick-slide {
        width: 100% !important;
        margin-bottom: 10px;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .col-xl-2.order-1.order-xl-0 {
        width: 20% !important;
        display: block !important;
    }
    
    .col-xl-10.order-0.order-xl-1 {
        width: 80% !important;
    }
}

/* Para pantallas pequeñas (<768px) - Horizontal */
@media (max-width: 767px) {
    #slide_thumb_5 {
        display: flex !important;
        flex-direction: row !important;
        margin-top: 15px;
        width: 100%;
        overflow-x: auto;
    }
    
    #slide_thumb_5 .slick-track {
        display: flex !important;
        flex-direction: row !important;
    }
    
    #slide_thumb_5 .slick-slide {
        width: auto !important;
        margin-right: 10px;
    }
}

/* Asegurar que las imágenes de miniaturas tengan el tamaño adecuado */
#slide_thumb_5 img {
    object-fit: cover;
}

@media (min-width: 768px) {
    #slide_thumb_5 img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 767px) {
    #slide_thumb_5 img {
        width: 80px;
        height: 80px;
    }
}

/* Recoger en tienda */
.store-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}
.store-map iframe {
    width: 100%;
    height: 450px;
    border: 0;
}
.store-details {
    padding: 20px;
    /* background-color: #f8f8f8; */
    border-radius: 8px;
}
.store-details h3 {
    margin-top: 0;
    color: #333;
}
.store-details p {
    margin: 10px 0;
    color: #666;
}
.store-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.store-actions button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .store-container {
        grid-template-columns: 1fr;
    }
    .store-actions {
        flex-direction: column;
        gap: 10px;
    }
}