/* Moobox Pro – storefront */
:root {
	--mbx-green: #16a34a;
	--mbx-green-d: #15803d;
	--mbx-ink: #0f172a;
	--mbx-muted: #64748b;
	--mbx-line: #e2e8f0;
	--mbx-soft: #f8fafc;
	--mbx-accent: #0ea5e9;
	--mbx-radius: 14px;
}

/* ---------- Buttons ---------- */
.mbx-wa-btn, .mbx-call-btn, .mbx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	border-radius: 10px; font-weight: 700; text-decoration: none !important; line-height: 1.2;
	transition: transform .15s, box-shadow .15s, background .15s; cursor: pointer;
}
.mbx-wa-btn { background: #25d366; color: #fff !important; padding: 10px 16px; }
.mbx-wa-btn:hover { background: #1ebe5b; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37, 211, 102, .35); }
.mbx-wa-lg { padding: 14px 22px; font-size: 16px; }
.mbx-wa-sm { padding: 7px 12px; font-size: 13px; margin-top: 6px; }
.mbx-call-btn { background: #fff; color: var(--mbx-ink) !important; border: 1.5px solid var(--mbx-line); padding: 12px 18px; }
.mbx-call-btn:hover { border-color: var(--mbx-green); }
.mbx-btn { background: var(--mbx-ink); color: #fff !important; padding: 14px 22px; }
.mbx-btn:hover { background: #1e293b; }

.mbx-single-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.mbx-trust-mini { list-style: none; margin: 8px 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 13px; color: var(--mbx-muted); }
.mbx-price-note { font-size: 12px; color: var(--mbx-muted); margin-top: 6px; line-height: 1.8; font-weight: 400; }
.mbx-price-note .mbx-updated { display: block; color: var(--mbx-green-d); }
.mbx-price-inquiry { color: var(--mbx-green-d); font-weight: 700; font-size: .95em; }

/* Floating */
.mbx-wa-float {
	position: fixed; bottom: 20px; right: 20px; z-index: 9990; width: 58px; height: 58px; border-radius: 50%;
	background: #25d366; color: #fff !important; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .2); animation: mbx-pulse 2.5s infinite;
}
.mbx-wa-float svg { width: 32px; height: 32px; }
.mbx-wa-float-tip {
	position: absolute; right: 70px; white-space: nowrap; background: #fff; color: var(--mbx-ink);
	padding: 8px 12px; border-radius: 10px; font-size: 13px; box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
	opacity: 0; pointer-events: none; transition: opacity .2s;
}
.mbx-wa-float:hover .mbx-wa-float-tip { opacity: 1; }
@keyframes mbx-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); } }
@media (prefers-reduced-motion: reduce) { .mbx-wa-float { animation: none; } }

/* ---------- Blocks ---------- */
.mbx-block { margin: 8px 0; }
.mbx-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mbx-block-head a { color: var(--mbx-green-d); font-weight: 600; }
.mbx-h2 { font-size: clamp(20px, 2.4vw, 26px); margin: 0 0 16px; color: var(--mbx-ink); }

/* Hero */
.mbx-hero {
	display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
	background: linear-gradient(135deg, #ecfdf5 0%, #f0f9ff 100%); border-radius: 24px; padding: clamp(24px, 5vw, 56px);
}
.mbx-kicker { display: inline-block; background: #fff; color: var(--mbx-green-d); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 99px; margin-bottom: 12px; }
.mbx-hero h1 { font-size: clamp(26px, 4vw, 42px); line-height: 1.4; margin: 0 0 12px; color: var(--mbx-ink); }
.mbx-hero p { color: #334155; font-size: 16px; line-height: 2; margin: 0 0 18px; }
.mbx-hero-search { display: flex; background: #fff; border-radius: 12px; padding: 6px; box-shadow: 0 6px 24px rgba(15, 23, 42, .08); margin-bottom: 16px; }
.mbx-hero-search input { flex: 1; border: 0 !important; box-shadow: none !important; background: transparent; padding: 10px 12px; min-width: 0; }
.mbx-hero-search button { background: var(--mbx-green); color: #fff; border: 0; border-radius: 8px; padding: 0 20px; font-weight: 700; }
.mbx-hero-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.mbx-hero-img img { width: 100%; height: auto; border-radius: 18px; }

/* Trust */
.mbx-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mbx-trust-item { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--mbx-line); border-radius: var(--mbx-radius); padding: 14px; }
.mbx-trust-ic { font-size: 26px; width: 48px; height: 48px; display: grid; place-items: center; background: var(--mbx-soft); border-radius: 12px; flex: none; }
.mbx-trust-item strong { display: block; color: var(--mbx-ink); }
.mbx-trust-item small { color: var(--mbx-muted); }

/* Categories */
.mbx-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.mbx-cat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px; background: #fff; border: 1px solid var(--mbx-line); border-radius: var(--mbx-radius); text-decoration: none !important; transition: border-color .15s, transform .15s; }
.mbx-cat:hover { border-color: var(--mbx-green); transform: translateY(-2px); }
.mbx-cat img { width: 88px; height: 88px; object-fit: contain; }
.mbx-cat-ph { width: 88px; height: 88px; display: grid; place-items: center; font-size: 34px; background: #ecfdf5; color: var(--mbx-green-d); border-radius: 50%; }
.mbx-cat strong { color: var(--mbx-ink); font-size: 14px; }
.mbx-cat small { color: var(--mbx-muted); }

/* Product slider */
.mbx-slider { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 23%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.mbx-card-p { scroll-snap-align: start; background: #fff; border: 1px solid var(--mbx-line); border-radius: var(--mbx-radius); padding: 12px; display: flex; flex-direction: column; }
.mbx-card-p a { text-decoration: none !important; color: var(--mbx-ink); }
.mbx-card-p img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.mbx-card-p h3 { font-size: 14px; line-height: 1.8; margin: 8px 0; height: 3.6em; overflow: hidden; }
.mbx-card-price { margin-top: auto; font-weight: 700; color: var(--mbx-green-d); }

/* Rate badge */
.mbx-rate-badge { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #f0fdf4; border: 1px dashed #86efac; border-radius: 12px; padding: 12px 16px; color: #14532d; }
.mbx-rate-badge .mbx-wa-sm { margin: 0 auto 0 0; }
.mbx-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mbx-green); box-shadow: 0 0 0 4px rgba(22, 163, 74, .2); }

/* Brands */
.mbx-brand-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mbx-brand-chips a { background: #fff; border: 1px solid var(--mbx-line); border-radius: 99px; padding: 8px 16px; color: var(--mbx-ink); text-decoration: none !important; }
.mbx-brand-chips a:hover { border-color: var(--mbx-green); color: var(--mbx-green-d); }
.mbx-brand-letters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.mbx-brand-letters a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--mbx-line); border-radius: 8px; }
.mbx-brands section ul { columns: 3 220px; list-style: none; padding: 0; }
.mbx-brands section li { margin-bottom: 6px; }

/* WA CTA */
.mbx-wa-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; background: #0f172a; color: #e2e8f0; border-radius: 20px; padding: clamp(20px, 4vw, 36px); }
.mbx-wa-cta h2 { color: #fff; margin: 0 0 6px; }
.mbx-wa-cta p { margin: 0; color: #cbd5e1; }
.mbx-wa-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* FAQ */
.mbx-faq-item { border: 1px solid var(--mbx-line); border-radius: 12px; margin-bottom: 8px; background: #fff; }
.mbx-faq-item summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; position: relative; padding-left: 40px; }
.mbx-faq-item summary::-webkit-details-marker { display: none; }
.mbx-faq-item summary::after { content: '+'; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--mbx-green); }
.mbx-faq-item[open] summary::after { content: '−'; }
.mbx-faq-a { padding: 0 16px 12px; color: #334155; line-height: 2; }

/* SEO text */
.mbx-seo-text { position: relative; }
.mbx-seo-inner { max-height: 220px; overflow: hidden; position: relative; line-height: 2.1; color: #334155; }
.mbx-seo-inner::after { content: ''; position: absolute; inset: auto 0 0 0; height: 80px; background: linear-gradient(transparent, #fff); }
.mbx-seo-text.open .mbx-seo-inner { max-height: none; }
.mbx-seo-text.open .mbx-seo-inner::after { display: none; }
.mbx-more { background: none; border: 1px solid var(--mbx-line); border-radius: 8px; padding: 6px 14px; margin-top: 8px; cursor: pointer; color: var(--mbx-green-d); }
.mbx-cat-seo { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--mbx-line); line-height: 2.1; }

/* ---------- All products list ---------- */
.mbx-cat-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; background: var(--mbx-soft); padding: 10px; border-radius: 12px; }
.mbx-cat-filters input[type=search] { flex: 1 1 220px; }
.mbx-cat-filters select { flex: 0 1 180px; }
.mbx-cat-filters button { background: var(--mbx-green); color: #fff; border: 0; border-radius: 8px; padding: 10px 20px; font-weight: 700; }
.mbx-chk { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.mbx-cat-count { color: var(--mbx-muted); font-size: 13px; }
.mbx-plist { border: 1px solid var(--mbx-line); border-radius: var(--mbx-radius); overflow: hidden; background: #fff; }
.mbx-prow { display: grid; grid-template-columns: 64px minmax(0, 3fr) minmax(0, 1.2fr) minmax(0, 1.4fr) 80px 120px; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--mbx-line); }
.mbx-prow:last-child { border-bottom: 0; }
.mbx-prow:nth-child(even) { background: #fcfdfd; }
.mbx-prow-head { background: var(--mbx-soft) !important; font-size: 12px; color: var(--mbx-muted); font-weight: 700; }
.mbx-pimg img { width: 56px; height: 56px; object-fit: contain; }
.mbx-pname { color: var(--mbx-ink); font-weight: 600; text-decoration: none !important; line-height: 1.8; }
.mbx-pname:hover { color: var(--mbx-green-d); }
.mbx-pbrand { color: var(--mbx-muted); font-size: 13px; }
.mbx-pprice { font-weight: 700; color: var(--mbx-green-d); }
.mbx-pprice .mbx-price-note { display: none; }
.mbx-pstock { font-size: 12px; border-radius: 99px; padding: 3px 8px; text-align: center; }
.mbx-instock { background: #dcfce7; color: #166534; }
.mbx-outofstock, .mbx-onbackorder { background: #fee2e2; color: #991b1b; }
.mbx-pcta .mbx-wa-sm { margin: 0; width: 100%; }
.mbx-empty { padding: 24px; text-align: center; background: var(--mbx-soft); border-radius: 12px; }
.mbx-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 20px 0; }
.mbx-pagination a, .mbx-pagination span { min-width: 40px; height: 40px; padding: 0 10px; display: grid; place-items: center; border: 1px solid var(--mbx-line); border-radius: 10px; text-decoration: none !important; color: var(--mbx-ink); }
.mbx-pagination .current { background: var(--mbx-green); color: #fff; border-color: var(--mbx-green); }
.mbx-pagination .dots { border: 0; }

/* ---------- Finder ---------- */
.mbx-finder { background: linear-gradient(135deg, #f0fdf4, #eff6ff); border-radius: 20px; padding: clamp(18px, 4vw, 36px); }
.mbx-finder-title { margin-top: 0; }
.mbx-q { font-weight: 700; font-size: 17px; }
.mbx-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.mbx-opts button { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--mbx-line); border-radius: 12px; padding: 14px; font-weight: 600; cursor: pointer; color: var(--mbx-ink); text-align: right; }
.mbx-opts button span { font-size: 22px; }
.mbx-opts button:hover, .mbx-opts button.on { border-color: var(--mbx-green); background: #f0fdf4; }
.mbx-finder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 12px 0; }
.mbx-finder-item { background: #fff; border-radius: 12px; padding: 10px; text-decoration: none !important; color: var(--mbx-ink); display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.mbx-finder-item img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.mbx-finder-item .mbx-price-note { display: none; }
.mbx-finder-cta { margin: 14px 0; }
.mbx-finder-restart { background: none; border: 0; color: var(--mbx-muted); text-decoration: underline; cursor: pointer; }
.mbx-finder-note { font-size: 12px; color: var(--mbx-muted); margin: 12px 0 0; }
.mbx-finder.loading { opacity: .6; pointer-events: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.mbx-hero { grid-template-columns: 1fr; }
	.mbx-hero-img { order: -1; }
	.mbx-trust { grid-template-columns: 1fr 1fr; }
	.mbx-slider { grid-auto-columns: minmax(170px, 45%); }
}
@media (max-width: 680px) {
	.mbx-prow-head { display: none; }
	.mbx-prow { grid-template-columns: 56px 1fr; grid-template-areas: "img name" "img brand" "img price" "cta cta"; row-gap: 4px; }
	.mbx-pimg { grid-area: img; }
	.mbx-pname { grid-area: name; }
	.mbx-pbrand { grid-area: brand; }
	.mbx-pprice { grid-area: price; }
	.mbx-pstock { display: none; }
	.mbx-pcta { grid-area: cta; }
	.mbx-trust { grid-template-columns: 1fr; }
	.mbx-trust-mini { grid-template-columns: 1fr; }
	.mbx-wa-float { bottom: 76px; right: 14px; width: 52px; height: 52px; }
	.mbx-wa-float-tip { display: none; }
}

/* ---------- Mobile sticky CTA on product pages ---------- */
.mbx-sticky-cta { display: none; }
@media (max-width: 768px) {
	.mbx-sticky-cta {
		display: flex; align-items: center; gap: 10px;
		position: fixed; inset-inline: 10px; bottom: calc(66px + env(safe-area-inset-bottom));
		z-index: 9989; background: rgba(255, 255, 255, .97);
		backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
		border: 1px solid var(--mbx-line); border-radius: 18px;
		padding: 8px 10px; box-shadow: 0 10px 30px rgba(15, 23, 42, .15);
	}
	.mbx-sc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.6; }
	.mbx-sc-name { font-size: 12px; color: var(--mbx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.mbx-sc-price, .mbx-sc-price .amount { font-weight: 800; font-size: 14px; color: var(--mbx-ink); }
	.mbx-sc-price .mbx-price-note { display: none; }
	.mbx-sticky-cta .mbx-wa-btn { margin: 0; padding: 10px 14px; white-space: nowrap; }
	.single-product .mbx-wa-float { display: none; }
}

/* Header: main-nav dropdowns must open above the second header row (categories bar). */
.whb-main-header .whb-general-header{position:relative;z-index:25}
.whb-main-header .whb-header-bottom{position:relative;z-index:20}

/* 1.3.1: archive H1 (theme title bar is disabled on shop/category pages) */
.mbx-arch-h1 { width: 100%; margin: 0 0 14px; font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; line-height: 1.4; color: var(--mbx-ink, #1d1a2b); }
