/* NeoKnap: a quiet, image-led catalogue. Keep commerce and locale behavior intact. */
:root {
  --nk-paper: #fff;
  --nk-ink: #242424;
  --nk-muted: #656565;
  --nk-rule: #dedede;
  --nk-surface: #f5f5f5;
  --nk-action: #333;
}

body { color: var(--nk-ink); }

.site-header {
  background: var(--nk-paper);
  border-bottom: 1px solid var(--nk-rule);
}

.site-branding .site-title a {
  letter-spacing: -0.055em;
  font-weight: 750;
}

.site-branding .site-description { color: var(--nk-muted); }

.post-type-archive-product main#main > .storefront-sorting:first-of-type {
  display: block;
  margin: 0 0 14px;
  padding: 0;
}

.post-type-archive-product main#main > .storefront-sorting:first-of-type .woocommerce-result-count {
  display: block;
  float: none;
  margin: 0;
  color: var(--nk-muted);
  font-size: 13px;
  line-height: 1.5;
}

.post-type-archive-product main#main > ul.products {
  column-gap: 16px;
  row-gap: 36px;
  margin-bottom: 36px;
}

.post-type-archive-product main#main > ul.products li.product {
  grid-template-rows: 1fr auto;
  column-gap: 8px;
  align-content: start;
  text-align: left;
}

.post-type-archive-product main#main > ul.products li.product > .woocommerce-LoopProduct-link {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  margin: 0;
  color: var(--nk-ink);
}

.post-type-archive-product main#main > ul.products li.product img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  margin: 0 0 14px;
  border-radius: 3px;
  background: var(--nk-surface);
}

.post-type-archive-product main#main > ul.products li.product .woocommerce-loop-product__title {
  min-height: 2.9em;
  margin: 0 0 10px;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
  text-align: left;
}

.post-type-archive-product main#main > ul.products li.product .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 9px;
  margin: 0 0 14px;
  color: var(--nk-ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.post-type-archive-product main#main > ul.products li.product .price del {
  color: var(--nk-muted);
  font-size: 12px;
  font-weight: 400;
  opacity: 1;
}

.post-type-archive-product main#main > ul.products li.product .price ins { margin: 0; }

.post-type-archive-product main#main > ul.products li.product > .neoknap-buy-now,
.post-type-archive-product main#main > ul.products li.product > .add_to_cart_button {
  height: 64px;
  min-height: 64px;
  padding: 8px 4px;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 12px;
  line-height: 1.2;
}

.post-type-archive-product main#main > ul.products li.product > .neoknap-buy-now {
  background: var(--nk-action);
  color: #fff;
}

.post-type-archive-product main#main > ul.products li.product > .add_to_cart_button {
  background: var(--nk-surface);
  border-color: var(--nk-rule);
  color: var(--nk-ink);
}

.post-type-archive-product main#main > ul.products li.product > .neoknap-sold-out-actions {
  height: 64px;
  grid-template-rows: 30px 34px;
}

.post-type-archive-product .neoknap-sold-out-actions .neoknap-sold-out-button {
  border-radius: 3px;
  font-size: 12px;
}

.post-type-archive-product .neoknap-sold-out-actions .neoknap-similar-request {
  padding: 3px 4px;
  font-size: 11px;
  line-height: 1.25;
  text-underline-offset: 3px;
}

.neoknap-custom-order-cta { text-wrap: balance; }
.neoknap-custom-order-cta a { text-underline-offset: 4px; }

.single-product div.product > .product_title {
  max-width: 24em;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.single-product .summary .price {
  margin-bottom: 24px;
  color: var(--nk-ink);
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}

.single-product .summary .price del { color: var(--nk-muted); font-size: 17px; opacity: 1; }
.single-product .summary .price ins { font-weight: 650; }
.single-product .summary .product_meta { color: var(--nk-muted); font-size: 13px; }
.single-product .woocommerce-product-description { max-width: 70ch; line-height: 1.75; }
.single-product .neoknap-single-product-actions .button { border-radius: 3px; }

.woocommerce-account .entry-content #customer_login {
  float: none;
  width: 100%;
  max-width: 520px;
  margin-right: auto;
  margin-left: auto;
}

