/* -----------------------------------------------------------------------
   MadNutz — Kit Product Page (dark layout, espelho do Vue KitSelectorPage)
   ----------------------------------------------------------------------- */

/* ── Fundo escuro ──────────────────────────────────────────────────────── */
body.single-product.woocommerce:has(.mnk-kit-page) {
    background: #131313;
}

.mn-wc-wrap { padding: 0; max-width: 100%; }

.mnk-kit-page {
    position: relative;
    min-height: 100vh;
    background: #131313;
    color: #e5e2e1;
    padding-bottom: 60px;
    overflow: hidden;
}

/* Glow radial vermelho de fundo */
.mnk-bg-glow {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at 50% 40%, rgba(255, 0, 60, 0.13) 0%, rgba(0, 0, 0, 1) 68%);
    pointer-events: none;
}

.mnk-kit-container {
    position: relative;
    z-index: 1;
    max-width: 1152px;
    margin: 0 auto;
    padding: 32px 20px 40px;
}

/* ── Voltar ─────────────────────────────────────────────────────────────── */
.mnk-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    margin-bottom: 28px;
    transition: color 0.15s;
}
.mnk-back-link:hover { color: rgba(255, 255, 255, 0.8); }

/* ── Layout 2 colunas ───────────────────────────────────────────────────── */
.mnk-kit-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

@media (max-width: 900px) {
    .mnk-kit-layout { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Galeria esquerda (sticky) ──────────────────────────────────────────── */
.mnk-kit-gallery {
    position: sticky;
    top: 88px;
}

.mnk-gallery-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mnk-gallery-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.35s ease, transform 0.35s ease;
    filter: drop-shadow(0 0 40px rgba(200, 40, 48, 0.3));
}

.mnk-gallery-img.active {
    opacity: 1;
    transform: scale(1);
}

.mnk-gallery-inner:hover .mnk-gallery-img.active {
    transform: scale(1.03);
}

/* Overlay gradiente */
.mnk-gallery-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top right, rgba(255, 82, 92, 0.18), rgba(230, 235, 0, 0.08));
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* Inset ring */
.mnk-gallery-ring {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

/* Botões prev/next */
.mnk-gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    padding: 0;
}
.mnk-gallery-btn:hover { background: rgba(255, 255, 255, 0.18); }
.mnk-gallery-prev { left: 10px; }
.mnk-gallery-next { right: 10px; }

/* Dots */
.mnk-gallery-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 10;
}

.mnk-gdot {
    height: 6px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    width: 6px;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}
.mnk-gdot.active {
    width: 20px;
    background: #FF003C;
}

/* ── Info direita ───────────────────────────────────────────────────────── */
.mnk-kit-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Badge */
.mnk-kit-page-badge {
    display: inline-block;
    background: #FFDF00;
    color: #111;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
    align-self: flex-start;
}

/* Título */
.mnk-kit-page-title {
    font-family: 'Passion One', sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    background: linear-gradient(to right, #ffffff, #c6c6c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 10px;
}

/* Composição dos slots */
.mnk-kit-page-slots {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin: 0 0 16px;
}

/* Preço */
.mnk-kit-page-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.mnk-price-now {
    font-size: 2rem;
    font-weight: 800;
    color: #ff525c;
}

.mnk-price-old {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: line-through;
}

.mnk-free-ship {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.25);
    padding: 3px 8px;
    border-radius: 4px;
}

/* Descrição */
.mnk-kit-page-desc {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 16px;
}

/* Divisor */
.mnk-kit-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 8px 0 20px;
}

/* ── Override: seletor de sabores (dark) ────────────────────────────────── */
.mnk-kit-selector-wrap .mnk-selector-wrap { margin-top: 0; }

.mnk-kit-selector-wrap .mnk-progress-bar {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 13px;
}

.mnk-kit-selector-wrap .mnk-prog-item strong { color: rgba(255, 255, 255, 0.9); }
.mnk-kit-selector-wrap .mnk-prog-item.mnk-prog-done strong { color: #4ade80; }
.mnk-kit-selector-wrap .mnk-prog-sep { color: rgba(255,255,255,0.2); }

/* Grupo de tamanho */
.mnk-kit-selector-wrap .mnk-size-group { margin-bottom: 16px; }

.mnk-kit-selector-wrap .mnk-size-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 6px;
    margin-bottom: 8px;
}

