/* VPS static-hosting layout/API fixes for Axistera storefront snapshot */

overflow-list {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  column-gap: 1.25rem;
  width: auto;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

overflow-list > li {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  list-style: none;
  margin: 0;
}

overflow-list > li[slot="more"] {
  display: none !important;
}

@media screen and (min-width: 750px) {
  .header__columns {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .header__column--left {
    flex: 0 1 auto;
  }

  .header__column--center {
    display: flex !important;
    flex: 0 0 auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  .header__column--right {
    flex: 0 0 auto;
    margin-left: 0.15rem;
    min-width: 2.75rem;
    overflow: visible;
  }

  header-menu,
  .header-menu,
  #header-component .header-menu,
  #header-component :is(.header-menu) {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    width: auto !important;
    min-width: 0;
  }

  overflow-list {
    width: auto !important;
  }

  header-drawer,
  .header-drawer,
  #header-component summary[aria-label="Menu"] {
    display: none !important;
  }
}

@media screen and (max-width: 749px) {
  .header__columns {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
  }

  .header__column--center {
    display: none !important;
  }
}

.header__row--top,
.header__columns {
  align-items: center;
}

.header-logo,
.header-logo__image-container {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media screen and (max-width: 749px) {
  .header-logo,
  .header-logo__image-container {
    font-size: 1.25rem;
  }
}

.menu-list__link {
  white-space: nowrap;
}

marquee-component {
  display: block;
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* Product card overlay links must sit above images or clicks never reach the href */
product-card .product-card__link,
.product-card__link,
product-card-link .resource-card__link,
.resource-card__link {
  z-index: 2;
}

product-card img,
product-card-link img,
.product-media__image,
.resource-card img,
.card-gallery img {
  pointer-events: none;
}

shopify-account,
.account-button,
search-button,
.search-action,
predictive-search,
#search-modal,
shopify-accelerated-checkout,
.shopify-payment-button,
[data-shopify="payment-button"],
.product-badges,
.product-badges__badge,
.color-custom-badge-sold-out,
.quantity-selector-wrapper,
add-to-cart-component,
.shopify-product-form .product-form-buttons,
cart-drawer-component,
#cart-drawer,
.header-actions__action[aria-label="Search"],
.header-actions__action[aria-label="Account"],
shopify-chat {
  display: none !important;
}

.social-icons__wrapper {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1.1rem;
}

@media screen and (min-width: 750px) {
  [data-testid="footer-utilities"].utilities--blocks-3 > *:nth-child(3) {
    justify-self: end;
    text-align: right;
  }
}

.social-icons__icon-wrapper a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: inherit;
}

.social-icons__icon {
  display: block !important;
  width: 1.85rem;
  height: 1.85rem;
  fill: currentColor;
}

.social-icons__icon-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.ax-shell-footer .social-icons__wrapper {
  margin-left: auto;
}

.axistera-inquire,
.ax-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  text-decoration: none;
  cursor: pointer;
}

.axistera-signup-note {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

[data-testid="cart-drawer-trigger"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
}

[data-testid="cart-drawer-trigger"] cart-icon,
[data-testid="cart-drawer-trigger"] .header-actions__cart-icon,
[data-testid="cart-drawer-trigger"] .svg-wrapper {
  display: flex !important;
  width: 1.25rem;
  height: 1.25rem;
}

.ax-cart-badge {
  position: absolute;
  top: -0.15rem;
  right: -0.15rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #1f1f1f;
  font-size: 0.68rem;
  line-height: 1.05rem;
  text-align: center;
  font-weight: 600;
}

.ax-buy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  width: 100%;
}

.ax-qty-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.ax-qtyrow {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8d0c6;
  border-radius: 999px;
  overflow: hidden;
}

.ax-qtyrow button,
.ax-qty {
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  background: #fff;
  font: inherit;
  text-align: center;
}

.ax-qtyrow button {
  cursor: pointer;
}

.ax-cart-qtyrow input,
.ax-checkout-form input,
.ax-checkout-form textarea {
  width: 4.5rem;
  height: 2.5rem;
  padding: 0 0.6rem;
  border: 1px solid #d8d0c6;
  border-radius: 4px;
  background: #fff;
  font: inherit;
}

.ax-add-cart.button {
  min-width: 12rem;
  height: 3rem;
  padding: 0 1.25rem;
  background: #1f1f1f;
  color: #fff;
  border: 0;
  border-radius: 999px;
}

body.ax-cart-open {
  overflow: hidden;
}

#ax-cart {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

#ax-cart.is-open {
  display: block;
}

