/*
 * APT Instruments custom behavior styles.
 * Keep additions that belong to the theme integration in this single file.
 */

body {
  background-color: #fff9ee;
}

/* Supplied black footer template: keep dynamic contact content readable
 * without changing the shared light-footer component styles. */
.aq-footer-black-style .aq-footer-description,
.aq-footer-black-style .aq-footer-contact-item > span,
.aq-footer-black-style .aq-footer-contact-item > span > span,
.aq-footer-black-style .aq-footer-contact-item a {
  color: rgba(255, 255, 255, 0.72);
}

.aq-footer-black-style .aq-footer-contact-item a.fs-bold {
  color: var(--aq-common-white);
}

.aq-footer-black-style .aq-footer-contact-item a:hover,
.aq-footer-black-style .aq-footer-contact-item a.fs-bold:hover {
  color: var(--aq-common-white);
}

.aq-footer-black-style .aq-footer-contact-item svg {
  display: block;
}

.aq-footer-black-style .aq-copyright-text p {
  color: rgba(255, 255, 255, 0.62);
}

/* Premium image reveal. The JavaScript adds this class only to meaningful
 * content images, so logos, icons, swatches, and tiny interface artwork stay
 * untouched. The clip-path is applied to the image itself and does not add a
 * wrapper or change the surrounding layout. */
.apt-image-reveal-target {
  --apt-image-reveal-scale: 1.055;
  clip-path: inset(0 0 100% 0);
  scale: var(--apt-image-reveal-scale);
  transform-origin: 50% 50%;
  will-change: clip-path, scale;
}

.apt-image-reveal-target.apt-image-reveal-ready {
  clip-path: inset(0);
}

