/* ==========================================================================
   RisingStar Shop Stylesheet (consolidated 2026-08-13)
   --------------------------------------------------------------------------
   Single source for ALL shop/WooCommerce styling. Merged from:
     - shop-blocks.css   (shop archive + product taxonomy grid)
     - product-detail.css (single product page)
     - global.css CTA banner block (.rs-cta-*)   [shop-only, rendered on
       woocommerce/archive-product.php + content-single-product.php]
     - global.css .rs-thumb-card:hover           [header mega thumbnail]

   Shared components (header / footer / mini-cart / mega menu / design tokens)
   now live in shared-core.css, which shop pages also load. Only shop-unique
   rules belong here. global.css has been retired.
   ========================================================================== */



/* ==========================================================================
   RisingStar Shop — classic archive (adapted from F:\0807\shoplist.html)
   Loaded only on shop archive + product taxonomy pages. Replaces the old
   WooCommerce-Blocks card styling. Shop-unique; shared components/tokens live
   in shared-core.css (also enqueued on shop). Global.css has been retired.
   ========================================================================== */

.rs-shop-main {
	max-width: 1440px;
	margin: 0 auto;
	padding: 48px 24px 64px;
	box-sizing: border-box;
}

/* ---------- HERO ---------- */
.rs-shop-hero {
	display: flex;
	flex-direction: column;
	gap: 24px;
	background: #ffffff;
	border: 1px solid #DFE1E6;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
	margin-bottom: 48px;
	/* Matches the F:\0807\shoplist.html hero entrance: drop-in with a soft
	   bounce. Unconditional (load-time), no JS gate needed. */
	animation: heroDrop 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes heroDrop {
	0%   { opacity: 0; transform: translateY(-120vh); }
	45%  { opacity: 1; transform: translateY(0); }
	60%  { transform: translateY(-28px); }
	75%  { transform: translateY(0); }
	86%  { transform: translateY(-12px); }
	100% { opacity: 1; transform: translateY(0); }
}
@media (min-width: 1024px) {
	.rs-shop-hero {
		flex-direction: row;
		align-items: stretch;
	}
}
.rs-shop-hero-text {
	padding: 48px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 1 1 50%;
	box-sizing: border-box;
}
.rs-shop-hero-title {
	font-size: 48px;
	line-height: 56px;
	letter-spacing: -0.02em;
	font-weight: 700;
	color: #191c1e;
	margin: 0 0 16px;
}
.rs-shop-hero-desc {
	font-size: 18px;
	line-height: 28px;
	color: #434654;
	margin: 0 0 48px;
	max-width: 640px;
}
.rs-shop-hero-cta {
	align-self: flex-start;
	background: #0a0a0a;
	color: #ffffff;
	padding: 12px 28px;
	border-radius: 9999px;
	font-weight: 600;
	font-size: 14px;
	transition: background 0.3s ease;
	box-shadow: 0 4px 14px -6px rgba(10, 10, 10, 0.35);
}
.rs-shop-hero-cta:hover {
	background: #1a1a1a;
	color: #ffffff;
}
.rs-shop-hero-media {
	flex: 1 1 50%;
	min-height: 320px;
	position: relative;
	background: #F4F5F7;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
	box-sizing: border-box;
}
@media (min-width: 1024px) {
	.rs-shop-hero-media {
		min-height: 480px;
	}
}
.rs-shop-hero-media img {
	max-width: 85%;
	max-height: 85%;
	object-fit: contain;
}
.rs-shop-hero-ph {
	width: 70%;
	height: 70%;
	background: #e7e8ea;
	border-radius: 12px;
}

/* ---------- PAGE HEADER + SORT ---------- */
.rs-shop-header {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 48px;
}
@media (min-width: 768px) {
	.rs-shop-header {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
	}
}
.rs-shop-section-title {
	font-size: 32px;
	line-height: 40px;
	letter-spacing: -0.01em;
	font-weight: 600;
	color: #191c1e;
	margin: 0 0 8px;
}
.rs-shop-section-desc {
	font-size: 18px;
	line-height: 28px;
	color: #434654;
	margin: 0;
	max-width: 720px;
}

/* ---------- SORT DROPDOWN ---------- */
.rs-sort-wrap {
	position: relative;
	flex-shrink: 0;
}
.rs-sort-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 1px solid #c3c6d6;
	border-radius: 9999px;
	background: #f8f9fb;
	color: #434654;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease;
}
.rs-sort-toggle:hover {
	border-color: #2563eb;
	color: #2563eb;
}
.rs-sort-ico {
	display: inline-flex;
	width: 18px;
	height: 18px;
	color: inherit;
}
.rs-sort-toggle .rs-sort-ico svg {
	width: 18px;
	height: 18px;
	display: block;
}
.rs-sort-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 50;
	min-width: 220px;
	background: #ffffff;
	border: 1px solid #E5E7EB;
	border-radius: 14px;
	box-shadow: 0 20px 48px -12px rgba(9, 30, 66, 0.18);
	padding: 6px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.rs-sort-menu.open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.rs-sort-option {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 9px 12px;
	font-size: 13px;
	font-weight: 600;
	color: #434654;
	background: none;
	border: none;
	border-radius: 9px;
	cursor: pointer;
	text-align: left;
	transition: background 0.15s, color 0.15s;
}
.rs-sort-option:hover {
	background: #f3f4f6;
}
.rs-sort-option.active {
	color: #2563eb;
	background: #eff6ff;
}
.rs-sort-option-ico {
	display: inline-flex;
	width: 18px;
	height: 18px;
	opacity: 0.6;
}
.rs-sort-option-ico svg {
	width: 18px;
	height: 18px;
	display: block;
}
.rs-sort-option.active .rs-sort-option-ico {
	opacity: 1;
}

