/**
 * Step Motor Finder Pro - Frontend Styles
 * Industrial Orange Theme
 *
 * @package Step_Motor_Finder_Pro
 */

/* CSS Variables - Industrial Orange Palette */
:root {
    --mp-primary: #F89A20;
    --mp-primary-dark: #d98216;
    --mp-primary-light: #fbd38d;
    --mp-primary-rgb: 248, 154, 32;
    --mp-secondary: #f1f5f9;
    --mp-success: #10b981;
    --mp-warning: #f59e0b;
    --mp-danger: #ef4444;
    --mp-dark: #1e293b;
    --mp-gray-50: #f8fafc;
    --mp-gray-100: #f1f5f9;
    --mp-gray-200: #e2e8f0;
    --mp-gray-300: #cbd5e1;
    --mp-gray-400: #94a3b8;
    --mp-gray-500: #64748b;
    --mp-gray-600: #475569;
    --mp-gray-700: #334155;
    --mp-gray-800: #1e293b;
    --mp-gray-900: #0f172a;
    --mp-white: #ffffff;
    --mp-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mp-border-radius: 12px;
    --mp-border-radius-sm: 8px;
    --mp-border-radius-lg: 16px;
    --mp-border-radius-full: 9999px;
    --mp-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --mp-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --mp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --mp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --mp-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --mp-transition: all 0.2s ease;
    --mp-transition-slow: all 0.3s ease;
}

/* Reset & Base */
.smf-finder-wrapper {
    font-family: var(--mp-font-family);
    line-height: 1.6;
    color: var(--mp-gray-800);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.smf-finder-wrapper *,
.smf-finder-wrapper *::before,
.smf-finder-wrapper *::after {
    box-sizing: border-box;
}

/* Container */
.smf-finder-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Results Container - Wider */
.smf-results-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Header */
.smf-finder-header {
    text-align: center;
    margin-bottom: 32px;
}

.smf-finder-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--mp-gray-900);
    margin: 0 0 8px 0;
    letter-spacing: -0.025em;
}

.smf-finder-subtitle {
    font-size: 1rem;
    color: var(--mp-gray-500);
    margin: 0;
    font-weight: 400;
}

/* Control Panel Card */
.smf-control-panel {
    background: var(--mp-white);
    border: 1px solid var(--mp-gray-200);
    border-radius: var(--mp-border-radius-lg);
    box-shadow: var(--mp-shadow-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.smf-control-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--mp-primary), var(--mp-primary-light));
}

/* Form Groups */
.smf-form-group {
    margin-bottom: 28px;
}

.smf-form-group:last-of-type {
    margin-bottom: 32px;
}

.smf-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mp-gray-700);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Input Group */
.smf-input-group {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.smf-input-group .smf-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.smf-input-addon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: var(--mp-gray-100);
    border: 1px solid var(--mp-gray-300);
    border-left: none;
    border-radius: 0 var(--mp-border-radius-sm) var(--mp-border-radius-sm) 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mp-gray-500);
    min-width: 60px;
}

/* Inputs */
.smf-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: var(--mp-font-family);
    color: var(--mp-gray-800);
    background: var(--mp-white);
    border: 1px solid var(--mp-gray-300);
    border-radius: var(--mp-border-radius-sm);
    transition: var(--mp-transition);
    outline: none;
}

.smf-input:hover {
    border-color: var(--mp-gray-400);
}

.smf-input:focus {
    border-color: var(--mp-primary);
    box-shadow: 0 0 0 3px rgba(var(--mp-primary-rgb), 0.15);
}

.smf-input::placeholder {
    color: var(--mp-gray-400);
}

/* ========================================
   STEPPER INPUT GROUP - Precision Torque
   Large buttons for 40+ users
   ======================================== */

.smf-stepper-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 16px;
}

.smf-stepper-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    font-size: 1.5rem;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.smf-stepper-minus {
    border-radius: 12px 0 0 12px;
    border-right: none;
}

.smf-stepper-plus {
    border-radius: 0 12px 12px 0;
    border-left: none;
}

.smf-stepper-btn:hover {
    background: #e5e7eb;
    color: #1f2937;
    border-color: var(--mp-primary-light);
}

.smf-stepper-btn:active {
    background: var(--mp-primary-light);
    border-color: var(--mp-primary);
    transform: scale(0.95);
}

.smf-stepper-input {
    width: 140px;
    height: 56px;
    padding: 0 12px;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--mp-font-family);
    color: var(--mp-primary);
    background: var(--mp-white);
    border: 2px solid #e5e7eb;
    border-left: none;
    border-right: none;
    text-align: center;
    outline: none;
    -moz-appearance: textfield;
}

.smf-stepper-input::-webkit-outer-spin-button,
.smf-stepper-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.smf-stepper-input:focus {
    border-color: var(--mp-primary);
    box-shadow: 0 0 0 3px rgba(var(--mp-primary-rgb), 0.15);
}

/* Slider as Rough Estimator */
.smf-slider-wrap {
    position: relative;
    margin-bottom: 8px;
}

.smf-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: var(--mp-gray-200);
    border-radius: var(--mp-border-radius-full);
    outline: none;
    cursor: pointer;
}