@media (max-width: 767px) {
  .apt-image-reveal-target {
    --apt-image-reveal-scale: 1.035;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apt-image-reveal-target,
  .apt-image-reveal-target.apt-image-reveal-ready {
    clip-path: inset(0);
    scale: 1;
    will-change: auto;
  }
}

/* --------------------------------------------------------------------------
 * Reference-style pinned Why Choose section.
 * The scene is intentionally self-contained so [apt_why_choose] can be used
 * in Elementor or a template without additional markup.
 * -------------------------------------------------------------------------- */
.apt-why-choose {
  position: relative;
  isolation: isolate;
  overflow: visible;
  padding: 0;
  min-height: calc(clamp(720px, 88svh, 820px) + 1400px);
  background: #fff9ee;
  color: #101418;
}

.apt-why-choose__pin {
  position: relative;
  height: clamp(720px, 88svh, 820px);
  margin-top: 0;
}

.apt-why-choose__scene {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.apt-why-choose__phone {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: flex;
  width: min(350px, calc(100vw - 44px));
  height: min(600px, calc(100svh - 110px));
  min-height: 500px;
  flex-direction: column;
  padding: 18px;
  border: 2px solid #171717;
  border-radius: 36px;
  background: #fffdf8;
  box-sizing: border-box;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.apt-why-choose__phone-header {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border: 1px solid rgba(16, 20, 24, 0.1);
  border-radius: 26px;
}

.apt-why-choose__brand {
  display: flex;
  flex-direction: column;
  color: #121519;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.apt-why-choose__brand small {
  margin-top: 4px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.apt-why-choose__menu {
  display: flex;
  width: 30px;
  flex-direction: column;
  gap: 6px;
}

.apt-why-choose__menu i {
  display: block;
  width: 30px;
  height: 1px;
  background: #171717;
}

.apt-why-choose__menu i:nth-child(2),
.apt-why-choose__menu i:nth-child(3) {
  width: 17px;
  margin-left: auto;
}

.apt-why-choose__phone-title {
  display: flex;
  margin-top: 28px;
  flex-direction: column;
  gap: 1px;
  color: #111;
  font-size: 27px;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.apt-why-choose__phone-title span {
  color: #9b9b9b;
  font-size: 26px;
}

.apt-why-choose__cards {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

.apt-why-choose__card {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: clamp(210px, 19vw, 292px);
  height: 307px;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 25px 26px;
  border-radius: 16px;
  background: #111;
  color: #fff;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}

.apt-why-choose__icon {
  display: block;
  width: 52px;
  height: 52px;
}

.apt-why-choose__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.apt-why-choose__card h3 {
  max-width: 245px;
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.apt-why-choose__add {
  position: absolute;
  z-index: 5;
  top: auto;
  right: auto;
  bottom: 28px;
  left: 50%;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 31px;
  font-weight: 300;
  line-height: 1;
  transform: translateX(-50%);
  transition: none;
  animation: none;
  pointer-events: none;
}

.apt-why-choose__add span {
  display: block;
  margin-top: -3px;
}

@media (max-width: 767px) {
  .apt-why-choose {
    padding-top: 0;
    min-height: calc(720px + 1200px);
  }

  .apt-why-choose__pin {
    height: min(720px, calc(100svh - 44px));
    min-height: 720px;
    margin-top: 0;
  }

  .apt-why-choose__phone {
    width: min(350px, calc(100vw - 32px));
    height: min(600px, calc(100svh - 72px));
    min-height: 500px;
  }

  .apt-why-choose__card {
    width: min(292px, calc(100vw - 74px));
    height: 300px;
    padding: 26px 22px 24px;
  }

  .apt-why-choose__card h3 {
    font-size: 25px;
  }

  .apt-why-choose__add {
    bottom: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apt-why-choose {
    min-height: 0;
  }

  .apt-why-choose__pin {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    margin-bottom: 40px;
  }

  .apt-why-choose__scene {
    display: grid;
    gap: 18px;
    padding: 30px 0 0;
  }

  .apt-why-choose__phone {
    position: relative;
    top: auto;
    left: auto;
    margin: 0 auto;
    transform: none;
  }

  .apt-why-choose__cards {
    position: relative;
    display: grid;
    width: min(100% - 32px, 1240px);
    margin: 0 auto;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }

  .apt-why-choose__card {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    transform: none !important;
  }

  .apt-why-choose__add {
    display: none;
  }
}

.aq-header-area.apt-header-is-sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: #fff;
}

body.admin-bar .aq-header-area.apt-header-is-sticky {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .aq-header-area.apt-header-is-sticky {
    top: 46px;
  }
}

body.apt-wishlist-open {
  overflow: hidden;
}

/* Full-viewport hero: retain the supplied slider classes and Swiper behavior,
 * while giving every slide a consistent viewport-height stage. */
.aqf-slider-area.apt-hero-slider,
.aqf-slider-area.apt-hero-slider .aqf-slider-active,
.aqf-slider-area.apt-hero-slider .swiper-wrapper,
.aqf-slider-area.apt-hero-slider .swiper-slide,
.aqf-slider-area.apt-hero-slider .aqf-slider-item {
  height: 84vh;
  height: 84svh;
}

.aqf-slider-area.apt-hero-slider {
  overflow: hidden;
}

.aqf-slider-area.apt-hero-slider .aqf-slider-item {
  display: flex;
  align-items: center;
}

.aqf-slider-area.apt-hero-slider .aqf-slider-item > .container {
  width: 100%;
  position: relative;
  z-index: 2;
}

.aqf-slider-area.apt-hero-slider .aqf-slider-thumb {
  height: 100%;
}

.aqf-slider-area.apt-hero-slider .aqf-slider-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Reusable native WebGL liquid-glass layer. Add apt-liquid-glass to any
 * Elementor section/container that should receive the effect. */
.apt-liquid-glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.apt-liquid-glass > *:not(.apt-liquid-glass__canvas) {
  position: relative;
  z-index: 1;
}

.apt-liquid-glass .apt-liquid-glass__canvas {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.96;
  mix-blend-mode: normal;
  filter: saturate(1.08) contrast(1.04);
}

.apt-liquid-glass.apt-liquid-glass-fallback .apt-liquid-glass__canvas {
  opacity: 0.35;
}

/* Three.js perspective wavy-cube field. Add the base class and either the
 * dark or light modifier to an Elementor section/container. */
.apt-wavy-cubes {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--apt-wavy-cubes-background, #f3f7fa);
  --apt-wavy-cubes-opacity: 0.9;
  --apt-wavy-cubes-speed: 1;
  --apt-wavy-cubes-height: 1;
  --apt-wavy-cubes-background: #f3f7fa;
  --apt-wavy-cubes-color-base: #4c8198;
  --apt-wavy-cubes-color-high: #c68a2c;
  --apt-wavy-cubes-light: #ffffff;
  --apt-wavy-cubes-light-2: #b8d9e6;
}

.apt-wavy-cubes--dark {
  --apt-wavy-cubes-background: #071019;
  --apt-wavy-cubes-color-base: #5f9fc2;
  --apt-wavy-cubes-color-high: #efbd61;
  --apt-wavy-cubes-light: #dcefff;
  --apt-wavy-cubes-light-2: #6b9fc1;
}

.apt-wavy-cubes--light {
  --apt-wavy-cubes-background: #f3f7fa;
  --apt-wavy-cubes-color-base: #3d7892;
  --apt-wavy-cubes-color-high: #c68a2c;
  --apt-wavy-cubes-light: #ffffff;
  --apt-wavy-cubes-light-2: #b8d9e6;
}

.apt-wavy-cubes > *:not(.apt-wavy-cubes__canvas) {
  position: relative;
  z-index: 1;
}

.apt-wavy-cubes .apt-wavy-cubes__canvas {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: var(--apt-wavy-cubes-opacity);
  transform: translateZ(0);
}

@media (max-width: 767px) {
  .apt-wavy-cubes {
    --apt-wavy-cubes-opacity: 0.68;
    --apt-wavy-cubes-height: 0.72;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apt-wavy-cubes .apt-wavy-cubes__canvas {
    opacity: 0.5;
  }
}

.apt-wishlist-panel .aq-wishlist-popup-close,
.apt-wishlist-panel .apt-wishlist-remove {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
}

.apt-wishlist-panel .aq-wishlist-popup-close {
  cursor: pointer;
}
.apt-wishlist-item {
  gap: 15px;
}
.apt-wishlist-stock,
.apt-wishlist-variation-note {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.2;
}
.apt-wishlist-stock.is-in-stock {
  color: #287a3d;
}
.apt-wishlist-stock.is-out-of-stock {
  color: #b21f24;
}
.apt-wishlist-variation-note {
  color: rgba(15, 15, 15, 0.7);
}
.apt-wishlist-empty {
  padding: 20px 0;
  text-align: center;
}
.apt-wishlist-empty p {
  margin-bottom: 20px;
}
.apt-wishlist-actions {
  min-width: 130px;
}

.apt-search-sku {
  display: block;
  margin-bottom: 6px;
  color: rgba(15, 15, 15, 0.62);
  font-size: 12px;
  line-height: 1.3;
}

.apt-search-empty {
  margin: 0;
  color: rgba(15, 15, 15, 0.68);
}

.apt-search-view-all {
  margin-top: 4px;
  text-align: right;
}

/* -------------------------------------------------------------------------
 * WooCommerce archive and single-product presentation.
 * The markup follows the supplied product-left-sidebar and
 * product-details-default references while WooCommerce supplies all data
 * and interactions.
 * ------------------------------------------------------------------------- */
.apt-woocommerce-page .apt-site-main {
  width: 100%;
}

.apt-wc-archive-heading {
  text-align: center;
}

.apt-wc-archive-heading .aq-section-title {
  margin: 0;
  color: #24364a;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.12;
}

.apt-wc-archive-description {
  max-width: 780px;
  margin: 15px auto 0;
  color: #697787;
}

/* Reference-style dynamic category content above the existing archive grid. */
.apt-wc-archive-content .aq-categories-banner-item {
  display: flex;
  align-items: center;
  height: auto;
}

.apt-wc-archive-content .aq-categories-banner-item > div {
  width: 100%;
}

.apt-wc-archive-content .aq-categories-banner-item p {
  margin: 0;
  color: #55585b;
  line-height: 1.7;
}

.apt-wc-subcategory-list .col-12 {
  width: 100%;
}

.apt-wc-subcategory-card {
  display: flex;
  width: 100%;
  min-height: 104px;
  align-items: center;
  gap: 18px;
  padding: 8px 18px 8px 8px;
  border: 1px solid #e4ebf2;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(30, 54, 77, 0.07);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.apt-wc-subcategory-card:hover {
  border-color: #c8dced;
  box-shadow: 0 9px 24px rgba(30, 54, 77, 0.11);
  transform: translateY(-2px);
}

.apt-wc-subcategory-image-link {
  display: block;
  flex: 0 0 164px;
  width: 164px;
}

.apt-wc-subcategory-list .aq-categories-item-img {
  display: flex;
  width: 164px;
  height: 88px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 5px;
  background: #f0f5fa;
}

.apt-wc-subcategory-list .aq-categories-item-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.apt-wc-subcategory-list .aq-categories-item-content {
  position: static;
  display: block;
  flex: 1;
  min-width: 0;
  margin: 0;
  text-align: left;
}

.apt-wc-subcategory-list .aq-categories-item-title {
  margin: 0 0 2px;
  font-size: 22px;
  line-height: 1.2;
}

.apt-wc-subcategory-list .aq-categories-item-content > span {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
  line-height: 1.4;
}

.apt-wc-subcategory-description {
  max-width: 850px;
  margin: 0;
  color: #697787;
  font-size: 14px;
  line-height: 1.45;
}

.apt-wc-subcategory-arrow {
  display: flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eff6ff;
  color: #1e73be;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.apt-wc-subcategory-card:hover .apt-wc-subcategory-arrow {
  background: #1e73be;
  color: #fff;
  transform: translateX(2px);
}

/* Subcategory pages with another category level keep the approved cards intact
 * and add only a dynamic parent-category navigation column beside them. */
.apt-wc-subcategory-children-layout {
  padding-bottom: 0;
}

.apt-wc-subcategory-children-layout > .container {
  width: 100%;
}

.apt-wc-subcategory-children-layout .apt-wc-subcategory-list {
  padding-top: 0;
}

.apt-wc-subcategory-list__inner {
  width: 100%;
}

.apt-wc-subcategory-nav {
  position: sticky;
  top: 30px;
  margin: 0 0 30px;
  padding: 26px 24px 24px;
  border: 1px solid rgba(160, 29, 32, 0.14);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(30, 54, 77, 0.07);
}

.apt-wc-subcategory-nav__heading {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.1);
}

.apt-wc-subcategory-nav__eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #a01d20;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.apt-wc-subcategory-nav__heading h2 {
  margin: 0;
  color: #141414;
  font-family: var(--aq-ff-satoshi-medium, sans-serif);
  font-size: 25px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.apt-wc-subcategory-nav__body {
  padding-top: 14px;
}

.apt-wc-subcategory-nav__items,
.apt-wc-subcategory-nav__items ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.apt-wc-subcategory-nav__items ul {
  margin: 3px 0 4px 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(160, 29, 32, 0.16);
}

.apt-wc-subcategory-nav__link {
  position: relative;
  display: block;
  padding: 10px 12px;
  border-radius: 5px;
  color: #55585b;
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  transition: color 0.25s ease, background-color 0.25s ease, padding-left 0.25s ease;
}

.apt-wc-subcategory-nav__link::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: #a01d20;
  content: "";
  opacity: 0;
  transform: scaleY(0.35);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.apt-wc-subcategory-nav__link:hover,
.apt-wc-subcategory-nav__link:focus-visible,
.apt-wc-subcategory-nav__link.is-ancestor,
.apt-wc-subcategory-nav__link.is-current {
  background: rgba(160, 29, 32, 0.07);
  color: #a01d20;
  padding-left: 17px;
}

.apt-wc-subcategory-nav__link:hover::before,
.apt-wc-subcategory-nav__link:focus-visible::before,
.apt-wc-subcategory-nav__link.is-ancestor::before,
.apt-wc-subcategory-nav__link.is-current::before {
  opacity: 1;
  transform: scaleY(1);
}

.apt-wc-subcategory-nav__link.is-current {
  font-weight: 700;
}

@media (max-width: 991px) {
  .apt-wc-subcategory-nav {
    position: static;
    margin-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .apt-wc-archive-content .aq-categories-banner-item {
    height: auto;
  }

  .apt-wc-subcategory-card {
    gap: 12px;
    padding-right: 12px;
  }

  .apt-wc-subcategory-image-link,
  .apt-wc-subcategory-list .aq-categories-item-img {
    width: 112px;
    flex-basis: 112px;
  }

  .apt-wc-subcategory-list .aq-categories-item-img {
    height: 76px;
  }

  .apt-wc-subcategory-list .aq-categories-item-title {
    font-size: 18px;
  }

  .apt-wc-subcategory-description {
    font-size: 13px;
  }

  .apt-wc-subcategory-children-layout .row {
    --bs-gutter-x: 0;
  }

  .apt-wc-subcategory-nav {
    margin-bottom: 24px;
    padding: 21px 18px 18px;
  }

  .apt-wc-subcategory-nav__heading h2 {
    font-size: 22px;
  }
}

.apt-wc-archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(24, 39, 55, 0.1);
}

.apt-wc-archive-toolbar .woocommerce-result-count {
  margin: 0 15px 20px 0;
  color: #697787;
  font-size: 14px;
}

.apt-wc-archive-toolbar .woocommerce-ordering {
  margin: 0 0 20px auto;
}

.apt-wc-archive-toolbar .woocommerce-ordering select {
  min-width: 190px;
  padding: 9px 35px 9px 12px;
  border: 1px solid rgba(24, 39, 55, 0.14);
  border-radius: 3px;
  background: #fff;
  color: #24364a;
}

.apt-wc-archive-sidebar {
  position: sticky;
  top: 100px;
}

/* Premium archive filter panel: soft contrast, restrained border, and depth
 * keep the sidebar distinct without competing with the product grid. */
.apt-wc-archive .aq-product-sidebar-wrap {
  padding: 18px;
  border: 1px solid rgba(36, 54, 74, 0.08);
  border-radius: 12px;
  background: linear-gradient(145deg, #f7f8fa 0%, #eef1f4 100%);
  box-shadow: 0 10px 28px rgba(24, 39, 55, 0.07);
}

.apt-wc-archive .aq-product-sidebar-wrap .aq-product-sidebar-widget:last-child {
  margin-bottom: 0;
}

@media (max-width: 1199px) {
  .apt-wc-archive .aq-product-sidebar-offcanvas .aq-product-sidebar-wrap {
    padding: 15px;
    box-shadow: none;
  }
}

.apt-wc-archive-sidebar .aq-product-sidebar-widget-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(24, 39, 55, 0.12);
}

.apt-wc-archive-sidebar .aq-product-sidebar-widget-title {
  margin: 0;
  color: #24364a;
  font-size: 17px;
}

.apt-wc-category-list,
.apt-wc-category-children,
.apt-wc-filter-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.apt-wc-category-list > li {
  margin-bottom: 9px;
}

.apt-wc-category-list a,
.apt-wc-filter-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #667384;
  font-size: 14px;
  line-height: 1.45;
  transition: color 0.25s ease;
}

.apt-wc-category-list a:hover,
.apt-wc-category-list a.active,
.apt-wc-filter-list a:hover,
.apt-wc-filter-list a.active {
  color: #d93a3f;
}

.apt-wc-category-children {
  margin: 7px 0 0 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(24, 39, 55, 0.12);
}

.apt-wc-category-children li {
  margin-bottom: 6px;
}

.apt-wc-filter-list li {
  margin-bottom: 8px;
}

.apt-wc-price-fields {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.apt-wc-price-fields input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 9px;
  border: 1px solid rgba(24, 39, 55, 0.14);
  border-radius: 3px;
  background: #fff;
}

.apt-wc-price-filter .aq-btn-black {
  border: 0;
  cursor: pointer;
}

.apt-wc-product-grid > [class*="col-"] {
  display: flex;
  align-items: stretch;
}

.apt-wc-product-card {
  display: flex !important;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(24, 39, 55, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(26, 45, 64, 0.04);
  transition:
    transform 0.32s ease,
    box-shadow 0.32s ease,
    border-color 0.32s ease;
}

.apt-wc-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 54, 74, 0.2);
  box-shadow: 0 14px 32px rgba(26, 45, 64, 0.11);
}

.apt-wc-product-card .aq-product-thumb {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 1 / 1;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 18px;
  overflow: hidden;
  background: #f6f8fb;
}

.apt-wc-product-card .apt-wc-product-image-link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.apt-wc-product-card .aq-product-thumb img.aq-product-img,
.apt-wc-product-card .aq-product-thumb img.wp-post-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
}

.apt-wc-product-card .aq-product-thumb img.aq-img-hover {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  object-fit: contain;
  opacity: 0;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.apt-wc-product-card:hover .aq-product-thumb img.aq-product-img {
  transform: scale(1.04);
}

.apt-wc-product-card:hover .aq-product-thumb img.aq-img-hover {
  opacity: 1;
  transform: scale(1.04);
}

/* Product-card perimeter tracer. The SVG inserted by custom.js carries one
 * continuous light around the complete card border and loops while hovered. */
.aq-product-item.aq-product-main {
  position: relative;
  isolation: isolate;
  --apt-product-trace-color: #d9787c;
}

.apt-product-card-trace {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.apt-product-card-trace.is-active,
.aq-product-item.aq-product-main:focus-within .apt-product-card-trace {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .aq-product-item.aq-product-main:hover .apt-product-card-trace {
    opacity: 1;
  }
}

.apt-product-card-trace rect {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 72px var(--apt-product-trace-length, 1000px);
  stroke-dashoffset: 0;
}

.apt-product-card-trace .apt-product-card-trace-glow {
  stroke: color-mix(in srgb, var(--apt-product-trace-color) 56%, transparent);
  stroke-width: 5px;
  filter: drop-shadow(
    0 0 4px color-mix(in srgb, var(--apt-product-trace-color) 46%, transparent)
  );
}

.apt-product-card-trace .apt-product-card-trace-core {
  stroke: var(--apt-product-trace-color);
  stroke-width: 1.8px;
  filter: drop-shadow(
    0 0 2px color-mix(in srgb, var(--apt-product-trace-color) 78%, transparent)
  );
}

@supports not (color: color-mix(in srgb, red, transparent)) {
  .apt-product-card-trace .apt-product-card-trace-glow {
    stroke: rgba(217, 120, 124, 0.56);
    filter: drop-shadow(0 0 4px rgba(217, 120, 124, 0.46));
  }

  .apt-product-card-trace .apt-product-card-trace-core {
    filter: drop-shadow(0 0 2px rgba(217, 120, 124, 0.78));
  }
}

@media (prefers-reduced-motion: reduce) {
  .apt-product-card-trace {
    transition: none;
  }
}

.apt-wc-product-card .aq-product-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
}

.apt-wc-product-card .aq-product-badge span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 3px;
  background: #d93a3f;
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

.apt-wc-product-content {
  display: flex;
  min-height: 190px;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 17px 17px 19px;
}

.apt-wc-product-content .aqf-product-3-category {
  display: block;
  margin-bottom: 7px;
  color: #85909d;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.apt-wc-product-content .aq-product-title {
  min-height: 2.8em;
  margin: 0 0 7px !important;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.4;
}

.apt-wc-product-content .aq-product-title a {
  color: #24364a;
}

.apt-wc-product-sku {
  min-height: 18px;
  color: #7d8894;
  font-size: 12px;
}

.apt-wc-product-rating {
  min-height: 19px;
  margin-top: 5px;
}

.apt-wc-product-rating .star-rating {
  color: #d99323;
}

.apt-wc-product-price {
  min-height: 26px;
  margin-top: auto;
  padding-top: 10px;
  color: #24364a;
  font-size: 16px;
}

.apt-wc-product-price del {
  margin-right: 5px;
  color: #8a949f;
}

.apt-wc-product-price ins {
  text-decoration: none;
}

.apt-wc-product-actions {
  margin-top: 12px;
}

.apt-wc-product-actions .add_to_cart_button,
.apt-wc-product-actions .product_type_variable,
.apt-wc-product-actions .product_type_external {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border: 1px solid #24364a;
  border-radius: 3px;
  color: #24364a;
  font-size: 13px;
  line-height: 1.2;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.apt-wc-product-actions .add_to_cart_button:hover,
.apt-wc-product-actions .product_type_variable:hover,
.apt-wc-product-actions .product_type_external:hover {
  background: #24364a;
  color: #fff;
}

.apt-wc-pagination {
  margin-top: 18px;
}

.apt-wc-pagination .woocommerce-pagination {
  margin-top: 10px;
}

.apt-wc-pagination .page-numbers {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin: 0 3px 5px 0;
  border: 1px solid rgba(24, 39, 55, 0.12);
  border-radius: 3px;
  color: #24364a;
}

.apt-wc-pagination .page-numbers.current,
.apt-wc-pagination .page-numbers:hover {
  border-color: #24364a;
  background: #24364a;
  color: #fff;
}

/* Single product: keep the native gallery/variation form and style it around
 * the classes from the product-details-default reference. */
.apt-wc-product-gallery .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
}

.apt-wc-product-gallery .woocommerce-product-gallery__wrapper {
  margin: 0;
}

.apt-wc-product-gallery .woocommerce-product-gallery__image {
  display: flex;
  min-height: 480px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f6f8fb;
}

.apt-wc-product-gallery .woocommerce-product-gallery__image img {
  max-height: 560px;
  object-fit: contain;
}

.apt-wc-product-gallery .flex-control-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 14px !important;
}

.apt-wc-product-gallery .flex-control-thumbs li {
  width: 82px !important;
  height: 82px;
  padding: 7px;
  border: 1px solid rgba(24, 39, 55, 0.12);
  background: #fff;
}

.apt-wc-product-gallery .flex-control-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.apt-wc-product-summary {
  padding-top: 10px;
}

.apt-wc-product-summary .product_title {
  margin-bottom: 12px;
  color: #24364a;
  font-size: clamp(30px, 3.3vw, 48px);
  line-height: 1.15;
}

.apt-wc-product-summary .price {
  margin: 18px 0;
  color: #24364a;
  font-size: 25px;
}

.apt-wc-product-summary .woocommerce-product-details__short-description {
  color: #667384;
  line-height: 1.7;
}

.apt-wc-stock-status {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 600;
}

.apt-wc-stock-status.is-in-stock {
  color: #2d7b4f;
}
.apt-wc-stock-status.is-out-of-stock {
  color: #c0393b;
}

.apt-wc-product-summary form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px 0;
}

.apt-wc-product-summary form.cart .quantity input {
  width: 78px;
  height: 46px;
  border: 1px solid rgba(24, 39, 55, 0.16);
  text-align: center;
}

.apt-wc-product-summary form.cart .single_add_to_cart_button {
  min-height: 46px;
  padding: 10px 26px;
  border-radius: 3px;
  background: #24364a;
  color: #fff;
}

.apt-wc-product-summary .variations {
  margin-bottom: 18px;
}

.apt-wc-product-summary .variations select {
  min-width: 180px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(24, 39, 55, 0.16);
  background: #fff;
}

.apt-wc-single-lower {
  margin-top: 75px;
}

.apt-wc-single-lower .woocommerce-tabs {
  margin-bottom: 70px;
}

.apt-wc-single-lower .wc-tabs {
  display: flex;
  gap: 26px;
  margin: 0 0 25px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(24, 39, 55, 0.12);
  list-style: none;
}

.apt-wc-single-lower .wc-tabs a {
  color: #667384;
}

.apt-wc-single-lower .wc-tabs .active a {
  color: #d93a3f;
}

.apt-wc-single-lower .woocommerce-Tabs-panel {
  color: #667384;
  line-height: 1.75;
}

.apt-woocommerce-page .woocommerce-message,
.apt-woocommerce-page .woocommerce-info,
.apt-woocommerce-page .woocommerce-error {
  margin-bottom: 25px;
}

.apt-woocommerce-page .woocommerce-cart-form,
.apt-woocommerce-page .cart-collaterals,
.apt-woocommerce-page .woocommerce-checkout,
.apt-woocommerce-page .woocommerce-account {
  color: #24364a;
}

.apt-woocommerce-page .shop_table,
.apt-woocommerce-page .woocommerce-checkout-review-order-table {
  border-color: rgba(24, 39, 55, 0.12);
}

.apt-woocommerce-page .shop_table th,
.apt-woocommerce-page .shop_table td,
.apt-woocommerce-page .woocommerce-checkout-review-order-table th,
.apt-woocommerce-page .woocommerce-checkout-review-order-table td {
  padding: 14px;
  border-color: rgba(24, 39, 55, 0.1);
}

.apt-woocommerce-page .woocommerce form .form-row input.input-text,
.apt-woocommerce-page .woocommerce form .form-row textarea,
.apt-woocommerce-page .woocommerce form .form-row select,
.apt-woocommerce-page .select2-container .select2-selection--single {
  min-height: 44px;
  border: 1px solid rgba(24, 39, 55, 0.16);
  border-radius: 3px;
}

/* The Cart shortcode lives inside page.php; let the reference layout use the
 * full content width instead of the prose width used by regular pages. */
.apt-woocommerce-page .apt-entry-cart {
  width: 100%;
  max-width: none;
}

/* The account page uses the full reference layout. The base article rule is
 * intentionally narrow for normal content pages, but must not constrain the
 * two-column login/register card or the dashboard shell. */
.apt-site-main.apt-site-width > .apt-entry-account {
  max-width: none;
}

/* The checkout reference has one full-width customer form containing the
 * billing and order columns. Keep that form itself as the Bootstrap-like row
 * so WooCommerce's native AJAX fragments and validation can update in place. */
.apt-woocommerce-page .aq-checkout-form {
  display: flex;
  flex: 0 0 100%;
  flex-wrap: wrap;
  width: calc(100% + 24px);
  margin-right: -12px;
  margin-left: -12px;
}

.apt-woocommerce-page .aq-checkout-form > .col-lg-7,
.apt-woocommerce-page .aq-checkout-form > .col-lg-5 {
  flex-shrink: 0;
}

/* WooCommerce injects this notice group into the checkout form after an
 * invalid submission. It is a flex child, so make it a full-width row instead
 * of allowing it to consume the first billing column. */
.apt-woocommerce-page .aq-checkout-form > .woocommerce-NoticeGroup {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  padding-right: 12px;
  padding-left: 12px;
  order: -1;
  box-sizing: border-box;
}

.apt-woocommerce-page .aq-checkout-form > .woocommerce-NoticeGroup .woocommerce-error,
.apt-woocommerce-page .aq-checkout-form > .woocommerce-NoticeGroup .woocommerce-message,
.apt-woocommerce-page .aq-checkout-form > .woocommerce-NoticeGroup .woocommerce-info {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
  box-sizing: border-box;
}

.apt-woocommerce-page
  .aq-checkout-form
  .aq-checkout-input
  .woocommerce-input-wrapper,
.apt-woocommerce-page .aq-checkout-form .aq-checkout-input label {
  display: block;
  width: 100%;
}

.apt-woocommerce-page .aq-checkout-form .aq-checkout-input select {
  width: 100%;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--aq-common-black);
  background: var(--aq-common-white);
}

.apt-woocommerce-page .aq-checkout-form .aq-checkout-input select:focus {
  border-color: var(--aq-common-black);
  outline: 0;
}

/* Select2 adds its own rendered span inside the country/state controls. Reset
 * its inherited vertical padding so the label sits exactly in the middle of
 * the same-height checkout field. */
.apt-woocommerce-page .aq-checkout-form .select2-container,
.apt-woocommerce-page
  .aq-checkout-form
  .select2-container
  .select2-selection--single {
  height: 46px;
  min-height: 46px;
}

.apt-woocommerce-page
  .aq-checkout-form
  .select2-container
  .select2-selection--single
  .select2-selection__rendered {
  display: block;
  height: 46px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 46px;
}

.apt-woocommerce-page .aq-checkout-form #payment ul,
.apt-woocommerce-page .aq-checkout-form .aq-order-info-list ul {
  padding-left: 0;
  margin: 0;
}

.apt-woocommerce-page
  .aq-checkout-form
  .aq-checkout-payment
  .woocommerce-privacy-policy-text,
.apt-woocommerce-page
  .aq-checkout-form
  .aq-checkout-agree
  .woocommerce-terms-and-conditions-wrapper {
  font-size: 14px;
  line-height: 1.6;
}

/* Give the payment notice and the agreement copy the same comfortable inset
 * used by the reference checkout card. This also keeps long WooCommerce
 * messages from touching the card edges. */
.apt-woocommerce-page .aq-checkout-form #payment .wc_payment_methods > li > .woocommerce-info,
.apt-woocommerce-page .aq-checkout-form #payment .wc_payment_methods > li > .shopengine-woocommerce-info {
  margin: 0;
  padding: 22px 28px 22px 62px;
  border-top: 3px solid #159bd3;
  background: #f6f5f9;
  line-height: 1.8;
  box-sizing: border-box;
}

.apt-woocommerce-page .aq-checkout-form #payment .wc_payment_methods > li > .woocommerce-info .e-description,
.apt-woocommerce-page .aq-checkout-form #payment .wc_payment_methods > li > .shopengine-woocommerce-info .e-description {
  display: block;
}

.apt-woocommerce-page .aq-checkout-form .aq-checkout-agree {
  padding: 0 28px 22px;
  background: #f6f5f9;
  box-sizing: border-box;
}

.apt-woocommerce-page .aq-checkout-form .aq-checkout-agree .woocommerce-privacy-policy-text {
  margin: 0;
  padding: 20px 0 14px;
  line-height: 1.7;
}

.apt-woocommerce-page .aq-checkout-form .aq-checkout-agree .woocommerce-privacy-policy-text p {
  margin: 0;
}

.apt-woocommerce-page .aq-checkout-form .aq-checkout-agree .aq-checkout-option {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(24, 39, 55, 0.12);
}

.apt-woocommerce-page .aq-checkout-form .aq-checkout-agree .aq-checkout-option label {
  line-height: 1.6;
}

.apt-woocommerce-page
  .aq-checkout-form
  .aq-checkout-btn-wrapper
  .aq-checkout-btn {
  width: 100%;
  border: 1px solid transparent;
  cursor: pointer;
}

/* Keep the checkout order summary readable when several products or a
 * variable product with many attributes are in the cart. Only the product
 * rows scroll; totals and payment controls remain immediately accessible. */
.apt-woocommerce-page .aq-checkout-form .aq-order-info-list-products {
  max-height: clamp(240px, 38vh, 420px);
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.apt-woocommerce-page .aq-checkout-form .aq-order-info-list-products > li.cart_item {
  align-items: flex-start;
  gap: 16px;
}

.apt-woocommerce-page .aq-checkout-form .aq-order-info-product {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-start;
  min-width: 0;
  gap: 12px;
}

.apt-woocommerce-page .aq-checkout-form .aq-order-info-product-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 6px;
  background: #f6f7f8;
}

.apt-woocommerce-page .aq-checkout-form .aq-order-info-product-thumb a,
.apt-woocommerce-page .aq-checkout-form .aq-order-info-product-thumb img {
  display: block;
  width: 100%;
  height: 100%;
}

.apt-woocommerce-page .aq-checkout-form .aq-order-info-product-thumb img {
  object-fit: contain;
}

/* The global image-reveal helper observes the document viewport, while these
 * thumbnails can be inside the independently scrolling order list. Keep
 * checkout thumbnails immediately visible instead of leaving them in the
 * helper's pending clip-path state. */
.apt-woocommerce-page .aq-checkout-form .aq-order-info-product-image {
  clip-path: inset(0) !important;
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
  will-change: auto !important;
}

.apt-woocommerce-page .aq-checkout-form .aq-order-info-product-details {
  flex: 1 1 auto;
  min-width: 0;
}

.apt-woocommerce-page .aq-checkout-form .aq-order-info-product-name {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.apt-woocommerce-page .aq-checkout-form .aq-order-info-product-name a {
  color: inherit;
}

.apt-woocommerce-page .aq-checkout-form .aq-order-info-product-variation {
  margin-top: 5px;
}

.apt-woocommerce-page .aq-checkout-form .aq-order-info-product-variation .variation {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 2px 7px;
  margin: 0;
}

.apt-woocommerce-page .aq-checkout-form .aq-order-info-product-variation .variation dt,
.apt-woocommerce-page .aq-checkout-form .aq-order-info-product-variation .variation dd,
.apt-woocommerce-page .aq-checkout-form .aq-order-info-product-variation .variation dd p {
  margin: 0;
  color: rgba(20, 20, 20, 0.68);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.apt-woocommerce-page .aq-checkout-form .aq-order-info-product-variation .variation dt {
  font-weight: 600;
}

.apt-woocommerce-page .aq-checkout-form .aq-order-info-product-quantity {
  display: inline-block;
  margin-top: 5px;
  font-size: 14px;
  font-weight: 500;
}

.apt-woocommerce-page .aq-checkout-form .aq-order-info-product-price {
  flex: 0 0 auto;
  padding-top: 1px;
  white-space: nowrap;
}

.apt-woocommerce-page .aq-checkout-form #place_order,
.apt-woocommerce-page .aq-checkout-form #place_order:hover,
.apt-woocommerce-page .aq-checkout-form #place_order:focus,
.apt-woocommerce-page .aq-checkout-form #place_order:focus-visible,
.apt-woocommerce-page .aq-checkout-form #place_order:disabled,
.apt-woocommerce-page .aq-checkout-form #place_order:disabled:hover {
  color: var(--aq-common-white);
  background-color: var(--aq-common-black);
  border-color: var(--aq-common-black);
}

.apt-woocommerce-page .aq-checkout-form #place_order {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.apt-woocommerce-page .aq-checkout-form #place_order:hover,
.apt-woocommerce-page .aq-checkout-form #place_order:focus-visible {
  background-color: #a01d20;
  border-color: #a01d20;
}

.apt-woocommerce-page .aq-checkout-form .aq-checkout-payment-desc input,
.apt-woocommerce-page .aq-checkout-form .aq-checkout-payment-desc select,
.apt-woocommerce-page .aq-checkout-form .aq-checkout-payment-desc textarea {
  max-width: 100%;
}

.apt-woocommerce-page
  .aq-checkout-form
  .aq-checkout-agree
  .woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 0;
}