/* ---------- PRODUCT GRID ---------- */
.rs-shop-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}
@media (min-width: 640px) {
	.rs-shop-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width: 1024px) {
	.rs-shop-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* ---------- PRODUCT CARD ---------- */
.rs-shop-card {
	position: relative;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid #DFE1E6;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.35s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.35s ease;
}
.rs-shop-card:hover {
	box-shadow: 0 18px 46px -18px rgba(10, 10, 10, 0.2);
	border-color: #c3c6d6;
}

/* Entrance (JS adds .is-visible via IntersectionObserver). Gated by .js-anim
   so cards stay visible if JS is disabled. */
.js-anim .rs-shop-grid .product-card {
	opacity: 0;
	transform: translateX(-40px);
	transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1), transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.js-anim .rs-shop-grid .product-card.is-visible {
	opacity: 1;
	transform: translateX(0);
}

/* Media area */
.rs-shop-card-media {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #F4F5F7;
	padding: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	transition: background 0.35s ease;
}
.rs-shop-card:hover .rs-shop-card-media {
	background: #EFF6FF;
}
.rs-shop-card-media-link {
	display: block;
	width: 100%;
	height: 100%;
}
.rs-shop-card-media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Add-to-cart button - SHARED by the homepage product cards, the /shop/
   archive grid, and any .rs-shop-atc. Black pill by default; green pill +
   floating check badge once in cart. Text rolls up on hover like the
   "View Details" CTA, but the cart icon stays still (no rotate/roll). */
.rs-shop-atc {
	position: relative;
	left: auto;
	right: auto;
	bottom: auto;
	top: auto;
	transform: none;
	opacity: 1;
	width: auto;
	max-width: 100%;
	height: auto;
	padding: 10px 24px;
	border-radius: 9999px;
	background: #0a0a0a;
	color: #ffffff;
	border: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 2px 8px -4px rgba(10, 10, 10, 0.3);
	align-self: center;
	margin: 0 auto;
	transition: background-color 0.25s ease, transform 0.15s ease;
}
.rs-shop-atc:hover { background: #1a1a1a; }
.rs-shop-atc:active { transform: scale(0.98); }
.rs-shop-atc-icon {
	width: 18px;
	height: 18px;
	display: block;
	fill: currentColor;
	transition: none;
}
.rs-shop-atc .play-txt {
	font-weight: 600;
}
/* Text roll-up on hover (like "View Details"); icon stays still */
.rs-shop-atc:hover .play-txt > span {
	transform: translateY(-1.5em);
}
/* In-cart: green pill + floating check badge (matches detail page) */
.rs-shop-atc.in-cart {
	position: relative;
	left: auto;
	right: auto;
	bottom: auto;
	top: auto;
	transform: none;
	width: auto;
	max-width: 100%;
	height: auto;
	padding: 10px 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #3b7a57;
	box-shadow: 0 2px 8px -4px rgba(59, 122, 87, 0.4);
}
.rs-shop-atc.in-cart:hover { background: #35624a; }
.rs-shop-atc.in-cart::after {
	content: '';
	position: absolute;
	top: -6px;
	right: -6px;
	width: 20px;
	height: 20px;
	background-color: #10b981;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 13px;
	border: 2px solid #ffffff;
	border-radius: 9999px;
	box-sizing: border-box;
}
/* Brief "added" flash on click (same green as in-cart) */
.rs-shop-atc.added {
	background: #3b7a57;
}
.rs-shop-atc.added .rs-shop-atc-icon {
	transform: scale(1.25);
	transition: transform 0.2s ease;
}
/* Safety net: hide WooCommerce's injected "View cart" link inside cards
   (the Mini Cart drawer opens via the unified add-to-cart flow). */
.rs-shop-card-foot a.added_to_cart {
	display: none !important;
}


/* Body */
.rs-shop-card-body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	box-sizing: border-box;
}
.rs-shop-card-title {
	font-size: 20px;
	line-height: 28px;
	font-weight: 600;
	color: #191c1e;
	margin: 0 0 8px;
}
.rs-shop-card-title a {
	color: inherit;
	text-decoration: none;
}
.rs-shop-card-title a:hover {
	color: #191c1e;
}
.rs-shop-card-specs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: auto;
}
.rs-shop-card-meta {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: auto;
}
.rs-shop-card-price {
	font-size: 20px;
	line-height: 1.1;
	font-weight: 600;
	color: #191c1e;
	flex: 0 0 auto;
}
.rs-shop-card-meta .rs-shop-card-specs {
	margin-bottom: 0;
}
.rs-chip {
	padding: 2px 8px;
	background: #f3f4f6;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
	color: #434654;
	letter-spacing: -0.01em;
	white-space: nowrap;
	transition: background-color 0.35s ease;
}
/* Spec chips tint to light blue when the card is hovered (matches shoplist.html
   design: .product-card:hover .bg-surface-container-low { background:#EFF6FF }) */
.rs-shop-card:hover .rs-chip {
	background: #EFF6FF;
}
.rs-chip-sep {
	color: #c3c6d6;
	align-self: center;
}
.rs-shop-card-foot {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid #e7e8ea;
	display: flex;
	flex-direction: column;
	align-items: center;
}
/* Inline arrow SVG (matches shoplist.html design: 14px). Without an explicit
   size the inline <svg> collapses and the arrow disappears. */
.play-ico svg {
	width: 14px;
	height: 14px;
	display: block;
}
.rs-shop-view-details {
	align-self: center;
	padding: 10px 24px;
	border-radius: 9999px;
	background: #0a0a0a;
	color: #ffffff;
	font-weight: 600;
	font-size: 14px;
	transition: background 0.3s ease;
	box-shadow: 0 2px 8px -4px rgba(10, 10, 10, 0.3);
}
.rs-shop-view-details:hover {
	background: #1a1a1a;
	color: #ffffff;
}

.rs-shop-empty {
	color: #6b7280;
	font-size: 16px;
	padding: 40px 0;
}

/* ---------- PAGINATION ---------- */
.rs-shop-pagination {
	margin: 48px 0 0;
	display: flex;
	justify-content: center;
}
.rs-shop-pagination .nav-links {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}
.rs-shop-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	background: #ffffff;
	color: #4b5563;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
}
.rs-shop-pagination .page-numbers.current {
	background: #0a0a0a;
	border-color: #0a0a0a;
	color: #ffffff;
}
.rs-shop-pagination .page-numbers:not(.current):hover {
	border-color: #2563eb;
	color: #2563eb;
}

