/* dkt-presale-modal — Dark Tree × Rocks · Modal de compra na LP */
#dkt-presale-modal.dkt-presale-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(10, 9, 8, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow-y: auto;
    padding: 24px 16px;
    box-sizing: border-box;
}
#dkt-presale-modal.dkt-presale-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

#dkt-presale-modal .dkt-presale-dialog {
    position: relative;
    width: 100%;
    max-width: 740px;
    background: #0d0a08;
    border: 1px solid #2a2118;
    border-radius: 10px;
    padding: 48px 36px 36px;
    color: #f2e3c9;
    font-family: Arial, Helvetica, sans-serif;
    animation: dktPresaleFadeIn .25s ease;
    box-sizing: border-box;
}

@keyframes dktPresaleFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Close ── */
#dkt-presale-modal .dkt-presale-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none !important;
    border: 0 !important;
    color: #998a78;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    transition: color .15s;
    border-radius: 0;
    box-shadow: none;
    min-width: 0;
    width: auto;
    height: auto;
}
#dkt-presale-modal .dkt-presale-close:hover { color: #f2e3c9; }

/* ── Títulos ── */
#dkt-presale-modal .dkt-presale-title {
    margin: 0 0 12px;
    padding: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -.03em;
    color: #f2e3c9;
    text-align: left;
    line-height: 1.2;
}

/* ── Box pré-venda ── */
#dkt-presale-modal .dkt-presale-notice {
    display: inline-block;
    background: #d49717;
    color: #0d0a08;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .03em;
    padding: 8px 18px;
    border-radius: 4px;
    margin-bottom: 24px;
}

/* ── Step controls ── */
#dkt-presale-modal .dkt-presale-step[hidden] { display: none !important; }

#dkt-presale-modal .dkt-presale-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none !important;
    border: 0 !important;
    color: #998a78;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 20px;
    font-family: inherit;
    transition: color .15s;
    box-shadow: none;
    min-width: 0;
}
#dkt-presale-modal .dkt-presale-back:hover { color: #f2e3c9; }

/* ── Step 1 — Product Cards ── */
#dkt-presale-modal .dkt-presale-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

#dkt-presale-modal .dkt-presale-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0;
    padding: 20px;
    background: #15110d !important;
    border: 2px solid #2a2118 !important;
    border-radius: 8px;
    color: #f2e3c9;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .18s, background .18s, transform .18s;
    box-shadow: none;
    min-width: 0;
    width: auto;
    height: auto;
    line-height: 1.3;
}
#dkt-presale-modal .dkt-presale-card:hover {
    border-color: #d49717 !important;
    background: #1a150f !important;
    transform: translateY(-2px);
}

/* Kit — primeira fileira, largura total */
#dkt-presale-modal .dkt-presale-card--featured {
    grid-column: 1 / -1;
    order: -1;
    border-color: #d49717 !important;
    background: #1a150f !important;
    position: relative;
    padding: 24px;
}

/* ── Card body: imagem + texto lado a lado ── */
#dkt-presale-modal .dkt-presale-card-body {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

#dkt-presale-modal .dkt-presale-card-img {
    flex-shrink: 0;
    border-radius: 6px;
    object-fit: cover;
    background: #2a2118;
}
#dkt-presale-modal .dkt-presale-card--featured .dkt-presale-card-img {
    width: 120px;
    height: 120px;
}
#dkt-presale-modal .dkt-presale-card:not(.dkt-presale-card--featured) .dkt-presale-card-img {
    width: 80px;
    height: 80px;
}

#dkt-presale-modal .dkt-presale-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

/* ── Badge ── */
#dkt-presale-modal .dkt-presale-badge {
    display: inline-block;
    background: #d49717;
    color: #0d0a08;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 4px 10px;
    margin-bottom: 10px;
    align-self: flex-start;
    border-radius: 3px;
    line-height: 1.4;
}

/* ── Card text ── */
#dkt-presale-modal .dkt-presale-card-name {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.15;
    color: #f2e3c9;
}
#dkt-presale-modal .dkt-presale-card--featured .dkt-presale-card-name {
    font-size: 24px;
}

#dkt-presale-modal .dkt-presale-card-sub {
    display: block;
    font-size: 13px;
    color: #998a78;
    line-height: 1.4;
}

#dkt-presale-modal .dkt-presale-card-price {
    display: block;
    font-size: 22px;
    font-weight: 900;
    color: #d49717;
    margin-top: 4px;
    line-height: 1.2;
}
#dkt-presale-modal .dkt-presale-card--featured .dkt-presale-card-price {
    font-size: 28px;
}

#dkt-presale-modal .dkt-presale-card-savings {
    display: block;
    font-size: 12px;
    color: #6dba75;
    font-weight: 700;
    line-height: 1.4;
}

/* ── Step 2 — Grind Selection ── */
#dkt-presale-modal .dkt-presale-grind-section {
    margin-bottom: 24px;
}
#dkt-presale-modal .dkt-presale-grind-section[hidden] { display: none !important; }

#dkt-presale-modal .dkt-presale-grind-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #998a78;
    margin: 0 0 12px;
    padding: 0;
}

