/**
 * Custom CSS Variables and Styles
 * Rebooster Marketplace Theme
 */

/* Brand Color Variables */
:root {
	--rebooster-blue: #1b3e74;
	--rebooster-red: #cb2033;
	--rebooster-gold: #f6b61b;
}

/* Custom Logo Styling */
.custom-logo-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
}

.custom-logo {
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: min(100%, 160px);
	max-height: 40px;
	object-fit: contain;
	object-position: center;
	border-radius: 0.75rem;
}

/* ==========================================================================
   WooCommerce General Styling
   ========================================================================== */

.woocommerce-wrapper {
	background: transparent;
}

.woocommerce .woocommerce-result-count {
	color: #64748b;
	font-size: 0.875rem;
	margin-bottom: 1rem;
}

.woocommerce .woocommerce-ordering {
	margin-bottom: 1rem;
}

.woocommerce .woocommerce-ordering select {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 0.5rem;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	color: #334155;
}

/* ==========================================================================
   WooCommerce Messages & Notices
   ========================================================================== */

.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
	background-color: #f0f9ff;
	border-top-color: var(--rebooster-blue);
	color: #1e293b;
	border-radius: 0.5rem;
	padding: 1rem 1.5rem;
	margin-bottom: 1.5rem;
}

.woocommerce .woocommerce-error {
	background-color: #fef2f2;
	border-top-color: var(--rebooster-red);
	color: #991b1b;
	border-radius: 0.5rem;
	padding: 1rem 1.5rem;
	margin-bottom: 1.5rem;
}

/* ==========================================================================
   WooCommerce Buttons
   ========================================================================== */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	background-color: var(--rebooster-blue) !important;
	color: #ffffff !important;
	border-radius: 0.5rem;
	padding: 0.75rem 1.5rem;
	font-weight: 600;
	font-size: 0.875rem;
	transition: all 0.3s ease;
	border: none;
	text-decoration: none;
	display: inline-block;
	text-align: center;
	cursor: pointer;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
	background-color: #152e5a !important;
	color: #ffffff !important;
}

.woocommerce a.button.disabled,
.woocommerce button.button.disabled,
.woocommerce a.button:disabled,
.woocommerce button.button:disabled {
	background-color: #94a3b8 !important;
	cursor: not-allowed;
}

/* ==========================================================================
   WooCommerce Shop / Products Grid
   ========================================================================== */
.woocommerce .products ul,
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); /* wider cards */
    gap: 1.5rem;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce ul.products li.product {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
    position: relative;
    overflow: hidden;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: var(--rebooster-blue);
    transform: translateY(-2px);
}

/* Product Image */
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product img {
    width: 100%;        /* keep full width of container */
    height: auto;       /* let height adjust naturally */
    max-height: 400px;  /* cap the height */
    object-fit: cover;  /* keeps proportions */
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    display: block;
}

/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    padding: 0;
    line-height: 1.4;
}

.woocommerce ul.products li.product a {
    text-decoration: none;
    color: inherit;
}

.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title,
.woocommerce ul.products li.product a:hover h2 {
    color: var(--rebooster-blue);
}

/* Product Price */
.woocommerce ul.products li.product .price {
    color: var(--rebooster-blue);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.5rem 0 1rem 0;
    display: block;
}

.woocommerce ul.products li.product .price del {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    color: var(--rebooster-red);
}

/* Product Rating */
.woocommerce ul.products li.product .star-rating {
    margin: 0.5rem auto;
    color: var(--rebooster-gold);
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.add_to_cart_button {
    margin-top: auto;
    width: 100%;
    padding: 0.75rem 1rem !important;
}

/* Sale Badge */
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
    background-color: var(--rebooster-red);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    min-width: auto;
    min-height: auto;
    line-height: 1.5;
}

/* ==========================================================================
   WooCommerce Single Product
   ========================================================================== */

.woocommerce div.product {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 1rem;
	padding: 2rem;
}

.woocommerce div.product div.images {
	margin-bottom: 2rem;
}

.woocommerce div.product div.images img {
	border-radius: 0.75rem;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--rebooster-blue);
	font-size: 1.5rem;
	font-weight: 700;
}

