/**
 * Stiva YGO Single Product Page — Pro TCG Duelist Edition
 *
 * Designed for 13-36 year old Yu-Gi-Oh! duelists & collectors:
 * - Clean full-width 1320px container (no legacy bottom sidebar dump)
 * - 2-column hero showcase (Gallery on left, Summary Card on right)
 * - Unified Stiva Red Add to Cart, Customize Deck & Wishlist controls
 * - Multi-column decklist description grid for long card lists
 * - Responsive 4-column Related Products grid (fixes empty 1st grid slot)
 */

/* ==========================================================================
   1. Container & Layout Foundation
   ========================================================================== */
body.single-product {
	background-color: #f8f7f5 !important;
	color: #18181b;
}

body.single-product #primary,
body.single-product .content-area,
body.single-product main#main {
	max-width: 1320px !important;
	width: 100% !important;
	margin: 0 auto !important;
	padding: 28px 20px 70px !important;
	float: none !important;
	box-sizing: border-box !important;
}

/* Force hide any stray sidebar on single product page */
body.single-product #secondary,
body.single-product .stiva-sidebar,
body.single-product .sidebar {
	display: none !important;
}

/* ==========================================================================
   2. Top Product Showcase (2-Column Grid: Gallery + Buy Box)
   ========================================================================== */
body.single-product div.product {
	position: relative;
}

@media (min-width: 960px) {
	body.single-product div.product {
		display: grid;
		grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
		column-gap: 44px;
		row-gap: 48px;
		align-items: start;
	}

	body.single-product div.product > .woocommerce-tabs,
	body.single-product div.product > .related.products,
	body.single-product div.product > .upsells.products,
	body.single-product div.product > .woocommerce-notices-wrapper {
		grid-column: 1 / -1;
		width: 100% !important;
		clear: both;
	}

	body.single-product div.product div.images,
	body.single-product div.product div.woocommerce-product-gallery {
		width: 100% !important;
		float: none !important;
		margin: 0 !important;
		position: sticky;
		top: 24px;
	}

	body.single-product div.product div.summary {
		width: 100% !important;
		float: none !important;
		margin: 0 !important;
	}
}

/* ==========================================================================
   3. Product Gallery & Thumbnails
   ========================================================================== */
body.single-product div.product div.images .woocommerce-product-gallery__wrapper {
	border-radius: 16px;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid rgba(24, 24, 27, 0.08);
	box-shadow: 0 12px 32px rgba(24, 24, 27, 0.06);
	margin: 0;
}

body.single-product div.product div.images .woocommerce-product-gallery__image:first-child {
	border-radius: 16px;
	overflow: hidden;
}

body.single-product div.product div.images .flex-control-thumbs {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)) !important;
	gap: 10px !important;
	margin: 14px 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