/* ---------- TOAST (added-to-cart confirmation) ---------- */
.rs-cart-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	transform: translate(-50%, 16px);
	opacity: 0;
	pointer-events: none;
	z-index: 60;
	display: flex;
	align-items: center;
	gap: 10px;
	background: #091E42;
	color: #ffffff;
	padding: 12px 20px;
	border-radius: 9999px;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 16px 40px -10px rgba(9, 30, 66, 0.5);
	transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.rs-cart-toast.show {
	opacity: 1;
	transform: translate(-50%, 0);
}
.rs-cart-toast svg {
	width: 18px;
	height: 18px;
	display: block;
}


/* ==========================================================================
   RisingStar Product Detail Page Styles
   Matches design: product-detail-rs280.html
   All styles scoped under .rs-product to avoid theme conflicts.
   ========================================================================== */

/* --- CSS Variables (Tailwind color equivalents) --- */
:root {
	/* Radius + layout tokens unique to the product page. Color tokens are
	   inherited from shared-core.css :root (the single source of truth;
	   global.css was retired and merged into shared-core.css on 2026-08-13). */
	--rs-radius-xl: 0.75rem;
	--rs-radius-2xl: 1rem;
	--rs-radius-lg: 0.5rem;
	--rs-max-width: 1440px;
}

/* --- Reset within product page --- */
.rs-product {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: var(--rs-gray-900);
	line-height: 1.6;
	box-sizing: border-box;
}

.rs-product *,
.rs-product *::before,
.rs-product *::after {
	box-sizing: border-box;
}

/* NOTE: Do NOT blanket-reset margins on p/h1/h2/h3 here.
   That rule has higher specificity than the component classes below and would
   silently override their intentional margins (e.g. .rs-section-title
   margin-bottom, .rs-cta-desc centering). Each component sets its own
   margin; inner paragraphs that need zero margin are handled explicitly where used. */

/* .rs-container is defined once in shared-core.css (global.css was retired and
   merged into shared-core.css on 2026-08-13). This block ONLY overrides its
   desktop padding for the product-detail / CTA-banner context. Do NOT re-define
   .rs-container here — keep the single source in shared-core.css. */
@media (min-width: 1024px) {
	.rs-container { padding: 0 2rem; }
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.rs-breadcrumb {
	background: var(--rs-gray-50);
	border-bottom: 1px solid var(--rs-gray-100);
}

.rs-breadcrumb-inner {
	max-width: var(--rs-max-width);
	margin: 0 auto;
	padding: 0.75rem 1rem;
	display: flex;
	align-items: center;
	font-size: 0.875rem;
	color: var(--rs-gray-500);
	gap: 0.5rem;
	flex-wrap: wrap;
}

@media (min-width: 640px) {
	.rs-breadcrumb-inner { padding: 0.75rem 1.5rem; }
}
@media (min-width: 1024px) {
	.rs-breadcrumb-inner { padding: 0.75rem 2rem; }
}

.rs-breadcrumb a {
	color: var(--rs-gray-500);
	text-decoration: none;
	transition: color 0.3s;
}

.rs-breadcrumb a:hover {
	color: var(--rs-blue-600);
}

.rs-breadcrumb-sep {
	color: var(--rs-gray-500);
}

/* ==========================================================================
   SECTION 1: PRODUCT DETAIL
   ========================================================================== */
.rs-pd-section {
	padding: 3rem 0;
}

@media (min-width: 1024px) {
	.rs-pd-section { padding: 5rem 0; }
}

.rs-pd-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
}

@media (min-width: 1024px) {
	.rs-pd-grid {
		grid-template-columns: 1fr 1fr;
		gap: 5rem;
	}
}

/* --- Images --- */
.rs-pd-main-image {
	background: var(--rs-gray-50);
	border-radius: var(--rs-radius-2xl);
	overflow: hidden;
	margin-bottom: 1rem;
	min-height: 380px;              /* design: min-h-[380px]; flexible height avoids a forced square + side gaps */
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--rs-gray-100);
	padding: 1.5rem;
}

.rs-pd-main-image img {
	max-width: 100%;
	max-height: 520px;              /* design: max-h-[520px] */
	width: auto;
	height: auto;
	object-fit: contain;
}

.rs-pd-thumbs {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.75rem;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: thin;
	scrollbar-color: var(--rs-gray-300) transparent;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 0.25rem;
}

/* Thin scrollbar for Webkit browsers */
.rs-pd-thumbs::-webkit-scrollbar {
	height: 4px;
}
.rs-pd-thumbs::-webkit-scrollbar-track {
	background: transparent;
}
.rs-pd-thumbs::-webkit-scrollbar-thumb {
	background: var(--rs-gray-300);
	border-radius: 2px;
}
.rs-pd-thumbs::-webkit-scrollbar-thumb:hover {
	background: var(--rs-gray-400);
}

