/*
Theme Name: Woodmart Child
Theme URI: https://woodmart.xtemos.com/
Description: Woodmart Child Theme for Bhaarath Mart / Bhaarath Depot
Author: XTemos
Author URI: https://woodmart.xtemos.com/
Template: woodmart
Version: 1.0.0
Text Domain: woodmart
*/

/* ==========================================================================
   BHAARATH DEPOT AUTHENTICATION SYSTEM (CLEAN NATIVE 3-TAB DESIGN)
   ========================================================================== */
.bd-auth-wrapper {
    max-width: 660px;
    margin: 30px auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Horizontal 3 Tabs: Customer Login | Vendor Login | Registration */
.bd-auth-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.bd-auth-tab {
    flex: 1;
    padding: 16px 14px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.bd-auth-tab:hover {
    color: #1e293b;
    background: #f1f5f9;
}

.bd-auth-tab.bd-tab-active {
    color: #BE3B10;
    background: #ffffff;
    border-bottom: 2px solid #BE3B10;
    font-weight: 700;
}

/* Tab Panels */
.bd-auth-panel {
    display: none;
    padding: 30px;
}

.bd-auth-panel.bd-panel-active {
    display: block;
    animation: bdFadeIn 0.25s ease;
}

@keyframes bdFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Registration Sub-selector (Buy vs Sell) */
.bd-reg-subtabs {
    display: flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 24px;
}

.bd-reg-subtab {
    flex: 1;
    padding: 10px 14px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bd-reg-subtab:hover {
    color: #0f172a;
}

.bd-reg-subtab.bd-reg-subtab-active {
    background: #ffffff;
    color: #BE3B10;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.bd-reg-box {
    display: none;
}

.bd-reg-box.bd-reg-box-active {
    display: block;
}

/* Form Styling with Curved Corners (Not pill, natural widths) */
.bd-form-clean {
    margin: 0;
    padding: 0;
}

.bd-form-clean .bd-form-row {
    margin-bottom: 16px;
}

.bd-form-clean label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

/* Subtle curved corners for inputs (8px) without altering natural width */
.bd-form-clean input.input-text,
.bd-form-clean input[type="text"],
.bd-form-clean input[type="email"],
.bd-form-clean input[type="password"],
.bd-form-clean input[type="tel"] {
    width: 100%;
    height: 44px;
    padding: 8px 14px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bd-form-clean input:focus {
    border-color: #BE3B10;
    outline: none;
    box-shadow: 0 0 0 3px rgba(190, 59, 16, 0.1);
}

.bd-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 0;
}

.bd-bank-fieldset {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 18px;
    margin-top: 18px;
    margin-bottom: 18px;
    background: #fafafa;
}

.bd-bank-heading {
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 12px;
}

.bd-form-submit-row {
    margin-top: 22px;
    margin-bottom: 0;
}

/* Customer CTA Button (Theme Accent / Rust-Red) */
#bd-cust-reg-form button[type="submit"],
#bd-panel-cust-login button[type="submit"] {
    width: 100%;
    height: 46px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    background-color: #BE3B10 !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#bd-cust-reg-form button[type="submit"]:hover,
#bd-panel-cust-login button[type="submit"]:hover {
    background-color: #9c2e0b !important;
}

/* Vendor CTA Button (Distinct Deep Slate / Corporate Navy) */
#bd-vendor-reg-form button[type="submit"],
#bd-panel-vendor-login button[type="submit"] {
    width: 100%;
    height: 46px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    background-color: #1e293b !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

#bd-vendor-reg-form button[type="submit"]:hover,
#bd-panel-vendor-login button[type="submit"]:hover {
    background-color: #0f172a !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

/* Feedback Messages */
.bd-feedback-msg {
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

.bd-feedback-ok { color: #16a34a; }
.bd-feedback-err { color: #dc2626; }
.bd-feedback-info { color: #2563eb; }

/* Privacy & Sensitive Data Removal */
.woocommerce-MyAccount-navigation-link--downloads,
.woodmart-account-link--downloads,
.dokan-store-info .dokan-bank-name,
.dokan-store-info .dokan-bank-iban,
.dokan-store-info .dokan-company-name,
.dokan-bank-iban, .dokan-bank-swift, .dokan-routing-number,
[name*="iban"], [name*="swift"], [name*="routing_number"] {
    display: none !important;
}

@media (max-width: 600px) {
    .bd-auth-tabs {
        flex-direction: column;
    }
    .bd-auth-tab {
        text-align: left;
        padding: 12px 16px;
    }
    .bd-auth-panel {
        padding: 20px 16px;
    }
    .bd-form-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Remove duplicate sale flash badge rendered outside .product-labels */
.product-labels ~ span.onsale,
.product-labels + span.onsale,
.wd-carousel-inner > span.onsale,
.product-element-top > span.onsale:not(.product-label),
.woocommerce-product-gallery > span.onsale {
    display: none !important;
}

/* Hide duplicate sale badge outside .product-labels */
.product-labels ~ span.onsale,
.product-labels + span.onsale,
.wd-carousel-inner > span.onsale,
.product-element-top > span.onsale:not(.product-label),
.woocommerce-product-gallery > span.onsale {
    display: none !important;
}

/* Place Order button size to 25% */
#place_order,
.woocommerce-checkout #place_order,
#order_review #place_order,
.woocommerce-checkout-payment #place_order {
    width: 25% !important;
    min-width: 170px !important;
    margin-top: 15px !important;
}

@media (max-width: 768px) {
    #place_order,
    .woocommerce-checkout #place_order,
    #order_review #place_order,
    .woocommerce-checkout-payment #place_order {
        width: 50% !important;
        min-width: 160px !important;
    }
}
