html {
	box-sizing: border-box;
}

/* WhatsApp-first listing, quick-view, and deal page actions. */
.deal-card-cta {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	padding: 4px 12px 14px;
}

.deal-card-cta a,
.deal-card-cta button,
.quickview-actions a,
.quickview-actions button {
	box-sizing: border-box;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	letter-spacing: 0;
	text-decoration: none;
}

.deal-card-whatsapp,
.primary-whatsapp {
	background: #19a85a;
	color: #fff !important;
}

.deal-card-call {
	background: #00266e;
	color: #fff !important;
}

.deal-card-secondary,
.secondary-action,
a.deal-card-secondary,
button.deal-card-secondary,
a.secondary-action,
button.secondary-action {
	background: #fff;
	border: 1px solid #e3e7ef;
	color: #182033 !important;
}

.deal-card-cta a,
.deal-card-cta button {
	min-height: 38px;
	font-size: 13px;
	line-height: 18px;
}

/* Borders, not shadows: cards read as clean tiles. */
.dealbrick {
	border: 1px solid #e7eaf1;
	border-radius: 12px;
	box-shadow: none;
	transition: border-color .15s ease;
}

.dealbrick:hover {
	transform: none;
	box-shadow: none;
	border-color: #aeb9cf;
}

.quickview-modern {
	background: #fff;
	border-radius: 16px;
	max-width: 1060px;
	overflow: hidden;
	padding: 0 !important;
}

.quickview-close {
	margin: 16px 0 0 20px;
	background: #fff;
	border: 1px solid #e3e7ef;
	border-radius: 999px;
	color: #182033;
	cursor: pointer;
	font-weight: 700;
	font-size: 13px;
	padding: 9px 20px;
}


.showdeal-grid {

	padding: 24px;
}
.quickview-grid{
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
	gap: 32px;
	padding: 20px 28px 28px;
}

.quickview-media,
.showdeal-media {
	min-width: 0;
}

.quickview-img,
.showdeal-modern .glide-img {
	
	border-radius: 8px;
	display: block;
	height: 560px;
	object-fit: contain;
	width: 100%;
}

.quickview-thumbs {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin: 14px 0 0;
}

.quickview-thumbs .thumbs-click {
	background-position: center;
	background-size: cover;
	border: 2px solid transparent;
	border-radius: 10px;
	cursor: pointer;
	height: 72px;
	margin: 0;
	width: 72px;
}

.quickview-thumbs .glide-selected {
	border-color: #19a85a;
}

.quickview-details,
.showdeal-panel {
	align-self: start;
	background: #fff;
	border: 1px solid #e7eaf1;
	border-radius: 14px;
	padding: 24px;
}

.quickview-kicker {
	color: #647084;
	display: block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

#deal-modal-label,
.showdeal-title {
	color: #111827;
	font-size: 28px;
	font-weight: 800;
	line-height: 34px;
	margin: 8px 0;
	text-transform: capitalize;
}

.quickview-meta {
	color: #647084;
	font-size: 13px;
	margin-bottom: 14px;
}

.quickview-price,
.showdeal-price {
	color: #0f172a !important;
	font-size: 34px !important;
	font-weight: 800 !important;
	line-height: 42px !important;
	margin-bottom: 16px;
}

.quickview-actions {
	display: grid;
	gap: 10px;
	margin: 18px 0 22px;
}

.quickview-actions .primary-whatsapp {
	font-size: 17px;
	min-height: 52px;
}

.quickview-actions .secondary-action {
	font-size: 14px;
	min-height: 46px;
}

.quickview-seller {
	align-items: center;
	border-top: 1px solid #edf0f5;
	display: flex;
	gap: 12px;
	padding-top: 18px;
}

.quickview-seller img {
	border-radius: 50%;
	height: 58px;
	object-fit: cover;
	width: 58px;
}

.quickview-seller span,
.quickview-info li span {
	color: #647084;
	display: block;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
}

.quickview-seller .dealer {
	color: #111827;
	font-size: 18px;
	font-weight: 800;
	text-transform: capitalize;
}

.quickview-info {
	border-top: 1px solid #edf0f5;
	margin-top: 18px;
	padding-top: 18px;
}

.quickview-info li {
	list-style: none;
	margin-bottom: 14px;
}

.quickview-info h4 {
	font-size: 14px;
	font-weight: 800;
	margin: 0 0 8px;
}

.quickview-info .desc {
	color: #374151;
	font-size: 15px;
	line-height: 23px;
}

@media (max-width: 900px) {
	.quickview-grid {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 14px;
	}

	.quickview-img {
		height: auto;
		max-height: 420px;
	}

	.quickview-details {
		border-radius: 8px;
		box-shadow: none;
		padding: 18px;
	}

	#deal-modal-label {
		font-size: 23px;
		line-height: 29px;
	}

	.quickview-actions {
		position: sticky;
		bottom: 0;
		background: #fff;
		padding-bottom: 8px;
		z-index: 10;
	}
}

