/* WooCommerce styles — Precious Surgicals */

.ps-shop {
  --ps-shop-gutter: clamp(1.5rem, 6vw, 5rem);
  --ps-shop-max: 1440px;
  width: 100%;
  max-width: 100%;
  padding: 0 var(--ps-shop-gutter) 5rem;
  overflow-x: clip;
}

.ps-shop__content {
  width: min(var(--ps-shop-max), 100%);
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* ─── Collection hero: specialty nav + landscape banner ─── */

.ps-collection-hero {
  width: 100%;
  max-width: 100%;
  margin: 0 0 2.5rem;
  padding: 1.75rem 0 0;
  background: #fff;
  text-align: center;
}

.ps-collection-nav {
  width: min(1100px, 100%);
  margin: 0 auto 2rem;
  padding: 0;
}

.ps-collection-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 0.35rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ps-collection-nav__item {
  margin: 0;
}

.ps-collection-nav__link {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.15rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: #9a9a9a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ps-collection-nav__dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
}

.ps-collection-nav__item.is-active .ps-collection-nav__dot,
.ps-collection-nav__link[aria-current="page"] .ps-collection-nav__dot {
  background: #9a9a9a;
}

.ps-collection-nav__item.is-active .ps-collection-nav__link,
.ps-collection-nav__link[aria-current="page"] {
  color: #111;
  font-weight: 600;
}

.ps-collection-nav__link:hover {
  color: #111;
}

.ps-collection-banner {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0;
  aspect-ratio: 21 / 8;
  max-height: 420px;
  overflow: hidden;
  background: #f3f3f3;
}

.ps-collection-banner__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ps-collection-banner__img[src$=".svg"] {
  object-fit: contain;
  padding: 2.5rem 3rem;
  background: #f6f6f6;
}

.ps-cat-toolbar-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0 0 2rem;
  padding: 0;
  background: transparent;
  border: none;
}

.ps-cat-toolbar {
  margin: 0 auto;
  width: min(var(--ps-shop-max, 1440px), 100%);
  max-width: 100%;
  padding-inline: 0;
}

.ps-cat-toolbar--shop {
  padding: 0 0 1.5rem;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ps-cat-toolbar--collection {
  border-bottom: none;
}

.ps-cat-toolbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.ps-cat-toolbar__row--collection {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.ps-cat-toolbar__title {
  margin: 0;
  font-family: var(--font-body, "Inter", system-ui, sans-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #111;
  text-align: center;
  grid-column: 2;
}

.ps-cat-toolbar__title-spacer {
  display: block;
  min-width: 1px;
}

.ps-cat-toolbar__control {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.ps-cat-toolbar__control--filter {
  justify-self: start;
  grid-column: 1;
}

.ps-cat-toolbar__control--sort {
  justify-self: end;
  grid-column: 3;
}

.ps-cat-toolbar__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #111;
  cursor: pointer;
  user-select: none;
}

.ps-cat-toolbar__trigger svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.ps-cat-toolbar__select,
.ps-cat-toolbar .woocommerce-ordering select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  font-size: 1rem;
}

.ps-cat-toolbar .woocommerce-ordering {
  position: absolute;
  inset: 0;
  margin: 0;
  display: block;
}

.ps-cat-toolbar .woocommerce-result-count,
.ps-cat-toolbar__count {
  display: none;
}

.ps-woocommerce-page.ps-cols-2 .ps-shop ul.products.ps-cat-grid,
.ps-woocommerce-page.ps-cols-2 .ps-shop .product-grid.ps-cat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.ps-woocommerce-page.ps-cols-3 .ps-shop ul.products.ps-cat-grid,
.ps-woocommerce-page.ps-cols-3 .ps-shop .product-grid.ps-cat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.ps-woocommerce-page.ps-cols-4 .ps-shop ul.products.ps-cat-grid,
.ps-woocommerce-page.ps-cols-4 .ps-shop .product-grid.ps-cat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.ps-cat-grid {
  margin-bottom: 2.5rem;
}

/* Override default WooCommerce float layout */
.ps-shop ul.products,
.ps-shop ul.products.ps-cat-grid,
.ps-shop .product-grid.ps-cat-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: both;
}

.ps-shop ul.products.ps-cat-grid::before,
.ps-shop ul.products.ps-cat-grid::after {
  display: none;
  content: none;
}

.ps-shop ul.products.ps-cat-grid > li.product,
.ps-shop .product-grid.ps-cat-grid > li.product {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

.ps-cat-pagination-wrap {
  width: 100%;
  padding: 2.75rem 0 3.5rem;
  margin-top: 0.5rem;
}

.ps-cat-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
}

/* Reference pagination: Previous | pages | Next | items */
.ps-pagination {
  --ps-page-accent: #e6006a;
  --ps-page-accent-hover: #c9005c;
  --ps-page-active: #fde8f1;
  --ps-page-border: #d7dde5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 0.85rem;
  width: 100%;
}

.ps-pagination__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  background: var(--ps-page-accent);
  color: #fff !important;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  border: none;
  transition: background 0.2s ease;
}

