/* ─── Wholesale Page Styles ─── */

/* Hero */
.bl-ws-hero { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%); color: #fff; padding: 80px 0 60px; position: relative; overflow: hidden; }
.bl-ws-hero::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 30% 50%, rgba(59,130,246,0.15) 0%, transparent 60%); }
.bl-ws-hero-content { position: relative; z-index: 1; max-width: 700px; }
.bl-ws-hero-badge { display: inline-block; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); padding: 6px 16px; border-radius: 20px; font-size: 14px; font-weight: 600; margin-bottom: 20px; backdrop-filter: blur(10px); }
.bl-ws-hero h1 { font-size: 42px; font-weight: 800; line-height: 1.2; margin: 0 0 16px; }
.bl-gradient-text { background: linear-gradient(135deg, #60a5fa, #34d399); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.bl-ws-hero-sub { font-size: 18px; color: rgba(255,255,255,0.8); margin: 0 0 30px; line-height: 1.6; }
.bl-ws-hero-stats { display: flex; gap: 30px; margin-bottom: 30px; }
.bl-ws-stat { text-align: center; }
.bl-ws-stat strong { display: block; font-size: 24px; font-weight: 800; color: #60a5fa; }
.bl-ws-stat span { font-size: 13px; color: rgba(255,255,255,0.6); }
.bl-ws-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.bl-aff-hero-stats .bl-aff-stat { text-align: center; }
.bl-aff-hero-stats .bl-aff-stat strong { display: block; font-size: 24px; font-weight: 800; color: #60a5fa; }
.bl-aff-hero-stats .bl-aff-stat span { font-size: 13px; color: rgba(255,255,255,0.6); }

/* Buttons */
.bl-btn-outline { background: transparent; border: 2px solid currentColor; color: #fff; padding: 12px 28px; border-radius: 8px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all .2s; font-size: 15px; }
.bl-btn-outline:hover { background: rgba(255,255,255,0.1); }
.bl-btn-secondary { background: #e2e8f0; color: #0f172a; border: none; padding: 12px 28px; border-radius: 8px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all .2s; font-size: 15px; justify-content: center; }
.bl-btn-secondary:hover { background: #cbd5e1; }

/* Benefits */
.bl-ws-benefits { padding: 60px 0; background: #f8fafc; }
.bl-section-title { text-align: center; font-size: 32px; font-weight: 800; margin: 0 0 12px; color: #0f172a; }
.bl-section-sub { text-align: center; color: #64748b; margin: 0 0 40px; font-size: 16px; }
.bl-ws-benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 40px; }
.bl-ws-benefit-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 28px; text-align: center; transition: all .3s; }
.bl-ws-benefit-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.bl-ws-benefit-icon { font-size: 40px; display: block; margin-bottom: 16px; }
.bl-ws-benefit-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: #0f172a; }
.bl-ws-benefit-card p { font-size: 14px; color: #64748b; margin: 0; line-height: 1.5; }

/* Pricing Plans */
.bl-ws-pricing { padding: 60px 0; }
.bl-ws-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 700px; margin: 0 auto 40px; }
.bl-ws-plan-card { background: #fff; border: 2px solid #e2e8f0; border-radius: 16px; padding: 32px; position: relative; transition: all .3s; cursor: pointer; }
.bl-ws-plan-card:hover { border-color: #3b82f6; transform: translateY(-3px); box-shadow: 0 10px 25px rgba(59,130,246,0.12); }
.bl-ws-plan-card.bl-card-active { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.2), 0 12px 30px rgba(37,99,235,0.15); transform: translateY(-2px); }
.bl-ws-plan-recommended { border-color: #3b82f6; box-shadow: 0 8px 30px rgba(59,130,246,0.15); }
.bl-ws-plan-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; padding: 4px 16px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.bl-ws-plan-header h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; color: #0f172a; }
.bl-ws-price-amount { font-size: 36px; font-weight: 800; color: #0f172a; }
.bl-ws-price-period { font-size: 16px; color: #64748b; }
.bl-ws-plan-features { list-style: none; padding: 0; margin: 20px 0; }
.bl-ws-plan-features li { padding: 8px 0; font-size: 14px; color: #334155; border-bottom: 1px solid #f1f5f9; }
.bl-ws-plan-features li:last-child { border: none; }
.bl-ws-select-plan.active { background: #3b82f6; color: #fff; border-color: #3b82f6; }

/* Registration Form */
.bl-ws-register-form-wrap { max-width: 600px; margin: 0 auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 36px; }
.bl-ws-register-form-wrap h3 { font-size: 22px; font-weight: 700; margin: 0 0 24px; color: #0f172a; text-align: center; }
.bl-ws-form .bl-form-group { margin-bottom: 16px; }
.bl-ws-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: #0f172a; }
.bl-ws-form input { width: 100%; padding: 12px 16px; border: 2px solid #e2e8f0; border-radius: 8px; font-size: 15px; transition: border-color .2s; box-sizing: border-box; }
.bl-ws-form input:focus { border-color: #3b82f6; outline: none; }
.bl-ws-form .bl-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bl-ws-plan-summary { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px; margin: 20px 0; }
.bl-ws-plan-summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; }
.bl-ws-summary-price { color: #16a34a; font-size: 20px; }
.bl-ws-form-note { text-align: center; font-size: 13px; color: #64748b; margin-top: 12px; }

/* Login Section */
.bl-ws-login-section { padding: 60px 0; background: #f8fafc; }
.bl-ws-login-card { max-width: 420px; margin: 0 auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 36px; text-align: center; }
.bl-ws-login-card h2 { font-size: 24px; font-weight: 700; margin: 0 0 8px; }
.bl-ws-login-card p { color: #64748b; margin: 0 0 24px; }
.bl-ws-login-card .bl-form-group { text-align: left; }
.bl-ws-login-note { margin-top: 16px; font-size: 13px; color: #64748b; }
.bl-ws-login-note a { color: #25D366; font-weight: 600; }

/* FAQ */
.bl-ws-faq { padding: 60px 0; }
.bl-ws-faq-list { max-width: 700px; margin: 30px auto 0; }
.bl-ws-faq-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.bl-ws-faq-item summary { padding: 16px 20px; font-weight: 600; font-size: 15px; cursor: pointer; color: #0f172a; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.bl-ws-faq-item summary::after { content: '+'; font-size: 20px; font-weight: 700; color: #3b82f6; }
.bl-ws-faq-item[open] summary::after { content: '−'; }
.bl-ws-faq-item p { padding: 0 20px 16px; color: #64748b; font-size: 14px; line-height: 1.6; margin: 0; }

/* ─── Dashboard Styles ─── */
.bl-ws-dashboard { padding: 30px 0 60px; }
.bl-ws-dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 16px; }
.bl-ws-dash-header h1 { font-size: 28px; font-weight: 800; margin: 0; color: #0f172a; }
.bl-ws-plan-badge { margin: 8px 0 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bl-badge-lifetime { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; padding: 4px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.bl-badge-yearly { background: #dbeafe; color: #1d4ed8; padding: 4px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.bl-plan-expiry { font-size: 13px; color: #64748b; }

/* Tabs */
.bl-ws-tabs { display: flex; gap: 0; border-bottom: 2px solid #e2e8f0; margin-bottom: 24px; }
.bl-ws-tab { padding: 12px 24px; border: none; background: none; font-weight: 600; font-size: 15px; cursor: pointer; color: #64748b; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all .2s; display: flex; align-items: center; gap: 8px; }
.bl-ws-tab.active { color: #3b82f6; border-bottom-color: #3b82f6; font-weight: 700; }
.bl-ws-tab:hover { color: #0f172a; }
.bl-ws-cart-tab-badge { background: #ef4444; color: #fff; padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.bl-ws-tab-content { display: none; }
.bl-ws-tab-content.active { display: block; }

/* Products Grid */
.bl-ws-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.bl-ws-product-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; transition: all .3s; }
.bl-ws-product-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.08); transform: translateY(-2px); }
.bl-ws-product-img { width: 100%; height: 160px; object-fit: cover; background: #f1f5f9; }
.bl-ws-product-body { padding: 16px; }
.bl-ws-product-title { font-size: 14px; font-weight: 700; color: #0f172a; margin: 0 0 10px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bl-ws-product-specs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.bl-ws-product-specs span { background: #f1f5f9; padding: 2px 8px; border-radius: 4px; font-size: 11px; color: #64748b; font-weight: 600; }
.bl-ws-product-prices { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; }
.bl-ws-retail-price { font-size: 13px; color: #94a3b8; text-decoration: line-through; }
.bl-ws-wholesale-price { font-size: 20px; font-weight: 800; color: #16a34a; }
.bl-ws-savings { font-size: 11px; color: #ef4444; font-weight: 700; }
.bl-ws-add-btn { width: 100%; }

/* Cart Section */
.bl-ws-cart-section { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
.bl-ws-cart-items { min-height: 200px; }
.bl-ws-cart-item { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; margin-bottom: 12px; }
.bl-ws-cart-item-img { width: 70px; height: 55px; object-fit: cover; border-radius: 6px; background: #f1f5f9; }
.bl-ws-cart-item-info { flex: 1; }
.bl-ws-cart-item-title { font-size: 14px; font-weight: 600; color: #0f172a; margin: 0 0 4px; }
.bl-ws-cart-item-price { font-size: 15px; font-weight: 700; color: #16a34a; }
.bl-ws-cart-item-qty { display: flex; align-items: center; gap: 8px; }
.bl-ws-qty-btn { width: 30px; height: 30px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; cursor: pointer; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.bl-ws-qty-btn:hover { background: #f1f5f9; }
.bl-ws-qty-val { font-weight: 700; font-size: 15px; min-width: 20px; text-align: center; }
.bl-ws-cart-item-remove { background: none; border: none; color: #dc2626; cursor: pointer; font-size: 18px; padding: 4px; }
.bl-ws-cart-summary { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; position: sticky; top: 100px; height: fit-content; }
.bl-ws-moq-bar { margin-bottom: 20px; }
.bl-ws-moq-label { font-weight: 700; font-size: 14px; color: #0f172a; margin-bottom: 8px; }
.bl-ws-moq-progress { height: 10px; background: #e2e8f0; border-radius: 5px; overflow: hidden; }
.bl-ws-moq-fill { height: 100%; background: linear-gradient(90deg, #ef4444, #f59e0b, #16a34a); border-radius: 5px; transition: width .4s ease; }
.bl-ws-moq-text { font-size: 13px; color: #64748b; margin-top: 6px; }
.bl-ws-cart-total-row { display: flex; justify-content: space-between; padding: 16px 0; border-top: 2px solid #e2e8f0; font-size: 18px; font-weight: 700; margin-bottom: 16px; }

/* Orders List */
.bl-ws-order-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 20px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.bl-ws-order-num { font-weight: 700; font-size: 16px; color: #0f172a; }
.bl-ws-order-meta { font-size: 13px; color: #64748b; }
.bl-ws-order-total { font-weight: 700; font-size: 18px; color: #16a34a; }

/* Loading */
.bl-loading { text-align: center; padding: 40px; color: #64748b; font-size: 15px; }

/* Cart Header Button */
.bl-cart-btn { position: relative; background: none; border: none; cursor: pointer; padding: 8px; color: #0f172a; display: flex; align-items: center; }
.bl-cart-badge { position: absolute; top: 0; right: 0; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.bl-cart-badge:empty, .bl-cart-badge[data-count="0"] { display: none; }

/* Cart Drawer */
.bl-cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 9998; backdrop-filter: blur(4px); }
.bl-cart-drawer { position: fixed; top: 0; right: -400px; width: 380px; max-width: 90vw; height: 100vh; background: #fff; z-index: 9999; display: flex; flex-direction: column; transition: right .3s ease; box-shadow: -4px 0 20px rgba(0,0,0,0.1); }
.bl-cart-drawer.open { right: 0; }
.bl-cart-drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid #e2e8f0; }
.bl-cart-drawer-header h3 { margin: 0; font-size: 18px; font-weight: 700; }
.bl-cart-drawer-close { background: none; border: none; font-size: 28px; cursor: pointer; color: #64748b; padding: 0; line-height: 1; }
.bl-cart-drawer-body { flex: 1; overflow-y: auto; padding: 16px; }
.bl-cart-empty { text-align: center; padding: 40px 20px; color: #64748b; }
.bl-cart-empty p { margin: 12px 0; }
.bl-cart-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.bl-cart-item-img { width: 60px; height: 45px; object-fit: cover; border-radius: 6px; background: #f1f5f9; }
.bl-cart-item-info { flex: 1; }
.bl-cart-item-info h4 { margin: 0; font-size: 13px; font-weight: 600; color: #0f172a; line-height: 1.3; }
.bl-cart-item-price { font-size: 14px; font-weight: 700; color: #16a34a; }
.bl-cart-item-remove { background: none; border: none; color: #dc2626; cursor: pointer; font-size: 20px; padding: 4px 8px; }
.bl-cart-drawer-footer { padding: 16px 20px; border-top: 2px solid #e2e8f0; }
.bl-cart-total-row { display: flex; justify-content: space-between; font-size: 18px; margin-bottom: 12px; }
.bl-cart-total-row strong { color: #0f172a; }
.bl-cart-checkout-btn { text-align: center; }

/* Card Footer Buttons */
.bl-card-footer-btns { display: flex; gap: 8px; align-items: center; }
.bl-btn-cart { padding: 8px 12px !important; min-width: auto !important; font-size: 16px !important; background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 6px; cursor: pointer; transition: all .2s; flex-shrink: 0; }
.bl-btn-cart:hover { background: #e2e8f0; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
	.bl-ws-hero h1 { font-size: 28px; }
	.bl-ws-hero-stats { gap: 16px; }
	.bl-ws-hero-ctas { flex-direction: column; }
	.bl-ws-form .bl-form-row { grid-template-columns: 1fr; }
	.bl-ws-cart-section { grid-template-columns: 1fr; }
	.bl-ws-tabs { overflow-x: auto; }
	.bl-ws-plans { grid-template-columns: 1fr; }
	.bl-ws-dash-header h1 { font-size: 22px; }
}