.apt-woocommerce-page
  .aq-checkout-form
  .aq-checkout-agree
  .aq-checkout-option
  input[type="checkbox"] {
  width: 1px;
  min-width: 1px;
  height: 1px;
  min-height: 1px;
  padding: 0;
  margin: 0;
  opacity: 0;
  position: absolute;
}

@media (max-width: 991px) {
  .apt-woocommerce-page .aq-checkout-form {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .apt-woocommerce-page .aq-checkout-form #payment .wc_payment_methods > li > .woocommerce-info,
  .apt-woocommerce-page .aq-checkout-form #payment .wc_payment_methods > li > .shopengine-woocommerce-info {
    padding: 18px 18px 18px 50px;
  }

  .apt-woocommerce-page .aq-checkout-form .aq-checkout-agree {
    padding-right: 18px;
    padding-left: 18px;
  }
}

.apt-cart-total-line {
  gap: 20px;
  padding: 9px 0;
  border-bottom: 1px solid #e0e2e3;
  color: var(--aq-common-black);
  font-size: 14px;
}

.apt-cart-total-line > span:last-child {
  text-align: end;
}

/* WooCommerce's default cart_totals rule floats the totals box at 48% width.
 * The reference layout already supplies the Bootstrap column, so keep the
 * dynamic totals panel inside that column at its full available width. */