.smf-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--mp-primary), var(--mp-primary-dark));
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--mp-shadow-md);
    transition: var(--mp-transition);
}

.smf-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: var(--mp-shadow-lg);
}

.smf-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--mp-primary), var(--mp-primary-dark));
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: var(--mp-shadow-md);
    transition: var(--mp-transition);
}

.smf-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
}

.smf-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--mp-gray-400);
    margin-top: 4px;
}

.smf-torque-hint {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--mp-gray-400);
    text-align: center;
    margin: 8px 0 0 0;
}





/* NEMA Segmented Control */
.smf-nema-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.smf-nema-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 64px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--mp-font-family);
    color: var(--mp-gray-600);
    background: var(--mp-white);
    border: 2px solid var(--mp-gray-200);
    border-radius: var(--mp-border-radius-full);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    user-select: none;
    position: relative;
}

.smf-nema-btn:hover {
    border-color: var(--mp-primary-light);
    color: var(--mp-primary);
    background: rgba(var(--mp-primary-rgb), 0.05);
}

/* Checkmark icon - hidden by default */
.smf-nema-btn::before {
    content: '✓';
    display: none;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 4px;
}

/* Active/Selected State */
.smf-nema-btn.active {
    background: var(--mp-primary);
    border-color: var(--mp-primary-dark);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(var(--mp-primary-rgb), 0.4);
    transform: translateY(-1px);
}

.smf-nema-btn.active::before {
    display: inline;
}

.smf-nema-btn.active:hover {
    background: var(--mp-primary-dark);
    border-color: var(--mp-primary-dark);
    box-shadow: 0 6px 14px rgba(var(--mp-primary-rgb), 0.5);
}

/* Hidden checkbox for NEMA */
.smf-nema-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}



/* Optional Field Hint */
.smf-optional-hint {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--mp-gray-400);
    font-weight: 400;
    margin-left: 8px;
}

/* Clear Filters Link */
.smf-clear-filters {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mp-gray-500);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--mp-transition);
    text-decoration: none;
}

.smf-clear-filters:hover {
    color: var(--mp-danger);
}

.smf-clear-filters-icon {
    font-size: 1rem;
}

.smf-form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Submit Button - Solid Orange, Flat Design */
.smf-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 18px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--mp-font-family);
    color: var(--mp-white);
    background: var(--mp-primary);
    border: none;
    border-radius: var(--mp-border-radius);
    cursor: pointer;
    transition: var(--mp-transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.smf-submit-btn:hover {
    background: var(--mp-primary-dark);
    opacity: 0.95;
}

.smf-submit-btn:active {
    opacity: 0.9;
}

/* Loading State */
.smf-submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Results Section */
.smf-results-section {
    margin-top: 32px;
    position: relative;
}

.smf-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.smf-results-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--mp-gray-800);
    margin: 0;
}

.smf-results-count {
    font-size: 0.875rem;
    color: var(--mp-gray-500);
    background: var(--mp-gray-100);
    padding: 6px 14px;
    border-radius: var(--mp-border-radius-full);
}

.smf-results-grid {
    display: grid;
    gap: 16px;
}

/* Product Card */
.smf-product-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--mp-white);
    border: 1px solid var(--mp-gray-200);
    border-radius: var(--mp-border-radius);
    padding: 20px;
    transition: var(--mp-transition);
}

.smf-product-card:hover {
    border-color: var(--mp-primary-light);
    box-shadow: var(--mp-shadow-md);
}

.smf-product-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--mp-border-radius-sm);
    background: var(--mp-gray-50);
}

.smf-product-info {
    flex: 1;
}

.smf-product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--mp-gray-800);
    margin: 0 0 8px 0;
}

.smf-product-name a {
    color: inherit;
    text-decoration: none;
    transition: var(--mp-transition);
}

.smf-product-name a:hover {
    color: var(--mp-primary);
}

.smf-product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.smf-product-spec {
    font-size: 0.8rem;
    color: var(--mp-gray-500);
    background: var(--mp-gray-100);
    padding: 4px 10px;
    border-radius: var(--mp-border-radius-sm);
}

.smf-product-spec strong {
    color: var(--mp-gray-700);
}

.smf-product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mp-primary);
    white-space: nowrap;
}

/* No Results */
.smf-no-results {
    text-align: center;
    padding: 48px 24px;
    background: var(--mp-gray-50);
    border-radius: var(--mp-border-radius);
}

.smf-no-results-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.smf-no-results-text {
    font-size: 1rem;
    color: var(--mp-gray-500);
    margin: 0;
}

/* ========================================
   PRODUCT CARDS - Industrial Technical Design
   3-Column Grid: Image (200px) | Specs | Action (220px)
   High-end catalogue aesthetic for 40+ engineers
   ======================================== */

/* Products Grid */
.smf-products-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Product Card - 3-Column Industrial Layout */
.smf-product-card {
    display: grid;
    grid-template-columns: 200px 1fr 220px;
    grid-template-rows: auto auto;
    background: var(--mp-white);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease;
    position: relative;
}