.woocommerce div.product .product_title {
	color: #1e293b;
	font-size: 1.75rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.woocommerce div.product .woocommerce-product-details__short-description {
	color: #64748b;
	margin-bottom: 1.5rem;
	line-height: 1.6;
}

.woocommerce div.product form.cart {
	margin-top: 1.5rem;
}

.woocommerce div.product form.cart .quantity input {
	border: 1px solid #e2e8f0;
	border-radius: 0.5rem;
	padding: 0.5rem;
	width: 80px;
}

/* Product Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
	padding: 0;
	margin: 2rem 0 1rem 0;
	list-style: none;
	display: flex;
	gap: 0.5rem;
	border-bottom: 1px solid #e2e8f0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	background: transparent;
	border: none;
	margin: 0;
	padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 0.75rem 1.5rem;
	color: #64748b;
	text-decoration: none;
	font-weight: 500;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--rebooster-blue);
	border-bottom-color: var(--rebooster-blue);
}

.woocommerce div.product .woocommerce-tabs .panel {
	padding: 1.5rem 0;
}

/* ==========================================================================
   WooCommerce Cart
   ========================================================================== */

.woocommerce table.shop_table {
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	overflow: hidden;
	border-collapse: separate;
	width: 100%;
}

.woocommerce table.shop_table th {
	background: #f8fafc;
	color: #334155;
	font-weight: 600;
	padding: 1rem;
	text-align: left;
	border-bottom: 1px solid #e2e8f0;
}

.woocommerce table.shop_table td {
	padding: 1rem;
	vertical-align: middle;
	border-bottom: 1px solid #e2e8f0;
}

.woocommerce table.shop_table tbody tr:last-child td {
	border-bottom: none;
}

.woocommerce table.shop_table img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 0.5rem;
}

.woocommerce .cart-collaterals {
	margin-top: 2rem;
}

.woocommerce .cart-collaterals .cart_totals {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	padding: 1.5rem;
}

.woocommerce .cart-collaterals .cart_totals h2 {
	color: #1e293b;
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

/* ==========================================================================
   WooCommerce Checkout
   ========================================================================== */

.woocommerce form.checkout,
.woocommerce-page form.checkout {
	background: transparent;
	border: none;
	padding: 0;
}

.woocommerce form.checkout .col2-set {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.woocommerce form.checkout .col2-set .col-1,
.woocommerce form.checkout .col2-set .col-2 {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	padding: 1.5rem;
}

.woocommerce form.checkout h3 {
	color: #1e293b;
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #e2e8f0;
}

.woocommerce form .form-row {
	margin-bottom: 1rem;
}

.woocommerce form .form-row label {
	color: #334155;
	font-weight: 500;
	margin-bottom: 0.5rem;
	display: block;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	width: 100%;
	border: 1px solid #e2e8f0;
	border-radius: 0.5rem;
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	transition: border-color 0.3s;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
	border-color: var(--rebooster-blue);
	outline: none;
	box-shadow: 0 0 0 3px rgba(27, 62, 116, 0.1);
}

.woocommerce-checkout #payment {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	padding: 1.5rem;
}

.woocommerce-checkout #payment ul.payment_methods {
	padding: 0;
	margin: 0 0 1.5rem 0;
	list-style: none;
	border: none;
}

.woocommerce-checkout #payment ul.payment_methods li {
	padding: 1rem;
	margin-bottom: 0.5rem;
	background: #f8fafc;
	border-radius: 0.5rem;
}

.woocommerce #order_review,
.woocommerce #order_review_heading {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	padding: 1.5rem;
	margin-top: 1.5rem;
}

.woocommerce #order_review_heading {
	margin-bottom: 0;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.woocommerce #order_review {
	margin-top: 0;
	border-top: none;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

/* ==========================================================================
   WooCommerce My Account
   ========================================================================== */

.woocommerce-account .woocommerce-MyAccount-navigation {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	overflow: hidden;
	margin-bottom: 2rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
	border-bottom: 1px solid #e2e8f0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
	border-bottom: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
	display: block;
	padding: 1rem 1.5rem;
	color: #334155;
	text-decoration: none;
	transition: all 0.3s;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
	background: var(--rebooster-blue);
	color: #ffffff;
}

.woocommerce-account .woocommerce-MyAccount-content {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	padding: 1.5rem;
}

/* ==========================================================================
   WooCommerce Pagination
   ========================================================================== */

.woocommerce nav.woocommerce-pagination {
	margin-top: 2rem;
}

.woocommerce nav.woocommerce-pagination ul {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
	border: none;
}

.woocommerce nav.woocommerce-pagination ul li {
	border: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 0.75rem;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 0.5rem;
	color: #334155;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
	background: var(--rebooster-blue);
	color: #ffffff;
	border-color: var(--rebooster-blue);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--rebooster-blue);
	color: #ffffff;
	border-color: var(--rebooster-blue);
}