body.single-product div.product div.images .flex-control-thumbs li {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.single-product div.product div.images .flex-control-thumbs li img {
	width: 100% !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 10px !important;
	border: 2px solid transparent !important;
	opacity: 0.65 !important;
	transition: all 0.2s ease !important;
	cursor: pointer;
	background: #ffffff;
}

body.single-product div.product div.images .flex-control-thumbs li img.flex-active,
body.single-product div.product div.images .flex-control-thumbs li img:hover {
	opacity: 1 !important;
	border-color: #dc1212 !important;
	box-shadow: 0 4px 12px rgba(220, 18, 18, 0.2) !important;
}

/* Sale Badge on Single Product */
body.single-product div.product span.onsale {
	position: absolute !important;
	top: 16px !important;
	left: 16px !important;
	right: auto !important;
	z-index: 10 !important;
	background: #dc1212 !important;
	color: #ffffff !important;
	font-family: 'Bebas Neue', Impact, sans-serif !important;
	font-size: 16px !important;
	letter-spacing: 1px !important;
	padding: 4px 14px !important;
	min-height: 0 !important;
	min-width: 0 !important;
	line-height: 1.3 !important;
	border-radius: 6px !important;
	box-shadow: 0 4px 12px rgba(220, 18, 18, 0.35) !important;
	margin: 0 !important;
}

/* ==========================================================================
   4. Right Column: Summary Buy Box
   ========================================================================== */
body.single-product div.product div.summary {
	background: #ffffff;
	border: 1px solid rgba(24, 24, 27, 0.08);
	border-top: 4px solid #dc1212;
	border-radius: 18px;
	padding: 32px 30px;
	box-shadow: 0 12px 32px rgba(24, 24, 27, 0.05);
	box-sizing: border-box;
}

/* Breadcrumbs inside summary */
.stiva-pdp-breadcrumbs {
	margin-bottom: 12px;
}

.stiva-pdp-breadcrumbs .woocommerce-breadcrumb {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.06em !important;
	color: #71717a !important;
}

.stiva-pdp-breadcrumbs .woocommerce-breadcrumb a {
	color: #52525b !important;
	text-decoration: none !important;
	transition: color 0.18s ease;
}

.stiva-pdp-breadcrumbs .woocommerce-breadcrumb a:hover {
	color: #dc1212 !important;
}

.stiva-pdp-breadcrumbs .stiva-bc-sep {
	color: #d4d4d8;
	margin: 0 5px;
}

/* Product Title */
body.single-product div.product div.summary .product_title {
	font-family: 'Bebas Neue', Impact, sans-serif !important;
	font-size: 46px !important;
	line-height: 1.02 !important;
	letter-spacing: 0.8px !important;
	color: #141417 !important;
	margin: 0 0 14px !important;
	text-transform: uppercase !important;
}

/* Price */
body.single-product div.product div.summary p.price,
body.single-product div.product div.summary span.price {
	display: inline-flex !important;
	align-items: baseline !important;
	gap: 10px !important;
	font-family: 'Bebas Neue', Impact, sans-serif !important;
	font-size: 32px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	color: #dc1212 !important;
	background: #fff5f5;
	border: 1px solid rgba(220, 18, 18, 0.18);
	padding: 8px 16px;
	border-radius: 10px;
	margin: 0 0 20px !important;
}

body.single-product div.product div.summary p.price del {
	color: #a1a1aa !important;
	font-size: 22px !important;
	opacity: 1 !important;
}

body.single-product div.product div.summary p.price ins {
	text-decoration: none !important;
	color: #dc1212 !important;
}

/* Short Description */
body.single-product div.product div.summary .woocommerce-product-details__short-description {
	font-size: 15px !important;
	line-height: 1.65 !important;
	color: #3f3f46 !important;
	margin: 0 0 24px !important;
	padding-bottom: 20px;
	border-bottom: 1px solid #f1f1f4;
}

body.single-product div.product div.summary .woocommerce-product-details__short-description p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   5. Quantity, Add to Cart, Customize Deck & Wishlist Controls
   ========================================================================== */
body.single-product div.product div.summary form.cart {
	margin: 0 0 22px !important;
	padding: 0 !important;
}

/* Standard products without stiva-purchase-choices wrapper */
body.single-product div.product div.summary form.cart:not(:has(.stiva-purchase-choices)) {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: stretch !important;
	gap: 12px !important;
}

/* Quantity Input Box */
body.single-product div.product div.summary form.cart div.quantity {
	float: none !important;
	margin: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	background: #f8f8fa !important;
	border: 1.5px solid #d4d4d8 !important;
	border-radius: 10px !important;
	height: 52px !important;
	overflow: hidden !important;
}

body.single-product div.product div.summary form.cart div.quantity input.qty {
	width: 72px !important;
	height: 100% !important;
	min-height: 48px !important;
	border: 0 !important;
	background: transparent !important;
	color: #18181b !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	text-align: center !important;
	padding: 0 8px !important;
	box-shadow: none !important;
}

/* Primary Add to Cart Button (Fix generic purple color!) */
body.single-product div.product div.summary form.cart .single_add_to_cart_button,
body.single-product div.product div.summary .single_add_to_cart_button.button.alt {
	flex: 1 1 180px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 52px !important;
	height: 52px !important;
	padding: 0 24px !important;
	margin: 0 !important;
	background: #dc1212 !important;
	background-color: #dc1212 !important;
	border: 1.5px solid #dc1212 !important;
	border-radius: 10px !important;
	color: #ffffff !important;
	font-family: 'Bebas Neue', Impact, sans-serif !important;
	font-size: 21px !important;
	font-weight: 400 !important;
	letter-spacing: 1px !important;
	text-transform: uppercase !important;
	box-shadow: 0 6px 18px rgba(220, 18, 18, 0.25) !important;
	transition: all 0.2s ease !important;
	cursor: pointer !important;
	float: none !important;
}

body.single-product div.product div.summary form.cart .single_add_to_cart_button:hover,
body.single-product div.product div.summary .single_add_to_cart_button.button.alt:hover {
	background: #b70e0e !important;
	background-color: #b70e0e !important;
	border-color: #b70e0e !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 8px 22px rgba(220, 18, 18, 0.35) !important;
}

/* Ready-Made Deck Purchase Choices Grid (Qty + Wishlist + Add to Cart + Customize Deck) */
body.single-product .summary .stiva-purchase-choices {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
	gap: 12px !important;
	align-items: stretch !important;
	width: 100% !important;
}

body.single-product .summary .stiva-purchase-choices > .quantity {
	grid-column: 1 !important;
	grid-row: 1 !important;
	width: 100% !important;
	max-width: 140px !important;
}

body.single-product .summary .stiva-purchase-choices > .stiva-wishlist-single-btn {
	grid-column: 2 !important;
	grid-row: 1 !important;
	justify-self: end !important;
	margin: 0 !important;
	height: 52px !important;
}

body.single-product .summary .stiva-purchase-choices > .single_add_to_cart_button {
	grid-column: 1 !important;
	grid-row: 2 !important;
	width: 100% !important;
}

body.single-product .summary .stiva-purchase-choices > .stiva-customize-deck-link {
	grid-column: 2 !important;
	grid-row: 2 !important;
	margin: 0 !important;
	width: 100% !important;
}

body.single-product .summary .stiva-purchase-choices .stiva-customize-deck-btn {
	height: 52px !important;
	min-height: 52px !important;
	border: 1.5px solid #18181b !important;
	border-radius: 10px !important;
	background: #18181b !important;
	color: #ffffff !important;
	transition: all 0.2s ease !important;
}

body.single-product .summary .stiva-purchase-choices .stiva-customize-deck-btn:hover {
	background: #27272a !important;
	border-color: #27272a !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 6px 16px rgba(24, 24, 27, 0.2) !important;
}

/* Wishlist Single Button */
body.single-product .stiva-wishlist-single-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	height: 52px !important;
	min-height: 52px !important;
	padding: 0 18px !important;
	margin: 0 !important;
	background: #ffffff !important;
	border: 1.5px solid #e4e4e7 !important;
	border-radius: 10px !important;
	color: #27272a !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
}