.smf-product-card:hover {
    border-color: var(--mp-primary-light);
}

/* Bundle card - System bar spans full width */
.smf-product-card.has-bundle {
    grid-template-rows: auto auto;
}

/* Card Image Column - Fixed 200px */
.smf-card-image {
    grid-column: 1;
    grid-row: 1;
    width: 200px;
    height: 180px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
}

.smf-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Card Specs Column - Flexible Middle */
.smf-card-specs {
    grid-column: 2;
    grid-row: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.smf-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    line-height: 1.4;
}

.smf-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.smf-card-title a:hover {
    color: var(--mp-primary);
}

.smf-card-sku {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: -4px;
}

/* Spec Grid - Key-Value Pairs */
.smf-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px 16px;
    margin-top: 4px;
}

.smf-spec-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.smf-spec-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.smf-spec-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.smf-spec-unit {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    margin-left: 2px;
}

/* Card Action Column - Fixed 220px with Border */
.smf-card-action {
    grid-column: 3;
    grid-row: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    border-left: 1px solid #e2e8f0;
    background: #fafafa;
}

.smf-card-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.smf-card-price del {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: #94a3b8;
    text-decoration: line-through;
}

.smf-card-price ins {
    text-decoration: none;
}

.smf-card-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Button Styles - Industrial */
.smf-btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--mp-font-family);
    color: #475569;
    background: var(--mp-white);
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.smf-btn-outline:hover {
    border-color: #94a3b8;
    color: #1e293b;
    background: #f8fafc;
}

.smf-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--mp-font-family);
    color: var(--mp-white);
    background: #6366f1;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.smf-btn-primary:hover {
    background: #4f46e5;
}

/* ========================================
   ADD TO CART BUTTON STATES
   Loading spinner and success state
   ======================================== */

.smf-add-to-cart {
    position: relative;
    min-width: 140px;
}

.smf-btn-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.smf-btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: smf-spin 0.6s linear infinite;
}

.smf-add-to-cart.loading .smf-btn-text {
    opacity: 0;
}

.smf-add-to-cart.loading .smf-btn-spinner {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Success State - Green */
.smf-add-to-cart.added {
    background: #10b981;
    pointer-events: none;
}

.smf-add-to-cart.added:hover {
    background: #10b981;
}

.smf-btn-check {
    width: 14px;
    height: 14px;
    stroke-width: 3;
}

/* System Bar Button Spinner */
.smf-system-btn .smf-btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: smf-spin 0.6s linear infinite;
    margin-right: 6px;
}

/* ========================================
   BUNDLE MANIFEST MODAL
   Technical Packing Slip Design
   ======================================== */

.smf-manifest-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.smf-manifest-overlay.active {
    opacity: 1;
}

.smf-manifest-overlay.closing {
    opacity: 0;
}

