/* ==========================================================================
   HIMARS TECHPLACE — DESIGN SYSTEM
   Replace the values in :root with your real brand hex codes when ready.
   Everything below references these variables, so a palette swap is a
   one-place edit.
   ========================================================================== */

:root {
  /* Brand palette — sourced directly from the Hi-Mars logo (rocket mark) */
  --hm-navy-900: #062a3f;      /* deep shade of the brand blue — header, footer */
  --hm-navy-700: #0c3f5c;
  --hm-blue-600: #0098da;      /* Hi-Mars brand blue — primary accent / CTAs, links */
  --hm-blue-500: #2bb0e8;
  --hm-cyan-400: #17c3d6;      /* secondary accent — tech/software feel */
  --hm-red-500: #ed3237;       /* Hi-Mars brand red — logo accent, urgency/sale badges */
  --hm-orange-500: #ed3237;    /* alias kept for existing references; now brand red */
  --hm-green-600: #1fa25b;     /* in-stock, success, verified vendor */

  /* Gradients — mixing the two brand colors instead of flat fills.
     Hero gradient starts near-black so gradient-fill headline text (see
     .hm-text-gradient) has real contrast, the way ridwanportfolio.com's
     dark hero + gradient headline does — a mid-tone background is what
     made the earlier version hard to read. */
  --hm-gradient-hero: linear-gradient(135deg, #050b14 0%, #0c2a42 45%, var(--hm-blue-600) 100%);
  --hm-gradient-primary: linear-gradient(135deg, var(--hm-blue-600), #0077ad);
  --hm-gradient-cta: linear-gradient(135deg, var(--hm-red-500), #ff6b4a);
  --hm-gradient-brand: linear-gradient(90deg, var(--hm-blue-600) 0%, var(--hm-red-500) 100%);
  --hm-gradient-topbar: linear-gradient(90deg, #050b14, var(--hm-navy-700));

  --hm-gray-900: #111318;
  --hm-gray-700: #3a3f4b;
  --hm-gray-500: #6b7280;
  --hm-gray-300: #d1d5db;
  --hm-gray-100: #f4f5f7;
  --hm-white: #ffffff;

  /* Semantic tokens */
  --hm-bg: var(--hm-white);
  --hm-bg-alt: var(--hm-gray-100);
  --hm-text: var(--hm-gray-900);
  --hm-text-muted: var(--hm-gray-500);
  --hm-border: var(--hm-gray-300);
  --hm-link: var(--hm-blue-600);
  --hm-focus: var(--hm-cyan-400);

  /* Vendor-type accents (software sellers vs device sellers read differently) */
  --hm-badge-software: var(--hm-cyan-400);
  --hm-badge-device: var(--hm-orange-500);
  --hm-badge-service: var(--hm-blue-600);

  /* Type scale */
  --hm-font-heading: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --hm-font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --hm-fs-h1: clamp(2rem, 4.5vw, 3.2rem);
  --hm-fs-h2: clamp(1.4rem, 2.6vw, 1.9rem);
  --hm-fs-h3: 1.15rem;
  --hm-fs-body: 1rem;
  --hm-fs-small: 0.875rem;
  --hm-fs-product-title: 1.6rem;

  /* Spacing / radius / shadow */
  --hm-radius-sm: 6px;
  --hm-radius-md: 12px;
  --hm-radius-lg: 20px;
  --hm-shadow-card: 0 2px 10px rgba(10, 26, 60, 0.08);
  --hm-shadow-elevated: 0 12px 32px rgba(10, 26, 60, 0.14);
  --hm-container: 1240px;
  --hm-gutter: clamp(16px, 3vw, 32px);
}

/* ---------- Reset-lite ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--hm-font-body);
  font-size: var(--hm-fs-body);
  color: var(--hm-text);
  background: var(--hm-bg);
  line-height: 1.55;
}
h1, h2, h3, h4 {
  font-family: var(--hm-font-heading);
  color: var(--hm-navy-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: var(--hm-fs-h1); }
h2 { font-size: var(--hm-fs-h2); }
h3 { font-size: var(--hm-fs-h3); }
a { color: var(--hm-link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--hm-focus); outline-offset: 2px; }

.hm-container {
  max-width: var(--hm-container);
  margin-inline: auto;
  padding-inline: var(--hm-gutter);
}

/* ---------- Buttons ---------- */
.hm-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.75em 1.5em;
  border-radius: var(--hm-radius-sm);
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hm-btn:hover { transform: translateY(-1px); text-decoration: none; }
.hm-btn--primary { background: var(--hm-gradient-primary); color: var(--hm-white); }
.hm-btn--primary:hover { box-shadow: var(--hm-shadow-elevated); }
.hm-btn--outline { background: transparent; border-color: var(--hm-navy-900); color: var(--hm-navy-900); }
.hm-btn--cta { background: var(--hm-gradient-cta); color: var(--hm-white); }
.hm-btn--whatsapp { background: #25D366; color: var(--hm-white); }

/* Pill outline button (nav CTA style — bordered pill with a dot, like the
   reference site's "Contact Me For New Project") */
.hm-btn--pill {
  border-radius: 999px;
  border: 2px solid currentColor;
  background: transparent;
  padding: 0.6em 1.4em 0.6em 1em;
}
.hm-btn--pill .hm-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* Floating badge chip — small pill label with a leading dot, meant to sit
   over a photo/illustration or float near an element, matching the
   reference site's "Visual Design / Graphic Design / Photography" chips */
.hm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.95);
  color: var(--hm-navy-900);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--hm-shadow-elevated);
}
.hm-chip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hm-gradient-brand); }

