/* ==========================================================================
   Product layout: "plugins" category — marketplace single-product page.
   Loaded only for plugin-category products (see theme-core/assets-loader.php).
   Uses the global design tokens (global.css), so light/dark come for free.
   ========================================================================== */

.pws-plg {
	--plg-radius: 14px;
	--plg-radius-sm: 10px;
	--plg-gap: 26px;
	--plg-card: var(--bg-elev, #fff);

	max-width: 1200px;
	margin: 0 auto;
	padding: 8px 20px 72px;
	color: var(--text-soft, #475569);
	font-family: var(--pws-font-family-base, 'Inter', system-ui, sans-serif);
	/* Contain the related carousel so it can never push the page wider than
	   the viewport (the track scrolls inside its own overflow). */
	overflow-x: hidden;
}
.pws-plg::before, .pws-plg::after { content: none; }

/* ---------- Breadcrumb --------------------------------------------------- */
.pws-plg__breadcrumb .woocommerce-breadcrumb {
	font-size: 13px; color: var(--text-mute, #64748b); margin: 6px 0 16px;
}
.pws-plg__breadcrumb a { color: var(--text-mute, #64748b); }
.pws-plg__breadcrumb a:hover { color: var(--brand, #7c3aed); }

/* ---------- Hero: title + meta row -------------------------------------- */
.pws-plg-hero { margin-bottom: 18px; }
.pws-plg-hero__title {
	font-family: var(--pws-font-family-heading, inherit);
	font-size: 42px; line-height: 1.18; font-weight: 800; letter-spacing: -0.01em;
	color: var(--text, #0f172a); margin: 0 0 12px;
}
.pws-plg-hero__meta {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
	font-size: 14px; color: var(--text-mute, #64748b);
}
.pws-plg-hero__meta-item { display: inline-flex; align-items: center; gap: 7px; }
.pws-plg-hero__meta-ico { font-size: 15px; line-height: 1; }
.pws-plg-hero__meta a { color: var(--text-mute, #64748b); }
.pws-plg-hero__meta a:hover { color: var(--brand, #7c3aed); }

/* ---------- Product card: gallery | detail ------------------------------ */
.pws-plg-card {
	display: grid; grid-template-columns: 42% 1fr; gap: 30px;
	background: var(--plg-card); border: 1px solid var(--border, #e2e8f0);
	border-radius: var(--plg-radius); box-shadow: var(--shadow);
	padding: 20px; margin-bottom: var(--plg-gap);
}
.pws-plg-card__media { min-width: 0; }
.pws-plg-card__detail { min-width: 0; display: flex; flex-direction: column; }
.pws-plg-card__subtitle { font-size: 15px; line-height: 1.6; color: var(--text-soft, #475569); margin-bottom: 14px; }
.pws-plg-card__subtitle p:last-child { margin-bottom: 0; }

/* Price + discount */
.pws-plg-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.pws-plg-card__price-now { font-size: 28px; font-weight: 800; color: var(--text, #0f172a); }
.pws-plg-card__price-now .woocommerce-Price-amount { font-size: inherit; }
.pws-plg-card__price-was { font-size: 17px; color: var(--text-mute, #64748b); }
.pws-plg-card__price-off { font-size: 14px; font-weight: 700; color: #16a34a; }

/* Facts table */
.pws-plg-facts { width: 100%; border-collapse: collapse; margin-bottom: 22px; border-top: 1px solid var(--border, #e2e8f0); }
.pws-plg-facts tr { border-bottom: 1px solid var(--border, #e2e8f0); }
.pws-plg-facts th, .pws-plg-facts td { padding: 11px 4px; font-size: 14px; vertical-align: middle; }
.pws-plg-facts th { text-align: left; font-weight: 500; color: var(--text-mute, #64748b); }
.pws-plg-facts td { text-align: right; font-weight: 600; color: var(--text, #0f172a); }
.pws-plg-facts td a { color: var(--brand, #7c3aed); }

/* Action buttons */
.pws-plg-card__actions { margin-top: auto; }
.pws-plg-card__form { display: flex; flex-direction: column; gap: 12px; }

.pws-btn {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center;
	width: 100%; box-sizing: border-box;
	padding: 14px 22px; border-radius: 999px;
	font-size: 15px; font-weight: 700; text-align: center;
	cursor: pointer; border: 1px solid transparent; text-decoration: none;
	transition: transform .06s ease, box-shadow .15s ease, background-color .2s ease, filter .15s ease;
}
.pws-btn:active { transform: translateY(1px); }

/* Add-to-cart animation: label ↔ spinner ↔ "✓ Added" */
.pws-btn__label { display: inline-flex; align-items: center; gap: 6px; transition: opacity .15s ease; }
.pws-btn__spinner {
	display: none; position: absolute; top: 50%; left: 50%;
	width: 18px; height: 18px; margin: -9px 0 0 -9px;
	border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%;
	animation: pws-spin .6s linear infinite;
}
.pws-btn.is-loading { cursor: default; }
.pws-btn.is-loading .pws-btn__label { opacity: 0; }
.pws-btn.is-loading .pws-btn__spinner { display: block; }
.pws-btn.is-added { animation: pws-pop .35s ease; }
.pws-btn--cart.is-added { background: #16a34a; }
.pws-btn.is-added .pws-btn__label::before { content: '✓'; font-weight: 800; }
@keyframes pws-spin { to { transform: rotate(360deg); } }
@keyframes pws-pop { 0% { transform: scale(.97); } 50% { transform: scale(1.03); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
	.pws-btn.is-added { animation: none; }
	.pws-btn__spinner { animation-duration: 1.2s; }
}
.pws-btn--cart { background: #22c55e; color: #fff; box-shadow: 0 8px 20px -10px rgba(34, 197, 94, .7); }
.pws-btn--cart:hover { background: #1eb257; color: #fff; }
.pws-btn--primary {
	background-image: linear-gradient(135deg, var(--pws-color-primary-dark, #6d28d9), var(--brand-2, #8b5cf6));
	color: #fff; box-shadow: 0 8px 20px -10px rgba(124, 58, 237, .7);
}
.pws-btn--primary:hover { filter: brightness(1.05); color: #fff; }
.pws-btn--ghost { background: transparent; color: var(--brand, #7c3aed); border-color: var(--brand, #7c3aed); }
.pws-btn--ghost:hover { background: var(--brand-soft, #f3effb); }
.pws-plg-buy__wc .button { width: 100%; }

/* ---------- Gallery (nested in the card) -------------------------------- */
.pws-plg-gallery { padding: 0; }
.pws-plg-gallery__stage {
	position: relative; margin: 0; border-radius: var(--plg-radius-sm);
	overflow: hidden; background: var(--bg-soft, #f8fafc); border: 1px solid var(--border, #e2e8f0);
}
.pws-plg-gallery__zoom { display: block; cursor: zoom-in; }
.pws-plg-gallery__main { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; transition: opacity .2s ease; }
.pws-plg-gallery__demo {
	position: absolute; left: 50%; bottom: 15%; transform: translateX(-50%);
	display: inline-flex; align-items: center; justify-content: center;
	padding: 12px 34px; border-radius: 999px; white-space: nowrap;
	background-image: linear-gradient(120deg, #46c8c4 0%, #58cf90 100%);
	color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .01em;
	border: 1px solid rgba(255, 255, 255, .55);
	box-shadow: 0 10px 24px -8px rgba(41, 173, 150, .6), inset 0 1px 0 rgba(255, 255, 255, .35);
	text-shadow: 0 1px 2px rgba(0, 0, 0, .12);
	transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
}
.pws-plg-gallery__demo:hover {
	color: #fff; filter: brightness(1.04);
	transform: translateX(-50%) translateY(-2px);
	box-shadow: 0 14px 30px -8px rgba(41, 173, 150, .7), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.pws-plg-gallery__thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.pws-plg-gallery__thumb-btn {
	display: block; width: 100%; padding: 0; cursor: pointer;
	border: 2px solid var(--border, #e2e8f0); border-radius: 8px; overflow: hidden;
	background: var(--bg-soft, #f8fafc); transition: border-color .15s ease;
}
.pws-plg-gallery__thumb.is-active .pws-plg-gallery__thumb-btn,
.pws-plg-gallery__thumb-btn:hover { border-color: var(--brand, #7c3aed); }
.pws-plg-gallery__thumb-btn img { display: block; width: 100%; height: 58px; object-fit: cover; }

/* ---------- Tabs -------------------------------------------------------- */
.pws-plg-tabs { margin-bottom: var(--plg-gap); }
.pws-plg-tabs__nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.pws-plg-tabs__btn {
	display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
	padding: 10px 20px; border-radius: 999px; border: 1px solid var(--border, #e2e8f0);
	background: var(--bg-soft, #f8fafc); color: var(--text-soft, #475569);
	font-size: 14px; font-weight: 600; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.pws-plg-tabs__btn:hover { border-color: var(--brand, #7c3aed); color: var(--brand, #7c3aed); }
.pws-plg-tabs__btn.is-active {
	background-image: linear-gradient(135deg, var(--pws-color-primary-dark, #6d28d9), var(--brand-2, #8b5cf6));
	color: #fff; border-color: transparent;
}
.pws-plg-tabs__ico { font-size: 15px; line-height: 1; }
.pws-plg-tabs__panels {
	background: var(--plg-card); border: 1px solid var(--border, #e2e8f0);
	border-radius: var(--plg-radius); box-shadow: var(--shadow); padding: 28px 30px;
}
.pws-plg-tabs__panel[hidden] { display: none; }

/* Rich text (description / more info / q&a) */
.pws-plg-richtext { font-size: 15px; line-height: 1.75; color: var(--text-soft, #475569); }
.pws-plg-richtext > :first-child { margin-top: 0; }
.pws-plg-richtext > :last-child { margin-bottom: 0; }
.pws-plg-richtext h1, .pws-plg-richtext h2, .pws-plg-richtext h3, .pws-plg-richtext h4 {
	color: var(--text, #0f172a); font-family: var(--pws-font-family-heading, inherit); line-height: 1.3; margin: 1.4em 0 .6em;
}
.pws-plg-richtext img { max-width: 100%; height: auto; border-radius: var(--plg-radius-sm); }
.pws-plg-richtext a { color: var(--brand, #7c3aed); }
.pws-plg-richtext ul, .pws-plg-richtext ol { padding-left: 1.3em; }
.pws-plg-richtext li { margin: .35em 0; }
.pws-plg-reviews__body { font-size: 14px; }

/* ---------- Trust cards (3) --------------------------------------------- */
.pws-plg-trust { margin-bottom: var(--plg-gap); }
.pws-plg-trust__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pws-plg-trust__card {
	background: var(--plg-card); border: 1px solid var(--border, #e2e8f0);
	border-radius: var(--plg-radius); box-shadow: var(--shadow);
	padding: 26px 22px; text-align: center;
	display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.pws-plg-trust__ico { display: inline-flex; line-height: 1; margin-bottom: 6px; }
.pws-plg-trust__ico--emoji { font-size: 34px; }
.pws-plg-trust__img { width: 72px; height: 72px; object-fit: contain; display: block; }
.pws-plg-trust__title { font-size: 16px; font-weight: 700; color: var(--text, #0f172a); }
.pws-plg-trust__text { font-size: 13.5px; color: var(--text-mute, #64748b); line-height: 1.55; max-width: 34ch; }

/* ---------- Related products carousel ----------------------------------- */
.pws-plg-related__wrap { margin-bottom: 8px; min-width: 0; }
.pws-plg-section__title { font-family: var(--pws-font-family-heading, inherit); font-size: 22px; font-weight: 700; color: var(--text, #0f172a); margin: 0; line-height: 1.2; }
.pws-plg-related__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.pws-plg-related__nav { display: flex; gap: 8px; }
.pws-plg-related__arrow {
	width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
	border: 1px solid var(--border, #e2e8f0); background: var(--plg-card);
	color: var(--text, #0f172a); font-size: 20px; line-height: 1;
	display: grid; place-items: center; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.pws-plg-related__arrow:hover { border-color: var(--brand, #7c3aed); background: var(--brand-soft, #f3effb); color: var(--brand, #7c3aed); }
.pws-plg-related__arrow[disabled] { opacity: .4; cursor: default; }

.pws-plg-related__track {
	list-style: none; margin: 0; padding: 4px; max-width: 100%;
	display: flex; gap: 18px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.pws-plg-related__track::-webkit-scrollbar { height: 8px; }
.pws-plg-related__track::-webkit-scrollbar-thumb { background: var(--border, #e2e8f0); border-radius: 8px; }

.pws-plg-rcard {
	flex: 0 0 220px; min-width: 0; scroll-snap-align: start; background: var(--plg-card);
	border: 1px solid var(--border, #e2e8f0); border-radius: var(--plg-radius);
	box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.pws-plg-rcard__media { position: relative; display: block; background: var(--bg-soft, #f8fafc); aspect-ratio: 4 / 3; overflow: hidden; }
.pws-plg-rcard__media img { width: 100%; height: 100%; object-fit: cover; }
.pws-plg-rcard__badge {
	position: absolute; top: 8px; right: 8px; z-index: 2;
	background: #c99a00; color: #fff; font-size: 11px; font-weight: 700;
	padding: 4px 9px; border-radius: 999px;
}
.pws-plg-rcard__body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.pws-plg-rcard__title { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--text, #0f172a); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pws-plg-rcard__title:hover { color: var(--brand, #7c3aed); }
.pws-plg-rcard__rating .star-rating { color: #f59e0b; font-size: 12px; margin: 0; }
.pws-plg-rcard__price { font-size: 15px; font-weight: 800; color: var(--text, #0f172a); margin-top: auto; }
.pws-plg-rcard__price del { color: var(--text-mute, #64748b); font-weight: 500; font-size: 12px; }
.pws-plg-rcard__price ins { text-decoration: none; }
.pws-plg-rcard__btn { padding: 10px 14px; font-size: 13px; }

/* ---------- Hero trust badges (under the facts table) ------------------- */
.pws-plg-badges {
	list-style: none; margin: 0 0 20px; padding: 0;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.pws-plg-badge {
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	text-align: center; padding: 12px 6px;
	border: 1px solid var(--border, #e2e8f0); border-radius: var(--plg-radius-sm);
	background: var(--bg-soft, #f8fafc);
}
.pws-plg-badge__ico { color: var(--brand, #7c3aed); display: inline-flex; }
.pws-plg-badge__ico svg { width: 22px; height: 22px; display: block; }
.pws-plg-badge__label { font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--text, #0f172a); }

/* ---------- What You'll Receive ----------------------------------------- */
.pws-plg-receive {
	margin-top: 18px; padding: 16px 18px;
	border: 1px solid var(--border, #e2e8f0); border-radius: var(--plg-radius-sm);
	background: var(--plg-card);
}
.pws-plg-receive__title {
	font-family: var(--pws-font-family-heading, inherit);
	font-size: 16px; font-weight: 700; color: var(--text, #0f172a); margin: 0 0 12px;
}
.pws-plg-receive__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.pws-plg-receive__item { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--text-soft, #475569); }
.pws-plg-receive__check { flex: 0 0 auto; color: #16a34a; display: inline-flex; margin-top: 1px; }
.pws-plg-receive__check svg { width: 17px; height: 17px; display: block; }

/* ---------- How It Works ------------------------------------------------ */
.pws-plg-how {
	margin-top: 16px; padding: 18px;
	border: 1px solid var(--border, #e2e8f0); border-radius: var(--plg-radius-sm);
	background: var(--plg-card);
}
.pws-plg-how__title {
	font-family: var(--pws-font-family-heading, inherit);
	font-size: 16px; font-weight: 700; color: var(--text, #0f172a); margin: 0 0 14px;
}
.pws-plg-how__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pws-plg-how__step { display: flex; gap: 12px; align-items: flex-start; }
.pws-plg-how__num {
	flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
	background-image: linear-gradient(135deg, var(--pws-color-primary-dark, #6d28d9), var(--brand-2, #8b5cf6));
	color: #fff; font-size: 13px; font-weight: 700;
	display: inline-flex; align-items: center; justify-content: center;
}
.pws-plg-how__body { min-width: 0; }
.pws-plg-how__step-title { display: block; font-size: 14px; font-weight: 700; color: var(--text, #0f172a); }
.pws-plg-how__step-text { display: block; font-size: 13px; color: var(--text-mute, #64748b); margin-top: 1px; }

/* ---------- Official Product FAQ (accordion) ---------------------------- */
.pws-faq { margin: 0 0 var(--plg-gap); }
.pws-faq__title {
	font-family: var(--pws-font-family-heading, inherit);
	font-size: 22px; font-weight: 800; letter-spacing: -0.01em;
	color: var(--text, #0f172a); margin: 0 0 16px;
}
.pws-faq__list { display: flex; flex-direction: column; gap: 12px; }
.pws-faq__item {
	background: var(--plg-card); border: 1px solid var(--border, #e2e8f0);
	border-radius: var(--plg-radius-sm); box-shadow: var(--shadow); overflow: hidden;
}
.pws-faq__heading { margin: 0; font: inherit; }
.pws-faq__trigger {
	width: 100%; box-sizing: border-box;
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	padding: 20px 18px; background: none; border: none; cursor: pointer; text-align: left;
	font-family: inherit; font-size: 15px; font-weight: 700; color: var(--text, #0f172a);
	transition: background-color .18s ease, color .18s ease;
}
.pws-faq__trigger:hover { color: var(--brand, #7c3aed); background: var(--pws-faq-hover, #faf7ff); }
.pws-faq__trigger:focus-visible { outline: 2px solid var(--brand, #7c3aed); outline-offset: -2px; }
.pws-faq__q-text { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
.pws-faq__q-label { min-width: 0; }
.pws-faq__badge {
	flex: 0 0 auto; font-size: 11px; font-weight: 700; letter-spacing: .02em;
	color: var(--brand, #7c3aed); background: var(--brand-soft, #f3effb);
	padding: 2px 9px; border-radius: 999px;
}
.pws-faq__chev { flex: 0 0 auto; color: var(--brand, #7c3aed); display: inline-flex; transition: transform .22s ease; }
.pws-faq__chev svg { width: 20px; height: 20px; display: block; }
.pws-faq__item.is-open .pws-faq__chev { transform: rotate(180deg); }

/* Collapsed by default; wp-theme-plugin.js animates max-height to the panel's
   real scrollHeight on open (then to 'none' so it adapts to reflow/resize). The
   <noscript> rule in the plugin markup forces panels open when JS is off. */
.pws-faq__panel { overflow: hidden; max-height: 0; transition: max-height .22s ease; }
.pws-faq__a { padding: 4px 20px 24px; color: var(--text-soft, #475569); font-size: 14px; line-height: 1.7; }
.pws-faq__a p:last-child { margin-bottom: 0; }
.pws-faq__a a { color: var(--brand, #7c3aed); }
@media (prefers-reduced-motion: reduce) { .pws-faq__panel, .pws-faq__chev, .pws-faq__trigger { transition: none; } }

/* Search (shown by the plugin only when there are many FAQs) */
.pws-faq__search { position: relative; margin-bottom: 14px; }
.pws-faq__search-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-mute, #64748b); display: inline-flex; }
.pws-faq__search-ico svg { width: 18px; height: 18px; display: block; }
.pws-faq__search-input {
	width: 100%; box-sizing: border-box; padding: 11px 14px 11px 42px;
	border: 1px solid var(--border, #e2e8f0); border-radius: var(--plg-radius-sm);
	background: var(--plg-card); color: var(--text, #0f172a); font-size: 14px; font-family: inherit;
}
.pws-faq__search-input:focus { outline: 2px solid var(--brand, #7c3aed); outline-offset: -1px; border-color: transparent; }
.pws-faq__item[hidden] { display: none; }
.pws-faq__noresults { color: var(--text-mute, #64748b); font-size: 14px; padding: 6px 2px 2px; }

/* Deep-link highlight: a purple ring that fades over ~2s when a #faq-<tag>
   link opens an item. box-shadow is painted outside the (overflow:hidden) box. */
.pws-faq__item.is-highlight { animation: pws-faq-flash 2s ease; }
@keyframes pws-faq-flash {
	0%   { box-shadow: 0 0 0 3px rgba(124, 58, 237, .55); }
	70%  { box-shadow: 0 0 0 3px rgba(124, 58, 237, .35); }
	100% { box-shadow: 0 0 0 3px rgba(124, 58, 237, 0); }
}
/* Keep the hover tint subtle in dark mode instead of a bright #faf7ff flash. */
@media (prefers-color-scheme: dark) { .pws-faq { --pws-faq-hover: rgba(124, 58, 237, .14); } }
@media (prefers-reduced-motion: reduce) { .pws-faq__item.is-highlight { animation: none; } }

/* ---------- Sticky purchase bar (desktop + mobile) ---------------------- */
.pws-plg-stickybar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
	display: none;
	padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px));
	background: var(--plg-card); border-top: 1px solid var(--border, #e2e8f0);
	box-shadow: 0 -10px 30px -12px rgba(23, 16, 43, .25);
}
.pws-plg-stickybar:not([hidden]) { display: block; }
.pws-plg-stickybar__inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
/* Two classes so this beats WooCommerce's `.woocommerce img { height:auto }`. */
.pws-plg-stickybar .pws-plg-stickybar__thumb { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 7px; object-fit: cover; border: 1px solid var(--border, #e2e8f0); }
.pws-plg-stickybar__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.pws-plg-stickybar__name { font-size: 14px; font-weight: 600; color: var(--text, #0f172a); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pws-plg-stickybar__price { font-size: 19px; font-weight: 800; color: var(--text, #0f172a); }
.pws-plg-stickybar__price del { display: none; }
.pws-plg-stickybar__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.pws-plg-stickybar__form { margin: 0; }
.pws-plg-stickybar__cart { width: auto; flex: 0 0 auto; padding: 12px 22px; }
.pws-plg-stickybar__buy { width: auto; flex: 0 0 auto; padding: 12px 26px; }

/* ---------- Lightbox ---------------------------------------------------- */
.pws-plg-lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(10, 8, 20, .82); padding: 24px; cursor: zoom-out; }
.pws-plg-lightbox.is-open { display: flex; }
.pws-plg-lightbox img { max-width: 92vw; max-height: 90vh; border-radius: var(--plg-radius-sm); box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }

/* ---------- Responsive -------------------------------------------------- */
@media (max-width: 992px) {
	.pws-plg-hero__title { font-size: 30px; }
}

@media (max-width: 900px) {
	.pws-plg-card { grid-template-columns: 1fr; gap: 22px; }
	.pws-plg-trust__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
	.pws-plg { padding: 8px 16px 96px; }
	.pws-plg-hero__title { font-size: 24px; }
	.pws-plg-tabs__panels { padding: 22px 18px; }
	.pws-plg-rcard { flex-basis: 72%; }
	.pws-plg-related__nav { display: none !important; }
	.pws-plg-badges { grid-template-columns: repeat(2, 1fr); }
	/* Compact mobile bar: thumb + price + Buy Now (drop only the Add-to-Cart). */
	.pws-plg-stickybar__form { display: none; }
}

@media (max-width: 420px) {
	.pws-plg-gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
}