body.single-product .stiva-wishlist-single-btn:hover,
body.single-product .stiva-wishlist-single-btn.is-active {
	border-color: #dc1212 !important;
	color: #dc1212 !important;
	background: #fff5f5 !important;
}

/* ==========================================================================
   6. Clean TCG Spec Sheet & Structured Meta Chips (SKU / Category / Tags)
   ========================================================================== */
body.single-product div.product div.summary .product_meta {
	display: none !important;
}

.stiva-pdp-specs-box {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 22px 0 20px;
	padding: 14px 16px;
	background: #faf9f7;
	border: 1px solid #e7e2dc;
	border-left: 3.5px solid #18181b;
	border-radius: 10px;
}

.stiva-pdp-spec-line {
	display: flex;
	align-items: baseline;
	gap: 9px;
	font-size: 13px;
	line-height: 1.45;
	color: #3f3f46;
}

.stiva-pdp-spec-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #18181b;
	flex-shrink: 0;
	transform: translateY(-1px);
}

.stiva-pdp-spec-line--alert .stiva-pdp-spec-dot {
	background: #dc1212;
}

.stiva-pdp-spec-text strong {
	color: #18181b;
	font-weight: 800;
}

.stiva-pdp-spec-line--alert .stiva-pdp-spec-text strong {
	color: #dc1212;
}