.aq-cart-checkout-wrapper.cart_totals {
  width: 100%;
  float: none;
}

body.woocommerce-cart .cart-collaterals .cart_totals.aq-cart-checkout-wrapper {
  width: 100%;
  float: none;
}

.aq-cart-coupon-input input {
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
}

.aq-cart-coupon-input-box > .aq-form-label {
  display: block;
  width: 100%;
  text-align: left;
}

/* Keep the WooCommerce remove link accessible while presenting the compact
 * delete action used by the cart design. */
.aq-cart-list tr td.product-remove .aq-cart-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  color: #818487;
  font-size: 0;
  line-height: 1;
  text-decoration: none;
  transition:
    color 0.3s ease,
    background-color 0.3s ease;
}

.aq-cart-list tr td.product-remove .aq-cart-action-btn > svg {
  display: none;
}

.aq-cart-list tr td.product-remove .aq-cart-action-btn::before {
  content: "\f2ed";
  font-family: "Font Awesome 6 Pro", FontAwesome, sans-serif;
  font-size: 16px;
  font-weight: 900;
}

.aq-cart-list tr td.product-remove .aq-cart-action-btn:hover {
  color: var(--aq-common-red);
}

.apt-cart-total-line .remove-coupon {
  margin-inline-start: 6px;
  color: var(--aq-common-red);
}

.aq-cart-checkout-proceed {
  padding-top: 0;
}

.aq-cart-checkout-proceed .checkout-button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 13px 30px;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--aq-common-black);
  color: var(--aq-common-white);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  transition: all 0.3s ease;
}

body.woocommerce-cart .aq-cart-checkout-proceed a.checkout-button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 13px 30px;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--aq-common-black);
  color: var(--aq-common-white);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.aq-cart-checkout-proceed .checkout-button::after {
  content: none;
}

.aq-cart-checkout-proceed .checkout-button:hover {
  border-color: rgba(1, 15, 28, 0.1);
  background: transparent;
  color: var(--aq-common-black);
}

.woocommerce-cart-empty-state {
  min-height: 180px;
}

.woocommerce-cart-empty-state .cart-empty {
  margin: 0 auto 25px;
}

.woocommerce-cart-empty-state .return-to-shop {
  margin: 0;
}

@media (max-width: 1199px) {
  .apt-wc-archive-sidebar {
    position: static;
  }
  .apt-wc-product-gallery .woocommerce-product-gallery__image {
    min-height: 420px;
  }
}

@media (max-width: 767px) {
  .apt-wc-archive {
    padding-top: 55px;
    padding-bottom: 55px;
  }
  .apt-wc-archive-toolbar {
    display: block;
  }
  .apt-wc-archive-toolbar .woocommerce-ordering {
    margin-left: 0;
  }
  .apt-wc-archive-toolbar .woocommerce-ordering select {
    width: 100%;
  }
  .apt-wc-product-content {
    min-height: 175px;
    padding: 14px 14px 16px;
  }
  .apt-wc-product-content .aq-product-title {
    font-size: 15px;
  }
  .apt-wc-product-gallery .woocommerce-product-gallery__image {
    min-height: 300px;
  }
  .apt-wc-product-summary {
    padding-top: 35px;
  }
  .apt-wc-single-lower {
    margin-top: 45px;
  }
  .apt-wc-single-lower .wc-tabs {
    gap: 14px;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apt-wc-product-card,
  .apt-wc-product-card img,
  .apt-wc-product-actions a {
    transition: none;
  }
}

/* Product-details-default presentation: use the supplied gallery and detail
 * classes while keeping technical product imagery fully visible. */
.apt-wc-product-details .product-slider-for-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f8fa;
}

.apt-wc-product-details .product-slider-for-img img {
  object-fit: contain;
  object-position: center;
}

.apt-wc-product-details .product-slider-nav-img img {
  object-fit: contain;
  object-position: center;
  padding: 8px;
}

/* The two-column product layout becomes a stacked layout below the desktop
 * breakpoint. Keep the gallery in normal flow there so it never pins over the
 * product summary on tablets or phones. */
@media (max-width: 991.98px) {
  .apt-wc-product-details .product-details-slider-wrap {
    position: static;
  }
}

.apt-wc-product-details .aq-product-details-category a {
  color: inherit;
}

.apt-wc-product-details .aq-product-details-category a:hover {
  color: var(--aq-common-red);
}

.apt-wc-product-details .aq-product-details-rating > span:not(.avarage) {
  margin-inline-end: 2px;
  color: #ff9c05;
  transform: none;
}

.apt-wc-product-details .aq-product-details-rating .avarage {
  margin-inline-start: 7px;
}

.apt-single-native-cart form.cart {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin: 0;
}

.apt-single-native-cart form.cart .variations {
  flex: 0 0 100%;
  margin: 0 0 18px;
}

.apt-single-native-cart form.cart .variations td,
.apt-single-native-cart form.cart .variations th {
  padding: 6px 0;
  text-align: start;
}

.apt-single-native-cart form.cart .variations label {
  color: var(--aq-common-black);
  font-size: 14px;
  font-weight: 500;
}

.apt-single-native-cart form.cart .variations select {
  min-width: 180px;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  background: #fff;
}

.apt-single-native-cart .single_variation_wrap {
  display: flex;
  flex: 0 0 100%;
  flex-wrap: wrap;
}

.apt-single-native-cart .single_variation {
  flex: 0 0 100%;
}

.apt-single-native-cart .single_variation .price {
  display: none;
}

.apt-single-native-cart .woocommerce-variation-description {
  margin-bottom: 12px;
}

.apt-single-native-cart .woocommerce-variation-add-to-cart,
.apt-single-native-cart form.cart:not(.variations_form) {
  display: flex;
  align-items: center;
  flex: 0 0 100%;
  flex-wrap: wrap;
  gap: 10px;
}

.apt-single-native-cart .quantity,
.apt-single-native-cart .aq-product-quantity {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 126px;
  height: 52px;
  margin: 0 !important;
  border: 1px solid rgba(20, 20, 20, 0.12);
}

.apt-single-native-cart .aq-cart-minus,
.apt-single-native-cart .aq-cart-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 100%;
  cursor: pointer;
  color: var(--aq-common-black);
}

.apt-single-native-cart .aq-cart-input,
.apt-single-native-cart input.qty {
  width: 48px;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  text-align: center;
}

/* Keep the quantity value precisely centered between the two controls. */
.apt-wc-single-product .apt-single-native-cart .aq-product-quantity,
.apt-wc-single-product .apt-single-native-cart .quantity {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  justify-content: normal;
  padding-inline: 4px;
}

.apt-wc-single-product
  .apt-single-native-cart
  .aq-product-quantity
  .aq-cart-minus,
.apt-wc-single-product
  .apt-single-native-cart
  .aq-product-quantity
  .aq-cart-plus,
.apt-wc-single-product .apt-single-native-cart .quantity .aq-cart-minus,
.apt-wc-single-product .apt-single-native-cart .quantity .aq-cart-plus {
  position: static;
  inset: auto;
  width: 34px;
  margin: 0;
  justify-self: center;
  transform: none;
}

.apt-wc-single-product
  .apt-single-native-cart
  .aq-product-quantity
  .aq-cart-minus,
.apt-wc-single-product .apt-single-native-cart .quantity .aq-cart-minus {
  grid-column: 1;
}

.apt-wc-single-product
  .apt-single-native-cart
  .aq-product-quantity
  .aq-cart-plus,
.apt-wc-single-product .apt-single-native-cart .quantity .aq-cart-plus {
  grid-column: 3;
}

/* Keep the quantity controls evenly inset from the pill edge and vertically
 * centered. The base theme shifts these SVGs upward for another control style,
 * which makes the single-product controls look too close to the border. */
.apt-wc-single-product .apt-single-native-cart .aq-cart-minus svg,
.apt-wc-single-product .apt-single-native-cart .aq-cart-plus svg {
  transform: none;
}

/* Normalize the shared Cart quantity control as well: keep both symbols in
 * the vertical center of the pill even when another component overrides the
 * base inline alignment. */
.aq-product-quantity > .aq-cart-minus,
.aq-product-quantity > .aq-cart-plus {
  top: 50%;
  bottom: auto;
  display: flex;
  height: 25px;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: translateY(-50%);
}

.aq-product-quantity > .aq-cart-minus svg,
.aq-product-quantity > .aq-cart-plus svg {
  display: block;
  transform: none;
}

.apt-wc-single-product
  .apt-single-native-cart
  .aq-product-quantity
  .aq-cart-input,
.apt-wc-single-product .apt-single-native-cart .aq-product-quantity input.qty,
.apt-wc-single-product .apt-single-native-cart .quantity .aq-cart-input,
.apt-wc-single-product .apt-single-native-cart .quantity input.qty,
.apt-wc-single-product .apt-single-native-cart .quantity input[type="number"],
.apt-wc-single-product .apt-single-native-cart .quantity input[type="text"] {
  display: block;
  width: 100% !important;
  min-width: 0;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  text-align: center !important;
  text-indent: 0 !important;
  box-sizing: border-box;
  grid-column: 2;
}

.apt-single-native-cart .single_add_to_cart_button {
  min-height: 52px;
  flex: 1 1 190px;
  border: 0;
  border-radius: 0;
  background: var(--aq-common-black) !important;
  color: #fff !important;
}

.apt-single-native-cart .single_add_to_cart_button:hover {
  background: var(--aq-common-red) !important;
}

.apt-single-native-cart .reset_variations {
  margin-inline-start: 10px;
  color: var(--aq-common-red);
  font-size: 13px;
}

/* Keep the single-product actions in the reference order:
 * quantity/add to cart, then wishlist. Variable-product options remain inside
 * the cart form, while the wishlist aligns with the form's final action row. */
.apt-wc-single-product .aq-product-details-add-to-cart {
  display: flex;
  align-items: flex-end;
  flex-wrap: nowrap;
  gap: 10px;
}

.apt-wc-single-product
  .aq-product-details-add-to-cart
  > .aq-product-details-add-to-cart-btn {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
}

