/* ==========================================================================
   ChilliYard Theme Layer
   --------------------------------------------------------------------------
   Loaded AFTER bootstrap.min.css + style.css + plugin CSS.
   Purpose: modern visual polish (colour, type, borders, radius, elevation,
   motion) WITHOUT touching layout, breakpoints, element dimensions or any
   class/ID used by JavaScript.

   Rule of thumb for this file:
     ✔ colour, background, border, radius, shadow, font, transition
     ✘ width/height, margin/padding of layout blocks, display, position,
       breakpoints (those stay owned by style.css / Bootstrap)

   1.  Design tokens          (edit these first — everything else follows)
   2.  Base & typography
   3.  Accessibility helpers
   4.  Header & desktop nav
   5.  Dropdowns
   6.  Buttons
   7.  Forms
   8.  Cards, tiles, tables, modals
   9.  Flash messages
   10. Mobile side drawer
   11. Mobile bottom nav (.nav1)
   12. Footer
   13. Preloader
   14. Reduced motion
   ========================================================================== */


/* 1. DESIGN TOKENS ========================================================= */
:root {
	/* Brand */
	--brand-900: #062a35;          /* header / status bar */
	--brand-800: #0a3a48;
	--accent: #d92d20;             /* chilli red — 4.9:1 on white */
	--accent-hover: #b42318;
	--accent-active: #912018;
	--accent-soft: #fef3f2;        /* tinted backgrounds */
	--accent-contrast: #ffffff;    /* text on accent */

	/* Surfaces */
	--bg-primary: #ffffff;
	--bg-secondary: #f8fafc;
	--bg-subtle: #f1f5f9;
	--surface: #ffffff;
	--overlay: rgba(15, 23, 42, 0.45);

	/* Text (all ≥ 4.5:1 on --bg-primary) */
	--text-primary: #0f172a;
	--text-secondary: #334155;
	--text-muted: #64748b;
	--text-on-dark: #ffffff;
	--text-on-dark-muted: rgba(255, 255, 255, 0.72);

	/* Borders */
	--border: #e2e8f0;
	--border-strong: #cbd5e1;

	/* Status */
	--success: #067647;
	--success-soft: #ecfdf3;
	--warning: #b54708;
	--warning-soft: #fffaeb;
	--danger: #b42318;
	--danger-soft: #fef3f2;
	--info: #175cd3;
	--info-soft: #eff8ff;

	/* Header / footer */
	--header-bg: var(--brand-900);
	--header-text: var(--text-on-dark);
	--header-border: rgba(255, 255, 255, 0.08);
	--footer-bg: #0b1220;

	/* Typography */
	--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
		"Noto Sans", "Noto Sans Telugu", "Noto Sans Devanagari",
		"Noto Sans Kannada", "Helvetica Neue", Arial, sans-serif;
	--font-weight-regular: 400;
	--font-weight-medium: 500;
	--font-weight-semibold: 600;
	--font-weight-bold: 700;
	--line-height-body: 1.65;
	--line-height-heading: 1.25;

	/* Radius */
	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 14px;
	--radius-pill: 999px;

	/* Elevation */
	--shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
	--shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
	--shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
	--shadow-lg: 0 12px 32px -8px rgba(15, 23, 42, 0.18), 0 4px 8px -4px rgba(15, 23, 42, 0.06);

	/* Focus ring */
	--focus-ring-color: rgba(217, 45, 32, 0.35);
	--focus-ring: 0 0 0 3px var(--focus-ring-color);

	/* Motion */
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--duration-fast: 120ms;
	--duration-base: 200ms;
	--transition-colors: color var(--duration-fast) ease,
		background-color var(--duration-fast) ease,
		border-color var(--duration-fast) ease,
		box-shadow var(--duration-base) ease;
}


/* 2. BASE & TYPOGRAPHY ===================================================== */
body {
	font-family: var(--font-sans);
	font-weight: var(--font-weight-regular);
	line-height: var(--line-height-body);
	color: var(--text-secondary);
	background-color: var(--bg-primary);
	text-rendering: optimizeLegibility;
	font-feature-settings: "cv11", "ss01";
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: var(--font-sans);
	color: var(--text-primary);
	font-weight: var(--font-weight-semibold);
	line-height: var(--line-height-heading);
	letter-spacing: -0.015em;
}

.title-lg {
	color: var(--text-primary);
	font-weight: var(--font-weight-semibold);
	letter-spacing: -0.02em;
}