.mnk-kit-selector-wrap .mnk-slot-progress { color: rgba(255,255,255,0.2); }

/* Rows de produto — dark */
.mnk-kit-selector-wrap .mnk-product-row {
    background: rgba(18, 18, 18, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 10px;
    padding: 10px 12px;
    gap: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mnk-kit-selector-wrap .mnk-product-row.selected {
    border-color: rgba(255, 82, 92, 0.45);
    box-shadow: 0 0 14px rgba(255, 0, 60, 0.12);
    background: rgba(25, 14, 14, 0.8);
}

.mnk-kit-selector-wrap .mnk-thumb {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 52px;
    height: 52px;
}

.mnk-kit-selector-wrap .mnk-product-name { color: #fff; font-size: 13px; }
.mnk-kit-selector-wrap .mnk-product-size { color: rgba(255, 255, 255, 0.38); }

/* Contador — dark */
.mnk-kit-selector-wrap .mnk-btn-minus,
.mnk-kit-selector-wrap .mnk-btn-plus {
    border-color: rgba(255, 255, 255, 0.15);
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    width: 32px;
    height: 32px;
}

.mnk-kit-selector-wrap .mnk-btn-minus:not(:disabled) {
    border-color: rgba(255, 82, 92, 0.45);
    color: #ff525c;
}

.mnk-kit-selector-wrap .mnk-btn-plus:not(:disabled):hover {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.mnk-kit-selector-wrap .mnk-btn-minus:disabled,
.mnk-kit-selector-wrap .mnk-btn-plus:disabled {
    border-color: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.15);
}

.mnk-kit-selector-wrap .mnk-qty { color: #e6eb00; }

/* CTA — dark */
#mnk-cta-btn.mnk-cta-btn,
.mnk-kit-selector-wrap #mnk-cta-btn.mnk-cta-btn {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.2);
    font-family: 'Passion One', sans-serif;
    font-size: 18px;
    letter-spacing: 0.08em;
    border-radius: 10px;
    padding: 16px;
    margin-top: 8px;
    box-shadow: none;
}

#mnk-cta-btn.mnk-cta-btn.ready,
#mnk-cta-btn.mnk-cta-btn:not(:disabled) {
    background: #FF003C;
    color: #fff;
    box-shadow: 0 4px 24px rgba(255, 0, 60, 0.4);
}

#mnk-cta-btn.mnk-cta-btn.ready:hover,
#mnk-cta-btn.mnk-cta-btn:not(:disabled):hover {
    box-shadow: 0 0 0 2px #e6eb00, 0 6px 28px rgba(255, 0, 60, 0.5);
    transform: translateY(-1px);
}

/* ── Kit Fixo: lista de produtos (dark) ─────────────────────────────────── */
.mnk-kit-selector-wrap .mnk-fixed-label {
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
}

.mnk-kit-selector-wrap .mnk-fixed-item {
    background: rgba(18, 18, 18, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.mnk-kit-selector-wrap .mnk-fixed-name { color: #fff; }

.mnk-kit-selector-wrap .mnk-fixed-qty {
    color: #ff525c;
    background: rgba(255, 82, 92, 0.1);
}

.mnk-kit-selector-wrap .mnk-cta-btn.ready {
    font-family: 'Passion One', sans-serif;
    font-size: 18px;
    letter-spacing: 0.08em;
    border-radius: 10px;
    padding: 16px;
    width: 100%;
    display: block;
    text-align: center;
}

/* ── Lista com scroll suave ──────────────────────────────────────────────── */
.mnk-kit-selector-wrap .mnk-product-list {
    max-height: 420px;
}

.mnk-kit-selector-wrap .mnk-product-list::-webkit-scrollbar { width: 4px; }
.mnk-kit-selector-wrap .mnk-product-list::-webkit-scrollbar-track { background: transparent; }
.mnk-kit-selector-wrap .mnk-product-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}
