/* IQAir Theme Storefront Overrides & 1:1 Visual Polish */
:root {
  --header-height: 84px;
  --font-heading-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html, body {
  background-color: #ffffff;
  color: #171717;
  font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  margin: 0;
  padding: 0;
}

.shopify-theme {
  --font-heading-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading-letter-spacing: -0.02em;
  font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.shopify-theme button,
.shopify-theme input,
.shopify-theme select,
.shopify-theme textarea,
.shopify-theme label {
  font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.shopify-theme .heading,
.shopify-theme h1,
.shopify-theme h2,
.shopify-theme h3,
.shopify-theme h4 {
  font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -0.02em;
}

/* Force immediate visibility for sections & videos that previously relied on Shopify intersection JS */
.shopify-theme [data-animate],
.shopify-theme animate-element,
.shopify-theme split-words,
.shopify-theme motion-list,
.shopify-theme motion-element {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.shopify-theme video-media,
.shopify-theme video-media video,
.shopify-theme .deferred-media video,
.shopify-theme .banner__media video {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  position: relative;
  z-index: 0;
}

.shopify-theme .video-hero .banner__overlay {
  z-index: 1;
}

.shopify-theme .video-hero .banner__content {
  z-index: 2;
}

/* Header & Mega Menu: keep single-line items aligned cleanly */
.shopify-theme #section-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
}
.shopify-theme #section-header .header__navigation a,
.shopify-theme #section-header .header__navigation summary,
.shopify-theme #section-header .header__menu-item > a,
.shopify-theme #section-header .header__menu-item summary {
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
}
.shopify-theme .header__menu-item details {
  position: relative;
}
.shopify-theme .header__mega-menu-wrapper,
.shopify-theme .details__dropdown {
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

@media (min-width: 1024px) {
  .shopify-theme .header__navigation details[open] > .header__mega-menu,
  .shopify-theme .header__navigation details[open] > .details__content {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

/* CartDrawer & MenuDrawer 1:1 fixed overlay + 576px slide panel */
.shopify-theme cart-drawer#CartDrawer,
.shopify-theme drawer-element,
.shopify-theme menu-drawer#MenuDrawer {
  position: fixed !important;
  inset: 0 !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 9999 !important;
  pointer-events: none;
  display: block;
}
.shopify-theme cart-drawer#CartDrawer[hidden],
.shopify-theme menu-drawer#MenuDrawer[hidden],
.shopify-theme drawer-element[hidden] {
  display: none !important;
}
.shopify-theme cart-drawer#CartDrawer[open][active],
.shopify-theme menu-drawer#MenuDrawer[open][active],
.shopify-theme drawer-element[open][active] {
  pointer-events: auto !important;
}
.shopify-theme #CartDrawer > .overlay,
.shopify-theme #MenuDrawer > .overlay,
.shopify-theme drawer-element > .overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  cursor: pointer;
}
.shopify-theme #CartDrawer[active] > .overlay,
.shopify-theme #MenuDrawer[active] > .overlay,
.shopify-theme drawer-element[active] > .overlay {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.shopify-theme #CartDrawer > .drawer__inner {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  width: 100%;
  max-width: 576px;
  background: #ffffff;
  color: #171717;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.14);
  z-index: 10000;
}
.shopify-theme #CartDrawer[active] > .drawer__inner {
  transform: translateX(0) !important;
}
.shopify-theme #MenuDrawer > .drawer__inner,
.shopify-theme drawer-element.drawer--start > .drawer__inner {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  color: #171717;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 10000;
}
.shopify-theme #MenuDrawer[active] > .drawer__inner,
.shopify-theme drawer-element.drawer--start[active] > .drawer__inner {
  transform: translateX(0) !important;
}
.shopify-theme .drawer[active] .drawer__header,
.shopify-theme .drawer[active] .drawer__content {
  opacity: 1 !important;
  visibility: visible !important;
}
.shopify-theme #CartDrawer .drawer__scrollable {
  overflow-y: auto;
  flex: 1 1 auto;
  padding: 20px 24px;
}
.shopify-theme #CartDrawer .drawer__footer {
  border-top: 1px solid rgba(23, 23, 23, 0.08);
  padding: 20px 24px;
  background: #ffffff;
}
.shopify-theme #CartDrawer .drawer__close {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  color: #171717 !important;
  background: #f3f4f6 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 9999px !important;
  cursor: pointer;
}
.shopify-theme #CartDrawer .drawer__close:hover {
  background: #e5e7eb !important;
}
.shopify-theme #CartDrawer .drawer__close .btn-text {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #171717 !important;
  opacity: 1 !important;
}
.shopify-theme .iq-view-cart-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: #171717;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 4px 8px;
}
.shopify-theme .iq-view-cart-link:hover {
  opacity: 0.72;
}
@media (max-width: 767px) {
  .shopify-theme #CartDrawer,
  .shopify-theme #CartDrawer > .drawer__inner {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
  }
}