/* Structured Meta Rows */
.stiva-pdp-meta-rows {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 18px;
	margin-top: 18px;
	border-top: 1px solid #efeff2;
}

.stiva-pdp-meta-row {
	display: grid;
	grid-template-columns: 78px minmax(0, 1fr);
	align-items: baseline;
	gap: 10px;
}

.stiva-pdp-meta-label {
	font-family: 'Bebas Neue', Impact, sans-serif;
	font-size: 15px;
	letter-spacing: 0.8px;
	color: #71717a;
	line-height: 1.2;
}

.stiva-pdp-meta-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.stiva-pdp-chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none !important;
	white-space: nowrap;
	transition: all 0.16s ease;
}

.stiva-pdp-chip--sku {
	background: #f4f4f5;
	color: #27272a;
	border: 1px solid #e4e4e7;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11.5px;
}

.stiva-pdp-chip--cat {
	background: #fff5f5;
	color: #dc1212 !important;
	border: 1px solid rgba(220, 18, 18, 0.22);
}

.stiva-pdp-chip--cat:hover {
	background: #dc1212;
	color: #ffffff !important;
	border-color: #dc1212;
}

.stiva-pdp-chip--tag {
	background: #f8f8fa;
	color: #3f3f46 !important;
	border: 1px solid #e4e4e7;
	font-weight: 600;
}

.stiva-pdp-chip--tag:hover {
	background: #18181b;
	color: #ffffff !important;
	border-color: #18181b;
}

/* ==========================================================================
   7. Description & Reviews Tabs (Multi-Column Decklist Support!)
   ========================================================================== */
body.single-product div.product .woocommerce-tabs {
	margin-top: 16px !important;
	background: #ffffff;
	border: 1px solid rgba(24, 24, 27, 0.08);
	border-radius: 18px;
	padding: 28px 32px 34px;
	box-shadow: 0 10px 28px rgba(24, 24, 27, 0.04);
}

body.single-product div.product .woocommerce-tabs ul.tabs {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 10px !important;
	padding: 0 0 18px !important;
	margin: 0 0 24px !important;
	border-bottom: 2px solid #f1f1f4 !important;
	list-style: none !important;
}

body.single-product div.product .woocommerce-tabs ul.tabs::before,
body.single-product div.product .woocommerce-tabs ul.tabs::after,
body.single-product div.product .woocommerce-tabs ul.tabs li::before,
body.single-product div.product .woocommerce-tabs ul.tabs li::after {
	display: none !important;
	content: none !important;
}

body.single-product div.product .woocommerce-tabs ul.tabs li {
	background: #f4f4f5 !important;
	border: 1px solid #e4e4e7 !important;
	border-radius: 10px !important;
	margin: 0 !important;
	padding: 0 !important;
	transition: all 0.2s ease !important;
}

body.single-product div.product .woocommerce-tabs ul.tabs li a {
	display: inline-block !important;
	padding: 10px 22px !important;
	font-family: 'Bebas Neue', Impact, sans-serif !important;
	font-size: 19px !important;
	font-weight: 400 !important;
	letter-spacing: 0.8px !important;
	color: #52525b !important;
	text-decoration: none !important;
	text-transform: uppercase !important;
}

body.single-product div.product .woocommerce-tabs ul.tabs li.active {
	background: #dc1212 !important;
	border-color: #dc1212 !important;
	box-shadow: 0 4px 14px rgba(220, 18, 18, 0.25) !important;
}

