/* ===========================================
   BCF Product Selector - Final Version
   3D Press Effect + Green Buy Button
   Add this to estilos.css
   =========================================== */

.bcf-selector {
    background: #fff;
    border-radius: 24px;
    border: 2px solid #d1d5db;
    box-shadow: 
        0 4px 6px rgba(0,0,0,0.02),
        0 12px 40px rgba(30,64,175,0.08);
    overflow: hidden;
    position: relative;
}

.bcf-accent-bar {
    height: 4px;
    background: linear-gradient(90deg, #1e40af 0%, #7c3aed 50%, #a78bfa 100%);
}

.bcf-header {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.bcf-header-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bcf-header-icon svg {
    width: 26px;
    height: 26px;
}

.bcf-header-text {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.01em;
}

.bcf-content {
    padding: 24px;
}

.bcf-pill-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.bcf-pill {
    padding: 20px 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 105px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 
        0 4px 0 #cbd5e1,
        0 6px 12px rgba(0,0,0,0.08);
}

.bcf-pill:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 0 #cbd5e1,
        0 10px 20px rgba(0,0,0,0.12);
}

.bcf-pill:active {
    transform: translateY(2px);
    box-shadow: 
        0 2px 0 #cbd5e1,
        0 3px 6px rgba(0,0,0,0.08);
}

.bcf-pill-qty {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bcf-pill-price {
    font-size: 18px;
    font-weight: 800;
    color: #475569;
    margin-top: 6px;
}

.bcf-pill-price .cents {
    font-size: 13px;
    vertical-align: super;
    font-weight: 800;
}

.bcf-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    z-index: 2;
}

.bcf-badge-popular {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    animation: bcf-badge-pulse 2s ease-in-out infinite;
}

.bcf-badge-bonus {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

@keyframes bcf-badge-pulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(245, 158, 11, 0.6); }
}

.bcf-pill.has-badge {
    padding-top: 24px;
}

.bcf-pill.selected,
.bcf-pill.active {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    border-color: #1e40af;
    box-shadow: 
        0 4px 0 #1e3a8a,
        0 8px 20px rgba(30,64,175,0.3);
    transform: scale(1.02);
}

.bcf-pill.selected:hover,
.bcf-pill.active:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 
        0 6px 0 #1e3a8a,
        0 12px 24px rgba(30,64,175,0.35);
}

.bcf-pill.selected .bcf-pill-qty,
.bcf-pill.active .bcf-pill-qty {
    color: #fff;
}

.bcf-pill.selected .bcf-pill-price,
.bcf-pill.active .bcf-pill-price {
    color: rgba(255,255,255,0.95);
}

.bcf-pill.custom-pill {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #62a4f7;
    box-shadow: 
        0 4px 0 #93c5fd,
        0 6px 12px rgba(30,64,175,0.1);
}

.bcf-pill.custom-pill:hover {
    box-shadow: 
        0 6px 0 #93c5fd,
        0 10px 20px rgba(30,64,175,0.15);
}

.bcf-custom-default {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bcf-custom-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 6px;
}

.bcf-custom-icon svg {
    width: 24px;
    height: 24px;
    color: #1e40af;
    stroke: #1e40af;
}

.bcf-pill.custom-pill .bcf-pill-qty {
    font-size: 15px;
    color: #1e40af;
    font-weight: 700;
}

.bcf-pill.custom-pill .bcf-pill-price {
    font-size: 13px;
    color: #2563eb;
    font-weight: 600;
}

.bcf-custom-editing {
    display: none;
}

.bcf-pill.custom-pill.editing {
    padding: 14px 10px;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    border-color: #1e40af;
    box-shadow: 
        0 4px 0 #1e3a8a,
        0 8px 20px rgba(30,64,175,0.3);
    transform: scale(1.02);
}

.bcf-pill.custom-pill.editing .bcf-custom-default {
    display: none;
}

.bcf-pill.custom-pill.editing .bcf-custom-editing {
    display: block;
}

.bcf-custom-input {
    width: 100%;
    padding: 8px 6px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 10px;
    font-size: 20px;
    font-weight: 800;
    font-family: inherit;
    text-align: center;
    color: #fff;
    background: rgba(255,255,255,0.15);
}

.bcf-custom-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.2);
}

.bcf-custom-input::placeholder {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
}

