/* --- General & Animations --- */
.dazzle-finder-view { transition: opacity 0.4s ease-in-out; }
.dazzle-finder-form-step { animation: fadeIn 0.5s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- Floating Button --- */
#dazzle-finder-floating-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(45deg, #E91E63, #C2185B);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    z-index: 9998;
    transition: all 0.3s ease;
}
#dazzle-finder-floating-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.5);
}

/* --- Modal --- */
#dazzle-finder-form-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9999; display: flex; align-items: center; justify-content: center;
}
.dazzle-finder-modal-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
}
.dazzle-finder-modal-content {
    position: relative; background: #ffffff; border-radius: 16px;
    width: 90%; max-width: 650px; padding: 30px 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-height: 90vh; overflow-y: auto;
    border-top: 6px solid #E91E63;
}
#dazzle-finder-close-modal {
    position: absolute; top: 15px; right: 15px; background: transparent;
    border: none; font-size: 30px; cursor: pointer; color: #aaa;
    line-height: 1; transition: color 0.2s;
}
#dazzle-finder-close-modal:hover { color: #333; }

/* --- Form Steps & Inputs --- */
.dazzle-finder-form-step { display: none; }
.dazzle-finder-form-step.active { display: block; }
.dazzle-finder-form-step h2 {
    margin-top: 0; margin-bottom: 10px; color: #333;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}
.dazzle-finder-form-step p { margin-bottom: 30px; color: #666; font-size: 16px; }
.dazzle-finder-input {
    width: 100%; padding: 14px; border: 1px solid #ddd;
    border-radius: 8px; font-size: 16px; margin-bottom: 20px;
    box-sizing: border-box; transition: all 0.2s;
}
.dazzle-finder-input:focus { border-color: #E91E63; box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1); }

/* --- Buttons --- */
.dazzle-finder-btn, .dazzle-finder-btn-secondary {
    display: block; width: 100%; padding: 15px; border-radius: 8px;
    font-size: 16px; font-weight: bold; cursor: pointer; border: none;
    text-align: center; transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.dazzle-finder-btn { background-color: #E91E63; color: white; }
.dazzle-finder-btn:hover { background-color: #C2185B; transform: translateY(-2px); }
.dazzle-finder-nav-btns { display: flex; gap: 10px; margin-top: 20px; }
.dazzle-finder-btn-secondary { background: #f0f0f0; color: #555; border: 1px solid #ddd; }
.dazzle-finder-btn-secondary:hover { background: #e0e0e0; }

/* --- Loader & Error --- */
#dazzle-finder-loader, #dazzle-finder-error-message { text-align: center; padding: 40px 0; }
.spinner {
    border: 5px solid #f3f3f3; border-top: 5px solid #E91E63;
    border-radius: 50%; width: 50px; height: 50px;
    animation: spin 1s linear infinite; margin: 40px auto 20px;
}
#dazzle-finder-error-message {
    color: #c0392b; font-weight: 500; background-color: #fdd;
    border: 1px solid #c0392b; border-radius: 8px; padding: 20px;
}

/* --- Results --- */
.results-header { text-align: center; margin-bottom: 30px; }
.results-header h3 { font-size: 26px; margin: 0; color: #333; font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif; }
#dazzle-finder-results-cards { min-height: 380px; } /* Increased min-height for buttons */
.product-card {
    background: #fff; border: 1px solid #e9e9e9;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07); border-radius: 12px;
    padding: 25px; display: none; grid-template-columns: 1fr 220px;
    gap: 30px; align-items: center; animation: fadeIn 0.6s;
}
.product-card.active { display: grid; }
@media (max-width: 600px) {
    #dazzle-finder-results-cards { min-height: 520px; }
    .product-card { grid-template-columns: 1fr; }
}
.spec-details h4 { margin: 0 0 12px; font-size: 22px; color: #C2185B; font-weight: 600; }
.spec-details p { margin: 8px 0; font-size: 15px; color: #444; }
.spec-details p strong { color: #333; font-weight: 500; }
.spec-price { margin-top: 15px; font-size: 20px; font-weight: bold; color: #E91E63; }
.chart-container { min-height: 180px; }
.chart-container canvas { max-width: 100%; height: auto; }

/* --- Product Card Actions --- */
.product-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}
.product-action-btn {
    flex: 1;
    text-decoration: none;
    display: inline-block;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.add-to-cart-btn {
    background-color: #E91E63;
    color: white;
    border-color: #E91E63;
}
.add-to-cart-btn:hover {
    background-color: #C2185B;
    transform: translateY(-2px);
}
.whatsapp-btn {
    background-color: #25D366;
    color: white;
    border-color: #25D366;
}
.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}
@media (max-width: 600px) {
    .product-actions {
        flex-direction: column;
    }
}

/* --- Pagination --- */
#dazzle-finder-pagination-controls {
    display: flex; justify-content: space-between; align-items: center;
    margin: 25px 0; user-select: none;
}
.pagination-btn {
    background: #E91E63; color: white; border: none;
    border-radius: 8px; padding: 10px 18px; font-size: 14px;
    font-weight: bold; cursor: pointer; transition: background-color 0.2s;
}
.pagination-btn:hover { background: #C2185B; }
.pagination-btn:disabled { background: #ccc; cursor: not-allowed; }
.pagination-status { font-size: 15px; color: #555; font-weight: 500; }
.results-footer { text-align: center; margin-top: 25px; }
#dazzle-finder-start-over-btn { display: inline-block; width: auto; padding: 12px 35px; }