/*
Theme Name: Santhai Marketplace
Theme URI: https://graphicsland.example/santhai
Author: Graphics Land
Author URI: https://graphicsland.example
Description: A modern, trust-first classifieds & marketplace theme built for bilingual (Tamil/English) communities. Auctions, in-app chat, verified badges, and a front-end dashboard — all self-contained with no external dependencies. Built as a feature-complete evolution of Palakai/Catawiki-style classifieds.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: santhai
Tags: e-commerce, classifieds, marketplace, custom-menu, featured-images, translation-ready, threaded-comments
*/

/* ==========================================================================
   SANTHAI DESIGN SYSTEM
   Palette: Teal-ink (primary/dark), Marigold (accent/CTA), Vermillion (alert),
   warm sand-white (background). Signature: floating listing-card hero collage.
   ========================================================================== */

:root{
	--ink:#0F3D3E;
	--ink-2:#134A4B;
	--ink-deep:#082627;
	--gold:#E8A93A;
	--gold-deep:#C98A1F;
	--vermillion:#C1442D;
	--verified:#2F8F5B;
	--bg:#F7F5EF;
	--bg-alt:#EFEBE0;
	--card:#FFFFFF;
	--text:#1B2521;
	--text-soft:#586B64;
	--line:#E5E0D2;
	--line-strong:#D8D0BC;
	--radius-sm:8px;
	--radius:14px;
	--radius-lg:22px;
	--shadow-sm:0 1px 2px rgba(15,61,62,.06), 0 1px 1px rgba(15,61,62,.04);
	--shadow:0 8px 24px -8px rgba(15,61,62,.18);
	--shadow-lg:0 24px 48px -16px rgba(15,61,62,.28);
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-tamil: "Noto Sans Tamil", "Segoe UI", var(--font);
	--container: 1280px;
	--speed: .22s;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
	html{ scroll-behavior:auto; }
	*,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

body{
	margin:0;
	font-family:var(--font);
	background:var(--bg);
	color:var(--text);
	font-size:16px;
	line-height:1.55;
	-webkit-font-smoothing:antialiased;
	overflow-x:hidden;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ margin:0 0 .5em; font-weight:700; letter-spacing:-.02em; line-height:1.15; }
p{ margin:0 0 1em; }

:focus-visible{ outline:3px solid var(--gold); outline-offset:2px; border-radius:4px; }

.ic{ width:1em; height:1em; }
.rot-90{ transform:rotate(90deg); }
.rot-neg90{ transform:rotate(-90deg); }

.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }
.screen-reader-text{ position:absolute !important; width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px); }