.ps-pagination__nav:hover {
  background: var(--ps-page-accent-hover);
  color: #fff !important;
}

.ps-pagination__nav.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

.ps-pagination__pages {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  min-height: 44px;
  padding: 0.25rem 0.35rem;
  border: 1px solid var(--ps-page-border);
  border-radius: 8px;
  background: #fff;
}

.ps-pagination__page,
.ps-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0 0.35rem;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #445;
  text-decoration: none;
  line-height: 1;
}

.ps-pagination__page:hover {
  background: #f6f7f9;
  color: #222;
}

.ps-pagination__page.is-current {
  background: var(--ps-page-active);
  color: #222;
  font-weight: 600;
}

.ps-pagination__ellipsis {
  color: #8a9198;
  pointer-events: none;
}

.ps-pagination__per-page {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.ps-pagination__select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  padding: 0.65rem 2.35rem 0.65rem 0.95rem;
  border: 1px solid var(--ps-page-border);
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23555' d='M1.1 1.2L6 6.1l4.9-4.9 1.1 1.1L6 8.3.0 2.3z'/%3E%3C/svg%3E") no-repeat right 0.85rem center;
  color: #333;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  line-height: 1;
}

.ps-pagination__select:focus {
  outline: none;
  border-color: var(--ps-page-accent);
  box-shadow: 0 0 0 3px rgba(230, 0, 106, 0.12);
}

@media (max-width: 640px) {
  .ps-pagination {
    gap: 0.65rem;
  }

  .ps-pagination__nav {
    flex: 1 1 calc(50% - 0.4rem);
    min-width: 0;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .ps-pagination__pages {
    order: 3;
    width: 100%;
    justify-content: center;
    overflow-x: auto;
  }

  .ps-pagination__per-page {
    order: 4;
    width: 100%;
  }

  .ps-pagination__select {
    width: 100%;
  }
}

.ps-cat-pagination .woocommerce-pagination,
.ps-cat-pagination nav.woocommerce-pagination {
  display: none !important;
}

.ps-cat-empty {
  text-align: center;
  padding: 3rem 2rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px dashed var(--color-silver);
}

.ps-cat-empty p {
  margin-bottom: 1.5rem;
  color: var(--color-steel);
}

/* ─── Product loop cards (collection style) ─── */

.ps-wc-loop {
  margin-bottom: 2rem;
}

.ps-shop .product-card.ps-wc-card,
.ps-shop ul.products li.ps-wc-card,
.related.products .ps-wc-card,
.upsells.products .ps-wc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  overflow: visible;
}

.ps-shop .ps-wc-card img {
  margin-bottom: 0;
  border-radius: 0;
}