/* /cart/ Page Clean 1:1 Table Layout (remove unwanted .shopify-theme table border box) */
.shopify-theme #MainCart-main table.iq-cart-table {
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}
.shopify-theme #MainCart-main table.iq-cart-table th,
.shopify-theme #MainCart-main table.iq-cart-table td {
  border-left: 0 !important;
  border-right: 0 !important;
  font-size: 15px !important;
  padding: 18px 12px !important;
}
.shopify-theme #MainCart-main table.iq-cart-table thead th {
  padding: 0 12px 12px !important;
  font-size: 13px !important;
  color: #525252;
  font-weight: 500;
}
.shopify-theme #MainCart-main table.iq-cart-table th:first-child,
.shopify-theme #MainCart-main table.iq-cart-table td:first-child {
  padding-left: 0 !important;
}
.shopify-theme #MainCart-main table.iq-cart-table th:last-child,
.shopify-theme #MainCart-main table.iq-cart-table td:last-child {
  padding-right: 0 !important;
}
.shopify-theme .iq-cart-sidebar-col {
  width: 100%;
}
@media (min-width: 1024px) {
  .shopify-theme .iq-cart-sidebar-col {
    width: 360px;
    flex: 0 0 360px;
  }
}
@media (max-width: 767px) {
  .shopify-theme #MainCart-main table.iq-cart-table thead {
    display: none;
  }
  .shopify-theme #MainCart-main .cart-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0 !important;
  }
  .shopify-theme #MainCart-main .cart-item > td {
    padding: 0 !important;
  }
  .shopify-theme #MainCart-main .cart-item > td:first-child {
    flex: 1 1 190px;
    min-width: 0;
  }
  .shopify-theme #MainCart-main .cart-item > td.cart-item__quantity {
    flex: 0 0 auto;
    margin-left: auto;
  }
}

/* Shop / Collection Filters & Toolbar (Prevent wrapping, ugly native select & badge crowding) */
.shopify-theme .iq-cat-filter-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shopify-theme .iq-cat-pills-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.shopify-theme .iq-cat-pills-extra {
  display: none;
}
.shopify-theme .iq-cat-pills-extra.is-open {
  display: flex;
}
@media (max-width: 767px) {
  .shopify-theme .iq-cat-pills-row:not(.iq-cat-pills-extra) {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .shopify-theme .iq-cat-pills-row:not(.iq-cat-pills-extra)::-webkit-scrollbar {
    display: none;
  }
}
.shopify-theme .iq-cat-pill {
  gap: 6px !important;
  min-height: 36px !important;
  padding: 6px 14px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.shopify-theme .iq-cat-more-btn {
  border-style: dashed !important;
  color: #404040 !important;
}
.shopify-theme .iq-pill-count {
  opacity: 0.65;
  font-size: 12px;
  font-weight: 400;
}
.shopify-theme .iq-cat-pill.is-selected .iq-pill-count {
  opacity: 0.85;
}

.shopify-theme .iq-collection-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px 0;
  margin-bottom: 24px;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  font-size: 14px;
}
.shopify-theme .iq-collection-count {
  color: #525252;
  white-space: nowrap;
}
.shopify-theme .iq-collection-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.shopify-theme .iq-view-all-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  color: #171717;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.shopify-theme .iq-sort-form {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  white-space: nowrap;
}
.shopify-theme .iq-sort-label {
  display: inline-flex;
  align-items: center;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  font-size: 14px;
  font-weight: 500;
  color: #525252;
  margin: 0;
  line-height: 1;
}
.shopify-theme select.iq-sort-select {
  height: 40px !important;
  min-height: 40px !important;
  min-width: 196px;
  padding: 0 38px 0 16px !important;
  border: 1px solid #d4d4d4 !important;
  border-radius: 9999px !important;
  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none' stroke='%23171717' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5l5 5 5-5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 14px 14px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 40px !important;
  color: #171717 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer;
  white-space: nowrap !important;
  transition: border-color 0.15s ease;
}
.shopify-theme select.iq-sort-select:hover,
.shopify-theme select.iq-sort-select:focus {
  border-color: #171717 !important;
  outline: none !important;
}