a {
	transition: var(--transition-colors);
}

b, strong {
	font-weight: var(--font-weight-semibold);
}

hr {
	border-top-color: var(--border);
}

::selection {
	color: var(--accent-contrast);
	background-color: var(--accent);
}

.text-muted {
	color: var(--text-muted) !important;
}

/* kept from the old inline nav <style> (was applied globally) */
.rounded-circle {
	border-radius: 30px;
}


/* 3. ACCESSIBILITY HELPERS ================================================= */
.skip-link {
	position: absolute;
	left: 1rem;
	top: -100px;
	z-index: 100000001;
	padding: 0.8rem 1.4rem;
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--text-primary);
	font-weight: var(--font-weight-medium);
	box-shadow: var(--shadow-lg);
}

.skip-link:focus {
	top: 1rem;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* Theme strips outlines from some links; give keyboard users a ring back */
.mobile-menu li a:focus-visible,
.nav1 a:focus-visible {
	outline: 2px solid var(--accent) !important;
	outline-offset: -2px;
}


/* 4. HEADER & DESKTOP NAV ================================================== */
.header {
	background-color: var(--header-bg);
	box-shadow: 0 1px 0 var(--header-border);
}

.header-middle {
	border-bottom-color: var(--header-border);
}

.header .logo-text {
	display: block;
	margin: 0;
	color: var(--header-text);
	/* same box as the old <h3> (2.6rem × 1.1) so header height is unchanged */
	font-size: 2.6rem;
	font-weight: var(--font-weight-bold);
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.header .main-nav .menu > li > a,
.header .login-register .menu > li > a {
	color: var(--header-text);
	font-weight: var(--font-weight-medium);
	letter-spacing: 0;
	opacity: 0.86;
	transition: opacity var(--duration-fast) ease;
}

.header .main-nav .menu > li:hover > a,
.header .main-nav .menu > li > a:focus-visible,
.header .login-register .menu > li:hover > a {
	color: var(--header-text);
	opacity: 1;
}

/* Desktop sub-menu panel */
.header .main-nav .menu ul {
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
	background-color: var(--surface);
	overflow: hidden;
}

.header .main-nav .menu ul a {
	color: var(--text-secondary);
}

.header .main-nav .menu ul a:hover,
.header .main-nav .menu ul a:focus-visible {
	color: var(--accent);
	background-color: var(--bg-subtle);
}

.mobile-menu-toggler {
	color: var(--header-text);
	border-radius: var(--radius-sm);
	transition: background-color var(--duration-fast) ease;
}

.mobile-menu-toggler:hover,
.mobile-menu-toggler:focus-visible {
	background-color: rgba(255, 255, 255, 0.08);
}

.header-profile .dropdown-toggle img {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
	transition: box-shadow var(--duration-base) ease;
	object-fit: cover;
}

.header-profile .dropdown-toggle:hover img,
.header-profile .dropdown-toggle:focus-visible img {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
}


/* 5. DROPDOWNS ============================================================= */
.dropdown-menu {
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
	background-color: var(--surface);
}

.cart-dropdown .dropdown-menu {
	border: 1px solid var(--border);
}

.dropdown-cart-products .product-title a {
	color: var(--text-primary);
	font-weight: var(--font-weight-medium);
}

.dropdown-cart-products .product-title a:hover {
	color: var(--accent);
}

.dropdown-cart-action .btn {
	color: var(--text-primary);
}


/* 6. BUTTONS =============================================================== */
.btn {
	font-family: var(--font-sans);
	font-weight: var(--font-weight-medium);
	letter-spacing: 0;
	text-transform: none;
	border-radius: var(--radius-sm);
	transition: var(--transition-colors), transform var(--duration-fast) ease;
}

.btn:focus,
.btn.focus {
	box-shadow: none;
}

.btn:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring) !important;
}

.btn:not(:disabled):not(.disabled):active {
	transform: translateY(1px);
}

.btn-primary {
	color: var(--accent-contrast);
	background-color: var(--accent);
	border-color: var(--accent);
	box-shadow: var(--shadow-xs);
}

.btn-primary:hover,
.btn-primary:focus {
	color: var(--accent-contrast);
	background-color: var(--accent-hover);
	border-color: var(--accent-hover);
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
	background-color: var(--accent-active);
	border-color: var(--accent-active);
}

