/* PAMTECH shop + product category archives — presentation only.
   Scoped via body.pamtech-shop-archive. Does not restyle homepage or PDP. */

body.pamtech-shop-archive {
  --pamtech-primary: #5B38ED;
  --pamtech-primary-hover: #4A2BD4;
  --pamtech-text: #111518;
  --pamtech-muted: #4d5d6d;
  --pamtech-border: #E7EBEE;
  --pamtech-surface: #ffffff;
  --pamtech-image-well: #f8f9fb;
  --pamtech-btn-h: 48px;
  --pamtech-btn-pad: 0 22px;
  --pamtech-btn-radius: 6px;
}

body.pamtech-shop-archive .woocommerce-result-count,
body.pamtech-shop-archive .ct-breadcrumbs,
body.pamtech-shop-archive nav.woocommerce-breadcrumb,
body.pamtech-shop-archive .woocommerce-products-header .page-title,
body.pamtech-shop-archive h1.page-title,
body.pamtech-shop-archive h1.woocommerce-products-header__title,
body.pamtech-shop-archive ul.products li.product .meta-categories,
body.pamtech-shop-archive ul.products li.product .entry-meta {
  text-transform: none;
  letter-spacing: 0;
}

body.pamtech-shop-archive .woocommerce-result-count {
  font-size: 13px;
  color: var(--pamtech-muted);
}

body.pamtech-shop-archive ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

body.pamtech-shop-archive ul.products li.product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: auto;
  max-width: none;
  margin: 0;
  background: var(--pamtech-surface);
  border: 1px solid var(--pamtech-border);
  border-radius: 15px;
  padding: 16px 16px 20px;
  box-sizing: border-box;
  box-shadow: none;
  transition: border-color 180ms ease;
}

body.pamtech-shop-archive ul.products li.product:hover,
body.pamtech-shop-archive ul.products li.product:focus-within {
  border-color: var(--pamtech-primary);
}

body.pamtech-shop-archive ul.products li.product figure {
  margin: 0 0 14px;
  width: 100%;
}

body.pamtech-shop-archive ul.products li.product .ct-media-container {
  aspect-ratio: 1 / 1;
  max-height: 280px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--pamtech-image-well);
  border-radius: 12px;
  padding: 16px;
  box-sizing: border-box;
}

body.pamtech-shop-archive ul.products li.product .ct-media-container img {
  aspect-ratio: auto !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center;
  margin-inline: auto;
}

body.pamtech-shop-archive ul.products li.product .woocommerce-loop-product__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--pamtech-text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

body.pamtech-shop-archive ul.products li.product .woocommerce-loop-product__title a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

body.pamtech-shop-archive ul.products li.product .woocommerce-loop-product__title a:focus-visible,
body.pamtech-shop-archive ul.products li.product .ct-media-container:focus-visible {
  outline: 2px solid var(--pamtech-primary);
  outline-offset: 3px;
}

body.pamtech-shop-archive ul.products li.product .price,
body.pamtech-shop-archive ul.products li.product .price .woocommerce-Price-amount {
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: var(--pamtech-text) !important;
}

body.pamtech-shop-archive ul.products li.product .price del,
body.pamtech-shop-archive ul.products li.product .price del .woocommerce-Price-amount {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--pamtech-muted) !important;
}

body.pamtech-shop-archive ul.products li.product .entry-meta {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

body.pamtech-shop-archive ul.products li.product .meta-categories a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--pamtech-muted);
  text-decoration: none;
}

body.pamtech-shop-archive ul.products li.product .meta-categories a:hover {
  color: var(--pamtech-primary);
}

body.pamtech-shop-archive ul.products li.product .ct-woo-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: auto !important;
  padding-top: 16px;
  gap: 8px;
}

body.pamtech-shop-archive ul.products li.product .ct-woo-card-actions .add_to_cart_button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: var(--pamtech-btn-h);
  min-width: 44px;
  height: auto !important;
  padding: var(--pamtech-btn-pad) !important;
  border: 0 !important;
  border-radius: var(--pamtech-btn-radius) !important;
  background: var(--pamtech-primary) !important;
  color: #fff !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-align: center;
  box-shadow: none !important;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

body.pamtech-shop-archive ul.products li.product .ct-woo-card-actions .add_to_cart_button:hover {
  background: var(--pamtech-primary-hover) !important;
  color: #fff !important;
}

body.pamtech-shop-archive ul.products li.product .ct-woo-card-actions .add_to_cart_button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--pamtech-primary);
}

body.pamtech-shop-archive ul.products li.product .ct-woo-card-actions .add_to_cart_button.loading {
  opacity: 0.7;
  pointer-events: none;
}

body.pamtech-shop-archive ul.products li.product .added_to_cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--pamtech-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  box-shadow: none;
}