.ps-wc-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 1.5rem;
  border-radius: 0;
  background: #f3f3f3;
  overflow: hidden;
}

.ps-wc-card__badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  pointer-events: none;
}

.ps-wc-card__badge {
  display: inline-block;
  padding: 0.28rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.2;
}

.ps-wc-card__badge--sale {
  background: #fff;
  color: #d32f2f;
  border: 1px solid #eee;
}

.ps-wc-card__badge--new,
.ps-wc-card__badge--hot {
  background: #111;
  color: #fff;
}

.ps-wc-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.ps-wc-card__image img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  margin: 0 auto;
}

.ps-wc-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.4rem;
  padding: 1rem 0 0.85rem;
  margin: 0;
}

.ps-wc-card__rating {
  margin: 0;
}

.ps-wc-card__rating .star-rating {
  font-size: 0.78rem;
  margin: 0;
  color: #111;
}

.ps-wc-card__rating .woocommerce-review-link {
  font-size: 0.78rem;
  color: #888;
}

.ps-wc-card .woocommerce-loop-product__title {
  font-size: 0.92rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.45;
  text-align: left;
}

.ps-wc-card .woocommerce-loop-product__title a {
  color: #111;
  text-decoration: none;
}

.ps-wc-card .woocommerce-loop-product__title a:hover {
  color: var(--color-navy);
}

.ps-wc-card__excerpt {
  margin: 0;
  font-size: 0.8rem;
  color: #9a9a9a;
  line-height: 1.45;
  text-align: left;
}

.ps-wc-card__price {
  margin-top: 0.1rem;
  font-size: 0.95rem;
}

.ps-wc-card__price .price {
  margin: 0;
  font-weight: 600;
  color: #111;
}

.ps-wc-card__price del {
  color: #999;
  font-weight: 400;
  font-size: 0.86rem;
  margin-right: 0.35rem;
}

.ps-wc-card__price ins {
  text-decoration: none;
  font-weight: 600;
  color: #111;
}

.ps-wc-card__price .woocommerce-Price-amount {
  font-weight: 600;
}

.ps-wc-card__footer {
  margin-top: auto;
  padding: 0;
}

.ps-wc-card__cart {
  margin: 0;
  width: 100%;
}

.ps-wc-card__variations {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.ps-wc-card__select,
.ps-wc-card__variation select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #ddd;
  border-radius: 0;
  background: #fff;
  font-size: 0.82rem;
  color: #333;
}

.ps-wc-card__cart .single_variation_wrap {
  margin: 0;
}

.ps-wc-card__cart .woocommerce-variation.single_variation {
  display: none !important;
}

.ps-wc-card__add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid #111;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  text-decoration: none;
  color: #111;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ps-wc-card__add-btn:hover:not(:disabled) {
  background: #111;
  color: #fff;
  box-shadow: none;
  transform: none;
}

.ps-wc-card__add-btn:disabled,
.ps-wc-card__add-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: #bbb;
  color: #888;
}

.ps-wc-card__add-label {
  flex: 0 1 auto;
  text-align: center;
}

.ps-wc-card__add-price {
  display: none;
}

.ps-price-quote {
  font-weight: 600;
  color: #111;
  font-size: 0.9rem;
}

.ps-quote-only .woocommerce-Price-amount,
.ps-quote-only .price .amount {
  display: none;
}

.ps-quote-cta {
  margin-top: 0.5rem;
}

.ps-quote-cta__note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.ps-quote-price {
  margin-bottom: 1.25rem !important;
}

.ps-quote-only .woocommerce-variation-price {
  display: none !important;
}

/* ─── Product Detail Page (PDP) ─── */

