/* Aurora Shop — archive layout (shop + product categories) */

/* ── Shop archive spacing rhythm (spacing only) ── */
body.aurora-storefront.woocommerce-shop .PageHero_hero__qlWDQ,
body.aurora-storefront.tax-product_cat .PageHero_hero__qlWDQ,
body.aurora-storefront.post-type-archive-product .PageHero_hero__qlWDQ {
  padding-top: clamp(48px, 5.5vw, 72px);
  padding-bottom: clamp(32px, 4vw, 48px);
}

body.aurora-storefront.woocommerce-shop .aurora-wc-wrap,
body.aurora-storefront.tax-product_cat .aurora-wc-wrap,
body.aurora-storefront.post-type-archive-product .aurora-wc-wrap {
  padding-top: clamp(24px, 3vw, 36px);
  padding-bottom: clamp(32px, 3.5vw, 10px);
}

@media (max-width: 1024px) {
  body.aurora-storefront.woocommerce-shop .PageHero_hero__qlWDQ,
  body.aurora-storefront.tax-product_cat .PageHero_hero__qlWDQ,
  body.aurora-storefront.post-type-archive-product .PageHero_hero__qlWDQ {
    padding-top: clamp(40px, 4.5vw, 56px);
    padding-bottom: clamp(28px, 3.5vw, 40px);
  }

  body.aurora-storefront.woocommerce-shop .aurora-wc-wrap,
  body.aurora-storefront.tax-product_cat .aurora-wc-wrap,
  body.aurora-storefront.post-type-archive-product .aurora-wc-wrap {
    padding-top: clamp(20px, 2.5vw, 28px);
    padding-bottom: clamp(28px, 3vw, 40px);
  }
}

@media (max-width: 768px) {
  body.aurora-storefront.woocommerce-shop .PageHero_hero__qlWDQ,
  body.aurora-storefront.tax-product_cat .PageHero_hero__qlWDQ,
  body.aurora-storefront.post-type-archive-product .PageHero_hero__qlWDQ {
    padding-top: 44px;
    padding-bottom: 32px;
  }

  body.aurora-storefront.woocommerce-shop .aurora-wc-wrap,
  body.aurora-storefront.tax-product_cat .aurora-wc-wrap,
  body.aurora-storefront.post-type-archive-product .aurora-wc-wrap {
    padding-top: 24px;
    padding-bottom: 36px;
  }
}

@media (max-width: 390px) {
  body.aurora-storefront.woocommerce-shop .PageHero_hero__qlWDQ,
  body.aurora-storefront.tax-product_cat .PageHero_hero__qlWDQ,
  body.aurora-storefront.post-type-archive-product .PageHero_hero__qlWDQ {
    padding-top: 40px;
    padding-bottom: 28px;
  }

  body.aurora-storefront.woocommerce-shop .aurora-wc-wrap,
  body.aurora-storefront.tax-product_cat .aurora-wc-wrap,
  body.aurora-storefront.post-type-archive-product .aurora-wc-wrap {
    padding-top: 20px;
    padding-bottom: 32px;
  }
}

/* Shop hero — tighten gap below "Our Catalogue" chip (spacing only) */
body.aurora-storefront.woocommerce-shop .PageHero_hero__qlWDQ div:has(> .chip),
body.aurora-storefront.tax-product_cat .PageHero_hero__qlWDQ div:has(> .chip),
body.aurora-storefront.post-type-archive-product .PageHero_hero__qlWDQ div:has(> .chip) {
  margin-bottom: clamp(8px, 1.2vw, 12px);
}

@media (max-width: 768px) {
  body.aurora-storefront.woocommerce-shop .PageHero_hero__qlWDQ div:has(> .chip),
  body.aurora-storefront.tax-product_cat .PageHero_hero__qlWDQ div:has(> .chip),
  body.aurora-storefront.post-type-archive-product .PageHero_hero__qlWDQ div:has(> .chip) {
    margin-bottom: 8px;
  }
}

/* ── Boxed filter bar (outside .container on shop — align to site width) ── */
body.aurora-storefront.woocommerce-shop .ShopFilters_filterBar__9dvam,
body.aurora-storefront.tax-product_cat .ShopFilters_filterBar__9dvam,
body.aurora-storefront.post-type-archive-product .ShopFilters_filterBar__9dvam {
  box-sizing: border-box;
  width: calc(100% - 2 * var(--site-gutter, clamp(20px, 4vw, 36px)));
  max-width: var(--site-max, 1320px);
  margin: 0 auto clamp(28px, 3.5vw, 40px);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border-radius: 18px;
  background: rgba(8, 13, 30, 0.92);
  border: 1px solid rgba(0, 212, 255, 0.14);
}