/* ---------- Site header ---------- */
.hm-header {
  background: var(--hm-white);
  border-bottom: 1px solid var(--hm-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.hm-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hm-gutter);
  padding-block: 14px;
}
.hm-header__logo img {
  max-height: 40px;
  max-width: 170px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.hm-footer .custom-logo-link img { max-height: 44px; width: auto; height: auto; object-fit: contain; }
.hm-header__icon-link { position: relative; display: flex; align-items: center; color: var(--hm-navy-900); }
.hm-header__cart-count {
  position: absolute; top: -6px; right: -8px;
  background: var(--hm-red-500); color: #fff;
  font-size: 0.62rem; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.hm-whatsapp-link { display: inline-flex; align-items: center; }
.hm-header__nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.hm-header__nav a { color: var(--hm-navy-900); font-weight: 600; font-size: var(--hm-fs-small); white-space: nowrap; }
.hm-header__actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; white-space: nowrap; }
.hm-header__mobile-actions { display: none; }
.hm-header__actions .hm-btn { white-space: nowrap; padding: 0.5em 1em; font-size: 0.8rem; }

/* Top utility bar: NGN currency note + WhatsApp + delivery zones */
.hm-topbar {
  background: var(--hm-gradient-topbar);
  color: var(--hm-white);
  font-size: 0.8rem;
}
.hm-topbar__bar {
  display: flex;
  justify-content: space-between;
  padding-block: 6px;
  gap: 12px;
  flex-wrap: wrap;
}
.hm-topbar a { color: var(--hm-white); }
@media (max-width: 600px) {
  .hm-topbar { font-size: 0.68rem; }
  .hm-topbar__bar span:first-child { display: none; } /* delivery/currency note — WhatsApp link stays */
}

/* ---------- Marketplace vendor badges ---------- */
.hm-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--hm-white);
}
.hm-badge--software { background: var(--hm-gradient-primary); }
.hm-badge--device { background: var(--hm-gradient-cta); }
.hm-badge--service { background: var(--hm-gradient-brand); }
.hm-badge--verified { background: var(--hm-green-600); }