body.pamtech-shop-archive ul.products li.product .onsale {
  background: var(--pamtech-primary);
  color: #fff;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

body.pamtech-shop-archive .ct-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

body.pamtech-shop-archive .ct-pagination .page-numbers {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: none;
}

body.pamtech-shop-archive .ct-pagination .page-numbers.current {
  background: var(--pamtech-primary);
  color: #fff;
  border-color: var(--pamtech-primary);
}

body.pamtech-shop-archive .ct-pagination .page-numbers:focus-visible {
  outline: 2px solid var(--pamtech-primary);
  outline-offset: 3px;
}

body.pamtech-shop-archive form.woocommerce-ordering select.orderby:focus,
body.pamtech-shop-archive form.woocommerce-ordering select.orderby:focus-visible {
  outline: 2px solid var(--pamtech-primary) !important;
  outline-offset: 3px;
}

body.pamtech-shop-archive .woocommerce-info,
body.pamtech-shop-archive .woocommerce-no-products-found .woocommerce-info {
  border-radius: 15px;
  border: 1px solid var(--pamtech-border);
  background: var(--pamtech-surface);
  color: var(--pamtech-text);
  padding: 20px 24px 20px 56px;
  box-shadow: none;
}

body.pamtech-shop-archive .woocommerce-no-products-found {
  margin: 0;
}

body.pamtech-shop-archive .woo-listing-top:has(.pamtech-shop-search) {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

body.pamtech-shop-archive .woo-listing-top:has(.pamtech-shop-search) .woocommerce-result-count {
  flex: 0 0 auto;
  margin: 0;
}

body.pamtech-shop-archive .woo-listing-top:has(.pamtech-shop-search) .woocommerce-ordering {
  flex: 0 0 auto;
  margin: 0;
}

body.pamtech-shop-archive .pamtech-shop-search {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  flex: 1 1 240px;
  width: auto;
  min-width: 180px;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

body.pamtech-shop-archive .pamtech-shop-search__input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--pamtech-border);
  border-radius: var(--pamtech-btn-radius);
  background: var(--pamtech-surface);
  color: var(--pamtech-text);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.3;
  box-sizing: border-box;
}

body.pamtech-shop-archive .pamtech-shop-search__input::placeholder {
  color: var(--pamtech-muted);
  opacity: 1;
}

body.pamtech-shop-archive .pamtech-shop-search__input:focus,
body.pamtech-shop-archive .pamtech-shop-search__input:focus-visible {
  outline: 2px solid var(--pamtech-primary);
  outline-offset: 2px;
  border-color: var(--pamtech-primary);
}

body.pamtech-shop-archive .pamtech-shop-search__submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--pamtech-btn-radius);
  background: var(--pamtech-primary);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-sizing: border-box;
}

body.pamtech-shop-archive .pamtech-shop-search__submit:hover,
body.pamtech-shop-archive .pamtech-shop-search__submit:focus {
  background: var(--pamtech-primary-hover);
  color: #fff;
}

body.pamtech-shop-archive .pamtech-shop-search__submit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--pamtech-primary);
}

@media screen and (max-width: 999.98px) {
  body.pamtech-shop-archive ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding-bottom: 24px;
  }

  body.pamtech-shop-archive ul.products li.product .price,
  body.pamtech-shop-archive ul.products li.product .price .woocommerce-Price-amount {
    font-size: 18px !important;
  }

  body.pamtech-shop-archive ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px;
  }

  body.pamtech-shop-archive .ct-pagination {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

@media screen and (max-width: 689px) {
  body.pamtech-shop-archive ul.products {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  body.pamtech-shop-archive ul.products li.product {
    padding: 14px 14px 18px;
  }

  body.pamtech-shop-archive .woo-listing-top:has(.pamtech-shop-search) {
    align-items: stretch;
    gap: 12px;
  }

  body.pamtech-shop-archive .woo-listing-top:has(.pamtech-shop-search) .pamtech-shop-search,
  body.pamtech-shop-archive .woo-listing-top:has(.pamtech-shop-search) .woocommerce-ordering,
  body.pamtech-shop-archive .woo-listing-top:has(.pamtech-shop-search) .woocommerce-ordering select.orderby {
    width: 100%;
    min-width: 0;
  }

  body.pamtech-shop-archive .pamtech-shop-search {
    flex-basis: 100%;
    margin: 0;
  }

  body.pamtech-shop-archive .pamtech-shop-search__submit {
    padding: 0 16px;
  }

  body.pamtech-shop-archive .woocommerce-result-count.ct-hidden-sm {
    display: block !important;
    margin: 0 0 12px;
  }

  body.pamtech-shop-archive .ct-pagination .ct-hidden-sm {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
}
