/* estilos script productos */
#seccion-productos-unica {
    font-family: sans-serif;
    background-color: #fff;
    margin: 0;
    padding: 40px 0;
    display: block;
    min-height: 50vh;
}

#seccion-productos-unica .container {
    width: 100%;
    background-color: rgb(255, 255, 255);
    padding: 0;
    box-sizing: border-box;
    max-width: 1200px;
    margin: 20px auto 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    display: block;
}

#seccion-productos-unica .container-product {
    width: 100%;
    min-width: 200px;
    max-width: 1000px;
    height: auto;
    min-height: 150px;
}




#seccion-productos-unica {
    box-sizing: border-box;
}


#seccion-productos-unica .cart-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;

}


#seccion-productos-unica .row {
    padding-top: 20px;
}

#seccion-productos-unica h1 {
    color: #000000;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-top: 0;
}

#seccion-productos-unica h4,
#seccion-detalles-unica h4 {
    color: #30498C;
    margin-top: 30px;
    position: relative;
}



#seccion-productos-unica .item {
    display: block;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}


#seccion-productos-unica .item img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 5px;
    margin-right: 0;
}

#seccion-productos-unica .item-details {
    flex-grow: 1;
    min-height: auto;
}

#seccion-productos-unica .item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


#seccion-productos-unica .item-header h2 {
    margin: 0;
    font-size: 1.1em;
    color: #555;
}

.desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3em;
    line-clamp: 3;
}

#seccion-productos-unica .description {
    color: #888;
    font-size: 0.9em;
    margin: 5px 0;
}

#seccion-productos-unica .remove-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 1em;
}

#seccion-productos-unica .remove-btn:hover {
    color: #e74c3c;
}

#seccion-productos-unica .quantity-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

#seccion-productos-unica .quantity-control button {
    padding: 5px 10px;
    background-color: #eee;
    border: 1px solid #ddd;
    cursor: pointer;
}

#seccion-productos-unica .quantity-control span {
    padding: 0 10px;
    font-weight: bold;
}

#seccion-productos-unica .price {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

#seccion-productos-unica .summary-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    padding: 15px;
}

#seccion-productos-unica .summary-list li {
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #333;
    line-height: 1.4;
}

#seccion-productos-unica .contenedor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    align-items: stretch;
}

@media (max-width: 768px) {
    #seccion-productos-unica .contenedor-grid {
        grid-template-columns: 1fr;
    }
}

#seccion-productos-unica .parte-uno,
#seccion-productos-unica .parte-dos {
    padding: 20px;
    background-color: rgb(255, 255, 255);
}


/* Estilo para el primer elemento (el título "Detalles") */
#seccion-productos-unica .summary-list li:first-child {
    font-size: 1.1em;
    color: #000;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}



#seccion-productos-unica .checkout-btn,
#seccion-productos-unica .btn-detalles {
    width: 100%;
    padding: 15px;
    background-color: #3498db; /* color de Detalles */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 5px 0;
    text-align: center;
    text-decoration: none; 
    display: block;        
}


#seccion-productos-unica .checkout2-btn,
#seccion-productos-unica .btn-carrito {
    width: 100%;
    padding: 15px;
    background-color: #e67e22; /* color de Detalles */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 5px 0;
    text-align: center;
    text-decoration: none; 
    display: block;        
}

#seccion-productos-unica .checkout3-btn,
#seccion-productos-unica .btn-comprar {
    width: 100%;
    padding: 15px;
    background-color: #28c24e; /* color de Detalles */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 5px 0;
    text-align: center;
    text-decoration: none; 
    display: block;        
}

#seccion-productos-unica .checkout-btn:hover,
#seccion-detalles-unica .checkout-btn:hover {
    opacity: 0.85;
}



#seccion-productos-unica #btn-detalles:hover {
    background-color: #2e8ece;
}


#seccion-productos-unica #btn-carrito:hover {
    background-color: #d35400;
}


/* ///////////////////////////////////////////////////////////////////////////////////// */
/* estilos paginacion  */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: flex-end;
}

.pagination li {
    margin: 0 2px;
}

.pagination li a {
    display: block;
    padding: 5px 12px;
    border: 1px solid #30498C;
    color: #30498C;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: white;
    transition: all 0.2s ease;
}

.pagination li a.active,
.pagination li.active a {
    background-color: #30498C;
    color: white;
}

/* Estilo al pasar el mouse */
.pagination li a:hover {
    background-color: #0c77a8;
    border: 1px solid #0c77a8;
    color: white;
}

/* ///////////////////////////////////////////////////////////////////////////////////// */
/* estilos script detalles */
#seccion-detalles-unica .container {
    max-width: 1200px;
    margin: 20px auto 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    display: block;

}