/* ---------- Product / vendor cards ---------- */
.hm-card {
  background: var(--hm-white);
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius-md);
  box-shadow: var(--hm-shadow-card);
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.hm-card:hover { box-shadow: var(--hm-shadow-elevated); transform: translateY(-2px); }
.hm-card__body { padding: 16px; }
.hm-card__price { font-weight: 700; font-size: 1.1rem; color: var(--hm-blue-600); }
.hm-card__price--was { text-decoration: line-through; color: var(--hm-text-muted); font-weight: 400; font-size: 0.9rem; }

/* Grid helpers */
.hm-grid { display: grid; gap: var(--hm-gutter); }
.hm-grid--2 { grid-template-columns: repeat(2, 1fr); }
.hm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.hm-grid--4 { grid-template-columns: repeat(4, 1fr); }
/* Responsive grid columns */
@media (max-width: 900px) {
  .hm-grid--3, .hm-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Mobile nav: hamburger + slide-out drawer ---------- */
.hm-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hm-header__burger span { display: block; height: 2px; width: 24px; background: var(--hm-navy-900); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.hm-header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hm-header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hm-header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hm-header__nav-close { display: none; }

@media (max-width: 1100px) {
  .hm-header__burger { display: flex; position: relative; z-index: 220; }
  .hm-header__actions { display: none; } /* duplicated inside the mobile drawer via .hm-header__mobile-actions */
  .hm-header__bar { padding-block: 10px; }
  .hm-header__logo img { max-height: 36px; }
  .hm-header__nav-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(6,10,20,0.5);
    z-index: 199;
  }
  .hm-header__nav-backdrop.is-open { display: block; }
  .hm-header__nav {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--hm-white);
    box-shadow: -8px 0 24px rgba(0,0,0,0.15);
    padding: 24px 24px 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 210;
    overflow-y: auto;
  }
  .hm-header__nav.is-open { transform: translateX(0); }
  .hm-header__nav-close {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    margin-left: auto; margin-bottom: 20px;
    border: 1px solid var(--hm-border); border-radius: 50%;
    background: var(--hm-bg-alt); font-size: 1.1rem; line-height: 1;
    cursor: pointer;
  }
  .hm-header__nav ul { flex-direction: column; gap: 4px; }
  .hm-header__nav ul li a { display: block; padding: 12px 8px; border-bottom: 1px solid var(--hm-border); }
  .hm-header__nav .hm-mega-menu { display: block !important; position: static; box-shadow: none; border: none; padding: 4px 0 4px 16px; min-width: 0; grid-template-columns: 1fr; }
  .hm-header__mobile-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
  .hm-header__mobile-actions a.hm-btn { text-align: center; }
}