.smf-manifest {
    background: var(--mp-white);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    width: 100%;
    max-width: 520px;
    margin: 20px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.smf-manifest-overlay.active .smf-manifest {
    transform: translateY(0);
}

.smf-manifest-overlay.closing .smf-manifest {
    transform: translateY(-20px);
}

/* Manifest Header */
.smf-manifest-header {
    padding: 28px 28px 20px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.smf-manifest-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smf-manifest-icon svg {
    width: 32px;
    height: 32px;
    stroke: #16a34a;
    stroke-width: 2;
}

.smf-manifest-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.smf-manifest-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Manifest Body - The Grid */
.smf-manifest-body {
    padding: 20px 28px;
}

.smf-manifest-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.smf-manifest-row {
    display: grid;
    grid-template-columns: 1fr 80px 100px;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.smf-manifest-row:last-child {
    border-bottom: none;
}

.smf-manifest-row-header {
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.smf-manifest-row-header span {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.smf-manifest-col-product {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.smf-manifest-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.smf-manifest-product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.smf-manifest-product-type {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.smf-manifest-product-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.smf-manifest-col-qty {
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    text-align: center;
}

.smf-manifest-col-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Divider */
.smf-manifest-divider {
    height: 1px;
    background: repeating-linear-gradient(
        90deg,
        #cbd5e1 0,
        #cbd5e1 4px,
        transparent 4px,
        transparent 8px
    );
    margin: 16px 0;
}

/* Total */
.smf-manifest-total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}

.smf-manifest-total-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
}

.smf-manifest-total-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

/* Manifest Footer */
.smf-manifest-footer {
    display: flex;
    gap: 12px;
    padding: 20px 28px 28px;
    border-top: 1px solid #f1f5f9;
}

.smf-manifest-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--mp-font-family);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.smf-manifest-btn-secondary {
    background: transparent;
    border: none;
    color: #64748b;
}

.smf-manifest-btn-secondary:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.smf-manifest-btn-primary {
    background: var(--mp-primary);
    border: none;
    color: var(--mp-white);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.smf-manifest-btn-primary:hover {
    background: var(--mp-primary-dark);
}

/* Manifest Responsive */
@media (max-width: 540px) {
    .smf-manifest {
        margin: 12px;
        max-width: none;
    }

    .smf-manifest-header {
        padding: 24px 20px 16px;
    }

    .smf-manifest-icon {
        width: 48px;
        height: 48px;
    }

    .smf-manifest-icon svg {
        width: 28px;
        height: 28px;
    }

    .smf-manifest-title {
        font-size: 1.1rem;
    }

    .smf-manifest-body {
        padding: 16px 20px;
    }

    .smf-manifest-row {
        grid-template-columns: 1fr 60px 80px;
        gap: 8px;
        padding: 10px 0;
    }

    .smf-manifest-thumb {
        width: 40px;
        height: 40px;
    }

    .smf-manifest-product-name {
        font-size: 0.8rem;
    }

    .smf-manifest-col-qty {
        font-size: 0.75rem;
    }

    .smf-manifest-col-price {
        font-size: 0.8rem;
    }

    .smf-manifest-total-price {
        font-size: 1.1rem;
    }

    .smf-manifest-footer {
        flex-direction: column;
        padding: 16px 20px 24px;
    }

    .smf-manifest-btn {
        padding: 12px 16px;
    }
}

/* ========================================
   SYSTEM BAR - Bundle Equation (Docked Bottom)
   Light background, dashed top border
   ======================================== */

.smf-system-bar {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    background: #eff6ff;
    border-top: 1px dashed #cbd5e1;
}

.smf-system-equation {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.smf-system-thumb {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
    background: var(--mp-white);
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.smf-system-plus,
.smf-system-equals {
    font-size: 1rem;
    font-weight: 700;
    color: #64748b;
    flex-shrink: 0;
}

.smf-system-plus {
    color: var(--mp-primary);
}

.smf-system-equals {
    color: #475569;
}

.smf-system-driver {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.smf-system-driver-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.smf-system-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
}

/* System Bar Button - Orange */
.smf-system-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--mp-font-family);
    color: var(--mp-white);
    background: var(--mp-primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}

.smf-system-btn:hover {
    background: var(--mp-primary-dark);
}

.smf-system-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.smf-system-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.smf-system-btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Legacy Spec Pills - Keep for backward compatibility */
.smf-specs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.smf-spec-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--mp-white);
    border-radius: var(--mp-border-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.smf-spec-pill-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.smf-spec-pill-label {
    color: #374151;
    font-weight: 600;
    font-size: 0.85rem;
}

.smf-spec-pill-value {
    font-weight: 800;
    color: #1f2937;
    font-size: 0.95rem;
}

/* Legacy Bundle Section - Kept for backward compatibility */
.smf-bundle-section {
    display: none;
}

/* ========================================
   SUCCESS OVERLAY - Cart Animation
   Clear Feedback for 40+ Users
   ======================================== */

.smf-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: smf-overlay-in 0.3s ease;
}

@keyframes smf-overlay-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.smf-cart-success {
    background: var(--mp-white);
    border-radius: var(--mp-border-radius-lg);
    padding: 48px 40px;
    text-align: center;
    max-width: 480px;
    margin: 20px;
    animation: smf-success-pop 0.4s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

@keyframes smf-success-pop {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

.smf-cart-success-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: smf-check-bounce 0.5s ease 0.2s;
}

@keyframes smf-check-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.smf-cart-success-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #065f46;
    margin: 0 0 8px 0;
}

.smf-cart-success-subtitle {
    font-size: 1rem;
    color: #374151;
    margin: 0 0 24px 0;
    font-weight: 500;
}

/* Items Animation Container */
.smf-cart-success-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 24px 0;
    padding: 20px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: var(--mp-border-radius);
}

.smf-cart-success-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: smf-item-fly-in 0.5s ease forwards;
    opacity: 0;
}

.smf-cart-success-item:first-child {
    animation-delay: 0.3s;
}

.smf-cart-success-item:last-child {
    animation-delay: 0.5s;
}

@keyframes smf-item-fly-in {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.smf-cart-success-thumb {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--mp-white);
    border: 2px solid var(--mp-gray-200);
    padding: 4px;
}

.smf-cart-success-item-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--mp-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: var(--mp-border-radius-full);
}

.smf-cart-success-item:first-child .smf-cart-success-item-label {
    background: var(--mp-primary);
}

.smf-cart-success-item:last-child .smf-cart-success-item-label {
    background: #059669;
}

.smf-cart-success-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1f2937;
    max-width: 100px;
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.smf-cart-success-plus {
    font-size: 2rem;
    font-weight: 800;
    color: #d97706;
    animation: smf-plus-pop 0.3s ease 0.4s forwards;
    opacity: 0;
}

@keyframes smf-plus-pop {
    0% { opacity: 0; transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { opacity: 1; transform: scale(1); }
}

/* Persistent Success Message */
.smf-cart-success-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #dcfce7;
    border: 2px solid #86efac;
    border-radius: var(--mp-border-radius-sm);
    margin-bottom: 24px;
    font-size: 1rem;
    font-weight: 700;
    color: #166534;
}

.smf-cart-success-message-icon {
    font-size: 1.25rem;
}

.smf-cart-success-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.smf-cart-success-btn {
    flex: 1;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--mp-border-radius);
    cursor: pointer;
    transition: var(--mp-transition);
    text-decoration: none;
    text-align: center;
}

.smf-cart-success-btn.continue {
    background: var(--mp-gray-100);
    border: 2px solid var(--mp-gray-300);
    color: #374151;
}

.smf-cart-success-btn.continue:hover {
    background: var(--mp-gray-200);
    border-color: var(--mp-gray-400);
}

.smf-cart-success-btn.checkout {
    background: linear-gradient(135deg, #059669, #047857);
    border: none;
    color: var(--mp-white);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
}

.smf-cart-success-btn.checkout:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5);
}
/* Legacy Product Actions - Kept for backward compatibility */
.smf-product-actions {
    display: none;
}