@media (max-width: 700px) {
	.showdeal-grid {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 14px;
	}

	.showdeal-modern .glide-img {
		height: auto;
		max-height: 420px;
	}

	.showdeal-panel {
		border-radius: 8px;
		box-shadow: none;
		padding: 18px;
	}

	.showdeal-title {
		font-size: 23px;
		line-height: 29px;
	}
}

*, *:before, *:after {
	box-sizing: inherit;
}

body.zx-modal-open {
	overflow: hidden;
}

.row,
.row-fluid,
.container-fluid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 20px;
	width: 100%;
	margin-left: 0;
}

.container-fluid {
	display: block;
	padding-left: 0;
	padding-right: 0;
}

/* ie.css (the Bootstrap 2 float grid) is still linked on legacy pages and would
   otherwise fight this grid: its clearfix pseudos become grid items that steal a
   track, and its percentage widths shrink columns inside their grid areas. */
/* mains.css pins the header (and ie.css the body) to min-width 1024px, which pushes
   centered header content past the viewport on phones. The bars must never force width. */
body,
.top-bar,
.inner-topbar,
#inner-topbar,
#cat-menubar {
	min-width: 0;
}

/* Pages that skip mains.css (signin/signup) otherwise keep the UA's 8px body
   margin, which causes a sideways scroll on phones. */
body {
	margin: 0;
}

.row::before, .row::after,
.row-fluid::before, .row-fluid::after {
	content: none;
}

.span1, .span2, .span3, .span4, .span5, .span6,
.span7, .span8, .span9, .span10, .span11, .span12 {
	float: none;
	width: auto;
	margin-left: 0;
}

.row [class*="span"],
.row-fluid [class*="span"] {
	float: none;
	width: auto;
	margin-left: 0;
	min-height: 0;
}

/* Legacy rows used as plain wrappers (no column children) must not become grids,
   otherwise their children collapse into a single 1/12 track. */
.row:not(:has(> [class*="span"], > [class*="col-"])),
.row-fluid:not(:has(> [class*="span"], > [class*="col-"])) {
	display: block;
}

/* Non-column children inside real grid rows behave like plain blocks (old float layout). */
.row > :not([class*="span"]):not([class*="col-"]),
.row-fluid > :not([class*="span"]):not([class*="col-"]) {
	grid-column: 1 / -1;
}

[class*="span"],
[class*="col-xs"],
[class*="col-md"] {
	min-width: 0;
}

.span1 { grid-column: span 1; }
.span2 { grid-column: span 2; }
.span3 { grid-column: span 3; }
.span4 { grid-column: span 4; }
.span5 { grid-column: span 5; }
.span6 { grid-column: span 6; }
.span7 { grid-column: span 7; }
.span8 { grid-column: span 8; }
.span9 { grid-column: span 9; }
.span10 { grid-column: span 10; }
.span11 { grid-column: span 11; }
.span12 { grid-column: span 12; }

.col-xs-2 { grid-column: span 2; }
.col-xs-3 { grid-column: span 3; }
.col-xs-4 { grid-column: span 4; }
.col-xs-5 { grid-column: span 5; }
.col-xs-6 { grid-column: span 6; }
.col-xs-7 { grid-column: span 7; }
.col-xs-8 { grid-column: span 8; }
.col-xs-9 { grid-column: span 9; }
.col-xs-10 { grid-column: span 10; }
.col-xs-12 { grid-column: span 12; }
.col-md-2 { grid-column: span 2; }
.col-md-3 { grid-column: span 3; }
.col-md-4 { grid-column: span 4; }
.col-md-5 { grid-column: span 5; }
.col-md-6 { grid-column: span 6; }
.col-md-8 { grid-column: span 8; }
.col-md-9 { grid-column: span 9; }
.col-md-10 { grid-column: span 10; }
.col-md-12 { grid-column: span 12; }

/* Nested rows inside deal cards are narrow; the default 20px gutter swallows them. */
.dealbrick .row,
.dealbrick .row-fluid {
	gap: 8px;
}

.hide {
	display: none !important;
}

.modal {
	position: fixed;
	inset: 0;
	z-index: 50000;
	display: none;
	overflow-y: auto;
	background: rgba(8, 13, 28, 0.55);
}

.modal.zx-open {
	display: block !important;
}

