/* Qopick storefront shell. Visual language follows the Kiddy reference.
   Scoped to the header, footer, and shared controls so page modules can adopt it one at a time. */

.ax-header,
.ax-footer,
.ax-tabbar,
.ax-header button,
.ax-header input,
.ax-header select,
.ax-footer button {
  font-family: "Alexandria", sans-serif;
}

.ax-header a,
.ax-footer a,
.ax-tabbar a,
.ax-tabbar button {
  text-decoration: none;
}

.ax-header {
  position: relative;
  z-index: 2000;
  isolation: isolate;
  background: #fff;
  color: #212529;
  border-bottom: 1px solid #eef0f2;
}

.ax-header a,
.ax-header p,
.ax-header li,
.ax-header span,
.ax-header label,
.ax-footer a,
.ax-footer p,
.ax-footer li,
.ax-footer span,
.ax-tabbar a,
.ax-tabbar button,
.ax-tabbar span {
  font-family: "Alexandria", sans-serif !important;
  line-height: 1.4;
}

.ax-wrap {
  width: min(1290px, 76vw);
  max-width: 100%;
  margin: 0 auto;
}

.ax-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.ax-logo img {
  display: block;
  height: 25px;
  width: auto;
  max-width: min(220px, 46vw);
  object-fit: contain;
}

.ax-header .ax-logo img,
.ax-drawer .ax-logo img,
.ax-footer .ax-logo img {
  height: 25px;
}

.ax-topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 100px;
  padding: 0;
}

.ax-search {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  max-width: 561px;
  margin: 0 auto;
  min-height: 50px;
  background: #f9fafb;
  border-radius: 8px;
  overflow: hidden;
}

.ax-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #576471 !important;
  font-size: 16px;
  font-weight: 300;
  padding: 0 16px;
  outline: none;
}

.ax-search input[type="search"]::placeholder {
  color: #9aa3ad;
}

.ax-search select {
  flex: 0 0 150px;
  border: 0;
  border-left: 1px solid #e6e8eb;
  background: transparent;
  color: #576471;
  font-size: 14px;
  font-weight: 300;
  padding: 0 12px;
  outline: none;
  cursor: pointer;
}

.ax-search-btn {
  flex: 0 0 50px;
  border: 0;
  background: transparent;
  color: #212529 !important;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ax-search-btn:hover,
.ax-search-btn:focus-visible {
  background: #eef0f2;
}

.ax-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  height: 40px;
  padding: 4px 16px 4px 4px;
  border: 1px solid #e6e8eb;
  border-radius: 30px;
  color: #212529 !important;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ax-phone i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #212529;
  color: #fff !important;
  font-size: 14px;
}

.ax-phone:hover {
  border-color: #212529;
  color: #212529 !important;
}

.ax-navrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 51px;
}

.ax-nav,
.ax-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ax-nav > li > a,
.ax-tools > li > a,
.ax-tools > li > button.ax-cart-open,
.ax-shop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 51px;
  padding: 0 16px;
  color: #212529 !important;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.ax-nav > li > a:hover,
.ax-tools > li > a:hover,
.ax-tools > li > button.ax-cart-open:hover,
.ax-nav > li > a.is-current,
.ax-tools > li > a.is-current,
.ax-shop:hover > .ax-shop-toggle,
.ax-shop:focus-within > .ax-shop-toggle {
  color: #212529 !important;
  border-bottom-color: #212529;
}

.ax-nav > li:first-child > a {
  padding-left: 0;
}

.ax-tools > li:last-child > a,
.ax-tools > li:last-child > button.ax-cart-open {
  padding-right: 0;
}

.ax-tools > li > a,
.ax-tools > li > button.ax-cart-open {
  letter-spacing: 0.04em;
  font-weight: 500;
  gap: 8px;
}

.ax-tools i,
.ax-nav i {
  font-size: 16px;
}

.ax-cart-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-transform: none;
  letter-spacing: 0;
}

.ax-cart-meta small {
  color: #576471 !important;
  font-size: 11px;
  font-weight: 400;
}

.ax-cart-meta strong {
  color: #212529 !important;
  font-size: 13px;
  font-weight: 600;
}

.ax-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: #212529;
  color: #fff !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

li.ax-shop {
  position: static;
  padding: 0;
}

.ax-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 30;
  display: none;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding: 28px 40px 32px;
  background: #fff !important;
  border-top: 1px solid #eef0f2;
  box-shadow: 0 22px 40px rgba(33, 37, 41, 0.08);
  pointer-events: none;
}

li.ax-shop:hover > .ax-mega {
  display: grid;
  pointer-events: auto;
}

.ax-mega-cats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid #eef0f2;
  padding-right: 18px;
}

.ax-mega-cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  color: #576471 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  border: 0 !important;
}

.ax-mega-cats a.is-on,
.ax-mega-cats a:hover,
.ax-mega-cats a:focus-visible {
  background: #f6f7f8;
  color: #212529 !important;
}

.ax-panel {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 180px;
  gap: 22px;
}

.ax-panel.is-on {
  display: grid;
}