.apt-wc-single-product .aq-product-details-add-to-cart > .aq-wishlist-btn {
  flex: 0 0 52px;
  align-self: flex-end;
  width: 52px;
  height: 52px;
  margin: 0;
}

@media (max-width: 767px) {
  .apt-wc-single-product .aq-product-details-add-to-cart {
    gap: 8px;
  }

  .apt-wc-single-product .aq-product-details-add-to-cart > .aq-wishlist-btn {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
  }
}

.apt-wc-product-details .aq-product-details-action-sm-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.apt-wc-product-details .aq-product-details-action-sm-btn span {
  margin-inline-end: 7px;
}

.apt-wc-product-details .apt-product-share.is-copied::after {
  content: "Copied";
  margin-inline-start: 6px;
  color: var(--aq-common-red);
  font-size: 12px;
}

.apt-product-description-content > *:last-child,
.apt-wc-product-details .product-details-tab-item > *:last-child {
  margin-bottom: 0;
}

.apt-related-products .aq-section-title {
  font-size: 34px;
}

.apt-related-products-arrows {
  display: flex;
  gap: 8px;
}

.apt-related-products-arrows button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  background: #fff;
  color: var(--aq-common-black);
  transition: all 0.3s ease;
}

.apt-related-products-arrows button:hover {
  background: var(--aq-common-black);
  color: #fff;
}

.apt-related-products .apt-wc-product-card {
  height: 100%;
  margin-bottom: 0;
}

.apt-related-products .swiper-slide {
  height: auto;
}

.apt-related-products-single .apt-related-products-arrows {
  display: none;
}

@media (max-width: 767px) {
  .apt-single-native-cart .quantity,
  .apt-single-native-cart .aq-product-quantity {
    width: 112px;
  }

  .apt-single-native-cart .single_add_to_cart_button {
    flex-basis: 160px;
  }

  .apt-related-products .aq-section-title {
    font-size: 26px;
  }
}

/* Product category slider: keep every thumbnail centered inside a soft circle. */
.apt-product-categories-slider .aqf-categories-2-active .swiper-wrapper {
  align-items: flex-start;
}

.apt-product-categories-slider .aqf-categories-2-active .swiper-slide {
  display: flex;
  height: auto;
  justify-content: center;
}

.apt-product-categories-slider .aqf-categories-item {
  display: block;
  width: 100%;
  text-align: center;
}

.apt-product-categories-slider .aqf-categories-img {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: auto;
  margin-left: auto;
  overflow: hidden;
  border-radius: 50%;
  background-color: #f0efff;
}

.apt-product-categories-slider .aqf-categories-img img {
  width: auto;
  height: auto;
  max-width: 84%;
  max-height: 84%;
  object-fit: contain;
  object-position: center;
}

/* Top-category slider count: keep the quantity inside the reference circle. */
.apt-top-categories-slider .swiper-slide > a {
  display: block;
  text-align: center;
}

.apt-top-categories-slider .apt-top-category-count {
  margin: 8px 0 0;
  color: #818487;
  font-family: var(--aq-ff-satoshi-medium, sans-serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

@media (max-width: 767px) {
  .apt-top-categories-slider .apt-top-category-count {
    font-size: 13px;
  }
}

/* Shop by Category product cards: equal, uncropped technical-product imagery. */
.apt-shop-by-category .row > .col {
  display: flex;
  align-items: stretch;
}

.apt-shop-by-category .aq-product-item {
  display: flex;
  width: 100%;
  height: calc(100% - 60px);
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(15, 15, 15, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(22, 35, 54, 0.04);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.apt-shop-by-category .aq-product-item:hover {
  transform: translateY(-5px);
  border-color: rgba(36, 54, 74, 0.18);
  box-shadow: 0 13px 30px rgba(22, 35, 54, 0.11);
}

.apt-shop-by-category .aq-product-thumb {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  align-items: center;
  justify-content: center;
  margin-bottom: 0 !important;
  padding: 18px;
  overflow: hidden;
  background: #f6f8fb;
}

.apt-shop-by-category .aq-product-thumb > a:not(.aq-product-action-btn) {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.apt-shop-by-category .aq-product-thumb img.aq-product-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(1);
  transition: transform 0.35s ease;
}

.apt-shop-by-category
  .aq-product-item:hover
  .aq-product-thumb
  img.aq-product-img {
  transform: scale(1.04);
}

.apt-shop-by-category .aq-product-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-start;
  padding: 18px 16px 22px;
}

.apt-shop-by-category .aq-product-price {
  min-height: 24px;
  margin-bottom: 8px !important;
}

.apt-shop-by-category .aq-product-title {
  display: -webkit-box;
  min-height: 2.8em;
  margin-bottom: 0 !important;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.apt-shop-by-category .apt-shop-category-empty {
  margin: 0 0 30px;
  color: #818487;
  text-align: center;
}

@media (max-width: 767px) {
  .apt-shop-by-category .aq-product-item {
    height: calc(100% - 30px);
  }
  .apt-shop-by-category .aq-product-thumb {
    padding: 14px;
  }
  .apt-shop-by-category .aq-product-content {
    padding: 14px 12px 18px;
  }
  .apt-shop-by-category .aq-product-title {
    font-size: 15px;
  }
}

/* Best sellers: normalize technical product imagery without cropping it. */
.apt-best-sellers .aq-product-active .swiper-wrapper {
  align-items: stretch;
}

.apt-best-sellers .aq-product-active .swiper-slide {
  display: flex;
  height: auto;
  align-items: stretch;
}

.apt-best-sellers .aq-product-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: calc(100% - 60px);
  padding: 14px;
  border: 1px solid rgba(15, 15, 15, 0.08);
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 18px rgba(22, 35, 54, 0.04);
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.apt-best-sellers .aq-product-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(22, 35, 54, 0.1);
}

.apt-best-sellers .aq-product-thumb {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  margin-bottom: 16px !important;
  padding: 18px;
  overflow: hidden;
  border-radius: 9px;
  background-color: #f6f8fb;
}

.apt-best-sellers .aq-product-thumb > a:not(.aq-product-action-btn) {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.apt-best-sellers .aq-product-thumb img.aq-product-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(1);
  transition: transform 0.35s ease;
}

.apt-best-sellers .aq-product-item:hover .aq-product-thumb img.aq-product-img {
  transform: scale(1.04);
}

.apt-best-sellers .aq-product-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 0 4px 4px;
}

.apt-best-sellers .aq-product-title {
  display: -webkit-box;
  min-height: 2.8em;
  margin-bottom: 10px;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.apt-best-sellers .aq-product-price {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  margin-bottom: 0;
  line-height: 1.4;
}

.apt-best-sellers .aq-product-price .amount {
  font-size: 16px;
}

@media (max-width: 767px) {
  .apt-best-sellers .aq-product-item {
    padding: 10px;
  }

  .apt-best-sellers .aq-product-thumb {
    padding: 14px;
  }
}

@media (max-width: 767px) {
  .apt-wishlist-item {
    align-items: flex-start !important;
  }
  .apt-wishlist-actions {
    width: 100%;
  }
}

/* Homepage additions: native Elementor sections using the existing theme system. */
.apt-home-section {
  width: 100%;
  padding: clamp(56px, 7vw, 104px) 20px;
  background-color: #fff;
}

.apt-home-section > .e-con-inner {
  width: 100%;
  max-width: 1750px;
  margin: 0 auto;
}

.apt-home-section.apt-home-solutions,
.apt-home-section.apt-home-benefits,
.apt-home-section.apt-home-tubing {
  background-color: #f7f9fc;
}

.apt-home-heading,
.apt-home-lead {
  width: 100%;
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.apt-home-heading .elementor-heading-title {
  color: #24364a;
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.15;
}

.apt-home-lead p {
  max-width: 700px;
  margin: 14px auto 0;
  color: #667384;
  font-size: 17px;
  line-height: 1.65;
}

.apt-home-shortcode {
  width: 100%;
}

.apt-home-shortcode .apt-product-categories-slider {
  padding-top: 24px;
  padding-bottom: 12px;
}

.apt-home-cta {
  margin: 6px auto 0;
  text-align: center;
}

.apt-home-cta .apt-dynamic-category-button,
.apt-product-highlight__content .aq-btn-white {
  color: #fff;
  background-color: #24364a;
  border-color: #24364a;
}

.apt-home-cta .apt-dynamic-category-button:hover,
.apt-product-highlight__content .aq-btn-white:hover {
  color: #24364a;
  background-color: transparent;
  border-color: #24364a;
}

.apt-solution-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: min(100%, 1320px);
  margin: 28px auto 0;
}

.apt-solution-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border: 1px solid rgba(36, 54, 74, 0.1);
  border-radius: 12px;
  color: #24364a;
  background: #fff;
  box-shadow: 0 5px 18px rgba(22, 35, 54, 0.04);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.apt-solution-card:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 54, 74, 0.26);
  color: #24364a;
  box-shadow: 0 14px 30px rgba(22, 35, 54, 0.1);
}

.apt-solution-card__eyebrow,
.apt-home-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #a51f2b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.apt-solution-card h3 {
  margin: 0 0 10px;
  color: inherit;
  font-size: 23px;
  line-height: 1.25;
}

.apt-solution-card__count {
  color: #6d7885;
  font-size: 14px;
}

.apt-solution-card__link {
  margin-top: 20px;
  color: #a51f2b;
  font-size: 14px;
  font-weight: 700;
}

.apt-product-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  width: min(100%, 1250px);
  margin: 30px auto 0;
}

.apt-product-highlight__media {
  display: flex;
  aspect-ratio: 1 / 1;
  align-items: center;
  justify-content: center;
  padding: 36px;
  overflow: hidden;
  border-radius: 14px;
  background-color: #f5f7fa;
}

.apt-product-highlight__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}

.apt-product-highlight__media:hover img {
  transform: scale(1.035);
}

.apt-product-highlight__content h3 {
  margin: 0 0 18px;
  color: #24364a;
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.2;
}

.apt-product-highlight__description {
  margin-bottom: 18px;
  color: #667384;
  font-size: 16px;
  line-height: 1.7;
}

.apt-product-highlight__price {
  margin-bottom: 24px;
  color: #24364a;
  font-size: 21px;
  font-weight: 700;
}

.apt-benefits-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 36px;
  width: min(100%, 900px);
  margin: 30px auto 0;
  padding: 0;
  list-style: none;
}

.apt-benefits-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #24364a;
  font-size: 16px;
  line-height: 1.5;
}

.apt-benefits-list__icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background-color: #a51f2b;
  font-size: 12px;
}

.apt-support-cta {
  display: flex;
  width: min(100%, 1320px);
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 16px;
  color: #fff;
  background: #162536;
}

.apt-support-cta__content {
  max-width: 700px;
}

.apt-support-cta .apt-home-eyebrow {
  color: #c9d5e2;
}

.apt-support-cta h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(27px, 3vw, 44px);
  line-height: 1.2;
}

.apt-support-cta p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