body.single-product div.product .woocommerce-tabs ul.tabs li.active a {
	color: #ffffff !important;
}

body.single-product div.product .woocommerce-tabs .panel {
	margin: 0 !important;
	padding: 0 !important;
	color: #27272a;
	font-size: 15px;
	line-height: 1.7;
}

body.single-product div.product .woocommerce-tabs .panel > h2:first-child {
	font-family: 'Bebas Neue', Impact, sans-serif;
	font-size: 30px;
	letter-spacing: 0.6px;
	color: #18181b;
	margin: 0 0 16px;
}

/* Turn long vertical card lists (<ul>) inside Description into a sleek 3-column TCG Decklist grid! */
@media (min-width: 768px) {
	body.single-product #tab-description ul {
		column-count: 3;
		column-gap: 28px;
		background: #faf9f7;
		border: 1px solid #ece7e1;
		border-radius: 14px;
		padding: 20px 24px 20px 38px;
		margin: 12px 0 24px;
	}

	body.single-product #tab-description ul li {
		break-inside: avoid;
		padding: 4px 0;
		font-size: 14px;
		font-weight: 500;
		color: #27272a;
		border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
	}
}

/* ==========================================================================
   8. Related Products Grid (Fixes Empty 1st Slot & Broken 4th Item Wrap!)
   ========================================================================== */
body.single-product section.related.products,
body.single-product section.upsells.products {
	margin-top: 44px !important;
	padding-top: 36px;
	border-top: 1px solid rgba(24, 24, 27, 0.08);
}

body.single-product section.related.products > h2,
body.single-product section.upsells.products > h2 {
	font-family: 'Bebas Neue', Impact, sans-serif !important;
	font-size: 36px !important;
	letter-spacing: 1px !important;
	color: #18181b !important;
	margin: 0 0 24px !important;
	text-transform: uppercase !important;
}

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

body.single-product section.related.products ul.products::before,
body.single-product section.related.products ul.products::after,
body.single-product section.upsells.products ul.products::before,
body.single-product section.upsells.products ul.products::after {
	display: none !important;
	content: none !important;
}

body.single-product section.related.products ul.products li.product,
body.single-product section.upsells.products ul.products li.product {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 14px !important;
	float: none !important;
	clear: none !important;
	background: #ffffff !important;
	border: 1px solid rgba(24, 24, 27, 0.08) !important;
	border-radius: 14px !important;
	box-shadow: 0 6px 18px rgba(24, 24, 27, 0.04) !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: space-between !important;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
	box-sizing: border-box !important;
}

body.single-product section.related.products ul.products li.product:hover,
body.single-product section.upsells.products ul.products li.product:hover {
	transform: translateY(-4px) !important;
	border-color: rgba(220, 18, 18, 0.35) !important;
	box-shadow: 0 14px 28px rgba(24, 24, 27, 0.1) !important;
}

body.single-product section.related.products ul.products li.product a img,
body.single-product section.upsells.products ul.products li.product a img {
	width: 100% !important;
	aspect-ratio: 1 / 1 !important;
	object-fit: cover !important;
	border-radius: 10px !important;
	margin: 0 0 12px !important;
}

body.single-product section.related.products ul.products li.product .woocommerce-loop-product__title,
body.single-product section.upsells.products ul.products li.product .woocommerce-loop-product__title {
	font-family: 'Bebas Neue', Impact, sans-serif !important;
	font-size: 20px !important;
	line-height: 1.15 !important;
	letter-spacing: 0.4px !important;
	color: #18181b !important;
	margin: 0 0 6px !important;
	padding: 0 !important;
}

body.single-product section.related.products ul.products li.product .price,
body.single-product section.upsells.products ul.products li.product .price {
	font-size: 15px !important;
	font-weight: 800 !important;
	color: #dc1212 !important;
	margin: 0 0 12px !important;
}

