/* =========================================================
   HEADER V1 - COMPLETE STYLESHEET
   WordPress + WooCommerce
   ========================================================= */

:root {
  --hv1-navy: #102a66;
  --hv1-navy-dark: #0b1f4d;
  --hv1-yellow: #f8bf17;
  --hv1-green: #1f9d55;
  --hv1-text: #13213c;
  --hv1-muted: #64748b;
  --hv1-border: #e5eaf2;
  --hv1-soft: #f7f9fd;
  --hv1-soft-2: #eef3ff;
  --hv1-surface: #ffffff;
  --hv1-shadow: 0 12px 30px rgba(16, 42, 102, 0.08);
  --hv1-shadow-2: 0 18px 45px rgba(16, 42, 102, 0.14);
  --hv1-radius: 16px;
  --hv1-radius-lg: 18px;
}

.header-v1-enabled {
  background: #fff;
}

.hv1-header {
  width: 100%;
  position: relative;
  z-index: 50;
  color: var(--hv1-text);
  font-family: inherit;
}

.hv1-container {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
}

/* =========================================================
   TOP BAR
   ========================================================= */

.hv1-topbar {
  background: var(--hv1-navy-dark);
  color: #fff;
  font-size: 13px;
}

.hv1-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.hv1-topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  opacity: 0.96;
}

.hv1-topbar__icon {
  font-size: 14px;
  line-height: 1;
}

/* =========================================================
   MAIN BAR
   ========================================================= */

.hv1-main {
  background: #fff;
  border-bottom: 1px solid var(--hv1-border);
}

.hv1-main__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
}

.hv1-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.hv1-brand__mark {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff, #f7f9fd);
  border: 1px solid var(--hv1-border);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  flex: 0 0 auto;
}

.hv1-brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hv1-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.hv1-brand__text strong {
  font-size: 17px;
  color: var(--hv1-navy);
  letter-spacing: 0.2px;
}

.hv1-brand__text span {
  font-size: 12px;
  margin-top: 4px;
  color: var(--hv1-muted);
}

/* =========================================================
   SEARCH
   ========================================================= */

.hv1-search {
  display: grid;
  grid-template-columns: 200px 1fr 60px;
  align-items: stretch;
  border: 1px solid var(--hv1-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  background: #fff;
}

.hv1-search__cat {
  border: none;
  border-right: 1px solid var(--hv1-border);
  background: var(--hv1-soft);
  color: var(--hv1-text);
  font-weight: 600;
  font-size: 14px;
  padding: 0 14px;
  outline: none;
}

.hv1-search__input {
  border: none;
  outline: none;
  padding: 0 16px;
  font-size: 15px;
  color: var(--hv1-text);
  min-width: 0;
}

.hv1-search__input::placeholder {
  color: #94a3b8;
}

.hv1-search__btn {
  border: none;
  background: var(--hv1-yellow);
  color: var(--hv1-navy-dark);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.hv1-search__btn:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}

/* =========================================================
   ACTIONS
   ========================================================= */

.hv1-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.hv1-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--hv1-text);
  border-radius: 12px;
  padding: 8px 10px;
  transition: background 0.15s ease;
}

.hv1-action:hover {
  background: rgba(16, 42, 102, 0.05);
}

.hv1-action__icon {
  font-size: 20px;
  color: var(--hv1-navy);
  line-height: 1;
}

.hv1-action__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.hv1-action__text small {
  font-size: 11px;
  color: var(--hv1-muted);
}

.hv1-action__text strong {
  font-size: 13px;
  color: var(--hv1-text);
}

.hv1-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-weight: 700;
}

/* =========================================================
   NAVIGATION BAR
   ========================================================= */

.hv1-navwrap {
  background: var(--hv1-navy);
  color: #fff;
  box-shadow: var(--hv1-shadow);
}

.hv1-navwrap__inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
}

.hv1-primary-nav {
  min-width: 0;
}

/* Main menu list */
.hv1-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hv1-nav::-webkit-scrollbar {
  display: none;
}

.hv1-nav > li {
  position: relative;
  margin: 0;
  padding: 0;
}