.rs-pd-thumb {
	flex: 0 0 auto;
	width: 84px;
	height: 84px;
	background: var(--rs-gray-50);
	border-radius: var(--rs-radius-lg);
	overflow: hidden;
	border: 2px solid var(--rs-gray-200);
	padding: 0.4rem;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	outline: none;
}

.rs-pd-thumb:hover {
	border-color: var(--rs-gray-400);
}

.rs-pd-thumb:focus,
.rs-pd-thumb:focus-visible {
	outline: none;
	border-color: var(--rs-gray-400);
}

.rs-pd-thumb.rs-thumb-active {
	border-color: var(--rs-gray-900);
	box-shadow: 0 2px 6px rgba(17, 24, 39, 0.12);
}

.rs-pd-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Mobile tuning for the product hero (design: image fills width, CTAs stacked + contained) */
@media (max-width: 767px) {
	.rs-pd-main-image { min-height: 240px; padding: 1rem; }
	.rs-pd-thumb { width: 60px; height: 60px; }
	.rs-pd-ctas .cta-play { width: 100%; }
}

/* --- Info --- */
.rs-pd-badges {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin-bottom: 0.875rem;
	flex-wrap: wrap;
}

.rs-badge {
	display: inline-flex;
	align-items: center;
	font-size: 0.75rem;
	padding: 0.3125rem 0.75rem;
	border-radius: 9999px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.01em;
	border: 1px solid transparent;
}

.rs-badge-blue {
	background: var(--rs-blue-50);
	color: var(--rs-blue-700);
	border-color: var(--rs-blue-100);
}

.rs-badge-gray {
	background: var(--rs-gray-100);
	color: var(--rs-gray-700);
	border-color: var(--rs-gray-200);
}

.rs-pd-title {
	font-size: 2.125rem;
	font-weight: 800;
	color: var(--rs-gray-900);
	margin-bottom: 1rem;
	line-height: 1.12;
	letter-spacing: -0.02em;
}

@media (min-width: 1024px) {
	.rs-pd-title { font-size: 2.625rem; }
}

/* --- Price / Quote block --- */
.rs-pd-pricing {
	margin-bottom: 1.75rem;
}

.rs-price-box {
	display: inline-flex;
	flex-direction: row-reverse;
	align-items: baseline;
	gap: 1rem;
	padding: 1rem 0;
}
.rs-price-box .woocommerce-Price-amount {
	font-size: 2rem !important;
	font-weight: 900 !important;
	color: var(--rs-gray-900) !important;
	letter-spacing: -0.02em;
	line-height: 1.2;
}
.rs-price-box .woocommerce-Price-currencySymbol {
	font-size: 1.125rem;
	font-weight: 700;
	vertical-align: super;
}
.rs-price-box del {
	opacity: 0.4;
}
.rs-price-box del .woocommerce-Price-amount {
	font-size: 1.25rem !important;
	font-weight: 600 !important;
	color: var(--rs-gray-500) !important;
}
.rs-price-box ins {
	text-decoration: none;
}

.rs-quote-badge {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
	padding: 1rem 1.25rem;
	background: var(--rs-blue-50);
	border: 1px solid var(--rs-blue-100);
	border-radius: var(--rs-radius-lg);
	max-width: 100%;
}

.rs-quote-badge-main {
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--rs-blue-700);
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.rs-quote-badge-sub {
	font-size: 0.8125rem;
	color: var(--rs-gray-600);
	line-height: 1.45;
}

.rs-pd-desc {
	font-size: 1.125rem;
	color: var(--rs-gray-600);
	margin-bottom: 1.75rem;
	line-height: 1.7;
}

.rs-pd-desc p {
	margin: 0;
}

/* --- Core Specs (2x2 cards) --- */
.rs-pd-quick-specs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	margin-bottom: 1.5rem;
}

