/**
 * Jacket Shoppe / Shop Product Gallery v2
 * A lightweight editorial catalog replacing the legacy boxed Woo/Astra cards.
 * Scoped to the main /shop archive only; collection and product pages are untouched.
 *
 * Intent: jacket photography first, readable detail, honest pricing and simple action.
 */
body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:48px 22px!important;
  margin:14px 0 0!important;
  padding:0!important;
  clear:both;
  align-items:stretch
}
body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products:before,
body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products:after {
  content:none!important;display:none!important
}

/* Open retail-gallery composition: no card frame, shadows or boxed title block. */
body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product {
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  width:auto!important;
  max-width:none!important;
  float:none!important;
  clear:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
  overflow:visible!important;
  isolation:isolate;
  text-align:left!important;
  transition:none!important
}
body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product:hover {
  border:0!important;box-shadow:none!important
}

/* Image stage; the image is the hero, not a decorative card. */
body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product .astra-shop-thumbnail-wrap {
  position:relative!important;
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  aspect-ratio:1 / 1;
  overflow:hidden!important;
  background:#fff!important;
  border:0!important;
  border-radius:2px!important;
  isolation:isolate;
  transition:none
}
body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product:hover .astra-shop-thumbnail-wrap {
  background:#fff!important;
  border-color:transparent!important
}
body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link {
  position:absolute!important;
  inset:0!important;
  display:block!important;
  height:100%!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  text-decoration:none!important
}
body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link > img {
  position:absolute!important;
  inset:0!important;
  z-index:1;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  object-position:center!important;
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
  mix-blend-mode:normal!important;
  filter:none!important;
  opacity:1!important;
  transform:scale(1);
  transition:transform .6s cubic-bezier(.2,.65,.2,1),opacity .28s ease!important
}
@media(hover:hover) and (pointer:fine) {
  body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product:hover .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link > img {
    transform:scale(1.045)
  }
}

/* Only fetch the actual gallery back view on request, not on page load. */
body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link > img.jsc-shop-image-back {
  z-index:2;
  opacity:0!important;
  pointer-events:none
}
body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product.jsc-is-back-view .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link > img.jsc-shop-image-back {
  opacity:1!important
}
body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product.jsc-is-back-view .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link > img:not(.jsc-shop-image-back) {
  opacity:0!important
}

/* Product photography stays uncluttered. Shipping is a store policy,
   not a repeated reason to choose one jacket over another. */
body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product .astra-shop-thumbnail-wrap .custom-shipping-badge-below {
  display:none!important;
}

/* Sale overlays and duplicate cart icons distract from actual materials & colorways. */
body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product .ast-onsale-card,
body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product .ast-select-options-trigger,
body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product .wpcbn-btn-archive {
  display:none!important
}

/* Progressive-enhancement view control. It sits beside, never inside, the image link. */
body.woocommerce-shop .jss-commerce .jss-shop-body ul.products li.product .jsc-shop-view-toggle {
  position:absolute;
  z-index:5;
  bottom:13px;
  right:13px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:auto!important;
  min-height:43px;
  padding:9px 13px;
  margin:0;
  border:1px solid #38312c;
  border-radius:3px;
  background:#fff;
  color:#26211d;
  box-shadow:0 3px 14px rgba(35,25,16,.08);
  font-family:'Manrope',sans-serif;
  font-size:12px;
  line-height:1.25;
  font-weight:800;
  letter-spacing:.045em;
  text-transform:uppercase;
  cursor:pointer;
  transition:background-color .18s,color .18s,border-color .18s;
  touch-action:manipulation
}
body.woocommerce-shop .jss-commerce .jss-shop-body ul.products li.product .jsc-shop-view-toggle::after {
  content:'↻';
  display:inline-block;
  font-family:Arial,sans-serif;
  font-weight:400;
  font-size:20px;
  line-height:1
}
body.woocommerce-shop .jss-commerce .jss-shop-body ul.products li.product .jsc-shop-view-toggle:hover {
  background:#ff6f3c;
  color:#241e19;
  border-color:#ff6f3c
}
body.woocommerce-shop .jss-commerce .jss-shop-body ul.products li.product .jsc-shop-view-toggle:focus-visible {
  outline:3px solid #aa4516!important;
  outline-offset:3px
}
body.woocommerce-shop .jss-commerce .jss-shop-body ul.products li.product .jsc-shop-view-toggle[aria-disabled="true"] {
  opacity:.72;
  cursor:wait
}

