/* 14-brands.css — Brand page (header, hero, tabs, products, edit modal) and brand signup.
   Part of the old css/styles.css (lines 3154–3553); unused rules since removed.
   The number is the load order: later files override earlier ones, exactly
   as later lines in the single file used to. Keep them linked in order. */

/* ── Brand Page Header — transparent over hero, opaque on scroll ── */
#brandPageHeader {
  background: transparent !important;
  box-shadow: none !important;
  color: white !important;
}
#brandPageHeader .back-arrow,
#brandPageHeader span {
  color: white !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
#brandPageHeader.scrolled {
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
  color: #333 !important;
}
#brandPageHeader.scrolled .back-arrow,
#brandPageHeader.scrolled span {
  color: #333 !important;
  text-shadow: none !important;
}

/* ═══════════════════════════════════════════════════════
   BRAND PROFILE PAGE STYLES (merged from brand-profile.html)
   ═══════════════════════════════════════════════════════ */

/* ── Brand Page Hero ── */
#brandPage { padding:0 !important; top:0 !important; overflow-y:auto !important; padding-bottom:0 !important; }
.bp-hero-cover { height:256px; background:linear-gradient(160deg,#19378C 0%,#0f2460 100%); position:relative; overflow:visible; }
.bp-hero-pattern { position:absolute; inset:0; background-image:radial-gradient(circle at 20% 50%,rgba(255,255,255,.06) 0%,transparent 60%),radial-gradient(circle at 80% 20%,rgba(255,255,255,.04) 0%,transparent 50%); }
.bp-logo-wrap { position:absolute; bottom:-70px; left:50%; transform:translateX(-50%); z-index:100; }
.bp-logo-ring { width:140px; height:140px; border-radius:36px; background:white; display:flex; align-items:center; justify-content:center; box-shadow:0 10px 36px rgba(0,0,0,.28); overflow:hidden; border:4px solid white; }
.bp-info { text-align:center; padding:84px 1.5rem 1.25rem; background:white; }
.bp-info h1 { font-size:1.5rem; font-weight:800; color:#1a1a2e; margin-bottom:.35rem; letter-spacing:-.3px; }
.bp-verified-badge { display:inline-flex; align-items:center; gap:4px; background:#dde4f0; color:#19378C; border:1px solid #b8c4e0; border-radius:20px; padding:4px 12px; font-size:11px; font-weight:700; margin-bottom:.8rem; letter-spacing:.3px; }
.bp-verified-badge .material-symbols-rounded { font-size:13px; }
.bp-category-tag { display:inline-block; background:#eef1f9; color:#19378C; border-radius:20px; padding:3px 12px; font-size:11px; font-weight:600; margin-bottom:.85rem; text-transform:capitalize; }
.bp-description { font-size:.87rem; color:#555; line-height:1.6; max-width:400px; margin:0 auto .4rem; overflow-wrap:break-word; }
.bp-desc-toggle { background:none; border:none; color:#19378C; font-size:.78rem; font-weight:600; cursor:pointer; margin:0 auto .75rem; padding:0; display:block; }
.bp-stats { display:flex; justify-content:center; border-top:1px solid #f0f0f0; padding-top:1rem; margin-top:.5rem; }
.bp-stat { flex:1; text-align:center; padding:0 .5rem; border-right:1px solid #f0f0f0; }
.bp-stat:last-child { border-right:none; }
.bp-stat-num { font-size:1.2rem; font-weight:800; color:#19378C; }
.bp-stat-label { font-size:.7rem; color:#888; margin-top:2px; }

/* ── Contact strip ── */
.bp-contact-strip { display:flex; gap:.6rem; padding:.75rem 1rem; background:white; border-top:1px solid #f0f0f0; overflow-x:auto; scrollbar-width:none; }
.bp-contact-strip::-webkit-scrollbar { display:none; }
.contact-btn { display:inline-flex; align-items:center; gap:6px; padding:.55rem 1.1rem; border-radius:24px; font-size:.8rem; font-weight:600; border:none; cursor:pointer; white-space:nowrap; text-decoration:none; transition:all .2s; flex-shrink:0; }
.contact-btn .material-symbols-rounded { font-size:17px; }
.btn-whatsapp { background:#25d366; color:white; }
.btn-whatsapp:hover { background:#1ebe5c; }
.btn-location { background:#eef1f9; color:#19378C; border:1.5px solid #b8c4e0; }
.btn-social { background:#f7f7f7; color:#444; border:1.5px solid #eee; }
.btn-social:hover { background:#eee; }
.btn-call { background:#19378C; color:white; }
.btn-call:hover { background:#0f2460; }

/* ── Button spinner ── */
.bp-btn-spinner { display:inline-block; width:13px; height:13px; border:2px solid rgba(255,255,255,.35); border-top-color:#fff; border-radius:50%; animation:bpSpin .65s linear infinite; vertical-align:middle; flex-shrink:0; }
@keyframes bpSpin { to { transform:rotate(360deg); } }

/* ── Live badge on brand / home product cards ── */
/* ── Live badge on product cards ── */
.live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(17,17,17,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 3px 8px 3px 6px;
  border-radius: 20px;
  pointer-events: none;
  z-index: 4;
  border: 1px solid rgba(255,255,255,0.15);
}
.live-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff3b30;
  flex-shrink: 0;
  animation: liveDotPulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(255,59,48,0.7);
}
@keyframes liveDotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,59,48,0.7); }
  70%  { box-shadow: 0 0 0 5px rgba(255,59,48,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,59,48,0); }
}
.product-card.live-good {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.product-card.live-good:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* ── Owner manage strip ── */
.bp-manage-strip { background:#fff3cd; border-top:2px solid #ffc107; padding:.75rem 1rem; display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; }
.bp-manage-strip p { font-size:.8rem; color:#856404; font-weight:600; flex:1; }
.bp-manage-btn { padding:.5rem 1rem; border:none; border-radius:8px; font-size:.78rem; font-weight:600; cursor:pointer; background:#19378C; color:white; }

/* ── Tabs ── */
.bp-tab-bar { display:flex; background:white; border-top:1px solid #f0f0f0; border-bottom:1px solid #f0f0f0; overflow-x:auto; scrollbar-width:none; position:sticky; top:0; z-index:50; }
.bp-tab-bar::-webkit-scrollbar { display:none; }
.bp-tab-btn { flex:1; min-width:80px; padding:.75rem .5rem; text-align:center; font-size:.8rem; font-weight:600; color:#888; border:none; background:none; cursor:pointer; border-bottom:2px solid transparent; transition:all .2s; white-space:nowrap; }
.bp-tab-btn.active { color:#19378C; border-bottom-color:#19378C; }

/* ── Brand products grid ── */
.bp-products-section { padding:1rem; }
.bp-products-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:.75rem; align-items:start; }
/* Same look as the home feed's .product-card — kept as its own class so
   its click handler (opens the in-page product overlay, not the public
   detail page) stays untouched. */
.brand-product-card {
  background: #fff; border-radius: 0; padding: 0.3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06); cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column; align-items: stretch;
  min-width: 0; overflow: hidden;
  opacity:0; transform:translateY(16px);
}
.brand-product-card.show { opacity:1; transform:translateY(0); transition:opacity .35s,transform .35s; }
.brand-product-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.brand-product-card.live-good { box-shadow: 0 0 0 1.5px rgba(255,59,48,0.25), 0 2px 8px rgba(0,0,0,.07); }

.brand-product-card:hover .card-img-wrap img { transform:scale(1.04); }
.card-discount-badge { position:absolute; top:8px; right:8px; background:#f39c12; color:white; font-size:10px; font-weight:700; padding:3px 8px; border-radius:20px; }

/* "Sold" overlay badge — same placement/weight as .card-discount-badge,
   used on the seller's own goods cards (Makay table) since the home
   feed never shows sold items. */
.sold-badge {
  position: absolute; top: 8px; right: 8px;
  background: #e74c3c; color: white;
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.4px;
  z-index: 4;
}
.sold-overlay { position:absolute; inset:0; background:rgba(0,0,0,.45); display:flex; align-items:center; justify-content:center; }
.sold-overlay span { background:#e74c3c; color:white; padding:5px 14px; border-radius:20px; font-size:12px; font-weight:700; }
.card-body { padding: 0; display: flex; flex-direction: column; flex: 1; }
.card-name { font-size: 0.8rem; font-weight: 500; color: #1a1a2e; margin: 0 0 2px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-price-row { margin-top: auto; padding-top: 2px; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px; }
.card-price { font-size: 1rem; font-weight: 900; color: #19378C; letter-spacing: -0.3px; }
.bp-empty-state { text-align:center; padding:3rem 1.5rem; color:#aaa; grid-column:1/-1; }
.bp-empty-state .material-symbols-rounded { font-size:56px; opacity:.25; display:block; margin-bottom:.75rem; }

/* ── Edit brand modal ── */
#bpEditModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(0,0,0,0.45);
  align-items: flex-end;
  justify-content: center;
  transition: background 0.28s ease;
}
#bpEditModal.open { display: flex; }

/* Mobile: slide up from bottom, same as notifications panel */
.bp-edit-sheet {
  background: #fff;
  width: 100%;
  max-width: 560px;
  max-height: 88dvh;
  border-radius: 20px 20px 0 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: max(1.5rem, calc(1.5rem + env(safe-area-inset-bottom, 0px)));
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -6px 32px rgba(0,0,0,0.18);
}
#bpEditModal.open .bp-edit-sheet { transform: translateY(0); }

/* Drag handle — same as notif panel mobile handle */
.bp-edit-head {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 24px 1.25rem 0.75rem;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}
.bp-edit-head::before {
  content: '';
  display: block;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: #e0e0e0;
}
.bp-edit-title { font-weight: 800; font-size: 1rem; color: #1a1a2e; }
.bp-edit-sub   { font-size: .75rem; color: #888; margin-top: 2px; }
.bp-edit-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}
.bp-edit-close:hover { background: #f5f5f5; color: #333; }
.bp-edit-body  { padding: 1rem 1.25rem; }
.bp-edit-group { margin-bottom: 1rem; }
.bp-edit-group label { display: block; font-size: .82rem; font-weight: 600; color: #444; margin-bottom: .4rem; }
.bp-edit-group input, .bp-edit-group textarea, .bp-edit-group select {
  width: 100%;
  padding: .7rem .9rem;
  border: 1.5px solid #e0e4ed;
  border-radius: 10px;
  font-size: .9rem;
  font-family: Inter, sans-serif;
  outline: none;
  background: #fafbfd;
  transition: border-color 0.15s;
}
.bp-edit-group input:focus, .bp-edit-group textarea:focus, .bp-edit-group select:focus {
  border-color: #19378C;
}
.bp-edit-group textarea { resize: vertical; min-height: 90px; }
.bp-edit-social { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1rem; }
.bp-edit-logo-area {
  border: 2px dashed #c8d4e8;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  background: #fafbfd;
}
.bp-edit-logo-area input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.bp-edit-error {
  display: none;
  background: #fff0f0;
  border: 1px solid #ffc0c0;
  color: #c0392b;
  padding: .75rem 1rem;
  border-radius: 8px;
  font-size: .83rem;
  margin-bottom: 1rem;
}
.bp-edit-submit {
  width: 100%;
  padding: .95rem;
  background: linear-gradient(135deg, #19378C, #0f2460);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(25,55,140,.3);
  transition: opacity 0.15s;
}
.bp-edit-submit:disabled { opacity: .6; cursor: not-allowed; }

/* Desktop: show as centered modal */
@media (min-width: 601px) {
  #bpEditModal { align-items: center; }
  .bp-edit-sheet {
    border-radius: 20px;
    max-height: 85dvh;
    box-shadow: 0 8px 48px rgba(0,0,0,0.22);
    transform: translateY(24px) scale(0.98);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(.4,0,.2,1), opacity 0.28s ease;
  }
  #bpEditModal.open .bp-edit-sheet {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  .bp-edit-head::before { display: none; }
  .bp-edit-head { padding-top: 1.25rem; }
}

/* ═══════════════════════════════════════════════════════
   BRAND SIGNUP PAGE STYLES (merged from brand-signup.html)
   ═══════════════════════════════════════════════════════ */

/* ── Brand Signup Section ── */
#brandSignup { padding:0 !important; top:0 !important; overflow-y:auto !important; padding-bottom:0 !important; background:#f5f7fa; }
.bs-hero { margin-top:56px; background:linear-gradient(135deg,#19378C 0%,#0f2460 100%); padding:2.5rem 1.5rem 2rem; text-align:center; color:white; }
.bs-hero-badge { display:inline-flex; align-items:center; gap:6px; background:rgba(255,255,255,.15); backdrop-filter:blur(6px); border:1px solid rgba(255,255,255,.25); border-radius:20px; padding:5px 14px; font-size:12px; font-weight:600; margin-bottom:1rem; letter-spacing:.5px; }
.bs-hero h1 { font-size:1.6rem; font-weight:800; margin-bottom:.6rem; line-height:1.2; }
.bs-hero p { font-size:.9rem; opacity:.85; max-width:300px; margin:0 auto; line-height:1.5; }
.bs-perks { display:flex; gap:.6rem; padding:1rem 1rem 0; overflow-x:auto; scrollbar-width:none; }
.bs-perks::-webkit-scrollbar { display:none; }
.bs-perk-card { background:white; border-radius:12px; padding:.9rem 1rem; min-width:130px; flex-shrink:0; text-align:center; box-shadow:0 2px 8px rgba(0,0,0,.06); border:1.5px solid #eef0f5; }
.bs-perk-icon { width:40px; height:40px; border-radius:12px; background:linear-gradient(135deg,#e8f0ff,#c8d8ff); display:flex; align-items:center; justify-content:center; margin:0 auto .5rem; }
.bs-perk-icon .material-symbols-rounded { font-size:20px; color:#19378C; }
.bs-perk-card h4 { font-size:.78rem; font-weight:700; color:#1a1a2e; margin-bottom:3px; }
.bs-perk-card p { font-size:.7rem; color:#666; line-height:1.3; }
.bs-form-card { background:white; margin:1rem; border-radius:16px; padding:1.5rem; box-shadow:0 2px 12px rgba(0,0,0,.07); border:1px solid #eef0f5; }
.bs-section-head { font-size:1rem; font-weight:700; margin-bottom:1.25rem; color:#1a1a2e; display:flex; align-items:center; gap:8px; }
.bs-section-head .material-symbols-rounded { font-size:20px; color:#19378C; }
.bs-form-group { margin-bottom:1.1rem; }
.bs-form-group label { display:block; font-size:.82rem; font-weight:600; color:#444; margin-bottom:.4rem; }
.bs-form-group input,.bs-form-group textarea,.bs-form-group select { width:100%; padding:.7rem .9rem; border:1.5px solid #e0e4ed; border-radius:10px; font-size:.9rem; font-family:Inter,sans-serif; background:#fafbfd; color:#1a1a2e; outline:none; transition:border-color .2s,box-shadow .2s; }
.bs-form-group input:focus,.bs-form-group textarea:focus { border-color:#19378C; box-shadow:0 0 0 3px rgba(25,55,140,.1); }
.bs-form-group textarea { resize:vertical; min-height:90px; }
.bs-form-hint { font-size:.73rem; color:#888; margin-top:.3rem; }
.bs-logo-area { border:2px dashed #c8d4e8; border-radius:12px; padding:1.5rem; text-align:center; cursor:pointer; transition:all .2s; background:#fafbfd; position:relative; }
.bs-logo-area:hover { border-color:#19378C; background:#eef1f9; }
.bs-logo-area input[type=file] { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; height:100%; }
.bs-logo-preview-wrap { display:none; flex-direction:column; align-items:center; gap:.5rem; }
.bs-logo-preview-wrap img { width:80px; height:80px; border-radius:16px; object-fit:cover; box-shadow:0 4px 12px rgba(0,0,0,.12); }
.bs-social-row { display:grid; grid-template-columns:1fr 1fr; gap:.75rem; }
.bs-section-divider { height:1px; background:#eef0f5; margin:.5rem 0 1.25rem; }
.bs-cat-grid { display:grid; grid-template-columns:repeat(2,1fr); }
.bs-cat-tile { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; padding:.9rem .5rem; cursor:pointer; border:1px solid #eef0f5; transition:all .18s; font-size:.78rem; font-weight:600; color:#444; text-align:center; }
.bs-cat-tile:hover { background:#eef1f9; color:#19378C; }
.bs-cat-tile.selected { background:#19378C; color:#fff; border-color:#19378C; }
.bs-cat-icon { font-size:22px; color:#19378C; transition:color .18s; }
.bs-cat-tile.selected .bs-cat-icon { color:#fff; }
.bs-subcat-grid { display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; }
.bs-subcat-chip { display:flex; align-items:center; gap:5px; padding:.45rem .85rem; border:1.5px solid #dde2ef; border-radius:20px; font-size:.78rem; font-weight:500; cursor:pointer; transition:all .18s; background:#fafbfd; color:#555; user-select:none; }
.bs-subcat-chip:hover { border-color:#19378C; color:#19378C; background:#eef1f9; }
.bs-subcat-chip.selected { background:#19378C; color:#fff; border-color:#19378C; }
.bs-submit-btn { width:100%; padding:.95rem; background:linear-gradient(135deg,#19378C,#0f2460); color:white; border:none; border-radius:12px; font-size:1rem; font-weight:700; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; transition:all .2s; box-shadow:0 4px 14px rgba(25,55,140,.3); margin-top:.5rem; }
.bs-submit-btn:hover { transform:translateY(-1px); box-shadow:0 6px 20px rgba(25,55,140,.4); }
.bs-submit-btn:disabled { opacity:.6; cursor:not-allowed; transform:none; }
.bs-error-msg { display:none; background:#fff0f0; border:1px solid #ffc0c0; color:#c0392b; padding:.75rem 1rem; border-radius:8px; font-size:.83rem; margin-top:.75rem; }
.bs-error-msg.visible { display:block; }
.bs-info-card { text-align:center; padding:3rem 1.5rem; }
.bs-info-card .material-symbols-rounded { font-size:56px; color:#ddd; display:block; margin-bottom:1rem; }
.bs-info-card h2 { color:#1a1a2e; margin-bottom:.5rem; font-size:1.2rem; }
.bs-info-card p { color:#888; font-size:.88rem; margin-bottom:1.5rem; line-height:1.5; }
.bs-info-btn { display:inline-flex; align-items:center; gap:8px; padding:.8rem 2rem; background:#19378C; color:white; border:none; border-radius:10px; font-size:.9rem; font-weight:600; cursor:pointer; text-decoration:none; }
.bs-info-btn:hover { background:#0f2460; }
.bs-success-screen { display:none; text-align:center; padding:3rem 1.5rem; }
.bs-success-screen .bs-success-circle { width:90px; height:90px; border-radius:50%; background:linear-gradient(135deg,#27ae60,#1e8449); display:flex; align-items:center; justify-content:center; margin:0 auto 1.5rem; box-shadow:0 8px 24px rgba(39,174,96,.3); }
.bs-success-screen .bs-success-circle .material-symbols-rounded { font-size:44px; color:white; }
.bs-success-screen h2 { font-size:1.4rem; font-weight:800; color:#1a1a2e; margin-bottom:.75rem; }
.bs-success-note { background:#eef1f9; border:1px solid #b8c4e0; border-radius:10px; padding:1rem; margin:1.5rem 0; font-size:.82rem; color:#19378C; line-height:1.5; }

/* ── Shared slideUp animation ── */
@keyframes slideUp { from { transform:translateY(100%); } to { transform:translateY(0); } }
