/*
 * Cangmang B2B Catalog Mode - Frontend Styles
 * MOTOWOLF + Rigid Industries dark theme
 */

/* ============================================
   BUTTONS
   ============================================ */

.cmb2b-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    line-height: 1;
}

.cmb2b-btn-primary {
    background: #FF6B00;
    color: #FFFFFF;
    border-color: #FF6B00;
}
.cmb2b-btn-primary:hover {
    background: #E55E00;
    border-color: #E55E00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
    color: #FFFFFF;
}

.cmb2b-btn-outline {
    background: transparent;
    color: #FF6B00;
    border-color: #FF6B00;
}
.cmb2b-btn-outline:hover {
    background: #FF6B00;
    color: #FFFFFF;
}

.cmb2b-btn-whatsapp {
    background: #25D366;
    color: #FFFFFF;
    border-color: #25D366;
}
.cmb2b-btn-whatsapp:hover {
    background: #1EB954;
    border-color: #1EB954;
    color: #FFFFFF;
}

.cmb2b-btn-sm {
    font-size: 12px;
    padding: 8px 16px;
}

.cmb2b-btn-large {
    padding: 16px 40px;
    font-size: 16px;
    width: 100%;
    max-width: 400px;
}

/* ============================================
   SINGLE PRODUCT PAGE ACTIONS
   ============================================ */

.cmb2b-single-product-actions {
    margin: 24px 0 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cmb2b-single-product-actions .cmb2b-btn {
    padding: 14px 28px;
}

/* Wholesale info box */
.cmb2b-wholesale-info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #222222;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #FF6B00;
    margin-top: 20px;
}

.cmb2b-wholesale-info-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.cmb2b-wholesale-info-text strong {
    display: block;
    color: #FF6B00;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    margin-bottom: 6px;
}

.cmb2b-wholesale-info-text p {
    color: #999999;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   SHOP/ARCHIVE PAGE ACTIONS
   ============================================ */

.cmb2b-loop-actions {
    padding: 0 16px 16px;
    text-align: center;
}

.cmb2b-loop-actions .cmb2b-btn {
    width: 100%;
    padding: 8px 12px;
}

/* ============================================
   QUOTE LIST PAGE
   ============================================ */

.cmb2b-quote-list-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.cmb2b-quote-list-wrapper h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #FFFFFF;
    margin-bottom: 24px;
}

.cmb2b-quote-count {
    font-size: 16px;
    color: #999999;
    font-weight: 400;
}

.cmb2b-quote-empty {
    text-align: center;
    padding: 60px 20px;
}

.cmb2b-quote-empty h2 {
    color: #FFFFFF;
    margin-bottom: 16px;
}

.cmb2b-quote-empty p {
    color: #999999;
    margin-bottom: 24px;
}

/* Quote Items */
.cmb2b-quote-items {
    margin-bottom: 40px;
}

.cmb2b-quote-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #222222;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    border-top: 3px solid transparent;
}

.cmb2b-quote-item:hover {
    border-top-color: #FF6B00;
}

.cmb2b-quote-item-image {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #1A1A1A;
}

.cmb2b-quote-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cmb2b-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #666;
    font-size: 11px;
}

.cmb2b-quote-item-details {
    flex: 1;
}

.cmb2b-quote-item-details h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #FFFFFF;
    margin: 0;
}

.cmb2b-quote-item-details h4 a {
    color: #FFFFFF;
    text-decoration: none;
}

.cmb2b-quote-item-details h4 a:hover {
    color: #FF6B00;
}

.cmb2b-quote-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cmb2b-quote-item-quantity label {
    color: #999999;
    font-size: 13px;
}

.cmb2b-qty-input {
    width: 70px;
    padding: 8px 10px;
    background: #1A1A1A;
    border: 1px solid #2A2A2A;
    color: #FFFFFF;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.cmb2b-qty-input:focus {
    border-color: #FF6B00;
    outline: none;
}

.cmb2b-quote-item-remove {
    flex-shrink: 0;
}