.apt-support-cta__actions {
  display: flex;
  min-width: 230px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.apt-support-cta__contact {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.apt-support-cta__contact:hover {
  color: #fff;
}

.apt-support-cta__contact span {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 991px) {
  .apt-solution-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apt-support-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .apt-home-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .apt-home-lead p {
    font-size: 15px;
  }

  .apt-solution-card-grid,
  .apt-product-highlight,
  .apt-benefits-list {
    grid-template-columns: 1fr;
  }

  .apt-solution-card {
    min-height: 160px;
    padding: 22px;
  }

  .apt-product-highlight__media {
    padding: 24px;
  }

  .apt-support-cta__actions {
    width: 100%;
  }
}
/* Prevent decorative transforms and wide Elementor rows from creating a page
 * scrollbar while preserving the root scroll container used by native sticky
 * elements (including the single-product gallery). `hidden` on the horizontal
 * axis implicitly creates an auto vertical overflow container in Chromium,
 * which prevents `position: sticky` from following the document scroll. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

/* --------------------------------------------------------------------------
 * Reusable APT Instruments section backgrounds.
 * Add one of these classes to an Elementor section/container. Decorative
 * layers stay behind content and do not require any additional markup.
 * -------------------------------------------------------------------------- */
.apt-bg-dark-grid {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --apt-grid-x: 0px;
  --apt-grid-y: 0px;
  --apt-grid-x-soft: 0px;
  --apt-grid-y-soft: 0px;
  background-color: #090d10;
  background-image:
    linear-gradient(to right, rgba(151, 170, 181, 0.13) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(151, 170, 181, 0.17) 1px, transparent 1px);
  background-size:
    clamp(78px, 9vw, 115px) 100%,
    100% clamp(78px, 9vw, 108px);
  background-position:
    var(--apt-grid-x) var(--apt-grid-y),
    var(--apt-grid-x-soft) var(--apt-grid-y-soft);
  transition: background-position 0.78s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.apt-bg-dark-grid > * {
  position: relative;
  z-index: 1;
}

.apt-bg-dark-grid::before,
.apt-bg-dark-grid::after {
  /* Elementor containers may reset pseudo-element content to none. Keep
   * these two decorative layers explicitly present on the frontend. */
  content: "" !important;
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.apt-bg-dark-grid::before {
  inset: -22%;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(160, 29, 32, 0.32) 0%,
      rgba(160, 29, 32, 0.14) 23%,
      transparent 62%
    ),
    radial-gradient(
      circle at 18% 78%,
      rgba(160, 29, 32, 0.16) 0%,
      transparent 44%
    );
  background-size:
    145% 145%,
    100% 100%;
  background-position:
    42% 44%,
    0 0;
  filter: blur(38px);
  opacity: 0.86;
  transform: translate3d(
      var(--apt-dark-grid-parallax-x, 0px),
      var(--apt-dark-grid-parallax-y, 0px),
      0
    )
    scale(1.08);
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  animation: apt-bg-dark-grid-glow 14s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.apt-bg-dark-grid::after {
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 30%,
    rgba(4, 7, 9, 0.24) 100%
  );
  opacity: 0.9;
}

.apt-bg-orbit,
.apt-bg-glow,
.apt-bg-grid-3d,
.apt-bg-wave,
.apt-bg-particles {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #f3f8fb;
}

.apt-bg-orbit > *,
.apt-bg-glow > *,
.apt-bg-grid-3d > *,
.apt-bg-wave > *,
.apt-bg-particles > * {
  position: relative;
  z-index: 1;
}

.apt-bg-orbit::before,
.apt-bg-orbit::after,
.apt-bg-glow::before,
.apt-bg-glow::after,
.apt-bg-grid-3d::before,
.apt-bg-grid-3d::after,
.apt-bg-wave::before,
.apt-bg-wave::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  translate: var(--apt-bg-parallax-x, 0px) var(--apt-bg-parallax-y, 0px);
}

.apt-bg-orbit::before {
  top: -30%;
  left: 38%;
  width: 48%;
  height: 155%;
  border: 1px solid rgba(73, 123, 156, 0.34);
  border-radius: 50%;
  box-shadow:
    0 0 0 22px rgba(73, 123, 156, 0.08),
    0 0 0 52px rgba(73, 123, 156, 0.055),
    0 0 48px rgba(73, 123, 156, 0.1);
  transform: rotate(-18deg);
  animation: apt-bg-orbit-drift 18s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.apt-bg-orbit::after {
  inset: 0;
  background:
    radial-gradient(
      circle at 14% 28%,
      rgba(72, 139, 181, 0.55) 0 9px,
      rgba(72, 139, 181, 0.17) 10px 34px,
      transparent 35px
    ),
    radial-gradient(
      circle at 77% 22%,
      rgba(121, 169, 198, 0.58) 0 13px,
      rgba(121, 169, 198, 0.18) 14px 43px,
      transparent 44px
    ),
    radial-gradient(
      circle at 83% 78%,
      rgba(72, 139, 181, 0.42) 0 9px,
      rgba(72, 139, 181, 0.13) 10px 29px,
      transparent 30px
    ),
    radial-gradient(
      circle at 28% 84%,
      rgba(175, 205, 220, 0.55) 0 12px,
      rgba(175, 205, 220, 0.16) 13px 38px,
      transparent 39px
    );
  animation: apt-bg-orbit-spheres 22s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.apt-bg-glow::before {
  top: -28%;
  right: -8%;
  width: 72%;
  height: 120%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(82, 157, 199, 0.34) 0%,
    rgba(151, 199, 219, 0.17) 38%,
    transparent 72%
  );
  filter: blur(24px);
  transform: translate3d(0, 0, 0);
  animation: apt-bg-glow-float 20s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.apt-bg-glow::after {
  bottom: -36%;
  left: -10%;
  width: 62%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(167, 202, 219, 0.38) 0%,
    rgba(210, 228, 237, 0.16) 42%,
    transparent 74%
  );
  filter: blur(28px);
  animation: apt-bg-glow-float-alt 24s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.apt-bg-grid-3d::before {
  inset: -40% -15% -16%;
  background-image:
    linear-gradient(rgba(63, 111, 142, 0.19) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 111, 142, 0.19) 1px, transparent 1px);
  background-size: 54px 54px;
  transform: perspective(850px) rotateX(61deg) scale(1.35) translateY(11%);
  transform-origin: center top;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.85) 34%,
    rgba(0, 0, 0, 0.2) 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.85) 34%,
    rgba(0, 0, 0, 0.2) 100%
  );
  animation: apt-bg-grid-drift 26s linear infinite;
  animation-play-state: paused;
}

.apt-bg-grid-3d::after {
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 44%,
    transparent 0%,
    rgba(243, 248, 251, 0.1) 44%,
    rgba(243, 248, 251, 0.84) 100%
  );
}

.apt-bg-wave::before {
  right: -18%;
  bottom: -52%;
  left: -18%;
  height: 115%;
  border-radius: 48% 52% 0 0 / 35% 42% 0 0;
  background:
    repeating-linear-gradient(
      174deg,
      transparent 0 17px,
      rgba(65, 127, 158, 0.16) 18px 20px
    ),
    repeating-linear-gradient(
      8deg,
      transparent 0 31px,
      rgba(127, 171, 193, 0.1) 32px 33px
    ),
    radial-gradient(
      ellipse at 50% 18%,
      rgba(91, 157, 186, 0.28),
      rgba(196, 222, 232, 0.12) 48%,
      transparent 73%
    );
  filter: blur(0.2px);
  transform: rotate(-3deg) translate3d(0, 0, 0);
  animation: apt-bg-wave-motion 19s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.apt-bg-wave::after {
  top: -34%;
  right: -12%;
  width: 70%;
  height: 82%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(126, 185, 209, 0.25) 0%,
    rgba(214, 235, 241, 0.12) 54%,
    transparent 73%
  );
  filter: blur(24px);
  animation: apt-bg-wave-orb 23s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.apt-bg-particles::before {
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 28%,
    rgba(243, 248, 251, 0.3) 100%
  );
}

.apt-bg-particles > .apt-bg-particles-canvas {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.72;
}

.apt-bg-is-visible.apt-bg-orbit::before,
.apt-bg-is-visible.apt-bg-orbit::after,
.apt-bg-is-visible.apt-bg-glow::before,
.apt-bg-is-visible.apt-bg-glow::after,
.apt-bg-is-visible.apt-bg-grid-3d::before,
.apt-bg-is-visible.apt-bg-wave::before,
.apt-bg-is-visible.apt-bg-wave::after,
.apt-bg-is-visible.apt-bg-dark-grid::before {
  animation-play-state: running;
}

@keyframes apt-bg-dark-grid-glow {
  0% {
    background-position:
      37% 42%,
      0 0;
    opacity: 0.72;
  }
  100% {
    background-position:
      65% 59%,
      0 0;
    opacity: 0.94;
  }
}

@keyframes apt-bg-orbit-drift {
  0% {
    transform: rotate(-18deg) translate3d(-2%, 1%, 0);
  }
  100% {
    transform: rotate(-11deg) translate3d(3%, -2%, 0);
  }
}

@keyframes apt-bg-orbit-spheres {
  0% {
    transform: translate3d(-1.5%, 1%, 0) scale(1);
  }
  100% {
    transform: translate3d(1.5%, -1.5%, 0) scale(1.025);
  }
}

@keyframes apt-bg-glow-float {
  0% {
    transform: translate3d(-3%, 2%, 0) scale(0.98);
  }
  100% {
    transform: translate3d(3%, -3%, 0) scale(1.04);
  }
}

@keyframes apt-bg-glow-float-alt {
  0% {
    transform: translate3d(2%, -2%, 0) scale(1);
  }
  100% {
    transform: translate3d(-4%, 3%, 0) scale(1.06);
  }
}

@keyframes apt-bg-grid-drift {
  0% {
    background-position:
      0 0,
      0 0;
  }
  100% {
    background-position:
      54px 27px,
      54px 27px;
  }
}

@keyframes apt-bg-wave-motion {
  0% {
    transform: rotate(-3deg) translate3d(-1%, 1%, 0) scaleX(1);
  }
  100% {
    transform: rotate(2deg) translate3d(2%, -2%, 0) scaleX(1.03);
  }
}

@keyframes apt-bg-wave-orb {
  0% {
    transform: translate3d(2%, 1%, 0) scale(0.96);
  }
  100% {
    transform: translate3d(-3%, -2%, 0) scale(1.05);
  }
}

@media (max-width: 767px) {
  .apt-bg-dark-grid::before {
    inset: -28%;
    filter: blur(32px);
    opacity: 0.72;
  }

  .apt-bg-orbit::before {
    left: 28%;
    width: 66%;
    opacity: 0.72;
  }

  .apt-bg-grid-3d::before {
    background-size: 38px 38px;
    transform: perspective(650px) rotateX(62deg) scale(1.3) translateY(12%);
    opacity: 0.72;
  }

  .apt-bg-particles > .apt-bg-particles-canvas {
    opacity: 0.52;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apt-bg-orbit::before,
  .apt-bg-orbit::after,
  .apt-bg-glow::before,
  .apt-bg-glow::after,
  .apt-bg-grid-3d::before,
  .apt-bg-wave::before,
  .apt-bg-wave::after,
  .apt-bg-dark-grid::before {
    animation: none !important;
  }

  .apt-bg-dark-grid {
    transition: none;
  }

  .apt-bg-dark-grid::before {
    transition: none;
  }

  .apt-bg-particles > .apt-bg-particles-canvas {
    display: none;
  }
}


/* WooCommerce archive: preserve the supplied product-left-sidebar layout while
 * keeping the technical product-card treatment used by APT Instruments. */
.apt-wc-archive .aq-product-sidebar-text .woocommerce-result-count {
  margin: 0;
}

.apt-wc-archive .aq-product-sidebar-right .woocommerce-ordering {
  margin: 0;
}

.apt-wc-archive .aq-product-sidebar-right .woocommerce-ordering select {
  min-width: 155px;
  padding: 0 24px 0 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.apt-wc-archive #aq-gridLayout {
  width: 100%;
}

.apt-wc-archive #aq-gridLayout .apt-wc-product-card {
  min-width: 0;
}

.apt-wc-archive #aq-listLayout .apt-wc-product-card {
  width: 100%;
  min-height: 0;
  flex-direction: row;
  border-radius: 0;
  box-shadow: none;
}

.apt-wc-archive #aq-listLayout .apt-wc-product-card .aq-product-thumb {
  width: 400px;
  min-width: 400px;
  height: 400px;
  aspect-ratio: auto;
  margin: 0;
}

.apt-wc-archive #aq-listLayout .apt-wc-product-card .apt-wc-product-content {
  min-height: 0;
  padding: 45px 30px 30px;
}

.apt-wc-archive #aq-listLayout .apt-wc-product-card .apt-wc-product-actions {
  margin-top: 14px;
}

/* WooCommerce archive pagination: match the supplied square-button reference
 * while keeping the native links, current state, and pagination semantics. */
