/* ==========================================================================
   Classifieds Marketplace — front-end design system
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
	--blue: #0055d4;
	--blue-dark: #003d99;
	--blue-light: #eaf2ff;
	--yellow: #ffb800;
	--ink: #14181f;
	--gray-700: #4b5563;
	--gray-500: #6b7280;
	--gray-300: #d1d5db;
	--gray-200: #e5e7eb;
	--gray-100: #f3f4f6;
	--green: #17a35a;
	--green-light: #e9f9f0;
	--red: #e0245e;
	--radius: 14px;
	--radius-sm: 10px;
	--radius-lg: 18px;
	--shadow-sm: 0 1px 3px rgba(20,24,31,.08);
	--shadow-md: 0 4px 16px rgba(20,24,31,.08);
	--shadow-lift: 0 12px 32px rgba(20,24,31,.14);
}

.cfm-dashboard, .cfm-seller-profile, .cfm-browse, .cfm-inbox, .cfm-form {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--ink);
}

/* ---------------------------------------------------------------
 * Base forms
 * --------------------------------------------------------------- */
.cfm-form { max-width: 460px; margin: 0 auto 2em; background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.cfm-form h3 { margin: 0 0 18px; font-size: 20px; font-weight: 800; }
.cfm-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; color: var(--gray-700); }
.cfm-form input[type="text"],
.cfm-form input[type="email"],
.cfm-form input[type="password"],
.cfm-form input[type="number"],
.cfm-form select,
.cfm-form textarea {
	width: 100%; padding: 12px 14px; margin-bottom: 14px;
	border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
	box-sizing: border-box; font-size: 15px; font-family: inherit;
	transition: border-color .15s;
}
.cfm-form input:focus, .cfm-form select:focus, .cfm-form textarea:focus { outline: none; border-color: var(--blue); }
.cfm-form button, .cfm-btn-primary {
	background: var(--blue); color: #fff; border: none;
	padding: 13px 22px; border-radius: var(--radius-sm); cursor: pointer;
	font-size: 15px; font-weight: 700; font-family: inherit;
	display: inline-flex; align-items: center; gap: 8px;
	transition: background .15s, transform .1s;
}
.cfm-form button:hover, .cfm-btn-primary:hover { background: var(--blue-dark); }
.cfm-btn-primary:active { transform: scale(.98); }
.cfm-btn-ghost {
	background: none; border: 1.5px solid var(--gray-200); color: var(--gray-700);
	padding: 13px 20px; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; font-family: inherit; font-size: 15px;
}
.cfm-btn-ghost:hover { background: var(--gray-100); }
.cfm-form-message { margin-top: 10px; font-weight: 600; font-size: 14px; }
.cfm-form-message.success { color: var(--green); }
.cfm-form-message.error { color: var(--red); }
.cfm-hint { font-weight: 400; color: var(--gray-500); }
.cfm-hint-text { color: var(--gray-500); font-size: 14px; margin: -4px 0 18px; }
.cfm-hint-block { display: block; color: var(--gray-500); font-size: 13px; margin-top: 2px; }

.cfm-notice { padding: 14px 18px; background: var(--blue-light); border-left: 4px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1em 0; }
.cfm-notice a { color: var(--blue-dark); font-weight: 700; }

/* ---------------------------------------------------------------
 * Filter form / browse
 * --------------------------------------------------------------- */
.cfm-filter-form { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.cfm-filter-form input, .cfm-filter-form select { padding: 12px 14px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); font-family: inherit; font-size: 14px; }
.cfm-filter-form input { flex: 1; min-width: 180px; }
.cfm-filter-form button { background: var(--blue); color: #fff; border: none; padding: 12px 22px; border-radius: var(--radius-sm); cursor: pointer; font-weight: 700; }

.cfm-pagination { margin-top: 24px; display: flex; gap: 6px; flex-wrap: wrap; }
.cfm-pagination .page-numbers { padding: 9px 14px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); text-decoration: none; color: var(--gray-700); font-weight: 600; font-size: 14px; }
.cfm-pagination .page-numbers.current { background: var(--blue); color: #fff; border-color: var(--blue); }

.cfm-section-title { font-size: 20px; font-weight: 800; margin: 32px 0 16px; }
.cfm-section-title-row { margin: 40px 0 16px; }
.cfm-section-title-row h2 { font-size: 20px; font-weight: 800; margin: 0; }

/* ---------------------------------------------------------------
 * PRODUCT CARD — used everywhere a listing is shown (browse, saved,
 * seller profile, similar ads). Always at least 2 columns, even on
 * the smallest phones.
 * --------------------------------------------------------------- */
.cfm-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}
@media (min-width: 620px) { .cfm-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 880px) { .cfm-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1180px) { .cfm-grid { grid-template-columns: repeat(5, 1fr); } }