body.single-product section.related.products ul.products li.product .button,
body.single-product section.upsells.products ul.products li.product .button {
	width: 100% !important;
	min-height: 42px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: #18181b !important;
	color: #ffffff !important;
	font-family: 'Bebas Neue', Impact, sans-serif !important;
	font-size: 16px !important;
	letter-spacing: 0.8px !important;
	border-radius: 8px !important;
	border: none !important;
	padding: 8px 14px !important;
	margin-top: auto !important;
	transition: background-color 0.2s ease !important;
}

body.single-product section.related.products ul.products li.product .button:hover,
body.single-product section.upsells.products ul.products li.product .button:hover {
	background: #dc1212 !important;
}

/* ==========================================================================
   9. Mobile Responsive Polish (< 959px)
   ========================================================================== */
@media (max-width: 959px) {
	/* Remove double-nested horizontal padding on mobile so the product card uses full screen width */
	body.single-product .page_content_wrap,
	body.single-product .page_content_wrap .content_wrap,
	body.single-product .page_content_wrap .content,
	body.single-product #primary,
	body.single-product .content-area,
	body.single-product main#main {
		max-width: 100% !important;
		width: 100% !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	body.single-product main#main,
	body.single-product #primary {
		padding: 10px 10px 95px !important;
	}

	/* Hide duplicate legacy breadcrumb above our summary card */
	body.single-product #main > .woocommerce-breadcrumb,
	body.single-product .content_wrap > .woocommerce-breadcrumb {
		display: none !important;
	}

	body.single-product div.product div.images,
	body.single-product div.product div.woocommerce-product-gallery {
		width: 100% !important;
		float: none !important;
		margin: 0 0 14px !important;
	}

	body.single-product div.product div.summary {
		width: 100% !important;
		float: none !important;
		padding: 18px 14px !important;
		border-radius: 14px !important;
	}

	body.single-product div.product div.summary .product_title {
		font-size: 36px !important;
	}

	body.single-product div.product div.summary p.price,
	body.single-product div.product div.summary span.price {
		font-size: 28px !important;
	}

	body.single-product .summary .stiva-purchase-choices {
		grid-template-columns: 1fr !important;
	}

	body.single-product .summary .stiva-purchase-choices > .quantity {
		grid-column: 1 !important;
		grid-row: 1 !important;
		max-width: none !important;
		justify-content: center !important;
	}

	body.single-product .summary .stiva-purchase-choices > .single_add_to_cart_button {
		grid-column: 1 !important;
		grid-row: 2 !important;
	}

	body.single-product .summary .stiva-purchase-choices > .stiva-customize-deck-link {
		grid-column: 1 !important;
		grid-row: 3 !important;
	}

	body.single-product .summary .stiva-purchase-choices > .stiva-wishlist-single-btn {
		grid-column: 1 !important;
		grid-row: 4 !important;
		width: 100% !important;
	}

	body.single-product div.product .woocommerce-tabs {
		padding: 20px 16px 24px !important;
		border-radius: 16px !important;
	}

	body.single-product section.related.products ul.products,
	body.single-product section.upsells.products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px !important;
	}
}

/* ==========================================================================
   10. Smart Decklist Tab — Authentic TCG Deck Sheet UI
   ========================================================================== */
.stiva-decklist {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.stiva-decklist-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding-bottom: 18px;
	border-bottom: 1px solid #efeff2;
}

.stiva-decklist-kicker {
	display: block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #dc1212;
	margin-bottom: 4px;
}

.stiva-decklist-title {
	font-family: 'Bebas Neue', Impact, sans-serif !important;
	font-size: 32px !important;
	line-height: 1 !important;
	letter-spacing: 0.6px !important;
	color: #141417 !important;
	margin: 0 !important;
	text-transform: uppercase;
}

.stiva-decklist-counters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.stiva-dl-count {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: #f4f4f5;
	color: #27272a;
	border: 1px solid #e4e4e7;
}

.stiva-dl-count b {
	font-family: 'Bebas Neue', Impact, sans-serif;
	font-size: 18px;
	line-height: 1;
}

