/* v0.3.18 - Store header fixed/sticky + mobile account header */
.gktce-store-header {
  --gktce-h-primary: var(--gktce-primary, #0057ff);
  --gktce-h-dark: #0f172a;
  --gktce-h-muted: #667085;
  --gktce-h-line: #e5e7eb;
  --gktce-h-soft: #f8fafc;
  --gktce-h-white: #ffffff;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 99995 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--gktce-h-white) !important;
  border-bottom: 1px solid var(--gktce-h-line) !important;
  color: var(--gktce-h-dark);
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .055) !important;
}

body.admin-bar .gktce-store-header {
  top: 32px !important;
}

@media (max-width: 782px) {
  body.admin-bar .gktce-store-header {
    top: 46px !important;
  }
}

body.gktce-has-store-header {
  padding-top: var(--gktce-store-header-height, 76px) !important;
}

.gktce-store-header,
.gktce-store-header * {
  box-sizing: border-box;
}

.gktce-store-header a {
  color: inherit;
  text-decoration: none !important;
}

.gktce-store-header button,
.gktce-store-header input {
  font: inherit !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  box-shadow: none !important;
  outline: 0;
}

.gktce-store-header button {
  appearance: none !important;
  -webkit-appearance: none !important;
}

.gktce-store-header svg,
.gktce-header-icon-img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}

.gktce-store-header svg {
  fill: currentColor;
}

.gktce-header-desktop {
  display: block;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff;
}

.gktce-header-inner {
  width: min(100%, 1580px);
  max-width: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(170px, 250px) minmax(160px, 215px) minmax(320px, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 11px clamp(16px, 3vw, 46px);
  background: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.gktce-header-logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--gktce-h-dark);
  font-weight: 950;
  letter-spacing: -.04em;
}

.gktce-header-logo-img {
  display: block;
  max-width: 220px;
  max-height: 46px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.gktce-header-logo-text {
  display: inline-flex;
  align-items: baseline;
  max-width: 100%;
  overflow: hidden;
  color: #070b16;
  font-size: clamp(22px, 1.7vw, 34px);
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
}

.gktce-header-logo-text b {
  color: var(--gktce-h-primary);
  font-weight: 950;
}

.gktce-header-logo-text em {
  color: #070b16;
  font-style: normal;
  font-weight: 950;
}

.gktce-header-categories {
  position: relative;
  min-width: 0;
}

.gktce-header-category-btn {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) 16px;
  align-items: center !important;
  gap: 9px !important;
  width: 100% !important;
  min-height: 46px !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 0 13px !important;
  border: 1px solid var(--gktce-h-line) !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: var(--gktce-h-dark) !important;
  cursor: pointer !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
}

.gktce-header-category-btn > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gktce-header-category-btn:hover,
.gktce-header-categories.is-open .gktce-header-category-btn {
  border-color: #cbd5e1 !important;
  background: #f8fafc !important;
}

.gktce-header-icon,
.gktce-header-chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gktce-header-chev svg {
  width: 16px;
  height: 16px;
  transition: transform .16s ease;
}

.gktce-header-categories.is-open .gktce-header-chev svg {
  transform: rotate(180deg);
}

.gktce-header-category-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 100000;
  width: min(390px, 92vw);
  max-height: min(70vh, 560px);
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--gktce-h-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(15, 23, 42, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

.gktce-header-categories.is-open .gktce-header-category-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gktce-header-cat-branch {
  padding: 8px;
  border-bottom: 1px solid #eef2f7;
}

.gktce-header-cat-branch:last-child {
  border-bottom: 0;
}

.gktce-header-cat-parent,
.gktce-header-cat-children a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  color: var(--gktce-h-dark);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
}

.gktce-header-cat-parent:hover,
.gktce-header-cat-children a:hover {
  color: var(--gktce-h-primary);
}

.gktce-header-cat-parent em,
.gktce-header-cat-children a em {
  color: #94a3b8;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.gktce-header-cat-children {
  display: grid;
  gap: 2px;
  margin: 4px 0 0 12px;
  padding-left: 10px;
  border-left: 1px solid #edf2f7;
}