/* ==========================================================================
   WooCommerce Breadcrumb
   ========================================================================== */

.woocommerce .woocommerce-breadcrumb {
	color: #64748b;
	font-size: 0.875rem;
	margin-bottom: 1.5rem;
}

.woocommerce .woocommerce-breadcrumb a {
	color: var(--rebooster-blue);
	text-decoration: none;
}

.woocommerce .woocommerce-breadcrumb a:hover {
	text-decoration: underline;
}

/* ==========================================================================
   Related Products
   ========================================================================== */

.woocommerce section.related,
.woocommerce section.up-sells {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid #e2e8f0;
}

.woocommerce section.related h2,
.woocommerce section.up-sells h2 {
	color: #1e293b;
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
}

/* ==========================================================================
   Star Rating
   ========================================================================== */

.woocommerce .star-rating {
	color: var(--rebooster-gold);
}

.woocommerce .star-rating span {
	color: var(--rebooster-gold);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
	}

	.woocommerce form.checkout .col2-set {
		grid-template-columns: 1fr;
	}

	.woocommerce div.product {
		padding: 1rem;
	}

	.woocommerce table.shop_table {
		font-size: 0.875rem;
	}

	.woocommerce table.shop_table img {
		width: 50px;
		height: 50px;
	}
}

@media (max-width: 480px) {
	.woocommerce ul.products {
		grid-template-columns: 1fr !important;
	}
}

/* ==========================================================================
   Shared Theme Mobile UX
   ========================================================================== */

html,
body.rebooster-theme-shell {
	overflow-x: hidden;
}

body.rebooster-theme-shell main {
	min-width: 0;
}

body.rebooster-theme-shell img,
body.rebooster-theme-shell svg,
body.rebooster-theme-shell video,
body.rebooster-theme-shell iframe {
	max-width: 100%;
}

