.woocommerce-breadcrumb { font-size: 0.8rem; color: var(--hn-muted); margin-bottom: 1rem; }
.woocommerce-breadcrumb a:hover { color: var(--hn-color-navy); }

.hn-shop-layout {
  display: grid;
  gap: 2rem;
  padding: 2rem 0 4rem;
}
.hn-shop-sidebar { display: none; }
.hn-shop-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.hn-shop-sidebar__head h2 { margin: 0; font-size: 1rem; }
.hn-filter-toggle {
  display: inline-flex;
  height: 40px;
  padding: 0 1rem;
  border: 1px solid var(--hn-color-navy);
  background: transparent;
  border-radius: var(--hn-radius);
  font: inherit;
  margin-bottom: 1rem;
  cursor: pointer;
}
.hn-filter-backdrop {
  position: fixed;
  inset: 0;
  background: rgb(10 26 61 / 0.4);
  z-index: 45;
}
.hn-filter-backdrop[hidden] { display: none; }

/* WooCommerce shop loop uses float + percentage widths + clearfix
   (::before/::after display:table) on ul.products / li.product.
   Those rules beat unscoped Hypernova grid (lower specificity) and
   shrink cards inside each grid cell. Reset is scoped to .hn-shop-layout
   so homepage .hn-hm-grid rails are untouched. */
.woocommerce .hn-shop-layout ul.products,
.woocommerce-page .hn-shop-layout ul.products,
.hn-shop-layout ul.products {
  display: grid;
  grid-template-columns: repeat(var(--hn-shop-cols-mobile, 2), minmax(0, 1fr));
  gap: 1.5rem 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  float: none;
  clear: none;
}
.woocommerce .hn-shop-layout ul.products::before,
.woocommerce .hn-shop-layout ul.products::after,
.woocommerce-page .hn-shop-layout ul.products::before,
.woocommerce-page .hn-shop-layout ul.products::after,
.hn-shop-layout ul.products::before,
.hn-shop-layout ul.products::after {
  content: none;
  display: none;
}
.woocommerce .hn-shop-layout ul.products > li.product,
.woocommerce-page .hn-shop-layout ul.products > li.product,
.woocommerce .hn-shop-layout ul.products.columns-1 > li.product,
.woocommerce .hn-shop-layout ul.products.columns-2 > li.product,
.woocommerce .hn-shop-layout ul.products.columns-3 > li.product,
.woocommerce .hn-shop-layout ul.products.columns-4 > li.product,
.woocommerce .hn-shop-layout ul.products.columns-5 > li.product,
.woocommerce .hn-shop-layout ul.products.columns-6 > li.product,
.hn-shop-layout ul.products > li.product {
  float: none;
  clear: none;
  width: auto;
  max-width: none;
  margin: 0;
  min-width: 0;
}
.hn-shop-layout .hn-product { display: flex; flex-direction: column; min-width: 0; width: 100%; }
.hn-product__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: color-mix(in srgb, var(--hn-color-cream) 70%, #000 4%);
  aspect-ratio: var(--hn-card-ratio, 3/4);
}
.woocommerce .hn-shop-layout .hn-product__media img,
.woocommerce .hn-shop-layout ul.products li.product a img,
.hn-shop-layout .hn-product__media img { width: 100%; height: 100%; object-fit: cover; }
.hn-product__hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.hn-product:hover .hn-product__hover { opacity: 1; }
.hn-sale {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: #a03161;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}
.hn-product__body { padding-top: 0.85rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.hn-product__cat { margin: 0; font-size: 0.75rem; color: var(--hn-muted); }
.hn-shop-layout .woocommerce-loop-product__title,
.hn-shop-layout .woocommerce-loop-product__title a {
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
  color: #0a1a3d;
  word-break: normal;
  overflow-wrap: normal;
}
.hn-product .price,
.hn-product .price ins,
.hn-product .price .amount,
.hn-product .price bdi,
.woocommerce ul.products .hn-product .price,
.woocommerce ul.products .hn-product .price ins,
.woocommerce ul.products .hn-product .price .amount,
.woocommerce ul.products .hn-product .price bdi {
  color: #a03161;
  font-weight: 600;
  background: none;
  text-decoration: none;
}
.hn-product .price del,
.hn-product .price del .amount,
.hn-product .price del bdi,
.woocommerce ul.products .hn-product .price del,
.woocommerce ul.products .hn-product .price del .amount {
  color: var(--hn-muted);
  font-weight: 400;
  margin-inline-start: 0.4rem;
  text-decoration: line-through;
}
.hn-stock--out { color: var(--hn-color-burgundy); font-size: 0.8rem; margin: 0; }
.button.add_to_cart_button,
.single_add_to_cart_button,
.checkout-button,
.woocommerce-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.2rem;
  border-radius: var(--hn-radius);
  background: var(--hn-btn);
  color: var(--hn-color-cream) !important;
  border: 0;
  font: inherit;
}
.woocommerce .hn-shop-layout ul.products a.button.add_to_cart_button,
.woocommerce-page .hn-shop-layout ul.products a.button.add_to_cart_button,
.hn-shop-layout ul.products .button.add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.2rem;
  border-radius: var(--hn-radius);
  background: var(--hn-btn);
  background-color: var(--hn-btn);
  color: var(--hn-color-cream);
  border: 0;
  font: inherit;
}
.button.alt,
a.button.alt { background: var(--hn-color-burgundy); }
.woocommerce-pagination { margin: 2rem 0; }
.woocommerce-pagination ul { display: flex; gap: 0.4rem; list-style: none; padding: 0; }

body.hn-shop-no-sidebar .hn-shop-layout { grid-template-columns: 1fr; }

@media (max-width: 1023px) {
  .hn-shop-sidebar.is-open {
    display: block;
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    width: min(100%, 20rem);
    background: var(--hn-color-surface);
    z-index: 50;
    padding: 1.25rem;
    overflow: auto;
  }
}

@media (min-width: 768px) {
  .woocommerce .hn-shop-layout ul.products,
  .woocommerce-page .hn-shop-layout ul.products,
  .hn-shop-layout ul.products {
    grid-template-columns: repeat(var(--hn-shop-cols-tablet, 3), minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
  }
}

@media (min-width: 1024px) {
  .hn-shop-layout { grid-template-columns: 16rem 1fr; }
  body.hn-shop-sidebar-end .hn-shop-layout { grid-template-columns: 1fr 16rem; }
  body.hn-shop-sidebar-end .hn-shop-sidebar { order: 2; }
  .hn-shop-sidebar { display: block; }
  .hn-shop-sidebar__head { display: none; }
  .hn-filter-toggle,
  .hn-filter-backdrop { display: none !important; }
  .woocommerce .hn-shop-layout ul.products,
  .woocommerce-page .hn-shop-layout ul.products,
  .hn-shop-layout ul.products {
    grid-template-columns: repeat(var(--hn-shop-cols-desktop, 4), minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hn-product__hover { transition: none; }
}
