/* 
 * ecommerce.css — Fabula-Zen (Versão Mágica 2.0)
 * Estilos para o fluxo de Ebooks Personalizados e Pagamentos.
 */

:root {
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f9f295 50%, #d4af37 100%);
    --zen-dark: #0f0f1a;
    --paper-bg: linear-gradient(to right, #f0e6d2 0%, #fbf8f1 5%, #fbf8f1 95%, #e8dcb8 100%);
}

/* O Efeito de Página de Livro / Pergaminho */
.book-page {
    background: var(--paper-bg);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.5),
        inset 0 0 40px rgba(212, 175, 55, 0.1);
    color: #2d261b;
}

/* Container de Pedidos */
.custom-order-container {
    width: 100%;
    min-height: 100vh;
    padding: 100px 20px 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: radial-gradient(circle at 50% 50%, #2a2a2d 0%, #111 100%);
    overflow-y: auto;
}

/* Inputs customizados */
.magic-input {
    background-color: rgba(255, 255, 255, 0.7) !important;
    border: 2px solid #e2d5b5 !important;
    transition: all 0.3s ease;
}
.magic-input:focus {
    outline: none;
    border-color: #d4af37 !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    background-color: #fff !important;
}

/* Cards de Tema (Substituindo os Radio Buttons) */
.theme-card-input:checked + .theme-card-content {
    border-color: #d4af37 !important;
    background-color: rgba(212, 175, 55, 0.1) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.theme-card-content {
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

/* Área de Drag & Drop */
.drop-zone {
    border: 2px dashed #c8b99c;
    transition: all 0.3s ease;
}
.drop-zone:hover, .drop-zone.dragover {
    border-color: #d4af37;
    background-color: rgba(212, 175, 55, 0.05);
}

/* Checkbox Customizado */
.magic-checkbox {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #c8b99c;
    border-radius: 0.25rem;
    background-color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.magic-checkbox:checked {
    background-color: #d4af37;
    border-color: #d4af37;
}
.magic-checkbox:checked::after {
    content: '✓';
    color: white;
    font-size: 0.875rem;
    font-weight: bold;
}

/* Efeito de brilho no botão */
.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}
@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* Animações */
.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Novos Estilos: Tesouraria Zen --- */

.magic-receipt {
    background: repeating-linear-gradient(
        #fdfbf7,
        #fdfbf7 29px,
        #e8dcb8 30px
    );
    background-position: 0 1.5rem;
    box-shadow: inset 0 0 15px rgba(138, 127, 106, 0.1);
}

.payment-card-btn {
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(200, 185, 156, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.payment-card-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #d4af37;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.15);
}

.btn-shine-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 30%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.payment-card-btn:hover .btn-shine-effect {
    animation: shine-fast 0.8s forwards;
}

@keyframes shine-fast {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Ajustes de Pagamentos (Reutilizando a estética glass) */
.payment-page-container {
    padding-top: 100px;
    background: radial-gradient(circle at 50% 50%, #2a2a2d 0%, #111 100%);
}
.payment-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}
