        :root {
            --primary-color: #8B5A2B;
            --bg-color: #FAFAFA;
            --card-bg: #FFFFFF;
            --overlay-bg: rgba(139, 90, 43, 0.85);
            /* Cor de fundo da mensagem de comprado */
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--bg-color);
            margin: 0;
            padding: 0;
            color: #333;
        }

        header {
            text-align: center;
            padding: 3rem 1rem;
            background-color: var(--primary-color);
            color: white;
        }

        h1 {
            margin: 0;
            font-size: 2.5rem;
        }

        p.subtitle {
            margin-top: 10px;
            font-size: 1.1rem;
        }

        .container {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 0 1rem;
        }

        /* Grid de Presentes */
        .gift-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
        }

        .gift-card {
            background-color: var(--card-bg);
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
            text-align: center;
            padding-bottom: 1rem;
            position: relative;
        }

        /* Efeito hover apenas em itens NÃO comprados */
        .gift-card:not(.is-purchased):hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
        }

        /* --- ESTILOS DO ITEM COMPRADO --- */
        .gift-img-container {
            position: relative;
            width: 100%;
            height: 200px;
        }

        .gift-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: filter 0.3s ease;
        }

        .purchased-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--overlay-bg);
            color: white;
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: bold;
            font-size: 1.1rem;
            padding: 20px;
            box-sizing: border-box;
            opacity: 0;
            /* Escondido por padrão */
            transition: opacity 0.3s ease;
            z-index: 2;
            pointer-events: none;
        }

        /* Mostra a mensagem quando o mouse passa em cima de um item com a classe is-purchased */
        .gift-card.is-purchased:hover .purchased-overlay {
            opacity: 1;
        }

        /* Deixa a imagem em tons de cinza se já estiver comprado */
        .gift-card.is-purchased .gift-img {
            filter: grayscale(60%);
        }

        .gift-title {
            font-size: 1.2rem;
            margin: 15px 0 5px;
            font-weight: bold;
        }

        .gift-price {
            color: var(--primary-color);
            font-weight: bold;
            font-size: 1.1rem;
            margin-bottom: 15px;
        }

        .btn {
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1rem;
            text-decoration: none;
            display: inline-block;
        }

        .btn:hover {
            opacity: 0.9;
        }

        /* Modal */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .modal-content {
            background: white;
            padding: 2rem;
            border-radius: 10px;
            max-width: 400px;
            width: 90%;
            text-align: center;
            position: relative;
        }

        .close-btn {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 1.5rem;
            cursor: pointer;
            color: #666;
        }

        .modal-options {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-top: 20px;
        }

        .pix-container {
            background: #f1f1f1;
            padding: 10px;
            border-radius: 5px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 10px;
        }

        .pix-key {
            font-family: monospace;
            word-break: break-all;
            margin-right: 10px;
        }

        .btn-copy {
            background: #333;
            color: white;
            border: none;
            padding: 5px 10px;
            border-radius: 3px;
            cursor: pointer;
            font-size: 0.8rem;
        }