.rb-inventory-grid {
	display: grid;
	grid-template-columns: repeat(var(--rb-cols, 3), 1fr);
	gap: 24px;
	align-items: stretch;
}

.rb-product-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e6e9ee;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
	transition: box-shadow 0.2s ease;
}

.rb-product-card:hover {
	box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
}

.rb-product-image {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f3f4f6;
}

.rb-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rb-product-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
}

.rb-product-title {
	margin: 0;
	font-size: 1.1em;
	line-height: 1.3;
}

.rb-product-link {
	color: #111827 !important;
	text-decoration: none;
}

.rb-product-link:hover {
	color: #2563eb;
}

.rb-product-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rb-category-chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	font-size: 0.8em;
	border-radius: 999px;
	background: #eef2ff;
	color: #3730a3 !important;
	text-decoration: none;
}

.rb-product-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 8px;
}

.rb-product-sku,
.rb-product-stock {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 0.9em;
	color: #4b5563;
}

.rb-meta-label {
	font-size: 0.7em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #9ca3af;
}

.rb-meta-value {
	color: #374151;
}

.rb-product-price {
	font-size: 1.1em;
	color: #0f172a;
	font-weight: bold;
}

.rb-hidden {
	color: #9ca3af;
	font-weight: 600;
}

.rb-product-specs ul,
.rb-specs-list {
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 0.9em;
	color: #6b7280;
}

.rb-product-specs li {
	margin-bottom: 5px;
}

.rb-product-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	border-radius: 8px;
	background: #111827;
	color: #fff;
	text-decoration: none;
	font-size: 0.9em;
	font-weight: 600;
}

.rb-product-cta:hover {
	background: #1f2937;
}

.rb-inventory-template {
	padding: 32px 0;
}

.rb-container {
	width: min(1200px, 100%);
	margin: 0 auto;
	padding: 0 20px;
}

.rb-single-product {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 24px;
	margin-top: 28px;
}

.rb-single-product-media img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 12px;
}

.rb-single-product-media {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Slider Gallery - High specificity to prevent theme override */
.rb-single-product-media .rb-gallery-slider {
	position: relative !important;
	overflow: hidden !important;
	border-radius: 12px;
}

.rb-single-product-media .rb-gallery-slider .rb-slider-track {
	display: flex !important;
	transition: transform 0.35s ease;
	flex-wrap: nowrap !important;
}

.rb-single-product-media .rb-gallery-slider .rb-slider-slide {
	min-width: 100% !important;
	flex-shrink: 0 !important;
	width: 100% !important;
}

.rb-single-product-media .rb-gallery-slider .rb-slider-slide img {
	width: 100% !important;
	height: auto !important;
	display: block !important;
	max-width: 100% !important;
}

.rb-single-product-media .rb-gallery-slider .rb-slider-nav {
	position: absolute !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	border: none !important;
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	min-height: 36px !important;
	border-radius: 999px !important;
	background: rgba(17, 24, 39, 0.7) !important;
	color: #fff !important;
	font-size: 20px !important;
	line-height: 36px !important;
	cursor: pointer !important;
	z-index: 10 !important;
	padding: 0 !important;
	text-align: center !important;
}

.rb-single-product-media .rb-gallery-slider .rb-slider-nav:hover {
	background: rgba(17, 24, 39, 0.9) !important;
}

.rb-single-product-media .rb-gallery-slider .rb-slider-prev {
	left: 12px !important;
	right: auto !important;
}

.rb-single-product-media .rb-gallery-slider .rb-slider-next {
	right: 12px !important;
	left: auto !important;
}

.rb-single-product-media .rb-gallery-slider .rb-slider-dots {
	position: absolute !important;
	left: 50% !important;
	bottom: 12px !important;
	transform: translateX(-50%) !important;
	display: flex !important;
	gap: 8px !important;
	z-index: 10 !important;
	flex-wrap: nowrap !important;
}

.rb-single-product-media .rb-gallery-slider .rb-slider-dot {
	width: 8px !important;
	height: 8px !important;
	min-width: 8px !important;
	min-height: 8px !important;
	border-radius: 999px !important;
	border: none !important;
	background: rgba(255, 255, 255, 0.6) !important;
	cursor: pointer !important;
	padding: 0 !important;
	flex-shrink: 0 !important;
}

.rb-single-product-media .rb-gallery-slider .rb-slider-dot.is-active {
	background: #fff !important;
}

.rb-single-product-media .rb-slider-thumbs {
	display: flex !important;
	gap: 10px !important;
	margin-top: 12px !important;
	justify-content: center !important;
	flex-wrap: wrap !important;
}

.rb-single-product-media .rb-slider-thumbs .rb-slider-thumb {
	border: 2px solid transparent !important;
	border-radius: 999px !important;
	background: transparent !important;
	padding: 0 !important;
	cursor: pointer !important;
	width: 54px !important;
	height: 54px !important;
	min-width: 54px !important;
	min-height: 54px !important;
	overflow: hidden !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0 !important;
}

.rb-single-product-media .rb-slider-thumbs .rb-slider-thumb img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	border-radius: 999px !important;
	display: block !important;
}

.rb-single-product-media .rb-slider-thumbs .rb-slider-thumb.is-active {
	border-color: #2563eb !important;
}

.rb-single-product-info {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 18px;
	border-radius: 12px;
	background: #fafafa52;
}

.rb-specs-title {
	margin: 0 0 6px;
	font-size: 1em;
	color: #111827;
}

.rb-similar-products {
	margin-top: 32px;
}

.rb-section-title {
	margin: 0 0 16px;
	font-size: 1.2em;
	color: #111827;
}

.rb-similar-grid {
	--rb-cols: 4;
}

@media (max-width: 768px) {
	.rb-inventory-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.rb-single-product {
		grid-template-columns: 1fr;
	}

	.rb-similar-grid {
		--rb-cols: 2;
	}
}

@media (max-width: 480px) {
	.rb-inventory-grid {
		grid-template-columns: 1fr;
	}

	.rb-similar-grid {
		--rb-cols: 1;
	}
}
