/* ============================================================
   EV Nexo Mart — Public CSS v2.1
   Lightweight — never overrides theme layout.
   ============================================================ */

/* ---- Shared Button Base ---- */
.evnm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 18px;
    border: none;
    border-radius: 5px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: opacity 0.18s, transform 0.1s, background 0.18s;
    line-height: 1.4;
    white-space: nowrap;
    vertical-align: middle;
}

.evnm-btn:hover  { opacity: 0.87; }
.evnm-btn:active { transform: scale(0.97); }
.evnm-btn:focus  { outline: 2px solid rgba(127,84,179,0.5); outline-offset: 2px; }

/* Demo / video */
.evnm-btn-demo  { background: #1a73e8; color: #fff !important; }
/* PDF / brochure */
.evnm-btn-pdf   { background: #e8533a; color: #fff !important; }
/* Tax invoice */
.evnm-btn-invoice { background: #2c7a4b; color: #fff !important; }
/* Smart cart */
.evnm-btn-smart-cart {
    background: #7f54b3;
    color: #fff !important;
    min-width: 190px;
    font-size: 0.95rem;
    padding: 11px 24px;
}
.evnm-btn-smart-cart:disabled { opacity: 0.6; cursor: not-allowed; }
/* Distributor */
.evnm-btn-distributor { background: #f0a500; color: #fff !important; padding: 10px 22px; }
/* Submit quote */
.evnm-btn-submit-quote {
    background: #7f54b3;
    color: #fff !important;
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}
/* Loop add-to-cart */
.evnm-btn-cart { background: #7f54b3; color: #fff !important; }

/* ---- Shop / Loop Actions ---- */
.evnm-loop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 2px 4px;
    justify-content: center;
}

/* Loop Badges */
.evnm-loop-badge {
    width: 100%;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 2px;
    letter-spacing: 0.2px;
}

.evnm-badge-price {
    background: #fff8e1;
    color: #7a5c00;
    border: 1px solid #ffe082;
}

.evnm-badge-available {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

.evnm-badge-save {
    background: #fce4ec;
    color: #880e4f;
    border: 1px solid #f48fb1;
}

.evnm-badge-sbo {
    background: #e0f2f1;
    color: #00695c;
    border: 1px solid #80cbc4;
}

/* Special Bulk Order table (product page) */
.evnm-special-bulk-table {
    margin-bottom: 18px;
}

.evnm-special-bulk-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.evnm-special-bulk-table th,
.evnm-special-bulk-table td {
    padding: 8px 12px;
    border: 1px solid #e8e8e8;
    text-align: left;
}

.evnm-special-bulk-table thead th {
    background: #e0f2f1;
    color: #00695c;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.evnm-sbo-row:hover td { background: #f1faf9; }

.evnm-sbo-hint {
    margin: 8px 0 0;
    font-size: 0.78rem;
    color: #777;
    font-style: italic;
}

/* ---- Product Page: Resource Buttons ---- */
.evnm-resource-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

/* ---- Product Actions Wrapper ---- */
.evnm-product-actions-wrap {
    margin: 18px 0;
}

/* ---- Bulk Pricing Table ---- */
.evnm-bulk-pricing-table { margin-bottom: 18px; }

.evnm-section-title {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #2c2c2c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-left: 3px solid #7f54b3;
    padding-left: 8px;
}

.evnm-bulk-pricing-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    border-radius: 6px;
    overflow: hidden;
}

.evnm-bulk-pricing-table th,
.evnm-bulk-pricing-table td {
    padding: 8px 12px;
    border: 1px solid #e8e8e8;
    text-align: left;
}

.evnm-bulk-pricing-table thead th {
    background: #f5f5f5;
    font-weight: 700;
    color: #444;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.evnm-tier-standard td { color: #888; font-style: italic; }
.evnm-tier-row:hover td { background: #f9f6ff; }
.evnm-tier-price { font-weight: 700; color: #2c2c2c; }

.evnm-tier-tag {
    background: #f5f5f5;
    color: #888;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.78rem;
}

.evnm-tier-save {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
}

.evnm-tier-dist {
    color: #7a5c00;
    font-style: italic;
    font-size: 0.85rem;
}

.evnm-distributor-row td {
    background: #fff8e1 !important;
}

/* ---- Live Calculator ---- */
.evnm-live-calculator {
    background: #f9f9fb;
    border: 1px solid #e4e4e8;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.evnm-calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}
.evnm-calc-row:last-child { border-bottom: none; }

.evnm-calc-label { color: #666; }
.evnm-calc-value { font-weight: 600; color: #2c2c2c; }
.evnm-calc-total .evnm-calc-value { font-size: 1.15rem; color: #7f54b3; }

.evnm-discount-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
}

.evnm-savings { color: #2e7d32 !important; }

/* ---- Distributor Section ---- */
.evnm-distributor-section { margin-bottom: 16px; }

.evnm-distributor-box {
    background: linear-gradient(135deg, #fff8e1 0%, #fffde7 100%);
    border: 1px solid #ffe082;
    border-left: 4px solid #f0a500;
    border-radius: 6px;
    padding: 18px 20px;
    text-align: center;
}

.evnm-distributor-box h4 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: #7a5c00;
}

.evnm-distributor-box p {
    margin: 0 0 8px;
    color: #5d4037;
    font-size: 0.9rem;
}

/* ---- Smart Cart Wrap ---- */
.evnm-smart-cart-wrap { margin-top: 10px; }

.evnm-cart-feedback {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

.evnm-cart-feedback.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.evnm-cart-feedback.error {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* ---- Quote Modal ---- */
.evnm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.56);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.evnm-modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 28px 32px;
    max-width: 520px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.evnm-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.7rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
    transition: color 0.15s;
}
.evnm-modal-close:hover { color: #333; }

.evnm-modal-content h3 {
    margin: 0 0 20px;
    font-size: 1.2rem;
    color: #2c2c2c;
}

.evnm-quote-form .evnm-form-row { margin-bottom: 14px; }

.evnm-quote-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.855rem;
    color: #444;
}

.evnm-quote-form input[type="text"],
.evnm-quote-form input[type="email"],
.evnm-quote-form input[type="tel"],
.evnm-quote-form input[type="number"],
.evnm-quote-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.evnm-quote-form input:focus,
.evnm-quote-form textarea:focus {
    border-color: #7f54b3;
    outline: none;
    box-shadow: 0 0 0 2px rgba(127,84,179,0.14);
}

.evnm-quote-form textarea { resize: vertical; }

.evnm-form-feedback {
    padding: 10px 14px;
    border-radius: 5px;
    font-size: 0.9rem;
}
.evnm-form-feedback.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.evnm-form-feedback.error   { background: #fdecea; color: #c62828; border: 1px solid #ef9a9a; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .evnm-loop-actions        { flex-direction: column; align-items: stretch; }
    .evnm-loop-actions .evnm-btn { text-align: center; justify-content: center; }
    .evnm-modal-content       { padding: 20px 16px; }
    .evnm-bulk-pricing-table table { font-size: 0.8rem; }
    .evnm-resource-buttons    { flex-direction: column; }
    .evnm-bulk-pricing-table th,
    .evnm-bulk-pricing-table td { padding: 6px 8px; }
}

/* ============================================================
   v2.2 — Vendor / Marketplace Buttons
   ============================================================ */

/* Vendor buttons section */
.evnm-vendor-buttons {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.evnm-vendor-btns-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.5px;
    margin: 0 0 10px;
}

.evnm-vendor-btns-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* WhatsApp */
.evnm-btn-whatsapp {
    background: #25D366;
    color: #fff !important;
}

/* Callback */
.evnm-btn-callback {
    background: #1a73e8;
    color: #fff !important;
}

/* Bulk Order */
.evnm-btn-bulk-order {
    background: #7f54b3;
    color: #fff !important;
}

/* OEM */
.evnm-btn-oem {
    background: #e8533a;
    color: #fff !important;
}

/* Quote button */
.evnm-btn-quote {
    background: #f0a500;
    color: #fff !important;
}

/* Modal title dynamic update */
.evnm-modal-title-text { color: #2c2c2c; }

/* Request Quote button inline with smart cart */
.evnm-smart-cart-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}

.evnm-smart-cart-wrap .evnm-cart-feedback {
    width: 100%;
    flex-basis: 100%;
}

@media (max-width: 640px) {
    .evnm-vendor-btns-row { flex-direction: column; }
    .evnm-smart-cart-wrap { flex-direction: column; align-items: stretch; }
    .evnm-btn-smart-cart, .evnm-btn-quote { text-align: center; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════════════
   OEM PRICE CALCULATOR — frontend  v2.16
═══════════════════════════════════════════════════════════════════════ */
.evnm-oem-calculator {
    background: #f8f7ff;
    border: 1.5px solid #d6c8f5;
    border-radius: 10px;
    overflow: hidden;
    margin: 18px 0;
}
.evnm-oem-calc-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #6c3caa 0%, #4a2080 100%);
    color: #fff;
}
.evnm-oem-calc-icon { font-size: 1.6rem; flex-shrink: 0; }
.evnm-oem-calc-header h4 { margin: 0 0 2px; font-size: 1rem; color: #fff; }
.evnm-oem-calc-header p  { margin: 0; font-size: 0.8rem; opacity: 0.85; }

.evnm-oem-calc-body { padding: 18px 20px; }

.evnm-oem-field { margin-bottom: 14px; }
.evnm-oem-field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}
.evnm-oem-select {
    width: 100%;
    max-width: 360px;
    padding: 8px 10px;
    border: 1.5px solid #d0d0e8;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #fff;
    color: #1a1a2e;
}
.evnm-oem-select:focus { outline: none; border-color: #6c3caa; }

.evnm-oem-number-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.evnm-oem-number-input {
    width: 100px;
    padding: 8px 10px;
    border: 1.5px solid #d0d0e8;
    border-radius: 6px;
    font-size: 0.9rem;
}
.evnm-oem-unit {
    font-size: 0.82rem;
    color: #666;
    font-weight: 600;
}

.evnm-oem-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem;
}
.evnm-oem-toggle-label input[type="checkbox"] { display: none; }
.evnm-oem-toggle-cost {
    font-size: 0.78rem;
    font-weight: 700;
    color: #2e7d32;
}

.evnm-oem-no-opts {
    color: #888;
    font-size: 0.88rem;
    font-style: italic;
    margin: 0 0 12px;
}

.evnm-oem-calc-result {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1.5px solid #d6c8f5;
}
.evnm-oem-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.evnm-oem-result-label { font-size: 0.85rem; color: #555; font-weight: 600; }
.evnm-oem-result-price { font-size: 1.35rem; font-weight: 800; color: #4a2080; }
.evnm-oem-result-note  { font-size: 0.74rem; color: #888; margin: 4px 0 12px; font-style: italic; }

.evnm-btn-oem-enquiry {
    background: linear-gradient(135deg, #6c3caa 0%, #4a2080 100%);
    color: #fff;
    border: none;
    padding: 11px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: opacity 0.15s;
}
.evnm-btn-oem-enquiry:hover { opacity: 0.88; }

/* No-price resource buttons spacing */
.evnm-no-price-resources { margin: 14px 0; }

/* ═══════════════════════════════════════════════════════════════════════
   REQUEST TO BUY + GO TO CART  v2.16.1
═══════════════════════════════════════════════════════════════════════ */

/* Request to Buy button — prominent, shown on no-price products */
.evnm-no-price-cta {
    margin: 16px 0 8px;
}
.evnm-btn-request-to-buy {
    background: linear-gradient(135deg, #1a1a2e 0%, #4a2080 100%);
    color: #fff !important;
    border: none;
    padding: 14px 28px;
    border-radius: 7px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-block;
    letter-spacing: 0.3px;
    transition: opacity 0.15s, transform 0.1s;
    text-decoration: none;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}
.evnm-btn-request-to-buy:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* Go to Cart button — appears after successful add-to-cart */
.evnm-smart-cart-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.evnm-btn-go-to-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 20px;
    background: #fff;
    color: #4a2080 !important;
    border: 2px solid #6c3caa;
    border-radius: 7px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.evnm-btn-go-to-cart:hover {
    background: #6c3caa;
    color: #fff !important;
}