.bcf-custom-price {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    margin-top: 6px;
}

.bcf-custom-price .cents {
    font-size: 11px;
    vertical-align: super;
}

.bcf-delivery-section {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.bcf-delivery-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #374151;
    white-space: nowrap;
}

.bcf-delivery-live {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    animation: bcf-pulse-green 2s ease-in-out infinite;
}

@keyframes bcf-pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.bcf-delivery-select {
    flex: 1;
    padding: 14px 48px 14px 18px;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: #111827;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: all 0.2s;
}

.bcf-delivery-select:hover {
    border-color: #9ca3af;
}

.bcf-delivery-select:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30,64,175,0.1);
}

.bcf-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}

.bcf-footer-left {
    color: #fff;
}

.bcf-footer-title {
    display: flex;
    flex-direction: row;
    align-items: start;
    gap: 8px;
}

.bcf-footer-qty {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 4px;
    text-align: left;
}

.bcf-footer-price {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: flex-start;
}

.bcf-footer-price .dollars {
    line-height: 1;
}

.bcf-footer-price .cents {
    font-size: 22px;
    font-weight: 700;
    margin-top: 4px;
    margin-left: 1px;
}

.bcf-buy-btn {
    padding: 18px 56px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 4px 0 #047857,
        0 6px 20px rgba(16, 185, 129, 0.4);
}

.bcf-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 0 #047857,
        0 10px 30px rgba(16, 185, 129, 0.5);
}

.bcf-buy-btn:active {
    transform: translateY(2px);
    box-shadow: 
        0 2px 0 #047857,
        0 4px 12px rgba(16, 185, 129, 0.4);
}

/* ===========================================
   RESPONSIVE - TABLET
   =========================================== */
@media (max-width: 768px) {
    .bcf-pill-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .bcf-pill-qty {
        font-size: 19px;
    }
    
    .bcf-pill-price {
        font-size: 16px;
    }
    
    .bcf-delivery-section {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
}

/* ===========================================
   RESPONSIVE - MOBILE
   =========================================== */
@media (max-width: 500px) {
    .bcf-selector {
        border-radius: 20px;
    }
    
    .bcf-header {
        padding: 14px 16px;
    }
    
    .bcf-header-icon {
        width: 24px;
        height: 24px;
    }
    
    .bcf-header-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .bcf-header-text {
        font-size: 15px;
    }
    
    .bcf-content {
        padding: 20px 16px;
    }
    
    .bcf-pill-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 16px;
    }
    
    .bcf-pill {
        padding: 16px 6px;
        border-radius: 12px;
        min-height: 85px;
        box-shadow: 
            0 3px 0 #cbd5e1,
            0 5px 10px rgba(0,0,0,0.08);
    }
    
    .bcf-pill.has-badge {
        padding-top: 20px;
    }
    
    .bcf-badge {
        top: -8px;
        padding: 4px 10px;
        font-size: 9px;
    }
    
    .bcf-pill-qty {
        font-size: 18px;
    }
    
    .bcf-pill-price {
        font-size: 15px;
    }
    
    .bcf-pill-price .cents {
        font-size: 11px;
    }
    
    .bcf-custom-icon {
        width: 20px;
        height: 20px;
    }
    
    .bcf-custom-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .bcf-pill.custom-pill .bcf-pill-qty {
        font-size: 13px;
    }
    
    .bcf-pill.custom-pill .bcf-pill-price {
        font-size: 11px;
    }
    
    .bcf-delivery-section {
        padding: 14px 16px;
        border-radius: 12px;
    }
    
    .bcf-delivery-label {
        font-size: 13px;
    }
    
    .bcf-delivery-select {
        padding: 12px 44px 12px 16px;
        font-size: 14px;
    }
    
    .bcf-footer {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px;
        border-radius: 0 0 20px 20px;
    }
    
    .bcf-footer-qty {
        font-size: 14px;
    }
    
    .bcf-footer-price {
        font-size: 32px;
        justify-content: center;
    }
    
    .bcf-footer-price .cents {
        font-size: 16px;
        margin-top: 2px;
    }
    
    .bcf-buy-btn {
        width: 100%;
        padding: 14px 32px;
        font-size: 16px;
        border-radius: 12px;
        box-shadow: 
            0 3px 0 #047857,
            0 5px 16px rgba(16, 185, 129, 0.4);
    }
}