/* styles.css */
.mr-dafoe-regular {
    font-family: "Mr Dafoe", cursive;
    font-weight: 400;
    font-style: normal;
}

body {
    font-family: 'Quicksand', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('../IMG/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

body.cart-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px;
    font-size: 30px;
    font-weight: bold;
    border-bottom: 2px solid #d2691e;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

header h1 {
    font-family: "Mr Dafoe", cursive;
    font-size: 3.5em;
    color: #d2691e;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0 10px;
}

.maria-link {
    color: #d2691e;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.maria-link:hover {
    color: #8B4513;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.maria-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #8B4513;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.maria-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.cart-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.cart-button:active {
    transform: scale(0.95);
}

.cart-count {
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 14px;
}

.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1001;
    backdrop-filter: blur(5px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.cart-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.cart-content h2 {
    color: #d2691e;
    font-size: 1.8em;
    margin-bottom: 25px;
    text-align: center;
    font-family: "Mr Dafoe", cursive;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    margin: 20px 0;
}

.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: #d2691e;
    border-radius: 3px;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #eee;
    gap: 15px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    margin-right: 20px;
    overflow: hidden;
}

.item-name {
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.item-price {
    color: #4CAF50;
    font-size: 1.1em;
    font-weight: 600;
    margin: 0;
}

.quantity-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    width: 150px;
    flex-shrink: 0;
}

.quantity-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f8f8;
    padding: 8px 15px;
    border-radius: 25px;
    border: 1px solid #eee;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

.quantity-btn {
    background: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2em;
    color: #d2691e;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.quantity-btn:hover {
    background-color: #d2691e;
    color: white;
    transform: translateY(-1px);
}

.quantity {
    min-width: 25px;
    text-align: center;
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
}

.remove-item {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    padding: 8px 15px;
    transition: all 0.2s ease;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.9em;
    font-weight: 500;
    background-color: #fff5f5;
    width: 100%;
    box-sizing: border-box;
}

.remove-item i {
    font-size: 1em;
}

.remove-item:hover {
    color: #cc0000;
    background-color: #ffe5e5;
}

.cart-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    font-size: 1.2em;
    font-weight: bold;
    color: #d2691e;
}

.cart-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.cart-buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.continue-shopping {
    background-color: #f8f8f8;
    color: #d2691e;
}

.continue-shopping:hover {
    background-color: #e8e8e8;
}

.checkout-btn {
    background-color: #4CAF50;
    color: white;
}

.checkout-btn:hover {
    background-color: #45a049;
}

@media (max-width: 768px) {
    .cart-content {
        padding: 20px;
        width: 95%;
        max-width: 95%;
    }

    .cart-content h2 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 12px;
    }

    .cart-item-info {
        width: 100%;
        margin-right: 0;
    }

    .quantity-controls {
        width: 100%;
        align-items: center;
    }

    .quantity-buttons {
        width: 100%;
    }

    .remove-item {
        width: 100%;
    }

    .cart-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .continue-shopping,
    .checkout-btn {
        width: 100%;
        padding: 10px 20px;
    }

    .cart-total {
        font-size: 1.2em;
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .cart-content {
        padding: 15px;
    }

    .cart-content h2 {
        font-size: 1.3em;
    }

    .item-name {
        font-size: 1em;
    }

    .item-price {
        font-size: 1em;
    }

    .quantity-buttons {
        padding: 5px 10px;
        gap: 6px;
    }

    .quantity-btn {
        width: 22px;
        height: 22px;
        font-size: 1em;
    }

    .quantity {
        min-width: 18px;
        font-size: 0.95em;
    }

    .cart-total {
        font-size: 1.1em;
    }
}

.footer {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    margin-top: auto;
    border-top: 2px solid #d2691e;
}

.footer p {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* Estilos Desktop */
.introducao {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    margin: 30px auto;
    width: 80%;
    max-width: 1000px;
    border-radius: 15px;
    font-size: 1.2em;
    line-height: 1.6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.catalogo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    min-height: 450px;
}

.item:hover {
    transform: translateY(-5px);
}

.imagem {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.imagem:hover {
    transform: scale(1.05);
}

.texto {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    width: 100%;
}

.texto h2 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
    min-height: 3.9em;
}

.texto p {
    font-size: 1em;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    flex: 1;
}

.texto span {
    font-size: 1.3em;
    font-weight: bold;
    color: #d2691e;
    margin-bottom: 15px;
}

.invertido {
    flex-direction: row-reverse;
}

.invertido .imagem {
    margin-left: 0;
}

.add-to-cart {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.add-to-cart:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.add-to-cart:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(76, 175, 80, 0.2);
}

/* Ajuste para telas grandes */
@media screen and (min-width: 1600px) {
    .catalogo {
        max-width: 1400px;
        gap: 70px 50px;
        padding: 50px;
    }

    .item {
        padding: 30px;
    }

    .imagem {
        width: 250px;
        height: 250px;
    }

    .texto h2 {
        font-size: 1.6em;
    }

    .texto p {
        font-size: 1.1em;
    }
}

/* Estilos Mobile */
@media screen and (max-width: 1024px) {
    .catalogo {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 40px;
    }

    .item {
        padding: 20px;
    }

    .imagem {
        width: 180px;
        height: 180px;
    }
}

@media screen and (max-width: 768px) {
    header {
        padding: 10px;
    }

    header h1 {
        font-size: 1.8em;
    }

    .cart-button {
        position: fixed;
        bottom: 80px;
        right: 20px;
        top: auto;
        width: 60px;
        height: 60px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        background-color: #4CAF50;
        z-index: 1000;
    }

    .cart-button i {
        font-size: 24px;
        margin: 0;
    }

    .cart-button span:not(.cart-count) {
        display: none;
    }

    .cart-count {
        position: absolute;
        top: -5px;
        right: -5px;
        min-width: 20px;
        height: 20px;
        padding: 0 6px;
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid white;
    }

    .cart-content {
        width: 95%;
        max-width: 95%;
        margin: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    .cart-content h2 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 12px;
    }

    .cart-item-info {
        width: 100%;
        margin-right: 0;
    }

    .quantity-controls {
        width: 100%;
        align-items: center;
    }

    .quantity-buttons {
        width: 100%;
    }

    .remove-item {
        width: 100%;
    }

    .cart-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .continue-shopping,
    .checkout-btn {
        width: 100%;
        padding: 10px 20px;
    }

    .cart-total {
        font-size: 1.2em;
        margin: 20px 0;
    }

    .introducao {
        padding: 20px;
        margin: 20px auto;
        font-size: 1em;
        width: 90%;
    }

    .catalogo {
        grid-template-columns: 1fr;
        gap: 40px;
        width: 100%;
        padding: 20px 15px;
        box-sizing: border-box;
    }

    .item {
        padding: 20px;
        gap: 20px;
        min-height: auto;
    }

    .imagem {
        width: 180px;
        height: 180px;
        margin: 0 auto;
    }

    .texto {
        text-align: center;
        padding: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .texto h2 {
        margin: 0;
        font-size: 1.3em;
        color: #d2691e;
        line-height: 1.3;
        word-wrap: break-word;
    }

    .texto p {
        margin: 0;
        font-size: 0.95em;
        word-wrap: break-word;
    }

    .texto span {
        margin: 8px 0;
        font-size: 1.3em;
        color: #4CAF50;
        font-weight: bold;
    }

    .add-to-cart {
        padding: 10px 15px;
        font-size: 0.95em;
        margin-top: 12px;
    }

    .pedido {
        margin: 40px auto;
    }

    .botao-whatsapp {
        padding: 15px 30px;
        font-size: 1.1em;
    }
}

@media screen and (max-width: 480px) {
    header {
        padding: 8px;
    }

    header h1 {
        font-size: 1.5em;
    }

    .cart-button {
        bottom: 70px;
        right: 15px;
        width: 55px;
        height: 55px;
    }

    .cart-button i {
        font-size: 22px;
    }

    .cart-content {
        padding: 15px;
    }

    .cart-content h2 {
        font-size: 1.3em;
    }

    .cart-item {
        padding: 10px;
    }

    .item-name {
        font-size: 1em;
    }

    .item-price {
        font-size: 1em;
    }

    .quantity-buttons {
        padding: 5px 10px;
        gap: 6px;
    }

    .quantity-btn {
        width: 22px;
        height: 22px;
        font-size: 1em;
    }

    .quantity {
        min-width: 18px;
        font-size: 0.95em;
    }

    .cart-total {
        font-size: 1.1em;
    }

    .introducao {
        padding: 15px;
        font-size: 0.9em;
    }

    .catalogo {
        gap: 35px;
        padding: 15px 10px;
    }

    .item {
        padding: 15px;
    }

    .imagem {
        width: 160px;
        height: 160px;
    }

    .texto h2 {
        font-size: 1.2em;
    }

    .texto p {
        font-size: 0.9em;
        line-height: 1.5;
    }

    .texto span {
        font-size: 1.2em;
        margin: 6px 0;
    }

    .add-to-cart {
        padding: 8px 12px;
        font-size: 0.9em;
        margin-top: 10px;
    }

    .pedido {
        margin: 30px auto;
    }

    .botao-whatsapp {
        padding: 12px 25px;
        font-size: 1em;
    }
}

@media screen and (max-width: 320px) {
    header h1 {
        font-size: 1.5em;
    }

    .cart-button {
        bottom: 60px;
        right: 10px;
        width: 50px;
        height: 50px;
    }

    .cart-button i {
        font-size: 20px;
    }

    .cart-content {
        padding: 12px;
    }

    .cart-content h2 {
        font-size: 1.2em;
    }

    .cart-item {
        padding: 8px;
    }

    .item-name {
        font-size: 0.95em;
    }

    .item-price {
        font-size: 0.95em;
    }

    .quantity-buttons {
        padding: 5px 10px;
        gap: 6px;
    }

    .quantity-btn {
        width: 22px;
        height: 22px;
        font-size: 1em;
    }

    .quantity {
        min-width: 18px;
        font-size: 0.95em;
    }

    .cart-total {
        font-size: 1em;
    }

    .catalogo {
        gap: 30px;
        padding: 10px 5px;
    }

    .item {
        padding: 12px;
    }

    .imagem {
        width: 140px;
        height: 140px;
    }

    .texto h2 {
        font-size: 1.1em;
    }

    .texto p {
        font-size: 0.85em;
    }

    .texto span {
        font-size: 1.1em;
        margin: 5px 0;
    }

    .add-to-cart {
        padding: 6px 10px;
        font-size: 0.85em;
        margin-top: 8px;
    }

    .pedido {
        margin: 25px auto;
    }

    .botao-whatsapp {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

/* Estilos dos Botões */
.pedido {
    margin: 40px auto;
    text-align: center;
}

.botao-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 18px 35px;
    font-size: 1.2em;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Quicksand', sans-serif;
}

.botao-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.botao-whatsapp:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

/* Estilos do Modal de Imagem */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1002;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-image {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1003;
    transition: color 0.3s ease;
}

.close-image:hover {
    color: #fff;
}

/* Estilos dos Filtros */
.filtros {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px auto;
    flex-wrap: wrap;
    padding: 0 20px;
}

.filtro-btn {
    background-color: #fff;
    border: 2px solid #d2691e;
    color: #d2691e;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Quicksand', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filtro-btn:hover {
    background-color: #d2691e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(210, 105, 30, 0.3);
}

.filtro-btn.ativo {
    background-color: #d2691e;
    color: #fff;
    box-shadow: 0 4px 15px rgba(210, 105, 30, 0.3);
}

.filtro-btn:active {
    transform: translateY(1px);
}

/* Ajuste para telas menores */
@media screen and (max-width: 768px) {
    .filtros {
        gap: 15px;
        margin: 20px auto;
    }

    .filtro-btn {
        padding: 10px 20px;
        font-size: 1em;
    }
}

@media screen and (max-width: 480px) {
    .filtros {
        gap: 10px;
        margin: 15px auto;
    }

    .filtro-btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}