body.aurora-storefront.woocommerce-shop .ShopFilters_filterLabel__G1bom,
body.aurora-storefront.tax-product_cat .ShopFilters_filterLabel__G1bom {
  margin-right: 2px;
  flex-shrink: 0;
}

body.aurora-storefront.woocommerce-shop .ShopFilters_filterLink__B0jNE,
body.aurora-storefront.tax-product_cat .ShopFilters_filterLink__B0jNE {
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  padding: 7px 14px;
  font-size: 12px;
}

/* ── Boxed shop toolbar ── */
body.aurora-storefront.woocommerce-shop .aurora-wc-wrap .aurora-shop-toolbar,
body.aurora-storefront.tax-product_cat .aurora-wc-wrap .aurora-shop-toolbar {
  box-sizing: border-box;
  max-width: 100%;
  margin: 0 0 clamp(20px, 2.5vw, 28px);
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 18px;
  background: rgba(8, 13, 30, 0.92);
  border: 1px solid rgba(0, 212, 255, 0.14);
}

body.aurora-storefront.woocommerce-shop .aurora-shop-toolbar .woocommerce-result-count,
body.aurora-storefront.tax-product_cat .aurora-shop-toolbar .woocommerce-result-count {
  margin: 0;
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--aurora-body-sm, 14px);
  color: rgba(200, 220, 240, 0.88);
}

body.aurora-storefront.woocommerce-shop .aurora-shop-toolbar .woocommerce-ordering,
body.aurora-storefront.tax-product_cat .aurora-shop-toolbar .woocommerce-ordering {
  margin: 0 0 0 auto;
  display: flex;
  align-items: center;
}

body.aurora-storefront.woocommerce-shop .aurora-shop-toolbar select.orderby,
body.aurora-storefront.tax-product_cat .aurora-shop-toolbar select.orderby {
  appearance: none;
  background-color: var(--aurora-input-bg, #0b1228);
  border: 1px solid var(--aurora-border, rgba(255, 255, 255, 0.08));
  border-radius: var(--aurora-radius-input, 12px);
  color: var(--txt, #edf4ff);
  padding: 10px 36px 10px 14px;
  font-size: var(--aurora-body-sm, 14px);
  min-width: 200px;
}

/* ── Product grid — 4 columns desktop (match homepage catalogue) ── */
body.aurora-storefront.woocommerce-shop .aurora-wc-wrap .ProductGrid_grid__eCqBK.products,
body.aurora-storefront.tax-product_cat .aurora-wc-wrap .ProductGrid_grid__eCqBK.products,
body.aurora-storefront.post-type-archive-product .aurora-wc-wrap .ProductGrid_grid__eCqBK.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 28px);
  list-style: none;
  margin: 0 0 clamp(24px, 3vw, 36px);
  padding: 0;
  max-width: 100%;
}

body.aurora-storefront.woocommerce-shop .aurora-wc-wrap .ProductGrid_grid__eCqBK.products::before,
body.aurora-storefront.woocommerce-shop .aurora-wc-wrap .ProductGrid_grid__eCqBK.products::after,
body.aurora-storefront.tax-product_cat .aurora-wc-wrap .ProductGrid_grid__eCqBK.products::before,
body.aurora-storefront.tax-product_cat .aurora-wc-wrap .ProductGrid_grid__eCqBK.products::after {
  display: none;
}

body.aurora-storefront.woocommerce-shop .aurora-wc-wrap .ProductGrid_grid__eCqBK.products > li.product,
body.aurora-storefront.tax-product_cat .aurora-wc-wrap .ProductGrid_grid__eCqBK.products > li.product {
  width: 100%;
  margin: 0;
  padding: 0;
  float: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: visible;
}

body.aurora-storefront.woocommerce-shop .woocommerce-no-products-found,
body.aurora-storefront.tax-product_cat .woocommerce-no-products-found {
  grid-column: 1 / -1;
}

body.aurora-storefront.woocommerce-shop .woocommerce-no-products-found .woocommerce-info,
body.aurora-storefront.tax-product_cat .woocommerce-no-products-found .woocommerce-info {
  margin: 0;
}