.single-product .ps-shop {
  --ps-pdp-gutter: clamp(1.5rem, 6vw, 5rem);
  --ps-shop-gutter: var(--ps-pdp-gutter);
  --ps-pdp-max: 1180px;
  --ps-pdp-text: 0.9375rem;
  --ps-pdp-accent: #e85a3c;
  --ps-pdp-blue: #3aa0d9;
  width: 100%;
  max-width: 100%;
  padding: 1.5rem var(--ps-pdp-gutter) 4.5rem;
}

.ps-shop .ps-pdp {
  width: min(var(--ps-pdp-max, 1180px), 100%);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0 2.5rem;
}

/* Breadcrumbs */
.ps-breadcrumbs {
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.ps-breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
  color: #9aa0a6;
}

.ps-breadcrumbs li:not(:last-child)::after {
  content: ">";
  margin-left: 0.35rem;
  color: #b0b6bc;
}

.ps-breadcrumbs a {
  color: #9aa0a6;
  text-decoration: none;
}

.ps-breadcrumbs a:hover {
  color: var(--color-teal);
}

.ps-breadcrumbs [aria-current="page"] {
  color: var(--ps-pdp-blue, var(--color-teal));
  font-weight: 500;
}

/* PDP — reference layout */
.ps-pdp {
  font-size: var(--ps-pdp-text, 0.9375rem);
  line-height: 1.65;
  color: #555;
}

.ps-pdp__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
  margin-bottom: 2.75rem;
}

.ps-pdp__gallery {
  position: relative;
}

.ps-pdp__gallery-main {
  position: relative;
}

.ps-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: var(--ps-pdp-text);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
}

.ps-badge--stock {
  background: #e8f7ef;
  color: #0a5c42;
  border: 1px solid #b8e6d4;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* Gallery */
.ps-pdp__gallery .woocommerce-product-gallery {
  margin-bottom: 0;
  background: #fff;
  border: none;
  padding: 0;
  width: 100%;
}

.ps-pdp__gallery .woocommerce-product-gallery__wrapper {
  margin-bottom: 0.85rem;
}

.ps-pdp__gallery .woocommerce-product-gallery__image {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 2px;
}

.ps-pdp__gallery .woocommerce-product-gallery__image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  display: block;
}

.ps-pdp__gallery .flex-viewport {
  border: 1px solid #e6e6e6;
  border-radius: 2px;
  background: #fff;
}

.ps-pdp__zoom {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.ps-pdp__zoom:hover {
  border-color: #111;
  color: #111;
}

.ps-pdp__gallery .woocommerce-product-gallery__trigger {
  display: none;
}

.ps-pdp__gallery .flex-control-thumbs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.ps-pdp__gallery .flex-control-thumbs li {
  margin: 0;
  width: 78px;
  flex: 0 0 78px;
}

.ps-pdp__gallery .flex-control-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  opacity: 1;
  padding: 2px;
  background: #fff;
  transition: border-color 0.2s;
}

.ps-pdp__gallery .flex-control-thumbs img.flex-active,
.ps-pdp__gallery .flex-control-thumbs img:hover {
  border-color: var(--ps-pdp-blue);
  border-width: 2px;
  padding: 1px;
}

.ps-pdp__gallery .onsale {
  display: none;
}

/* Summary */
.ps-pdp__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.ps-pdp__summary .product_title {
  flex: 1;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  color: #222;
  margin: 0;
  line-height: 1.25;
  font-weight: 700;
}