@media (max-width: 560px) {
  .hm-grid--2, .hm-grid--3, .hm-grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Hero (homepage) ---------- */
.hm-hero {
  position: relative;
  background: var(--hm-gradient-hero);
  color: var(--hm-white);
  padding-block: 64px;
  overflow: hidden;
}
.hm-hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(237,50,55,0.35) 0%, rgba(237,50,55,0) 70%);
  pointer-events: none;
}
.hm-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--hm-gradient-brand);
}
.hm-hero__layout { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.hm-hero__text { flex: 1 1 480px; max-width: 640px; }
.hm-hero__graphic { flex: 0 1 340px; max-width: 100%; }
@media (max-width: 800px) { .hm-hero__graphic { display: none; } } /* keep mobile hero text-focused and lighter */

.hm-hero > .hm-container { position: relative; z-index: 1; }
.hm-hero h1 { color: var(--hm-white); }
.hm-hero__subtitle { color: rgba(255,255,255,0.8); max-width: 560px; }
.hm-hero__actions { display: flex; gap: 16px; margin-top: 24px; flex-wrap: wrap; }

/* ---------- Section spacing ---------- */
.hm-section { padding-block: 56px; }
.hm-section--alt { background: var(--hm-bg-alt); }
.hm-section--tint-blue { background: linear-gradient(180deg, #eaf6fd 0%, #ffffff 100%); }
.hm-section--tint-red { background: linear-gradient(180deg, #fdecec 0%, #ffffff 100%); }
.hm-section--navy { background: var(--hm-gradient-hero); color: #fff; }
.hm-section--navy h2, .hm-section--navy h3 { color: #fff; }
.hm-section__head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 24px; }

/* ---------- Booking / portfolio module ---------- */
.hm-portfolio-card img { border-radius: var(--hm-radius-md) var(--hm-radius-md) 0 0; aspect-ratio: 4/3; object-fit: cover; }
.hm-quote-form {
  background: var(--hm-white);
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius-lg);
  padding: 32px;
  box-shadow: var(--hm-shadow-card);
  position: relative;
  overflow: hidden;
}
.hm-quote-form::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--hm-gradient-brand); }
.hm-quote-form fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.hm-quote-form legend {
  font-weight: 700; margin-bottom: 10px; color: var(--hm-blue-600);
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.hm-quote-form h2, .hm-quote-form h3 { font-size: 1.15rem; margin: 0 0 16px; }
.hm-quote-form label { display: block; font-weight: 600; font-size: 0.85rem; color: var(--hm-navy-900); margin-bottom: 6px; }
.hm-quote-form input[type="text"],
.hm-quote-form input[type="email"],
.hm-quote-form input[type="password"],
.hm-quote-form input[type="tel"],
.hm-quote-form input[type="url"],
.hm-quote-form select,
.hm-quote-form textarea,
.hm-quote-form .dokan-form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius-sm);
  margin-bottom: 18px;
  font-size: 0.9rem;
  font-family: var(--hm-font-body);
  box-sizing: border-box;
}
.hm-quote-form input:focus, .hm-quote-form select:focus, .hm-quote-form textarea:focus { outline: 2px solid var(--hm-blue-600); outline-offset: 1px; }
.hm-quote-form button[type="submit"],
.hm-quote-form input[type="submit"] {
  background: var(--hm-gradient-primary);
  color: #fff;
  border: none;
  padding: 0.75em 1.75em;
  border-radius: var(--hm-radius-sm);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
}
.hm-quote-form .form-group { margin-bottom: 4px; }
/* De-emphasize the Login block Dokan stacks above Registration — smaller,
   collapsible, so new sellers land on Registration first without clutter */
.hm-quote-form form.woocommerce-form-login,
.hm-quote-form > p.woocommerce-form-row:has(+ form.woocommerce-form-login) {
  background: var(--hm-bg-alt);
  border-radius: var(--hm-radius-md);
  padding: 16px 18px;
  margin-bottom: 24px;
}

.hm-site-type-option {
  position: relative;
  border: 2px solid var(--hm-border);
  border-radius: var(--hm-radius-md);
  padding: 24px 20px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  display: block;
}
.hm-site-type-option:hover { transform: translateY(-2px); box-shadow: var(--hm-shadow-card); }
.hm-site-type-option:has(input:checked) { border-color: var(--hm-blue-600); background: #eef4ff; box-shadow: var(--hm-shadow-elevated); }
.hm-site-type-option:has(input:checked)::after {
  content: "✓";
  position: absolute; top: 10px; right: 12px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--hm-gradient-primary); color: #fff;
  font-size: 0.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ==========================================================================
   MARKETPLACE COMPONENTS
   Patterns borrowed from established marketplaces (Amazon-style trust
   signals, Envato-style rating/sold-count, Etsy-style seller attribution)
   adapted to the Himars palette.
   ========================================================================== */

/* Trust bar — sits just under the hero, standard on marketplace homepages */
.hm-trustbar {
  background: var(--hm-white);
  border-bottom: 1px solid var(--hm-border);
}
.hm-trustbar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-block: 20px;
}
.hm-trustbar__item { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 600; color: var(--hm-navy-900); }
.hm-trustbar__item .hm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hm-blue-600); flex-shrink: 0; }
@media (max-width: 800px) { .hm-trustbar__grid { grid-template-columns: repeat(2, 1fr); } }