/* Parameter cards — design: icon + label + value, hover lift, scroll reveal */
.param-card {
	background: #ffffff;
	border: 1px solid #DFE1E6;
	border-radius: 12px;
	padding: 1rem 1.125rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.param-card:hover {
	border-color: #003d9b;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.rs-param-head {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	margin-bottom: 0.375rem;
}
.rs-param-ico {
	width: 18px;
	height: 18px;
	color: #191c1e;
	flex: 0 0 auto;
}
.rs-qs-label {
	font-size: 0.6875rem;
	font-weight: 600;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	line-height: 1.2;
}
.rs-qs-value {
	font-size: 1.25rem;
	font-weight: 800;
	color: #191c1e;
	line-height: 1.05;
	letter-spacing: -0.01em;
}
.rs-qs-unit {
	font-size: 1rem;
	font-weight: 700;
	color: #6b7280;
	margin-left: 0.125rem;
	letter-spacing: 0;
}

/* Scroll reveal for param cards — observer lives in product-add-to-cart.js
   (detail page only; see .rs-pd-quick-specs .param-card handler there).
   shop-list.js handles the archive/homepage .product-card reveal, NOT these. */
.js-anim .rs-pd-quick-specs .param-card {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.55s ease, transform 0.55s ease;
}
.js-anim .rs-pd-quick-specs .param-card.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* --- CTAs --- */
.rs-pd-ctas {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1.75rem;
}

@media (min-width: 640px) {
	.rs-pd-ctas {
		flex-direction: row;
		align-items: center;
	}
}

.rs-btn-primary,
.rs-btn-secondary {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	padding: 0.9375rem 1.5rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	border-radius: var(--rs-radius-lg);
	text-decoration: none;
	cursor: pointer;
	min-height: 52px;
	border: 2px solid transparent;
	transition: background 0.25s, border-color 0.25s, color 0.25s;
}

/* Primary: dark, high-contrast solid */
.rs-btn-primary {
	color: var(--rs-white);
	background: var(--rs-gray-900);
	border-color: var(--rs-gray-900);
}

.rs-btn-primary:hover {
	background: var(--rs-gray-700);
	border-color: var(--rs-gray-700);
	color: var(--rs-white);
}

/* Secondary: transparent outline */
.rs-btn-secondary {
	color: var(--rs-gray-700);
	background: transparent;
	border-color: var(--rs-gray-300);
}

.rs-btn-secondary:hover {
	border-color: var(--rs-gray-900);
	color: var(--rs-gray-900);
}

/* --- Single product add-to-cart form (WooCommerce standard) --- */
.rs-pd-ctas .cart {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.75rem;
	flex: 1 1 auto;
	/* 抵消 WooCommerce 自带 .woocommerce div.product form.cart { margin-bottom:2em }
	   否则该 2em 底部外边距会让 form 的 margin-box 比相邻 <a> 锚点高,
	   在 align-items:center 的 flex 行里把 form 顶上去、锚点压下来 → 两按钮上下错位 */
	margin: 0 !important;
}
.rs-pd-ctas .cart .quantity {
	display: flex;
	align-items: center;
}
.rs-pd-ctas .cart .quantity .qty {
	width: 5rem;
	height: 3.125rem;
	padding: 0 0.75rem;
	font-size: 1rem;
	font-weight: 600;
	text-align: center;
	border: 1px solid var(--rs-gray-300);
	border-radius: var(--rs-radius-lg);
	background: var(--rs-white);
	color: var(--rs-gray-900);
}
.rs-pd-ctas .cart .single_add_to_cart_button {
	flex: 1 1 auto;
	box-sizing: border-box;
	padding: 1rem 1.5rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
	border-radius: 9999px;
	cursor: pointer;
	transition: background-color 0.25s, border-color 0.25s, color 0.25s;
	/* WooCommerce's `.woocommerce div.product form.cart button.single_add_to_cart_button`
	   (specificity 0,4,3) forces display:inline-block, which drops the block <svg> icon
	   onto its own line above the text. Override it so the icon + label sit side by side
	   like the Download Datasheet anchor (which is a plain <a>, untouched by WC). */
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px !important;
	/* WooCommerce's `.woocommerce button.button.alt` (specificity 0,3,1, default
	   background #7f54b3 purple) beats this selector (0,3,0) without !important.
	   Lock the intended ink (#0a0a0a) so the WC default purple never shows. */
	background: #0a0a0a !important;
	border: 2px solid #0a0a0a !important;
	color: var(--rs-white) !important;
	position: relative;
	min-height: 56px;
}
.rs-pd-ctas .cart .single_add_to_cart_button:hover {
	background: #1a1a1a;
	border-color: #1a1a1a;
	color: var(--rs-white);
}
/* 已加入购物车状态: 变色为绿色（与 related products .rs-related-atc.in-cart 一致），
   并在右上角加绿色对勾角标（与 .rs-related-icon-btn.added::after 一致）。
   WooCommerce 在成功加购后会给按钮加 .added 类（shop-list.js 触发的 added_to_cart 全局事件），
   故以 .added 为主；.in-cart 一并支持，便于以后按真实库存状态切换。 */
.rs-pd-ctas .cart .single_add_to_cart_button.added,
.rs-pd-ctas .cart .single_add_to_cart_button.in-cart {
	background: #3b7a57 !important;
	border-color: #3b7a57 !important;
	color: var(--rs-white) !important;
}
.rs-pd-ctas .cart .single_add_to_cart_button.added:hover,
.rs-pd-ctas .cart .single_add_to_cart_button.in-cart:hover {
	background: #35624a !important;
	border-color: #35624a !important;
}
/* 右上角绿色对勾角标（复用 related products 的 .rs-related-icon-btn.added::after 设计） */
.rs-pd-ctas .cart .single_add_to_cart_button.added::after,
.rs-pd-ctas .cart .single_add_to_cart_button.in-cart::after {
	content: '';
	position: absolute;
	top: -6px;
	right: -6px;
	width: 20px;
	height: 20px;
	background-color: #10b981;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 13px;
	border: 2px solid #ffffff;
	border-radius: 50%;
}
.rs-pd-ctas .cart .single_add_to_cart_button.loading {
	opacity: 0.7;
	pointer-events: none;
}

/* --- Trust marks --- */
.rs-pd-trust {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--rs-gray-200);
}

.rs-trust-item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--rs-gray-600);
}

.rs-trust-check {
	width: 1.125rem;
	height: 1.125rem;
	color: #10b981;
	flex-shrink: 0;
}

/* ==========================================================================
   SECTION 2: FULL SPECIFICATIONS
   ========================================================================== */
.rs-specs-section {
	padding: 0 0 4rem;
	background: var(--rs-gray-50);
	border-top: 1px solid var(--rs-gray-200);
}

@media (min-width: 1024px) {
	.rs-specs-section { padding: 0 0 5rem; }
}

.rs-specs-header {
	padding-top: 60px;
	text-align: center;
	margin-bottom: 2.5rem;
}

.rs-specs-eyebrow {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rs-gray-500);
	margin-bottom: 0.5rem;
}

.rs-section-title {
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--rs-gray-900);
	letter-spacing: -0.01em;
	margin-bottom: 0;
}