.ps-pdp__nav {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.ps-pdp__nav-link {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #8a9198;
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.ps-pdp__nav-link:hover {
  color: var(--color-navy);
  background: #f4f6f8;
}

.ps-pdp__nav-link.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.ps-product-rating-row {
  margin-bottom: 0.55rem;
}

.ps-pdp__summary .star-rating {
  margin: 0;
  font-size: var(--ps-pdp-text);
}

.ps-pdp__summary .woocommerce-review-link {
  font-size: var(--ps-pdp-text);
  color: #888;
}

.ps-product-price-block {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.ps-pdp__summary .price,
.ps-product-price-quote__label {
  font-size: 1.35rem;
  color: var(--ps-pdp-accent);
  font-weight: 700;
  margin: 0;
}

.ps-pdp__summary .price del {
  font-size: 0.95rem;
  color: #999;
  font-weight: 400;
}

.ps-pdp__summary .price ins {
  text-decoration: none;
  color: var(--ps-pdp-accent);
}

.ps-discount-badge {
  background: #fdecea;
  color: var(--ps-pdp-accent);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.ps-product-excerpt {
  font-size: 0.9rem;
  color: #9aa0a6;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.ps-product-stock {
  margin-bottom: 1.15rem;
}

.ps-product-stock__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ps-pdp-blue);
}

.ps-product-stock__label.is-out {
  color: var(--ps-pdp-accent);
}

/* Primary CTA */
.ps-product-actions {
  margin-bottom: 1.25rem;
}

.ps-product-actions form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
  margin: 0;
  width: 100%;
}

.ps-product-actions .quantity {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 48px;
  padding: 0 0.35rem;
  background: #f3f4f5;
  border: 1px solid #ebebeb;
  border-radius: 999px;
}

.ps-product-actions .quantity .qty {
  width: 2.5rem;
  padding: 0.65rem 0.15rem;
  border: none;
  border-radius: 0;
  text-align: center;
  font-size: var(--ps-pdp-text);
  font-weight: 600;
  background: transparent;
  color: #333;
  -moz-appearance: textfield;
}

.ps-product-actions .quantity .qty::-webkit-outer-spin-button,
.ps-product-actions .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ps-qty-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #666;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.ps-qty-btn:hover {
  color: #111;
  background: #e8e9ea;
}

.ps-pdp-btn,
.ps-product-actions .single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 160px;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  border: none !important;
  background: var(--ps-pdp-accent) !important;
  color: #fff !important;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.ps-pdp-btn:hover,
.ps-product-actions .single_add_to_cart_button:hover {
  background: #d14a2e !important;
  color: #fff !important;
}

.ps-product-actions .variations,
.ps-product-actions .woocommerce-variation-add-to-cart {
  width: 100%;
}

.ps-product-actions .woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

/* Meta + share */
.ps-product-meta {
  margin-bottom: 1rem;
}

.ps-product-meta__row {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.5;
}

.ps-product-meta__label {
  font-weight: 700;
  margin-right: 0.35rem;
}

.ps-product-meta__cats a {
  color: var(--ps-pdp-blue);
  text-decoration: none;
}

.ps-product-meta__cats a:hover {
  text-decoration: underline;
}

.ps-product-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.ps-product-share__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
}

.ps-product-share__list {
  display: inline-flex;
  gap: 0.45rem;
}

.ps-product-share__link {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #eef0f2;
  color: #7a828a;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.ps-product-share__link:hover {
  background: var(--ps-pdp-blue);
  color: #fff;
}

/* Wishlist */
.ps-product-wishlist {
  padding-top: 0.85rem;
  border-top: 1px solid #ececec;
}

.ps-product-wishlist__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: var(--ps-pdp-text);
  font-weight: 500;
  color: #222;
  cursor: pointer;
  transition: color 0.2s;
}

.ps-product-wishlist__btn:hover,
.ps-product-wishlist__btn.is-active {
  color: var(--color-teal);
}

.ps-product-wishlist__btn.is-active svg {
  fill: var(--color-teal);
  stroke: var(--color-teal);
}

/* Details: tabs + sticky CTA */
.ps-pdp__details {
  border-top: 1px solid #ececec;
  padding-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
  gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: start;
}

.ps-pdp__details-main {
  min-width: 0;
}

.ps-product-tabs {
  width: 100%;
  max-width: none;
}

.ps-product-tabs__nav {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 1.65rem;
}