.woocommerce-account #main .entry-header { padding-bottom: 24px; }
.woocommerce-account .entry-header h1 { font-size: 32px; letter-spacing: -0.035em; }
.woocommerce-account .neoknap-guest-login {
  clear: both;
  width: 100%;
  max-width: 520px;
  margin: 24px auto 0;
  text-align: center;
}
.woocommerce-account .neoknap-guest-login .button {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--nk-rule);
  border-radius: 3px;
}

.woocommerce-account #customer_login h2 { font-size: 27px; letter-spacing: -0.025em; }
.woocommerce-account #customer_login form { margin-top: 20px; }
.woocommerce-account #customer_login input.input-text {
  min-height: 48px;
  border: 1px solid var(--nk-rule);
  border-radius: 3px;
  background: var(--nk-surface);
  box-shadow: none;
}

.woocommerce-account #customer_login label { margin-bottom: 6px; color: var(--nk-ink); }

:where(.site-header, #main, .storefront-handheld-footer-bar) a:focus-visible,
:where(.site-header, #main) button:focus-visible,
#main input:focus-visible {
  outline: 2px solid var(--nk-ink);
  outline-offset: 4px;
}

@media (min-width: 768px) {
  .site-header > .col-full,
  .storefront-primary-navigation > .col-full,
  .storefront-breadcrumb > .col-full,
  .site-content > .col-full,
  .site-footer > .col-full {
    width: calc(100% - 64px);
    max-width: 1360px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
    box-sizing: border-box;
  }

  .site-header { padding-top: 28px; }
  .site-header .site-branding { margin-bottom: 24px; }
  .site-header .site-title { font-size: 34px; line-height: 1.1; }
  .site-header .site-description { margin-top: 6px; font-size: 13px; }
  .main-navigation ul.menu > li > a,
  .main-navigation ul.nav-menu > li > a { padding-top: 18px; padding-bottom: 18px; }
  .site-header-cart .cart-contents { padding-top: 18px; padding-bottom: 18px; }
  body.woocommerce-active .site-header,
  .home.post-type-archive-product .site-header { margin-bottom: 0; }
  .storefront-breadcrumb { margin-bottom: 24px; padding: 16px 0; }
  .post-type-archive-product .storefront-breadcrumb:empty { padding: 0; margin-bottom: 0; }
  .post-type-archive-product main#main { padding-top: 24px; }
  .post-type-archive-product main#main > ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .single-product div.product .neoknap-product-video-gallery { margin-bottom: 32px; }
  .single-product .summary .neoknap-single-product-actions { max-width: 260px; }
  .site-footer { padding: 28px 0; }
  .site-footer .site-info { padding: 0; }
}

@media (max-width: 767px) {
  .post-type-archive-product main#main { padding-top: 20px; }
  .post-type-archive-product main#main > ul.products { column-gap: 14px; row-gap: 28px; }
  .post-type-archive-product main#main > .storefront-sorting:first-of-type { margin-bottom: 8px; }
  .post-type-archive-product main#main > ul.products li.product img { margin-bottom: 11px; }
  .post-type-archive-product main#main > ul.products li.product .woocommerce-loop-product__title {
    min-height: 4.35em;
    margin-bottom: 8px;
    font-size: 13px;
  }
  .post-type-archive-product main#main > ul.products li.product .price { gap: 3px 6px; font-size: 14px; }
  .post-type-archive-product main#main > ul.products li.product .price del { font-size: 11px; }
  .single-product div.product > .product_title { margin-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .post-type-archive-product main#main > ul.products a,
  .neoknap-video-poster { transition: none; }
}