.hv1-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #eef3ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.hv1-nav > li > a:hover,
.hv1-nav > li.current-menu-item > a,
.hv1-nav > li.current_page_item > a,
.hv1-nav > li.current-menu-ancestor > a,
.hv1-nav > li.current-menu-parent > a {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hv1-nav > li.menu-item-has-children > a::after {
  content: "▾";
  font-size: 11px;
  opacity: 0.9;
  margin-left: 2px;
}

/* First level dropdown */
.hv1-nav .sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 260px;
  padding: 10px;
  margin: 0;
  list-style: none;
  background: var(--hv1-surface);
  border: 1px solid var(--hv1-border);
  border-radius: var(--hv1-radius-lg);
  box-shadow: var(--hv1-shadow-2);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.hv1-nav > li:hover > .sub-menu,
.hv1-nav > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hv1-nav .sub-menu li {
  position: relative;
  margin: 0;
  padding: 0;
}

.hv1-nav .sub-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--hv1-text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  transition: background 0.16s ease, color 0.16s ease, padding-left 0.16s ease;
}

.hv1-nav .sub-menu a:hover,
.hv1-nav .sub-menu .current-menu-item > a,
.hv1-nav .sub-menu .current_page_item > a {
  background: var(--hv1-soft);
  color: var(--hv1-navy);
  padding-left: 14px;
}

.hv1-nav .sub-menu li.menu-item-has-children > a::after {
  content: "›";
  font-size: 14px;
  color: var(--hv1-muted);
}

/* Deeper levels */
.hv1-nav .sub-menu .sub-menu {
  top: 0;
  left: calc(100% + 10px);
  transform: translateX(8px);
}

.hv1-nav .sub-menu li:hover > .sub-menu,
.hv1-nav .sub-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.hv1-nav .sub-menu li + li {
  margin-top: 4px;
}

/* =========================================================
   ALL-CATEGORY BUTTON
   ========================================================= */

.hv1-categories {
  position: relative;
}

.hv1-categories__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--hv1-yellow);
  color: var(--hv1-navy-dark);
  border: none;
  cursor: pointer;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(248, 191, 23, 0.22);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.hv1-categories__btn:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

.hv1-categories__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 340px;
  max-width: 440px;
  max-height: 420px;
  overflow: auto;
  padding: 12px;
  background: var(--hv1-surface);
  border: 1px solid var(--hv1-border);
  border-radius: 18px;
  box-shadow: var(--hv1-shadow-2);
  z-index: 999;
  display: none;
}

.hv1-categories:hover .hv1-categories__dropdown,
.hv1-categories:focus-within .hv1-categories__dropdown,
.hv1-categories.is-open .hv1-categories__dropdown {
  display: block;
}

.hv1-categories__dropdown ul,
.hv1-categories__dropdown .menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hv1-categories__dropdown li {
  position: relative;
  margin: 0;
  padding: 0;
}

.hv1-categories__dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: var(--hv1-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  padding: 11px 12px;
  border-radius: 12px;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
  word-break: break-word;
}

.hv1-categories__dropdown a:hover,
.hv1-categories__dropdown .current-menu-item > a,
.hv1-categories__dropdown .current_page_item > a,
.hv1-categories__dropdown .current-menu-ancestor > a {
  background: var(--hv1-soft);
  color: var(--hv1-navy);
  transform: translateX(2px);
}

.hv1-categories__dropdown > ul > li > a,
.hv1-categories__dropdown > .menu > li > a {
  border-left: 3px solid transparent;
}

.hv1-categories__dropdown > ul > li:hover > a,
.hv1-categories__dropdown > .menu > li:hover > a {
  border-left-color: var(--hv1-yellow);
}

.hv1-categories__dropdown li.menu-item-has-children > a::after {
  content: "▸";
  font-size: 12px;
  color: var(--hv1-muted);
  flex: 0 0 auto;
}

/* Nested categories */
.hv1-categories__dropdown .sub-menu {
  list-style: none;
  margin: 6px 0 0;
  padding: 6px 0 0 14px;
  border-left: 1px solid rgba(16, 42, 102, 0.10);
}

.hv1-categories__dropdown .sub-menu a {
  font-size: 13px;
  font-weight: 500;
  color: #31415f;
  padding: 9px 10px;
  border-radius: 10px;
  background: transparent;
}