/* Star ratings */
.hm-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8rem; color: var(--hm-text-muted); }
.hm-rating__stars { color: #f5a623; letter-spacing: 1px; }
.hm-rating__count { color: var(--hm-text-muted); }

/* Richer product card: image with overlay badges + wishlist, sold-by line */
.hm-product-card { position: relative; display: flex; flex-direction: column; height: 100%; min-width: 0; }
.hm-product-card__media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--hm-bg-alt); }
.hm-product-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform 0.2s ease; }
.hm-product-card:hover .hm-product-card__media img { transform: scale(1.04); }
.hm-product-card__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.hm-product-card__actions {
  position: absolute; top: 10px; right: 10px;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateX(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 3;
}
.hm-product-card:hover .hm-product-card__actions { opacity: 1; transform: translateX(0); }
.hm-product-card__action-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--hm-white); border: 1px solid var(--hm-border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--hm-shadow-card);
  color: var(--hm-navy-900); text-decoration: none;
}
.hm-product-card__action-btn:hover { background: var(--hm-blue-600); color: #fff; border-color: var(--hm-blue-600); }
.hm-product-card__action-btn.is-active { background: var(--hm-red-500); color: #fff; border-color: var(--hm-red-500); }
.hm-product-card__body { padding: 14px 16px; display: flex; flex-direction: column; flex-grow: 1; min-width: 0; }
.hm-product-card__soldby { font-size: 0.78rem; color: var(--hm-text-muted); margin-bottom: 4px; }
.hm-product-card__soldby a { color: var(--hm-text-muted); }
.hm-product-card__title {
  font-size: 0.95rem; font-weight: 600; color: var(--hm-navy-900); margin: 0 0 6px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}
.hm-product-card__price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; }
.hm-product-card__cart-row { margin-top: 10px; }
.hm-product-card__cart-row .button,
.hm-product-card__cart-row a.add_to_cart_button,
.hm-product-card__cart-row a.button {
  display: block; text-align: center;
  background: var(--hm-gradient-primary) !important;
  color: #fff !important;
  border: none !important;
  padding: 0.6em 1em !important;
  border-radius: var(--hm-radius-sm) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  text-decoration: none;
}
.hm-product-card__cart-row .added_to_cart { display: block; text-align: center; font-size: 0.78rem; margin-top: 6px; }

/* Sticky filter sidebar (shop / category pages) — standard marketplace pattern */
.hm-shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.hm-filters { position: sticky; top: 90px; background: var(--hm-white); border: 1px solid var(--hm-border); border-radius: var(--hm-radius-md); padding: 20px; }
.hm-filters h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.hm-filters .hm-filter-group { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--hm-border); }
.hm-filters .hm-filter-group:last-child { border-bottom: none; }
.hm-filters label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; margin-bottom: 8px; cursor: pointer; }
@media (max-width: 900px) { .hm-shop-layout { grid-template-columns: 1fr; } .hm-filters { position: static; } }

/* Mega-menu style category nav (hover flyout from header) */
.hm-header__nav li { position: relative; }
.hm-mega-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: var(--hm-white);
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius-md);
  box-shadow: var(--hm-shadow-elevated);
  padding: 20px;
  min-width: 480px;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
.hm-header__nav li:hover .hm-mega-menu { display: grid; }
.hm-mega-menu a { font-weight: 500; color: var(--hm-text); font-size: 0.85rem; }
.hm-mega-menu strong { display: block; color: var(--hm-navy-900); margin-bottom: 8px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }

