* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Karla', sans-serif;
}

#header {
    background-color: black;
    border-bottom: none 1px;
    padding-top: 0.5rem;
    font-size: .8rem;
    position: relative;
}

#header a {
    color: #ffc106;
    margin-left: 30px;
    text-decoration: none;
}

#header .enlaces {
    display: flex;
    margin-left: 270px;
}

#sama {
    display: flex;
    justify-content: space-evenly;
    margin-top: 30px;
}

#buscador {
    display: flex;
    margin-right: 10px;
}

#buscador img {
    width: 25px;
}

#usuario {
    margin-right: 8px;
}

#footer {
    background-color: black;
    position: relative;
    margin-top: 10.5%;
    width: 100%;
    height: auto;
}

#info-footer {
    display: flex;
    justify-content: center;
}

#footer p {
    color: #ffc106;
}

#footer a {
    text-decoration: none;
    color: #ffc106;
    font-size: .88rem;
}

#info {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.nosotros {
    color: #ffc106;
    margin-right: 100px;
    line-height: 25px;
}

.categorias {
    color: #ffc106;
}

.contacto {
    color: #ffc106;
    margin-left: 100px;
    font-size: .88rem;
}

.titulo {
    border-bottom: 1px solid #ffc106;
    line-height: 50px;
    width: 300px;
    font-size: .9rem;
    font-weight: bold;
}

.nombre {
    line-height: 25px;
}

.ubicacion {
    display: flex;
}

#info-ubicacion {
    line-height: 20px;
    margin-left: 5px;
}

.telefono {
    display: flex;
    border-top: 1px solid #ffc106;
    border-bottom: 1px solid #ffc106;
    line-height: 30px;
    margin-top: 5px;
}

.castelldefels {
    margin-left: 10px;
}

.begues {
    margin-left: 5px;
}

.correo {
    line-height: 30px;
    display: flex;
}

.correo a {
    margin-left: 10px;
}

.footer-empresa {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.empresa {
    display: flex;
    flex-direction: column;
}

.redes {
    display: flex;
    justify-content: center;
    margin: 5px;
}

#facebook {
    margin-right: 10px;
}

#instagram {
    margin-left: 10px;
}

.product-detail-container {
    display: flex;
    justify-content: center;
    padding: 20px;
    margin: 20px;
    border-top: 1px solid #ddd;
}

.gallery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 300px;
}

.main-image {
    max-width: 300px;
    height: 300px;
    margin-bottom: 10px;
}

.main-image img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.thumbnail-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    max-width: 60px;
    max-height: 60px;
    cursor: pointer;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail:hover {
    border-color: #333;
}


.no-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 400px;
    background-color: #f0f0f0;
    color: #999;
    font-size: 18px;
}

/*.product-image {
    text-align: center;
}

.product-image img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.no-image {
    color: #777;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
}*/

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.2em;
    margin-bottom: 15px;
}

.product-pdf {
    margin-top: 20px;
}

.product-pdf a {
    display: inline-block;
    padding: 8px 15px;
    margin-top: 20px;
    font-size: 14px;
    color: #ffc106;
    background-color: transparent;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    text-decoration: none;
    font-size: large;
    width: 157%;
}

.product-pdf a:hover {
    color: #e0a800;
}


.descripcion {
    margin-bottom: 15px;
    width: 1000px;
}

.descripcion h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    margin-top: 30px;
    margin-left: 5px;
}

.descripcion p {
    line-height: 24px;
    margin-left: 5px;
}

.descripcion-corta {
    width: 680px;
}

.descripcion-larga {
    width: 900px;
}

.comprar-btn {
    background-color: #ffc106;
    color: black;
    padding: 10px 15px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    right: 0;
    display: flex;
    cursor: pointer;
}

.comprar-btn p {
    margin-top: 2px;
}

#carrito-compra {
    width: 20px;
    margin-right: 5px;
}

.comprar-btn:hover {
    background-color: #ffd557;
}

.login {
    font-size: 1.1em;
    margin-bottom: 15px;
    margin-top: 15px;
}

#sesion a {
    background-color: black;
    color: #ffc106;
    text-decoration: none;
    padding: 8px;
    border-radius: 4px;
}

#abrirBuscador {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-contenido {
    background-color: #fff;
    margin: 20% auto;
    padding: 20px;
    border-radius: 5px;
    width: 60%;
    position: relative;
}

.modal-contenido input[type="text"] {
    width: 98%;
    height: 40px;
    font-size: 16px;
    padding: 10px;
}

.modal-cerrar {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

form textarea {
    width: 400px;
    margin-left: 10px;
    border-radius: 3px;
}

#form-comentarios {
    display: flex;
}

.publicar button {
    background-color: rgb(41, 39, 39);
    color: white;
    padding: 5px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    margin-top: 7px;
}

.publicar button:hover {
    background-color: #353434;
}

#menu-icon {
    display: none;
}

.close-icon {
    display: none;
}

.comentarios{
    background-color: white;
    width: 70%;
    margin-left: 15%;
}
.caracteristicas{
    background-color: white;
    width: 70%;
    margin-left: 15%;
}

