/*
 * Mobile parity fixes, from the client's annotated screenshots of the live site.
 * Plain CSS, loaded after main.css, so a Tailwind rebuild never drops it.
 */

/* ---------- Mobile menu ---------- */
@media (max-width: 1023px) {
  .nav-mobile .nav__item {
    border-bottom: 1px solid #ededed;
  }

  .nav-mobile .nav__item--parent {
    position: relative;
  }

  .nav-mobile .nav__link {
    font-size: 16px;
    line-height: 1.4;
    color: #282828;
    padding: 14px 0;
  }

  .nav-mobile .nav__submenu {
    display: none;
    padding-left: 14px;
  }

  .nav-mobile .nav__item--parent.is-open > .nav__submenu {
    display: block;
  }

  .nav-mobile .nav__sublink {
    font-size: 15px;
    color: #6f6f6f;
    padding: 10px 0;
  }

  .nav-mobile__toggle {
    position: absolute;
    top: 4px;
    right: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    color: #8a8a8a;
    cursor: pointer;
  }

  .nav-mobile__toggle svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
  }

  .nav-mobile .nav__item--parent.is-open > .nav-mobile__toggle svg {
    transform: rotate(90deg);
  }

  .site-header__logo img {
    height: 40px !important;
  }

  .site-header.is-stuck .site-header__logo img {
    height: 34px !important;
  }
}

/* ---------- Product page ---------- */
@media (max-width: 1023px) {
  .product-single__top {
    display: none !important;
  }

  .product-single__showcase {
    background-color: #ffffff !important;
  }

  .tier,
  .oath-variation-inventory .af_mli_location_row,
  .oath-variation-addons .af_addon_option_wrapper {
    background: #ffffff !important;
  }

  .product-services {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    gap: 6px !important;
    margin-top: 24px !important;
  }

  .product-services__item {
    flex: 1 1 0 !important;
    min-width: 0;
    margin-bottom: 0 !important;
    text-align: center;
  }

  .product-services__icon {
    height: 28px !important;
    width: 28px !important;
  }

  .product-services__title {
    font-size: 10px !important;
    line-height: 1.3 !important;
  }

  .product-single__summary .product_title {
    font-size: 26px !important;
    line-height: 1.25 !important;
    font-weight: 400 !important;
  }

  .product-single__summary .quantity {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px;
    border: 1px solid #e2e2e2 !important;
    padding: 2px 6px;
  }

  .product-single__summary .quantity label {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto 0 8px !important;
    padding: 0 !important;
    clip: auto !important;
    clip-path: none !important;
    overflow: visible !important;
    white-space: nowrap !important;
    font-size: 15px;
    color: #282828;
  }

  .product-single__summary .quantity input {
    width: 44px !important;
    flex: 0 0 44px;
    padding: 8px 0 !important;
  }

  .product-single__summary .qty-step {
    width: 30px !important;
    padding: 8px 0 !important;
  }

  .product-trust__row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }

  .product-trust__item {
    text-align: center !important;
  }

  .product-trust__label {
    font-size: 10px !important;
    line-height: 1.3;
  }
}

/* ---------- Sale badge on the single product image ---------- */
.product-single__media .woocommerce-product-gallery {
  position: relative;
}

.product-single__media span.onsale {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 11;
  display: inline-block;
  padding: 4px 10px;
  background: #282828;
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 3px;
}

/* ---------- Description blocks ---------- */
.characteristics-grid p > span:first-child,
.research-card p > span:first-child {
  font-weight: 700 !important;
}

.product_meta .sku_wrapper,
.product_meta .posted_in,
.product_meta .tagged_as {
  font-weight: 700;
}

.product_meta .sku_wrapper .sku,
.product_meta .posted_in a,
.product_meta .tagged_as a {
  font-weight: 400;
}

@media (max-width: 768px) {
  .characteristics-grid > div {
    margin-bottom: 20px;
  }

  .characteristics-grid > div:last-child {
    margin-bottom: 0;
  }
}

/* ---------- Shop cards ---------- */
@media (max-width: 1023px) {
  .product-card__actions {
    display: none !important;
  }

  .product-card__price {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* ---------- Home hero ---------- */
@media (max-width: 767px) {
  .hero__content {
    position: static !important;
    height: auto !important;
    padding: 0 !important;
  }

  .hero__content-inner {
    height: auto !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .hero__text {
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px 0 4px !important;
    text-align: left !important;
  }

  .hero__title,
  .hero__link {
    text-align: left !important;
  }

  .hero__title {
    color: #282828 !important;
    font-size: 26px !important;
  }

  .hero__link {
    color: #6f6f6f !important;
    border-bottom-color: #bdbdbd !important;
    font-size: 17px !important;
  }
}
/* Contact page: live embedded map. */
.contact__map--live iframe{display:block;width:100%;height:100%;border:0}

/* ================= Client revision round 2 ================= */

/*
 * Description tab: only WooCommerce's own "Description" heading is hidden.
 * The headings inside the product copy (Overview, Blend Composition) show.
 */
.woocommerce-Tabs-panel h2 {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: revert !important;
  padding: revert !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
}

.woocommerce-Tabs-panel > h2:first-child {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border-width: 0 !important;
}

/* Quantity row: label on the left, then the stepper, minus next to the number. */
.product-single__summary .quantity {
  display: flex;
  align-items: center;
}

.product-single__summary .quantity label {
  order: 1;
  margin-right: auto !important;
}

.product-single__summary .quantity .qty-step[data-qty-step="-1"] {
  order: 2;
}

.product-single__summary .quantity input {
  order: 3;
}

.product-single__summary .quantity .qty-step[data-qty-step="1"] {
  order: 4;
}

/* Gallery zoom trigger: the unstyled magnifier is removed, per the client. */
.product-single__media .woocommerce-product-gallery__trigger {
  display: none !important;
}

@media (max-width: 1023px) {
  /* Shorter header, as asked: 84px tall becomes 60px. */
  .site-header {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    line-height: 40px !important;
  }

  .site-header.is-stuck {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  body.header-stuck .site-header__placeholder {
    height: 60px !important;
  }

  .site-header__logo img {
    height: 34px !important;
  }

  .site-header.is-stuck .site-header__logo img {
    height: 30px !important;
  }
}
/* Out of stock locations. */
.location-row.is-oos{opacity:.55}
.location-row.is-oos .addon-row__label{text-decoration:line-through}
.location-row__oos{margin-left:8px;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#b3261e}
.location-oos-notice{margin-top:8px;font-size:13px;color:#b3261e}
.single_add_to_cart_button.is-disabled{opacity:.5;cursor:not-allowed}

/* Breadcrumbs: links in bold, current page stays regular (client request). */
.product-single__crumbs a,
.woocommerce-breadcrumb a,
.shop-hero__crumbs a,
.lab-hero__crumbs a {
  font-weight: 700;
}

.product-single__crumbs,
.woocommerce-breadcrumb {
  font-weight: 400;
}

/* Homepage feature cards: tighter line spacing in the body copy. */
.feature__body p {
  line-height: 1.45;
}