/* ==========================================================================
   MOTION SYSTEM — scroll reveal, hover lift, glow pulse, floating blobs.
   Respects reduced-motion preference.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  [data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  [data-animate].is-visible { opacity: 1; transform: translateY(0); }
  [data-animate="fade"] { transform: none; }
  [data-animate-delay="1"] { transition-delay: 0.1s; }
  [data-animate-delay="2"] { transition-delay: 0.2s; }
  [data-animate-delay="3"] { transition-delay: 0.3s; }
  [data-animate-delay="4"] { transition-delay: 0.4s; }

  @keyframes hm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
  @keyframes hm-pulse-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,152,218,0.4); } 50% { box-shadow: 0 0 0 12px rgba(0,152,218,0); } }
  @keyframes hm-gradient-shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

  .hm-hero { background-size: 200% 200%; animation: hm-gradient-shift 12s ease infinite; }
  .hm-float { animation: hm-float 4s ease-in-out infinite; }
  .hm-btn--primary:focus-visible, .hm-btn--cta:focus-visible { animation: hm-pulse-glow 1.4s ease infinite; }
}

/* ---------- Category tiles with per-category designed backgrounds ---------- */
.hm-cat-tile {
  position: relative;
  border-radius: var(--hm-radius-lg);
  overflow: hidden;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: var(--hm-white);
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hm-cat-tile:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--hm-shadow-elevated); }
.hm-cat-tile::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -2;
  transition: transform 0.4s ease;
}
.hm-cat-tile:hover::before { transform: scale(1.08); }
.hm-cat-tile::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6,42,63,0.1) 0%, rgba(6,42,63,0.75) 100%);
}
.hm-cat-tile__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  font-size: 1.6rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.hm-cat-tile__title { font-family: var(--hm-font-heading); font-size: 1.15rem; margin: 0; }
.hm-cat-tile__count { font-size: 0.78rem; opacity: 0.85; }

