/**
 * Cosmex Core - UI & Layout Enhancements
 * Beauty & Professional Cosmetics Theme
 */

:root {
    --cosmex-gold: #c5a059;
    --cosmex-gold-dark: #a67c35;
    --cosmex-dark: #121212;
    --cosmex-gray-bg: #f9f9fb;
    --cosmex-border: #e6e6e8;
    --cosmex-text-muted: #666666;
    --cosmex-success: #198754;
    --cosmex-radius: 8px;
}

/* ==========================================================================
   B2B Pricing & Badges
   ========================================================================== */
.cosmex-b2b-tag {
    display: inline-flex;
    align-items: center;
    background: #111827;
    color: #f3f4f6;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.cosmex-retail-price {
    color: var(--cosmex-text-muted) !important;
    font-size: 0.9em;
    margin-right: 6px;
}

.cosmex-salon-price {
    color: var(--cosmex-gold-dark) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.cosmex-salon-verified-badge {
    margin: 15px 0;
}

.cosmex-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==========================================================================
   Salon Exclusive Banner (Single Product & Catalog)
   ========================================================================== */
.cosmex-salon-exclusive-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
    color: #ffffff;
    padding: 20px;
    border-radius: var(--cosmex-radius);
    margin: 20px 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.cosmex-banner-icon {
    flex-shrink: 0;
    color: var(--cosmex-gold);
    margin-top: 2px;
}

.cosmex-banner-content h4 {
    margin: 0 0 6px 0;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
}

.cosmex-banner-content p {
    margin: 0 0 12px 0;
    color: #a1a1aa;
    font-size: 0.88rem;
    line-height: 1.45;
}

.cosmex-btn-link {
    display: inline-block;
    color: var(--cosmex-gold) !important;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: color 0.2s ease, transform 0.2s ease;
}

.cosmex-btn-link:hover {
    color: #ffffff !important;
    transform: translateX(3px);
}

.cosmex-btn-salon-exclusive {
    background-color: #27272a !important;
    color: #ffffff !important;
    font-size: 0.82rem !important;
    padding: 8px 14px !important;
    border-radius: 4px !important;
    letter-spacing: 0.02em;
}

.cosmex-btn-salon-exclusive:hover {
    background-color: var(--cosmex-gold-dark) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Professional Salon Registration Form
   ========================================================================== */
.cosmex-registration-wrapper {
    max-width: 680px;
    margin: 30px auto;
    padding: 35px;
    background: #ffffff;
    border: 1px solid var(--cosmex-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.cosmex-reg-header {
    text-align: center;
    margin-bottom: 28px;
}

.cosmex-tag {
    display: inline-block;
    background: #fdf6ec;
    color: var(--cosmex-gold-dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.cosmex-reg-header h2 {
    font-size: 1.65rem;
    font-weight: 700;
    color: #18181b;
    margin: 0 0 10px 0;
}

.cosmex-reg-header p {
    color: var(--cosmex-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.cosmex-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
}

.cosmex-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cosmex-col-70 {
    flex: 0 0 calc(70% - 8px);
}

.cosmex-col-30 {
    flex: 0 0 calc(30% - 8px);
}

.cosmex-form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #3f3f46;
    margin-bottom: 6px;
}

.cosmex-form-group input {
    width: 100%;
    padding: 11px 14px;
    font-size: 0.95rem;
    border: 1px solid #d4d4d8;
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cosmex-form-group input:focus {
    outline: none;
    border-color: var(--cosmex-gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

.cosmex-form-submit {
    margin-top: 24px;
}

.cosmex-submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: #18181b;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.cosmex-submit-btn:hover {
    background: var(--cosmex-gold-dark);
}

.cosmex-notice {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 22px;
    font-size: 0.92rem;
    line-height: 1.45;
}

.cosmex-notice-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.cosmex-notice-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.cosmex-notice-info {
    background: #f0f9ff;
    color: #075985;
    border: 1px solid #bae6fd;
}

/* ==========================================================================
   Checkout Paraguay Fields
   ========================================================================== */
.woocommerce-checkout .form-row.cosmex-field-ruc {
    width: 68% !important;
    float: left !important;
    clear: left !important;
}

.woocommerce-checkout .form-row.cosmex-field-dv {
    width: 28% !important;
    float: right !important;
    clear: none !important;
}

.woocommerce-checkout .form-row.cosmex-doc-type-field,
.woocommerce-checkout .form-row.cosmex-field-ci,
.woocommerce-checkout .form-row.cosmex-field-razon-social {
    width: 100% !important;
    clear: both !important;
}

@media (max-width: 640px) {
    .cosmex-form-row {
        flex-direction: column;
        gap: 14px;
    }
    .cosmex-col-70, .cosmex-col-30 {
        flex: 1 1 100%;
    }
}

/* ==========================================================================
   B2B Bulk Order Form (Pedido Rápido)
   ========================================================================== */
.cosmex-bulk-order-wrap {
    background: #ffffff;
    border: 1px solid var(--cosmex-border);
    border-radius: var(--cosmex-radius);
    padding: 30px;
    margin: 30px 0 80px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.cosmex-bulk-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.cosmex-bulk-header p {
    color: var(--cosmex-text-muted);
    margin-bottom: 20px;
}

.cosmex-bulk-filter-bar {
    margin-bottom: 20px;
}

.cosmex-bulk-filter-bar input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d4d4d8;
    border-radius: 6px;
    font-size: 1rem;
}

.cosmex-bulk-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.cosmex-bulk-table th,
.cosmex-bulk-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f2;
    vertical-align: middle;
}

.cosmex-bulk-table th {
    background: #f8f9fa;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #4b5563;
}

.cosmex-badge-step {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.cosmex-bulk-qty-input {
    width: 80px !important;
    text-align: center;
    padding: 6px 8px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    font-weight: 600;
}

.cosmex-bulk-summary-bar {
    position: sticky;
    bottom: 20px;
    background: #18181b;
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    z-index: 99;
}

.cosmex-summary-info {
    display: flex;
    gap: 25px;
    font-size: 1.05rem;
}

.cosmex-summary-info strong {
    color: var(--cosmex-gold);
}

.cosmex-btn-gold {
    background: var(--cosmex-gold) !important;
    color: #121212 !important;
    font-weight: 700 !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.cosmex-btn-gold:hover {
    background: var(--cosmex-gold-dark) !important;
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .cosmex-bulk-summary-bar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ==========================================================================
   Cosmex Admin Menu Notification Bubble (WordPress Factory Blue)
   ========================================================================== */
#adminmenu li.toplevel_page_cosmex-dashboard .awaiting-mod,
#adminmenu a[href*="cosmex"] .awaiting-mod {
    background-color: #2271b1 !important;
    color: #ffffff !important;
}

#adminmenu li.toplevel_page_cosmex-dashboard .awaiting-mod .pending-count,
#adminmenu a[href*="cosmex"] .awaiting-mod .pending-count {
    color: #ffffff !important;
    background: transparent !important;
}

#adminmenu li.toplevel_page_cosmex-dashboard:hover .awaiting-mod,
#adminmenu li.toplevel_page_cosmex-dashboard.current .awaiting-mod {
    background-color: #135e96 !important;
}