.modal .modal-body {
	width: min(760px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	margin: 24px auto;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #e7eaf1;
	border-radius: 16px;
	box-shadow: none;
}

.modal .modal-body-wrap,
.modal .modal-body-wrapx {
	background: #fff;
}

.modal-footer {
	background: #f5f5f5;
	padding: 24px;
	text-align: center;
}

.modal #btn-close,
.btn-modal {
	cursor: pointer;
}

.btn,
.btnx,
.btn-y,
.btn-clear,
.btn-supper,
.btnx-top,
.seller-feed-btn,
.load-more {
	-webkit-tap-highlight-color: transparent;
}

input,
select,
textarea,
button {
	max-width: 100%;
}

img {
	max-width: 100%;
}

@media (max-width: 900px) {
	.row,
	.row-fluid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		gap: 14px;
	}

	.span1, .span2, .span3,
	.col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6 {
		grid-column: span 3;
	}

	.span4, .span5, .span6, .span7, .span8, .span9, .span10, .span11, .span12,
	.col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-12,
	.col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
	.col-md-8, .col-md-9, .col-md-10, .col-md-12 {
		grid-column: 1 / -1;
	}

	.top-bar .inner-topbar,
	.top-bar #inner-topbar,
	.top-wrap,
	.wrap-top,
	#top-line,
	#three-bars-wrap {
		width: min(94%, 980px);
	}

	.right-bar {
		display: none;
	}

	/* The desktop category sidebar becomes a horizontally scrollable chip strip. */
	.row-fluid > .span2:has(> .left-bar) {
		grid-column: 1 / -1;
	}

	.left-bar {
		display: block;
		width: 100%;
		padding-right: 0;
	}

	.left-bar .tab-menu {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		padding: 2px 2px 12px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.left-bar .tab-menu::-webkit-scrollbar {
		display: none;
	}

	.left-bar .tab-menu a.link-tabs {
		flex: 0 0 auto;
		padding: 8px 16px;
		border: 1px solid #d4d9ea;
		border-radius: 999px;
		background: #fff;
		color: #00266e;
		white-space: nowrap;
		line-height: 1.2;
	}

	.left-bar .tab-menu a.link-tabs,
	.left-bar .tab-menu a.link-tabs .cat-text {
		font-size: 13px;
	}

	#fix-span,
	.mid-bar {
		width: 100%;
	}

	.appbody,
	.appcontent {
		min-width: 0;
	}

	#searchbox {
		width: 100%;
		left: 0;
	}

	#searchbox input {
		width: calc(100% - 120px);
	}

	.btn-menu-top {
		text-align: left;
	}

	.btnx-top {
		margin-right: 12px;
		margin-bottom: 10px;
	}

	/* Footer CTA column was hidden on the old mobile footer; keep that behavior. */
	.footer-cta {
		display: none;
	}
}

@media (max-width: 640px) {
	body {
		min-width: 0;
	}

	.row,
	.row-fluid {
		display: block;
	}

	[class*="span"],
	[class*="col-xs"],
	[class*="col-md"] {
		width: 100%;
		margin-left: 0;
	}

	.top-bar {
		position: static;
	}

	.inner-topbar,
	#inner-topbar,
	.top-wrap,
	.wrap-top,
	#top-line,
	#three-bars-wrap,
	.pages-wrap {
		width: 92% !important;
		margin-left: auto;
		margin-right: auto;
	}

	#logo,
	.btn-menu-top,
	#searchbox {
		text-align: center;
	}

	#logo img {
		max-width: 190px;
		height: auto;
	}

	#top-mid-bar {
		margin-top: 0;
		padding-top: 28px;
	}

	#top-line {
		margin-top: 28px;
	}

	#top-line li,
	#view-top-line li {
		font-size: 24px;
		line-height: 30px;
	}

	/* Two-column product grid on phones. Direct-child scoping keeps the nested
	   contact-bar rows inside each card as stacked blocks. */
	#streamdeals {
		padding-left: 12px;
		padding-right: 12px;
	}

	.seller-feed-prompt {
		margin-left: 12px;
		margin-right: 12px;
	}

	#streamdeals > .row-fluid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	#streamdeals > .row-fluid > .item {
		grid-column: span 1;
		width: 100%;
		margin-bottom: 0;
	}

	#streamdeals .dealbrick {
		margin-bottom: 0;
	}

	#streamdeals .dealbrick .selling {
		font-size: 13px;
	}

	#streamdeals .level3-control .price {
		font-size: 18px;
	}

	.item {
		margin-bottom: 18px;
	}

	.dealpic {
		height: auto;
		aspect-ratio: 1.15 / 1;
		object-fit: cover;
	}

	/* Consistent section gutters on phones. */
	.seller-feed-prompt {
		padding: 16px;
	}

	#mid-page,
	#search-wrap,
	.glide-head-wrap {
		padding-left: 4%;
		padding-right: 4%;
	}

	.card-bars {
		width: 100%;
		padding-left: 0;
		padding-right: 0;
	}

	.modal {
		background: rgba(8, 13, 28, 0.45);
	}

	.modal .modal-body {
		width: 100%;
		max-height: 92vh;
		margin: 8vh 0 0 0;
		border-radius: 18px 18px 0 0;
		border-bottom: 0;
		box-shadow: none;
	}

	.deal-explorer .modal-body,
	.entry .modal-body {
		width: 100% !important;
		margin-top: 8vh !important;
		border-radius: 18px 18px 0 0 !important;
	}
}