.hm-cat-tile--software::before { background: var(--hm-gradient-primary); }
.hm-cat-tile--phones::before { background: linear-gradient(135deg, #062a3f, #0098da); }
.hm-cat-tile--laptops::before { background: linear-gradient(135deg, #1b3a52, #2bb0e8); }
.hm-cat-tile--service::before { background: var(--hm-gradient-cta); }

/* ---------- Glassmorphic sticky header ---------- */
.hm-header {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------- Gradient text utility (white/light backgrounds only —
   using this on the hero's own gradient background makes text blend into
   it, which is why it looked unreadable; see .hm-highlight for hero use) ---------- */
.hm-text-gradient {
  background: var(--hm-gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero heading highlight — solid white text with a glowing
   gradient underline, so it stays fully readable against the hero's own
   gradient background while still carrying brand color ---------- */
.hm-highlight {
  color: #fff;
  background-image: var(--hm-gradient-brand);
  background-repeat: no-repeat;
  background-size: 100% 0.32em;
  background-position: 0 88%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hm-shop-sort select { padding: 8px 12px; border-radius: var(--hm-radius-sm); border: 1px solid var(--hm-border); font-size: 0.85rem; }

.hm-filters .price_slider_amount { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; margin-top: 10px; }
.hm-filters .price_slider_amount .button {
  background: var(--hm-gradient-primary); color: #fff; border: none; border-radius: var(--hm-radius-sm);
  padding: 6px 14px; font-size: 0.78rem; font-weight: 600; cursor: pointer;
}
.hm-filters .ui-slider { position: relative; height: 4px; background: var(--hm-border); border-radius: 4px; margin: 14px 4px; }
.hm-filters .ui-slider .ui-slider-range { position: absolute; height: 100%; background: var(--hm-gradient-primary); border-radius: 4px; }
.hm-filters .ui-slider .ui-slider-handle {
  position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; margin-left: -7px;
  background: var(--hm-white); border: 2px solid var(--hm-blue-600); border-radius: 50%; cursor: pointer;
}
.hm-filters .woocommerce-widget-layered-nav-list { list-style: none; padding: 0; margin: 0; }
.hm-filters .woocommerce-widget-layered-nav-list li { margin-bottom: 6px; font-size: 0.85rem; }
.hm-filters .woocommerce-widget-layered-nav-list a { color: var(--hm-text); }
.hm-filters .woocommerce-widget-layered-nav-list .count { color: var(--hm-text-muted); font-size: 0.78rem; }

/* ---------- Promo banner + category product carousels ---------- */
.hm-promo-banner {
  background: var(--hm-gradient-hero);
  border-radius: var(--hm-radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.hm-carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.hm-carousel__item { flex: 0 0 220px; scroll-snap-align: start; }
.hm-carousel::-webkit-scrollbar { height: 6px; }
.hm-carousel::-webkit-scrollbar-thumb { background: var(--hm-border); border-radius: 4px; }

/* ---------- Homepage Ads strip ---------- */
.hm-ads-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.hm-ad-slot { border-radius: var(--hm-radius-md); overflow: hidden; box-shadow: var(--hm-shadow-card); position: relative; }
.hm-ad-slot img { width: 100%; display: block; }
.hm-ad-label { position: absolute; top: 8px; left: 8px; background: rgba(6,42,63,0.75); color: #fff; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 8px; border-radius: 4px; }

/* ---------- Single product page ---------- */
.hm-product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.hm-product-detail__gallery img { border-radius: var(--hm-radius-md); }
.hm-product-detail__price .price { font-size: 1.6rem; font-weight: 700; color: var(--hm-navy-900); }
.hm-product-detail__price ins { text-decoration: none; }
.hm-product-detail__price del { color: var(--hm-text-muted); font-size: 1rem; margin-right: 8px; }
.hm-product-detail__excerpt { color: var(--hm-text-muted); font-size: 0.95rem; margin: 12px 0; }
.hm-product-detail__cart { margin-top: 16px; }
.hm-product-detail__cart .quantity input { width: 60px; padding: 10px; border: 1px solid var(--hm-border); border-radius: var(--hm-radius-sm); margin-right: 10px; }
.hm-product-detail__cart button.single_add_to_cart_button {
  background: var(--hm-gradient-primary) !important;
  color: #fff !important;
  border: none !important;
  padding: 0.85em 2em !important;
  border-radius: var(--hm-radius-sm) !important;
  font-weight: 700 !important;
  cursor: pointer;
}
.hm-product-detail__meta { font-size: 0.82rem; color: var(--hm-text-muted); margin-top: 16px; }
.hm-product-detail__meta a { color: var(--hm-blue-600); }
.hm-product-detail__tabs { margin-top: 56px; }
.hm-product-detail__tabs .wc-tabs { display: flex; gap: 8px; list-style: none; padding: 0; border-bottom: 2px solid var(--hm-border); margin-bottom: 24px; }
.hm-product-detail__tabs .wc-tabs li { margin: 0; }
.hm-product-detail__tabs .wc-tabs li a { display: inline-block; padding: 10px 18px; font-weight: 600; color: var(--hm-text-muted); }
.hm-product-detail__tabs .wc-tabs li.active a { color: var(--hm-blue-600); border-bottom: 2px solid var(--hm-blue-600); margin-bottom: -2px; }
@media (max-width: 900px) { .hm-product-detail { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.hm-footer { background: var(--hm-gradient-hero); color: rgba(255,255,255,0.8); padding-block: 56px 24px; position: relative; }
.hm-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--hm-gradient-brand); }
.hm-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.hm-footer h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.hm-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.hm-footer a { color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.hm-footer a:hover { color: #fff; text-decoration: underline; }
.hm-footer__brand p { max-width: 320px; font-size: 0.9rem; line-height: 1.6; }
.hm-footer__trust { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hm-footer__trust span { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; padding: 5px 12px; font-size: 0.75rem; }
.hm-footer__bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; }
@media (max-width: 800px) { .hm-footer__grid { grid-template-columns: 1fr 1fr; } }