#seccion-detalles-unica .container.mt-4 {
    padding: 0;
}

#seccion-detalles-unica .cart-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}


#seccion-detalles-unica h1 {
    color: #000000;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-top: 0;
}


/* Estilo para cada item individual */
#seccion-detalles-unica .item {
    display: block;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}


#seccion-detalles-unica .item img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 5px;
    margin-right: 0;
}

#seccion-detalles-unica .item-details {
    flex-grow: 1;
}

#seccion-detalles-unica .item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#seccion-detalles-unica .item-header h2 {
    margin: 0;
    font-size: 1.1em;
    color: #555;
}

#seccion-detalles-unica .description {
    color: #888;
    font-size: 0.9em;
    margin: 5px 0;
}

#seccion-detalles-unica .remove-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 1em;
}

#seccion-detalles-unica .remove-btn:hover {
    color: #e74c3c;
}

#seccion-detalles-unica .quantity-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

#seccion-detalles-unica .quantity-control button {
    padding: 5px 10px;
    background-color: #eee;
    border: 1px solid #ddd;
    cursor: pointer;
}

#seccion-detalles-unica .quantity-control span {
    padding: 0 10px;
    font-weight: bold;
}

#seccion-detalles-unica .price {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

#seccion-detalles-unica .summary-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    padding: 15px;
}

#seccion-detalles-unica .summary-list li {
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #333;
    line-height: 1.4;
}

/* Estilo para el primer elemento (el título "Detalles") */
#seccion-detalles-unica .summary-list li:first-child {
    font-size: 1.1em;
    color: #000;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}



#seccion-detalles-unica .checkout-btn {
    display: block;
    margin: 10px auto;
    width: 100%;
    padding: 15px;
    background-color: #097c91;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
}



#seccion-detalles-unica #btn-detalles {
    background-color: #3498db;
}


#seccion-detalles-unica #btn-carrito {
    background-color: #e67e22;
}


#seccion-detalles-unica .checkout-btn:hover {

    opacity: 0.85;
}


#seccion-detalles-unica #btn-carrito:hover {
    background-color: #d35400;
}

#seccion-detalles-unica #btn-comprar:hover{
    background-color: #097c91;
}


#seccion-detalles-unica .btn {
    display: block;
    margin: 20px auto;
    background-color: #30498C;
    border-color: #30498C;
}

#seccion-detalles-unica .card-header {
    background-color: #097c91;
    padding: .75rem 1.25rem;
    margin-bottom: 0;
    border-bottom: 1px solid #e3e6f0
}


#seccion-detalles-unica .contenedor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    align-items: stretch;
}

#seccion-detalles-unica .parte-uno,
#seccion-detalles-unica .parte-dos {
    padding: 20px;
}


/* Estilos adicionales */
#seccion-detalles-unica .parte-uno {
    background-color: rgb(255, 255, 255);
}

#seccion-detalles-unica .parte-dos {
    background-color: rgb(255, 255, 255);
}

/* Estilos tabla Ficha Técnica (Detalles) */
#seccion-productos-unica .table td,
#seccion-productos-unica .table th {
    width: 50%;
    padding: .75rem;
    vertical-align: top;
    border-top: 1px solid #e3e6f0;
}


/* ///////////////////////////////////////////////////////////////////////////////////// */
/* estilos script filtro */
#seccion-filtro-unica .container {
    max-width: 25%;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
    margin-top: 20px;
}

#seccion-filtro-unica .card .card-header {
    background-color: #0c77a8;
    color: white;
    border: solid 2px #0c77a8;
}

/* ///////////////////////////////////////////////////////////////////////////////////// */
/* estilos opciones: buscar, categorias */
#lista-opciones select {
    color: #1d8abd;
    text-align: center;
    text-align-last: center;
    border-radius: 0px;
    width: 185px;
    padding: 2px;
    text-shadow: 0px 0px 5px rgba(48, 73, 140, 0.3);
    border: solid 2px #0c77a8;
    outline: none;
}

/* Mejora para el input de opciones */
#lista-opciones option {
    color: #30498C;
}

/* Para el botón de buscar */
#lista-opciones .buscar {
    background-color: #30498C;
    color: white;
    border: none;
    padding: 7px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-left: 10px;
}

#lista-opciones .buscar:hover {
    background-color: #0c77a8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

/* Mejora para el input de búsqueda */
#lista-opciones .search.form-control {
    border: 2px solid #eee;
    border-radius: 5px;
}

#lista-opciones .titulo-productos {
    margin-left: 15px;
    margin-top: 0;
}

.link-producto{
text-decoration:none;
color:inherit;
}

.link-producto:hover{
text-decoration:none;
color:#000000;
}