/* Buttons ---------------------------------------------------------------- */
.btn{
	display:inline-flex; align-items:center; justify-content:center; gap:8px;
	padding:12px 22px; border-radius:999px; border:1px solid transparent;
	font-weight:600; font-size:15px; cursor:pointer; transition:transform var(--speed), box-shadow var(--speed), background var(--speed), color var(--speed), border-color var(--speed);
	white-space:nowrap;
}
.btn .ic{ width:18px; height:18px; }
.btn-primary{ background:var(--gold); color:var(--ink-deep); box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:var(--gold-deep); transform:translateY(-1px); box-shadow:var(--shadow); }
.btn-dark{ background:var(--ink); color:#fff; }
.btn-dark:hover{ background:var(--ink-2); transform:translateY(-1px); }
.btn-outline{ background:transparent; border-color:var(--line-strong); color:var(--text); }
.btn-outline:hover{ border-color:var(--ink); background:rgba(15,61,62,.04); }
.btn-outline-light{ background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.35); color:#fff; }
.btn-outline-light:hover{ background:rgba(255,255,255,.18); }
.btn-ghost{ background:transparent; color:var(--text-soft); padding:8px 12px; }
.btn-ghost:hover{ color:var(--ink); }
.btn-sm{ padding:8px 14px; font-size:13px; }
.btn-block{ width:100%; }
.btn-danger{ background:#fdecea; color:var(--vermillion); }
.btn-danger:hover{ background:#f8d7d2; }
.btn:disabled{ opacity:.55; cursor:not-allowed; transform:none !important; }

.eyebrow{
	display:inline-flex; align-items:center; gap:8px; font-size:12.5px; font-weight:700;
	letter-spacing:.09em; text-transform:uppercase; color:var(--gold-deep);
}
.eyebrow::before{ content:""; width:18px; height:2px; background:var(--gold); border-radius:2px; }

.section{ padding:64px 0; }
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:28px; flex-wrap:wrap; }
.section-head h2{ font-size:clamp(24px,3vw,32px); margin:6px 0 0; }
.section-tabs{ display:flex; gap:6px; flex-wrap:wrap; }
.section-tabs a{ padding:8px 16px; border-radius:999px; font-size:14px; font-weight:600; color:var(--text-soft); border:1px solid var(--line); }
.section-tabs a.is-active,.section-tabs a:hover{ background:var(--ink); color:#fff; border-color:var(--ink); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header{
	position:sticky; top:0; z-index:60; background:rgba(247,245,239,.88);
	backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
	border-bottom:1px solid var(--line);
}
.header-inner{ display:flex; align-items:center; gap:16px; padding:14px 24px; max-width:1600px; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:21px; color:var(--ink); flex-shrink:0; }
.brand .brand-mark{
	width:38px; height:38px; border-radius:10px; background:linear-gradient(145deg,var(--ink),var(--ink-2));
	color:var(--gold); display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:800;
}
.brand small{ display:block; font-size:11px; font-weight:600; color:var(--text-soft); letter-spacing:.03em; }

.nav-menu{ display:flex; gap:2px; align-items:center; }
.nav-menu a{ padding:10px 12px; border-radius:999px; font-weight:600; font-size:14.5px; color:var(--text); white-space:nowrap; }
.nav-menu a:hover{ background:rgba(15,61,62,.07); }
.primary-nav{
	flex:1; min-width:0; display:flex; justify-content:flex-start;
	overflow-x:auto; scrollbar-width:none; -ms-overflow-style:none;
}
.primary-nav::-webkit-scrollbar{ display:none; }

.header-actions{ display:flex; align-items:center; gap:6px; flex-shrink:0; }
.lang-toggle{ display:flex; border:1px solid var(--line-strong); border-radius:999px; overflow:hidden; font-size:12.5px; font-weight:700; }
.lang-toggle a{ padding:7px 11px; color:var(--text-soft); }
.lang-toggle a.is-active{ background:var(--ink); color:#fff; }

.currency-switch{ position:relative; }
.currency-trigger{ width:auto; padding:0 12px; font-size:12.5px; font-weight:800; letter-spacing:.03em; border:1px solid var(--line-strong); border-radius:999px; }
.currency-trigger:hover{ background:rgba(15,61,62,.07); }
.currency-menu{
	position:absolute; top:calc(100% + 8px); left:0; background:#fff; border:1px solid var(--line);
	border-radius:12px; box-shadow:var(--shadow); padding:6px; display:grid; grid-template-columns:1fr 1fr; gap:2px;
	min-width:130px; z-index:70;
}
.currency-menu[hidden]{ display:none; }
.currency-option{ background:none; border:none; text-align:left; padding:7px 10px; border-radius:8px; font-size:13px; font-weight:600; color:var(--text); }
.currency-option:hover{ background:var(--bg-alt); }
.currency-option.is-active{ background:var(--ink); color:#fff; }

.icon-btn{ position:relative; width:40px; height:40px; border-radius:999px; display:flex; align-items:center; justify-content:center; color:var(--text); border:1px solid transparent; }
.icon-btn:hover{ background:rgba(15,61,62,.07); }
.icon-btn .badge-dot{ position:absolute; top:4px; right:4px; width:9px; height:9px; border-radius:50%; background:var(--vermillion); border:2px solid var(--bg); }

.user-chip{ display:flex; align-items:center; gap:8px; padding:5px 12px 5px 6px; border-radius:999px; border:1px solid var(--line-strong); }
.user-chip img{ width:28px; height:28px; border-radius:50%; object-fit:cover; }
.user-chip span{ font-size:13.5px; font-weight:600; }

.menu-toggle{ display:none; background:none; border:none; width:40px; height:40px; align-items:center; justify-content:center; color:var(--ink); }

@media (max-width: 1320px){
	.primary-nav{ display:none; }
	.menu-toggle{ display:flex; }
}

/* Mobile drawer */
.mobile-drawer{ position:fixed; inset:0; z-index:90; display:none; }
.mobile-drawer.is-open{ display:block; }
.mobile-drawer .backdrop{ position:absolute; inset:0; background:rgba(8,38,39,.55); }
.mobile-drawer .panel{
	position:absolute; top:0; right:0; bottom:0; width:min(320px,88vw); background:var(--card);
	padding:20px; overflow-y:auto; box-shadow:var(--shadow-lg);
	animation:slideIn var(--speed) ease;
}
@keyframes slideIn{ from{ transform:translateX(100%);} to{ transform:translateX(0);} }
.mobile-drawer .nav-menu{ flex-direction:column; align-items:stretch; gap:2px; margin-top:16px; }
.mobile-drawer .nav-menu a{ padding:12px 14px; }
.drawer-head{ display:flex; justify-content:space-between; align-items:center; }

/* ==========================================================================
   HERO — signature: floating listing-card collage over a gradient band
   ========================================================================== */
.hero{
	position:relative; overflow:hidden;
	background:radial-gradient(ellipse 900px 500px at 12% 8%, rgba(232,169,58,.28), transparent 60%),
	           linear-gradient(160deg,var(--ink) 0%, var(--ink-2) 55%, var(--ink-deep) 100%);
	color:#fff; padding:64px 0 110px;
}
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:40px; align-items:center; }
.hero-eyebrow{ color:var(--gold); }
.hero h1{ font-size:clamp(32px,4.2vw,52px); color:#fff; margin:14px 0 16px; max-width:16ch; }
.hero p.lede{ font-size:17px; color:rgba(255,255,255,.78); max-width:44ch; margin-bottom:26px; }
.hero-stats{ display:flex; gap:26px; margin-top:30px; flex-wrap:wrap; }
.hero-stats div{ display:flex; flex-direction:column; }
.hero-stats strong{ font-size:22px; color:var(--gold); }
.hero-stats span{ font-size:12.5px; color:rgba(255,255,255,.65); text-transform:uppercase; letter-spacing:.06em; }

.hero-collage{ position:relative; height:420px; }
.floaty{
	position:absolute; width:220px; background:var(--card); border-radius:var(--radius); padding:12px;
	box-shadow:var(--shadow-lg); color:var(--text);
	animation:bob 6s ease-in-out infinite;
}
.floaty img{ width:100%; height:110px; object-fit:cover; border-radius:10px; margin-bottom:8px; }
.floaty .fname{ font-size:13px; font-weight:700; margin-bottom:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.floaty .fprice{ font-size:13px; font-weight:800; color:var(--ink); }
.floaty .ftag{ position:absolute; top:8px; left:8px; background:var(--gold); color:var(--ink-deep); font-size:10.5px; font-weight:800; padding:3px 8px; border-radius:999px; }
.floaty.f1{ top:0; left:10%; transform:rotate(-6deg); animation-delay:0s; }
.floaty.f2{ top:38%; left:44%; transform:rotate(4deg); animation-delay:1.4s; z-index:2; }
.floaty.f3{ bottom:0; left:6%; transform:rotate(3deg); animation-delay:2.6s; }
.floaty.f4{ top:8%; right:2%; transform:rotate(7deg); width:180px; animation-delay:.8s; }
@keyframes bob{ 0%,100%{ transform:translateY(0) rotate(var(--r,0)); } 50%{ transform:translateY(-12px); } }

.search-card{
	background:#fff; border-radius:var(--radius-lg); padding:10px; box-shadow:var(--shadow-lg);
	display:flex; gap:6px; margin-top:8px; position:relative; z-index:5; flex-wrap:wrap;
}
.search-card select,.search-card input[type=text]{
	border:none; background:transparent; font-family:inherit; font-size:14.5px; color:var(--text);
	padding:12px 14px; border-radius:10px;
}
.search-card select{
	appearance:none; background-image:none; padding-right:28px; max-width:220px;
	text-overflow:ellipsis; white-space:nowrap; overflow:hidden;
}
.search-card .sel-wrap{ position:relative; display:flex; align-items:center; min-width:0; }
.search-card .sel-wrap .ic{ position:absolute; right:10px; pointer-events:none; width:14px; height:14px; color:var(--text-soft); }
.search-card .divider{ width:1px; background:var(--line); margin:8px 0; }
.search-card input[type=text]{ flex:1; min-width:160px; }
.search-card input:focus,.search-card select:focus{ outline:none; background:var(--bg); }
.search-card button{ flex-shrink:0; }

.hero-quicklinks{ margin-top:18px; display:flex; gap:10px; flex-wrap:wrap; }
.hero-quicklinks a{ font-size:13px; color:rgba(255,255,255,.75); border:1px solid rgba(255,255,255,.25); padding:6px 13px; border-radius:999px; }
.hero-quicklinks a:hover{ border-color:var(--gold); color:var(--gold); }

@media (max-width:940px){
	.hero-grid{ grid-template-columns:1fr; }
	.hero-collage{ display:none; }
	.hero{ padding-bottom:70px; }
}

/* ==========================================================================
   CATEGORY RAIL
   ========================================================================== */
.cat-rail{ display:flex; gap:14px; overflow-x:auto; padding:6px 2px 18px; scrollbar-width:thin; }
.cat-chip{
	flex:0 0 auto; width:118px; text-align:center; padding:18px 10px; background:var(--card);
	border:1px solid var(--line); border-radius:var(--radius); transition:transform var(--speed), box-shadow var(--speed), border-color var(--speed);
}
.cat-chip:hover{ transform:translateY(-4px); box-shadow:var(--shadow); border-color:var(--gold); }
.cat-chip .cat-ic{
	width:46px; height:46px; margin:0 auto 10px; border-radius:12px; display:flex; align-items:center; justify-content:center;
	background:linear-gradient(150deg, #FCEFD2, #F5DFA6); color:var(--gold-deep);
}
.cat-chip .cat-ic .ic{ width:22px; height:22px; }
.cat-chip span{ font-size:13px; font-weight:700; }

/* ==========================================================================
   LISTING CARDS
   ========================================================================== */
.grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.grid.cols-3{ grid-template-columns:repeat(3,1fr); }
@media (max-width:1100px){ .grid,.grid.cols-3{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:760px){ .grid,.grid.cols-3{ grid-template-columns:repeat(2,1fr); gap:14px; } }
@media (max-width:480px){ .grid,.grid.cols-3{ grid-template-columns:1fr 1fr; gap:10px; } }

.listing-card{
	background:var(--card); border-radius:var(--radius); overflow:hidden; border:1px solid var(--line);
	transition:transform var(--speed), box-shadow var(--speed); position:relative; display:flex; flex-direction:column;
	opacity:0; transform:translateY(14px); animation:cardIn .5s ease forwards;
}
@keyframes cardIn{ to{ opacity:1; transform:translateY(0); } }
.listing-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow); }
.lc-media{ position:relative; aspect-ratio:4/3; background:var(--bg-alt); overflow:hidden; }
.lc-media img{ width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.listing-card:hover .lc-media img{ transform:scale(1.06); }
.lc-badges{ position:absolute; top:9px; left:9px; display:flex; flex-direction:column; gap:5px; }
.lc-badge{ font-size:10.5px; font-weight:800; padding:4px 9px; border-radius:999px; letter-spacing:.02em; }
.lc-badge.featured{ background:var(--gold); color:var(--ink-deep); }
.lc-badge.verified{ background:var(--verified); color:#fff; display:flex; align-items:center; gap:3px; }
.lc-badge.wanted{ background:var(--ink); color:#fff; }
.lc-badge.auction{ background:var(--vermillion); color:#fff; }
.lc-badge.verified .ic{ width:10px; height:10px; }
.lc-fav{
	position:absolute; top:9px; right:9px; width:32px; height:32px; border-radius:50%; background:rgba(255,255,255,.92);
	display:flex; align-items:center; justify-content:center; color:var(--vermillion); border:none;
}
.lc-fav .ic{ width:16px; height:16px; }
.lc-fav.is-fav .ic{ fill:currentColor; }
.lc-sold-strip{
	position:absolute; inset:0; background:rgba(8,38,39,.55); display:flex; align-items:center; justify-content:center;
}
.lc-sold-strip span{ background:var(--vermillion); color:#fff; font-weight:800; padding:6px 18px; border-radius:6px; transform:rotate(-8deg); font-size:14px; letter-spacing:.04em; }
.lc-body{ padding:13px 14px 15px; display:flex; flex-direction:column; gap:6px; flex:1; }
.lc-title{ font-size:14.5px; font-weight:700; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:2.6em; }
.lc-price{ font-size:16.5px; font-weight:800; color:var(--ink); }
.lc-meta{ display:flex; align-items:center; justify-content:space-between; font-size:12px; color:var(--text-soft); margin-top:auto; }
.lc-meta .loc{ display:flex; align-items:center; gap:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lc-meta .loc .ic{ width:12px; height:12px; flex-shrink:0; }
.lc-timer{ font-size:11.5px; font-weight:700; color:var(--vermillion); display:flex; align-items:center; gap:4px; }

/* Section-scoped stagger */
.grid .listing-card:nth-child(1){ animation-delay:.02s; } .grid .listing-card:nth-child(2){ animation-delay:.06s; }
.grid .listing-card:nth-child(3){ animation-delay:.10s; } .grid .listing-card:nth-child(4){ animation-delay:.14s; }
.grid .listing-card:nth-child(5){ animation-delay:.18s; } .grid .listing-card:nth-child(6){ animation-delay:.22s; }
.grid .listing-card:nth-child(7){ animation-delay:.26s; } .grid .listing-card:nth-child(8){ animation-delay:.30s; }

/* ==========================================================================
   TRUST STRIP
   ========================================================================== */
.trust-strip{ background:var(--card); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.trust-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; }
.trust-item{ display:flex; gap:14px; align-items:flex-start; padding:30px 24px; border-left:1px solid var(--line); }
.trust-item:first-child{ border-left:none; }
.trust-item .ic-wrap{ width:44px; height:44px; border-radius:12px; background:#EAF4EE; color:var(--verified); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.trust-item .ic-wrap .ic{ width:22px; height:22px; }
.trust-item h4{ font-size:15px; margin-bottom:3px; }
.trust-item p{ font-size:13px; color:var(--text-soft); margin:0; }
@media (max-width:900px){ .trust-grid{ grid-template-columns:1fr 1fr; } .trust-item{ border-left:none; border-top:1px solid var(--line); } .trust-item:first-child{ border-top:none; } }
@media (max-width:560px){ .trust-grid{ grid-template-columns:1fr; } }

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner{
	background:linear-gradient(120deg,var(--ink),var(--ink-2)); border-radius:var(--radius-lg); padding:46px 48px;
	display:flex; align-items:center; justify-content:space-between; gap:20px; color:#fff; flex-wrap:wrap;
	position:relative; overflow:hidden;
}
.cta-banner::after{
	content:""; position:absolute; right:-60px; top:-60px; width:220px; height:220px; border-radius:50%;
	background:radial-gradient(circle, rgba(232,169,58,.35), transparent 70%);
}
.cta-banner h3{ font-size:26px; color:#fff; margin-bottom:6px; max-width:20ch; }
.cta-banner p{ color:rgba(255,255,255,.75); margin:0; }

/* ==========================================================================
   BLOG PREVIEW / VIDEO SECTION
   ========================================================================== */
.blog-card{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.blog-card img{ aspect-ratio:16/10; object-fit:cover; }
.blog-card .bc-body{ padding:16px; }
.blog-card .bc-cat{ font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; color:var(--gold-deep); }
.blog-card h4{ font-size:16px; margin:6px 0 8px; }
.blog-card p{ font-size:13.5px; color:var(--text-soft); }

.video-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.video-frame{ position:relative; aspect-ratio:16/9; border-radius:var(--radius); overflow:hidden; background:#000; }
.video-frame iframe{ width:100%; height:100%; border:0; }
@media (max-width:760px){ .video-grid{ grid-template-columns:1fr; } }

/* App banner */
.app-banner{ display:flex; align-items:center; gap:40px; background:var(--bg-alt); border-radius:var(--radius-lg); padding:40px 48px; flex-wrap:wrap; }
.app-banner .badges{ display:flex; gap:12px; margin-top:16px; }
.store-badge{ display:flex; align-items:center; gap:8px; background:var(--ink); color:#fff; padding:10px 16px; border-radius:10px; font-size:13px; font-weight:600; }
.store-badge small{ display:block; font-size:9.5px; opacity:.7; font-weight:500; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{ background:var(--ink-deep); color:rgba(255,255,255,.78); padding:56px 0 0; margin-top:40px; }
.footer-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:32px; padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,.1); }
.footer-grid h5{ color:#fff; font-size:13px; text-transform:uppercase; letter-spacing:.07em; margin-bottom:16px; }
.footer-grid ul{ display:flex; flex-direction:column; gap:10px; }
.footer-grid a{ font-size:14px; color:rgba(255,255,255,.68); }
.footer-grid a:hover{ color:var(--gold); }
.footer-brand p{ font-size:13.5px; max-width:34ch; color:rgba(255,255,255,.6); }
.social-row{ display:flex; gap:10px; margin-top:16px; }
.social-row a{ width:36px; height:36px; border-radius:50%; border:1px solid rgba(255,255,255,.2); display:flex; align-items:center; justify-content:center; }
.social-row a:hover{ background:var(--gold); border-color:var(--gold); color:var(--ink-deep); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding:22px 0; font-size:13px; color:rgba(255,255,255,.5); flex-wrap:wrap; gap:10px; }
@media (max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }

/* WhatsApp float */
.wa-float{
	position:fixed; bottom:24px; right:24px; width:56px; height:56px; border-radius:50%; background:#25D366;
	display:flex; align-items:center; justify-content:center; color:#fff; box-shadow:var(--shadow-lg); z-index:50;
	transition:transform var(--speed);
}
.wa-float:hover{ transform:scale(1.08); }
.wa-float .ic{ width:26px; height:26px; }

/* ==========================================================================
   BREADCRUMBS / PAGE HEADERS
   ========================================================================== */
.breadcrumbs{ font-size:13px; color:var(--text-soft); padding:16px 0; display:flex; gap:6px; flex-wrap:wrap; }
.breadcrumbs a{ color:var(--text-soft); }
.breadcrumbs a:hover{ color:var(--ink); }
.breadcrumbs span{ color:var(--text-soft); }
.page-header{ padding:28px 0 8px; }
.page-header h1{ font-size:clamp(24px,3vw,34px); }

/* ==========================================================================
   BROWSE / ARCHIVE LAYOUT
   ========================================================================== */
.browse-layout{ display:grid; grid-template-columns:270px 1fr; gap:30px; padding:10px 0 60px; align-items:flex-start; }
.filters-panel{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:20px; position:sticky; top:90px; }
.filters-panel h4{ font-size:14px; text-transform:uppercase; letter-spacing:.04em; margin-bottom:14px; }
.filter-group{ margin-bottom:20px; }
.filter-group label.fg-label{ display:block; font-size:12.5px; font-weight:700; color:var(--text-soft); margin-bottom:8px; text-transform:uppercase; letter-spacing:.03em; }
.filter-group select,.filter-group input[type=text],.filter-group input[type=number]{
	width:100%; padding:10px 12px; border:1px solid var(--line-strong); border-radius:10px; font-family:inherit; font-size:14px; background:#fff;
}
.filter-group .range-row{ display:flex; gap:8px; }
.radio-row label{ display:flex; align-items:center; gap:8px; font-size:13.5px; padding:6px 0; }
.chip-row{ display:flex; flex-wrap:wrap; gap:6px; }
.chip-row label{ font-size:12.5px; border:1px solid var(--line-strong); padding:6px 12px; border-radius:999px; cursor:pointer; }
.chip-row input{ display:none; }
.chip-row label:has(input:checked){ background:var(--ink); border-color:var(--ink); color:#fff; font-weight:700; }

.browse-toolbar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; flex-wrap:wrap; gap:10px; }
.result-count{ font-size:14.5px; color:var(--text-soft); }
.result-count strong{ color:var(--text); }
.sort-select{ padding:9px 14px; border-radius:10px; border:1px solid var(--line-strong); font-family:inherit; background:#fff; font-size:13.5px; }
.mobile-filter-btn{ display:none; }

@media (max-width:960px){
	.browse-layout{ grid-template-columns:1fr; }
	.filters-panel{ position:fixed; inset:0; z-index:95; border-radius:0; overflow-y:auto; display:none; }
	.filters-panel.is-open{ display:block; }
	.mobile-filter-btn{ display:inline-flex; }
}

.empty-state{ text-align:center; padding:70px 20px; color:var(--text-soft); }
.empty-state .ic{ width:48px; height:48px; margin-bottom:14px; color:var(--line-strong); }

.pagination ul{ display:flex; gap:6px; justify-content:center; margin-top:36px; }
.pagination a,.pagination span{ display:flex; align-items:center; justify-content:center; min-width:38px; height:38px; border-radius:10px; border:1px solid var(--line); font-size:13.5px; font-weight:600; padding:0 6px; }
.pagination .current{ background:var(--ink); color:#fff; border-color:var(--ink); }
.pagination a:hover{ border-color:var(--ink); }

/* ==========================================================================
   SINGLE LISTING
   ========================================================================== */
.listing-layout{ display:grid; grid-template-columns:1.55fr .95fr; gap:36px; padding-bottom:70px; align-items:flex-start; }
@media (max-width:960px){ .listing-layout{ grid-template-columns:1fr; } }

.gallery-main{ border-radius:var(--radius-lg); overflow:hidden; aspect-ratio:4/3; background:var(--bg-alt); position:relative; }
.gallery-main img{ width:100%; height:100%; object-fit:cover; }
.gallery-nav{ position:absolute; top:50%; transform:translateY(-50%); width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.9); display:flex; align-items:center; justify-content:center; }
.gallery-nav.prev{ left:12px; } .gallery-nav.next{ right:12px; }
.gallery-thumbs{ display:flex; gap:8px; margin-top:10px; overflow-x:auto; }
.gallery-thumbs img{ width:76px; height:60px; object-fit:cover; border-radius:8px; border:2px solid transparent; opacity:.6; }
.gallery-thumbs img.is-active{ border-color:var(--gold); opacity:1; }

.listing-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-top:22px; }
.listing-head h1{ font-size:clamp(21px,2.6vw,28px); margin-bottom:8px; }
.listing-badges{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.listing-sub{ display:flex; gap:16px; flex-wrap:wrap; font-size:13.5px; color:var(--text-soft); }
.listing-sub span{ display:flex; align-items:center; gap:5px; }
.listing-sub .ic{ width:14px; height:14px; }

.listing-actions{ display:flex; gap:8px; flex-shrink:0; }
.round-icon-btn{ width:42px; height:42px; border-radius:50%; border:1px solid var(--line-strong); display:flex; align-items:center; justify-content:center; background:#fff; }
.round-icon-btn:hover{ border-color:var(--ink); }
.round-icon-btn.is-fav{ color:var(--vermillion); border-color:var(--vermillion); }

.prose{ font-size:15px; line-height:1.75; color:var(--text); margin-top:20px; }
.prose h3{ font-size:17px; margin-top:26px; }

.side-card{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:22px; margin-bottom:18px; }
.price-row{ display:flex; align-items:baseline; justify-content:space-between; }
.price-big{ font-size:28px; font-weight:800; color:var(--ink); }
.price-tag{ font-size:11.5px; font-weight:700; padding:4px 10px; border-radius:999px; background:var(--bg-alt); color:var(--text-soft); }
.seller-row{ display:flex; align-items:center; gap:12px; margin-top:18px; padding-top:18px; border-top:1px solid var(--line); }
.seller-row img{ width:48px; height:48px; border-radius:50%; object-fit:cover; }
.seller-row .sname{ font-weight:700; font-size:14.5px; }
.seller-row .stag{ font-size:12px; color:var(--verified); display:flex; align-items:center; gap:3px; }
.seller-row .stag .ic{ width:12px; height:12px; }
.side-actions{ display:flex; flex-direction:column; gap:10px; margin-top:18px; }

.auction-box{ background:linear-gradient(120deg,#FCEFD2,#F8E3B3); border-radius:var(--radius); padding:16px; margin-top:16px; }
.auction-box .timer{ font-size:20px; font-weight:800; color:var(--vermillion); font-variant-numeric:tabular-nums; }
.bid-form{ display:flex; gap:8px; margin-top:12px; }
.bid-form input{ flex:1; padding:10px 12px; border-radius:10px; border:1px solid var(--line-strong); font-family:inherit; }
.bid-list{ margin-top:12px; max-height:180px; overflow-y:auto; }
.bid-row{ display:flex; justify-content:space-between; font-size:13.5px; padding:8px 0; border-bottom:1px solid rgba(0,0,0,.06); }
.bid-row .amt{ font-weight:700; }

.report-link{ font-size:12.5px; color:var(--text-soft); display:inline-flex; align-items:center; gap:5px; margin-top:12px; }
.report-link:hover{ color:var(--vermillion); }

.related-wrap{ margin-top:60px; }

/* ==========================================================================
   FORMS: post-ad, login, dashboard shared
   ========================================================================== */
.form-shell{ max-width:760px; margin:0 auto; background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); padding:36px; }
.form-shell.narrow{ max-width:440px; }
.form-row{ margin-bottom:20px; }
.form-row label{ display:block; font-size:13.5px; font-weight:700; margin-bottom:8px; }
.form-row .hint{ font-size:12px; color:var(--text-soft); font-weight:400; margin-top:6px; }
.form-row input[type=text],.form-row input[type=email],.form-row input[type=password],.form-row input[type=number],
.form-row input[type=tel],.form-row input[type=datetime-local],.form-row textarea,.form-row select{
	width:100%; padding:12px 14px; border:1px solid var(--line-strong); border-radius:10px; font-family:inherit; font-size:14.5px; background:#fff;
	transition:border-color var(--speed);
}
.form-row input:focus,.form-row textarea:focus,.form-row select:focus{ outline:none; border-color:var(--ink); }
.form-row textarea{ resize:vertical; min-height:120px; }
.form-grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:600px){ .form-grid-2{ grid-template-columns:1fr; } }
.check-row{ display:flex; align-items:center; gap:10px; font-size:14px; }
.step-tabs{ display:flex; gap:8px; margin-bottom:26px; }
.step-tabs div{ flex:1; height:4px; border-radius:2px; background:var(--line); }
.step-tabs div.done{ background:var(--gold); }
.upload-zone{
	border:2px dashed var(--line-strong); border-radius:var(--radius); padding:26px; text-align:center; cursor:pointer;
	transition:border-color var(--speed), background var(--speed);
}
.upload-zone:hover,.upload-zone.is-dragover{ border-color:var(--gold); background:#FFFBF0; }
.upload-zone .ic{ width:30px; height:30px; color:var(--text-soft); margin-bottom:8px; }
.upload-preview{ display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.upload-preview .thumb{ position:relative; width:84px; height:84px; border-radius:10px; overflow:hidden; }
.upload-preview .thumb img{ width:100%; height:100%; object-fit:cover; }
.upload-preview .thumb button{ position:absolute; top:3px; right:3px; width:20px; height:20px; border-radius:50%; background:rgba(0,0,0,.6); color:#fff; border:none; display:flex; align-items:center; justify-content:center; }
.form-msg{ padding:12px 16px; border-radius:10px; font-size:13.5px; margin-bottom:18px; display:none; }
.form-msg.error{ background:#FDECEA; color:var(--vermillion); display:block; }
.form-msg.success{ background:#E9F6EE; color:var(--verified); display:block; }

.auth-tabs{ display:flex; gap:6px; background:var(--bg-alt); padding:5px; border-radius:12px; margin-bottom:26px; }
.auth-tabs a{ flex:1; text-align:center; padding:10px; border-radius:9px; font-weight:700; font-size:14px; color:var(--text-soft); }
.auth-tabs a.is-active{ background:#fff; color:var(--ink); box-shadow:var(--shadow-sm); }

/* ==========================================================================
   DASHBOARD
   ========================================================================== */
.dash-layout{ display:grid; grid-template-columns:250px 1fr; gap:30px; padding-bottom:70px; align-items:flex-start; }
@media (max-width:900px){ .dash-layout{ grid-template-columns:1fr; } }
.dash-side{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:18px; position:sticky; top:90px; }
.dash-profile{ display:flex; align-items:center; gap:12px; padding-bottom:16px; margin-bottom:14px; border-bottom:1px solid var(--line); }
.dash-profile img{ width:52px; height:52px; border-radius:50%; object-fit:cover; }
.dash-profile strong{ display:block; font-size:14.5px; }
.dash-profile span{ font-size:12px; color:var(--text-soft); }
.dash-nav a{ display:flex; align-items:center; gap:10px; padding:11px 12px; border-radius:10px; font-weight:600; font-size:14px; color:var(--text-soft); margin-bottom:2px; }
.dash-nav a .ic{ width:17px; height:17px; }
.dash-nav a.is-active,.dash-nav a:hover{ background:var(--bg-alt); color:var(--ink); }
.dash-nav .count{ margin-left:auto; background:var(--vermillion); color:#fff; font-size:10.5px; font-weight:800; padding:1px 6px; border-radius:999px; }

.dash-panel{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:26px; min-height:400px; }
.dash-panel-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.dash-panel-head h2{ font-size:19px; margin:0; }

.dash-table{ width:100%; border-collapse:collapse; }
.dash-table th{ text-align:left; font-size:11.5px; text-transform:uppercase; letter-spacing:.04em; color:var(--text-soft); padding:10px 8px; border-bottom:1px solid var(--line); }
.dash-table td{ padding:12px 8px; border-bottom:1px solid var(--line); font-size:14px; vertical-align:middle; }
.dash-table .li-thumb{ display:flex; align-items:center; gap:10px; }
.dash-table .li-thumb img{ width:44px; height:44px; border-radius:8px; object-fit:cover; background:var(--bg-alt); }
.status-pill{ font-size:11px; font-weight:700; padding:3px 10px; border-radius:999px; }
.status-pill.active{ background:#E9F6EE; color:var(--verified); }
.status-pill.sold{ background:#FDECEA; color:var(--vermillion); }
.row-actions-cell{ display:flex; gap:6px; }

.thread-layout{ display:grid; grid-template-columns:280px 1fr; gap:0; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; height:560px; }
.thread-list{ border-right:1px solid var(--line); overflow-y:auto; }
.thread-item{ display:flex; gap:10px; padding:14px; border-bottom:1px solid var(--line); cursor:pointer; }
.thread-item:hover,.thread-item.is-active{ background:var(--bg-alt); }
.thread-item .tname{ font-weight:700; font-size:13.5px; }
.thread-item .tlisting{ font-size:11.5px; color:var(--gold-deep); font-weight:600; }
.thread-item .tlast{ font-size:12.5px; color:var(--text-soft); margin-top:2px; }
.thread-item .tdot{ width:8px; height:8px; border-radius:50%; background:var(--vermillion); margin-left:auto; flex-shrink:0; margin-top:4px; }
.thread-window{ display:flex; flex-direction:column; }
.thread-header{ padding:14px 18px; border-bottom:1px solid var(--line); font-weight:700; font-size:14px; }
.thread-messages{ flex:1; overflow-y:auto; padding:18px; display:flex; flex-direction:column; gap:10px; }
.bubble{ max-width:70%; padding:10px 14px; border-radius:14px; font-size:13.5px; line-height:1.5; }
.bubble.theirs{ background:var(--bg-alt); align-self:flex-start; border-bottom-left-radius:4px; }
.bubble.mine{ background:var(--ink); color:#fff; align-self:flex-end; border-bottom-right-radius:4px; }
.bubble .btime{ display:block; font-size:10px; opacity:.6; margin-top:4px; }
.thread-input{ display:flex; gap:8px; padding:14px; border-top:1px solid var(--line); }
.thread-input input{ flex:1; padding:11px 14px; border-radius:999px; border:1px solid var(--line-strong); font-family:inherit; }
.thread-empty{ display:flex; align-items:center; justify-content:center; height:100%; color:var(--text-soft); font-size:14px; }
@media (max-width:760px){ .thread-layout{ grid-template-columns:1fr; height:auto; } .thread-list{ max-height:220px; } }

/* ==========================================================================
   BLOG / SINGLE POST
   ========================================================================== */
.post-content{ max-width:760px; margin:0 auto; font-size:16px; line-height:1.8; }
.post-content img{ border-radius:var(--radius); }
.post-content h2{ font-size:22px; margin-top:32px; }
.post-content blockquote{ border-left:3px solid var(--gold); padding-left:16px; color:var(--text-soft); font-style:italic; }

/* ==========================================================================
   MISC / STATES
   ========================================================================== */
.skeleton{ background:linear-gradient(90deg,var(--bg-alt) 25%,#f4f1e6 37%,var(--bg-alt) 63%); background-size:400% 100%; animation:shimmer 1.4s infinite; border-radius:8px; }
@keyframes shimmer{ 0%{ background-position:100% 0; } 100%{ background-position:0 0; } }
.toast{ position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(20px); background:var(--ink); color:#fff; padding:12px 22px; border-radius:999px; font-size:13.5px; font-weight:600; box-shadow:var(--shadow-lg); opacity:0; pointer-events:none; transition:all var(--speed); z-index:200; }
.toast.is-show{ opacity:1; transform:translateX(-50%) translateY(0); }
.toast.is-error{ background:var(--vermillion); }

[data-reveal]{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible{ opacity:1; transform:translateY(0); }

::selection{ background:var(--gold); color:var(--ink-deep); }