.gktce-header-cat-children a {
  min-height: 26px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.gktce-header-empty {
  margin: 0;
  padding: 12px;
  color: var(--gktce-h-muted);
  font-size: 13px;
  font-weight: 800;
}

.gktce-header-search {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 54px !important;
  min-width: 0 !important;
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 !important;
  border: 1px solid var(--gktce-h-line) !important;
  border-radius: 7px !important;
  overflow: hidden !important;
  background: #fff !important;
}

.gktce-header-search:focus-within {
  border-color: var(--gktce-h-primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 87, 255, .10) !important;
}

.gktce-header-search input,
.gktce-mobile-search input {
  min-width: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--gktce-h-dark) !important;
  outline: 0 !important;
  padding: 0 16px !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
}

.gktce-header-search input::placeholder,
.gktce-mobile-search input::placeholder {
  color: #667085;
  font-weight: 750;
}

.gktce-header-search button,
.gktce-mobile-search button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 54px !important;
  min-width: 54px !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--gktce-h-primary) !important;
  color: #fff !important;
  cursor: pointer !important;
}

.gktce-header-search button:hover,
.gktce-mobile-search button:hover {
  filter: brightness(.96);
}

.gktce-header-search button .gktce-header-icon-img,
.gktce-mobile-search button .gktce-header-icon-img {
  width: 21px;
  height: 21px;
  filter: brightness(0) invert(1);
}

.gktce-header-actions {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.gktce-header-action {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 5px;
  min-width: 76px;
  min-height: 50px;
  padding: 0 13px;
  border-left: 1px solid #edf2f7;
  color: var(--gktce-h-dark);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.gktce-header-action:hover {
  color: var(--gktce-h-primary);
}

.gktce-header-action-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
}

.gktce-header-action-icon .gktce-header-icon-img {
  width: 27px;
  height: 27px;
}

.gktce-header-badge {
  position: absolute;
  top: -9px;
  right: -12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gktce-h-primary);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
}

.gktce-header-mobile,
.gktce-mobile-bottom-nav,
.gktce-mobile-cat-drawer {
  display: none;
}

@media (max-width: 1180px) {
  .gktce-header-inner {
    grid-template-columns: minmax(140px, 190px) minmax(138px, 168px) minmax(220px, 1fr) auto;
    gap: 10px;
    padding: 10px 14px;
  }

  .gktce-header-action {
    min-width: 68px;
    padding: 0 9px;
    font-size: 11px;
  }

  .gktce-header-action-icon,
  .gktce-header-action-icon .gktce-header-icon-img {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 920px) {
  body.gktce-has-store-header {
    padding-top: var(--gktce-store-header-height, 98px) !important;
  }

  .gktce-header-desktop {
    display: none !important;
  }

  .gktce-header-mobile {
    display: block !important;
    width: 100% !important;
    padding: 8px 10px 9px !important;
    background: #fff !important;
  }

  .gktce-mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
  }

  .gktce-header-mobile .gktce-header-logo-img {
    max-width: 160px;
    max-height: 34px;
  }

  .gktce-header-mobile .gktce-header-logo-text {
    max-width: calc(100vw - 130px);
    font-size: 23px;
  }

  .gktce-mobile-account {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    flex: 0 0 auto;
    min-width: 92px;
    height: 38px;
    padding: 0 10px;
    color: var(--gktce-h-dark);
    border: 1px solid #e6ebf2;
    border-radius: 7px;
    background: #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 950;
    white-space: nowrap;
  }

  .gktce-mobile-account .gktce-header-icon-img {
    width: 21px;
    height: 21px;
  }

  .gktce-mobile-search {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 46px !important;
    width: 100% !important;
    height: 42px !important;
    margin: 8px 0 0 !important;
    border: 1px solid var(--gktce-h-line) !important;
    border-radius: 7px !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  .gktce-mobile-search input {
    padding: 0 12px !important;
    font-size: 13px !important;
  }

  .gktce-mobile-search button {
    width: 46px !important;
    min-width: 46px !important;
  }

  .gktce-mobile-search button .gktce-header-icon-img {
    width: 20px;
    height: 20px;
  }

  .gktce-mobile-bottom-nav {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 99996 !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 62px !important;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)) !important;
    background: #fff !important;
    border-top: 1px solid #dfe5ee !important;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, .08) !important;
  }

  .gktce-mobile-bottom-nav a,
  .gktce-mobile-bottom-nav button {
    position: relative !important;
    display: grid !important;
    align-content: center !important;
    justify-items: center !important;
    gap: 3px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #0f172a !important;
    font-size: 10.5px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
  }

  .gktce-mobile-bottom-nav a:hover,
  .gktce-mobile-bottom-nav button:hover {
    color: var(--gktce-h-primary) !important;
  }

  .gktce-mobile-bottom-nav .gktce-header-icon-img {
    width: 22px;
    height: 22px;
  }

  .gktce-mobile-bottom-nav span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .gktce-bottom-cart-icon {
    position: relative;
    display: inline-flex !important;
    overflow: visible !important;
  }

  .gktce-mobile-bottom-cart .gktce-header-badge {
    top: -8px;
    right: -14px;
  }

  body.gktce-has-mobile-bottom-nav {
    padding-bottom: 76px !important;
  }

  .gktce-mobile-cat-drawer[hidden] {
    display: none !important;
  }

  .gktce-mobile-cat-drawer {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: block;
  }

  .gktce-mobile-cat-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .42);
  }

  .gktce-mobile-cat-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(76vh, 640px);
    overflow: auto;
    padding: 14px 14px calc(22px + env(safe-area-inset-bottom));
    background: #fff;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -18px 60px rgba(15, 23, 42, .20);
  }

  .gktce-mobile-cat-head {
    position: sticky;
    top: -14px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    margin: -14px -14px 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #edf2f7;
    background: #fff;
  }

  .gktce-mobile-cat-head strong {
    font-size: 18px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.03em;
  }

  .gktce-mobile-cat-head button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #0f172a !important;
  }

  .gktce-mobile-cat-head button svg {
    width: 20px;
    height: 20px;
  }

  .gktce-mobile-cat-list {
    display: grid;
    gap: 8px;
  }

  .gktce-mobile-cat-list .gktce-header-cat-branch {
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
  }

  .gktce-mobile-cat-list .gktce-header-cat-parent {
    min-height: 34px;
    font-size: 14px;
  }

  .gktce-mobile-cat-list .gktce-header-cat-children {
    margin-left: 10px;
  }

  .gktce-mobile-cat-list .gktce-header-cat-children a {
    min-height: 30px;
    font-size: 13px;
  }

  body.gktce-mobile-drawer-open {
    overflow: hidden;
  }
}

