/**
 * SuperSquare Storefront — Header & Navigation Styles
 *
 * Implements 3-tier desktop header, dedicated touch-friendly mobile header,
 * off-canvas navigation drawer, and search dropdown.
 *
 * @package SuperSquare_Storefront
 */

/* ==========================================================================
   Tier 1: Desktop Utility Bar
   ========================================================================== */
.ssq-utility-bar {
  background-color: var(--ssq-topbar-bg, #07111f);
  color: var(--ssq-topbar-text, #cbd5e1);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.375rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ssq-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ssq-utility-left,
.ssq-utility-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ssq-utility-announcement {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #f1f5f9;
  font-weight: 600;
}

.ssq-announcement-icon {
  color: #f59e0b;
}

.ssq-utility-link,
.ssq-utility-text,
.ssq-utility-navlink {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #cbd5e1;
  transition: color var(--ssq-transition-fast, 0.15s ease);
}

.ssq-utility-link:hover,
.ssq-utility-navlink:hover {
  color: #ffffff;
}

.ssq-util-sep {
  color: rgba(255, 255, 255, 0.2);
}

.ssq-topbar-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ssq-topbar-menu li a {
  color: #cbd5e1;
  transition: color var(--ssq-transition-fast, 0.15s ease);
}

.ssq-topbar-menu li a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Tier 2: Main Branding & Search Bar
   ========================================================================== */
.ssq-main-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--ssq-border, #e2e8f0);
  padding: 0.75rem 0;
  min-height: 74px;
}

.ssq-main-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo Dimensions Encapsulation */
.ssq-header-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.ssq-logo-desktop .ssq-logo-link {
  display: inline-flex;
  align-items: center;
  max-width: var(--ssq-logo-desktop-max-width, 180px);
  max-height: var(--ssq-logo-desktop-max-height, 50px);
}

.ssq-logo-img-desktop {
  max-width: var(--ssq-logo-desktop-max-width, 180px);
  max-height: var(--ssq-logo-desktop-max-height, 50px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.ssq-text-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.ssq-logo-main {
  font-family: var(--ssq-font-heading, inherit);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--ssq-primary, #0a192f);
  letter-spacing: -0.03em;
}

.ssq-logo-accent {
  color: var(--ssq-accent, #2563eb);
}

.ssq-logo-tagline {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ssq-text-muted, #64748b);
  margin-top: 2px;
}

/* Professional Search Form */
.ssq-header-search-wrap {
  flex: 1;
  max-width: 640px;
  position: relative;
}

.ssq-search-form {
  position: relative;
  width: 100%;
}

.ssq-search-input-box {
  display: flex;
  align-items: center;
  background-color: var(--ssq-surface-subtle, #f1f5f9);
  border: 1.5px solid transparent;
  border-radius: var(--ssq-radius-full, 9999px);
  padding: 2px 4px 2px 14px;
  transition: all var(--ssq-transition-fast, 0.15s ease);
}

.ssq-search-input-box:focus-within {
  background-color: #ffffff;
  border-color: var(--ssq-accent, #2563eb);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
}

.ssq-search-icon-wrap {
  display: flex;
  align-items: center;
  color: var(--ssq-text-muted, #64748b);
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.ssq-search-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.5rem 0.25rem !important;
  font-size: 0.875rem;
  color: var(--ssq-text-main, #0f172a);
  outline: none !important;
}

.ssq-search-clear-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ssq-text-muted, #94a3b8);
  padding: 4px 8px;
  display: flex;
  align-items: center;
}

.ssq-search-clear-btn:hover {
  color: var(--ssq-text-main, #0f172a);
}

.ssq-search-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: var(--ssq-accent, #2563eb);
  color: #ffffff;
  border: none;
  border-radius: var(--ssq-radius-full, 9999px);
  padding: 0.5rem 1.125rem;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--ssq-transition-fast, 0.15s ease);
  flex-shrink: 0;
}

.ssq-search-submit-btn:hover {
  background-color: var(--ssq-accent-hover, #1d4ed8);
}

/* Autocomplete Results Dropdown */
.ssq-search-results-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background-color: #ffffff;
  border: 1px solid var(--ssq-border, #e2e8f0);
  border-radius: var(--ssq-radius-lg, 12px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
  z-index: 1000;
  max-height: 420px;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.ssq-search-live-list {
  display: flex;
  flex-direction: column;
}

.ssq-search-live-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  color: var(--ssq-text-main, #0f172a);
  border-bottom: 1px solid var(--ssq-border-subtle, #f8fafc);
  transition: background-color var(--ssq-transition-fast, 0.15s ease);
  text-decoration: none;
}

.ssq-search-live-item:last-child {
  border-bottom: none;
}

.ssq-search-live-item:hover,
.ssq-search-live-item.is-active {
  background-color: var(--ssq-surface-subtle, #f1f5f9);
}

.ssq-search-live-loading,
.ssq-search-live-empty {
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--ssq-text-muted, #64748b);
  text-align: center;
}

.ssq-search-live-seeall {
  display: block;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ssq-accent, #2563eb);
  border-top: 1px solid var(--ssq-border, #e2e8f0);
  text-decoration: none;
}

.ssq-search-live-seeall:hover {
  background-color: var(--ssq-surface-subtle, #f1f5f9);
}

.ssq-search-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  background-color: #f8fafc;
  flex-shrink: 0;
}

.ssq-search-item-info {
  flex: 1;
  min-width: 0;
}

.ssq-search-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ssq-search-item-price {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ssq-accent, #2563eb);
}

/* Customer Actions Cluster */
.ssq-header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.ssq-header-action {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: transparent;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--ssq-text-main, #0f172a);
}

.ssq-action-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--ssq-radius-full, 9999px);
  background-color: var(--ssq-surface-subtle, #f1f5f9);
  color: var(--ssq-primary, #0a192f);
  transition: all var(--ssq-transition-fast, 0.15s ease);
}

.ssq-header-action:hover .ssq-action-icon-wrap {
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--ssq-accent, #2563eb);
}

.ssq-action-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--ssq-accent, #2563eb);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

.ssq-action-labels {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.ssq-action-sub {
  font-size: 0.6875rem;
  color: var(--ssq-text-muted, #64748b);
  font-weight: 500;
}

.ssq-action-main {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ssq-text-main, #0f172a);
}

/* ==========================================================================
   Tier 3: Desktop Primary Navigation Bar
   ========================================================================== */
.ssq-nav-bar {
  background-color: var(--ssq-primary, #0a192f);
  color: #ffffff;
  position: relative;
  z-index: 100;
}

.ssq-site-header.has-sticky-desktop.is-sticky .ssq-nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  animation: ssqSlideDown 0.25s ease-out;
}

@keyframes ssqSlideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.ssq-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Department Dropdown Menu */
.ssq-dept-menu-wrap {
  position: relative;
}

.ssq-dept-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background-color: var(--ssq-accent, #2563eb);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  padding: 0.8125rem 1.25rem;
  cursor: pointer;
  transition: background-color var(--ssq-transition-fast, 0.15s ease);
}

.ssq-dept-toggle-btn:hover {
  background-color: var(--ssq-accent-hover, #1d4ed8);
}

.ssq-dept-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 14px;
}

.ssq-dept-toggle-icon .ssq-hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 1px;
}

.ssq-dept-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 270px;
  background-color: #ffffff;
  border: 1px solid var(--ssq-border, #e2e8f0);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
  border-radius: 0 0 8px 8px;
  z-index: 101;
}

.ssq-dept-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

.ssq-dept-item {
  position: relative;
}

.ssq-dept-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ssq-text-main, #0f172a);
  transition: all var(--ssq-transition-fast, 0.15s ease);
}

.ssq-dept-link:hover {
  background-color: var(--ssq-surface-subtle, #f1f5f9);
  color: var(--ssq-accent, #2563eb);
}

.ssq-dept-icon {
  color: var(--ssq-text-muted, #64748b);
  display: flex;
  align-items: center;
}

.ssq-dept-title {
  flex: 1;
}

.ssq-dept-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ssq-text-muted, #64748b);
  background: var(--ssq-surface-subtle, #f1f5f9);
  padding: 1px 6px;
  border-radius: 9999px;
}

.ssq-dept-subpanel {
  position: absolute;
  top: 0;
  left: 100%;
  width: 280px;
  background-color: #ffffff;
  border: 1px solid var(--ssq-border, #e2e8f0);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
  border-radius: 8px;
  padding: 1rem;
  display: none;
  z-index: 102;
}

.ssq-dept-item:hover .ssq-dept-subpanel {
  display: block;
}

/* Primary Menu List */
.ssq-primary-menu-wrap {
  flex: 1;
  margin-left: 1.5rem;
}

.ssq-primary-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.ssq-primary-menu li a {
  display: inline-block;
  color: #cbd5e1;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.8125rem 0.875rem;
  transition: color var(--ssq-transition-fast, 0.15s ease);
}

.ssq-primary-menu li a:hover,
.ssq-primary-menu li.current-menu-item a {
  color: #ffffff;
}

.ssq-nav-helpline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #cbd5e1;
}

.ssq-helpline-icon {
  color: #38bdf8;
}

.ssq-helpline-number {
  font-weight: 700;
  color: #ffffff;
}

.ssq-nav-promo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #38bdf8;
}

/* ==========================================================================
   Dedicated Mobile Header Layout
   ========================================================================== */
.ssq-mobile-header {
  display: none;
  background-color: #ffffff;
  border-bottom: 1px solid var(--ssq-border, #e2e8f0);
}

.ssq-site-header.has-sticky-mobile.is-mobile-sticky .ssq-mobile-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ssq-mobile-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  min-height: 52px;
}

.ssq-mobile-menu-btn {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.ssq-mobile-menu-btn .ssq-hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--ssq-primary, #0a192f);
  border-radius: 2px;
  transition: all var(--ssq-transition-fast, 0.15s ease);
}

.ssq-mobile-logo-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: var(--ssq-logo-mobile-max-width, 135px);
  max-height: var(--ssq-logo-mobile-max-height, 38px);
}

.ssq-mobile-logo-wrap img {
  max-width: var(--ssq-logo-mobile-max-width, 135px);
  max-height: var(--ssq-logo-mobile-max-height, 38px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.ssq-mobile-logo-wrap .ssq-logo-main {
  font-size: 1.15rem;
}

.ssq-mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.ssq-mobile-action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--ssq-primary, #0a192f);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--ssq-radius-full, 9999px);
}

.ssq-mobile-action-btn:hover {
  background-color: var(--ssq-surface-subtle, #f1f5f9);
}

.ssq-mobile-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: var(--ssq-accent, #2563eb);
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

.ssq-mobile-search-row {
  padding: 0 1rem 0.625rem 1rem;
}

.ssq-mobile-search-form {
  position: relative;
}

.ssq-mobile-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--ssq-surface-subtle, #f1f5f9);
  border: 1px solid var(--ssq-border, #e2e8f0);
  border-radius: var(--ssq-radius-full, 9999px);
  padding: 0.375rem 0.875rem;
}

.ssq-m-search-icon {
  color: var(--ssq-text-muted, #64748b);
  flex-shrink: 0;
}

.ssq-mobile-search-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  height: 32px !important;
  font-size: 0.875rem;
  outline: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   Mobile Off-Canvas Drawer
   ========================================================================== */
.ssq-drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  z-index: 9995;
  backdrop-filter: blur(3px);
}

.ssq-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background-color: #ffffff;
  z-index: 9998;
  transform: translateX(-100%);
  transition: transform var(--ssq-transition-normal, 0.22s ease);
  overflow-y: auto;
}

.ssq-mobile-drawer.is-open {
  transform: translateX(0);
}

.ssq-drawer-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.ssq-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  border-bottom: 1px solid var(--ssq-border, #e2e8f0);
  flex-shrink: 0;
}

.ssq-logo-drawer .ssq-logo-link {
  display: inline-flex;
  align-items: center;
  max-width: var(--ssq-logo-drawer-max-width, 140px);
  max-height: var(--ssq-logo-drawer-max-height, 42px);
}

.ssq-logo-img-drawer {
  max-width: var(--ssq-logo-drawer-max-width, 140px);
  max-height: var(--ssq-logo-drawer-max-height, 42px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.ssq-drawer-close {
  background: var(--ssq-surface-subtle, #f1f5f9);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  color: var(--ssq-text-muted, #64748b);
  width: 36px;
  height: 36px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color var(--ssq-transition-fast, 0.15s ease), color var(--ssq-transition-fast, 0.15s ease);
}

.ssq-drawer-close:hover,
.ssq-drawer-close:focus-visible {
  background-color: var(--ssq-border, #e2e8f0);
  color: var(--ssq-text-main, #0f172a);
}

/* Quick Actions: My Account / Wishlist as polished button rows, not raw links */
.ssq-drawer-quickactions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
  padding: 1rem 1.125rem;
  border-bottom: 1px solid var(--ssq-border, #e2e8f0);
  flex-shrink: 0;
}

.ssq-drawer-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.625rem 0.75rem;
  background-color: var(--ssq-surface-subtle, #f1f5f9);
  border: 1px solid var(--ssq-border, #e2e8f0);
  border-radius: var(--ssq-radius-lg, 12px);
  color: var(--ssq-text-main, #0f172a);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color var(--ssq-transition-fast, 0.15s ease), border-color var(--ssq-transition-fast, 0.15s ease);
}

.ssq-drawer-action-btn:hover,
.ssq-drawer-action-btn:focus-visible {
  background-color: #ffffff;
  border-color: var(--ssq-accent, #2563eb);
  color: var(--ssq-accent, #2563eb);
}

.ssq-drawer-action-btn svg {
  flex-shrink: 0;
}

/* Section grouping ("Shop Categories", "Quick Links") */
.ssq-drawer-section {
  padding: 1rem 1.125rem;
  border-bottom: 1px solid var(--ssq-border, #e2e8f0);
}

.ssq-drawer-section:last-of-type {
  border-bottom: none;
  flex: 1;
}

.ssq-drawer-section-title {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ssq-text-muted, #64748b);
  margin-bottom: 0.5rem;
}

/* Category list — no bullets, no browser-default anything */
.ssq-drawer-cat-list,
.ssq-drawer-nav-list,
.ssq-drawer-sub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ssq-drawer-cat-item {
  border-bottom: 1px solid var(--ssq-border-subtle, #f8fafc);
}

.ssq-drawer-cat-item:last-child {
  border-bottom: none;
}

.ssq-drawer-cat-row {
  display: flex;
  align-items: stretch;
}

.ssq-drawer-cat-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: 1;
  min-height: 44px;
  padding: 0.625rem 0.25rem;
  color: var(--ssq-text-main, #0f172a);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--ssq-radius-md, 8px);
  transition: background-color var(--ssq-transition-fast, 0.15s ease), color var(--ssq-transition-fast, 0.15s ease);
}

.ssq-drawer-cat-link:hover,
.ssq-drawer-cat-link:focus-visible {
  background-color: var(--ssq-surface-subtle, #f1f5f9);
  color: var(--ssq-accent, #2563eb);
}

.ssq-drawer-cat-link.ssq-all-products-link {
  color: var(--ssq-accent, #2563eb);
}

.ssq-drawer-icon {
  flex-shrink: 0;
  color: var(--ssq-text-muted, #64748b);
}

.ssq-drawer-cat-link:hover .ssq-drawer-icon,
.ssq-drawer-cat-link:focus-visible .ssq-drawer-icon {
  color: var(--ssq-accent, #2563eb);
}

.ssq-drawer-cat-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ssq-drawer-badge {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--ssq-text-muted, #64748b);
  background-color: var(--ssq-surface-subtle, #f1f5f9);
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
}

/* Expand/collapse control for nested subcategories — reset from a bare <button> */
.ssq-drawer-sub-toggle {
  appearance: none;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  color: var(--ssq-text-muted, #64748b);
}

.ssq-drawer-sub-toggle:hover,
.ssq-drawer-sub-toggle:focus-visible {
  color: var(--ssq-accent, #2563eb);
}

.ssq-sub-chevron {
  transition: transform var(--ssq-transition-fast, 0.15s ease);
}

.ssq-drawer-sub-toggle[aria-expanded="true"] .ssq-sub-chevron {
  transform: rotate(180deg);
}

.ssq-drawer-sub-list {
  padding-left: 2rem;
  padding-bottom: 0.5rem;
}

.ssq-drawer-sub-item {
  border-top: 1px solid var(--ssq-border-subtle, #f8fafc);
}

.ssq-drawer-sub-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.5rem 0.25rem;
  color: var(--ssq-text-muted, #475569);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--ssq-radius-md, 8px);
}

.ssq-drawer-sub-link:hover,
.ssq-drawer-sub-link:focus-visible {
  background-color: var(--ssq-surface-subtle, #f1f5f9);
  color: var(--ssq-accent, #2563eb);
}

.ssq-drawer-sub-count {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--ssq-text-muted, #94a3b8);
}

/* "Quick Links" plain list */
.ssq-drawer-nav-list li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.625rem 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ssq-text-main, #0f172a);
  text-decoration: none;
  border-bottom: 1px solid var(--ssq-border-subtle, #f8fafc);
  border-radius: var(--ssq-radius-md, 8px);
  transition: background-color var(--ssq-transition-fast, 0.15s ease), color var(--ssq-transition-fast, 0.15s ease);
}

.ssq-drawer-nav-list li:last-child a {
  border-bottom: none;
}

.ssq-drawer-nav-list li a:hover,
.ssq-drawer-nav-list li a:focus-visible {
  background-color: var(--ssq-surface-subtle, #f1f5f9);
  color: var(--ssq-accent, #2563eb);
}

.ssq-drawer-footer {
  padding: 1rem 1.125rem;
  background-color: var(--ssq-surface-subtle, #f8fafc);
  border-top: 1px solid var(--ssq-border, #e2e8f0);
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.ssq-drawer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0;
  color: var(--ssq-text-muted, #475569);
}

.ssq-drawer-contact-item a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.ssq-drawer-contact-item a:hover,
.ssq-drawer-contact-item a:focus-visible {
  color: var(--ssq-accent, #2563eb);
}

.ssq-drawer-contact-icon {
  flex-shrink: 0;
  color: var(--ssq-text-muted, #94a3b8);
}

.ssq-drawer-socials {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.625rem;
}

.ssq-drawer-soc-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 9999px;
  background-color: #ffffff;
  border: 1px solid var(--ssq-border, #e2e8f0);
  color: var(--ssq-text-muted, #64748b);
  transition: background-color var(--ssq-transition-fast, 0.15s ease), color var(--ssq-transition-fast, 0.15s ease), border-color var(--ssq-transition-fast, 0.15s ease);
}

.ssq-drawer-soc-link:hover,
.ssq-drawer-soc-link:focus-visible {
  background-color: var(--ssq-accent, #2563eb);
  border-color: var(--ssq-accent, #2563eb);
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .ssq-mobile-drawer,
  .ssq-sub-chevron,
  .ssq-drawer-close,
  .ssq-drawer-action-btn,
  .ssq-drawer-cat-link,
  .ssq-drawer-sub-link,
  .ssq-drawer-nav-list li a,
  .ssq-drawer-soc-link {
    transition: none !important;
  }
}

/* ==========================================================================
   Responsive Breakpoints for Header Switch
   ========================================================================== */
@media (max-width: 991px) {
  .ssq-utility-bar,
  .ssq-main-header,
  .ssq-nav-bar {
    display: none !important;
  }

  .ssq-mobile-header {
    display: block !important;
  }
}

@media (min-width: 992px) {
  .ssq-mobile-header {
    display: none !important;
  }
}
.ssq-drawer-cat-image{width:32px;height:32px;object-fit:cover;border-radius:8px;flex:0 0 32px}