/* Natural-case typography and content-first layout. */
body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product .astra-shop-summary-wrap {
  display:flex!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
  min-width:0!important;
  margin:0!important;
  padding:15px 0 0!important;
  gap:0!important;
  border:0!important;
  background:transparent!important;
  text-align:left!important
}
body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product .ast-woo-product-category {
  display:block!important;
  margin:0 0 7px!important;
  padding:0!important;
  color:#5e5751!important;
  font-family:'Manrope',sans-serif!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:1.5!important;
  text-transform:none!important;
  letter-spacing:.01em!important
}
body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product .ast-loop-product__link {
  display:block!important;
  text-decoration:none!important
}
body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product .woocommerce-loop-product__title {
  margin:0 0 12px!important;
  padding:0!important;
  min-height:0!important;
  color:#26211d!important;
  font-family:'Manrope',sans-serif!important;
  font-size:17px!important;
  font-weight:750!important;
  line-height:1.43!important;
  letter-spacing:-.015em!important;
  text-transform:none!important;
  text-wrap:pretty;
  overflow-wrap:break-word;
  transition:color .2s ease
}
body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product .ast-loop-product__link:hover .woocommerce-loop-product__title {
  color:#a3461b!important
}
body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product .price {
  display:block!important;
  margin:auto 0 0!important;
  padding:3px 0 2px!important;
  color:#2c241e!important;
  font-family:'Manrope',sans-serif!important;
  font-size:17px!important;
  line-height:1.55!important;
  font-weight:800!important;
  letter-spacing:-.02em!important
}
body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product .price .amount {
  color:inherit!important;font-weight:inherit!important
}
/* Brand-orange is the primary shopping action, not a tiny decorative dot. */
body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product .astra-shop-summary-wrap > a.button {
  display:flex!important;
  width:100%!important;
  min-height:52px!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  margin:13px 0 0!important;
  padding:10px 12px 10px 16px!important;
  border:1px solid #ff6f3c!important;
  border-radius:3px!important;
  background:#ff6f3c!important;
  color:#211b16!important;
  box-shadow:none!important;
  font-family:'Manrope',sans-serif!important;
  font-size:15px!important;
  font-weight:800!important;
  line-height:1.4!important;
  text-align:left!important;
  letter-spacing:0!important;
  text-decoration:none!important;
  text-transform:none!important;
  white-space:normal!important;
  transition:background-color .2s ease,color .2s ease,border-color .2s ease!important
}
body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product .astra-shop-summary-wrap > a.button::after {
  content:'↗'!important;
  display:grid!important;
  flex:0 0 29px!important;
  place-items:center!important;
  width:29px!important;
  height:29px!important;
  margin:0!important;
  border-radius:50%!important;
  background:#29211c!important;
  color:#fff!important;
  font-family:Arial,sans-serif!important;
  font-size:18px!important;
  font-weight:400!important;
  line-height:1!important;
  transition:background-color .2s ease,transform .2s ease,color .2s ease!important
}
body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product .astra-shop-summary-wrap > a.button:hover {
  background:#26201b!important;
  border-color:#26201b!important;
  color:#fff!important
}
body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product .astra-shop-summary-wrap > a.button:hover::after {
  background:#ff6f3c!important;
  color:#211b16!important;
  transform:translate(2px,-2px)
}
body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product a:focus-visible {
  outline:3px solid #aa4516!important;outline-offset:4px
}

/* Keep scan-ability at laptop, tablet, and touch-phone widths. */
@media(max-width:1200px) {
  body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products {
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:40px 20px!important
  }
}
@media(max-width:860px) {
  body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:38px 16px!important
  }
}
@media(max-width:600px) {
  body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:30px 12px!important;
    margin-top:8px!important
  }
  body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product .astra-shop-thumbnail-wrap {
    aspect-ratio:1 / 1;
    border-radius:2px!important
  }
  body.woocommerce-shop .jss-commerce .jss-shop-body ul.products li.product .jsc-shop-view-toggle {
    bottom:9px;right:9px;
    min-height:41px;
    font-size:12px;
    gap:5px;
    padding:8px 9px
  }
  body.woocommerce-shop .jss-commerce .jss-shop-body ul.products li.product .jsc-shop-view-toggle::after {
    font-size:17px
  }
  body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product .astra-shop-summary-wrap {
    padding:12px 0 0!important
  }
  body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product .ast-woo-product-category {
    font-size:13px!important;line-height:1.45!important;margin-bottom:5px!important
  }
  body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product .woocommerce-loop-product__title {
    font-size:16px!important;line-height:1.38!important;
    min-height:0!important;margin-bottom:11px!important
  }
  body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product .price {
    font-size:16px!important;line-height:1.5!important;
    margin-top:auto!important
  }
  body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product .astra-shop-summary-wrap > a.button {
    font-size:14px!important;
    min-height:48px!important;
    margin-top:9px!important;
    padding:8px 10px 8px 12px!important;
    gap:5px!important
  }
  body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product .astra-shop-summary-wrap > a.button::after {
    width:27px!important;height:27px!important;flex-basis:27px!important;font-size:16px!important
  }
}
@media(max-width:370px) {
  body.woocommerce-shop .jss-commerce .jss-shop-body ul.products li.product .jsc-shop-view-toggle {
    font-size:12px;padding:8px 7px
  }
  body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product .woocommerce-loop-product__title {
    font-size:15px!important
  }
  body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product .astra-shop-summary-wrap > a.button {
    font-size:14px!important
  }
}
@media(prefers-reduced-motion:reduce) {
  body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product *,
  body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product *::before,
  body.woocommerce-shop.jsc-collection-page .jss-commerce .jss-shop-body ul.products li.product *::after {
    transition:none!important;animation:none!important
  }
}