@media (max-width: 1024px) {
  body.aurora-storefront.woocommerce-shop .aurora-wc-wrap .ProductGrid_grid__eCqBK.products,
  body.aurora-storefront.tax-product_cat .aurora-wc-wrap .ProductGrid_grid__eCqBK.products,
  body.aurora-storefront.post-type-archive-product .aurora-wc-wrap .ProductGrid_grid__eCqBK.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  body.aurora-storefront.woocommerce-shop .aurora-wc-wrap .ProductGrid_grid__eCqBK.products,
  body.aurora-storefront.tax-product_cat .aurora-wc-wrap .ProductGrid_grid__eCqBK.products,
  body.aurora-storefront.post-type-archive-product .aurora-wc-wrap .ProductGrid_grid__eCqBK.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 340px) {
  body.aurora-storefront.woocommerce-shop .aurora-wc-wrap .ProductGrid_grid__eCqBK.products,
  body.aurora-storefront.tax-product_cat .aurora-wc-wrap .ProductGrid_grid__eCqBK.products,
  body.aurora-storefront.post-type-archive-product .aurora-wc-wrap .ProductGrid_grid__eCqBK.products {
    grid-template-columns: 1fr;
  }
}

/* ── Filter pills — mobile horizontal scroll ── */
@media (max-width: 768px) {
  body.aurora-storefront.woocommerce-shop .ShopFilters_filterBar__9dvam,
  body.aurora-storefront.tax-product_cat .ShopFilters_filterBar__9dvam {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 14px;
  }

  body.aurora-storefront.woocommerce-shop .ShopFilters_filterBar__9dvam::-webkit-scrollbar,
  body.aurora-storefront.tax-product_cat .ShopFilters_filterBar__9dvam::-webkit-scrollbar {
    display: none;
  }

  body.aurora-storefront.woocommerce-shop .aurora-wc-wrap .aurora-shop-toolbar,
  body.aurora-storefront.tax-product_cat .aurora-wc-wrap .aurora-shop-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  body.aurora-storefront.woocommerce-shop .aurora-shop-toolbar .woocommerce-ordering,
  body.aurora-storefront.tax-product_cat .aurora-shop-toolbar .woocommerce-ordering {
    margin-left: 0;
    width: 100%;
  }

  body.aurora-storefront.woocommerce-shop .aurora-shop-toolbar select.orderby,
  body.aurora-storefront.tax-product_cat .aurora-shop-toolbar select.orderby {
    width: 100%;
  }
}

/* Hide duplicate WooCommerce archive title (Aurora PageHero replaces it) */
body.aurora-storefront.woocommerce-shop .woocommerce-products-header,
body.aurora-storefront.tax-product_cat .woocommerce-products-header {
  display: none !important;
}

/* ── Pagination ── */
body.aurora-storefront.woocommerce-shop .woocommerce-pagination,
body.aurora-storefront.tax-product_cat .woocommerce-pagination {
  margin-top: clamp(16px, 2vw, 24px);
  text-align: center;
}

body.aurora-storefront.woocommerce-shop .woocommerce-pagination ul.page-numbers,
body.aurora-storefront.tax-product_cat .woocommerce-pagination ul.page-numbers {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 0;
}

body.aurora-storefront.woocommerce-shop .woocommerce-pagination ul.page-numbers li,
body.aurora-storefront.tax-product_cat .woocommerce-pagination ul.page-numbers li {
  margin: 0;
  border: 0;
}

body.aurora-storefront.woocommerce-shop .woocommerce-pagination .page-numbers,
body.aurora-storefront.tax-product_cat .woocommerce-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--aurora-radius-btn, 12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 13, 30, 0.78);
  color: rgba(237, 244, 255, 0.72);
  text-decoration: none;
  font-size: 14px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

body.aurora-storefront.woocommerce-shop .woocommerce-pagination .page-numbers.current,
body.aurora-storefront.woocommerce-shop .woocommerce-pagination .page-numbers:hover,
body.aurora-storefront.tax-product_cat .woocommerce-pagination .page-numbers.current,
body.aurora-storefront.tax-product_cat .woocommerce-pagination .page-numbers:hover {
  border-color: rgba(0, 212, 255, 0.28);
  background: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
}

/* ── Shop product cards — full image visible, no crop ── */
body.aurora-storefront.woocommerce-shop .product-card .product-image,
body.aurora-storefront.tax-product_cat .product-card .product-image,
body.aurora-storefront.post-type-archive-product .product-card .product-image,
body.aurora-storefront.woocommerce-shop .ProductCard_card___Z7IJ .product-image,
body.aurora-storefront.tax-product_cat .ProductCard_card___Z7IJ .product-image,
body.aurora-storefront.post-type-archive-product .ProductCard_card___Z7IJ .product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050b18;
  border-radius: 14px 14px 0 0;
}