/* Keep "Related Products" title left-aligned (shares .rs-section-title); spacing handled by .rs-related-header */
.rs-related-section .rs-section-title {
	font-size: 1.5rem;
	font-weight: 700;
	text-align: left;
	margin-bottom: 0;
}

.rs-specs-table-wrap {
	background: var(--rs-white);
	border-radius: var(--rs-radius-2xl);
	border: 1px solid var(--rs-gray-200);
	overflow: hidden;
	max-width: 56rem;           /* design: max-w-4xl, centered */
	margin-left: auto;
	margin-right: auto;
	box-shadow: 0 24px 60px -16px rgba(9, 30, 66, 0.25);  /* design: soft drop shadow */
}

.rs-specs-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.rs-specs-table th,
.rs-specs-table td {
	padding: 0.75rem 1.5rem;    /* design: 12px 24px */
	text-align: left;
	border: none;
}

.rs-spec-label {
	font-weight: 700;           /* design: font-bold */
	color: var(--rs-gray-900);
	width: 33.33%;
	vertical-align: top;
}

.rs-spec-value {
	color: var(--rs-gray-700);
	font-weight: 400;
	vertical-align: top;
}

.rs-spec-value p {
	margin: 0;
}

/* Row separators + zebra + hover (design: bottom border per row, lightens on hover) */
.rs-specs-table tbody tr {
	border-bottom: 1px solid var(--rs-gray-200);
	transition: background-color 0.2s ease;
}

.rs-specs-table tbody tr:nth-child(even) {
	background: #f3f4f6; /* = surface-container-low */
}

.rs-specs-table tbody tr:hover {
	background: var(--rs-gray-100);
}

/* ==========================================================================
   SECTION 3: APPLICATIONS
   ========================================================================== */
.rs-apps-section {
	padding: 3rem 0;
}

@media (min-width: 1024px) {
	.rs-apps-section { padding: 4rem 0; }
}

.rs-apps-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.rs-apps-grid { grid-template-columns: repeat(3, 1fr); }
}

.rs-app-card {
	background: var(--rs-gray-50);
	border-radius: var(--rs-radius-2xl);
	padding: 1.5rem;
}

.rs-app-icon {
	width: 3rem;
	height: 3rem;
	border-radius: var(--rs-radius-lg);
	background: var(--rs-blue-50);
	color: var(--rs-blue-600);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
}

.rs-app-title {
	font-weight: 700;
	font-size: 1rem;
	color: var(--rs-gray-900);
	margin-bottom: 0.25rem;
}

.rs-app-desc {
	font-size: 0.875rem;
	color: var(--rs-gray-600);
	line-height: 1.6;
}

/* ==========================================================================
   SECTION 4: RELATED PRODUCTS
   ========================================================================== */
.rs-related-section {
	padding: 0 0 3rem;
	background: var(--rs-gray-50);
	border-top: 1px solid var(--rs-gray-200);
}

@media (min-width: 1024px) {
	.rs-related-section { padding: 0 0 4rem; }
}

.rs-related-header {
	padding-top: 48px;
	margin-bottom: 2.5rem;
}

/* Related: horizontal swipe on mobile, grid on >=768 (design: scroll-row + snap) */
.rs-related-grid {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;           /* Firefox */
	padding-bottom: 0.5rem;
}
.rs-related-grid::-webkit-scrollbar { display: none; }
.rs-related-card {
	flex: 0 0 78%;
	max-width: 280px;
	scroll-snap-align: start;
}

@media (min-width: 768px) {
	.rs-related-grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
		overflow: visible;
		padding-bottom: 0;
	}
	.rs-related-card { flex: none; max-width: none; }
}

@media (min-width: 1024px) {
	.rs-related-grid { grid-template-columns: repeat(4, 1fr); }
}

.rs-related-card {
	display: block;
	background: var(--rs-white);
	border: 1px solid var(--rs-gray-100);
	border-radius: var(--rs-radius-lg);
	padding: 1rem;
	text-decoration: none;
	transition: box-shadow 0.3s, border-color 0.3s;
	color: inherit;
}

.rs-related-card:hover {
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.rs-related-img {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--rs-gray-50);
	border-radius: var(--rs-radius-lg);
	margin-bottom: 0.75rem;
	overflow: hidden;
	padding: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rs-related-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.3s;
}

.rs-related-card:hover .rs-related-img img {
	transform: scale(1.05);
}

.rs-related-title {
	font-weight: 700;
	font-size: 0.875rem;
	color: var(--rs-gray-900);
}

.rs-related-specs {
	font-size: 0.75rem;
	color: var(--rs-gray-500);
	margin-top: 0.25rem;
}

/* Title becomes a plain link (the whole card is no longer one <a>, so the
   hover eye/cart buttons can sit inside the image without nested anchors). */
.rs-related-title-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

/* Hover CTA layer over the related-product image — mirrors the shop-list
   .rs-card-cta-layer: fades in on card hover, two square black-bordered icon
   buttons (eye = view details, cart = add to cart) that fill black on hover. */
.rs-related-cta-layer {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0 0.75rem 0.75rem;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.22s ease;
	pointer-events: none;
	z-index: 4;
}