/* Product Cards Grid & Equal Height Alignment */
.shopify-theme .card-grid {
  align-items: stretch;
}
.shopify-theme .product-card {
  background: #ffffff;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.shopify-theme .product-card:hover {
  background: #f5f5f5;
  border-color: rgba(23, 23, 23, 0.14);
}
.shopify-theme .product-card__media {
  padding: 16px 16px 8px;
  background: #ffffff;
  border-bottom: 1px solid rgba(23, 23, 23, 0.04);
}
.shopify-theme .product-card__content {
  padding: 16px 20px 20px !important;
  flex: 1 1 auto;
}
.shopify-theme .product-card__title {
  display: block;
  line-height: 1.3 !important;
}
.shopify-theme .iq-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
  color: #525252;
}
.shopify-theme .iq-card-price {
  white-space: nowrap !important;
  font-size: 15px;
  line-height: 1.3;
  color: #171717;
}
.shopify-theme .product-card .quick-add {
  bottom: 14px;
  left: 0;
  right: 0;
  padding: 0 14px;
}
.shopify-theme .product-card:hover .quick-add .button,
.shopify-theme .product-card .quick-add .button:focus-visible {
  opacity: 1 !important;
}
@media (hover: none), (max-width: 1023px) {
  .shopify-theme .product-card .quick-add .button {
    opacity: 1 !important;
    min-height: 40px !important;
    padding: 0 14px !important;
  }
}

/* PDP Gallery, Breadcrumb, Origin Badge & Variant Controls */
.shopify-theme .iq-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #666666;
  margin-bottom: 12px;
}
.shopify-theme .iq-crumb-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: #525252;
  text-decoration: none;
}
.shopify-theme .iq-crumb-link:hover {
  color: #171717;
  text-decoration: underline;
}
.shopify-theme .iq-crumb-sep {
  color: #a3a3a3;
  white-space: nowrap;
}
.shopify-theme .iq-crumb-current {
  color: #171717;
  font-weight: 500;
}
.shopify-theme .iq-pdp-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.shopify-theme .iq-pdp-stars {
  color: #3e87cb;
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 1;
}
.shopify-theme .iq-pdp-rev-link {
  font-size: 13px;
  color: #404040;
  text-decoration: none;
}
.shopify-theme .iq-pdp-rev-link:hover {
  text-decoration: underline;
}
.shopify-theme .iq-pdp-title {
  font-size: clamp(1.65rem, 2.3vw, 2.25rem);
  line-height: 1.12;
  color: #171717;
}
.shopify-theme .iq-pdp-desc {
  line-height: 1.5;
}
.shopify-theme .iq-pdp-desc p {
  margin-bottom: 8px;
}
.shopify-theme .iq-pdp-desc p:last-child {
  margin-bottom: 0;
}
.shopify-theme .product__media-list {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
}
.shopify-theme .product__media-list .product__media {
  display: none;
  width: 100%;
}
.shopify-theme .product__media-list .product__media.is-active {
  display: flex;
}
.shopify-theme .product__thumbnail {
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  background: #f8f9fa;
}
.shopify-theme .product__thumbnail[aria-current="true"] {
  border-color: #171717;
}
.shopify-theme .iq-variant-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border: 1.5px solid #d4d4d4;
  border-radius: 9999px;
  background: #ffffff;
  color: #171717;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  box-shadow: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.shopify-theme .iq-variant-btn:hover {
  border-color: #171717;
  background: #f8f8f8;
}
.shopify-theme .iq-variant-btn.is-selected,
.shopify-theme .iq-variant-btn.is-selected:hover {
  border-color: #171717;
  background: #171717;
  color: #ffffff;
}
.shopify-theme .iq-variant-btn:focus {
  outline: none;
  box-shadow: none;
}
.shopify-theme .iq-variant-btn:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 2px;
}