.ps-product-tabs__btn {
  background: none;
  border: none;
  padding: 0.55rem 0 0.7rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: #9aa0a6;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.ps-product-tabs__btn.is-active {
  color: #222;
  font-weight: 700;
  border-bottom-color: var(--ps-pdp-blue);
}

.ps-product-tabs__panels {
  text-align: left;
}

.ps-product-tabs__panel {
  display: none;
}

.ps-product-tabs__panel.is-active {
  display: block;
}

.ps-tab-content {
  color: #9aa0a6;
  line-height: 1.85;
  font-size: var(--ps-pdp-text);
}

.ps-tab-content h2,
.ps-tab-content h3 {
  color: #222;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.25rem 0 0.65rem;
}

.ps-tab-content p,
.ps-tab-content li {
  font-size: var(--ps-pdp-text);
}

.ps-tab-content ul {
  margin-left: 1.25rem;
}

/* Sticky buy card */
.ps-pdp__aside {
  position: sticky;
  top: 1.25rem;
  width: 100%;
}

.ps-pdp-sticky {
  padding: 1.5rem 1.35rem 1.65rem;
  border-radius: 10px;
  background: linear-gradient(180deg, #eaf5fb 0%, #f6eef1 58%, #faf7f8 100%);
  text-align: center;
}

.ps-pdp-sticky__media {
  position: relative;
  margin: 0 auto 1.1rem;
  max-width: 210px;
}

.ps-pdp-sticky__img,
.ps-pdp-sticky__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
}

.ps-pdp-sticky__badge {
  position: absolute;
  top: -0.15rem;
  right: -0.35rem;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--ps-pdp-accent);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  padding: 0.35rem;
  box-shadow: 0 2px 8px rgba(232, 90, 60, 0.28);
}

.ps-pdp-sticky__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
}

.ps-pdp-sticky__price {
  margin-bottom: 1.1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ps-pdp-accent);
}

.ps-pdp-sticky__price del {
  font-size: 0.9rem;
  color: #999;
  font-weight: 400;
}

.ps-pdp-sticky__price ins {
  text-decoration: none;
  color: var(--ps-pdp-accent);
}

.ps-pdp-sticky__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 999px;
  background: var(--ps-pdp-blue);
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.ps-pdp-sticky__btn:hover {
  background: #2f8fc4;
}

/* Specs table */
.ps-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--ps-pdp-text);
}

.ps-specs-table th,
.ps-specs-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #ececec;
  font-size: var(--ps-pdp-text);
}

.ps-specs-table th {
  width: 35%;
  color: var(--color-heading);
  font-weight: 600;
  background: var(--color-off-white);
}

.ps-specs-table td {
  color: var(--color-text-muted);
}

/* Reviews tab */
.ps-product-tabs__panel .commentlist {
  list-style: none;
  padding: 0;
}

.ps-product-tabs__panel #review_form {
  margin-top: 2rem;
}

/* WooCommerce notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

/* Pagination & ordering */
.woocommerce-result-count,
.woocommerce-ordering {
  margin-bottom: 1.5rem;
}

.ps-cat-toolbar .woocommerce-result-count,
.ps-cat-toolbar .woocommerce-ordering {
  margin-bottom: 0;
}

.ps-shop .woocommerce-pagination {
  margin-top: 0;
}

.woocommerce-pagination ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--color-silver);
  text-decoration: none;
  color: var(--color-heading);
}

.woocommerce-pagination ul li span.current {
  background: var(--color-teal);
  color: #fff;
  border-color: var(--color-teal);
}

/* Related products on PDP */
.ps-shop .related.products,
.ps-shop .upsells.products {
  width: min(var(--ps-pdp-max, 1180px), 100%);
  max-width: 100%;
  margin: 2.75rem auto 0;
  padding: 0;
  border-top: none;
}

.related.products > h2,
.upsells.products > h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: #333;
  margin: 0 0 1.15rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #e8e8e8;
}

.ps-pdp .ps-breadcrumbs {
  font-size: 0.85rem;
}

