@import url("colores.css");
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

body {
    font-family: "Roboto", Arial, sans-serif;
    color: var(--baltic-navy);
    background-color: var(--polar-snow);
}

a {
    text-decoration: none;
    color: var(--nordic-night);
}

#cabecera {
    position: sticky;
    top: 0;
    z-index: 10;
    padding-top: 12px;
    padding-bottom: 14px;
    background-color: var(--polar-snow);
    border-bottom: 6px solid var(--baltic-navy);
}

#cabecera .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#cabecera .logo,
#cabecera .carret {
    flex: 1;
}

#cabecera .logo img {
    display: block;
    height: 46px;
    width: auto;
    max-width: 100%;
}

#cabecera .links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 27px;
    font-size: 1.03rem;
    font-weight: 800;
}

#cabecera .links a {
    color: var(--nordic-night);
    transition: color 0.2s;
}

#cabecera .links a:hover {
    color: var(--glacier-blue);
}

#cabecera .links .seleccionat {
    font-weight: 400;
    color: var(--baltic-navy);
}

#cabecera .carret {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.img-carret {
    font-size: 24px;
}

.link-carret {
    position: relative;
    display: inline-block;
    color: var(--nordic-night);
}

.cercle-carret {
    position: absolute;
    top: -16px;
    right: -10px;
    background-color: var(--glacier-blue);
    color: var(--polar-snow);
    padding: 3px 6px;
    border-radius: 50%;
    font-size: 0.75rem;
}

.cercle-carret[hidden] {
    display: none;
}

.boton-icono {
    display: flex;
    background: none;
    border: none;
    padding: 0;
    font-size: 22px;
    color: var(--nordic-night);
    cursor: pointer;
}

.boton-icono:hover,
.link-carret:hover {
    color: var(--glacier-blue);
}

.hamburguesa {
    display: none;
    background: none;
    border: none;
    padding: 0;
    font-size: 1.5rem;
    color: var(--nordic-night);
    cursor: pointer;
}

.usuario {
    position: relative;
}

.menu-usuario {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    min-width: 180px;
    background-color: var(--polar-snow);
    border: 1px solid var(--frosted-mist);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 15, 8, 0.12);
    padding: 6px 0;
    z-index: 1000;
}

.menu-usuario[hidden] {
    display: none;
}

.menu-usuario a {
    display: block;
    padding: 10px 16px;
    color: var(--baltic-navy);
    font-size: 14px;
}

.menu-usuario a:hover {
    background-color: var(--frosted-mist);
}

.menu-saludo {
    margin: 0;
    padding: 8px 16px 10px;
    border-bottom: 1px solid var(--frosted-mist);
    font-size: 13px;
    font-weight: bold;
}

.hero {
    background-image: linear-gradient(rgba(0, 15, 8, 0.45), rgba(0, 15, 8, 0.45)), url("../img/hero dk.png");
    background-size: cover;
    background-position: center;
    color: var(--polar-snow);
    text-align: center;
    padding: 120px 0;
}

.hero h1 {
    font-size: 44px;
    max-width: 640px;
    margin: 0 auto 15px;
    line-height: 1.15;
}

.hero p {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.boton-azul {
    display: inline-block;
    background-color: var(--glacier-blue);
    color: var(--polar-snow);
    padding: 12px 25px;
    border-radius: 4px;
    margin-top: 25px;
    font-weight: bold;
}

.ventajas {
    background-color: var(--frosted-mist);
    padding: 40px 0 15px;
}

.ventaja-cabecera {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ventaja-cabecera h3 {
    margin: 0;
    font-size: 17px;
    color: var(--baltic-navy);
}

.ventaja-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(108, 168, 208, 0.2);
    color: var(--baltic-navy);
    font-size: 17px;
}

.ventajas .tarjeta p {
    margin: 0;
    line-height: 1.6;
}

.ventajas .tarjeta {
    height: 100%;
}

.ventajas [class*="col-"] {
    margin-bottom: 25px;
}

.tarjeta {
    background-color: var(--polar-snow);
    border-radius: 8px;
    padding: 20px;
    font-size: 13px;
}

.productos {
    padding: 20px 0 50px;
}

#listaProductos > [class*="col-"] {
    display: flex;
    margin-bottom: 20px;
}

#listaProductos .producto {
    width: 100%;
}

.productos h2 {
    font-size: 32px;
    margin-top: 25px;
    margin-bottom: 5px;
    color: var(--baltic-navy);
}

.productos h2+p {
    margin-bottom: 25px;
}

.producto-detalle {
    font-size: 12px;
    margin: 0;
    color: var(--baltic-navy);
}

.precio-unidad {
    font-size: 11px;
    font-weight: normal;
}

.producto {
    border: 1px solid var(--frosted-mist);
    border-radius: 8px;
    overflow: hidden;
}