/* Quantity Input (PDP, CartDrawer, /cart/ unified single pill without inner/double border) */
.shopify-theme quantity-input.quantity,
.shopify-theme quantity-input.cart-quantity {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: auto !important;
  min-width: 108px !important;
  max-width: none !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  border: 1px solid #d4d4d4 !important;
  border-radius: 9999px !important;
  outline: none !important;
  box-shadow: none !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 6px !important;
  gap: 0 !important;
  background: #ffffff !important;
  overflow: hidden !important;
  transition: border-color 0.15s ease;
}
.shopify-theme quantity-input.pdp-quantity {
  height: 48px !important;
  min-height: 48px !important;
  min-width: 116px !important;
  padding: 0 8px !important;
}
.shopify-theme quantity-input.quantity:focus-within,
.shopify-theme quantity-input.cart-quantity:focus-within {
  border-color: #171717 !important;
}
.shopify-theme quantity-input .quantity__button,
.shopify-theme quantity-input .quantity__button:hover,
.shopify-theme quantity-input .quantity__button:focus {
  width: 30px !important;
  min-width: 30px !important;
  flex: 0 0 30px !important;
  height: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 9999px !important;
  cursor: pointer;
  color: #171717 !important;
  line-height: 1 !important;
  user-select: none;
}
.shopify-theme quantity-input .quantity__button:hover {
  background: rgba(23, 23, 23, 0.05) !important;
}
.shopify-theme quantity-input .quantity__button:focus-visible {
  background: rgba(23, 23, 23, 0.08) !important;
}
.shopify-theme quantity-input .quantity__input,
.shopify-theme quantity-input .quantity__input:hover,
.shopify-theme quantity-input .quantity__input:focus,
.shopify-theme quantity-input .quantity__input:focus-visible {
  width: 34px !important;
  min-width: 30px !important;
  max-width: 40px !important;
  height: 100% !important;
  flex: 0 0 34px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  text-align: center !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  color: #171717 !important;
  background: transparent !important;
  appearance: textfield !important;
  -moz-appearance: textfield !important;
}
.shopify-theme quantity-input input::-webkit-outer-spin-button,
.shopify-theme quantity-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Accordions */
.shopify-theme details.details .details__content {
  display: none;
  padding-bottom: 16px;
}
.shopify-theme details.details[open] .details__content {
  display: block;
}
.shopify-theme details.details summary::-webkit-details-marker {
  display: none;
}
.shopify-theme details.details .iq-acc-icon {
  transition: transform 0.2s ease;
}
.shopify-theme details.details[open] .iq-acc-icon {
  transform: rotate(180deg);
}

/* Primary & Secondary Button Contrast (1:1 solid black CTA, no text wrapping) */
.shopify-theme .button--primary {
  --color-button-background: 23 23 23;
  --color-button-border: 23 23 23;
  --color-button-text: 255 255 255;
  background-color: #171717 !important;
  color: #ffffff !important;
  border: 1.5px solid #171717 !important;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.shopify-theme .button--primary:hover {
  background-color: #333333 !important;
  border-color: #333333 !important;
}
.shopify-theme .button--primary .btn-fill {
  display: none !important;
}
.shopify-theme .button--primary .btn-text {
  color: #ffffff !important;
  opacity: 1 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.shopify-theme .button--secondary {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Search Bar Modal */
#IqairSearchOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 90px;
}
#IqairSearchOverlay.is-open {
  display: flex;
}

/* Ensure section content always paints above .section--padding::before white backdrop */
.shopify-theme .section > .page-width {
  position: relative;
  z-index: 1;
}
.shopify-theme .text-white,
.shopify-theme a.text-white {
  color: #ffffff !important;
}