.cmb2b-remove-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.3s;
    border-radius: 4px;
}

.cmb2b-remove-btn:hover {
    color: #E63946;
    background: rgba(230, 57, 70, 0.1);
}

/* ============================================
   QUOTE FORM
   ============================================ */

.cmb2b-quote-form-section {
    background: #222222;
    border-radius: 8px;
    padding: 32px;
    border-top: 3px solid #FF6B00;
}

.cmb2b-quote-form-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #FFFFFF;
    margin-top: 0;
    margin-bottom: 24px;
}

.cmb2b-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
}

.cmb2b-form-field {
    flex: 1;
    margin-bottom: 16px;
}

.cmb2b-form-field label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #CCCCCC;
    margin-bottom: 6px;
}

.cmb2b-form-field input[type="text"],
.cmb2b-form-field input[type="email"],
.cmb2b-form-field input[type="tel"],
.cmb2b-form-field input[type="number"],
.cmb2b-form-field select,
.cmb2b-form-field textarea {
    width: 100%;
    padding: 12px 14px;
    background: #1A1A1A;
    border: 1px solid #2A2A2A;
    color: #FFFFFF;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.cmb2b-form-field input:focus,
.cmb2b-form-field select:focus,
.cmb2b-form-field textarea:focus {
    border-color: #FF6B00;
    outline: none;
}

.cmb2b-form-field input::placeholder,
.cmb2b-form-field textarea::placeholder {
    color: #666666;
}

.cmb2b-form-field select option {
    background: #1A1A1A;
    color: #FFFFFF;
}

.cmb2b-form-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.cmb2b-form-note {
    font-size: 13px;
    color: #999999;
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */

.cmb2b-whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9998;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: cmb2b-wa-pulse 2s infinite;
    text-decoration: none;
}

.cmb2b-whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

@keyframes cmb2b-wa-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70%  { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============================================
   NAV QUOTE BADGE
   ============================================ */

.cmb2b-nav-quote a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cmb2b-quote-badge {
    background: #FF6B00;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    line-height: 1.2;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */

.cmb2b-toast {
    position: fixed;
    bottom: 100px;
    right: 25px;
    background: #222222;
    color: #FFFFFF;
    padding: 14px 24px;
    border-radius: 8px;
    border-left: 4px solid #FF6B00;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.cmb2b-toast.cmb2b-toast-show {
    opacity: 1;
    transform: translateX(0);
}

.cmb2b-toast.cmb2b-toast-success {
    border-left-color: #25D366;
}

.cmb2b-toast.cmb2b-toast-error {
    border-left-color: #E63946;
}

/* ============================================
   SUCCESS PAGE
   ============================================ */

.cmb2b-success-message {
    text-align: center;
    padding: 60px 20px;
}

.cmb2b-success-message .cmb2b-success-icon {
    width: 64px;
    height: 64px;
    background: #FF6B00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.cmb2b-success-message h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.cmb2b-success-message p {
    color: #999999;
    margin-bottom: 24px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .cmb2b-single-product-actions {
        flex-direction: column;
    }

    .cmb2b-single-product-actions .cmb2b-btn {
        width: 100%;
        justify-content: center;
    }

    .cmb2b-form-row {
        flex-direction: column;
        gap: 0;
    }

    .cmb2b-quote-item {
        flex-wrap: wrap;
        gap: 12px;
    }

    .cmb2b-quote-item-image {
        width: 50px;
        height: 50px;
    }

    .cmb2b-quote-item-details {
        flex: 1;
        min-width: 120px;
    }

    .cmb2b-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cmb2b-btn-large {
        max-width: 100%;
    }

    .cmb2b-whatsapp-float {
        bottom: 75px;
    }

    .cmb2b-toast {
        left: 16px;
        right: 16px;
        bottom: 90px;
    }
}

@media (max-width: 480px) {
    .cmb2b-quote-form-section {
        padding: 20px 16px;
    }

    .cmb2b-wholesale-info {
        flex-direction: column;
        gap: 10px;
    }
}