#dkt-presale-modal .dkt-presale-grind-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#dkt-presale-modal .dkt-presale-grind-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px;
    min-width: 90px;
    padding: 14px 12px;
    background: #15110d !important;
    border: 2px solid #2a2118 !important;
    border-radius: 6px;
    color: #f2e3c9;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    box-shadow: none;
    min-height: 0;
    width: auto;
    height: auto;
}
#dkt-presale-modal .dkt-presale-grind-btn:hover {
    border-color: #998a78 !important;
}
#dkt-presale-modal .dkt-presale-grind-btn.selected {
    border-color: #d49717 !important;
    background: #2a2118 !important;
}
#dkt-presale-modal .dkt-presale-grind-btn .dkt-presale-grind-icon {
    font-size: 22px;
    line-height: 1;
}
#dkt-presale-modal .dkt-presale-grind-btn .dkt-presale-grind-icon svg {
    display: block;
    width: 28px;
    height: 28px;
    color: #d49717;
}

/* ── Confirm button ── */
#dkt-presale-modal .dkt-presale-confirm {
    display: block;
    width: 100%;
    padding: 16px 24px;
    margin-top: 8px;
    background: #d49717 !important;
    border: 0 !important;
    border-radius: 6px;
    color: #0d0a08 !important;
    font-family: inherit;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s, opacity .15s;
    box-shadow: none;
}
#dkt-presale-modal .dkt-presale-confirm:disabled {
    opacity: .35;
    cursor: default;
}
#dkt-presale-modal .dkt-presale-confirm:not(:disabled):hover {
    background: #e5a821 !important;
}

/* ── Loading ── */
#dkt-presale-modal .dkt-presale-loading {
    text-align: center;
    padding: 48px 0;
}
#dkt-presale-modal .dkt-presale-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid #2a2118;
    border-top-color: #d49717;
    border-radius: 50%;
    animation: dktPresaleSpin .7s linear infinite;
    margin-bottom: 16px;
}
@keyframes dktPresaleSpin {
    to { transform: rotate(360deg); }
}
#dkt-presale-modal .dkt-presale-loading p {
    color: #998a78;
    font-size: 15px;
    margin: 0;
}

/* ── Error ── */
#dkt-presale-modal .dkt-presale-error {
    background: #3d1515;
    border: 1px solid #6b2a2a;
    border-radius: 4px;
    color: #f2c9c9;
    padding: 12px 16px;
    font-size: 14px;
    margin-top: 12px;
    display: none;
}
#dkt-presale-modal .dkt-presale-error.show { display: block; }

/* Aviso da pré-venda no resumo do pedido */
.dkt-presale-checkout-notice {
    display: block;
    width: 100%;
    margin: 14px 0 18px;
}
.dkt-presale-checkout-notice-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #d49717;
    border-left-width: 4px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff8e8 0%, #fffdf8 100%);
    color: #6f4c12;
    font-size: 15px;
    line-height: 1.35;
    box-shadow: 0 3px 12px rgba(156, 104, 17, .12);
}
.dkt-presale-checkout-notice-content {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    text-align: left;
}
.dkt-presale-checkout-notice-box strong {
    display: block;
    color: #9a6811;
    font-size: 15px;
    letter-spacing: .02em;
}
.dkt-presale-checkout-notice-box small {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    margin-top: 3px;
    color: #6f6252;
    font-size: 13px;
}
.dkt-presale-checkout-notice-box b { color: #9a6811; }
.dkt-presale-checkout-notice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    border-radius: 50%;
    background: #d49717;
    color: #fffdf8;
    font-weight: 900;
    font-size: 16px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    #dkt-presale-modal .dkt-presale-dialog {
        padding: 36px 18px 24px;
    }
    #dkt-presale-modal .dkt-presale-cards {
        grid-template-columns: 1fr;
    }
    #dkt-presale-modal .dkt-presale-card--featured {
        grid-column: auto;
    }
    #dkt-presale-modal .dkt-presale-title {
        font-size: 22px;
    }
    #dkt-presale-modal .dkt-presale-card-body {
        gap: 14px;
    }
    #dkt-presale-modal .dkt-presale-card--featured .dkt-presale-card-img {
        width: 90px;
        height: 90px;
    }
    #dkt-presale-modal .dkt-presale-card:not(.dkt-presale-card--featured) .dkt-presale-card-img {
        width: 64px;
        height: 64px;
    }
    #dkt-presale-modal .dkt-presale-card-name {
        font-size: 17px;
    }
    #dkt-presale-modal .dkt-presale-card--featured .dkt-presale-card-name {
        font-size: 20px;
    }
    #dkt-presale-modal .dkt-presale-card-price {
        font-size: 18px;
    }
    #dkt-presale-modal .dkt-presale-card--featured .dkt-presale-card-price {
        font-size: 22px;
    }
    #dkt-presale-modal .dkt-presale-grind-btn {
        min-width: 76px;
        padding: 10px 8px;
        font-size: 12px;
    }
    #dkt-presale-modal .dkt-presale-confirm {
        font-size: 14px;
        padding: 14px 16px;
    }
    #dkt-presale-modal .dkt-presale-card-savings {
        font-size: 11px;
    }
    #dkt-presale-modal .dkt-presale-notice {
        font-size: 12px;
        padding: 6px 14px;
    }
}