.stiva-dl-count--main {
	background: #fffbeb;
	color: #92400e;
	border-color: #fde68a;
}

.stiva-dl-count--extra {
	background: #faf5ff;
	color: #6b21a8;
	border-color: #e9d5ff;
}

.stiva-dl-count--side {
	background: #f0fdf4;
	color: #166534;
	border-color: #bbf7d0;
}

/* TCG Section Cards Grid */
.stiva-decklist-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
	align-items: start;
}

.stiva-dl-section {
	background: #faf9f7;
	border: 1px solid #e7e2dc;
	border-top: 3.5px solid #d97706;
	border-radius: 14px;
	overflow: hidden;
}

.stiva-dl-section--monster { border-top-color: #d97706; }
.stiva-dl-section--spell   { border-top-color: #0d9488; }
.stiva-dl-section--trap    { border-top-color: #be185d; }
.stiva-dl-section--extra   { border-top-color: #7e22ce; }
.stiva-dl-section--side    { border-top-color: #15803d; }

.stiva-dl-section header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: #ffffff;
	border-bottom: 1px solid #ebe6e0;
}

.stiva-dl-section header h3 {
	font-family: 'Bebas Neue', Impact, sans-serif !important;
	font-size: 20px !important;
	letter-spacing: 0.6px !important;
	color: #18181b !important;
	margin: 0 !important;
	line-height: 1 !important;
}

.stiva-dl-section header span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 24px;
	padding: 0 8px;
	border-radius: 999px;
	background: #18181b;
	color: #ffffff;
	font-size: 12px;
	font-weight: 800;
}

.stiva-dl-section--spell header span { background: #0d9488; }
.stiva-dl-section--trap header span  { background: #be185d; }
.stiva-dl-section--extra header span { background: #7e22ce; }
.stiva-dl-section--side header span  { background: #15803d; }

.stiva-dl-section ol {
	list-style: none !important;
	margin: 0 !important;
	padding: 6px 0 !important;
}

.stiva-dl-section ol li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 16px;
	font-size: 13.5px;
	line-height: 1.35;
	color: #27272a;
	border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}

.stiva-dl-section ol li:last-child {
	border-bottom: 0;
}

.stiva-dl-qty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 22px;
	border-radius: 5px;
	background: #ffffff;
	border: 1px solid #d4d4d8;
	font-size: 12px;
	font-weight: 800;
	color: #dc1212;
	flex-shrink: 0;
}

.stiva-dl-name {
	font-weight: 600;
	color: #18181b;
	min-width: 0;
	overflow-wrap: anywhere;
}

/* Decklist Actions Bar */
.stiva-decklist-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding-top: 16px;
	border-top: 1px solid #efeff2;
}

.stiva-dl-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	transition: all 0.18s ease;
}

.stiva-dl-btn--ghost {
	background: #ffffff;
	color: #18181b;
	border: 1.5px solid #d4d4d8;
}

.stiva-dl-btn--ghost:hover,
.stiva-dl-btn--ghost.is-done {
	border-color: #dc1212;
	color: #dc1212;
	background: #fff5f5;
}

.stiva-dl-btn--dark {
	background: #18181b;
	color: #ffffff !important;
	border: 1.5px solid #18181b;
}

.stiva-dl-btn--dark:hover {
	background: #dc1212;
	border-color: #dc1212;
	color: #ffffff !important;
}

@media (max-width: 640px) {
	.stiva-decklist-grid {
		grid-template-columns: 1fr;
	}

	.stiva-decklist-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.stiva-dl-btn {
		width: 100%;
	}
}

/* ==========================================================================
   11. Accepted Payment Method Icons Bar (COD, InstaPay, Vodafone Cash, Telda)
   ========================================================================== */
.stiva-pdp-payments {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 16px 0 4px;
}

.stiva-pdp-payments-label {
	font-family: 'Bebas Neue', Impact, sans-serif;
	font-size: 14px;
	letter-spacing: 0.9px;
	text-transform: uppercase;
	color: #71717a;
	line-height: 1;
}

.stiva-pdp-payments-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.stiva-pay-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	padding: 5px 11px;
	background: #ffffff;
	border: 1px solid #e4e4e7;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(24, 24, 27, 0.04);
}

.stiva-pay-pill img {
	height: 22px !important;
	width: auto !important;
	max-width: 72px !important;
	object-fit: contain !important;
	display: block !important;
}

.stiva-pay-pill--cod {
	font-size: 11.5px;
	font-weight: 800;
	color: #18181b;
	background: #faf9f7;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

/* ==========================================================================
   12. Variable Product Selectors (Color, Size, Edition, etc.)
   ========================================================================== */
body.single-product div.product div.summary form.variations_form {
	display: flex !important;
	flex-direction: column !important;
	gap: 18px !important;
	width: 100% !important;
}

body.single-product div.product div.summary table.variations {
	width: 100% !important;
	margin: 0 !important;
	border: 0 !important;
	border-collapse: separate !important;
	border-spacing: 0 12px !important;
	background: transparent !important;
}

body.single-product div.product div.summary table.variations tr {
	display: grid !important;
	grid-template-columns: 92px minmax(0, 1fr) !important;
	align-items: center !important;
	gap: 12px !important;
	background: transparent !important;
	border: 0 !important;
}

body.single-product div.product div.summary table.variations th.label,
body.single-product div.product div.summary table.variations td.label {
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	background: transparent !important;
	text-align: left !important;
}

body.single-product div.product div.summary table.variations th.label label,
body.single-product div.product div.summary table.variations td.label label {
	font-family: 'Bebas Neue', Impact, sans-serif !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	letter-spacing: 0.7px !important;
	text-transform: uppercase !important;
	color: #18181b !important;
	margin: 0 !important;
}

body.single-product div.product div.summary table.variations td.value {
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	background: transparent !important;
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 8px !important;
}

body.single-product div.product div.summary table.variations td.value select {
	visibility: visible !important;
	opacity: 1 !important;
	display: block !important;
	width: 100% !important;
	min-width: 0 !important;
	height: 48px !important;
	min-height: 48px !important;
	padding: 0 38px 0 14px !important;
	background-color: #ffffff !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2318181b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 12px center !important;
	border: 1.5px solid #d4d4d8 !important;
	border-radius: 10px !important;
	color: #18181b !important;
	font-size: 14.5px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	box-shadow: 0 1px 3px rgba(24, 24, 27, 0.04) !important;
	transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
}

body.single-product div.product div.summary table.variations td.value select:focus {
	border-color: #dc1212 !important;
	box-shadow: 0 0 0 3px rgba(220, 18, 18, 0.12) !important;
	outline: none !important;
}

body.single-product div.product div.summary a.reset_variations {
	display: inline-flex !important;
	align-items: center !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	color: #dc1212 !important;
	text-decoration: underline !important;
	margin-top: 2px !important;
}

body.single-product div.product div.summary .single_variation_wrap {
	width: 100% !important;
}

body.single-product div.product div.summary .woocommerce-variation-add-to-cart {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: stretch !important;
	gap: 12px !important;
	width: 100% !important;
}

body.single-product div.product div.summary .woocommerce-variation-price {
	margin-bottom: 12px !important;
}

body.single-product div.product div.summary .woocommerce-variation-availability p.stock {
	font-size: 13px !important;
	font-weight: 700 !important;
	color: #15803d !important;
	margin: 0 0 12px !important;
}

body.single-product div.product div.summary .woocommerce-variation-availability p.stock.out-of-stock {
	color: #dc1212 !important;
}

/* Prevent WooCommerce ul.products::before/::after clearfix from occupying Grid Column 1 */
.woocommerce .related.products ul.products::before,
.woocommerce .related.products ul.products::after,
.woocommerce .upsells.products ul.products::before,
.woocommerce .upsells.products ul.products::after {
    content: none !important;
    display: none !important;
}