/* Success Toast Notification */
.smf-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: #166534;
    color: var(--mp-white);
    border-radius: var(--mp-border-radius);
    box-shadow: var(--mp-shadow-xl);
    z-index: 99999;
    animation: smf-toast-in 0.3s ease;
}

.smf-toast.hiding {
    animation: smf-toast-out 0.3s ease forwards;
}

@keyframes smf-toast-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes smf-toast-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.smf-toast-icon {
    font-size: 1.25rem;
}

.smf-toast-message {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ========================================
   LOADING SPINNER
   ======================================== */

.smf-loading-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    z-index: 10;
    align-items: center;
    justify-content: center;
    border-radius: var(--mp-border-radius);
    min-height: 200px;
}

.smf-loading-overlay.active {
    display: flex;
}

.smf-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.smf-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--mp-gray-200);
    border-top-color: var(--mp-primary);
    border-radius: 50%;
    animation: smf-spin 0.8s linear infinite;
}

@keyframes smf-spin {
    to { transform: rotate(360deg); }
}

.smf-loading-text {
    font-size: 0.9rem;
    color: var(--mp-gray-500);
    font-weight: 500;
}

/* ========================================
   NO RESULTS - LEAD GENERATION CARD
   ======================================== */

.smf-no-results-card {
    background: linear-gradient(135deg, #fefce8, #fef9c3);
    border: 1px solid #fde047;
    border-radius: var(--mp-border-radius-lg);
    padding: 40px;
    text-align: center;
}

.smf-no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.smf-no-results-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mp-gray-800);
    margin: 0 0 12px 0;
}

.smf-no-results-text {
    font-size: 1rem;
    color: var(--mp-gray-600);
    margin: 0 0 32px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Lead Form */
.smf-lead-form {
    max-width: 400px;
    margin: 0 auto;
}

.smf-lead-form-group {
    margin-bottom: 16px;
}

.smf-lead-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: var(--mp-font-family);
    color: var(--mp-gray-800);
    background: var(--mp-white);
    border: 1px solid var(--mp-gray-300);
    border-radius: var(--mp-border-radius-sm);
    transition: var(--mp-transition);
    outline: none;
}

.smf-lead-input:hover {
    border-color: var(--mp-gray-400);
}

.smf-lead-input:focus {
    border-color: var(--mp-primary);
    box-shadow: 0 0 0 3px rgba(var(--mp-primary-rgb), 0.15);
}

.smf-lead-input::placeholder {
    color: var(--mp-gray-400);
}

.smf-lead-submit {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--mp-font-family);
    color: var(--mp-white);
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    border-radius: var(--mp-border-radius);
    cursor: pointer;
    transition: var(--mp-transition-slow);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.smf-lead-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.smf-lead-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.smf-lead-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: var(--mp-border-radius);
    padding: 20px;
    text-align: center;
}

.smf-lead-success-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.smf-lead-success-text {
    font-size: 1rem;
    color: #166534;
    margin: 0;
    font-weight: 500;
}

.smf-lead-criteria {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.smf-lead-criteria-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--mp-white);
    border: 1px solid var(--mp-gray-200);
    border-radius: var(--mp-border-radius-full);
    font-size: 0.8rem;
    color: var(--mp-gray-600);
}

.smf-lead-criteria-badge strong {
    color: var(--mp-gray-800);
}

/* ========================================
   RESPONSIVE - Industrial Product Cards
   ======================================== */

@media (max-width: 900px) {
    .smf-product-card {
        grid-template-columns: 160px 1fr;
        grid-template-rows: auto auto auto;
    }

    .smf-card-image {
        width: 160px;
        height: 140px;
        grid-row: 1;
    }

    .smf-card-specs {
        grid-column: 2;
        grid-row: 1;
        padding: 16px 20px;
    }

    .smf-card-action {
        grid-column: 1 / -1;
        grid-row: 2;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-left: none;
        border-top: 1px solid #e2e8f0;
        padding: 16px 20px;
    }

    .smf-card-price {
        text-align: left;
    }

    .smf-card-buttons {
        flex-direction: row;
        gap: 8px;
    }

    .smf-system-bar {
        grid-row: 3;
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 16px;
    }

    .smf-system-equation {
        flex: 1 1 100%;
        justify-content: center;
    }

    .smf-system-btn {
        flex: 1 1 100%;
    }
}