.producto-foto {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.producto-info {
    padding: 12px;
}

.producto-info h3 {
    font-size: 15px;
    margin: 0 0 5px;
}

.precio {
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
}

.productos .producto {
    display: flex;
    flex-direction: column;
    position: relative;
}

.productos .producto-foto {
    height: 220px;
    object-fit: contain;
    padding: 15px;
    box-sizing: border-box;
    background-color: #ffffff;
    border-bottom: 1px solid var(--frosted-mist);
}

.productos .producto-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.productos .producto-info .precio {
    margin-top: auto;
    padding-top: 10px;
}

.producto-info h3 a {
    color: inherit;
    text-decoration: none;
}

.precio-viejo {
    display: block;
    text-decoration: line-through;
    color: #6b6b6b;
    font-size: 14px;
    font-weight: normal;
}

.precio-oferta .precio-nuevo {
    color: var(--rojo-oferta);
    font-size: 24px;
}

.producto.en-oferta {
    border: 2px solid var(--rojo-oferta);
}

.etiqueta-descuento {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--rojo-oferta);
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.aviso-carrito {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100% - 32px);
    box-sizing: border-box;
    padding: 14px 18px;
    border-radius: 8px;
    background-color: var(--baltic-navy);
    color: var(--polar-snow);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 20px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.aviso-carrito.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.aviso-carrito.aviso-error {
    background-color: var(--rojo-oferta);
}

.aviso-carrito i {
    font-size: 20px;
}

.aviso-carrito a {
    color: var(--polar-snow);
    font-weight: bold;
    text-decoration: underline;
    white-space: nowrap;
}

.producto button {
    width: 100%;
    background-color: var(--baltic-navy);
    color: var(--polar-snow);
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
}

.compra-tarjeta {
    display: flex;
    gap: 8px;
}

.compra-tarjeta input {
    width: 64px;
    flex: none;
    padding: 8px;
    border: 1px solid var(--frosted-mist);
    border-radius: 4px;
    font: inherit;
    text-align: center;
}

.compra-tarjeta button {
    flex: 1;
    width: auto;
    min-width: 0;
}

button.sin-stock,
.comprar button.sin-stock,
button.sin-stock:hover {
    background-color: #bbb;
    color: #fff;
    cursor: not-allowed;
}

#contacto {
    padding-top: 28px;
    background-color: var(--polar-snow);
}

.logo-footer {
    display: flex;
    justify-content: left;
    align-items: center;
    padding-top: 29px;
}

.logo-footer a {
    display: block;
}

.logo-footer img {
    height: 40px;
    width: auto;
    max-width: 100%;
}

.titol-llista-footer {
    font-size: 0.73rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--nordic-night);
}

.llista-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 0.9rem;
    font-weight: 400;
    padding-left: 0;
    margin: 0;
    text-align: left;
    list-style-type: none;
}

.llista-footer li a {
    color: var(--baltic-navy);
    transition: color 0.2s;
}

.llista-footer li a:hover {
    color: var(--glacier-blue);
}

.llista-contacte {
    margin-top: -2px;
    line-height: 1.5;
}

.separador {
    border-top: 1px solid var(--frosted-mist);
    margin-top: 31px;
    margin-bottom: 12px;
}

.copyright {
    font-size: 0.81rem;
    font-weight: 400;
    text-align: left;
    color: var(--baltic-navy);
}

.social {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.social a {
    font-size: 1.2rem;
    color: var(--baltic-navy);
}

.social a:hover {
    color: var(--glacier-blue);
}

.eslogan {
    display: none;
    color: var(--baltic-navy);
}

.eslogan p {
    font-size: 0.9rem;
    margin: 16px 0 20px;
}

.boton-icono.conectado {
    color: var(--baltic-navy);
}

.boton-icono.conectado:hover {
    color: var(--glacier-blue);
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
    #listaProductos>.col-3 {
        width: 50%;
    }
}

@media only screen and (max-width: 1024px) {
    #cabecera .links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 10;
        flex-direction: column;
        align-items: flex-start;
        gap: 17px;
        padding: 16px 15px;
        background-color: var(--polar-snow);
        box-shadow: 0 100vmax 0 100vmax rgba(0, 15, 8, 0.5);
    }

    #cabecera.menu-obert .links {
        display: flex;
    }

    .hamburguesa {
        display: block;
    }

    .eslogan {
        display: block;
    }

    .contacte {
        display: none;
    }

    .columna-llista {
        flex-grow: 1;
    }

    .logo-footer {
        padding-top: 22px;
    }
}

@media only screen and (max-width: 766px) {
    #cabecera .links {
        padding: 28px 15px;
    }

    #contacto * {
        text-align: center;
    }

    .logo-footer,
    .social {
        justify-content: center;
    }

    .columna-llista {
        margin-bottom: 25px;
    }

    .copyright {
        text-align: center;
    }

    #cabecera .logo {
        margin-left: -15px;
    }

    #cabecera .carret {
        margin-right: -15px;
    }

    .eslogan p {
        margin: 7px -15px 34px;
    }
}