/**
 * Lighthouse touch targets — sk-queries + sk-story social (scoped).
 * WCAG 2.5.5: ≥48×48 px, ≥8px between tap areas.
 * sk-touch-spacing-v3 — head + footer; home story/hubs separation.
 */

.sk-queries__list {
  gap: 16px 24px !important;
}

.sk-queries__list > li {
  display: block;
  min-width: 0;
  padding: 6px 0 !important;
  margin: 0 !important;
}

nav.sk-queries .sk-queries__link,
.sk-prefooter-rail .sk-queries__link {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 48px !important;
  min-width: 48px !important;
  padding: 14px 16px !important;
  box-sizing: border-box !important;
  line-height: 1.35 !important;
}

.sk-queries__more a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 48px !important;
  min-width: 48px !important;
  padding: 14px 16px !important;
  box-sizing: border-box !important;
}

/* Hubs: single column on tablet/phone — no tight 2-col rows (Lighthouse pairs). */
@media (max-width: 1023px) {
  body.home .sk-queries.sk-queries--hubs .sk-queries__list,
  .sk-prefooter-rail .sk-queries.sk-queries--hubs .sk-queries__list {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

/* Vertical buffer: story social ↔ first prefooter hubs */
body.home #content + .ast-container.sk-prefooter-rail,
body.page-id-6 #content + .ast-container.sk-prefooter-rail {
  margin-top: 0 !important;
  padding-top: 88px !important;
  border-top: 0 !important;
}

body.home .sk-home-lower > section.sk-story,
.sk-home-lower section.sk-story {
  padding-bottom: 56px !important;
  margin-bottom: 0 !important;
}

body.home .sk-home-lower section.sk-story .sk-social,
.sk-home-lower section.sk-story .sk-social {
  margin-bottom: 0 !important;
  padding-bottom: 8px !important;
}

/* Story social — generous tap rows on home (mobile/tablet). */
section.sk-story .sk-social,
.sk-home-lower section.sk-story .sk-social,
html body.sk-ritual .sk-home-lower .sk-social {
  gap: 16px !important;
}

section.sk-story .sk-social a,
.sk-home-lower section.sk-story .sk-social a,
div.sk-home-lower section.sk-story div.sk-social a,
html body.sk-ritual .sk-home-lower .sk-social a {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-height: 48px !important;
  min-width: 48px !important;
  padding: 14px 16px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  gap: 12px !important;
  text-align: left !important;
}

.sk-home-lower .sk-social a img {
  flex: 0 0 48px !important;
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  object-fit: contain !important;
}

.sk-home-lower .sk-social a span {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  line-height: 1.35 !important;
}

@media (max-width: 1023px) {
  body.home .sk-home-lower section.sk-story .sk-social,
  .sk-home-lower section.sk-story .sk-social {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
  }

  body.home .sk-home-lower .sk-social a,
  .sk-home-lower .sk-social a {
    width: 100% !important;
  }
}

.sk-footer-social__link {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 48px !important;
  min-width: 48px !important;
  padding: 12px 16px !important;
  box-sizing: border-box !important;
}

.sk-footer-social__row {
  gap: 16px !important;
  flex-wrap: wrap !important;
}

/* World links: uppercase only on visual span (identical accessible name). */
a.sk-shopbar__world {
  text-transform: none !important;
}

a.sk-shopbar__world .sk-world-link__caps {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

@media (min-width: 1024px) {
  body.home .sk-home-lower section.sk-story .sk-social {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px 24px !important;
  }

  body.home .sk-home-lower .sk-social a {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* Woo loop cards — phone/tablet only (≥1200 untouched). sk-touch-loop-20261129b20 */
@media (max-width: 1023px) {
  html body ul.products li.product:not(.product-category) a.button.sk-loop-buy,
  html body ul.products li.product:not(.product-category) button.button.sk-loop-buy,
  html body ul.products li.product:not(.product-category) a.add_to_cart_button,
  html body ul.products li.product:not(.product-category) button.sk-physical-lead,
  html body.home .sk-full-catalog ul.products li.product:not(.product-category) a.sk-loop-buy,
  html body.home .sk-full-catalog ul.products li.product:not(.product-category) button.sk-loop-buy {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    min-width: 48px !important;
    padding: 12px 16px !important;
    margin-top: 16px !important;
    margin-bottom: 8px !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    letter-spacing: 0.06em !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    text-align: center !important;
  }

  html body ul.products li.product:not(.product-category) a.woocommerce-LoopProduct-link,
  html body ul.products li.product:not(.product-category) a.ast-loop-product__link {
    display: block !important;
    margin-bottom: 12px !important;
  }

  html body ul.products li.product:not(.product-category) .astra-shop-thumbnail-wrap {
    margin-bottom: 12px !important;
  }

  html body ul.products li.product:not(.product-category) .woocommerce-loop-product__title {
    margin: 0 0 10px !important;
  }

  html body ul.products li.product:not(.product-category) .price {
    margin: 0 0 12px !important;
  }

  html body ul.products li.product .sk-lux-heart {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    top: 4px !important;
    right: 4px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  html body ul.products li.product .sk-lux-heart svg {
    width: 22px !important;
    height: 22px !important;
  }
}