.cfm-card {
	position: relative; display: block; background: #fff;
	border-radius: var(--radius); overflow: hidden;
	box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
	transition: box-shadow .2s, transform .2s;
}
.cfm-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.cfm-card-link { display: block; text-decoration: none; color: inherit; }

.cfm-card-media { position: relative; aspect-ratio: 4 / 3.2; overflow: hidden; background: var(--gray-100); }
.cfm-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.cfm-card:hover .cfm-card-media img { transform: scale(1.06); }
.cfm-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--gray-500); font-size: 13px; }
.cfm-card-media-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(to top, rgba(0,0,0,.45), transparent); pointer-events: none; }
.cfm-card-views {
	position: absolute; left: 8px; bottom: 8px; z-index: 2;
	display: flex; align-items: center; gap: 4px;
	background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 600;
	padding: 3px 8px; border-radius: 20px; backdrop-filter: blur(2px);
}

.cfm-save-btn {
	position: absolute; top: 8px; right: 8px; z-index: 3;
	width: 32px; height: 32px; border-radius: 50%; border: none;
	background: rgba(255,255,255,.85); backdrop-filter: blur(6px);
	box-shadow: 0 1px 6px rgba(0,0,0,.18);
	display: flex; align-items: center; justify-content: center;
	color: var(--gray-700); cursor: pointer; transition: transform .12s, color .12s;
}
.cfm-save-btn:hover { transform: scale(1.08); }
.cfm-save-btn.cfm-saved { color: var(--red); }
.cfm-contact-box-top .cfm-save-btn, .cfm-price-row .cfm-save-btn { position: static; background: var(--gray-100); }