.rs-related-card:hover .rs-related-cta-layer,
.rs-related-card:focus-within .rs-related-cta-layer {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Touch devices have no hover — keep the CTA visible. */
@media (hover: none) {
	.rs-related-card .rs-related-cta-layer {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}
}

.rs-related-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	background: #ffffff;
	color: #111827;
	border: 1.5px solid #111827;
	border-radius: 999px;
	box-shadow: 0 4px 14px -6px rgba(17, 24, 39, 0.18);
	text-decoration: none;
	cursor: pointer;
	position: relative;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rs-related-icon-btn:hover {
	background: #111827;
	color: #ffffff;
	border-color: #111827;
}

.rs-related-icon {
	width: 1.4rem;
	height: 1.4rem;
	display: inline-block;
	fill: currentColor;
	vertical-align: middle;
}

/* "View cart" link auto-injected by WooCommerce after a successful add.
   Restyled as a small centered black pill that drops to its own line below
   the two icon buttons (the hover layer is a wrapping flex row), so it reads
   as an intentional confirmation instead of a raw underlined link breaking
   the icon layout. The mini-cart drawer already slides out on add, so this
   pill is a secondary "view cart" affordance. */
/* The "View cart" link auto-injected by WooCommerce after a successful add
   is intentionally hidden on Related Product cards: the mini-cart drawer
   already slides out on add (same as the /shop/ grid), so a standalone link
   is redundant and would clutter the two-icon hover layer. "Added" feedback
   is conveyed by the green check badge on .rs-related-icon-btn.added below. */
.rs-related-cta-layer a.added_to_cart {
	display: none !important;
}

/* Green check badge on the cart icon once WooCommerce marks it ".added",
   giving immediate "added to cart" confirmation without relying on the text
   pill alone. Mirrors the #10b981 check used in the product trust marks. */
.rs-related-icon-btn.added::after {
	content: '';
	position: absolute;
	top: -3px;
	right: -3px;
	width: 15px;
	height: 15px;
	background-color: #10b981;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 11px;
	border: 2px solid #ffffff;
	border-radius: 50%;
}

/* Same "size · resolution · brightness" line, injected by shop-list.js below
   each shop-archive card title to mirror the Related Products cards.
   The shop card content (title / price) is inset 1.25rem via margins (the
   card itself has no padding), so the specs line must use the same horizontal
   inset — otherwise it hugs the card's left edge and looks misaligned. */
.rs-product-specs {
	font-size: 0.75rem;
	color: var(--rs-gray-500);
	margin: 0.25rem 1.25rem 0;
	line-height: 1.45;
	text-align: left;
}

/* ==========================================================================
   SECTION 5: CTA  ->  moved to assets/css/cta-banner.css (global, reusable)
   Rendered via template-parts/cta-banner.php on every page.
   ========================================================================== */

/* ==========================================================================
   WooCommerce Wrapper Overrides
   Ensure our content uses full width, not constrained by theme.
   ========================================================================== */
.rs-content-area,
.rs-site-main {
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

.single-product .wp-site-blocks {
	padding: 0 !important;
}

.single-product .entry-header,
.single-product .entry-footer {
	display: none !important;
}

/* Reset any WooCommerce block theme wrapper constraints */
.single-product .woocommerce .woocommerce-products-header,
.single-product .woocommerce-notices-wrapper {
	max-width: var(--rs-max-width);
	margin: 0 auto;
	padding: 0 1rem;
}

/* Notices wrapper */
.rs-product .woocommerce-notices-wrapper {
	margin-bottom: 1rem;
	max-width: var(--rs-max-width);
	margin-left: auto;
	margin-right: auto;
	padding: 0 1rem;
}

/* Ensure images don't overflow */
.rs-product img {
	max-width: 100%;
	height: auto;
}


/* ==========================================================================
   Reusable CTA Banner (template-parts/cta-banner.php)
   Rendered on shop archive + single product pages only.
   ========================================================================== */
.rs-cta-section {
	padding: 4rem 0 1.5rem;
	background-color: var(--rs-blue-50);
	background-image: url('../images/cat-bg1.svg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	margin-bottom: 0;
}

@media (min-width: 1024px) {
	.rs-cta-section { padding: 6rem 0 2rem; }
}

.rs-cta-content {
	text-align: center;
}

.rs-cta-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--rs-gray-900);
	margin-bottom: 1rem;
	line-height: 1.3;
}

@media (min-width: 1024px) {
	.rs-cta-title { font-size: 1.875rem; }
}

.rs-cta-desc {
	font-size: 1.125rem;
	color: var(--rs-gray-700);
	margin-bottom: 2rem;
	max-width: 42rem;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.7;
}

.rs-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 2rem;
	font-size: 1rem;
	font-weight: 600;
	color: var(--rs-white);
	background: var(--rs-blue-600);
	border-radius: 0.5rem;
	text-decoration: none;
	position: relative;
	overflow: hidden;
	z-index: 1;
	transition: color 0.35s;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

/* Left-to-Right Fill Animation (per design-system.html S3 .btn-primary) */
.rs-cta-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 100%;
	background: var(--rs-blue-700);
	transition: width 0.35s;
	z-index: -1;
}

.rs-cta-btn:hover {
	color: var(--rs-white);
}

.rs-cta-btn:hover::before {
	width: 100%;
}


/* Header mega thumbnail card hover (neutral border + soft shadow lift).
   Per review: no blue border / blue title / arrow — just a shadow on hover. */
