/** * Bongoto – Header CSS (CLEAN FINAL) * --------------------------------- * - Desktop: horizontal layout (menu center) * - Mobile : compact header + single search below * - Drawer navigation with accessibility focus */ /* -------------------- Variables -------------------- */ :root { --bt-head-h: 40px; --bt-r: 10px; --bt-b: #e5e7eb; --bt-bg: #fff; --bt-fg: #0f172a; --bt-soft: #f3f4f6; --bt-accent: #2563eb; --bt-accent-d: #1d4ed8; } /* -------------------- Header Base -------------------- */ .bt-header { background: var(--bt-bg); border-bottom: 1px solid var(--bt-b); overflow: visible; } .bt-header--sticky { position: sticky; top: 0; z-index: 999; background: var(--bt-bg); border-bottom: 1px solid var(--bt-b); box-shadow: 0 2px 4px rgba(0, 0, 0, .05); transition: box-shadow .2s ease; } .bt-header-scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, .06); } .bt-header-inner { display: flex; align-items: center; gap: 12px; padding: .75rem 0; overflow: visible; } /* Desktop layout */ @media (min-width:769px) { .bt-header-inner { flex-wrap: nowrap; } .bt-header-left { flex: 0 0 auto; } .bt-primary-menu { display: block; flex: 1 1 auto; } .bt-header-right { flex: 0 0 auto; } } /* Left / Right blocks */ .bt-header-left, .bt-header-right { display: flex; align-items: center; gap: .5rem; flex-wrap: nowrap; } .bt-logo__img { max-height: 48px; } @media (max-width:768px) { .bt-logo__img { max-height: 40px; } } /* -------------------- Primary Menu -------------------- */ .bt-primary-menu { position: relative; overflow: visible; } .bt-primary-menu .bt-menu-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 20px; } .bt-primary-menu a { display: inline-flex; align-items: center; padding: 10px 8px; border-radius: 8px; font-weight: 500; color: var(--bt-fg); text-decoration: none; transition: color .15s, background .15s; } .bt-primary-menu a:hover { color: var(--bt-accent); } .bt-primary-menu .menu-item-has-children > a::after { content: "▾"; font-size: .8rem; opacity: .7; transform: translateY(-1px); } /* Dropdown */ .bt-primary-menu .sub-menu { position: absolute; top: calc(100% + 2px); left: 0; min-width: 220px; background: #fff; border: 1px solid var(--bt-b); border-radius: 10px; padding: 8px; list-style: none; display: none; box-shadow: 0 12px 30px rgba(0, 0, 0, .08); z-index: 1200; } .bt-primary-menu .sub-menu a { display: block; padding: 9px 10px; border-radius: 8px; color: var(--bt-fg); } .bt-primary-menu .sub-menu a:hover { background: var(--bt-soft); color: var(--bt-fg); } .bt-primary-menu li:hover > .sub-menu, .bt-primary-menu li:focus-within > .sub-menu { display: block; } /* -------------------- Buttons & CTA -------------------- */ .bt-icon-btn { width: var(--bt-head-h); height: var(--bt-head-h); border-radius: var(--bt-r); background: var(--bt-soft); display: inline-grid; place-items: center; color: var(--bt-fg); text-decoration: none; transition: background .2s ease; } .bt-icon-btn:hover { background: #e5e7eb; } /* CTA (Upload / Start Selling) */ .bt-cta-btn, .start-selling-btn, .upload-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--bt-accent); color: #fff; font-weight: 600; padding: 4px 10px; font-size: 13px; border-radius: 6px; text-decoration: none; transition: all .2s ease; line-height: 1.3; } .bt-cta-btn:hover, .start-selling-btn:hover, .upload-btn:hover { background: var(--bt-accent-d); transform: translateY(-1px); } .bt-cta-btn:active, .start-selling-btn:active, .upload-btn:active { transform: scale(.97); } @media (max-width:768px) { .bt-cta-btn, .start-selling-btn, .upload-btn { padding: 4px 9px; font-size: 12.5px; } } /* -------------------- Search -------------------- */ .bt-header-search { display: flex; align-items: center; gap: .4rem; } .bt-header-search input[type="search"] { height: var(--bt-head-h); padding: 0 .75rem; border: 1px solid var(--bt-b); border-radius: var(--bt-r); flex: 1; } .bt-search-submit { width: var(--bt-head-h); height: var(--bt-head-h); border-radius: var(--bt-r); display: grid; place-items: center; background: var(--bt-accent); color: #fff; border: none; cursor: pointer; transition: background .2s ease; } .bt-search-submit:hover { background: var(--bt-accent-d); } /* -------------------- Mobile Layout -------------------- */ .bt-menu-toggle { display: none; width: 36px; height: 36px; border: 0; background: transparent; border-radius: 8px; align-items: center; justify-content: center; cursor: pointer; } .bt-menu-toggle:hover { background: var(--bt-soft); } @media (max-width:768px) { .bt-menu-toggle { display: flex; } .bt-primary-menu { display: none !important; } .bt-header-center .bt-header-search { display: none !important; } } /* -------------------- Drawer -------------------- */ .bt-drawer { display: none; position: fixed; inset: 0 auto 0 0; width: 82vw; max-width: 320px; background: #fff; box-shadow: 8px 0 24px rgba(0, 0, 0, .12); transform: translateX(-100%); transition: transform .25s ease; z-index: 1000; } .bt-drawer.is-open { transform: translateX(0); } .bt-drawer-inner { height: 100%; padding: 12px 16px; display: flex; flex-direction: column; overflow: auto; } .bt-drawer-title { margin: .25rem 0 1rem; } .bt-drawer-menu { list-style: none; margin: 0; padding: 0; } .bt-drawer-menu a { display: block; padding: 10px 0; text-decoration: none; color: var(--bt-fg); } .bt-drawer-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--bt-b); } .bt-drawer-close { position: absolute; top: 10px; right: 10px; background: transparent; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--bt-fg); border-radius: 8px; transition: background .2s ease, transform .15s ease; } .bt-drawer-close:hover { background: var(--bt-soft); transform: rotate(90deg); } @media (max-width:768px) { .bt-drawer { display: block; } } @media (min-width:769px) { .bt-drawer { display: none !important; } } /* -------------------- Mobile Search (below header) -------------------- */ .bt-header-search--mobile { display: none; padding: .6rem 1rem; border-top: 1px solid var(--bt-b); background: #fff; } .bt-header-search--mobile .search-form { display: flex; justify-content: center; gap: 8px; width: 100%; } .bt-header-search--mobile .search-field { height: 36px; border-radius: 8px; border: 1px solid var(--bt-b); width: 90%; max-width: 350px; padding: 0 .75rem; } .bt-header-search--mobile .search-submit { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--bt-accent); color: #fff; border: none; cursor: pointer; transition: background .2s ease; } .bt-header-search--mobile .search-submit:hover { background: var(--bt-accent-d); } @media (max-width:768px) { .bt-header-search--mobile { display: block; } } @media (min-width:769px) { .bt-header-search--mobile { display: none !important; } } /* -------------------- Misc Adjustments -------------------- */ .bt-header-right { display: flex; align-items: center; gap: .4rem; margin-left: auto; flex-wrap: nowrap; } @media (max-width:768px) { .bt-header-inner.container { padding-right: 10px; } .bt-header .custom-logo-link img { max-height: 38px; } } /* Hide desktop-only items on mobile */ @media (max-width: 768px) { .bt-desktop-only { display: none !important; } } /* ✅ Hide Account Icon on Mobile (for all headers) */ @media (max-width: 768px) { .bt-header .bt-header-right .bt-account-link, .bt-header .bt-header-account, .bt-header .bt-account-icon, .bt-header [class*="account"] { display: none !important; } } /* ✅ Force show Account item inside mobile drawer for all headers */ .bt-drawer .account-mobile-only { display: block !important; padding: 10px 0; border-top: 1px solid #e5e7eb; margin-top: 10px; } .bt-drawer .account-mobile-only a { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; color: var(--bt-accent, #2563eb); transition: color .2s ease, transform .2s ease; } .bt-drawer .account-mobile-only a:hover { color: var(--bt-accent-d, #1d4ed8); transform: translateX(3px); } .bt-drawer .account-mobile-only .dashicons { font-size: 18px; color: var(--bt-accent, #2563eb); } /* =========================== Bongoto Pro Modal UI =========================== */ #bongoto-pro-modal { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 9999; align-items: center; justify-content: center; } #bongoto-pro-modal .bt-pro-modal-box { background: #fff; border-radius: 14px; width: 92%; max-width: 420px; padding: 30px 25px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25); text-align: center; animation: btProModalIn 0.3s ease-out; } #bongoto-pro-modal h3 { margin-bottom: 10px; font-size: 22px; color: #111827; } #bongoto-pro-modal p { color: #4b5563; font-size: 15px; margin-bottom: 25px; } #bongoto-pro-modal .bt-pro-modal-actions { display: flex; justify-content: center; gap: 12px; } #bongoto-pro-modal button { padding: 8px 16px; font-size: 14px; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; transition: all 0.2s ease; } #bongoto-pro-modal .bt-btn-primary { background: #2563eb; color: #fff; } #bongoto-pro-modal .bt-btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); } #bongoto-pro-modal .bt-btn-secondary { background: #e5e7eb; color: #111827; } #bongoto-pro-modal .bt-btn-secondary:hover { background: #d1d5db; } /* Smooth animation */ @keyframes btProModalIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } } /* --- Branding grid fine-tune --- */ .site-branding.bt-brand-grid{ display:grid; column-gap:.5rem; /* title–logo gap a bit tighter */ row-gap:.2rem; align-items:center; } .site-branding.bt-brand-grid.has-logo{ /* row-1 height follows logo height = perfect vertical centering */ grid-template-columns:auto 1fr; grid-template-rows:minmax(var(--bt-logo-h,40px), auto) auto; } .bt-brand-grid.has-logo .bt-brand-logo{ grid-column:1; grid-row:1 / span 2; align-self:start; } .bt-brand-grid.has-logo .bt-brand-title{ grid-column:2; grid-row:1; align-self:center; /* center title against logo */ display:flex; /* remove accidental line height drift */ align-items:center; } .bt-brand-grid.has-logo .bt-brand-tagline{ grid-column:1 / -1; /* begin under logo, span through right */ grid-row:2; align-self:start; margin-top:.1rem; } /* No-logo case stays simple: title then tagline */ .site-branding.bt-brand-grid.no-logo{ grid-template-columns:1fr; grid-template-rows:auto auto; } /* Optional: mobile—title/tagline under logo for tighter header */ @media (max-width:768px){ .site-branding.bt-brand-grid.has-logo{ grid-template-columns:auto 1fr; column-gap:.45rem; } } /* Ensure dropdown caret is visible on parent menu items */ .bt-primary-menu { overflow: visible; } /* room for caret on the right */ .bt-primary-menu .menu-item-has-children > a{ position: relative; padding-right: 22px; /* give space for the caret */ } /* triangle caret (inherits text color) */ .bt-primary-menu .menu-item-has-children > a::after{ content: ""; position: absolute; right: 8px; top: 50%; transform: translateY(-35%); width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; /* caret color = link color */ opacity: .75; pointer-events: none; } /* if your menu wraps the text in a , support that too */ .bt-primary-menu .menu-item-has-children > a > span::after{ content: ""; margin-left: 6px; display: inline-block; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; opacity: .75; } /* hover/focus state for better contrast */ .bt-primary-menu a:hover::after, .bt-primary-menu a:focus::after, .bt-primary-menu .menu-item-has-children > a:hover > span::after, .bt-primary-menu .menu-item-has-children > a:focus > span::after{ opacity: 1; }