.info{
    background-color: #f5f5f5; /* Fondo gris claro */
    padding-bottom: 40px; /* Añade un poco de padding inferior para más espacio */
    padding-top: 20px; /* Un poco de espacio arriba también */
    width: 100%;
}

.comentario {
    border: 1px solid #e0e0e0;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 5px;
}

.comentario strong {
    font-weight: bold;
    color: #333;
    font-size: 16px;
    margin-bottom: 5px;
}

.comentario p {
    margin: 10px 0;
    font-size: 14px;
    color: #555;
}

.comment-date {
    font-size: 12px;
    color: #777;
    text-align: right;
}

/* Estilo para pestañas */
.tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    margin-left: 15%;
}

.tab {
    cursor: pointer;
    padding: 12px 20px;
    margin-right: 10px;
    user-select: none;
    transition: background-color 0.3s ease;
    margin-top: 30px;
    margin-bottom: 30px;
}

.tab.active {
    background-color: #ddd;
}

/* Estilo para el contenido de las pestañas */
.tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #ddd;
}

.tab-content.active {
    display: block;
}

/* Estilo para el formulario de comentarios */
#comentarios-form {
    margin-top: 20px;
}

#comentarios-form textarea {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#comentarios-form button {
    background-color: #4caf50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#comentarios-form button:hover {
    background-color: #45a049;
}

#caracteristicas p {
    font-size: 16px;
}

#caracteristicas li {
    list-style: none;
    margin-top: 13px;
    margin-left: 8px;
    font-size: 14px;
}

.stock {
    margin-top: 15px;
    margin-bottom: -10px;
    font-weight: bold;
    color: red;
    font-size: larger;
    margin-left: 5px;
}

.ref {
    margin-left: 1px;
}

.edit-comment-btn{
    background-color: #ffc106;
    color: black;
    padding: 5px 10px;
    font-size: 0.8em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
    margin-bottom: 10px;
}

.actualizar button{
    background-color: #000000;
    color: #ffc106;
    padding: 5px 10px;
    font-size: 0.8em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;

}


@media only screen and (max-width: 768px) {

    #header {
        padding-top: 0.3rem;
    }

    #header a {
        margin-left: 10px;
    }

    #header .enlaces {
        margin-left: 10px;
    }

    #sama {
        margin-top: 20px;
    }

    #buscador img {
        width: 20px;
    }

    .img-info {
        flex-direction: column;
    }

    .nosotros,
    .categorias,
    .contacto {
        margin: 0;
        text-align: center;
    }

    .desplegable {
        width: 100%;
        cursor: pointer;
        color: #ffc106;
        text-decoration: underline;
        font-size: .88rem;
    }

    .nav-submenu {
        display: none;
    }

    #info {
        display: none;
    }

    .categorias {
        display: block;
    }

    .nav-submenu {
        display: block;
    }

    .desplegable::after {
        content: '▼';
        margin-left: 5px;
        transition: transform 0.2s;
        transform: rotate(180deg);
    }

    body.nav-active {
        overflow: hidden;
    }

    #nav {
        display: none;
        position: fixed;
        background-color: black;
        height: 100%;
        width: 40%;
        top: 0;
        left: 0;
        padding: 20px;
        z-index: 999;
    }

    #nav.active {
        display: block;
    }

    #menu-icon {
        display: block;
        font-size: 24px;
        cursor: pointer;
    }

    .nav>li {
        display: block;
        margin-bottom: 10px;
    }

    #nav a {
        color: #fff;
    }

    #nav a:hover {
        color: #ffc106;
    }

    .close-icon {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 24px;
        cursor: pointer;
        color: #fff;
    }

    .product-detail-container {
        display: flex;
        flex-direction: column;
    }

    .product-image img {
        width: 400px;
        height: 250px;
        position: relative;
        top: 60px;
    }

    .product-title {
        position: relative;
        bottom: 280px;
    }

    .descripcion {
        margin-left: -30px;
        margin-right: -30px;
    }

    .descripcion-corta {
        width: 100%;
    }

    .descripcion-larga {
        width: 100%;
    }

    form textarea {
        width: 300px;
    }

    #comentarios {
        display: flex;
        flex-direction: column;
    }

    .publicar button {
        background-color: rgb(41, 39, 39);
        color: white;
        padding: 5px;
        border-radius: 4px;
        cursor: pointer;
        margin-left: 10px;
        margin-top: 7px;
    }
}

@media (min-width: 769px) {
    #header {
        padding-top: 0.3rem;
    }

    #header a {
        margin-left: 10px;
    }

    #header .enlaces {
        margin-left: 10px;
    }

    #sama {
        margin-top: 20px;
    }

    .nosotros,
    .categorias {
        margin-left: 10px;
    }

    .desplegable {
        width: 100%;
        font-size: .88rem;
    }

    #footer {
        position: absolute;
    }

    .cookies {
        margin-left: 95px;
        width: 83%;
    }

    .politica-cookies {
        margin-left: 95px;
        width: 83%;
    }
}