/**
 * order-bombs.css
 * Estilos para la sección de Order Bombs (upsells).
 * Optics Sterling LLC
 *
 * ACTUALIZADO: Fuente Manrope heredada vía var(--font-primary).
 */

.order-bombs-section {
    --bombs-accent: #c9a84c;
    --bombs-accent-dark: #b8963a;
    --bombs-danger: #e74c3c;
    --bombs-danger-dark: #c0392b;
    --bombs-success: #27ae60;
    --bombs-text: #1a2332;
    --bombs-muted: #64748b;

    background: linear-gradient(135deg, #fffdf5 0%, #fff7d6 100%);
    border: 3px dashed var(--bombs-accent);
    border-radius: 20px;
    padding: 24px;
    margin: 24px 0;
    position: relative;
    box-shadow: 0 8px 32px rgba(201, 168, 76, 0.15);
    animation: bombsPulseIn 0.5s ease;
    font-family: var(--font-primary);
}

@keyframes bombsPulseIn {
    from { opacity: 0; transform: scale(0.98); }
    to   { opacity: 1; transform: scale(1); }
}

.order-bombs-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px dashed rgba(201, 168, 76, 0.4);
    flex-wrap: wrap;
}

.order-bombs-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bombs-accent), var(--bombs-accent-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.4);
    animation: bombsShake 3.5s ease-in-out infinite;
    transform-origin: center;
}

@keyframes bombsShake {
    0%, 88%, 100% { transform: rotate(0deg); }
    90%, 94%      { transform: rotate(-8deg); }
    92%, 96%      { transform: rotate(8deg); }
}

.order-bombs-header-text { flex: 1; min-width: 200px; }

.order-bombs-header-text h3 {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--bombs-text);
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.order-bombs-header-text p {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: var(--bombs-muted);
    margin: 0;
    line-height: 1.4;
}

.order-bombs-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bombs-text);
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.order-bombs-selected-count {
    background: var(--bombs-accent);
    color: var(--bombs-text);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 800;
}

.order-bombs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.bomb-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    overflow: hidden;
    margin: 0;
    font-family: var(--font-primary);
}

.bomb-card:hover {
    border-color: var(--bombs-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.2);
}

.bomb-card.bomb-selected {
    border-color: var(--bombs-success);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.15);
}

.bomb-card.bomb-loading {
    opacity: 0.6;
    pointer-events: none;
}

.bomb-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.bomb-check-mark {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 11px;
    transition: all 0.25s ease;
    flex-shrink: 0;
    z-index: 2;
}

.bomb-check-mark i {
    opacity: 0;
    transform: scale(0);
    transition: all 0.25s ease;
}

.bomb-selected .bomb-check-mark {
    background: var(--bombs-success);
    border-color: var(--bombs-success);
}

.bomb-selected .bomb-check-mark i {
    opacity: 1;
    transform: scale(1);
}

.bomb-badge {
    position: absolute;
    top: 0;
    left: 12px;
    background: linear-gradient(135deg, var(--bombs-danger), var(--bombs-danger-dark));
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 0.625rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 0 0 8px 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    animation: badgePop 2s ease-in-out infinite;
    z-index: 3;
    line-height: 1.4;
}

@keyframes badgePop {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}

.bomb-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.bomb-selected .bomb-icon {
    background: linear-gradient(135deg, var(--bombs-accent), var(--bombs-accent-dark));
    color: #ffffff;
}

.bomb-body {
    flex: 1;
    min-width: 0;
}

.bomb-name {
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--bombs-text);
    margin-bottom: 2px;
    line-height: 1.3;
}

.bomb-desc {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    color: var(--bombs-muted);
    line-height: 1.4;
}

.bomb-price {
    flex-shrink: 0;
    text-align: right;
}

.bomb-price-value {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--bombs-danger);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 2px rgba(231, 76, 60, 0.15);
    letter-spacing: -0.02em;
}

.order-bombs-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 2px dashed rgba(201, 168, 76, 0.4);
}

.order-bombs-total-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.order-bombs-total-label {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: var(--bombs-muted);
    font-weight: 600;
}

.order-bombs-total-value {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bombs-danger);
    font-variant-numeric: tabular-nums;
    transition: all 0.3s ease;
    letter-spacing: -0.02em;
}

.order-bombs-hint {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
    font-style: italic;
}

.order-bombs-hint i {
    color: var(--bombs-accent);
    font-size: 0.8125rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .order-bombs-section {
        padding: 16px;
        border-radius: 16px;
        border-width: 2px;
    }

    .order-bombs-grid { grid-template-columns: 1fr; }

    .order-bombs-header { gap: 12px; }

    .order-bombs-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .order-bombs-header-text h3 { font-size: 1.0625rem; }
    .order-bombs-header-text p { font-size: 0.8125rem; }

    .order-bombs-counter {
        font-size: 0.6875rem;
        padding: 5px 10px;
    }

    .bomb-card { padding: 12px; gap: 10px; }
    .bomb-name { font-size: 0.875rem; }
    .bomb-price-value { font-size: 1rem; }
    .order-bombs-total-value { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .order-bombs-section { padding: 14px; }

    .order-bombs-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .bomb-card { padding: 10px; gap: 8px; }

    .bomb-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .bomb-name { font-size: 0.8125rem; }
    .bomb-desc { font-size: 0.6875rem; }
    .bomb-price-value { font-size: 0.9375rem; }
    .order-bombs-total-value { font-size: 1.125rem; }
    .order-bombs-badge { font-size: 0.5625rem; padding: 2px 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .order-bombs-icon,
    .bomb-badge,
    .order-bombs-section {
        animation: none;
    }
}