@font-face {
    font-style: normal;
    font-family: 'Gotham';
    line-height: 1.5;
    font-display: swap;
    
    src:url('./Gotham-Font/gotham_medium.woff2') format('woff2'), 
        url('./Gotham-Font/gotham_medium.woff') format('woff'),
        url('./Gotham-Font/gotham_medium.ttf') format('truetype'),
        url('./Gotham-Font/gotham_medium.otf') format('opentype');
}

@font-face {
    font-style: normal;
    font-family: 'Gotham';
    line-height: 1.5;
    font-display: swap;
    src:url('./Gotham-Font/gotham_medium.woff2') format('woff2'), 
        url('./Gotham-Font/gotham_medium.woff') format('woff'),
        url('./Gotham-Font/gotham_medium.ttf') format('truetype'),
        url('./Gotham-Font/gotham_medium.otf') format('opentype');
}

/* Estils generals */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-style: normal;
    font-family: 'Gotham', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    padding-bottom: 100px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Capçalera */
header {
    color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}

header > img{
    height: 80px;
}

/* Títols */
h1, h2, h3 {
    margin-bottom: 15px;
}

h2{
    color: #174f72;
    font-size: 40px;
}

/* Seccions principals */
main {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Graella de productes */
.productes-grid {
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.descripcio{
    text-align: center;
}

.producte-card > img{
    height: 200px;
}

.producte-card {
    display: flex;
    justify-content: center;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 15px;
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.producte-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.preu {
    font-weight: bold;
    font-size: 30px;
    color: #174f72;
    margin: 10px 0;
}

.quantitat {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.quantitat label {
    margin-right: 10px;
}

.quantitat input {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* Botons i accions */
.accions {
    display: flex;
    justify-content: flex-end;
        transform: translateX(-50%);
    left: 50%;
    bottom: 40px;
    position: fixed;
}


.catalog h2{
    position: absolute;
    top: 390px;
    color: white;
    font-size: 20px;
    text-align: center;
    width: 80%;
}

.catalog{
    width: 100px; height:100px;background-color:  #118f9d;display: flex;justify-content: center;border-radius: 50%;overflow: hidden;
    position: fixed;
    top: 40px;
    left: 40px;
    transition: all 200ms;
    display: flex;
    flex-direction: column;
    background-color: #174f72;
    /*background-color: #174f72;*/
    animation: bounce 0.5s infinite alternate ease-in-out;
    align-items: center;
    cursor: pointer;
}

.catalog.selected #catalog-icon{
    opacity: 0;
}

.catalog.selected #catalog-img{
    opacity: 1;
}

#catalog-icon{
    transition: opacity 200ms;
    filter: invert();
    width: 50%; z-index: 10; position: relative;
}

#catalog-img{
    transition: opacity 200ms;
    width: 100%;
    opacity: 0;
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-20px);
    }
}

/* Adiciones para estil.css - Añadir al final del archivo */

.client-reconegut {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-size: 16px;
}

.client-reconegut p {
    margin: 0;
    color: #0d47a1;
}

.client-reconegut strong {
    font-weight: bold;
}

.catalog img{
    position: absolute;
    top: 0px;
}

.catalog.selected{
    animation-play-state: paused; /* Para l'animació en hover */
    height: 480px;
    border-radius: 20px;
    width: 300px;
}


.boto-principal, .boto-secundari {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 25px;
}

.boto-principal {
    background-color: #174f72;
    color: white;
    margin-left: 10px;
}

.boto-principal:hover {
    background-color: #1a252f;
}

.boto-secundari {
    background-color: #ecf0f1;
    color: #2c3e50;
}

.boto-secundari:hover {
    background-color: #d5dbdb;
}

/* Formularis */
.formulari-dades {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.camp-formulari {
    margin-bottom: 15px;
}

.camp-formulari label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.camp-formulari input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* Taules */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

table th {
    background-color: #f4f4f4;
}

table tfoot {
    font-weight: bold;
}

/* Pàgina de confirmació */
.confirmacio {
    text-align: center;
}

.missatge-confirmacio {
    margin-bottom: 30px;
}

.detalls-comanda {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    overflow-x: scroll;
}

/* Peu de pàgina */
footer {
    text-align: center;
    padding: 20px;
    color: #666;
}

.families-grid{
    display: flex;
    flex-direction: column;
}

/* Responsiu */
@media (max-width: 1440px) {
    .catalog{
        height: 70px;
        width: 70px;
    }

    .catalog.selected{
        width: 250px;
        height: 400px;
    }

    .catalog h2{
        top: 325px;
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .productes-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .formulari-dades {
        grid-template-columns: 1fr;
    }
    
    .accions {
        flex-direction: column;
    }
    
    .boto-principal, .boto-secundari {
        margin: 5px 0;
        width: 100%;
    }

    .catalog{
        height: 50px;
        width: 50px;
    }

    .catalog.selected{
        width: 200px;
        height: 320px;
    }

    .catalog h2{
        top: 260px;
        font-size: 15px;
    }
}
