/**
 * Ficha de producto (?page=producto) — coherente con la tienda (?page=tienda)
 */

.producto-ficha-wrap {
    background: linear-gradient(180deg, #020617 0%, #0f172a 50%, #020617 100%);
    padding: 1.5rem 0 3.5rem;
}

.producto-ficha-wrap .container {
    max-width: 1120px;
}

.producto-ficha-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-bottom: 1.35rem;
    font-size: 0.875rem;
    font-family: "Rajdhani", sans-serif;
}

.producto-ficha-breadcrumbs a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 700;
    padding: 0.25rem 0.35rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.producto-ficha-breadcrumbs a:hover {
    background: rgba(255, 214, 0, 0.15);
    color: #facc15;
}

.producto-ficha-bc-sep {
    color: #64748b;
    user-select: none;
    font-weight: 600;
}

.producto-ficha-bc-current {
    color: #cbd5e1;
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.producto-ficha-wrap .producto-detail-grid {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 28px rgba(15, 23, 42, 0.07);
    padding: 1.5rem 1.75rem 2rem;
    gap: 2rem;
}

.producto-ficha-wrap .producto-detail-img {
    background: linear-gradient(145deg, #f8fafc 0%, #eef2f7 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    top: 88px;
}

.producto-ficha-wrap .producto-detail-placeholder {
    background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
}

.producto-ficha-wrap .producto-detail-placeholder span {
    color: #94a3b8;
}

.producto-ficha-wrap .producto-detail-cat {
    background: rgba(15, 23, 42, 0.9);
    color: #facc15;
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.producto-ficha-wrap .producto-detail-info h1 {
    font-family: "Rajdhani", sans-serif;
    font-weight: 700;
    color: #0f172a;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    margin-top: 0.35rem;
}

.producto-ficha-wrap .producto-detail-meta {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--amarillo-electrico, #ffd600);
    border-radius: 12px;
}

.producto-ficha-wrap .producto-meta-item {
    color: #475569;
}

.producto-ficha-wrap .producto-meta-item strong {
    color: #0f172a;
}

.producto-ficha-wrap .precio-actual {
    font-family: "Orbitron", sans-serif;
    color: #eab308;
    font-size: clamp(1.65rem, 4vw, 2.1rem);
}

.producto-ficha-wrap .producto-detail-precio {
    padding: 1rem 0 0.25rem;
    border-top: 1px solid #f1f5f9;
    margin-top: 0.5rem;
}

.producto-ficha-wrap .producto-detail-desc,
.producto-ficha-wrap .producto-detail-specs,
.producto-ficha-wrap .producto-detail-warranty {
    border-top-color: #e2e8f0;
}

.producto-ficha-wrap .producto-detail-desc h3,
.producto-ficha-wrap .producto-detail-specs h3,
.producto-ficha-wrap .producto-detail-warranty h3 {
    color: #0f172a;
    font-family: "Rajdhani", sans-serif;
    font-size: 1.05rem;
}

.producto-ficha-wrap .producto-detail-specs p,
.producto-ficha-wrap .producto-detail-warranty p {
    color: #000;
}

.producto-ficha-wrap .producto-detail-warranty p i {
    color: #000;
}

.producto-ficha-wrap .producto-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.75rem;
}

@media (min-width: 640px) {
    .producto-ficha-wrap .producto-detail-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
    }

    .producto-ficha-wrap .producto-detail-actions .btn-producto {
        flex: 1 1 auto;
        min-width: 200px;
        width: auto;
        margin-bottom: 0 !important;
    }
}

/* Mismo diseño: agregar al carrito y WhatsApp */
.producto-ficha-wrap .producto-detail-actions .btn-producto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    max-width: 100%;
    min-height: 3.15rem;
    padding: 0.85rem 1.35rem;
    border-radius: 12px;
    font-family: "Rajdhani", sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid rgba(161, 98, 7, 0.5);
    background: linear-gradient(180deg, #ffe033 0%, #ffd600 100%);
    color: #0f172a;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.28) inset,
        0 4px 16px rgba(202, 138, 4, 0.35);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.producto-ficha-wrap .producto-detail-actions .btn-producto:hover:not(:disabled) {
    filter: brightness(1.04);
    transform: translateY(-2px);
    border-color: #a16207;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.32) inset,
        0 8px 24px rgba(202, 138, 4, 0.42);
}

.producto-ficha-wrap .producto-detail-actions .btn-producto svg {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
}

.producto-ficha-wrap .producto-detail-actions .btn-agregar-carrito.btn-producto:disabled {
    cursor: not-allowed;
    transform: none;
    filter: none;
    opacity: 0.85;
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
    color: #f8fafc;
    border-color: #475569;
    box-shadow: none;
}

.producto-ficha-wrap .producto-detail-actions .btn-agregar-carrito.btn-producto.agregando {
    background: linear-gradient(180deg, #fde68a 0%, #fbbf24 100%);
    color: #422006;
    border-color: #b45309;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.producto-ficha-wrap .producto-detail-actions .btn-agregar-carrito.btn-producto.agregado {
    background: linear-gradient(180deg, #ecfdf5 0%, #bbf7d0 100%);
    color: #065f46;
    border-color: #059669;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.22);
}

@media (max-width: 768px) {
    .producto-ficha-wrap .producto-detail-grid {
        padding: 1.15rem;
    }
}