.related.products ul.products,
.upsells.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.related.products ul.products > li.product,
.upsells.products ul.products > li.product {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

.related.products .ps-wc-card,
.upsells.products .ps-wc-card {
  background: transparent;
}

.related.products .ps-wc-card__media,
.upsells.products .ps-wc-card__media {
  background: #f2f2f2;
  border-radius: 8px;
}

.related.products .ps-wc-card__badge--sale,
.upsells.products .ps-wc-card__badge--sale,
.related.products .onsale,
.upsells.products .onsale {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  top: 0.75rem;
  left: 0.75rem;
  right: auto;
  min-width: 0;
  padding: 0.28rem 0.5rem;
  border-radius: 6px;
  background: var(--ps-pdp-accent, #e85a3c) !important;
  color: #fff !important;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

@media (max-width: 1100px) {
  .ps-pdp__details {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  }
}

@media (max-width: 1024px) {
  .related.products ul.products,
  .upsells.products ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .ps-woocommerce-page:not([class*="ps-cols-"]) .ps-shop ul.products.ps-cat-grid,
  .ps-woocommerce-page:not([class*="ps-cols-"]) .ps-shop .product-grid.ps-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ps-pdp__details {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ps-pdp__aside {
    position: static;
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .ps-shop {
    --ps-shop-gutter: clamp(1.25rem, 5vw, 2rem);
  }

  .single-product .ps-shop {
    --ps-pdp-gutter: clamp(1.25rem, 5vw, 2rem);
    padding-top: 1.15rem;
    padding-bottom: 3.5rem;
  }

  .ps-pdp__hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .ps-pdp__title-row {
    gap: 0.65rem;
  }

  .ps-pdp__summary .product_title {
    font-size: 1.4rem;
  }

  .ps-pdp__nav {
    display: none;
  }

  .ps-product-actions form.cart,
  .ps-product-actions .woocommerce-variation-add-to-cart {
    flex-direction: column;
  }

  .ps-product-actions .quantity {
    width: 100%;
    max-width: 160px;
    justify-content: space-between;
  }

  .ps-product-actions .single_add_to_cart_button {
    width: 100%;
  }

  .ps-pdp__details {
    padding-top: 1.75rem;
  }

  .ps-product-tabs__nav {
    gap: 1rem 1.35rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .ps-shop ul.products.ps-cat-grid,
  .ps-shop .product-grid.ps-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .ps-collection-nav__list {
    gap: 0.25rem 1rem;
  }

  .ps-collection-nav__link {
    font-size: 0.82rem;
  }

  .ps-collection-banner {
    aspect-ratio: 16 / 8;
  }

  .ps-cat-toolbar__row--collection {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "title title"
      "filter sort";
    row-gap: 1.1rem;
  }

  .ps-cat-toolbar__title {
    grid-area: title;
    grid-column: auto;
  }

  .ps-cat-toolbar__control--filter {
    grid-area: filter;
    grid-column: auto;
  }

  .ps-cat-toolbar__control--sort {
    grid-area: sort;
    grid-column: auto;
  }

  .ps-woocommerce-page.ps-cols-3 .ps-shop ul.products.ps-cat-grid,
  .ps-woocommerce-page.ps-cols-4 .ps-shop ul.products.ps-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ps-pdp__gallery .flex-control-thumbs li {
    width: 68px;
    flex-basis: 68px;
  }

  .related.products ul.products,
  .upsells.products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .related.products ul.products,
  .upsells.products ul.products {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .ps-shop ul.products.ps-cat-grid,
  .ps-shop .product-grid.ps-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .ps-wc-card__media {
    padding: 0.85rem;
  }

  .ps-wc-card .woocommerce-loop-product__title {
    font-size: 0.82rem;
  }

  .ps-wc-card__add-btn {
    font-size: 0.75rem;
    padding: 0.7rem 0.75rem;
  }
}
