/* ---------------------------
   Base + Reset
--------------------------------*/
*{box-sizing:border-box}
html{line-height:1.5;-webkit-text-size-adjust:100%}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:#f3f4f6;background:#0f1115}
img{max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
.container{max-width:1200px;margin-inline:auto;padding:0 16px}
.skip-link{position:absolute;left:-9999px;top:auto}
.skip-link:focus{left:16px;top:16px;background:#111;color:#fff;padding:8px 12px;border-radius:8px;z-index:10000}

/* ---------------------------
   Header / Branding / Nav
--------------------------------*/
.site-header{background:#12151b;border-bottom:1px solid #1f2530;position:sticky;top:0;z-index:1000}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px}
.brand a{color:#fff;font-weight:700;font-size:20px}
.brand .accent{color:#e31b54}

/* Menu button: hidden by default (desktop), shown <=768px */
.menu-toggle{display:none;align-items:center;gap:10px;background:transparent;border:1px solid #2b3546;border-radius:10px;padding:10px 12px;color:#d6d9e0;cursor:pointer}
.menu-toggle:focus-visible{outline:2px solid #e31b54;outline-offset:2px}
.menu-toggle-box{display:inline-grid;gap:4px}
.menu-toggle-bar{display:block;width:18px;height:2px;background:#d6d9e0}

/* Primary nav wrapper */
.primary{position:relative}

/* Top-level links spacing */
.primary-menu > li > a{
    display: inline-block;
    padding: 0px 0px;
    border-radius: 10px;
    color: #d6d9e0;
    border: 1px solid transparent;
    transition: all .2s 
ease;
    font-size: 14px;
    text-align: center;
}
.primary-menu > li:hover > a,
.primary-menu > li > a:focus-visible{
  color:#fff;background:#111622;border-color:#2b3546;outline:none
}

/* ---------- Mobile-first (<=768px) ---------- */
.primary-menu{
  list-style:none;margin:0;padding:10px 12px 16px;
  position:absolute;left:0;right:0;top:64px;
  display:none;flex-direction:column;align-items:stretch;gap:6px;
  background:#0e1219;border-top:1px solid #1f2530;
}
body.nav-open .primary-menu{display:flex}

.primary-menu li{position:static}
.primary-menu li .sub-menu{
  position:static;display:none;opacity:1;transform:none;margin:6px 0 0 0;
  padding:6px;background:#12151b;border-radius:10px;border:1px solid #2b3546;list-style:none;
}
.primary-menu li.menu-open > .sub-menu{display:block}
.primary-menu li .sub-menu li a{
  display:block;padding:10px;border-radius:8px;color:#d6d9e0

    font-size: 14px;
    text-align: center;
}
.primary-menu li .sub-menu li a:hover,
.primary-menu li .sub-menu li a:focus-visible{
  background:#111622;color:#fff;outline:none
}

/* Show hamburger button on small screens only */
@media (max-width:768px){
  .menu-toggle{display:inline-flex}
}

/* ---------- Desktop (>=769px) ---------- */
@media (min-width:769px){
  /* Desktop: show menu, hide button */
  .menu-toggle{display:none}
  .primary-menu{
    position:static;display:flex;flex-direction:row;align-items:center;gap:16px;
    background:transparent;border-top:0;padding:0;
  }
  .primary-menu > li{position:relative}
  .primary-menu li .sub-menu{
    position:absolute;left:0;top:100%;min-width:220px;
    background:#1b1b1b; /* requested background */
    border:1px solid #2b3546;border-radius:12px;padding:8px;margin-top:8px;
    list-style:none;display:none;opacity:0;transform:translateY(4px);
    transition:opacity .15s ease,transform .15s ease;z-index:9999
  }
  .primary-menu li:hover > .sub-menu,
  .primary-menu li:focus-within > .sub-menu{
    display:block;opacity:1;transform:translateY(0)
  }
  /* Hover bridge so submenu doesn't vanish before cursor reaches it */
  .primary-menu > li::after{
    content:"";position:absolute;left:0;right:0;height:12px;top:100%;
  }
}

/* ---------------------------
   Main layout (content + sidebar)
--------------------------------*/
.site-main{padding:24px 0}
.grid{display:grid;gap:24px}

/* Mobile-first: stack everything */
.grid > div{grid-column:auto !important}

/* Desktop: 12 columns, 9/3 split */
@media (min-width:1024px){
  .grid{grid-template-columns:repeat(12,minmax(0,1fr))}
  .grid > div:first-child{grid-column:span 9 !important}
  .grid > div:last-child{grid-column:span 3 !important}
}

/* Cards */
.card{background:#0e1219;border:1px solid #1f2530;border-radius:12px;padding:16px}
.sidebar.card > .card{margin-bottom:16px}

/* Footer */
.site-footer{border-top:1px solid #1f2530;background:#0e1219;color:#cfd3db}
.footer-inner{padding:24px 0}

/* WordPress blocks basics */
.wp-block-search__button{cursor:pointer}
.wp-block-heading{margin-top:0}

/* Accessibility focus */
a:focus-visible, button:focus-visible{
  outline:2px solid #e31b54;outline-offset:2px;border-radius:10px
}

/* Hide by default (desktop) */
.nav-toggle {
  display: none;
}

/* Show only on mobile (max-width: 768px) */
@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex; /* or block, depending on your design */
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
  }
}

/* Utility for screen readers */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,1px,1px);
  white-space: nowrap; border: 0;
}

/* Mobile toggle hidden on desktop */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  line-height: 0;
  cursor: pointer;
  color: #fff; /* ensure visible on dark header */
}

/* Base nav layout (desktop) */
.primary { display: block; }
.primary .menu { display: flex; gap: 0px; align-items: center; }

/* --- MOBILE (≤768px) --- */
@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; z-index: 1001; }

  /* stack layout */
  .primary {
    position: absolute;
    top: 64px; /* below header */
    left: 0; right: 0;
    background: #111;
    border-top: 1px solid #2a2a2a;
    box-shadow: 0 8px 20px rgba(0,0,0,.35);
    display: none; /* hidden until toggled */
  }

  .primary .menu {
    display: block;
    padding: 12px 16px;
  }

  .primary .menu > li {
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
            width: 100%;
  }
  .primary .menu > li > a {
    display: block;
    padding: 12px 8px;
  }

  /* show when toggled */
  .primary.is-open { display: block; }

  /* submenus inside mobile */
  .primary .menu li .sub-menu {
    display: none;
    background: #1b1b1b;
    padding: 4px 0 8px;
  }
  .primary .menu li.menu-item-has-children > a {
    position: relative;
    padding-right: 36px;
  }
  .primary .menu li.menu-item-has-children > a::after {
    content: '▾';
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    font-size: 12px; opacity: .8;
  }
  /* optional: reveal submenu when parent has .open (you can set via JS if you like) */
  .primary .menu li.open > .sub-menu { display: block; }
}

/* Keep your desktop submenu hover styles as before */
.primary-menu li {
  position: relative;
      width: 85px;
}
.primary-menu li .sub-menu {
  position: absolute;
  left: 0;
  top: calc(100% - 2px); /* tighten gap to avoid hover flicker */
  min-width: 220px;
  background: #1b1b1b; /* your requested change */
  padding: 8px 0;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  display: none;
  z-index: 1000;
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
  display: block;
}
.primary-menu .sub-menu li a {
  display: block;
  padding: 10px 14px;
  white-space: nowrap;
}

/* ============================
   TOP BAR
============================ */
.topbar {
  background: #0b0c0f;
  border-bottom: 1px solid #1f2530;
  font-size: 14px;
  color: #d1d3d8;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  gap: 12px;
}
.topbar-message {
  font-weight: 500;
  color: #f3f3f3;
}
.topbar-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
}
.topbar-links li a {
  color: #d1d3d8;
  text-decoration: none;
  font-weight: 500;
}
.topbar-links li a:hover {
  color: #e31b54;
}

/* ============================
   HEADER SEARCH
============================ */
.header-search {
  display: flex;
  align-items: center;
  background: #1b1b1b;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #333;
}
.header-search-input {
  padding: 6px 10px;
  background: transparent;
  border: none;
  color: #eee;
  width: 160px;
}
.header-search-input::placeholder {
  color: #888;
}
.header-search-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #eee;
  padding: 6px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .topbar__inner { flex-direction: column; align-items: flex-start; gap: 4px; }
  .header-search { display: none; } /* Hide search bar on small screens if needed */
}

.topbar { background:#0b0c0f; border-bottom:1px solid #1f2530; color:#d1d3d8; font-size:14px; }
.topbar__inner { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:6px 0; }
.topbar-links { list-style:none; display:flex; gap:16px; margin:0; padding:0; }
.topbar-links a { color:#d1d3d8; text-decoration:none; font-weight:500; }
.topbar-links a:hover { color:#e31b54; }
.topbar-right { display:flex; align-items:center; gap:16px; }

/* Search in top bar */
.topbar-search { display:flex; align-items:center; background:#1b1b1b; border:1px solid #2a2a2a; border-radius:4px; overflow:hidden; }
.topbar-search__input { background:transparent; border:none; padding:6px 10px; color:#eee; width:200px; }
.topbar-search__input::placeholder { color:#888; }
.topbar-search__btn { background:transparent; border:none; padding:6px 8px; cursor:pointer; color:#eee; }

/* Cart in top bar */
.topbar-cart { display:inline-flex; align-items:center; gap:6px; text-decoration:none; color:#f2f2f2;
  padding:4px 8px; border:1px solid #2a2a2a; border-radius:4px; }
.topbar-cart:hover { border-color:#e31b54; color:#fff; }
.topbar-cart .js-cart-count { display:inline-block; min-width:18px; text-align:center; font-weight:700;
  font-size:12px; line-height:18px; background:#e31b54; color:#fff; border-radius:9px; padding:0 6px; }

@media (max-width:768px){
  .topbar__inner { flex-direction:column; align-items:stretch; gap:8px; }
  .topbar-right { justify-content:space-between; width:100%; }
  .topbar-search__input { width:100%; }
}


/* Desktop/grid stays as-is; only change under 768px */
@media (max-width: 768px) {
  /* Ensure the container stacks vertically on mobile */
  .home-grid, .grid {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
  }
  
  .brand a {
    color: #fff;
    font-weight: 700;
    font-size: 33px;
}

  /* Make each section full width */
  .home-section {
    width: 100% !important;
    max-width: 100%;
  }

  /* If any inline grid spans were set, neutralize them on mobile */
  .home-section[style*="grid-column"] {
    grid-column: auto !important;
  }

  /* Required order on mobile */
  .section-featured-categories { order: 1; }
  .section-latest-deals       { order: 2; }
  .section-from-journal       { order: 3; }
}

/* (Optional) Keep your desktop grid nice and tidy */
@media (min-width: 769px) {
  .home-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
  }
  /* Example desktop spans — adjust to your layout */
  .section-featured-categories { grid-column: span 3; }
  .section-latest-deals       { grid-column: span 6; }
  .section-from-journal       { grid-column: span 3; }
}

/* ==============================
   HOME SECTIONS: Desktop 4-col, Mobile stacked
============================== */

/* Base card grid container for each section */
.home-section .card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
  gap: 24px;
}

/* Card appearance */
.home-section .card {
        text-align: center;
  background: #0f0f10;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 16px;
  color: #d1d3d8;
  transition: transform .15s ease, box-shadow .15s ease;
}
.home-section .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

/* Section title alignment */
.home-section h2.section-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: #fff;
}

/* ===== Responsive: stack on tablet & mobile ===== */
@media (max-width: 1024px) {
  .home-section .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .home-section .card-grid {
    grid-template-columns: 1fr; /* full width cards */
  }

  /* Order for mobile stacking */
  .section-featured-categories { order: 1; width: 100%; }
  .section-latest-deals        { order: 2; width: 100%; }
  .section-from-journal        { order: 3; width: 100%; }

  /* If parent container uses grid, make it flex on mobile */
  .home-grid, .grid {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
  }
}

/* ==============================
   UNIFIED TOP BAR + HEADER STYLE
============================== */

.topbar {
  background: #0b0c0f; /* same as header background */
  border-bottom: 1px solid #1f2530;
  color: #d1d3d8;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  z-index: 1000;
  position: relative;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px; /* match site-header spacing */
}

/* ------------------------------
   Left section message
------------------------------ */
.topbar-message {
  color: #f3f3f3;
  font-size: 14px;
  
}

/* ------------------------------
   Right section (search + cart)
------------------------------ */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Search box */
.topbar-search {
  display: flex;
  align-items: center;
  background: #1b1b1b;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  overflow: hidden;
  height: 34px;
}
.topbar-search__input {
  background: transparent;
  border: none;
  color: #eee;
  padding: 6px 10px;
  width: 180px;
  font-size: 14px;
}
.topbar-search__input::placeholder {
  color: #888;
}
.topbar-search__btn {
  background: transparent;
  border: none;
  color: #ccc;
  cursor: pointer;
  padding: 0 8px;
  transition: color 0.2s ease;
}
.topbar-search__btn:hover {
  color: #e31b54;
}

/* Cart */
.topbar-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #f2f2f2;
  padding: 4px 8px;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  transition: all 0.25s ease;
}
.topbar-cart:hover {
  border-color: #e31b54;
  color: #fff;
}
.topbar-cart .js-cart-count {
  display: inline-block;
  min-width: 18px;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  line-height: 18px;
  background: #e31b54;
  color: #fff;
  border-radius: 9px;
  padding: 0 6px;
}

/* ------------------------------
   Menu links inside top bar
------------------------------ */
.topbar-links {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.topbar-links li a {
  color: #d1d3d8;
  text-decoration: none;
  transition: color 0.2s ease;
}
.topbar-links li a:hover {
  color: #e31b54;
}

/* ------------------------------
   Responsive behavior
------------------------------ */
@media (max-width: 768px) {
  .topbar__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .topbar-message {
    font-size: 18px;
    text-align: center;
  }
  .topbar-right {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .topbar-search {
    width: 100%;
  }
  .topbar-cart {
    align-self: flex-end;
  }
}

/* ==============================
   PRIMARY NAV — SUBMENU (Unified with Topbar/Header)
============================== */

.primary-menu,
.primary-menu * {
  box-sizing: border-box;
}

/* Ensure parent is positioning context */
.primary-menu li.menu-item-has-children {
  position: relative;
}

/* Base dropdown panel */
.primary-menu .sub-menu {
  position: absolute;
  top: 100%;                 /* sits flush under parent item */
  left: 0;
  min-width: 220px;
  background: #0b0c0f;       /* same as topbar/header */
  border: 1px solid #1f2530; /* same subtle border */
  border-radius: 6px;
  padding: 8px;
  margin: 0;
  list-style: none;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  z-index: 1000;

  /* hidden by default, with gentle slide */
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  pointer-events: none; /* prevents stray hover/blur flicker */
}

/* “Hover bridge” so there’s no gap to fall through */
.primary-menu li.menu-item-has-children > .sub-menu::before {
  content: "";
  position: absolute;
  top: -10px;                /* extends up under the parent li */
  left: 0;
  right: 0;
  height: 10px;
}

/* Show on hover or keyboard focus */
.primary-menu li.menu-item-has-children:hover > .sub-menu,
.primary-menu li.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Dropdown items */
.primary-menu .sub-menu > li {
  margin: 0;
}

.primary-menu .sub-menu > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: #d1d3d8;                  /* unified link color */
  text-decoration: none;
  border-radius: 4px;
  transition: background .18s ease, color .18s ease;
  white-space: nowrap;
}

/* Hover/active matches your accent */
.primary-menu .sub-menu > li > a:hover,
.primary-menu .sub-menu > li > a:focus {
  background: #151821;             /* subtle hover bg */
  color: #ffffff;
  outline: none;
}

/* Separator (optional) */
.primary-menu .sub-menu > li + li {
  margin-top: 2px;
}

/* Third level menus fly out to the right */
.primary-menu .sub-menu .menu-item-has-children > .sub-menu {
  top: 0;
  left: 100%;
  margin-left: 8px;
}

/* Keep flyout visible while traversing */
.primary-menu .sub-menu .menu-item-has-children {
  position: relative;
}
.primary-menu .sub-menu .menu-item-has-children > .sub-menu::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 0;
  width: 10px;
  bottom: 0;
}

/* Edge protection: if a parent is near right edge, open left */
@media (min-width: 769px) {
  .primary-menu > li:last-child .sub-menu,
  .primary-menu > li:nth-last-child(2) .sub-menu {
    right: 0;
    left: auto;
  }
  .primary-menu > li:last-child .sub-menu .sub-menu,
  .primary-menu > li:nth-last-child(2) .sub-menu .sub-menu {
    right: 100%;
    left: auto;
    margin-right: 8px;
    margin-left: 0;
  }
}

/* =========================
   TOP BAR — MATCH PRIMARY
   ========================= */

/* Layout & colors */
.topbar {
  background: #0f0f10; /* same family as header */
  color: #cfd3dc;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
}
.topbar a { color: #e3e7ee; text-decoration: none; }
.topbar a:hover { color: #fff; }

/* Topbar menu base (mirror primary spacing) */
.topbar-menu .topbar-links,
.topbar-menu .menu,
.topbar-menu ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
}

/* Items */
.topbar-menu li {
  position: relative; /* needed for submenu positioning */
  line-height: 1;
}
.topbar-menu > ul > li > a,
.topbar-menu .topbar-links > li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 6px;
  transition: background .2s ease, color .2s ease, transform .12s ease;
}
.topbar-menu > ul > li > a:hover,
.topbar-menu .topbar-links > li > a:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

/* Submenu container (same as primary) */
.topbar-menu li .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #1b1b1b;     /* your chosen submenu bg */
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  border-radius: 10px;
  padding: 8px;
  margin: 0;
  list-style: none;

  /* hidden by default */
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
  z-index: 1000;
  pointer-events: none; /* prevents “gap” issue */
}

/* Submenu items */
.topbar-menu li .sub-menu > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #e3e7ee;
  white-space: nowrap;
}
.topbar-menu li .sub-menu > li > a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* Show submenu on hover OR keyboard focus (no flicker/gap) */
.topbar-menu li:hover > .sub-menu,
.topbar-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
  pointer-events: auto;
}

/* If you have nested submenus */
.topbar-menu li .sub-menu li { position: relative; }
.topbar-menu li .sub-menu li .sub-menu {
  top: -8px;
  left: calc(100% + 8px);
}

/* --- Cart + Search in top bar --- */

/* Compact search (top-right) */
.topbar .topbar-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 6px 8px;
  border-radius: 10px;
}
.topbar .topbar-search input[type="search"] {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  min-width: 140px;
  font-size: 14px;
}
.topbar .topbar-search button {
  background: #e31b54;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}
.topbar .topbar-search button:hover { filter: brightness(1.05); }

/* Cart icon/button */
.topbar .mini-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.topbar .mini-cart:hover { background: rgba(255,255,255,0.1); }
.topbar .mini-cart__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  padding: 0 4px;
  border-radius: 9px;
  background: #e31b54;
  color: #fff;
}

/* Align right-side tools next to the menu */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 768px) {
  .topbar__inner {
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 6px 0;
  }
  
  .topbar .topbar-search input[type="search"] {
    min-width: 89%;

}

  /* Stack left text + right tools */
  .topbar-left { width: 100%; order: 1;
          width: 350px;
        order: 1;
        margin: 15px 0 auto;
      
  }
  .topbar-right { width: 100%; order: 2; justify-content: space-between; }

  /* Topbar menu collapses like primary */
  .topbar-menu .topbar-links {
    display: none;            /* hidden until toggled (if you add a toggle) */
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #0f0f10;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 6px;
  }
  .topbar-menu .topbar-links.is-open { display: flex; }

  .topbar-menu > ul > li > a,
  .topbar-menu .topbar-links > li > a {
    padding: 12px;
    border-radius: 10px;
  }

  /* Submenus become “dropdown blocks” */
  .topbar-menu li .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border: 1px solid rgba(255,255,255,0.08);
    margin-top: 6px;
  }
}
