/* NPTCL Products — small additions; card and gallery styles come from the theme. */
.nptcl-products-grid { list-style: none; padding: 0; margin: 0 0 40px; }
.nptcl-product-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; }
.nptcl-product-filter a { padding: 6px 14px; border: 1px solid var(--border, #ddd); border-radius: 999px; font-size: .9rem; text-decoration: none; color: inherit; }
.nptcl-product-filter a[aria-current="page"], .nptcl-product-filter a:hover { border-color: var(--primary, #111); color: var(--primary, #111); }
.nptcl-product-price { font-size: 1.35rem; font-weight: 700; margin: 10px 0 16px; }
.nptcl-product-price del { color: var(--muted-foreground, #777); font-weight: 500; margin-right: 6px; }
.nptcl-product-price ins { text-decoration: none; }
.nptcl-product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.nptcl-product-features { margin: 0; padding-left: 1.1em; line-height: 1.7; }
.nptcl-product-features li { margin-bottom: 6px; }
.nptcl-product-sections { display: grid; gap: 28px; margin: 48px 0; max-width: 900px; }
.nptcl-product-section h2 { font-size: 1.25rem; margin: 0 0 12px; }
.nptcl-product-box { columns: 2 220px; margin: 0; padding-left: 1.1em; line-height: 1.8; }
.nptcl-product-specs { width: 100%; border-collapse: collapse; }
.nptcl-product-specs th, .nptcl-product-specs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border, #e5e5e5); vertical-align: top; }
.nptcl-product-specs th { width: 34%; font-weight: 600; }
.nptcl-product .product-gallery-main img { width: 100%; height: auto; object-fit: contain; }
/* Full-width inline gallery on phones and tablets, including large touch tablets. */
/* Overlay arrows for the inline gallery; hidden unless JS reports a touch/inline layout. */
.nptcl-product .nptcl-gallery-arrow { display: none; }
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  .nptcl-product .nptcl-product-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .nptcl-product .product-gallery-col { width: 100%; min-width: 0; }
  .nptcl-product .product-gallery { width: 100%; gap: 10px; }
  .nptcl-product .product-gallery-main { position: relative; width: 100%; margin: 0; box-sizing: border-box; aspect-ratio: 1 / 1; padding: 0; border: 0; border-radius: 0; cursor: default; touch-action: pan-y pinch-zoom; }
  .nptcl-product .product-gallery-main img { display: block; width: 100%; height: 100%; max-width: none; max-height: none; padding: 0; object-fit: contain; }
  .nptcl-product .nptcl-gallery-arrow { display: flex; position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; align-items: center; justify-content: center; width: 42px; height: 42px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .88); box-shadow: 0 1px 6px rgba(0, 0, 0, .25); color: #111; font-size: 24px; line-height: 1; cursor: pointer; }
  .nptcl-product .nptcl-gallery-arrow:active { background: #fff; }
  .nptcl-product .nptcl-gallery-prev { left: 10px; }
  .nptcl-product .nptcl-gallery-next { right: 10px; }
  .nptcl-product .product-gallery-zoom-hint,
  .nptcl-product .wc-zoom-lens { display: none; }
  .nptcl-product .product-gallery-thumbs-wrap { min-width: 0; }
  .nptcl-product .product-gallery-thumbs { grid-auto-columns: 64px; gap: 8px; }
  .nptcl-product .product-gallery-thumb { width: 64px; height: 64px; flex: none; border-radius: 6px; }
  .nptcl-product .gallery-nav { width: 44px; height: 44px; flex: 0 0 44px; }
}
.nptcl-cat-banner { grid-column: 1 / -1; flex: 1 1 100%; width: 100%; max-width: none; margin: 0 0 20px; float: none; clear: both; }
.nptcl-cat-banner img { display: block; width: 100%; max-width: none; height: clamp(160px, 26vw, 360px); object-fit: cover; object-position: center; border-radius: 8px; }
.nptcl-product-filter a{display:inline-flex;align-items:center;gap:.4rem}
.nptcl-filter-thumb{width:28px;height:28px;object-fit:cover;border-radius:50%}

/* v1.4 — layout, rating, category cards, tabs, reviews, scroller */
.nptcl-products-wrap { max-width: var(--max, 1240px); margin: 0 auto; padding-left: clamp(16px, 4vw, 32px); padding-right: clamp(16px, 4vw, 32px); padding-bottom: 56px; }
.nptcl-price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.nptcl-price-row .nptcl-product-price { margin: 0; }
.nptcl-price-row--sm { gap: 6px 12px; margin: 4px 0 8px; }
.nptcl-stars { --s: 16px; position: relative; display: inline-block; width: calc(var(--s) * 5); height: var(--s); background: linear-gradient(90deg, var(--border, #ddd) 0 0); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.9 7.1.6-5.4 4.7 1.6 7L12 17.6 5.8 21.2l1.6-7L2 9.5l7.1-.6z'/%3E%3C/svg%3E") 0 0 / var(--s) var(--s) repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.9 7.1.6-5.4 4.7 1.6 7L12 17.6 5.8 21.2l1.6-7L2 9.5l7.1-.6z'/%3E%3C/svg%3E") 0 0 / var(--s) var(--s) repeat-x; vertical-align: -2px; }
.nptcl-stars > span { position: absolute; inset: 0 auto 0 0; background: #f5a623; }
.nptcl-rating { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--muted-foreground, #666); text-decoration: none; }
.nptcl-rating strong { color: var(--foreground, #111); }
.nptcl-rating:hover span { text-decoration: underline; }
.nptcl-block-title { font-size: 1.25rem; margin: 0 0 14px; }

.nptcl-scroller { list-style: none; margin: 0; padding: 2px 2px 10px; display: grid; grid-auto-flow: column; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; overscroll-behavior-x: contain; }
.nptcl-scroller > li { scroll-snap-align: start; }
.nptcl-cat-cards { margin: clamp(32px, 4vw, 48px) 0 0; }
.nptcl-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.nptcl-category-grid > li { min-width: 0; }
.nptcl-cat-card-body strong { overflow-wrap: anywhere; }
.nptcl-products-wrap { box-sizing: border-box; width: 100%; padding-top: 24px; }
.nptcl-products-wrap .nptcl-products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.nptcl-products-wrap .shop-card { min-width: 0; }
.nptcl-pagination { margin: 28px 0; }
.nptcl-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0; }
.nptcl-pagination a.page-numbers, .nptcl-pagination span.page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; padding: 8px 12px; box-sizing: border-box; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 6px; text-decoration: none; color: inherit; }
.nptcl-pagination span.page-numbers.current { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }
.nptcl-pagination a.page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.nptcl-pagination a:focus-visible, .nptcl-cat-card a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.nptcl-cat-card a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--border, #e5e5e5); border-radius: 8px; overflow: hidden; color: inherit; text-decoration: none; background: var(--card, #fff); transition: transform .2s, box-shadow .2s, border-color .2s; }
.nptcl-cat-card a:hover, .nptcl-cat-card.is-current a { border-color: var(--primary, #111); }
.nptcl-cat-card a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(0,0,0,.35); }
.nptcl-cat-card-media { display: block; aspect-ratio: 4 / 3; background: var(--surface, #f4f4f4); }
.nptcl-cat-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nptcl-cat-card-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; }
.nptcl-cat-card-body strong { font-size: 1rem; line-height: 1.4; letter-spacing: 0; }
.nptcl-cat-card-body small { color: var(--muted-foreground, #777); }

/* Compact category tiles only: brand cards and product galleries stay unchanged. */
.nptcl-category-card a { box-shadow: none; }
.nptcl-category-card a:hover { box-shadow: none; }
.nptcl-category-card .nptcl-cat-card-media { height: 104px; aspect-ratio: auto; overflow: hidden; background: var(--surface, var(--muted, var(--card))); }
.nptcl-category-card .nptcl-cat-card-media img { object-position: center; }
.nptcl-category-card .nptcl-cat-card-media--empty { display: grid; place-items: center; }
.nptcl-category-placeholder { color: var(--muted-foreground); opacity: .65; }
.nptcl-category-card .nptcl-cat-card-body { align-items: center; justify-content: center; text-align: center; gap: 4px; min-height: 76px; padding: 10px 12px; box-sizing: border-box; }
.nptcl-category-card .nptcl-cat-card-body strong { font-size: .95rem; line-height: 1.35; }
.nptcl-category-card .nptcl-cat-card-body small { font-size: .78rem; line-height: 1.4; }
@media (max-width: 767px) {
  .nptcl-category-card .nptcl-cat-card-media { height: 88px; }
  .nptcl-category-card .nptcl-cat-card-body { min-height: 72px; padding: 9px 10px; }
}
@media (max-width: 359px) { .nptcl-cat-cards .nptcl-category-grid { grid-template-columns: minmax(0, 1fr); } }

.nptcl-tabs { margin: clamp(32px, 4vw, 48px) 0; }
.nptcl-tablist { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--border, #e5e5e5); scrollbar-width: none; }
.nptcl-tablist button { flex: none; appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 12px 18px; font: inherit; font-weight: 600; color: var(--muted-foreground, #777); cursor: pointer; }
.nptcl-tablist button:hover { color: var(--foreground, #111); }
.nptcl-tablist button[aria-selected="true"] { color: var(--foreground, #111); border-bottom-color: var(--primary, #111); }
.nptcl-tablist button:focus-visible { outline: 2px solid var(--primary, #111); outline-offset: -2px; }
.nptcl-tabpanel { padding: 24px 0 0; max-width: 960px; }
.nptcl-tabpanel.entry-content img { max-width: 100%; height: auto; border-radius: var(--radius, 12px); }

.nptcl-review-summary { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.nptcl-review-summary .nptcl-stars { --s: 20px; }
.nptcl-review-summary p { margin: 4px 0 0; }
.nptcl-review-avg { font-size: 2.6rem; line-height: 1; font-family: var(--font-display, inherit); }
.nptcl-review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.nptcl-review { border: 1px solid var(--border, #e5e5e5); border-radius: var(--radius, 12px); padding: 16px 18px; }
.nptcl-review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.nptcl-review p { margin: 8px 0 0; }
.nptcl-review-meta { font-size: .85rem; }

.nptcl-related { margin-top: clamp(32px, 4vw, 56px); }
.nptcl-related-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.nptcl-related-head .nptcl-block-title { min-width: 0; overflow-wrap: anywhere; }
.nptcl-scroll-nav { display: flex; gap: 8px; }
.nptcl-scroll-nav button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border, #ddd); background: var(--card, #fff); color: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.nptcl-scroll-nav button:hover { border-color: var(--primary, #111); }
.nptcl-scroll-nav button:disabled { opacity: .35; cursor: default; }
ul.nptcl-related-row.shop-grid { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4); }
@media (max-width: 1024px) { ul.nptcl-related-row.shop-grid { grid-auto-columns: calc((100% - 32px) / 3); } }
@media (max-width: 1024px) { .nptcl-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .nptcl-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 359px) { .nptcl-category-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .nptcl-products-wrap .nptcl-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { ul.nptcl-related-row.shop-grid { grid-auto-columns: 72%; } }
@media (max-width: 420px) { .nptcl-products-wrap .nptcl-products-grid { grid-template-columns: minmax(0, 1fr); } .nptcl-category-grid { gap: 12px; } .nptcl-cat-card-body { padding: 10px; } }

/* Cover the original creator-kit frames too when the theme supplies fallback
   items. Keep its dimensions and layout; detail galleries still use contain. */
.home #products .product-media img { object-fit: cover; object-position: center; }

/* Only plugin-selected homepage products; original theme content is untouched. */
.nptcl-home-products #products .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nptcl-home-products #products .product,
.nptcl-home-products #products .product.feature { min-width: 0; grid-column: auto; flex-direction: column; }
.nptcl-home-products #products .product .product-media { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; flex: none; border: 0; border-radius: 0; }
.nptcl-home-products #products .product-media a { display: block; width: 100%; height: 100%; }
.nptcl-home-products #products .product .product-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-height: 0; max-width: none; object-fit: cover; object-position: center; transition: transform .35s ease; }
.nptcl-home-products #products .product:hover .product-media img { transform: scale(1.025); }
.nptcl-home-products #products .product-body { min-width: 0; padding: 20px; gap: 12px; }
.nptcl-home-products #products .product-body h3,
.nptcl-home-products #products .product-body p { overflow-wrap: anywhere; }
.nptcl-home-products #products .specs { margin-top: 0; }
.nptcl-home-products #products .product:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; align-items: center; }
.nptcl-home-products #products .product:last-child:nth-child(odd) .product-media { width: 50%; }
.nptcl-home-products #products .product-eyebrow { font-size: .72rem; letter-spacing: 0; text-transform: uppercase; color: var(--muted-foreground); margin: 0 0 6px; }
.nptcl-home-products #products .product-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.nptcl-home-products #products .product-meta .price { font-weight: 700; font-size: 1.1rem; }
.nptcl-home-products #products .product-meta .price del { color: var(--muted-foreground); font-weight: 500; margin-right: 4px; }
.nptcl-home-products #products .product-meta .price ins { text-decoration: none; }
.nptcl-home-products #products .product-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0; }
@media (max-width: 900px) {
  .nptcl-home-products #products .products { grid-template-columns: minmax(0, 1fr); }
  .nptcl-home-products #products .product:last-child:nth-child(odd) { flex-direction: column; }
  .nptcl-home-products #products .product .product-media,
  .nptcl-home-products #products .product:last-child:nth-child(odd) .product-media { width: 100%; aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .nptcl-home-products #products .product .product-media img { transition: none; transform: none; }
}

/* Catalog state controls remain inside the plugin's own pages. */
.nptcl-catalog { scroll-margin-top: 100px; }
.nptcl-catalog-status { text-align: center; margin: 20px 0 12px; color: var(--muted-foreground); }
.nptcl-catalog-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; margin: 0 0 24px; }
.nptcl-catalog-controls label { display: grid; gap: 6px; min-width: 0; font-size: .9rem; }
.nptcl-catalog-controls input, .nptcl-catalog-controls select { width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); color: var(--foreground); font: inherit; }
.nptcl-catalog-controls button { min-height: 44px; }
.nptcl-catalog-controls :focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
@media (max-width: 767px) { .nptcl-catalog-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 359px) { .nptcl-catalog-controls { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .nptcl-cat-card a { transition: none; } .nptcl-cat-card a:hover { transform: none; } }

/* v2.0 — brands and breadcrumbs */
.nptcl-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; font-size: .9rem; color: var(--muted-foreground, #666); }
.nptcl-breadcrumbs li + li::before { content: "›"; margin-right: 6px; }
.nptcl-breadcrumbs a { color: inherit; text-decoration: none; } .nptcl-breadcrumbs a:hover { color: var(--primary, #111); }
.nptcl-brand-filter small { opacity: .65; }
.nptcl-filter-logo { border-radius: 4px; object-fit: contain; background: var(--card, #fff); }
.nptcl-brand-head { display: flex; align-items: center; gap: 18px; }
.nptcl-brand-logo { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--border, #e5e5e5); border-radius: 8px; background: var(--card, #fff); padding: 6px; box-sizing: border-box; }
.nptcl-brand-card a, .nptcl-brand-card a:hover { box-shadow: none; }
.nptcl-brand-card-media { display: flex; align-items: center; justify-content: center; min-height: 104px; min-width: 0; aspect-ratio: auto; box-sizing: border-box; }
.nptcl-brand-card-media img { height: 104px; object-fit: contain !important; padding: 14px 20px; box-sizing: border-box; }
.nptcl-brand-name { display: block; max-width: 100%; padding: 12px; box-sizing: border-box; text-align: center; overflow-wrap: anywhere; font-size: 1rem; line-height: 1.35; font-weight: 700; letter-spacing: 0; color: var(--foreground); }
.nptcl-brand-card .nptcl-cat-card-body { align-items: center; justify-content: center; text-align: center; gap: 4px; min-height: 64px; padding: 9px 12px; box-sizing: border-box; }
.nptcl-brand-card .nptcl-cat-card-body strong { font-size: .95rem; line-height: 1.35; }
.nptcl-brand-card .nptcl-cat-card-body small { font-size: .78rem; line-height: 1.4; }
@media (max-width: 767px) {
  .nptcl-brand-card-media { min-height: 88px; }
  .nptcl-brand-card-media img { height: 88px; padding: 12px 16px; }
  .nptcl-brand-card .nptcl-cat-card-body { padding: 8px 10px; }
}
.nptcl-brand-cards { margin-top: 32px; }
.nptcl-card-brand { margin: 0 0 2px; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-foreground, #777); }
.nptcl-product-brand { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; color: var(--muted-foreground, #666); margin-bottom: 6px; }
.nptcl-product-brand img { width: 24px; height: 24px; object-fit: contain; }
.nptcl-product-sku { font-size: .85rem; margin-top: 14px; }
.nptcl-catalog-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 0 0 22px; }
.nptcl-catalog-controls label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; }
@media (max-width: 1024px) { .nptcl-products-wrap .nptcl-products-grid, .nptcl-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) { .nptcl-products-wrap .nptcl-products-grid, .nptcl-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.nptcl-review-images { display:flex; flex-wrap:wrap; gap:12px; margin-top:12px; }
.nptcl-review-images img { width:140px; height:140px; object-fit:cover; border-radius:6px; max-width:100%; }
.nptcl-testimonials { margin-block:40px; }
.nptcl-testimonials .nptcl-review-list { grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); }
.nptcl-testimonials .nptcl-review { min-width:0; overflow-wrap:anywhere; }

/* Variant switch buttons */
.nptcl-variants{display:grid;gap:14px;margin:18px 0}
.nptcl-variant-name{margin:0 0 8px;font-size:.92rem}
.nptcl-variant-opts{display:flex;flex-wrap:wrap;gap:8px}
.nptcl-variant-opt{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:6px 14px;border:1px solid rgba(0,0,0,.18);border-radius:8px;text-decoration:none;color:inherit;font-size:.9rem;line-height:1.2;transition:border-color .15s,box-shadow .15s}
.nptcl-variant-opt:hover{border-color:currentColor}
.nptcl-variant-opt.is-active{border-color:currentColor;box-shadow:0 0 0 1px currentColor;font-weight:600}
.nptcl-variant-opt.has-swatch{width:56px;height:56px;padding:3px}
.nptcl-variant-opt.has-swatch img{width:100%;height:100%;object-fit:cover;border-radius:5px}

/* Compact plugin cards only; the homepage and detail gallery keep their layout. */
.nptcl-product-card.shop-card { display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: hidden; height: 100%; border-radius: 8px; }
/* Shared non-home cards: catalog, related, shortcodes, post blocks and 404.
   A square frame preserves every edge of both images without changing URLs. */
.nptcl-product-card .shop-card-media { position: relative; display: block; flex: none; aspect-ratio: 1 / 1; height: auto; padding: 0; overflow: hidden; background: var(--card); }
.nptcl-product-card .shop-card-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-height: none; object-fit: contain; object-position: center !important; transform: none; }
.nptcl-product-card .shop-card-body { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 5px; padding: 12px; }
.nptcl-product-card .nptcl-card-brand { margin: 0; font-size: .7rem; line-height: 1.3; letter-spacing: 0; overflow-wrap: anywhere; }
.nptcl-product-card .shop-card-body h2 { margin: 0; font-size: 1rem; line-height: 1.35; letter-spacing: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.nptcl-product-card .shop-card-sub { margin: 0; font-size: .8rem; line-height: 1.4; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.nptcl-product-card .nptcl-price-row--sm { gap: 4px 8px; margin: 2px 0; }
.nptcl-product-card .shop-card-price { margin: 0; font-size: .95rem; line-height: 1.4; }
.nptcl-product-card .nptcl-rating { font-size: .78rem; gap: 4px; }
.nptcl-product-card .nptcl-stars { --s: 12px; }
.nptcl-product-card .shop-card-actions { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: auto; padding-top: 5px; }
.nptcl-product-card .shop-card-actions .btn { width: 100%; min-width: 0; min-height: 40px; box-sizing: border-box; padding: 8px; font-size: .85rem; line-height: 1.3; white-space: normal; text-align: center; }
@media (max-width: 767px) {
  .nptcl-product-card .shop-card-body { padding: 10px; gap: 4px; }
  .nptcl-product-card .shop-card-body h2 { font-size: .95rem; }
  .nptcl-product-card .shop-card-actions .btn { min-height: 44px; font-size: .8rem; }
}

/* Companion products sit outside the gallery's zoom and thumbnail controls. */
.nptcl-together { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); min-width: 0; }
.nptcl-together-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-bottom: 12px; }
.nptcl-together-head h2 { min-width: 0; margin: 0; font-size: 1rem; line-height: 1.4; letter-spacing: 0; overflow-wrap: anywhere; }
.nptcl-together-head .btn { min-height: 44px; max-width: 160px; padding: 8px 12px; white-space: normal; text-align: center; line-height: 1.35; }
.nptcl-together-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.nptcl-together-list li { min-width: 0; position: relative; }
.nptcl-together-list li + li::before { content: "+"; position: absolute; left: -10px; top: calc(50% - 1.6em); width: 10px; text-align: center; font-weight: 700; color: var(--muted-foreground, #888); pointer-events: none; }
.nptcl-together-item { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; }
.nptcl-together-media { display: block; width: 100%; aspect-ratio: 1 / 1; background: var(--card); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.nptcl-together-media img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center !important; transform: none; }
.nptcl-together-name { min-width: 0; font-size: .8rem; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nptcl-together-item:hover .nptcl-together-name { text-decoration: underline; }
.nptcl-together a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
@media (max-width: 479px) { .nptcl-together-list { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); } }
@media (max-width: 359px) { .nptcl-together-head { grid-template-columns: minmax(0, 1fr); } .nptcl-together-head .btn { justify-self: start; max-width: 100%; } }