.ax-cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.45);
}

.ax-cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(28rem, 100%);
  height: 100%;
  background: #fff;
  color: #1f1f1f;
  box-shadow: -8px 0 24px rgb(0 0 0 / 0.12);
}

.ax-cart-head,
.ax-cart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid #eee;
}

.ax-cart-foot {
  flex-direction: column;
  align-items: stretch;
  border-bottom: 0;
  border-top: 1px solid #eee;
}

.ax-cart-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.ax-cart-close {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.ax-cart-items {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.25rem;
}

.ax-cart-empty {
  margin: 2rem 0 0.75rem;
  text-align: center;
  color: #666;
}

.ax-cart-empty-link {
  display: block;
  text-align: center;
  color: #1f1f1f;
}

.ax-cart-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f0ece6;
}

.ax-cart-media img,
.ax-cart-ph {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  background: #f4f1ec;
  display: block;
  border-radius: 6px;
}

.ax-cart-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.ax-cart-info a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.ax-cart-qtyrow {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ax-cart-qtyrow button {
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid #d8d0c6;
  background: #fff;
  cursor: pointer;
}

.ax-cart-remove {
  width: auto !important;
  margin-left: auto;
  border: 0 !important;
  background: transparent !important;
  color: #888;
  font-size: 0.8rem;
}

.ax-cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
}

.ax-cart-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  background: #1f1f1f;
  color: #fff;
  text-decoration: none;
}

.ax-cart-checkout.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.ax-checkout {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

.ax-checkout h1 {
  margin: 0 0 1.5rem;
}

.ax-checkout-items {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.ax-checkout-items li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #eee;
}

.ax-checkout-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.ax-checkout-form label {
  display: grid;
  gap: 0.3rem;
}

.ax-checkout-form input,
.ax-checkout-form textarea {
  width: 100%;
  height: auto;
  min-height: 2.6rem;
  padding: 0.7rem 0.8rem;
}

.ax-checkout-form textarea {
  min-height: 6rem;
}

.ax-checkout-form button {
  height: 3rem;
  border: 0;
  background: #1f1f1f;
  color: #fff;
  cursor: pointer;
}

.ax-checkout-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.ax-checkout-nav a {
  color: inherit;
}

.view-product-title {
  display: none !important;
}

.facets-block-wrapper,
.facets,
facets-form-component,
.facets__form-wrapper,
.collection-wrapper .facets--horizontal,
.results-list__toolbar,
sort-filter-component {
  display: none !important;
}

.collection-wrapper.grid {
  display: block !important;
}

product-card h3,
product-card h5,
.product-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.contact-form {
  max-width: 36rem;
  width: 100%;
  margin-inline: auto;
}

.ax-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  padding: 0.8rem 1.6rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
}

.ax-footer-mail {
  display: inline-block;
  margin-top: 0.4rem;
  color: inherit;
}

.ax-shell {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  color: #1f1f1f;
  background: #fff;
}

.ax-shell-header,
.ax-shell-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 1.5rem;
}

.ax-shell-header {
  border-bottom: 1px solid #eee;
}

.ax-shell-footer {
  margin-top: auto;
  background: #f3eee6;
}

.ax-shell-brand {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: inherit;
  text-decoration: none;
}

.ax-shell-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.ax-shell-nav a {
  color: inherit;
  text-decoration: none;
}

.ax-shell-nav a.is-current {
  font-weight: 700;
}

.ax-checkout {
  max-width: 64rem;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.ax-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: start;
}

@media screen and (max-width: 800px) {
  .ax-checkout-grid {
    grid-template-columns: 1fr;
  }
}

.ax-checkout-summary {
  padding: 1.25rem;
  background: #f7f4ef;
  border-radius: 8px;
}

.ax-checkout-items li {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.ax-checkout-items img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: cover;
  border-radius: 6px;
  background: #fff;
}

.ax-checkout-form {
  margin-top: 0;
}

.ax-checkout-form input,
.ax-checkout-form textarea {
  width: 100%;
  border-radius: 8px;
}

.ax-checkout-form button {
  border-radius: 999px;
}

.ax-checkout-note {
  margin: 0.75rem 0 0;
  color: #666;
  font-size: 0.95rem;
}