.btn-outline-primary,
.btn-outline-primary-2 {
	color: var(--accent);
	background-color: transparent;
	border-color: var(--border-strong);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary-2:hover,
.btn-outline-primary-2:focus {
	color: var(--accent-hover);
	background-color: var(--accent-soft);
	border-color: var(--accent);
}

.btn-secondary {
	color: var(--text-primary);
	background-color: var(--surface);
	border-color: var(--border-strong);
	box-shadow: var(--shadow-xs);
}

.btn-secondary:hover,
.btn-secondary:focus {
	color: var(--text-primary);
	background-color: var(--bg-subtle);
	border-color: var(--border-strong);
}

.btn-success { background-color: var(--success); border-color: var(--success); }
.btn-danger  { background-color: var(--danger);  border-color: var(--danger); }
.btn-info    { background-color: var(--info);    border-color: var(--info); color: #fff; }


/* 7. FORMS ================================================================= */
.form-control,
input[type=text],
input[type=tel],
input[type=email],
input[type=number],
input[type=password],
select,
textarea {
	font-family: var(--font-sans);
	color: var(--text-primary);
	background-color: var(--surface);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-md);
	transition: border-color var(--duration-fast) ease, box-shadow var(--duration-base) ease;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
	color: var(--text-muted);
	opacity: 1;
}

.form-control:hover,
input[type=text]:hover,
input[type=tel]:hover,
select:hover,
textarea:hover {
	border-color: #94a3b8;
}

.form-control:focus,
input[type=text]:focus,
input[type=tel]:focus,
input[type=email]:focus,
input[type=number]:focus,
input[type=password]:focus,
select:focus,
textarea:focus {
	border-color: var(--accent);
	box-shadow: var(--focus-ring) !important;
	outline: none;
}

.form-control:disabled,
.form-control[readonly] {
	background-color: var(--bg-subtle);
	color: var(--text-muted);
}

label {
	color: var(--text-primary);
	font-weight: var(--font-weight-medium);
}

label.required::after,
.field_required {
	color: var(--danger);
}

.errorlist li {
	color: var(--danger);
	font-size: 1.3rem;
}


/* 8. CARDS, TILES, TABLES, MODALS ========================================== */
.card {
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background-color: var(--surface);
	box-shadow: var(--shadow-xs);
}

/* Home-page feature tiles */
.element {
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background-color: var(--surface);
	box-shadow: var(--shadow-xs);
	transition: border-color var(--duration-base) ease,
		box-shadow var(--duration-base) ease,
		transform var(--duration-base) var(--ease-out);
}

.element:hover,
.element:focus,
a:focus-visible > .element {
	border-color: var(--border-strong);
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.element {
	min-width: 0;                 /* let the tile shrink to its grid column */
}

/* Tile label: stay inside the tile even for long single words
   (e.g. Kannada "ಮೆಣಸಿನಕಾಯಿಯನ್ನು" on narrow phones). */
.element p {
	width: 100%;
	max-width: 100%;
	padding-left: 0.6rem;
	padding-right: 0.6rem;
	text-align: center;
	color: var(--text-primary);
	font-weight: var(--font-weight-medium);
	line-height: 1.35;
	word-break: break-word;       /* fallback for older Android WebViews */
	overflow-wrap: anywhere;      /* break a long word only when it can't fit */
	hyphens: auto;
}

.element:hover p,
.element:focus p {
	color: var(--accent);
}

.table {
	color: var(--text-secondary);
}

.table th,
.table td {
	border-color: var(--border);
}

.table thead th {
	color: var(--text-primary);
	font-weight: var(--font-weight-semibold);
	background-color: var(--bg-secondary);
	border-bottom: 1px solid var(--border);
}

.modal-backdrop.show {
	opacity: 1;
	background-color: var(--overlay);
}

.modal-content {
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}

.modal-header,
.modal-footer {
	border-color: var(--border);
}

.modal-title {
	color: var(--text-primary);
	font-weight: var(--font-weight-semibold);
}

.badge {
	font-weight: var(--font-weight-medium);
	border-radius: var(--radius-pill);
}

.page-link {
	color: var(--text-secondary);
	border-color: var(--border);
}

.page-item.active .page-link {
	background-color: var(--accent);
	border-color: var(--accent);
}


/* 9. FLASH MESSAGES ======================================================== */
.messages {
	margin: 1.2rem auto;
	padding: 0 1.5rem;
	max-width: 1200px;
}

.messages li {
	margin-bottom: 0.8rem;
	padding: 1rem 1.4rem;
	border: 1px solid var(--border);
	border-left-width: 4px;
	border-radius: var(--radius-md);
	background-color: var(--bg-secondary);
	color: var(--text-primary);
	font-weight: var(--font-weight-medium);
	box-shadow: var(--shadow-xs);
}

.messages li.success { border-color: #abefc6; border-left-color: var(--success); background: var(--success-soft); }
.messages li.info    { border-color: #b2ddff; border-left-color: var(--info);    background: var(--info-soft); }
.messages li.warning { border-color: #fedf89; border-left-color: var(--warning); background: var(--warning-soft); }
.messages li.error   { border-color: #fecdca; border-left-color: var(--danger);  background: var(--danger-soft); }


/* 10. MOBILE SIDE DRAWER =================================================== */
/* Width (280px), slide distance and transition remain in style.css. */
.mobile-menu-container {
	background-color: var(--surface);
	box-shadow: var(--shadow-lg);
	transition-timing-function: var(--ease-out);
}

.mobile-menu-overlay {
	background-color: var(--overlay);
}

button.mobile-menu-close {
	border: 0;
	background: transparent;
	font: inherit;
}

.mobile-menu-close {
	color: var(--text-secondary);
	border-radius: var(--radius-sm);
}

.mobile-menu-close:hover,
.mobile-menu-close:focus-visible {
	color: var(--text-primary);
	background-color: var(--bg-subtle);
}

.mobile-nav.mm-nav {
	padding-left: 10px;
	padding-right: 10px;
}

.mm-profile {
	display: flex;
	flex-direction: row;
	align-items: center;
	color: var(--text-primary);
	font-size: 1.3rem;
	line-height: 1.4;
}

.mm-profile img {
	object-fit: cover;
	box-shadow: 0 0 0 1px var(--border);
}

.mm-profile-name {
	color: var(--text-muted);
	font-weight: var(--font-weight-regular);
}

.mm-profile-title {
	color: var(--text-primary);
	font-weight: var(--font-weight-semibold);
}

.mm-spacer {
	height: 1.8rem;  /* matches the old <br> spacing */
}

.mobile-menu > li > a {
	text-transform: none;
}

.mobile-menu li a {
	color: var(--text-primary);
	border-radius: var(--radius-sm);
	border-bottom-color: transparent;
}

.mobile-menu li a:hover,
.mobile-menu li a:focus {
	color: var(--accent);
	background-color: var(--bg-subtle);
}

.mobile-menu li a[aria-current="page"] {
	color: var(--accent);
	background-color: var(--accent-soft);
}

.mm-item {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	min-height: 30px;
}

.mm-item img {
	flex-shrink: 0;
}

.mm-label {
	font-size: 1.4rem;
	font-weight: var(--font-weight-medium);
	line-height: 1.3;
}

/* Section divider that used to be a bare <hr> inside the <ul> */
.mobile-menu li.mm-divider {
	height: 0;
	margin: 0.4rem 0;
	border-top: 1px solid var(--border);
}


/* 11. MOBILE BOTTOM NAV (.nav1) ============================================ */
/* Dimensions are identical to the previous inline styles
   (55px bar, 10px padding, 35px icons, hidden above 600px). */
.nav1 {
	position: fixed;
	bottom: 0;
	width: 100%;
	height: 55px;
	display: flex;
	overflow-x: auto;
	z-index: 10000000;
}

.nav1-spacer {
	height: 4.6rem;  /* replaces the two <br> tags before the bar */
}

.mobile-list {
	display: none;
	margin: 0;
}

@media only screen and (max-width: 600px) {
	.mobile-list {
		position: fixed;
		bottom: 0;
		left: 0;
		display: flex;
		justify-content: space-around;
		align-items: center;
		width: 100%;
		padding: 10px;
		color: var(--text-primary);
		background-color: rgba(255, 255, 255, 0.94);
		border-top: 1px solid var(--border);
		box-shadow: 0 -4px 16px -6px rgba(15, 23, 42, 0.12);
		-webkit-backdrop-filter: saturate(180%) blur(12px);
		backdrop-filter: saturate(180%) blur(12px);
	}

	.mobile-list i {
		cursor: pointer;
	}
}

.mobile-list a {
	display: block;
	border-radius: var(--radius-md);
	-webkit-tap-highlight-color: transparent;
	transition: opacity var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.mobile-list a:active {
	transform: scale(0.92);
}

.mobile-list img {
	width: 35px;
	height: 35px;
	opacity: 0.78;
	transition: opacity var(--duration-fast) ease;
}

.mobile-list a:hover img,
.mobile-list a[aria-current="page"] img {
	opacity: 1;
}

/* small active-indicator dot under the current tab (no layout shift) */
.mobile-list a[aria-current="page"] {
	position: relative;
}

.mobile-list a[aria-current="page"]::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -6px;
	width: 4px;
	height: 4px;
	margin-left: -2px;
	border-radius: 50%;
	background-color: var(--accent);
}

.bell-notification {
	position: relative;
	color: var(--text-on-dark);
}

.bell-notification::after {
	content: attr(current-count);
	position: absolute;
	top: 0;
	right: 0;
	left: 20px;
	width: 20px;
	height: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	background-color: var(--accent);
	color: var(--accent-contrast);
	font-size: 11px;
	font-weight: var(--font-weight-semibold);
	border: 2px solid var(--surface);
}


/* 12. FOOTER =============================================================== */
.footer-01 {
	background: var(--footer-bg);
}

.footer-01 a {
	color: var(--text-on-dark-muted);
}

.footer-01 a:hover,
.footer-01 a:focus-visible {
	color: var(--text-on-dark);
}

.footer-01 p,
.footer-01 .block-23 ul li,
.footer-01 .block-23 ul li a {
	color: var(--text-on-dark-muted);
}

.footer-01 .footer-heading {
	color: var(--text-on-dark);
	font-size: 1.6rem;
	font-weight: var(--font-weight-semibold);
	letter-spacing: -0.01em;
}

.footer-01 .footer-heading:after {
	background: var(--accent);
	border-radius: 2px;
}

.footer-01 ul.list-unstyled li a {
	color: var(--text-on-dark-muted);
}

.footer-01 .footer-links-col {
	padding-left: 100px;
}

.footer-01 .block-23 ul li {
	display: flex;
	gap: 1rem;
	margin-bottom: 1rem;
}

.footer-01 .block-23 .icon {
	width: 1.6rem;
	padding-top: 0.4rem;
	color: rgba(255, 255, 255, 0.45);
	text-align: center;
}

.footer-01 .copyright {
	color: rgba(255, 255, 255, 0.55);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding-top: 2rem;
}

.footer-01 .copyright .fa-heart {
	color: var(--accent);
	margin: 0 0.3rem;
}


/* 13. PRELOADER ============================================================ */
#preloader {
	background-color: var(--bg-primary);
}


/* 14a. LISTING TOOLBAR (search + filters + count) ========================== */
/* Markup: user_profiles/templates/buy_chilli.html. Reusable on any listing page. */
.listing-toolbar {
	padding-top: 1.6rem;
	padding-bottom: 0.4rem;
}

.listing-toolbar__row {
	display: flex;
	align-items: stretch;
	gap: 0.8rem;
}

.listing-search {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}

.listing-search .form-control,
.listing-search input[type=search] {
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 4.4rem 0 1.4rem;
	font-size: 1.5rem;
	border-radius: var(--radius-md);
}

/* hide the browser's own clear "x" so it doesn't collide with our button */
.listing-search input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }

.listing-search__btn {
	position: absolute;
	top: 0;
	right: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
	background: transparent;
	color: var(--text-muted);
	font-size: 1.6rem;
	cursor: pointer;
	transition: color var(--duration-fast) ease;
}

.listing-search__btn:hover,
.listing-search__btn:focus-visible {
	color: var(--accent);
}

.sidebar-toggler.listing-filter-btn {
	position: relative;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	height: 44px;
	margin: 0;
	padding: 0 1.4rem;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-md);
	background: var(--surface);
	color: var(--text-primary);
	font-size: 1.4rem;
	font-weight: var(--font-weight-medium);
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
	box-shadow: var(--shadow-xs);
	transition: var(--transition-colors);
}

.sidebar-toggler.listing-filter-btn i {
	margin: 0;
	font-size: 1.4rem;
	color: var(--accent);
}

.sidebar-toggler.listing-filter-btn:hover,
.sidebar-toggler.listing-filter-btn:focus-visible,
.sidebar-toggler.listing-filter-btn.active {
	color: var(--text-primary);
	border-color: var(--accent);
	background: var(--accent-soft);
	text-decoration: none;
}

.listing-filter-btn__dot {
	position: absolute;
	top: -4px;
	right: -4px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 2px var(--surface);
}

/* very narrow phones: icon-only filter button so search keeps its width */
@media (max-width: 340px) {
	.listing-filter-btn__label { display: none; }
	.sidebar-toggler.listing-filter-btn { padding: 0 1.3rem; }
}

.listing-count {
	margin: 1rem 0 0;
	color: var(--text-muted);
	font-size: 1.3rem;
	line-height: 1.4;
}

.listing-count strong {
	color: var(--text-primary);
	font-weight: var(--font-weight-semibold);
}

@media (min-width: 768px) {
	.listing-toolbar__row { max-width: 640px; }
}


/* listing toolbar without search: count left, Filters right */
.listing-toolbar__row--split { align-items: center; justify-content: space-between; }
.listing-toolbar__row--split .listing-count { margin: 0; }

/* 14b. POPUPS (SweetAlert2) ============================================== */
/* SweetAlert injects its own CSS after ours, so selectors are prefixed with body. */
body .swal2-popup {
	width: min(92vw, 420px);
	padding: 2.4rem 2rem 2rem;
	border-radius: var(--radius-xl, 16px);
	font-family: var(--font-sans);
	box-shadow: var(--shadow-lg);
}
body .swal2-title {
	padding: 0;
	color: var(--text-primary);
	font-size: 2rem;
	font-weight: var(--font-weight-semibold);
	line-height: 1.3;
}
body .swal2-html-container {
	margin: 0.8rem 0 0;
	padding: 0;
	color: var(--text-secondary);
	font-size: 1.45rem;
	line-height: 1.55;
}
body .swal2-icon { margin: 0 auto 1.4rem; transform: scale(0.8); }
body .swal2-actions { width: 100%; margin: 2rem 0 0; gap: 0.8rem; }
body .swal2-styled { margin: 0; }
body .swal2-styled.swal2-confirm,
body .swal2-styled.swal2-cancel,
body .swal2-styled.swal2-deny {
	flex: 1 1 0;
	min-height: 46px;
	border-radius: var(--radius-md);
	font-size: 1.5rem;
	font-weight: var(--font-weight-semibold);
	box-shadow: none;
}
body .swal2-styled.swal2-confirm { background: var(--accent); }
body .swal2-styled.swal2-confirm:hover { background: var(--accent-hover, var(--accent)); }
body .swal2-styled.swal2-cancel { background: var(--bg-subtle); color: var(--text-primary); }
body .swal2-popup .swal2-actions .swal2-styled:focus { box-shadow: none; outline: none; }
body .swal2-popup .swal2-actions .swal2-styled:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* compact notice popup (e.g. fraud warning): small illustration in a soft circle */
body .swal2-popup.swal-compact { width: min(88vw, 360px); padding: 2rem 1.8rem 1.8rem; }
body .swal-compact .swal2-image.swal-compact__image {
	width: 96px;
	height: 96px;
	margin: 0 auto 1.2rem;
	padding: 1.2rem;
	box-sizing: content-box;
	border-radius: 50%;
	background: var(--warning-soft);
	object-fit: contain;
}
body .swal-compact .swal2-title { font-size: 1.75rem; }
body .swal-compact .swal2-html-container { font-size: 1.35rem; }
body .swal-compact .swal2-actions { margin-top: 1.6rem; }
body .swal-compact .swal2-styled.swal2-confirm { min-height: 42px; font-size: 1.45rem; }

/* error summary inside a popup: list of fields to fix */
.swal-errors { margin: 1.2rem 0 0; padding: 0; list-style: none; text-align: left; }
.swal-errors li + li { margin-top: 0.8rem; }
.swal-errors button {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	width: 100%;
	padding: 1rem 1.2rem;
	border: 1px solid #fecdca;
	border-radius: var(--radius-md);
	background: var(--danger-soft);
	color: var(--text-primary);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: var(--transition-colors);
}
.swal-errors button:hover,
.swal-errors button:focus-visible { border-color: var(--danger); }
.swal-errors i { color: var(--danger); padding-top: 0.3rem; }
.swal-errors strong { display: block; font-size: 1.4rem; font-weight: var(--font-weight-semibold); }
.swal-errors span { display: block; color: var(--danger); font-size: 1.3rem; }

/* 14. REDUCED MOTION ======================================================= */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.element:hover,
	.element:focus {
		transform: none;
	}
}