.ax-panel h3,
.ax-footer h2 {
  margin: 0 0 12px;
  color: #212529 !important;
  font-family: "Alexandria", sans-serif !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ax-panel a,
.ax-footer a {
  color: #576471 !important;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.ax-panel ul,
.ax-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ax-panel li + li,
.ax-footer li + li {
  margin-top: 8px;
}

.ax-panel a:hover,
.ax-footer a:hover {
  color: #212529 !important;
}

.ax-panel-photo img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  background: #f3f1f8;
}

.ax-search-mobile {
  display: none;
}

.ax-menu-btn,
.ax-icon-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #212529 !important;
  font-size: 22px;
}

.ax-icon-btn {
  position: relative;
  text-decoration: none;
}

.ax-icon-btn .ax-count {
  position: absolute;
  top: 4px;
  right: 2px;
}

.ax-drawer {
  width: min(100%, 360px) !important;
  background: #fff;
}

.ax-drawer .offcanvas-header {
  background: #fff !important;
  color: #212529 !important;
  border-bottom: 1px solid #eef0f2;
  padding: 16px 18px;
}

.ax-drawer .btn-close {
  filter: none !important;
  opacity: 1;
}

.ax-drawer .offcanvas-body {
  padding: 8px 0 24px;
  background: #fff;
}

.ax-drawer-search {
  max-width: none;
  margin: 12px 16px 8px;
}

.ax-drawer-list {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
}

.ax-drawer-list > li {
  border-bottom: 1px solid #f1f2f4;
}

.ax-drawer-list a,
.ax-drawer-list button,
.ax-drawer-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 18px;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  color: #212529 !important;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.ax-drawer-list summary {
  list-style: none;
}

.ax-drawer-list summary::-webkit-details-marker {
  display: none;
}

.ax-drawer-sub {
  padding: 0 8px 12px 18px;
}

.ax-drawer-sub p {
  margin: 10px 10px 4px;
  color: #8b949e !important;
  font-size: 11px !important;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ax-drawer-sub a {
  min-height: 40px;
  padding: 8px 10px;
  color: #576471 !important;
  font-size: 15px;
  font-weight: 400;
  border-radius: 8px;
}

.ax-drawer-sub a:hover {
  background: #f6f7f8;
}

.ax-tabbar {
  display: none;
}

.ax-footer {
  background: #fff;
  color: #576471;
  border-top: 1px solid #eef0f2;
  padding: 56px 0 28px;
}

.ax-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 32px;
}

.ax-footer .ax-logo {
  margin-bottom: 16px;
}

.ax-footer p,
.ax-footer address {
  margin: 0 0 10px;
  color: #576471 !important;
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
}

.ax-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.ax-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #212529 !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ax-social a:hover {
  background: #212529;
  color: #fff !important;
  transform: translateY(-2px);
}

.ax-footer-base {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid #eef0f2;
  color: #8b949e !important;
  font-size: 13px;
}

.ax-header :focus-visible,
.ax-footer :focus-visible,
.ax-tabbar :focus-visible {
  outline: 2px solid #212529;
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .ax-footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .ax-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991.98px) {
  .ax-wrap {
    width: min(1290px, calc(100% - 40px));
  }

  .ax-topbar {
    min-height: 64px;
    padding: 1px 0 8px;
    gap: 8px;
  }

  .ax-header .ax-logo img,
  .ax-drawer .ax-logo img,
  .ax-footer .ax-logo img {
    height: 25px;
  }

  .ax-search-desktop,
  .ax-phone,
  .ax-navrow {
    display: none;
  }

  .ax-topbar {
    flex-wrap: wrap;
  }

  .ax-search-mobile {
    display: flex;
    order: 5;
    flex: 1 0 100%;
    max-width: none;
    margin: 0;
  }

  .ax-menu-btn,
  .ax-icon-btn {
    display: inline-flex;
  }

  .ax-mobile-tools {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 2px;
  }

  .ax-header {
    position: sticky;
    top: 0;
  }

  .ax-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #fff;
    border-top: 1px solid #e6e8eb;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(33, 37, 41, 0.05);
  }

  .ax-tabbar a,
  .ax-tabbar button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 52px;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: #576471 !important;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    border-radius: 10px;
    cursor: pointer;
  }

  .ax-tabbar a i,
  .ax-tabbar button i {
    font-size: 18px;
  }

  .ax-tabbar a.is-current,
  .ax-tabbar button.is-current {
    color: #212529 !important;
  }

  body:has(.ax-tabbar) {
    padding-bottom: 76px;
  }

  .ax-footer {
    padding-bottom: 24px;
  }

  .ax-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 18px;
  }
}

@media (max-width: 480px) {
  .ax-drawer {
    width: 100% !important;
  }

  .ax-header .ax-logo img,
  .ax-drawer .ax-logo img {
    height: 25px;
  }
}

@media (max-width: 560px) {
  .ax-footer-grid,
  .ax-footer-base {
    grid-template-columns: 1fr;
    display: grid;
  }

  .ax-footer-base {
    justify-content: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ax-mega,
  .ax-phone,
  .ax-social a {
    transition: none;
  }
}