.cfm-card-body { padding: 10px 12px 12px; }
.cfm-price { font-weight: 800; font-size: 15px; margin: 0 0 4px; color: var(--ink); }
.cfm-cur { font-weight: 600; color: var(--gray-500); font-size: 12px; margin-right: 3px; }
.cfm-card-title {
	margin: 0 0 6px; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--ink);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	min-height: 2.7em;
}
.cfm-card-meta { display: flex; align-items: center; gap: 5px; color: var(--gray-500); font-size: 11.5px; margin-bottom: 8px; flex-wrap: wrap; }
.cfm-card-meta svg { flex-shrink: 0; margin-right: 2px; vertical-align: -1px; }
.cfm-dot { opacity: .6; }
.cfm-card-seller { display: flex; align-items: center; gap: 6px; padding-top: 8px; border-top: 1px solid var(--gray-100); }
.cfm-card-seller img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.cfm-card-seller span { font-size: 11.5px; font-weight: 600; color: var(--gray-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Follow button (used on seller rows, profile header, seller card) */
.cfm-follow-btn {
	background: var(--blue); color: #fff; border: none; padding: 9px 16px; border-radius: 999px;
	font-weight: 700; cursor: pointer; font-size: 13px; display: inline-flex; align-items: center; gap: 6px;
	transition: background .15s;
}
.cfm-follow-btn:hover { background: var(--blue-dark); }
.cfm-follow-btn.cfm-following { background: var(--gray-100); color: var(--gray-700); }

/* ---------------------------------------------------------------
 * SINGLE LISTING — contact box / seller card / chat / spec grid
 * --------------------------------------------------------------- */
.cfm-price-card, .cfm-seller-card {
	background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
	padding: 20px; box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.cfm-price-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cfm-price-main { font-size: 26px; font-weight: 800; }
.cfm-contact-btn-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.cfm-contact-btn {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 18px; border-radius: var(--radius-sm); text-decoration: none;
	font-weight: 700; font-size: 15px; border: none; cursor: pointer;
}
.cfm-contact-btn-whatsapp { background: #25D366; color: #fff; }
.cfm-contact-btn-whatsapp:hover { background: #1fb355; }
.cfm-contact-btn-call { background: var(--blue-light); color: var(--blue-dark); }
.cfm-contact-btn-call:hover { background: #dbe9ff; }
.cfm-view-count-line { display: flex; align-items: center; gap: 6px; color: var(--gray-500); font-size: 13px; }

.cfm-seller-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cfm-seller-card-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.cfm-seller-card-info { display: flex; flex-direction: column; }
.cfm-seller-card-name { font-weight: 800; font-size: 15px; }
.cfm-seller-card-sub { font-size: 12.5px; color: var(--gray-500); }
.cfm-seller-card-stats { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); margin-bottom: 14px; }
.cfm-seller-card-stat { display: flex; flex-direction: column; align-items: center; }
.cfm-seller-card-stat b { font-size: 17px; font-weight: 800; }
.cfm-seller-card-stat span { font-size: 11.5px; color: var(--gray-500); }
.cfm-seller-card-actions { display: flex; gap: 10px; }
.cfm-seller-card-actions .cfm-follow-btn { flex: 1; justify-content: center; }
.cfm-btn-view-profile { flex: 1; text-align: center; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--gray-200); text-decoration: none; color: var(--ink); font-weight: 700; font-size: 13px; }
.cfm-btn-view-profile:hover { background: var(--gray-100); }

.cfm-chat-box { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 18px; margin-top: 16px; background: #fff; }
.cfm-chat-box h4 { margin: 0 0 12px; font-size: 15px; font-weight: 800; }
.cfm-chat-thread { max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.cfm-chat-msg { padding: 9px 13px; border-radius: 14px; max-width: 82%; font-size: 13.5px; }
.cfm-chat-msg.mine { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.cfm-chat-msg.theirs { align-self: flex-start; background: var(--gray-100); color: var(--ink); border-bottom-left-radius: 4px; }
.cfm-chat-time { display: block; font-size: 10.5px; opacity: .75; margin-top: 3px; }
.cfm-chat-input-row { display: flex; gap: 8px; align-items: flex-end; }
.cfm-chat-input { flex: 1; min-height: 44px; max-height: 100px; padding: 10px 12px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); box-sizing: border-box; font-family: inherit; resize: vertical; }
.cfm-chat-send { background: var(--blue); color: #fff; border: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cfm-chat-send:hover { background: var(--blue-dark); }
.cfm-inbox-thread { margin-bottom: 24px; }
.cfm-inbox h2 { font-size: 22px; font-weight: 800; margin-bottom: 18px; }

/* Spec grid (rendered by CFM_Fields::render_specs_grid on single listing page) */
.cfm-spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 18px 0 28px; }
.cfm-spec-item { display: flex; align-items: flex-start; gap: 10px; background: var(--gray-100); border-radius: var(--radius-sm); padding: 12px 14px; }
.cfm-spec-item svg { color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.cfm-spec-item-label { display: block; font-size: 11px; color: var(--gray-500); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2px; }
.cfm-spec-item-value { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }

/* ---------------------------------------------------------------
 * SELLER DASHBOARD — sidebar layout
 * --------------------------------------------------------------- */
.cfm-dash-shell { display: grid; grid-template-columns: 260px 1fr; gap: 24px; max-width: 1140px; margin: 0 auto; align-items: start; }
@media (max-width: 900px) { .cfm-dash-shell { grid-template-columns: 1fr; } .cfm-dash-sidebar { display: none; } }

.cfm-mobile-tabs { display: none; overflow-x: auto; gap: 8px; padding: 4px 2px 14px; border-bottom: 1px solid var(--gray-200); margin-bottom: 6px; }
.cfm-mobile-tabs .cfm-tab-btn { flex-shrink: 0; padding: 9px 15px; border-radius: 999px; background: var(--gray-100); border: none; font-weight: 700; font-size: 13.5px; color: var(--gray-700); cursor: pointer; }
.cfm-mobile-tabs .cfm-tab-btn.cfm-tab-active { background: var(--blue); color: #fff; }
@media (max-width: 900px) { .cfm-mobile-tabs { display: flex; } }

.cfm-dash-profile-card { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); border-radius: var(--radius-lg); padding: 24px 20px; color: #fff; text-align: center; margin-bottom: 18px; }
.cfm-dash-avatar-wrap { display: flex; justify-content: center; margin-bottom: 12px; }
.cfm-dash-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.5); }
.cfm-dash-profile-card h2 { margin: 0 0 2px; font-size: 17px; font-weight: 800; }
.cfm-dash-sub { margin: 0 0 14px; font-size: 12.5px; opacity: .85; }
.cfm-dash-public-link { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-size: 12.5px; font-weight: 700; background: rgba(255,255,255,.18); padding: 7px 14px; border-radius: 999px; }
.cfm-dash-public-link:hover { background: rgba(255,255,255,.28); }

.cfm-dash-nav { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 10px; box-shadow: var(--shadow-sm); }
.cfm-dash-nav .cfm-tab-btn {
	display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
	background: none; border: none; padding: 11px 14px; border-radius: var(--radius-sm);
	font-size: 14px; font-weight: 600; color: var(--gray-700); cursor: pointer; margin-bottom: 2px;
	text-decoration: none;
}
.cfm-dash-nav .cfm-tab-btn:hover { background: var(--gray-100); }
.cfm-dash-nav .cfm-tab-btn.cfm-tab-active { background: var(--blue-light); color: var(--blue-dark); font-weight: 700; }
.cfm-dash-nav-divider { height: 1px; background: var(--gray-200); margin: 8px 6px; }
.cfm-dash-logout { color: var(--red) !important; }

.cfm-dash-main { min-width: 0; }
.cfm-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.cfm-panel-head h1 { margin: 0 0 4px; font-size: 24px; font-weight: 800; }
.cfm-panel-head p { margin: 0; color: var(--gray-500); font-size: 14px; }
.cfm-tab-panel { display: none; }
.cfm-tab-panel.cfm-tab-active { display: block; }

.cfm-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
@media (min-width: 700px) { .cfm-stat-grid { grid-template-columns: repeat(3, 1fr); } }
.cfm-stat-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.cfm-stat-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.cfm-stat-blue { background: var(--blue-light); color: var(--blue); }
.cfm-stat-green { background: var(--green-light); color: var(--green); }
.cfm-stat-yellow { background: #fff6e0; color: #b8860b; }
.cfm-stat-purple { background: #f1eaff; color: #7c3aed; }
.cfm-stat-red { background: #fdeaf0; color: var(--red); }
.cfm-stat-gray { background: var(--gray-100); color: var(--gray-700); }
.cfm-stat-num { display: block; font-size: 22px; font-weight: 800; }
.cfm-stat-label { display: block; font-size: 12px; color: var(--gray-500); margin-top: 2px; }

.cfm-section-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.cfm-section-card h3 { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
.cfm-link-arrow { color: var(--blue); font-weight: 700; text-decoration: none; }

.cfm-ad-list { display: flex; flex-direction: column; gap: 0; padding: 8px; }
.cfm-ad-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius-sm); }
.cfm-ad-row:hover { background: var(--gray-100); }
.cfm-ad-thumb, .cfm-noimg-sm { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; background: var(--gray-100); flex-shrink: 0; }
.cfm-ad-info { flex: 1; min-width: 0; }
.cfm-ad-info h4 { margin: 0 0 6px; font-size: 14.5px; font-weight: 700; }
.cfm-ad-info h4 a { color: var(--ink); text-decoration: none; }
.cfm-ad-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--gray-500); }
.cfm-ad-views { display: flex; align-items: center; gap: 4px; }
.cfm-status-pill { padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .02em; }
.cfm-status-publish { background: var(--green-light); color: var(--green); }
.cfm-status-pending, .cfm-status-draft { background: #fff6e0; color: #b8860b; }
.cfm-ad-price { font-weight: 700; color: var(--ink); }
.cfm-ad-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cfm-icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--gray-200); background: #fff; display: flex; align-items: center; justify-content: center; color: var(--gray-700); cursor: pointer; text-decoration: none; }
.cfm-icon-btn:hover { background: var(--gray-100); }
.cfm-icon-btn-danger:hover { background: #fdeaf0; color: var(--red); border-color: #fdeaf0; }

.cfm-avatar-edit { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.cfm-avatar-edit-preview { position: relative; width: 84px; height: 84px; flex-shrink: 0; }
.cfm-avatar-edit-preview img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.cfm-avatar-edit-btn { position: absolute; bottom: -2px; right: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 3px solid #fff; }
.cfm-form-row { margin-bottom: 16px; }
.cfm-form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; color: var(--gray-700); }
.cfm-form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .cfm-form-grid-2 { grid-template-columns: 1fr; } }
.cfm-dashboard input[type=text], .cfm-dashboard input[type=number], .cfm-dashboard select, .cfm-dashboard textarea {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
	box-sizing: border-box; font-size: 14.5px; font-family: inherit;
}
.cfm-dashboard input:focus, .cfm-dashboard select:focus, .cfm-dashboard textarea:focus { outline: none; border-color: var(--blue); }
.cfm-currency-input { display: flex; align-items: center; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); overflow: hidden; }
.cfm-currency-input span { padding: 0 12px; background: var(--gray-100); color: var(--gray-500); font-weight: 700; font-size: 13px; align-self: stretch; display: flex; align-items: center; }
.cfm-currency-input input { border: none !important; border-radius: 0 !important; }

/* ---------------------------------------------------------------
 * 4-STEP POST-AD WIZARD
 * --------------------------------------------------------------- */
.cfm-wizard-progress { position: relative; display: flex; justify-content: space-between; margin: 6px 20px 28px; }
.cfm-progress-line { position: absolute; top: 15px; left: 0; right: 0; height: 3px; background: var(--gray-200); z-index: 0; }
.cfm-progress-line-fill { position: absolute; top: 15px; left: 0; height: 3px; background: var(--blue); z-index: 1; width: 0; transition: width .3s; }
.cfm-progress-step { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cfm-progress-dot { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 3px solid var(--gray-200); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: var(--gray-500); transition: all .2s; }
.cfm-progress-label { font-size: 11.5px; font-weight: 700; color: var(--gray-500); white-space: nowrap; }
.cfm-progress-step.cfm-progress-active .cfm-progress-dot { border-color: var(--blue); color: var(--blue); }
.cfm-progress-step.cfm-progress-active .cfm-progress-label { color: var(--blue); }
.cfm-progress-step.cfm-progress-done .cfm-progress-dot { background: var(--blue); border-color: var(--blue); color: #fff; }

.cfm-wizard-step { display: none; }
.cfm-wizard-step.cfm-wizard-step-active { display: block; animation: cfmFadeIn .25s; }
@keyframes cfmFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.cfm-cat-picker-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px) { .cfm-cat-picker-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 800px) { .cfm-cat-picker-grid { grid-template-columns: repeat(4, 1fr); } }
.cfm-cat-radio { position: absolute; opacity: 0; width: 0; height: 0; }
.cfm-cat-tile {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	padding: 18px 10px; border: 1.5px solid var(--gray-200); border-radius: var(--radius); cursor: pointer;
	text-align: center; transition: all .15s;
}
.cfm-cat-tile-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; color: var(--gray-700); }
.cfm-cat-tile-label { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.cfm-cat-radio:checked + .cfm-cat-tile { border-color: var(--blue); background: var(--blue-light); box-shadow: 0 0 0 3px rgba(0,85,212,.12); }
.cfm-cat-radio:checked + .cfm-cat-tile .cfm-cat-tile-icon { background: var(--blue); color: #fff; }
.cfm-cat-radio:checked + .cfm-cat-tile .cfm-cat-tile-label { color: var(--blue-dark); }
.cfm-cat-radio:focus-visible + .cfm-cat-tile { outline: 2px solid var(--blue); outline-offset: 2px; }

.cfm-category-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--blue-light); color: var(--blue-dark); font-weight: 700; font-size: 12.5px; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }

.cfm-form-grid-3 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 6px; }
@media (min-width: 560px) { .cfm-form-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.cfm-field-group { display: none; }
.cfm-field-group.cfm-field-group-active { display: block; }

.cfm-pill-group, .cfm-chip-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; margin-bottom: 14px; }
.cfm-pill-input, .cfm-chip-input { position: absolute; opacity: 0; width: 0; height: 0; }
.cfm-pill-option, .cfm-chip-option {
	display: inline-flex; align-items: center; padding: 9px 16px; border: 1.5px solid var(--gray-200);
	border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--gray-700); cursor: pointer; transition: all .15s;
}
.cfm-pill-input:checked + .cfm-pill-option { background: var(--blue); border-color: var(--blue); color: #fff; }
.cfm-chip-input:checked + .cfm-chip-option { background: var(--ink); border-color: var(--ink); color: #fff; }

.cfm-photo-upload-zone {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	border: 2px dashed var(--gray-300); border-radius: var(--radius); padding: 36px 20px; cursor: pointer;
	color: var(--gray-500); text-align: center; transition: border-color .15s, background .15s;
}
.cfm-photo-upload-zone:hover { border-color: var(--blue); background: var(--blue-light); }
.cfm-photo-upload-zone strong { color: var(--ink); font-size: 14.5px; }
.cfm-photo-upload-zone span { font-size: 12.5px; }
.cfm-photo-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-top: 14px; }
.cfm-photo-thumb { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--gray-100); }
.cfm-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }

.cfm-review-card { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 18px; }
.cfm-review-row { display: flex; gap: 14px; margin-bottom: 12px; }
.cfm-review-thumb { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.cfm-review-cat { display: inline-block; background: var(--blue-light); color: var(--blue-dark); font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin-bottom: 4px; }
.cfm-review-info h4 { margin: 2px 0 4px; font-size: 15px; font-weight: 700; }
.cfm-review-price { margin: 0; font-weight: 800; color: var(--ink); }
.cfm-review-loc { margin: 2px 0 0; font-size: 12.5px; color: var(--gray-500); }
.cfm-review-desc { font-size: 13.5px; color: var(--gray-700); line-height: 1.5; padding-top: 12px; border-top: 1px solid var(--gray-100); }

.cfm-publish-checklist { display: flex; flex-direction: column; gap: 12px; }
.cfm-check-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--gray-700); }
.cfm-tick { width: 20px; height: 20px; border-radius: 50%; background: var(--green-light); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }

.cfm-wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 4px; }

/* ---------------------------------------------------------------
 * PUBLIC SELLER PROFILE PAGE — cover banner
 * --------------------------------------------------------------- */
.cfm-seller-profile { max-width: 1080px; margin: 0 auto; }
.cfm-cover-banner { height: 150px; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--blue), #6a8fff 60%, var(--yellow)); margin-bottom: -52px; }
@media (max-width: 640px) { .cfm-cover-banner { height: 110px; } }

.cfm-profile-head-wrap { padding: 0 24px; }
.cfm-profile-head { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.cfm-profile-avatar-wrap { flex-shrink: 0; }
.cfm-profile-avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--shadow-md); background: #fff; }
@media (max-width: 640px) { .cfm-profile-avatar { width: 84px; height: 84px; } }
.cfm-profile-info { flex: 1; min-width: 220px; padding-bottom: 6px; }
.cfm-profile-info h1 { margin: 0 0 6px; font-size: 24px; font-weight: 800; }
.cfm-profile-meta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.cfm-profile-meta-item { display: flex; align-items: center; gap: 6px; color: var(--gray-500); font-size: 13px; }
.cfm-profile-meta-item b { color: var(--ink); }
.cfm-contact-chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.cfm-contact-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--gray-200); text-decoration: none; color: var(--ink); font-weight: 700; font-size: 12.5px; }
.cfm-contact-chip-whatsapp { background: #e9fbf1; border-color: #b9f0d1; color: #128a45; }
.cfm-profile-head .cfm-follow-btn { align-self: center; margin-bottom: 6px; }

.cfm-profile-body { padding: 24px; }
.cfm-stat-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 12px; }
@media (min-width: 640px) { .cfm-stat-strip { grid-template-columns: repeat(4, 1fr); } }
.cfm-stat-pill { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 16px; text-align: center; box-shadow: var(--shadow-sm); }
.cfm-stat-pill-icon { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
.cfm-stat-pill-num { display: block; font-size: 19px; font-weight: 800; }
.cfm-stat-pill-label { display: block; font-size: 11.5px; color: var(--gray-500); margin-top: 2px; }

/* ---------------------------------------------------------------
 * Legacy safety-tips box (kept for the theme template)
 * --------------------------------------------------------------- */
.cfm-safety-tips { background: var(--gray-100); border-radius: var(--radius); padding: 18px 20px; font-size: 13.5px; color: var(--gray-700); line-height: 1.6; }
.cfm-safety-tips h4 { margin: 0 0 8px; font-size: 14px; font-weight: 800; color: var(--ink); }