@media (max-width: 640px) {
    .smf-finder-container {
        padding: 1.5rem 1rem;
    }

    .smf-product-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }

    .smf-card-image {
        width: 100%;
        height: 160px;
        grid-column: 1;
        grid-row: 1;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .smf-card-specs {
        grid-column: 1;
        grid-row: 2;
        padding: 16px;
        text-align: center;
    }

    .smf-card-title {
        font-size: 1rem;
    }

    .smf-spec-grid {
        justify-content: center;
        grid-template-columns: repeat(2, 1fr);
    }

    .smf-spec-item {
        text-align: center;
    }

    .smf-card-action {
        grid-column: 1;
        grid-row: 3;
        flex-direction: column;
        align-items: stretch;
        border-top: 1px solid #e2e8f0;
        padding: 16px;
    }

    .smf-card-price {
        text-align: center;
    }

    .smf-card-buttons {
        flex-direction: column;
    }

    .smf-system-bar {
        grid-row: 4;
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .smf-system-equation {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .smf-system-thumb {
        width: 32px;
        height: 32px;
    }

    .smf-system-driver-name {
        max-width: 120px;
        font-size: 0.75rem;
    }

    .smf-system-total {
        font-size: 1rem;
    }

    .smf-system-btn {
        width: 100%;
        padding: 12px 16px;
    }

    /* Success Overlay - Mobile */
    .smf-cart-success {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .smf-cart-success-icon {
        font-size: 3.5rem;
    }

    .smf-cart-success-title {
        font-size: 1.25rem;
    }

    .smf-cart-success-items {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    .smf-cart-success-thumb {
        width: 56px;
        height: 56px;
    }

    .smf-cart-success-plus {
        font-size: 1.25rem;
    }

    .smf-cart-success-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .smf-cart-success-btn {
        width: 100%;
        padding: 12px 16px;
    }

    .smf-no-results-card {
        padding: 1.5rem 1rem;
    }

    .smf-no-results-title {
        font-size: 1.15rem;
    }

    .smf-toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

/* Responsive - Form Controls */
@media (max-width: 640px) {
    .smf-control-panel {
        padding: 24px 20px;
    }

    .smf-finder-title {
        font-size: 1.5rem;
    }

    /* Stepper Input - Mobile */
    .smf-stepper-btn {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .smf-stepper-input {
        width: 110px;
        height: 48px;
        font-size: 1.25rem;
    }

    .smf-torque-hint {
        font-size: 0.75rem;
    }

    .smf-nema-group {
        justify-content: center;
    }

    .smf-nema-btn {
        min-width: 56px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* ========================================
   SINGLE PRODUCT - Compatible Driver Widget
   Theme-native design for 40+ professionals
   Uses inherit for typography to match theme
   ======================================== */

.smf-cdw-wrapper {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Visual Plus Sign - Bundle Indicator */
.smf-cdw-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #fef3c7;
    border: 2px solid #fbbf24;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
    color: #92400e;
    margin: 0 auto 4px;
}

.smf-cdw-widget {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.smf-cdw-label {
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.smf-cdw-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.smf-cdw-box:hover {
    border-color: var(--mp-primary);
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(var(--mp-primary-rgb), 0.12);
}

.smf-cdw-thumb {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.smf-cdw-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.smf-cdw-name {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.smf-cdw-price {
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--mp-primary);
}

.smf-cdw-price del {
    color: #94a3b8;
    font-weight: 400;
    font-size: 0.85rem;
}

.smf-cdw-price ins {
    text-decoration: none;
}

.smf-cdw-arrow {
    font-size: 1.2rem;
    color: #94a3b8;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.smf-cdw-box:hover .smf-cdw-arrow {
    color: var(--mp-primary);
    transform: translateX(3px);
}

/* Bundle Add Button - Orange Theme */
.smf-cdw-bundle-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--mp-primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.smf-cdw-bundle-btn:hover {
    background: var(--mp-primary-dark);
}

.smf-cdw-bundle-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success/Error Message */
.smf-cdw-message {
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 6px;
    line-height: 1.4;
}

.smf-cdw-message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.smf-cdw-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Responsive */
@media (max-width: 480px) {
    .smf-cdw-box {
        padding: 10px 12px;
        gap: 10px;
    }

    .smf-cdw-thumb {
        width: 44px;
        height: 44px;
    }

    .smf-cdw-name {
        font-size: 0.85rem;
    }

    .smf-cdw-price {
        font-size: 0.9rem;
    }

    .smf-cdw-bundle-btn {
        font-size: 0.75rem;
        padding: 9px 14px;
    }
}

/* ========================================
   COMPARISON MODULE
   Checkbox, Floating Dock, Modal
   ======================================== */

/* Comparison Checkbox on Card */
.smf-compare-checkbox {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
    user-select: none;
}

.smf-compare-checkbox:hover {
    border-color: var(--mp-primary-light);
    background: #fff;
}

.smf-compare-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.smf-compare-check {
    width: 12px;
    height: 12px;
    stroke: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.smf-compare-checkbox.checked .smf-compare-box {
    background: var(--mp-primary);
    border-color: var(--mp-primary);
}

.smf-compare-checkbox.checked .smf-compare-check {
    opacity: 1;
}

.smf-compare-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.smf-compare-checkbox.checked .smf-compare-label {
    color: var(--mp-primary-dark);
}

/* Card Image needs relative positioning */
.smf-card-image {
    position: relative;
}

/* ========================================
   FLOATING COMPARISON DOCK
   Fixed bottom, slide-up animation
   ======================================== */

.smf-compare-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.smf-compare-dock.visible {
    transform: translateY(0);
}

.smf-compare-dock-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 20px;
}

.smf-compare-dock-items {
    display: flex;
    align-items: center;
    gap: 12px;
}

.smf-compare-dock-slot {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
}

.smf-compare-dock-empty {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
}

.smf-compare-dock-item {
    position: relative;
    width: 100%;
    height: 100%;
}

.smf-compare-dock-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.smf-compare-dock-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.smf-compare-dock-remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.smf-compare-dock-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.smf-compare-dock-clear {
    background: none;
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    padding: 8px 12px;
    transition: color 0.2s ease;
}

.smf-compare-dock-clear:hover {
    color: #ef4444;
}

.smf-compare-dock-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--mp-font-family);
    color: #fff;
    background: #6366f1;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.smf-compare-dock-btn:hover:not(:disabled) {
    background: #4f46e5;
}

.smf-compare-dock-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   COMPARISON MODAL (The Matrix)
   Clean table with difference highlighting
   ======================================== */

.smf-compare-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.smf-compare-overlay.active {
    opacity: 1;
}

.smf-compare-overlay.closing {
    opacity: 0;
}

.smf-compare-modal {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.smf-compare-overlay.active .smf-compare-modal {
    transform: translateY(0);
}

.smf-compare-overlay.closing .smf-compare-modal {
    transform: translateY(-20px);
}

/* Modal Header */
.smf-compare-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.smf-compare-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.smf-compare-modal-close {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.smf-compare-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Modal Body */
.smf-compare-modal-body {
    flex: 1;
    overflow: hidden;
    padding: 0;
}

.smf-compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Comparison Table */
.smf-compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.smf-compare-th,
.smf-compare-td {
    padding: 16px 20px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.smf-compare-th-label,
.smf-compare-label {
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    min-width: 120px;
}

.smf-compare-th {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

/* Product Header in Table */
.smf-compare-product-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.smf-compare-product-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.smf-compare-product-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    text-align: center;
    line-height: 1.3;
    max-width: 150px;
}

.smf-compare-add-btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--mp-font-family);
    color: #fff;
    background: #6366f1;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.smf-compare-add-btn:hover {
    background: #4f46e5;
    color: #fff;
}

.smf-compare-add-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.smf-compare-add-btn.added {
    background: #10b981;
}

/* Table Rows */
.smf-compare-row {
    transition: background-color 0.2s ease;
}

.smf-compare-row:hover {
    background: #f8fafc;
}

/* Difference Highlighting */
.smf-compare-row.has-difference {
    background: #fffbeb;
}

.smf-compare-row.has-difference:hover {
    background: #fef3c7;
}

.smf-compare-td {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

/* Modal Footer */
.smf-compare-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.smf-compare-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

.smf-compare-hint-icon {
    font-size: 1rem;
}

/* ========================================
   COMPARISON MODULE - Responsive
   ======================================== */

@media (max-width: 768px) {
    .smf-compare-dock-inner {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }

    .smf-compare-dock-items {
        width: 100%;
        justify-content: center;
    }

    .smf-compare-dock-slot {
        width: 48px;
        height: 48px;
    }

    .smf-compare-dock-actions {
        width: 100%;
        justify-content: space-between;
    }

    .smf-compare-dock-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 16px;
    }

    .smf-compare-modal {
        max-height: 85vh;
        border-radius: 12px 12px 0 0;
        margin-top: auto;
    }

    .smf-compare-modal-header {
        padding: 16px 20px;
    }

    .smf-compare-modal-title {
        font-size: 1.1rem;
    }

    .smf-compare-th,
    .smf-compare-td {
        padding: 12px 14px;
    }

    .smf-compare-product-img {
        width: 60px;
        height: 60px;
    }

    .smf-compare-product-name {
        font-size: 0.75rem;
        max-width: 100px;
    }

    .smf-compare-add-btn {
        padding: 6px 12px;
        font-size: 0.65rem;
    }

    .smf-compare-td {
        font-size: 0.85rem;
    }

    .smf-compare-label {
        font-size: 0.75rem;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .smf-compare-checkbox {
        padding: 4px 8px;
    }

    .smf-compare-box {
        width: 16px;
        height: 16px;
    }

    .smf-compare-label {
        font-size: 0.65rem;
    }

    .smf-compare-dock-slot {
        width: 40px;
        height: 40px;
    }

    .smf-compare-dock-remove {
        width: 16px;
        height: 16px;
        font-size: 12px;
        top: -4px;
        right: -4px;
    }
}


/* ========================================
   WHATSAPP LEAD GENERATOR BUTTON
   Green WhatsApp branding (#25D366)
   ======================================== */

.smf-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--mp-font-family);
    color: #ffffff;
    background: #25D366;
    border: none;
    border-radius: var(--mp-border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.smf-whatsapp-btn:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.smf-whatsapp-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.smf-whatsapp-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* WhatsApp button loading state */
.smf-whatsapp-btn .smf-btn-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: smf-spin 0.6s linear infinite;
    margin-right: 8px;
}

/* Lead success state with WhatsApp link */
.smf-lead-success a {
    color: #25D366;
    font-weight: 600;
    text-decoration: underline;
}

.smf-lead-success a:hover {
    color: #20bd5a;
}


/* ========================================
   ADVANCED OPTIONS PANEL
   Collapsible panel for special features
   ======================================== */

.smf-advanced-toggle-wrap {
    margin-top: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.smf-advanced-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--mp-font-family);
    color: var(--mp-gray-600);
    background: transparent;
    border: 1px dashed var(--mp-gray-300);
    border-radius: var(--mp-border-radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.smf-advanced-toggle:hover {
    border-color: var(--mp-primary);
    color: var(--mp-primary);
    background: rgba(var(--mp-primary-rgb), 0.05);
}

.smf-advanced-toggle.active {
    border-color: var(--mp-primary);
    color: var(--mp-primary);
    background: rgba(var(--mp-primary-rgb), 0.08);
}

.smf-advanced-toggle-icon {
    font-size: 1rem;
}

.smf-advanced-toggle-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.smf-advanced-toggle.active .smf-advanced-toggle-arrow {
    transform: rotate(180deg);
}

/* Advanced Panel */
.smf-advanced-panel {
    background: var(--mp-gray-50);
    border: 1px solid var(--mp-gray-200);
    border-radius: var(--mp-border-radius);
    padding: 24px;
    margin-bottom: 24px;
    overflow: hidden;
}

/* Feature Checkboxes Group */
.smf-features-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.smf-feature-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--mp-white);
    border: 2px solid var(--mp-gray-200);
    border-radius: var(--mp-border-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.smf-feature-checkbox:hover {
    border-color: var(--mp-primary-light);
    background: rgba(var(--mp-primary-rgb), 0.03);
}

.smf-feature-checkbox.checked {
    border-color: var(--mp-primary);
    background: rgba(var(--mp-primary-rgb), 0.08);
}

.smf-feature-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.smf-feature-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--mp-white);
    border: 2px solid var(--mp-gray-300);
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.smf-feature-check {
    width: 14px;
    height: 14px;
    stroke: var(--mp-white);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.smf-feature-checkbox.checked .smf-feature-box {
    background: var(--mp-primary);
    border-color: var(--mp-primary);
}

.smf-feature-checkbox.checked .smf-feature-check {
    opacity: 1;
}

.smf-feature-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--mp-gray-700);
}

.smf-feature-checkbox.checked .smf-feature-label {
    color: var(--mp-primary-dark);
}

/* ========================================
   SPECIAL FEATURE BADGES (Product Card)
   Dark gray badges for mechanical features
   ======================================== */

.smf-feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.smf-feature-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #ffffff;
    background: #334155;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Feature-specific colors (optional differentiation) */
.smf-feature-badge[data-feature="reduktor"] {
    background: #334155;
}

.smf-feature-badge[data-feature="enkoder"] {
    background: #475569;
}

.smf-feature-badge[data-feature="fren"] {
    background: #1e293b;
}

/* ========================================
   ADVANCED OPTIONS - Responsive
   ======================================== */

@media (max-width: 640px) {
    .smf-advanced-toggle {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .smf-advanced-panel {
        padding: 16px;
    }

    .smf-features-group {
        flex-direction: column;
        gap: 8px;
    }

    .smf-feature-checkbox {
        width: 100%;
        padding: 10px 16px;
    }

    .smf-feature-label {
        font-size: 0.9rem;
    }

    .smf-feature-badges {
        gap: 4px;
    }

    .smf-feature-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
}


/* ========================================
   EXACT MATCH BADGE & CARD HIGHLIGHTING
   Green gradient badge for perfect matches
   ======================================== */

/* Exact Match Badge - Positioned in TOP-RIGHT corner of card image */
.smf-exact-match-badge {
    position: absolute;
    top: 0;
    left: auto;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #059669);
    border-top-right-radius: 8px;
    border-bottom-left-radius: 8px;
    border-top-left-radius: 0;
    border-bottom-right-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    z-index: 6;
    animation: smf-exact-pulse 2s ease-in-out infinite;
}

@keyframes smf-exact-pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.6);
    }
}

/* Exact Match Card - Green border highlight */
.smf-product-card.exact-match {
    border: 2px solid #10b981;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.smf-product-card.exact-match:hover {
    border-color: #059669;
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.25);
}

/* Exact match card image area - subtle green tint */
.smf-product-card.exact-match .smf-card-image {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

/* Exact match card action area - subtle green tint */
.smf-product-card.exact-match .smf-card-action {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

/* ========================================
   EXACT MATCH - Responsive
   ======================================== */

@media (max-width: 640px) {
    .smf-exact-match-badge {
        top: 0;
        right: 0;
        padding: 4px 8px;
        font-size: 0.6rem;
    }
}
