:root {
  --aghp-ink: #10243d;
  --aghp-muted: #60758f;
  --aghp-line: #d9e3ef;
  --aghp-bg: #ffffff;
  --aghp-soft: #f4f8fd;
  --aghp-overlay: rgba(13, 26, 45, 0.54);
  --aghp-accent: #ff6a3d;
  --aghp-radius: 15px;
  --aghp-shadow: 0 18px 42px rgba(7, 24, 46, 0.16);
}

.aghp-header-wrap { width: 100%; }
.aghp-header-wrap__inner {
  width: min(1320px, 96vw);
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.aghp-topbar {
  background: #0d223b;
  color: #dce8f5;
  font-size: 12px;
}
.aghp-topbar__inner {
  width: min(1320px, 96vw);
  margin: 0 auto;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.aghp-topbar__msg { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aghp-topbar__links { display: inline-flex; align-items: center; gap: 12px; }
.aghp-topbar__links a { color: #fff; text-decoration: none; font-weight: 600; }
.aghp-topbar__trust { color: #a9bfd8; font-weight: 600; }

.aghp-logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--aghp-ink); }
.aghp-logo img { max-height: 44px; width: auto; display: block; }
.aghp-logo--text { font-size: 20px; font-weight: 800; }

.aghp-ico { display: inline-block; width: 18px; height: 18px; position: relative; }
.aghp-ico--search { border: 2px solid #7f97b2; border-radius: 999px; }
.aghp-ico--search::after { content: ""; width: 7px; height: 2px; background: #7f97b2; border-radius: 2px; position: absolute; right: -4px; bottom: -1px; transform: rotate(43deg); }
.aghp-ico--user { border: 2px solid #173657; border-radius: 999px; }
.aghp-ico--user::after { content: ""; position: absolute; left: -3px; right: -3px; bottom: -8px; height: 7px; border: 2px solid #173657; border-top: 0; border-radius: 0 0 12px 12px; }
.aghp-ico--bag { border: 2px solid #173657; border-radius: 4px 4px 7px 7px; }
.aghp-ico--bag::before { content: ""; position: absolute; left: 3px; right: 3px; top: -7px; height: 5px; border: 2px solid #173657; border-bottom: 0; border-radius: 8px 8px 0 0; }

.aghp-search {
  position: relative;
  width: min(var(--aghp-search-width), 94vw);
  max-width: 100%;
}

.aghp-modal,
.aghp-drawer { position: fixed; inset: 0; z-index: 9500; }
.aghp-modal[hidden],
.aghp-drawer[hidden] { display: none !important; }
.aghp-modal__overlay,
.aghp-drawer__overlay { position: absolute; inset: 0; background: var(--aghp-overlay); }

.aghp-modal__panel {
  position: relative;
  margin: 7vh auto 0;
  width: min(820px, 94vw);
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--aghp-shadow);
  border: 1px solid #e2eaf3;
  padding: 16px;
}
.aghp-modal__close,
.aghp-drawer__close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--aghp-line);
  background: #fff;
  border-radius: 10px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.aghp-search-box {
  display: grid;
  grid-template-columns: 1fr 44px;
  align-items: center;
  gap: 0;
  border: 1.5px solid #d7e2ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(16, 36, 61, 0.08);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.aghp-search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  height: 52px;
  padding: 0 14px;
  font-size: 14px;
  background: transparent;
}
.aghp-search-box button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
}
.aghp-search-box button:hover {
  background: #f1f6fb;
}
.aghp-search-box:focus-within {
  border-color: #8db4da;
  box-shadow: 0 10px 22px rgba(16, 36, 61, 0.11);
}
.aghp-search-box--midocean .aghp-ico--search {
  width: 20px;
  height: 20px;
  border-color: #607f9f;
}
.aghp-search-box--midocean .aghp-ico--search::after {
  background: #607f9f;
}

.aghp-search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  margin-top: 0;
  border: 1px solid #e7eef6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(7, 24, 46, 0.18);
  max-height: min(62vh, 520px);
  overflow: auto;
  z-index: 600;
}
.aghp-search-suggest:empty { display: none; }
.aghp-s-group { padding: 10px; border-bottom: 1px solid #eef3f8; }
.aghp-s-group:last-child { border-bottom: 0; }
.aghp-s-title { margin: 0 0 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--aghp-muted); font-weight: 700; }
.aghp-s-products { display: grid; gap: 6px; }
.aghp-s-item {
  display: grid; grid-template-columns: 54px 1fr; gap: 9px; align-items: center;
  text-decoration: none; color: var(--aghp-ink); border-radius: 11px; padding: 6px;
}
.aghp-s-item:hover { background: var(--aghp-soft); }
.aghp-s-item__media {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  overflow: hidden;
  background: #eef4fb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.aghp-s-item img { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; display: block; }
.aghp-s-item__media.is-broken { background: linear-gradient(135deg,#eaf1fa,#dce7f3); }
.aghp-s-item__ph { width: 54px; height: 54px; border-radius: 10px; background: linear-gradient(135deg,#eaf1fa,#dce7f3); }
.aghp-s-item__title { display: block; font-size: 13px; font-weight: 700; line-height: 1.22; }
.aghp-s-item__meta { display: block; margin-top: 3px; font-size: 12px; color: #597189; }
.aghp-s-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.aghp-s-list a { display: block; text-decoration: none; color: var(--aghp-ink); font-size: 13px; font-weight: 600; padding: 8px 10px; border-radius: 9px; }
.aghp-s-list a:hover { background: var(--aghp-soft); }

.aghp-account,
.aghp-cart__btn {
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--aghp-line);
  background: #fff;
  color: var(--aghp-ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.aghp-account__label { display: inline-block; }
.aghp-cart { position: relative; }
.aghp-cart-count {
  min-width: 17px; height: 17px; border-radius: 999px;
  background: #e84a2a; color: #fff; font-size: 10px; line-height: 17px; text-align: center;
  position: absolute;
  right: 8px;
  top: 7px;
  transform: translate(45%, -45%);
  font-weight: 700;
  z-index: 2;
}

.aghp-drawer__panel {
  position: absolute;
  top: 0; bottom: 0;
  width: min(420px, 96vw);
  background: #fff;
  box-shadow: var(--aghp-shadow);
  display: grid;
  grid-template-rows: auto 1fr;
}
.aghp-drawer--right .aghp-drawer__panel { right: 0; transform: translateX(0); }
.aghp-drawer--left .aghp-drawer__panel { left: 0; transform: translateX(0); width: min(380px, 96vw); }
.aghp-drawer__head {
  min-height: 60px;
  border-bottom: 1px solid #e8eef6;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.aghp-drawer__head h3 { margin: 0; font-size: 16px; color: var(--aghp-ink); }
.aghp-drawer__body { overflow: auto; padding: 12px; }

.aghp-account-links { display: grid; gap: 7px; margin: 12px 0 0; }
.aghp-account-links a { color: #17436d; text-decoration: none; font-size: 13px; }

.aghp-cart-mini-body .woocommerce-mini-cart { margin: 0; padding: 0; max-height: 55vh; overflow: auto; }
.aghp-cart-mini-body .woocommerce-mini-cart-item { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 8px 0; margin: 0; border-bottom: 1px solid #eff3f8; }
.aghp-cart-mini-body .woocommerce-mini-cart-item img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.aghp-cart-mini-body .woocommerce-mini-cart-item .variation,
.aghp-cart-mini-body .woocommerce-mini-cart-item .wc-item-meta { display: none !important; }
.aghp-cart-mini-body .woocommerce-mini-cart-item a { text-decoration: none; color: var(--aghp-ink); font-size: 12px; font-weight: 700; line-height: 1.2; }
.aghp-cart-mini-body .woocommerce-mini-cart-item .quantity { display: inline-flex; gap: 6px; align-items: center; color: #5f748d; font-size: 11px; white-space: nowrap; }
.aghp-cart-mini-body .woocommerce-mini-cart__buttons { display: none; }
.aghp-cart-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }

.aghp-btn {
  min-height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 0 14px;
}
.aghp-btn--solid { background: linear-gradient(180deg,#1a3658,#10243d); color: #fff; }
.aghp-btn--ghost { background: #fff; color: var(--aghp-ink); border: 1px solid var(--aghp-line); }

.aghp-burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--aghp-line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 8px;
}
.aghp-burger span { display: block; height: 2px; background: #173657; margin: 5px 0; border-radius: 2px; }

.aghp-nav {
  position: relative;
  border-top: 1px solid #e7edf6;
  border-bottom: 1px solid #e7edf6;
  background: #fff;
  z-index: 200;
  box-sizing: border-box;
}
.aghp-nav__top {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 clamp(8px, 1.4vw, 18px);
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2px;
  overflow: visible;
  box-sizing: border-box;
}
.aghp-nav__item { position: static; flex: 0 0 auto; }
.aghp-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 11px;
  text-decoration: none;
  font-size: 12px;
  color: #10243d;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.aghp-mega {
  position: absolute;
  top: 100%;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  display: none;
  width: min(1500px, calc(100vw - 24px));
  margin: 0;
  grid-template-columns: 1.2fr 1fr .9fr;
  gap: 14px;
  background: #fff;
  border: 1px solid #dbe6f2;
  border-radius: 0 0 16px 16px;
  box-shadow: var(--aghp-shadow);
  padding: 14px;
  box-sizing: border-box;
  z-index: 260;
  max-height: min(78vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.aghp-nav__item.is-open .aghp-mega { display: grid; }
.aghp-mega__col h4 { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--aghp-muted); }
.aghp-mega__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.aghp-mega__col a { display: block; color: var(--aghp-ink); text-decoration: none; font-size: 13px; font-weight: 600; padding: 7px 9px; border-radius: 9px; }
.aghp-mega__col a:hover { background: var(--aghp-soft); }
.aghp-promo { height: 148px; border-radius: 12px; background: linear-gradient(135deg,#e9f2fc,#d7e5f5); background-size: cover; background-position: center; margin-bottom: 9px; }

.ag-goodies-seo .ag-goodies-grid article {
  border: 1px solid #e1e9f3 !important;
  border-radius: 16px !important;
  padding: 12px !important;
  background: #fff !important;
  box-shadow: 0 12px 28px rgba(9, 30, 55, 0.08);
}
.ag-goodies-seo .ag-goodies-grid article img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}
.ag-goodies-seo .ag-goodies-grid article h3 {
  margin-top: 10px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #10243d !important;
}

.aghp-mobile-back {
  border: 1px solid var(--aghp-line);
  background: #fff;
  border-radius: 9px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.aghp-mobile-level h4,
.aghp-mobile-level h5 { margin: 8px 0; color: var(--aghp-ink); }
.aghp-mobile-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.aghp-mobile-list li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; border-bottom: 1px solid #edf2f8; }
.aghp-mobile-list a { text-decoration: none; color: var(--aghp-ink); font-size: 14px; font-weight: 600; padding: 11px 2px; }
.aghp-mobile-list button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--aghp-line); background: #fff; cursor: pointer; }
.aghp-mobile-list--minor a { font-size: 13px; color: #3e5671; }

body.aghp-lock { overflow: hidden; }

@media (max-width: 991px) {
  .aghp-burger { display: inline-block; }
  .aghp-nav { display: none; }
  .aghp-topbar__trust { display: none; }
  .aghp-topbar__msg { font-size: 11px; }
  .aghp-search { width: min(var(--aghp-search-width), 100vw - 24px); }
  .aghp-search-box input { height: 46px; font-size: 13px; }
  .aghp-account,
  .aghp-cart__btn { width: 42px; padding: 0; justify-content: center; gap: 0; }
  .aghp-account__label { display: none; }
  .aghp-nav__top { justify-content: flex-start; }
  .aghp-nav__top { overflow-x: auto; }
  .aghp-cart-actions { grid-template-columns: 1fr; }
}