.hv1-categories__dropdown .sub-menu a:hover {
  background: #f4f7fc;
  color: var(--hv1-navy);
}

.hv1-categories__dropdown .sub-menu .sub-menu {
  padding-left: 14px;
  margin-top: 4px;
  border-left-color: rgba(16, 42, 102, 0.08);
}

.hv1-categories__dropdown .sub-menu .sub-menu a {
  font-size: 12.5px;
  color: #4b5c7b;
}

/* =========================================================
   WHATSAPP + LOCATION
   ========================================================= */

.hv1-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--hv1-green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 12px;
  white-space: nowrap;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.hv1-whatsapp:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
}

.hv1-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  white-space: nowrap;
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.hv1-nav > li > a:focus,
.hv1-nav .sub-menu a:focus,
.hv1-categories__dropdown a:focus,
.hv1-whatsapp:focus,
.hv1-categories__btn:focus,
.hv1-action:focus,
.hv1-search__btn:focus,
.hv1-search__input:focus,
.hv1-search__cat:focus {
  outline: 2px solid rgba(248, 191, 23, 0.9);
  outline-offset: 2px;
}

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

@media (max-width: 1200px) {
  .hv1-main__inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hv1-actions {
    justify-content: flex-start;
  }

  .hv1-search {
    grid-template-columns: 170px 1fr 56px;
  }

  .hv1-navwrap__inner {
    grid-template-columns: auto 1fr;
    row-gap: 12px;
  }

  .hv1-whatsapp,
  .hv1-location {
    justify-self: start;
  }
}

@media (max-width: 991px) {
  .hv1-nav {
    flex-wrap: nowrap;
  }

  .hv1-nav .sub-menu {
    position: static;
    min-width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 6px 0 0 14px;
    background: transparent;
  }

  .hv1-nav .sub-menu a {
    color: #dce5ff;
    background: rgba(255, 255, 255, 0.04);
  }

  .hv1-nav .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .hv1-nav .sub-menu .sub-menu {
    left: auto;
    padding-left: 14px;
  }

  .hv1-categories__dropdown {
    min-width: 100%;
    max-width: 100%;
  }

  .hv1-categories__dropdown .sub-menu {
    padding-left: 12px;
  }
}

@media (max-width: 768px) {
  .hv1-container {
    width: min(100% - 18px, 1400px);
  }

  .hv1-topbar {
    font-size: 12px;
  }

  .hv1-topbar__inner {
    justify-content: center;
  }

  .hv1-main__inner {
    padding: 14px 0;
  }

  .hv1-brand__mark {
    width: 48px;
    height: 48px;
  }

  .hv1-brand__text strong {
    font-size: 15px;
  }

  .hv1-search {
    grid-template-columns: 1fr 54px;
  }

  .hv1-search__cat {
    display: none;
  }

  .hv1-action__text small {
    display: none;
  }

  .hv1-location {
    justify-self: start;
  }

  .hv1-navwrap__inner {
    grid-template-columns: 1fr;
  }

  .hv1-categories__btn,
  .hv1-whatsapp,
  .hv1-location {
    width: 100%;
    justify-content: center;
  }

  .hv1-nav {
    width: 100%;
    padding-bottom: 4px;
  }

  .hv1-nav > li > a {
    padding: 10px 12px;
    font-size: 13px;
  }

  .hv1-categories__dropdown {
    padding: 10px;
    border-radius: 16px;
  }

  .hv1-categories__dropdown a {
    padding: 10px 11px;
    font-size: 13.5px;
  }

  .hv1-categories__dropdown .sub-menu a {
    font-size: 12.8px;
  }
}

@media (max-width: 480px) {
  .hv1-topbar {
    display: none;
  }

  .hv1-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hv1-action {
    flex: 1;
    justify-content: center;
  }

  .hv1-action__text strong {
    display: none;
  }

  .hv1-brand__text span {
    display: none;
  }

  .hv1-nav > li > a {
    padding: 9px 10px;
  }

  .hv1-categories__dropdown a {
    padding: 9px 10px;
  }

  .hv1-categories__dropdown .sub-menu {
    padding-left: 10px;
  }
}