.rs-thumb-card:hover {
	border-color: #D1D5DB;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

/* ==========================================================================
   DETAIL PAGE — CTA buttons (design: .cta-play roll-up + inline SVG icons)
   ========================================================================== */
.rs-pd-ctas .cta-play {
	flex: 1 1 auto;
	justify-content: center;
	box-sizing: border-box;
}
.rs-cta-quote {
	background: #0a0a0a;
	color: #ffffff;
	border: 2px solid #0a0a0a;
	border-radius: 9999px;
	padding: 1rem 1.5rem;
	font-weight: 600;
	min-height: 56px;
	transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.rs-cta-quote:hover {
	background: #1a1a1a;
	border-color: #1a1a1a;
	color: #ffffff;
}
.rs-cta-download {
	background: transparent;
	color: #0a0a0a;
	border: 2px solid #0a0a0a;
	border-radius: 9999px;
	padding: 1rem 1.5rem;
	font-weight: 600;
	min-height: 56px;
	transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.rs-cta-download:hover {
	background: #0a0a0a;
	color: #ffffff;
}
.rs-cta-add .rs-cta-ico,
.rs-cta-quote .rs-cta-ico,
.rs-cta-download .rs-cta-ico {
	width: 20px;
	height: 20px;
	display: block;
}

/* DETAIL PAGE — CTA roll-up text + icon alignment.
   Ported from shared-core's .cta-play/.play-txt so the detail page is
   self-contained (shop styling must not rely on shared-core.css being
   present). The button ships TWO identical <span>s inside .play-txt for the
   hover roll-up; without this CSS both spans render as duplicated text and
   the icon/label misalign. height:1.5em + overflow:hidden shows only the
   first span; :hover slides both up to reveal the second (identical) span. */
.rs-pd-ctas .play-txt {
	display: inline-block;
	overflow: hidden;
	vertical-align: middle;
	line-height: 1.5;
	height: 1.5em;
	white-space: nowrap;
}
.rs-pd-ctas .play-txt > span {
	display: block;
	line-height: 1.5;
	height: 1.5em;
	white-space: nowrap;
	transition: transform 0.3s ease;
}
.rs-pd-ctas .cta-play:hover .play-txt > span {
	transform: translateY( -1.5em );
}

/* 数量 "(N)" 现在内联在 .play-txt 的两个翻滚 span 中(与文字同一节点),
   因此 hover 翻滚时数字随文字一起滚动, 不再是外围独立节点; 同时全按钮
   数字只存在一处(两个 identical span 仅视觉重复、逻辑单一来源), 根除双数字 bug。 */

/* WooCommerce auto-injects a "View cart" link on the global added_to_cart
   event. On the detail page the mini-cart drawer already slides out on add
   (same as the /shop/ grid), so hide that redundant link. */
.rs-pd-ctas a.added_to_cart {
	display: none !important;
}

/* ==========================================================================
   DETAIL PAGE — trust badges (inline SVG verified icons)
   ========================================================================== */
.rs-trust-check {
	width: 18px;
	height: 18px;
	color: #003d9b;
	flex: 0 0 auto;
}

/* ==========================================================================
   DETAIL PAGE — Related Products (design: square image, spec chips,
   priced row, green in-cart pill)
   ========================================================================== */
.rs-related-img {
	aspect-ratio: 1 / 1;
	background: #F4F5F7;
}
.rs-related-meta {
	margin-top: 0.5rem;
}
.rs-related-price {
	font-size: 1.125rem;
	font-weight: 700;
	color: #191c1e;
	margin-bottom: 0.375rem;
}
.rs-related-specs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
}
.rs-chip {
	background: #f3f4f6;
	color: #434654;
	font-size: 0.75rem;
	font-weight: 500;
	padding: 0.125rem 0.5rem;
	border-radius: 0.375rem;
	white-space: nowrap;
}
.rs-chip-sep {
	color: #c3c6d6;
}
.rs-related-atc .rs-related-atc-label {
	display: none;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}
.rs-related-atc.in-cart {
	width: auto;
	height: auto;
	padding: 0 14px;
	gap: 6px;
	border-radius: 9999px;
	background: #3b7a57;
	border-color: #3b7a57;
	color: #ffffff;
}
.rs-related-atc.in-cart:hover {
	background: #35624a;
	border-color: #35624a;
}
.rs-related-atc.in-cart .rs-related-icon {
	display: none;
}
.rs-related-atc.in-cart .rs-related-atc-label {
	display: inline;
}

/* ==========================================================================
   DETAIL PAGE — bottom product CTA (design: dark gradient rounded card)
   ========================================================================== */
.rs-pd-bottom-cta {
	padding: 4rem 0;
}
.rs-pd-bottom-cta-inner {
	position: relative;
	overflow: hidden;
	border-radius: 3rem;
	background: linear-gradient(135deg, #111827, #0a0a0a);
	padding: 3rem 2rem;
	display: flex;
	flex-direction: column;
	gap: 2rem;
	align-items: center;
	text-align: center;
}
@media (min-width: 768px) {
	.rs-pd-bottom-cta-inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		text-align: left;
		padding: 4rem;
		/* PC: narrower than the 1440px content container (design: 1200 CTA vs 1440 content) */
		max-width: 1200px;
		margin-left: auto;
		margin-right: auto;
	}
}
.rs-pd-bottom-cta-title {
	color: #ffffff;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 1rem;
}
.rs-pd-bottom-cta-sub {
	color: #9ca3af;
	font-size: 0.9375rem;
	line-height: 1.6;
	margin: 0;
	max-width: 28rem;
}
.rs-pd-bottom-cta-btn {
	display: inline-flex;
	flex: 0 0 auto;            /* never stretch / grow */
	width: auto;
	align-self: center;        /* bulletproof: never stretch to full width */
	background: linear-gradient(to bottom, #ffffff, #f3f4f6);
	color: #0a0a0a;
	border: none;
	border-radius: 9999px;
	padding: 1rem 2rem;
	font-weight: 700;
	white-space: nowrap;
	/* design: soft drop shadow + subtle ring (replaces the heavy 2px black border) */
	box-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.rs-pd-bottom-cta-btn:hover {
	background: linear-gradient(to bottom, #ffffff, #e5e7eb);
	color: #0a0a0a;
	box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.05);
}