.apt-wc-archive .aq-pagination {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.apt-wc-archive .aq-pagination .woocommerce-pagination {
  width: 100%;
  margin: 0;
}

.apt-wc-archive .aq-pagination .woocommerce-pagination ul.page-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.apt-wc-archive .aq-pagination .woocommerce-pagination ul.page-numbers li {
  display: block;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

.apt-wc-archive
  .aq-pagination
  .woocommerce-pagination
  ul.page-numbers
  li
  a.page-numbers,
.apt-wc-archive
  .aq-pagination
  .woocommerce-pagination
  ul.page-numbers
  li
  span.page-numbers {
  display: inline-flex;
  width: 55px;
  height: 55px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #dfe3e7;
  border-radius: 0;
  background: #fff;
  color: #46515d;
  font-family: var(--aq-ff-onest, sans-serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.apt-wc-archive
  .aq-pagination
  .woocommerce-pagination
  ul.page-numbers
  li
  span.page-numbers.current {
  border-color: #141414;
  background: #141414;
  color: #fff;
}

.apt-wc-archive
  .aq-pagination
  .woocommerce-pagination
  ul.page-numbers
  li
  a.page-numbers:hover,
.apt-wc-archive
  .aq-pagination
  .woocommerce-pagination
  ul.page-numbers
  li
  a.page-numbers:focus-visible {
  border-color: #141414;
  background: #141414;
  color: #fff;
}

.apt-wc-archive
  .aq-pagination
  .woocommerce-pagination
  ul.page-numbers
  li
  a.prev,
.apt-wc-archive
  .aq-pagination
  .woocommerce-pagination
  ul.page-numbers
  li
  a.next {
  font-size: 29px;
  font-weight: 300;
}

.apt-wc-archive
  .aq-pagination
  .woocommerce-pagination
  ul.page-numbers
  li
  span.dots {
  width: auto;
  min-width: 20px;
  border-color: transparent;
  background: transparent;
}

@media (max-width: 767px) {
  .apt-wc-archive .aq-pagination .woocommerce-pagination ul.page-numbers {
    gap: 6px;
    flex-wrap: wrap;
  }

  .apt-wc-archive
    .aq-pagination
    .woocommerce-pagination
    ul.page-numbers
    li
    a.page-numbers,
  .apt-wc-archive
    .aq-pagination
    .woocommerce-pagination
    ul.page-numbers
    li
    span.page-numbers {
    width: 46px;
    height: 46px;
    font-size: 16px;
  }
}

/* The supplied archive reference exposes actions from the product image on
 * desktop. Keep the existing inline button as a mobile/list-view fallback. */
@media (min-width: 768px) {
  .apt-wc-archive #aq-gridLayout .apt-wc-product-actions {
    display: none;
  }
}

.apt-wc-archive
  #aq-gridLayout
  .aq-product-action
  .shopengine_add_to_list_action,
.apt-wc-archive
  #aq-gridLayout
  .aq-product-action
  .shopengine_comparison_add_to_list_action {
  cursor: pointer;
}

.apt-wc-archive
  #aq-gridLayout
  .aq-product-action
  .shopengine_add_to_list_action.active,
.apt-wc-archive
  #aq-gridLayout
  .aq-product-action
  .shopengine_comparison_add_to_list_action.active {
  color: var(--aq-common-white);
  background-color: var(--aq-common-black);
}

.aq-product-sidebar-offcanvas.apt-wc-archive-sidebar {
  position: fixed;
  z-index: 1002;
  top: 0;
  left: 0;
  width: min(360px, 92vw);
  height: 100vh;
  padding: 30px;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  background: #fff;
  transform: translateX(-100%);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
}

.aq-product-sidebar-offcanvas.apt-wc-archive-sidebar.opened {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

.aq-product-sidebar-offcanvas.apt-wc-archive-sidebar .aq-sidebar-close {
  display: block;
  margin: 0 0 24px auto;
  border: 0;
  color: #141414;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.aq-product-sidebar-offcanvas.apt-wc-archive-sidebar .aq-product-sidebar-wrap {
  position: static;
}

.aq-product-sidebar-offcanvas.apt-wc-archive-sidebar
  .aq-product-sidebar-widget-filter-info {
  gap: 12px;
}

.aq-product-sidebar-offcanvas.apt-wc-archive-sidebar
  .aq-product-sidebar-widget-filter-btn {
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
}

.apt-wc-archive .aq-product-sidebar-widget-checkbox ul li a {
  display: block;
}

.apt-wc-archive .apt-wc-price-track {
  position: relative;
  height: 24px;
  margin-top: 38px;
  background: transparent;
}

.apt-wc-archive .apt-wc-price-tooltip {
  position: absolute;
  top: -35px;
  z-index: 6;
  min-width: 62px;
  padding: 5px 8px;
  border: 1px solid rgba(20, 20, 20, .14);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(20, 20, 20, .12);
  color: var(--aq-common-black, #141414);
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
}

.apt-wc-archive .apt-wc-price-tooltip::after {
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(20, 20, 20, .14);
  border-bottom: 1px solid rgba(20, 20, 20, .14);
  background: #fff;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.apt-wc-archive .apt-wc-price-fields,
.apt-wc-archive .apt-wc-price-filter .input-range {
  display: none;
}

.apt-wc-archive .apt-wc-filter-reset {
  color: var(--aq-common-black, #141414);
  font-size: 13px;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s ease;
}

.apt-wc-archive .apt-wc-filter-reset:hover {
  color: #a01d20;
}

.apt-wc-archive .apt-product-support-contact {
  display: block;
  margin-top: 8px;
  color: inherit;
  overflow-wrap: anywhere;
}

.apt-wc-archive .aq-layout-switcher-icon .apt-layout-icon {
  display: block;
  width: 24px;
  height: 24px;
  opacity: .4;
  transition: opacity .3s ease-out;
}

.apt-wc-archive .aq-layout-switcher-item.active .apt-layout-icon {
  opacity: 1;
}

.apt-wc-archive .apt-wc-price-track-fill {
  position: absolute;
  z-index: 1;
  top: 11px;
  right: calc(100% - var(--apt-price-end, 100%));
  left: var(--apt-price-start, 0%);
  height: 3px;
  border-radius: 999px;
  background: var(--aq-common-black, #141414);
  pointer-events: none;
}

.apt-wc-archive .apt-wc-price-range {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 24px;
  margin: 0;
  padding: 0;
  appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  pointer-events: none;
}

.apt-wc-archive .apt-wc-price-range.apt-wc-price-range-min {
  z-index: 3;
}

.apt-wc-archive .apt-wc-price-range.apt-wc-price-range-min.is-active,
.apt-wc-archive .apt-wc-price-range.apt-wc-price-range-max.is-active {
  z-index: 6;
}

.apt-wc-archive .apt-wc-price-track.apt-price-handles-close .apt-wc-price-range-min::-webkit-slider-thumb {
  transform: translateX(-8px);
}

.apt-wc-archive .apt-wc-price-track.apt-price-handles-close .apt-wc-price-range-max::-webkit-slider-thumb {
  transform: translateX(8px);
}

.apt-wc-archive .apt-wc-price-track.apt-price-handles-close .apt-wc-price-range-min::-moz-range-thumb {
  transform: translateX(-8px);
}

.apt-wc-archive .apt-wc-price-track.apt-price-handles-close .apt-wc-price-range-max::-moz-range-thumb {
  transform: translateX(8px);
}

.apt-wc-archive .apt-wc-price-range::-webkit-slider-runnable-track {
  height: 3px;
  background: transparent;
}

.apt-wc-archive .apt-wc-price-range::-moz-range-track {
  height: 3px;
  background: transparent;
}

.apt-wc-archive .apt-wc-price-range::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -7px;
  appearance: none;
  border: 4px solid var(--aq-common-black, #141414);
  border-radius: 50%;
  background: #fff;
  cursor: grab;
  pointer-events: auto;
}

.apt-wc-archive .apt-wc-price-range:active::-webkit-slider-thumb {
  cursor: grabbing;
}

.apt-wc-archive .apt-wc-price-range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 4px solid var(--aq-common-black, #141414);
  border-radius: 50%;
  background: #fff;
  cursor: grab;
  pointer-events: auto;
}

.apt-wc-archive .apt-wc-price-range:active::-moz-range-thumb {
  cursor: grabbing;
}

.apt-wc-archive.is-price-loading .aq-product-content {
  opacity: .58;
  transition: opacity .2s ease;
}

/* -------------------------------------------------------------------------
 * Responsive QA hardening.
 * These rules only remove fixed-width/overflow edge cases from the existing
 * components; they do not change the desktop visual system or interactions.
 * ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
iframe {
  max-width: 100%;
}

button,
input,
select,
textarea {
  max-width: 100%;
}

.swiper,
.swiper-container,
.elementor,
.elementor-section,
.e-con {
  max-width: 100%;
}

.apt-wc-archive .aq-breadcrumb-categories-wrap {
  min-width: 0;
}

@media (max-width: 1199px) {
  .apt-wc-archive #aq-listLayout .apt-wc-product-card .aq-product-thumb {
    width: min(330px, 36vw);
    min-width: min(330px, 36vw);
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .apt-wc-archive .aq-product-sidebar-wrap {
    max-width: 100%;
  }

  .apt-woocommerce-page .aq-checkout-form > .col-lg-7,
  .apt-woocommerce-page .aq-checkout-form > .col-lg-5 {
    max-width: 100%;
  }
}

@media (max-width: 991px) {
  .apt-wc-archive .aq-product-wrap > .row {
    --bs-gutter-x: 24px;
  }

  .apt-wc-archive #aq-listLayout .apt-wc-product-card .aq-product-thumb {
    width: min(300px, 38vw);
    min-width: min(300px, 38vw);
  }

  .apt-woocommerce-page .aq-checkout-form {
    max-width: 100%;
  }

  .apt-woocommerce-page .aq-checkout-form > .col-lg-7,
  .apt-woocommerce-page .aq-checkout-form > .col-lg-5 {
    flex-basis: 100%;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .container,
  .container-fluid {
    padding-right: 15px;
    padding-left: 15px;
  }

  .aqf-slider-area.apt-hero-slider .aqf-slider-item > .container {
    padding-right: 15px;
    padding-left: 15px;
  }

  .apt-wc-archive .aq-product-wrap > .row {
    --bs-gutter-x: 0px;
  }

  .apt-wc-archive .aq-breadcrumb-wrap .aq-breadcrumb-list {
    margin-bottom: 35px !important;
  }

  /* Keep the archive category rail touch-scrollable without allowing it to
   * expand the document width. */
  .apt-wc-archive .aq-breadcrumb-categories-wrap {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .apt-wc-archive .aq-breadcrumb-categories-wrap::-webkit-scrollbar {
    display: none;
  }

  .apt-wc-archive .aq-breadcrumb-categories-wrap .aqf-categories-wrap {
    width: max-content;
    min-width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start !important;
    gap: 16px;
    padding: 0 2px 4px;
  }

  .apt-wc-archive .aq-breadcrumb-categories-wrap .aqf-categories-item {
    flex: 0 0 78px;
  }

  .apt-wc-archive .aq-product-sidebar-top,
  .apt-wc-archive .aq-product-sidebar-left,
  .apt-wc-archive .aq-product-sidebar-right {
    min-width: 0;
  }

  .apt-wc-archive .aq-product-sidebar-widget-filter-info {
    flex-wrap: wrap;
  }

  .apt-wc-archive #aq-listLayout .apt-wc-product-card .aq-product-thumb {
    width: 35%;
    min-width: 0;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .apt-wc-archive #aq-listLayout .apt-wc-product-card .apt-wc-product-content {
    min-width: 0;
    padding: 16px 14px;
  }

  .apt-wc-product-content .aq-product-title {
    display: -webkit-box;
    max-width: 100%;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .apt-wc-product-price,
  .apt-wc-product-price .amount,
  .apt-wc-product-price ins,
  .apt-wc-product-price del {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .apt-wc-product-actions,
  .apt-wc-product-actions a {
    max-width: 100%;
  }

  .apt-wc-subcategory-card {
    min-width: 0;
  }

  .apt-wc-subcategory-description {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .apt-woocommerce-page .aq-cart-list {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .apt-woocommerce-page .aq-cart-list .table {
    min-width: 640px;
  }

  .apt-woocommerce-page .woocommerce-checkout-review-order-table {
    display: block;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .apt-woocommerce-page .aq-checkout-form .aq-order-info-list-desc p,
  .apt-woocommerce-page .woocommerce-checkout-review-order-table td,
  .apt-woocommerce-page .woocommerce-checkout-review-order-table th {
    overflow-wrap: anywhere;
  }

  .apt-woocommerce-page .aq-checkout-form .aq-order-info-list-products {
    max-height: 300px;
    padding-right: 4px;
  }

  .apt-woocommerce-page .aq-checkout-form .aq-order-info-list-products > li.cart_item {
    gap: 10px;
  }

  .apt-woocommerce-page .aq-checkout-form .aq-order-info-product-thumb {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
  }

  .apt-woocommerce-page .aq-checkout-form .aq-order-info-product-variation .variation {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .apt-woocommerce-page .aq-checkout-form .aq-order-info-product-price {
    font-size: 14px;
  }

  .apt-single-native-cart form.cart .variations select {
    width: 100%;
    min-width: 0;
  }

  .apt-single-native-cart .single_add_to_cart_button {
    min-width: 0;
    padding-right: 12px;
    padding-left: 12px;
  }

  .apt-wc-single-product .aq-product-details-add-to-cart > .aq-product-details-add-to-cart-btn {
    min-width: 0;
  }

}

@media (max-width: 480px) {
  .apt-wc-subcategory-card {
    gap: 10px;
    padding: 7px;
  }

  .apt-wc-subcategory-image-link,
  .apt-wc-subcategory-list .aq-categories-item-img {
    width: 86px;
    flex-basis: 86px;
  }

  .apt-wc-subcategory-list .aq-categories-item-img {
    height: 68px;
  }

  .apt-wc-subcategory-list .aq-categories-item-title {
    font-size: 16px;
  }

  .apt-wc-subcategory-list .aq-categories-item-content > span,
  .apt-wc-subcategory-description {
    font-size: 12px;
  }

  .apt-wc-subcategory-arrow {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .apt-wc-single-product .aq-product-details-add-to-cart {
    gap: 6px;
  }

  .apt-wc-single-product .aq-product-details-add-to-cart > .aq-wishlist-btn {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .apt-single-native-cart .quantity,
  .apt-single-native-cart .aq-product-quantity {
    width: 98px;
  }

  .apt-single-native-cart .single_add_to_cart_button {
    flex: 1 1 0;
    flex-basis: 0;
  }
}

@media (max-width: 360px) {
  .container,
  .container-fluid,
  .apt-home-section {
    padding-right: 12px;
    padding-left: 12px;
  }

  .apt-wc-single-product .aq-product-details-add-to-cart > .aq-wishlist-btn {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .apt-single-native-cart .quantity,
  .apt-single-native-cart .aq-product-quantity {
    width: 92px;
  }
}

@media (max-width: 1199px) {
  .aq-product-sidebar-offcanvas.apt-wc-archive-sidebar {
    display: block;
  }

  .apt-wc-archive #aq-listLayout .apt-wc-product-card .aq-product-thumb {
    width: 330px;
    min-width: 330px;
  }
}

@media (max-width: 767px) {
  .apt-wc-archive #aq-listLayout .apt-wc-product-card {
    align-items: stretch;
  }

  .apt-wc-archive #aq-listLayout .apt-wc-product-card .aq-product-thumb {
    width: 35%;
    min-width: 0;
    height: auto;
    min-height: 180px;
    padding: 12px;
  }

  .apt-wc-archive #aq-listLayout .apt-wc-product-card .apt-wc-product-content {
    padding: 20px;
  }
}

/* Final cascade corrections for the legacy archive rules above. */
@media (max-width: 1199px) {
  .apt-wc-archive #aq-listLayout .apt-wc-product-card .aq-product-thumb {
    width: min(330px, 36vw);
    min-width: min(330px, 36vw);
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 767px) {
  .apt-wc-archive #aq-listLayout .apt-wc-product-card .aq-product-thumb {
    width: 35%;
    min-width: 0;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .apt-wc-archive #aq-listLayout .apt-wc-product-card .apt-wc-product-content {
    min-width: 0;
    padding: 16px 14px;
  }
}

/* The archive breadcrumb is rendered before the product-area wrapper, so
 * scope its mobile rail to the WooCommerce body instead of the later archive
 * section. This keeps the category strip touch-scrollable without widening
 * the document. */
@media (max-width: 767px) {
  .apt-woocommerce-page .aq-breadcrumb-wrap .aq-breadcrumb-list {
    margin-bottom: 35px !important;
  }

  .apt-woocommerce-page .aq-breadcrumb-categories-wrap {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .apt-woocommerce-page .aq-breadcrumb-categories-wrap::-webkit-scrollbar {
    display: none;
  }

  .apt-woocommerce-page .aq-breadcrumb-categories-wrap .aqf-categories-wrap {
    width: max-content;
    min-width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start !important;
    gap: 16px;
    padding: 0 2px 4px;
  }

  .apt-woocommerce-page .aq-breadcrumb-categories-wrap .aqf-categories-item {
    flex: 0 0 78px;
  }

  /* Bootstrap rows normally use negative gutters. These two shortcode rows
   * can sit directly inside Elementor widgets, so neutralise only their
   * outer gutter on narrow screens while preserving the column padding. */
  .apt-testimonials-shortcode,
  .apt-blog-shortcode {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  /* The global heading reveal splits words into inline-block characters.
   * Allow long instrument words to wrap on small screens instead of pushing
   * the heading beyond its container. */
  .elementor-heading-title .apt-heading-word {
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
}
/* Customer account conversion: scoped helpers for dynamic account views. */
.aq-dashboard-sidebar-menu a i { width: 16px; text-align: center; }
.apt-account-simple-list > a {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  color: inherit;
  border-bottom: 1px solid #ececec;
}
.apt-account-simple-list > a:last-child { border-bottom: 0; }
.apt-account-simple-list > a:hover { color: #a01d20; }
.apt-account-product-card { padding: 20px; height: 100%; }
.apt-account-product-card img { width: 100%; height: 170px; object-fit: contain; margin-bottom: 15px; }
.apt-account-order-addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; padding: 24px; }
.apt-account-order-addresses h3 { margin-bottom: 10px; font-size: 18px; }
.apt-account-register-block { padding-top: 28px; border-top: 1px solid #ececec; }

/* Account authentication branding: use the configured APT logo instead of a photographic panel. */
.aq-login-box .apt-account-logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 5vw, 76px);
  background: #fff9ee;
}

.aq-login-box .apt-account-logo-panel img.apt-account-logo {
  display: block;
  width: min(100%, 430px);
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 0;
}

@media (max-width: 991px) {
  .aq-login-box .apt-account-logo-panel {
    min-height: 250px;
    height: auto;
    padding: 42px 32px;
  }

  .aq-login-box .apt-account-logo-panel img.apt-account-logo {
    width: min(100%, 360px);
  }
}
.aq-dashboard-from-input .aq-form-label,
.aq-login-input-box .aq-form-label { display: block; margin-bottom: 8px; }
.aq-dashboard-from-input .aq-form-control,
.aq-login-input-box .aq-form-control { width: 100%; }

.aq-password-field {
  position: relative;
}

.aq-password-field input[type="password"],
.aq-password-field input[type="text"][data-password-input="true"] {
  padding-right: 52px;
}

.aq-password-field .apt-password-toggle {
  position: absolute;
  top: calc(50% + 12px);
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  color: #68717a;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.aq-password-field .apt-password-toggle:hover,
.aq-password-field .apt-password-toggle:focus-visible {
  color: #a01d20;
}

.aq-password-field .apt-password-toggle span {
  display: inline-flex;
  width: 19px;
  height: 19px;
}

.aq-password-field .apt-password-toggle .open-eye {
  display: none;
}

.aq-password-field .apt-password-toggle .close-eye {
  display: inline-flex;
}

.aq-password-field .apt-password-toggle svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-error,
.woocommerce-MyAccount-content .woocommerce-info { margin-bottom: 20px; }
@media (max-width: 767px) {
  .apt-account-order-addresses { grid-template-columns: 1fr; }
  .apt-account-simple-list > a { gap: 10px; align-items: flex-start; flex-direction: column; }
}

/* Blog archive/detail integration. The reference blog classes remain in main.css; these rules only add scoped behavior. */
.apt-blog-sidebar {
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

.apt-blog-social-links {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.apt-blog-social-links a {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-inline-end: 0 !important;
}

.apt-blog-copy-link {
  max-width: 100%;
  margin-top: 20px;
}

.apt-blog-copy-link .aq-share-input {
  min-width: 0;
}

.apt-blog-no-thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: #f6f6f4;
}

.apt-blog-single .postbox-details-text > * {
  max-width: 100%;
}

.apt-blog-single .postbox__comment-body img,
.apt-blog-single .postbox-details-text img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 991px) {
  .apt-blog-sidebar { position: static; }
}

@media (max-width: 767px) {
  .apt-blog-share-wrap { align-items: flex-start; }
  .apt-blog-social-links { flex-wrap: wrap; }
  .apt-blog-copy-link { width: 100%; }
}

/* Password-reset confirmation: keep the WooCommerce success state inside a
 * calm, readable account card instead of stretching it across the viewport. */
.apt-password-reset-confirmation-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) 20px clamp(80px, 10vw, 140px);
}

.apt-password-reset-confirmation {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 58px) clamp(24px, 6vw, 72px);
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(20, 20, 20, 0.07);
  text-align: center;
}

.apt-password-reset-confirmation__icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #a01d20;
  font-size: 29px;
  font-weight: 700;
  line-height: 1;
}

.apt-password-reset-confirmation__eyebrow {
  margin: 0 0 10px;
  color: #a01d20;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.apt-password-reset-confirmation h1 {
  margin: 0 0 20px;
  color: #141414;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.apt-password-reset-confirmation__notice .woocommerce-message {
  margin: 0 0 18px;
  padding: 14px 18px;
  border: 1px solid rgba(160, 29, 32, 0.15);
  border-top: 2px solid #a01d20;
  border-radius: 8px;
  color: #24364a;
  background: #faf8f4;
  text-align: left;
}

.apt-password-reset-confirmation__notice .woocommerce-message::before {
  display: none;
}

.apt-password-reset-confirmation__message {
  max-width: 560px;
  margin: 0 auto 28px;
  color: #68717a;
  font-size: 16px;
  line-height: 1.75;
}

.apt-password-reset-confirmation__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a01d20;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s ease;
}

.apt-password-reset-confirmation__link:hover,
.apt-password-reset-confirmation__link:focus-visible {
  color: #141414;
}

/* Native WooCommerce address editor: keep the dashboard form contained and
 * readable while preserving WooCommerce's generated field structure. */
.aq-dashboard-address-form {
  padding: clamp(24px, 4vw, 46px);
}

.aq-dashboard-address-form h2 {
  margin: 0 0 30px;
  color: #141414;
  font-family: var(--aq-ff-onest);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.2;
}

.aq-dashboard-address-form .woocommerce-address-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}

.aq-dashboard-address-form .woocommerce-address-fields__field-wrapper > .form-row {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}

.aq-dashboard-address-form .woocommerce-address-fields__field-wrapper > .form-row-wide {
  grid-column: 1 / -1;
}

.aq-dashboard-address-form .form-row label {
  display: block;
  margin: 0 0 8px;
  color: #24364a;
  font-family: var(--aq-ff-onest);
  font-size: 14px;
  font-weight: 600;
}

.aq-dashboard-address-form .form-row label abbr[title] {
  color: #a01d20;
  text-decoration: none;
}

.aq-dashboard-address-form .form-row .woocommerce-input-wrapper,
.aq-dashboard-address-form .form-row input,
.aq-dashboard-address-form .form-row select,
.aq-dashboard-address-form .form-row textarea {
  display: block;
  width: 100%;
}

.aq-dashboard-address-form .form-row input,
.aq-dashboard-address-form .form-row select,
.aq-dashboard-address-form .form-row textarea {
  min-height: 48px;
  padding: 12px 15px;
  border: 1px solid rgba(36, 54, 74, 0.18);
  border-radius: 8px;
  color: #24364a;
  background: #fff;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aq-dashboard-address-form .form-row textarea {
  min-height: 96px;
  resize: vertical;
}

.aq-dashboard-address-form .form-row input:focus,
.aq-dashboard-address-form .form-row select:focus,
.aq-dashboard-address-form .form-row textarea:focus {
  border-color: #a01d20;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(160, 29, 32, 0.1);
}

.aq-dashboard-address-form .woocommerce-address-fields > button {
  min-height: 46px;
  margin-top: 30px;
  padding: 10px 24px;
  border: 0;
  border-radius: 8px;
}

/* Keep empty account sections as deliberate, readable states instead of loose text. */
.aq-dashboard-empty-state {
  padding: 32px;
}

.aq-dashboard-empty-state p {
  margin: 0 0 20px;
  color: var(--aq-gray-8);
  font-family: var(--aq-ff-onest);
}

@media (max-width: 767px) {
  .aq-dashboard-empty-state {
    padding: 24px 20px;
  }
}

@media (max-width: 767px) {
  .aq-dashboard-address-form {
    padding: 24px 18px;
  }

  .aq-dashboard-address-form .woocommerce-address-fields__field-wrapper {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .aq-dashboard-address-form .woocommerce-address-fields__field-wrapper > .form-row-wide {
    grid-column: auto;
  }
}

@media (max-width: 575px) {
  .apt-password-reset-confirmation-wrap {
    padding-right: 15px;
    padding-left: 15px;
  }

  .apt-password-reset-confirmation {
    border-radius: 14px;
  }

  .apt-password-reset-confirmation__notice .woocommerce-message {
    text-align: center;
  }
}