@media (max-width: 380px) {
  .gktce-mobile-bottom-nav {
    padding-left: 3px !important;
    padding-right: 3px !important;
  }

  .gktce-mobile-bottom-nav a,
  .gktce-mobile-bottom-nav button {
    font-size: 9.5px !important;
  }

  .gktce-mobile-bottom-nav .gktce-header-icon-img {
    width: 20px;
    height: 20px;
  }

  .gktce-mobile-account {
    min-width: 82px;
    padding: 0 8px;
    font-size: 10px;
  }
}

/* v0.3.21 - Mobile wishlist counter fix */
@media (max-width: 920px) {
  .gktce-mobile-bottom-wishlist .gktce-bottom-wishlist-icon,
  .gktce-mobile-bottom-cart .gktce-bottom-cart-icon {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    width: 26px !important;
    height: 26px !important;
  }

  .gktce-mobile-bottom-wishlist .gktce-header-badge.gktce-wishlist-count,
  .gktce-mobile-bottom-cart .gktce-header-badge.gktce-cart-count {
    position: absolute !important;
    top: -9px !important;
    right: -13px !important;
    z-index: 5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 19px !important;
    height: 19px !important;
    padding: 0 5px !important;
    border-radius: 999px !important;
    background: var(--gktce-h-primary, #0057ff) !important;
    color: #fff !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    overflow: visible !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 6px rgba(0, 87, 255, .25) !important;
  }

  .gktce-mobile-bottom-wishlist .gktce-header-badge.gktce-wishlist-count[data-count="0"],
  .gktce-mobile-bottom-wishlist .gktce-header-badge.gktce-wishlist-count:empty,
  .gktce-mobile-bottom-cart .gktce-header-badge.gktce-cart-count[data-count="0"],
  .gktce-mobile-bottom-cart .gktce-header-badge.gktce-cart-count:empty {
    display: none !important;
  }

  .gktce-mobile-bottom-nav .gktce-bottom-wishlist-icon,
  .gktce-mobile-bottom-nav .gktce-bottom-cart-icon {
    overflow: visible !important;
  }
}