/*
Theme Name:   Sellmaadi
Theme URI:    https://sellmaadi.com
Author:       Shahin Sheik
Description:  Clean, fast, mobile-first classifieds theme for sellmaadi.com — Buy & Sell, Vehicles and Jobs for Manipal, Udupi and Mangalore. Requires the Sellmaadi Core plugin.
Version:      1.4.3
Requires at least: 6.2
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  sellmaadi-theme
*/

/* Figtree (SIL Open Font License), served from this theme. */
@font-face {
	font-family: "Figtree";
	src: url("assets/fonts/figtree.woff2") format("woff2");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}

/*
 * Palette
 *   Paper   #ffffff  page
 *   Mist    #f5f6f7  quiet surfaces, footer
 *   Line    #e6e8eb  dividers
 *   Ink     #1c2024  text
 *   Slate   #5e6670  secondary text
 *   Areca   #0a7a55  the one accent: actions, links, active states
 *   Turmeric#f2b705  featured ads only
 */
:root {
	--sm-brand: #0a7a55;
	--sm-brand-dark: #07603f;
	--sm-brand-tint: #e8f4ef;
	--sm-ink: #1c2024;
	--sm-muted: #5e6670;
	--sm-line: #e6e8eb;
	--sm-bg: #ffffff;
	--sm-surface: #f5f6f7;
	--sm-accent: #f2b705;
	--smt-wrap: 1200px;
	--smt-font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Kannada", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sm-bg); color: var(--sm-ink); font-family: var(--smt-font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--sm-brand); }
a:hover { color: var(--sm-brand-dark); }
h1, h2, h3, h4 { line-height: 1.15; color: var(--sm-ink); letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }
h2 { font-size: 1.35rem; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid rgba(10, 122, 85, .35); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; padding: .5rem 1rem; background: #fff; z-index: 1000; top: 8px; left: 8px; }
.smt-icon { display: block; flex: 0 0 auto; }

.smt-wrap { max-width: var(--smt-wrap); margin: 0 auto; padding: 0 20px; }
.smt-narrow { max-width: 760px; }
.smt-main { min-height: 60vh; padding-bottom: 3rem; }

/* ---------- Header ---------- */
.smt-header { background: #fff; border-bottom: 1px solid var(--sm-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .smt-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .smt-header { top: 0; position: relative; } }
.smt-header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.smt-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 1.5rem; letter-spacing: -.045em; line-height: 1; }
.smt-logo-text { display: inline-flex; }
.smt-logo-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--sm-brand); position: relative; flex: 0 0 auto; }
.smt-logo-mark::before { content: ""; position: absolute; left: 7px; top: 8px; width: 15px; height: 12px; background: #fff; border-radius: 2px 7px 7px 2px; clip-path: polygon(30% 0, 100% 0, 100% 100%, 30% 100%, 0 50%); }
.smt-logo-mark::after { content: ""; position: absolute; left: 11px; top: 12.5px; width: 3px; height: 3px; background: var(--sm-brand); border-radius: 50%; }
.smt-logo-sell { color: var(--sm-ink); }
.smt-logo-maadi { color: var(--sm-brand); }
.custom-logo-link img { max-height: 40px; width: auto; }

.smt-search { order: 3; flex: 1 1 100%; display: flex; align-items: stretch; height: 46px; background: var(--sm-surface); border: 1px solid transparent; border-radius: 12px; overflow: hidden; transition: border-color .15s, background-color .15s; }
.smt-search:focus-within { background: #fff; border-color: var(--sm-brand); }
.smt-search input[type=search] { flex: 1; min-width: 0; border: 0; padding: 0 .9rem; font-size: 16px; color: var(--sm-ink); background: transparent; }
.smt-search input:focus, .smt-search select:focus { outline: none; }
.smt-search select { border: 0; border-left: 1px solid var(--sm-line); background: transparent; padding: 0 .6rem; color: var(--sm-ink); font-size: .9rem; max-width: 34%; }
.smt-search button[type=submit] { border: 0; background: var(--sm-brand); color: #fff; width: 50px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.smt-search button[type=submit]:hover { background: var(--sm-brand-dark); }
.smt-header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.smt-account { font-weight: 600; color: var(--sm-ink); text-decoration: none; }
.smt-account:hover { color: var(--sm-brand); }
@media (min-width: 900px) { .smt-search { order: 0; flex: 1 1 auto; max-width: 620px; margin-left: 20px; } }
@media (max-width: 480px) { .smt-search select[name=section] { display: none; } }

.smt-nav .smt-wrap { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.smt-nav .smt-wrap::-webkit-scrollbar { display: none; }
.smt-nav a { padding: .7rem 0; color: var(--sm-muted); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.smt-nav a:hover { color: var(--sm-ink); }
.smt-nav a.is-active { color: var(--sm-ink); border-bottom-color: var(--sm-brand); }

/* ---------- Home: hero ---------- */
.smt-hero { padding: 3.2rem 0 2.4rem; background: linear-gradient(180deg, var(--sm-brand-tint) 0%, #fff 100%); }
.smt-hero-title { margin: 0 0 1.6rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.smt-hero-lead { display: block; font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); font-weight: 600; color: var(--sm-muted); letter-spacing: -.02em; margin-bottom: .35rem; }
.smt-hero-cities { display: flex; flex-wrap: wrap; gap: .1em .5em; font-size: clamp(2.4rem, 1.4rem + 5.2vw, 5rem); }
.smt-hero-cities a { color: var(--sm-ink); text-decoration: none; background-image: linear-gradient(var(--sm-brand), var(--sm-brand)); background-size: 0 .08em; background-position: 0 92%; background-repeat: no-repeat; transition: background-size .25s ease, color .2s; }
.smt-hero-cities a:hover, .smt-hero-cities a:focus-visible, .smt-hero-cities a.is-mine { color: var(--sm-brand); background-size: 100% .08em; }
@media (prefers-reduced-motion: reduce) { .smt-hero-cities a { transition: none; } }

.smt-bigsearch { max-width: 860px; }
.smt-seg { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 10px; background: #fff; border: 1px solid var(--sm-line); border-radius: 12px; }
.smt-seg label { cursor: pointer; }
.smt-seg input { position: absolute; opacity: 0; pointer-events: none; }
.smt-seg span { display: block; padding: .45rem .95rem; border-radius: 9px; font-weight: 600; font-size: .95rem; color: var(--sm-muted); }
.smt-seg input:checked + span { background: var(--sm-ink); color: #fff; }
.smt-seg input:focus-visible + span { outline: 3px solid rgba(10, 122, 85, .35); }
.smt-bigsearch-row { display: flex; align-items: stretch; background: #fff; border: 1px solid #d5d9de; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 28px rgba(28, 32, 36, .07); }
.smt-bigsearch-row:focus-within { border-color: var(--sm-brand); }
.smt-bigsearch-row input { flex: 1; min-width: 0; border: 0; padding: 1.05rem 1.1rem; font-size: 1.05rem; color: var(--sm-ink); }
.smt-bigsearch-row input:focus, .smt-bigsearch-row select:focus { outline: none; }
.smt-bigsearch-row select { border: 0; border-left: 1px solid var(--sm-line); padding: 0 .9rem; background: #fff; color: var(--sm-ink); }
.smt-bigsearch-row button[type=submit] { border: 0; background: var(--sm-brand); color: #fff; font-weight: 700; padding: 0 1.6rem; cursor: pointer; }
.smt-bigsearch-row button[type=submit]:hover { background: var(--sm-brand-dark); }
@media (max-width: 560px) {
	.smt-bigsearch-row { flex-wrap: wrap; }
	.smt-bigsearch-row input { flex: 1 1 100%; border-bottom: 1px solid var(--sm-line); }
	.smt-bigsearch-row select { flex: 1; border-left: 0; padding: .8rem; }
	.smt-bigsearch-row button[type=submit] { padding: .8rem 1.4rem; }
}

/* ---------- Home: category shortcuts ---------- */
.smt-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: 92px; gap: 10px; overflow-x: auto; padding: 1.8rem 0 .6rem; scrollbar-width: none; scroll-snap-type: x proximity; }
.smt-tiles::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .smt-tiles { grid-auto-flow: row; grid-template-columns: repeat(12, 1fr); overflow: visible; } }
.smt-tile { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; text-decoration: none; color: var(--sm-ink); scroll-snap-align: start; }
.smt-tile-icon { width: 60px; height: 60px; border-radius: 16px; background: var(--sm-surface); color: var(--sm-ink); display: flex; align-items: center; justify-content: center; transition: background-color .15s, color .15s; }
.smt-tile-icon .smt-icon { width: 26px; height: 26px; }
.smt-tile:hover .smt-tile-icon { background: var(--sm-brand-tint); color: var(--sm-brand); }
.smt-tile-label { font-size: .82rem; font-weight: 600; line-height: 1.2; }

/* ---------- Home: rows ---------- */
.smt-row { margin: 2.6rem 0; }
.smt-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.smt-row-head h2 { margin: 0; }
.smt-row-head a { font-weight: 600; text-decoration: none; font-size: .95rem; }
.smt-row-head a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 719px) {
	.smt-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; scroll-padding: 0 20px; }
	.smt-scroller::-webkit-scrollbar { display: none; }
	.smt-scroller > * { scroll-snap-align: start; }
}
@media (min-width: 1040px) { .smt-scroller { grid-template-columns: repeat(5, minmax(0, 1fr)); } .smt-scroller > :nth-child(n+11) { display: none; } }

.smt-sellband { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; margin: 3rem 0 1rem; padding: 2rem; border-radius: 16px; background: var(--sm-ink); color: #fff; }
.smt-sellband h2 { color: #fff; margin: 0 0 .3rem; font-size: 1.5rem; }
.smt-sellband p { margin: 0; color: #c7ccd2; max-width: 52ch; }
.smt-sellband .sm-btn { background: #fff; color: var(--sm-ink) !important; border-color: #fff; }
.smt-sellband .sm-btn:hover { background: var(--sm-brand-tint); border-color: var(--sm-brand-tint); }

/* ---------- Browse ---------- */
.smt-archive-head { padding: 1.8rem 0 .4rem; }
.smt-archive-head h1 { margin: 0 0 .25rem; }
.smt-archive-head p { margin: 0; }
.smt-pills { display: flex; gap: 8px; overflow-x: auto; padding: .45rem 0; scrollbar-width: none; }
.smt-pills::-webkit-scrollbar { display: none; }
.smt-pill { flex: 0 0 auto; padding: .42rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--sm-line); color: var(--sm-ink); text-decoration: none; font-weight: 500; font-size: .9rem; }
.smt-pill:hover { border-color: var(--sm-ink); color: var(--sm-ink); }
.smt-pill.is-active { background: var(--sm-ink); border-color: var(--sm-ink); color: #fff; }

.smt-browse { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 960px) { .smt-browse { grid-template-columns: 250px 1fr; gap: 36px; align-items: start; } .smt-filters { position: sticky; top: 140px; } }
.smt-filters details { border: 1px solid var(--sm-line); border-radius: 12px; padding: .2rem 1rem; }
@media (min-width: 960px) { .smt-filters details { border: 0; padding: 0; } }
.smt-filters summary { cursor: pointer; font-weight: 700; padding: .7rem 0; list-style: none; display: flex; justify-content: space-between; }
.smt-filters summary::-webkit-details-marker { display: none; }
.smt-filters summary::after { content: "+"; color: var(--sm-muted); font-weight: 400; }
.smt-filters details[open] summary::after { content: "–"; }
.smt-filters form { padding: .2rem 0 1rem; }
.smt-filters .sm-field { margin: 0; padding: .85rem 0; border-top: 1px solid var(--sm-line); }
.smt-filters .sm-field label { font-size: .88rem; }
.smt-filters .sm-field select, .smt-filters .sm-field input { padding: .55rem .7rem; }
.smt-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.smt-filters .sm-btn { margin-top: .6rem; }
.smt-clear { display: block; text-align: center; margin-top: .7rem; font-size: .9rem; color: var(--sm-muted); }

.smt-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 2.4rem 0 0; }
.smt-pagination .page-numbers { min-width: 40px; padding: .5rem .8rem; border-radius: 10px; border: 1px solid var(--sm-line); text-align: center; text-decoration: none; color: var(--sm-ink); font-weight: 600; }
.smt-pagination a.page-numbers:hover { border-color: var(--sm-ink); }
.smt-pagination .current { background: var(--sm-ink); color: #fff; border-color: var(--sm-ink); }

/* ---------- Single ad ---------- */
.smt-crumbs ol { list-style: none; margin: 0; padding: 1.1rem 0 .8rem; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; }
.smt-crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: #b8bec5; }
.smt-crumbs a { color: var(--sm-muted); text-decoration: none; }
.smt-crumbs a:hover { color: var(--sm-ink); }

.smt-ad { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .smt-ad { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; } .smt-ad-side { position: sticky; top: 140px; } }
.sm-gallery { background: var(--sm-surface); border-radius: 16px; overflow: hidden; margin-bottom: 1.4rem; }
.sm-gallery-main { position: relative; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: #0f1214; }
.sm-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.sm-gallery-main .sm-tag--sold { left: auto; right: 12px; top: 12px; }
.sm-gallery-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.sm-gallery-thumbs button { flex: 0 0 68px; height: 68px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; opacity: .65; }
.sm-gallery-thumbs button.is-active { border-color: var(--sm-ink); opacity: 1; }
.sm-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.smt-ad-main .sm-card { border: 0; border-bottom: 1px solid var(--sm-line); border-radius: 0; padding: 0 0 1.6rem; margin: 0 0 1.6rem; }
.smt-ad-price { margin: 0; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.smt-ad--job .smt-ad-price { font-size: 1.5rem; color: var(--sm-brand-dark); }
.smt-neg { font-size: .8rem; font-weight: 600; letter-spacing: 0; padding: .2rem .55rem; border-radius: 6px; background: var(--sm-brand-tint); color: var(--sm-brand-dark); }
.smt-ad-title { margin: .3rem 0 .5rem; font-size: 1.4rem; font-weight: 600; letter-spacing: -.015em; }
.smt-ad-company { margin: 0 0 .5rem; font-weight: 600; }
.smt-ad-meta { margin: 0; display: flex; justify-content: space-between; gap: 1rem; color: var(--sm-muted); font-size: .92rem; flex-wrap: wrap; }
.smt-h2 { font-size: 1.15rem; margin: 0 0 1rem; }
.smt-details { display: grid; grid-template-columns: 1fr; margin: 0; }
@media (min-width: 640px) { .smt-details { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.smt-details div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--sm-line); }
.smt-details dt { color: var(--sm-muted); font-size: .92rem; }
.smt-details dd { margin: 0; font-weight: 600; text-align: right; }
.smt-details div.is-warn dd { color: #9a5b00; }
.smt-details div.is-warn dd::before { content: "! "; font-weight: 800; }
.smt-desc { word-wrap: break-word; max-width: 68ch; }
.smt-desc p:first-child { margin-top: 0; }

.smt-ad-side .sm-card { padding: 1.3rem; }
.smt-seller { display: grid; gap: .7rem; }
.smt-seller-head { display: flex; gap: 12px; align-items: center; margin-bottom: .3rem; }
.smt-seller-head strong, .smt-seller-head small, .smt-verified { display: block; }
.smt-avatar { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; background: var(--sm-brand-tint); color: var(--sm-brand-dark); font-weight: 800; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.smt-verified { color: var(--sm-brand); font-size: .85rem; font-weight: 600; }
.sm-contact { display: grid; gap: .5rem; }
.smt-save-btn svg { flex: 0 0 auto; }
.smt-tips { background: var(--sm-surface) !important; border: 0 !important; }
.smt-tips h3 { margin: 0 0 .5rem; font-size: 1rem; }
.smt-tips ul { margin: 0 0 .7rem; padding-left: 1.1rem; font-size: .9rem; color: #3c434a; }
.smt-tips a { font-weight: 600; font-size: .9rem; }
.smt-report-link { color: var(--sm-muted); font-size: .88rem; font-weight: 500; }
.smt-dialog { border: 0; border-radius: 16px; padding: 1.4rem; max-width: 420px; width: calc(100% - 32px); box-shadow: 0 24px 64px rgba(28, 32, 36, .28); }
.smt-dialog::backdrop { background: rgba(28, 32, 36, .5); }
.smt-dialog h3 { margin-top: 0; }
.smt-dialog .sm-check { margin: .4rem 0; }
.smt-dialog-actions { display: flex; justify-content: flex-end; gap: .5rem; }

/* ---------- Pages ---------- */
.smt-app { padding-top: 1.5rem; }
.smt-content > *:first-child { margin-top: 0; }
.smt-content { max-width: 72ch; }
.smt-app .smt-content { max-width: none; }
.smt-entry h1 { margin-bottom: .2rem; }
.smt-posts { display: grid; gap: 12px; }
.smt-excerpt h2 { margin: 0; font-size: 1.15rem; }
.smt-excerpt h2 a { color: var(--sm-ink); text-decoration: none; }
.smt-404 { padding: 4rem 20px; }
.smt-404 .sm-btn { margin: .2rem; }
.smt-narrow h1 { margin-top: 2rem; }

/* ---------- Footer ---------- */
.smt-footer { background: var(--sm-surface); color: var(--sm-muted); padding: 2.8rem 0 6rem; margin-top: 3rem; border-top: 1px solid var(--sm-line); }
@media (min-width: 760px) { .smt-footer { padding-bottom: 2rem; } }
.smt-footer h4 { color: var(--sm-ink); margin: 0 0 .7rem; font-size: .95rem; letter-spacing: 0; }
.smt-footer ul { list-style: none; margin: 0; padding: 0; }
.smt-footer li { margin: .35rem 0; }
.smt-footer a { color: var(--sm-muted); text-decoration: none; font-size: .92rem; }
.smt-footer a:hover { color: var(--sm-ink); }
.smt-footer .smt-logo { font-size: 1.3rem; }
.smt-footer-grid { display: grid; gap: 2rem 1.5rem; grid-template-columns: 1fr 1fr; }
.smt-footer-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .smt-footer-grid { grid-template-columns: 1.5fr repeat(4, 1fr); } .smt-footer-grid > div:first-child { grid-column: auto; } }
.smt-footer-about { font-size: .92rem; max-width: 34ch; }
.smt-social { list-style: none; margin: 1.1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.smt-social li { margin: 0; }
.smt-footer .smt-social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--sm-line); background: #fff; color: var(--sm-ink); display: inline-flex; align-items: center; justify-content: center; transition: background .15s, color .15s, border-color .15s; }
.smt-footer .smt-social a:hover, .smt-footer .smt-social a:focus-visible { background: var(--sm-brand); border-color: var(--sm-brand); color: #fff; }
.smt-social-icon { width: 20px; height: 20px; display: block; }
.smt-copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; border-top: 1px solid var(--sm-line); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; }

/* Bottom bar (phones) */
.smt-bottombar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--sm-line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.smt-bottombar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .7rem; font-weight: 600; color: var(--sm-muted); text-decoration: none; }
.smt-bottombar .smt-icon { width: 22px; height: 22px; }
.smt-bottombar a.is-active { color: var(--sm-ink); }
.smt-bottombar-sell span { width: 42px; height: 42px; margin-top: -18px; border-radius: 14px; background: var(--sm-brand); color: #fff; display: flex; align-items: center; justify-content: center; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(10, 122, 85, .35); }
.smt-bottombar-sell { color: var(--sm-brand) !important; }
@media (min-width: 760px) { .smt-bottombar { display: none; } }
@media (max-width: 759px) { .smt-header-actions .smt-post-btn { display: none; } }

/* Sticky contact button on phones (single ad) */
.smt-mobile-contact { position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 55; padding: 10px 14px; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--sm-line); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.smt-mobile-contact > .sm-btn:only-child { grid-column: 1 / -1; }
.single .smt-footer { padding-bottom: 10rem; }
@media (min-width: 760px) { .smt-mobile-contact { display: none; } .single .smt-footer { padding-bottom: 2rem; } }

/* ---------- Dropdowns ----------
 * 1) Every native select gets a clean closed state.
 * 2) On mouse/trackpad devices, theme.js swaps the option list for a styled
 *    panel (.smt-dd). Phones keep their native picker.
 */
.smt-search select, .smt-bigsearch-row select, .sm-field select, .smt-filters select {
	-webkit-appearance: none; appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%235e6670' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right .85rem center; background-size: 12px 8px;
	padding-right: 2.4rem !important; cursor: pointer; text-overflow: ellipsis;
}
.smt-search select:hover, .smt-bigsearch-row select:hover { background-color: rgba(28, 32, 36, .04); }
.sm-field select:hover, .smt-filters select:hover { border-color: #b9bfc6; }

/* Styled dropdown (desktop) */
.smt-dd { position: relative; display: flex; align-items: stretch; min-width: 0; }
.smt-dd-native { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; pointer-events: none; }
.smt-dd-btn { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; min-width: 0; margin: 0; padding: 0 .9rem; border: 0; background: transparent; color: var(--sm-ink); font: inherit; font-size: .95rem; text-align: left; cursor: pointer; white-space: nowrap; }
.smt-dd-btn span { overflow: hidden; text-overflow: ellipsis; }
.smt-dd-btn svg { flex: 0 0 auto; color: var(--sm-muted); transition: transform .15s ease; }
.smt-dd.is-open .smt-dd-btn svg { transform: rotate(180deg); }
.smt-dd-btn:hover { background: rgba(28, 32, 36, .04); }
.smt-dd-btn:focus-visible { outline: 3px solid rgba(10, 122, 85, .35); outline-offset: -3px; }
.smt-dd-list { position: absolute; top: calc(100% + 6px); left: 0; z-index: 80; min-width: 100%; max-height: 320px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--sm-line); border-radius: 12px; box-shadow: 0 12px 32px rgba(28, 32, 36, .14), 0 2px 6px rgba(28, 32, 36, .06); }
.smt-dd-list[hidden] { display: none; }
.smt-dd-opt { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: .55rem .75rem; border-radius: 8px; color: var(--sm-ink); font-size: .95rem; white-space: nowrap; cursor: pointer; }
.smt-dd-opt.is-active { background: var(--sm-surface); }
.smt-dd-opt[aria-selected="true"] { font-weight: 600; color: var(--sm-brand-dark); }
.smt-dd-opt svg { visibility: hidden; color: var(--sm-brand); }
.smt-dd-opt[aria-selected="true"] svg { visibility: visible; }

/* Where the styled dropdown sits */
.smt-search .smt-dd { flex: 0 0 auto; border-left: 1px solid var(--sm-line); }
.smt-search .smt-dd-btn { min-width: 128px; }
.smt-bigsearch-row .smt-dd { flex: 0 0 auto; border-left: 1px solid var(--sm-line); }
.smt-bigsearch-row .smt-dd-btn { min-width: 170px; padding: 0 1.1rem; font-size: 1rem; }
.smt-bigsearch-row .smt-dd-list { left: auto; right: 0; }
.smt-bigsearch-row { overflow: visible; }
.smt-bigsearch-row input { border-radius: 14px 0 0 14px; }
.smt-bigsearch-row button[type=submit] { border-radius: 0 13px 13px 0; }
.smt-search { overflow: visible; }
.smt-search input[type=search] { border-radius: 12px 0 0 12px; }
.smt-search button[type=submit] { border-radius: 0 11px 11px 0; }
.sm-field .smt-dd, .smt-filters .smt-dd { width: 100%; }
.sm-field .smt-dd-btn, .smt-filters .smt-dd-btn { height: auto; padding: .6rem .8rem; border: 1px solid #d5d9de; border-radius: 10px; background: #fff; }
.sm-field .smt-dd-btn:hover, .smt-filters .smt-dd-btn:hover { border-color: #b9bfc6; background: #fff; }
.sm-field .smt-dd.is-open .smt-dd-btn { border-color: var(--sm-brand); box-shadow: 0 0 0 3px rgba(10, 122, 85, .14); }
.sm-field .smt-dd-btn.is-placeholder span { color: var(--sm-muted); }

/* ---------- Shops ---------- */
.sm-btn .smt-icon { width: 19px; height: 19px; }
.smt-verified .smt-icon, .smt-shop-verified .smt-icon { width: 16px; height: 16px; }
.smt-verified { display: inline-flex !important; align-items: center; gap: 4px; }

/* Shop cards (home row + directory) */
.smt-shopcards { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .smt-shopcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .smt-shopcards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.smt-shopcards--grid { margin-top: 1rem; }
.smt-shopcard { display: block; border: 1px solid var(--sm-line); border-radius: 14px; overflow: hidden; color: var(--sm-ink); text-decoration: none; background: #fff; transition: border-color .15s; }
.smt-shopcard:hover { border-color: #c9ced4; color: var(--sm-ink); }
.smt-shopcard-cover { display: block; height: 84px; background: var(--sm-brand-tint) center / cover no-repeat; }
.smt-shopcard-body { display: block; padding: 0 1rem 1rem; }
.smt-shopcard-logo { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin-top: -27px; margin-bottom: .55rem; border-radius: 14px; border: 3px solid #fff; background: var(--sm-ink); color: #fff; font-weight: 800; font-size: 1.3rem; overflow: hidden; }
.smt-shopcard-logo img { width: 100%; height: 100%; object-fit: cover; }
.smt-shopcard-name { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 1rem; line-height: 1.25; }
.smt-shopcard-meta { display: block; font-size: .84rem; color: var(--sm-muted); margin-top: .15rem; }
.smt-verified-tick { color: var(--sm-brand); display: inline-flex; }
.smt-verified-tick .smt-icon { width: 17px; height: 17px; }
.smt-shops-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; }

/* Shop page */
.smt-shop { padding-top: 1.2rem; }
.smt-shop-cover { height: clamp(130px, 22vw, 260px); border-radius: 16px; background: linear-gradient(135deg, var(--sm-brand-tint), #d7ece3) center / cover no-repeat; }
.smt-shop-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.4rem; padding: 0 0 1.6rem; border-bottom: 1px solid var(--sm-line); }
.smt-shop-logo { width: 104px; height: 104px; flex: 0 0 auto; margin-top: -52px; margin-left: 20px; border-radius: 22px; border: 4px solid #fff; background: var(--sm-ink); overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(28, 32, 36, .12); }
.smt-shop-logo img { width: 100%; height: 100%; object-fit: cover; }
.smt-shop-logo span { color: #fff; font-weight: 800; font-size: 2.4rem; }
.smt-shop-id { flex: 1 1 260px; min-width: 0; padding-top: .9rem; }
.smt-shop-id h1 { margin: 0 0 .4rem; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); letter-spacing: -.03em; }
.smt-shop-facts { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin: 0; color: var(--sm-muted); font-size: .92rem; }
.smt-shop-facts span { display: inline-flex; align-items: center; gap: 5px; }
.smt-shop-facts .smt-icon { width: 16px; height: 16px; }
.smt-shop-verified { color: var(--sm-brand); font-weight: 600; }
.smt-shop-actions { display: flex; gap: .5rem; flex-wrap: wrap; padding-bottom: .2rem; }
@media (max-width: 600px) { .smt-shop-logo { width: 84px; height: 84px; margin-top: -42px; margin-left: 12px; border-radius: 18px; } .smt-shop-actions { width: 100%; } .smt-shop-actions .sm-btn { flex: 1; } }
.smt-shop-layout { display: grid; gap: 28px; grid-template-columns: 1fr; padding-top: 1.6rem; }
@media (min-width: 960px) { .smt-shop-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 44px; } .smt-shop-info { position: sticky; top: 140px; align-self: start; } }
.smt-shop-info .smt-h2 { font-size: 1rem; margin: 0 0 .5rem; }
.smt-shop-info p { margin: 0 0 1.1rem; font-size: .95rem; }
.smt-shop-about p { margin: 0 0 .8rem; }
.smt-shop-about { margin-bottom: 1.2rem; color: #3c434a; font-size: .95rem; }
@media (min-width: 1040px) { .smt-shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .smt-shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Product page: shop seller + ordering */
.smt-seller-shop { color: var(--sm-ink); text-decoration: none; padding-bottom: .9rem; margin-bottom: .3rem !important; border-bottom: 1px solid var(--sm-line); }
.smt-seller-shop:hover strong { text-decoration: underline; text-underline-offset: 2px; }
.smt-seller-shop small { color: var(--sm-brand) !important; font-weight: 600; }
.smt-avatar--shop { border-radius: 12px; overflow: hidden; background: var(--sm-ink); color: #fff; }
.smt-avatar--shop img { width: 100%; height: 100%; object-fit: cover; }
.sm-qty { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .2rem 0 .7rem; font-weight: 600; font-size: .92rem; }
.sm-qty input { width: 120px; padding: .55rem .7rem; border: 1px solid #d5d9de; border-radius: 10px; font: inherit; text-align: center; }
.sm-qty input:focus { outline: none; border-color: var(--sm-brand); box-shadow: 0 0 0 3px rgba(10, 122, 85, .14); }
.sm-order-terms { margin: 0 0 .6rem; }
@media (min-width: 1000px) { .smt-tiles { grid-template-columns: repeat(13, 1fr); } }
.smt-shop-actions .sm-btn { white-space: nowrap; }
@media (max-width: 600px) { .smt-shop-actions .sm-btn { font-size: .92rem; padding-left: .8em; padding-right: .8em; } }

.smt-archive-intro { margin: .5rem 0 0 !important; max-width: 70ch; color: var(--sm-muted); font-size: .92rem; }

/* ---------- Phone fixes (v1.3.1) ---------- */
/* All menu links fit without sideways scrolling. */
@media (max-width: 480px) {
	.smt-nav .smt-wrap { gap: 0; justify-content: space-between; }
	.smt-nav a { font-size: .86rem; padding: .65rem 0; }
	.smt-wrap { padding-left: 16px; padding-right: 16px; }
}
/* Home search: the text box is white, not grey. */
.smt-bigsearch-row input { background: #fff; }

/* Account tabs: four equal tabs that always fit. */
.sm-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
.sm-tabs a { text-align: center; padding: .7rem .2rem; }
@media (max-width: 480px) { .sm-tabs a { font-size: .9rem; } }
.sm-auth-tabs { grid-template-columns: 1fr 1fr; }

/* Ad pages on phones: one bottom bar with Share + Contact, instead of the menu bar. */
.smt-mobile-contact { display: none !important; }
.smt-mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; display: flex; gap: 10px; align-items: center; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .98); border-top: 1px solid var(--sm-line); box-shadow: 0 -4px 16px rgba(28, 32, 36, .06); }
.smt-mobile-bar .sm-contact { flex: 1; display: flex; gap: 8px; }
.smt-mobile-bar .sm-contact > .sm-btn { flex: 1; }
.smt-mobile-bar > .sm-btn { flex: 1; }
.smt-mobile-share { flex: 0 0 48px; height: 48px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--sm-line); border-radius: 12px; background: #fff; color: var(--sm-ink); cursor: pointer; }
.smt-mobile-share .smt-icon { width: 22px; height: 22px; }
.smt-mobile-sold { flex: 1; text-align: center; font-weight: 600; color: var(--sm-muted); }
.single-sm_item .smt-bottombar, .single-sm_vehicle .smt-bottombar, .single-sm_job .smt-bottombar { display: none; }
.single-sm_item .smt-footer, .single-sm_vehicle .smt-footer, .single-sm_job .smt-footer { padding-bottom: 6.5rem; }
@media (min-width: 760px) { .smt-mobile-bar { display: none; } .single-sm_item .smt-footer, .single-sm_vehicle .smt-footer, .single-sm_job .smt-footer { padding-bottom: 2rem; } }

/* ---------- Ad units (AdSense) ---------- */
.smt-ad-cell { margin: 1.6rem 0; }
.smt-ad-cell--grid { grid-column: 1 / -1; margin: .4rem 0; }
.sm-ad { min-height: 100px; text-align: center; }
.sm-ad-label { display: block; margin-bottom: .3rem; font-size: .72rem; color: #8a929a; }

/* Admin link for the Sellmaadi team (phones reach it from My Ads). */
.smt-admin-link { padding: 4px 10px; border-radius: 999px; background: var(--sm-brand-tint); color: var(--sm-brand-dark); font-size: .9rem; }
@media (max-width: 760px) { .smt-admin-link { display: none; } }

/* Keep the header search inside narrow phones (no sideways scroll). */
.smt-search { min-width: 0; max-width: 100%; }
.smt-search select { min-width: 0; flex: 0 1 auto; }
.smt-search button[type=submit] { flex: none; }