body.rebooster-theme-shell .overflow-x-auto {
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

body.rebooster-theme-shell .overflow-x-auto::-webkit-scrollbar {
	height: 0.5rem;
}

body.rebooster-theme-shell .overflow-x-auto::-webkit-scrollbar-thumb {
	background: rgba(27, 62, 116, 0.28);
	border-radius: 999px;
}

.rebooster-mobile-topbar {
	padding-top: env(safe-area-inset-top, 0);
}

.rebooster-mobile-topbar p {
	margin: 0;
}

.rebooster-mobile-brand .custom-logo-link {
	justify-content: center;
}

.rebooster-mobile-brand .custom-logo {
	max-width: min(100%, 124px);
	max-height: 30px;
}

.rebooster-mobile-menu-trigger,
.rebooster-mobile-menu-spacer {
	width: 6rem;
}

.rebooster-mobile-menu-spacer {
	height: 1px;
}

.rebooster-homepage {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: #0f172a;
	overflow-x: clip;
}

.rebooster-listings-carousel {
	display: flex;
	align-items: stretch;
	gap: 1rem;
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: 0.25rem;
	scroll-behavior: smooth;
	scroll-snap-type: x proximity;
	scroll-padding-inline: 0.25rem;
	-webkit-overflow-scrolling: touch;
}

.rebooster-listings-carousel__card {
	flex: 0 0 min(22rem, calc(100% - 2rem));
	min-width: min(22rem, calc(100% - 2rem));
	max-width: min(22rem, calc(100% - 2rem));
	height: 100%;
	align-self: stretch;
	scroll-snap-align: start;
}

.rebooster-upgrade-card-media {
	position: relative;
}

.rebooster-upgrade-card-badge {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 1;
	max-width: calc(100% - 1.5rem);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	letter-spacing: 0.04em;
}

.rebooster-upgrade-card-title {
	display: -webkit-box;
	line-height: 1.375rem;
	min-height: calc(1.375rem * 2);
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.rebooster-upgrade-card-subcategory {
	display: -webkit-box;
	min-height: calc(1.125rem * 2);
	line-height: 1.125rem;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.rebooster-upgrade-card-description {
	display: -webkit-box;
	min-height: calc(1.375rem * 4);
	line-height: 1.375rem;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.rebooster-listings-list-button {
	min-width: 7.5rem;
}

.rebooster-marketplace-loading {
	opacity: 0.65;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.rebooster-marketplace-results-wrap {
	position: relative;
}

.rebooster-marketplace-results-scroll-indicator {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 1.75rem 0 0.75rem;
	color: #64748b;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	background: linear-gradient(0deg, rgba(248, 250, 252, 0.97) 28%, rgba(248, 250, 252, 0));
	opacity: 0;
	pointer-events: none;
	transform: translateY(0.3rem);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.rebooster-marketplace-results-scroll-indicator__icon {
	font-size: 0.75rem;
	line-height: 1;
}

.rebooster-marketplace-sidebar-scroll-wrap {
	position: relative;
}

.rebooster-marketplace-sidebar-scroll-indicator {
	position: absolute;
	left: 0;
	right: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.75rem 0;
	color: #64748b;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.rebooster-marketplace-sidebar-scroll-indicator--top {
	top: 0;
	padding-bottom: 1.75rem;
	background: linear-gradient(180deg, #ffffff 34%, rgba(255, 255, 255, 0));
	transform: translateY(-0.3rem);
}

.rebooster-marketplace-sidebar-scroll-indicator__icon {
	font-size: 0.75rem;
	line-height: 1;
}

[data-category-scroll-wrap][data-scrollable="true"][data-scroll-top="true"] .rebooster-marketplace-sidebar-scroll-indicator--top {
	opacity: 1;
	transform: translateY(0);
}

[data-results-scroll-wrap][data-scrollable="true"][data-scroll-bottom="true"] .rebooster-marketplace-results-scroll-indicator {
	opacity: 1;
	transform: translateY(0);
}

@media (min-width: 1024px) {
	.rebooster-marketplace-layout {
		align-items: start;
	}

	.rebooster-marketplace-sidebar {
		position: sticky;
		top: 1.5rem;
		align-self: start;
	}

	.rebooster-marketplace-sidebar-content {
		overflow: visible;
	}

	.rebooster-marketplace-sidebar-scroll {
			max-height: calc(100vh - 8rem);
			overflow-y: auto;
			scrollbar-width: thin;
	}

	.rebooster-marketplace-sidebar-scroll::-webkit-scrollbar {
		width: 0.4rem;
	}

	.rebooster-marketplace-sidebar-scroll::-webkit-scrollbar-thumb {
		background: rgba(100, 116, 139, 0.26);
		border-radius: 999px;
	}

	.rebooster-marketplace-results {
		max-height: calc(100vh - 8rem);
		overflow-y: auto;
		padding-right: 0.375rem;
		overscroll-behavior: contain;
		scrollbar-width: thin;
	}

	.rebooster-marketplace-results::-webkit-scrollbar {
		width: 0.5rem;
	}

	.rebooster-marketplace-results::-webkit-scrollbar-thumb {
		background: rgba(27, 62, 116, 0.24);
		border-radius: 999px;
	}
}

@media (max-width: 1023px) {
	.rebooster-marketplace-results-scroll-indicator {
		display: none;
	}

	.rebooster-marketplace-results {
		max-height: none;
		overflow: visible;
		padding-right: 0;
	}

	.rebooster-marketplace-sidebar-content {
		overflow: hidden;
	}

	.rebooster-marketplace-sidebar-scroll {
		max-height: none;
		overflow: visible;
	}

	.rebooster-marketplace-sidebar-scroll-indicator {
		display: none;
	}

	.rebooster-upgrade-row-actions {
		width: 100%;
		flex-direction: column;
		align-items: stretch;
	}

	.rebooster-upgrade-row-actions > * {
		justify-content: center;
		text-align: center;
	}
}

@media (min-width: 768px) {
	.rebooster-listings-carousel {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: 1fr;
		overflow: visible;
		padding-bottom: 0;
		scroll-snap-type: none;
	}

	.rebooster-listings-carousel__card {
		flex: none;
		min-width: 0;
		max-width: none;
	}
}

@media (min-width: 1024px) {
	.rebooster-listings-carousel {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.rebooster-listings-carousel__card {
		min-width: 0;
	}
}

@media (min-width: 1280px) {
	.rebooster-listings-carousel {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.rebooster-listings-carousel__card {
		min-width: 0;
	}
}

@media (max-width: 767px) {
	body.rebooster-theme-shell main {
		padding-top: calc(env(safe-area-inset-top, 0px) + 4.5rem);
	}

	body.rebooster-theme-shell #sidebar {
		width: min(20rem, calc(100vw - 1rem));
		max-width: calc(100vw - 1rem);
		box-shadow: 0 24px 60px rgba(15, 23, 42, 0.32);
	}

	.rebooster-mobile-topbar {
		left: 0;
		right: 0;
		box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
	}

	.rebooster-marketplace-active-filters > .ml-auto {
		margin-left: 0;
		width: 100%;
	}

	.rebooster-marketplace-pagination {
		width: 100%;
		justify-content: flex-start;
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 0.25rem;
		-webkit-overflow-scrolling: touch;
	}

	body.rebooster-theme-shell #toggle-sidebar {
		display: none !important;
	}

	body.rebooster-theme-shell input,
	body.rebooster-theme-shell select,
	body.rebooster-theme-shell textarea,
	body.rebooster-theme-shell button {
		font-size: 16px;
	}

	body.rebooster-theme-shell .prose table,
	body.rebooster-theme-shell .woocommerce-wrapper table,
	body.rebooster-theme-shell .woocommerce table.shop_table {
		display: block;
		width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.rebooster-theme-shell .prose pre {
		overflow-x: auto;
	}

	.woocommerce .products ul,
	.woocommerce ul.products {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)) !important;
	}

	.woocommerce div.product .woocommerce-tabs ul.tabs,
	.woocommerce nav.woocommerce-pagination ul,
	.woocommerce-account .woocommerce-MyAccount-navigation ul {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation ul li {
		flex: 0 0 auto;
	}

	.woocommerce table.shop_table td,
	.woocommerce table.shop_table th {
		white-space: nowrap;
	}

	.rebooster-homepage .rb-home-section {
		padding: 48px 16px !important;
	}

	.rebooster-homepage .rb-home-hero-grid,
	.rebooster-homepage .rb-home-card-grid {
		grid-template-columns: 1fr !important;
	}

	.rebooster-homepage .rb-home-title {
		font-size: 2.4rem !important;
		line-height: 1.1 !important;
	}

	.rebooster-homepage .rb-home-lede {
		font-size: 1rem !important;
	}

	.rebooster-homepage .rb-home-actions,
	.rebooster-homepage .rb-home-cta-actions,
	.rebooster-homepage .rb-home-cta-row {
		flex-direction: column !important;
		align-items: stretch !important;
	}

	.rebooster-homepage .rb-home-actions a,
	.rebooster-homepage .rb-home-cta-actions a {
		width: 100%;
		text-align: center;
	}

	.rebooster-homepage .rb-home-media {
		min-height: 220px !important;
		padding: 0 !important;
	}

	.rebooster-listings-list-button {
		width: 100%;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.rebooster-homepage .rb-home-hero-grid {
		grid-template-columns: 1fr !important;
	}

	.rebooster-homepage .rb-home-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 640px) {
	body.rebooster-theme-shell .prose table th,
	body.rebooster-theme-shell .prose table td {
		padding: 0.625rem;
		font-size: 0.875rem;
	}

	.woocommerce div.product {
		padding: 1rem;
	}

	.woocommerce div.product .product_title {
		font-size: 1.5rem;
	}

	.woocommerce .cart-collaterals .cart_totals,
	.woocommerce-checkout #payment,
	.woocommerce #order_review,
	.woocommerce #order_review_heading,
	.woocommerce-account .woocommerce-MyAccount-content {
		padding: 1rem;
	}

	.rebooster-homepage .rb-home-title {
		font-size: 2rem !important;
	}

	.rebooster-homepage .rb-home-card-grid {
		gap: 12px !important;
	}
}

body.rebooster-theme-dialog-open {
	overflow: hidden;
}

.rebooster-theme-dialog {
	position: fixed;
	inset: 0;
	z-index: 120;
	display: none;
	align-items: flex-end;
	justify-content: center;
	padding: 1rem;
}

.rebooster-theme-dialog.is-visible {
	display: flex;
}

.rebooster-theme-dialog__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.64);
	backdrop-filter: blur(2px);
}

.rebooster-theme-dialog__panel {
	position: relative;
	display: flex;
	max-height: calc(100vh - 2rem);
	width: min(100%, 34rem);
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	border-radius: 1.75rem;
	background: #ffffff;
	box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.rebooster-theme-dialog__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 1.25rem 1rem;
	border-bottom: 1px solid #f1f5f9;
}

.rebooster-theme-dialog__copy {
	min-width: 0;
}

.rebooster-theme-dialog__eyebrow {
	display: none;
	margin: 0 0 0.375rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--rebooster-blue);
}

.rebooster-theme-dialog__eyebrow.is-visible {
	display: block;
}

.rebooster-theme-dialog__title {
	margin: 0;
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.2;
	color: #0f172a;
}

.rebooster-theme-dialog__message {
	margin: 0.625rem 0 0;
	font-size: 0.95rem;
	line-height: 1.65;
	white-space: pre-line;
	color: #475569;
}

.rebooster-theme-dialog__input-wrap {
	margin-top: 1rem;
}

.rebooster-theme-dialog__input-label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.88rem;
	font-weight: 600;
	color: #0f172a;
}

.rebooster-theme-dialog__input {
	display: block;
	width: 100%;
	min-height: 6rem;
	padding: 0.9rem 1rem;
	border: 1px solid #cbd5e1;
	border-radius: 1rem;
	background: #ffffff;
	color: #0f172a;
	font-size: 0.95rem;
	line-height: 1.5;
	resize: vertical;
}

.rebooster-theme-dialog__input:focus {
	outline: none;
	border-color: var(--rebooster-blue);
	box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.rebooster-theme-dialog__input-hint {
	margin: 0.5rem 0 0;
	font-size: 0.82rem;
	line-height: 1.5;
	color: #64748b;
}

.rebooster-theme-dialog__close {
	display: inline-flex;
	height: 2.75rem;
	width: 2.75rem;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: #ffffff;
	color: #94a3b8;
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.rebooster-theme-dialog__close svg {
	height: 1.25rem;
	width: 1.25rem;
}

.rebooster-theme-dialog__close:hover {
	border-color: #cbd5e1;
	background: #f8fafc;
	color: #475569;
}

.rebooster-theme-dialog__actions {
	display: flex;
	flex-direction: column-reverse;
	gap: 0.75rem;
	padding: 1rem 1.25rem 1.25rem;
	background: #f8fafc;
}

.rebooster-theme-dialog__button {
	display: inline-flex;
	min-height: 2.875rem;
	width: 100%;
	align-items: center;
	justify-content: center;
	padding: 0.8rem 1.1rem;
	border-radius: 0.95rem;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.2;
	transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.rebooster-theme-dialog__button:hover {
	transform: translateY(-1px);
}

.rebooster-theme-dialog__button--primary {
	border: 1px solid var(--rebooster-blue);
	background: var(--rebooster-blue);
	color: #ffffff;
}

.rebooster-theme-dialog__button--primary:hover {
	background: #0b2f6b;
	border-color: #0b2f6b;
}

.rebooster-theme-dialog[data-tone="success"] .rebooster-theme-dialog__button--primary {
	border-color: #10b981;
	background: #10b981;
}

.rebooster-theme-dialog[data-tone="success"] .rebooster-theme-dialog__button--primary:hover {
	border-color: #059669;
	background: #059669;
}

.rebooster-theme-dialog[data-tone="danger"] .rebooster-theme-dialog__button--primary {
	border-color: #dc2626;
	background: #dc2626;
}

.rebooster-theme-dialog[data-tone="danger"] .rebooster-theme-dialog__button--primary:hover {
	border-color: #b91c1c;
	background: #b91c1c;
}

.rebooster-theme-dialog__button--secondary {
	border: 1px solid #cbd5e1;
	background: #ffffff;
	color: #334155;
}

.rebooster-theme-dialog__button--secondary:hover {
	background: #f8fafc;
}

.rebooster-theme-dialog[data-actions="one"] .rebooster-theme-dialog__actions {
	justify-content: flex-end;
}

.rebooster-theme-dialog[data-actions="one"] .rebooster-theme-dialog__button--primary {
	width: auto;
	min-width: 7.5rem;
	max-width: 100%;
	margin-left: auto;
	padding-inline: 1.5rem;
}

.rebooster-theme-dialog__button.is-hidden,
.rebooster-theme-dialog__close.is-hidden,
.rebooster-theme-dialog__input-wrap.is-hidden,
.rebooster-theme-dialog__input-hint.is-hidden {
	display: none;
}

@media (min-width: 640px) {
	.rebooster-theme-dialog {
		align-items: center;
		padding: 1.5rem;
	}

	.rebooster-theme-dialog__panel {
		max-height: calc(100vh - 3rem);
	}

	.rebooster-theme-dialog__header {
		padding: 1.5rem 1.5rem 1rem;
	}

	.rebooster-theme-dialog__actions {
		flex-direction: row;
		justify-content: flex-end;
		padding: 1rem 1.5rem 1.5rem;
	}

	.rebooster-theme-dialog__button {
		width: auto;
		min-width: 8.5rem;
	}

	.rebooster-theme-dialog[data-actions="one"] .rebooster-theme-dialog__button--primary {
		min-width: 7.25rem;
	}
}