body.aurora-storefront.woocommerce-shop .product-card .product-image-link,
body.aurora-storefront.tax-product_cat .product-card .product-image-link,
body.aurora-storefront.post-type-archive-product .product-card .product-image-link,
body.aurora-storefront.woocommerce-shop .ProductCard_card___Z7IJ .product-image-link,
body.aurora-storefront.tax-product_cat .ProductCard_card___Z7IJ .product-image-link,
body.aurora-storefront.post-type-archive-product .ProductCard_card___Z7IJ .product-image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  margin: 0;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

body.aurora-storefront.woocommerce-shop .product-card .product-card__img,
body.aurora-storefront.tax-product_cat .product-card .product-card__img,
body.aurora-storefront.post-type-archive-product .product-card .product-card__img,
body.aurora-storefront.woocommerce-shop .ProductCard_card___Z7IJ .product-card__img,
body.aurora-storefront.tax-product_cat .ProductCard_card___Z7IJ .product-card__img,
body.aurora-storefront.post-type-archive-product .ProductCard_card___Z7IJ .product-card__img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  padding: 0 !important;
  margin: 0 !important;
  border: 0;
  border-radius: 0;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
}

body.aurora-storefront.woocommerce-shop .product-card:hover .product-card__img,
body.aurora-storefront.tax-product_cat .product-card:hover .product-card__img,
body.aurora-storefront.post-type-archive-product .product-card:hover .product-card__img,
body.aurora-storefront.woocommerce-shop .ProductCard_card___Z7IJ:hover .product-card__img,
body.aurora-storefront.tax-product_cat .ProductCard_card___Z7IJ:hover .product-card__img,
body.aurora-storefront.post-type-archive-product .ProductCard_card___Z7IJ:hover .product-card__img {
  transform: none !important;
}

/* Shop/archive — desktop price left, Add to Cart right (footer layout only) */
@media (min-width: 769px) {
  body.aurora-storefront.woocommerce-shop .product-card .product-footer,
  body.aurora-storefront.tax-product_cat .product-card .product-footer,
  body.aurora-storefront.post-type-archive-product .product-card .product-footer,
  body.aurora-storefront.woocommerce-shop .ProductCard_card___Z7IJ .product-footer,
  body.aurora-storefront.tax-product_cat .ProductCard_card___Z7IJ .product-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-top: auto;
  }

  body.aurora-storefront.woocommerce-shop .product-card .product-price,
  body.aurora-storefront.tax-product_cat .product-card .product-price,
  body.aurora-storefront.post-type-archive-product .product-card .product-price,
  body.aurora-storefront.woocommerce-shop .ProductCard_card___Z7IJ .product-price,
  body.aurora-storefront.tax-product_cat .ProductCard_card___Z7IJ .product-price {
    width: auto;
    flex: 0 0 auto;
    text-align: left !important;
    justify-content: flex-start !important;
    margin: 0;
    white-space: nowrap;
  }

  body.aurora-storefront.woocommerce-shop .product-card .product-price .price,
  body.aurora-storefront.tax-product_cat .product-card .product-price .price,
  body.aurora-storefront.woocommerce-shop .product-card .product-price .woocommerce-Price-amount,
  body.aurora-storefront.tax-product_cat .product-card .product-price .woocommerce-Price-amount,
  body.aurora-storefront.woocommerce-shop .ProductCard_card___Z7IJ .product-price .price,
  body.aurora-storefront.tax-product_cat .ProductCard_card___Z7IJ .product-price .woocommerce-Price-amount {
    width: auto;
    text-align: left !important;
    justify-content: flex-start !important;
  }

  body.aurora-storefront.woocommerce-shop .product-card .product-footer .add-to-cart,
  body.aurora-storefront.woocommerce-shop .product-card .product-footer .add_to_cart_button,
  body.aurora-storefront.tax-product_cat .product-card .product-footer .add_to_cart_button,
  body.aurora-storefront.woocommerce-shop .ProductCard_card___Z7IJ .product-footer .ProductCard_atc__vTiZ2,
  body.aurora-storefront.tax-product_cat .ProductCard_card___Z7IJ .product-footer .ProductCard_atc__vTiZ2 {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }
}
