/* =========================================================================
   COMUNIDAD theme — index cards + tile menu. Same layout on web and phone.
   ========================================================================= */

:root {
	--cmd-primary: #0B4FD1;
	--cmd-accent: #E8173A;
	--cmd-sun: #FFB703;

	--c-blue: var(--cmd-primary);
	--c-red: var(--cmd-accent);
	--c-sun: #E39B00;
	--c-teal: #128C7E;
	--c-green: #2E9E4F;
	--c-purple: #7B3FE4;
	--c-coral: #F0603D;
	--c-pink: #D63384;
	--c-navy: #14213D;
	--c-cyan: #0E7C9B;
	--c-orange: #D9480F;
	--c-indigo: #4338CA;

	--ink: #14213D;
	--muted: #5B6478;
	--paper: #FFFDF7;
	--bg: #FFF4DE;
	--line: rgba(20, 33, 61, .10);
	--rule: rgba(11, 79, 209, .08);
	--radius: 22px;
	--radius-sm: 14px;
	--shadow: 0 1px 2px rgba(20,33,61,.05), 0 10px 30px rgba(20,33,61,.09);
	--sec: var(--c-blue);
	--tabbar-h: 68px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Section colors (set on <body> from the active menu tile) */
.cmd-sec-blue { --sec: var(--c-blue); }   .cmd-sec-red { --sec: var(--c-red); }
.cmd-sec-sun { --sec: var(--c-sun); }     .cmd-sec-teal { --sec: var(--c-teal); }
.cmd-sec-green { --sec: var(--c-green); } .cmd-sec-purple { --sec: var(--c-purple); }
.cmd-sec-coral { --sec: var(--c-coral); } .cmd-sec-pink { --sec: var(--c-pink); }
.cmd-sec-navy { --sec: var(--c-navy); }
.cmd-sec-cyan { --sec: var(--c-cyan); }   .cmd-sec-orange { --sec: var(--c-orange); }
.cmd-sec-indigo { --sec: var(--c-indigo); }
.cmd-c-blue { --c: var(--c-blue); }   .cmd-c-red { --c: var(--c-red); }
.cmd-c-sun { --c: var(--c-sun); }     .cmd-c-teal { --c: var(--c-teal); }
.cmd-c-green { --c: var(--c-green); } .cmd-c-purple { --c: var(--c-purple); }
.cmd-c-coral { --c: var(--c-coral); } .cmd-c-pink { --c: var(--c-pink); }
.cmd-c-navy { --c: var(--c-navy); }
.cmd-c-cyan { --c: var(--c-cyan); }   .cmd-c-orange { --c: var(--c-orange); }
.cmd-c-indigo { --c: var(--c-indigo); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
	margin: 0;
	font: 400 16px/1.55 var(--font);
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--sec); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--cmd-sun); outline-offset: 2px; border-radius: 6px; }

.cmd-icon { width: 24px; height: 24px; flex: none; }
.cmd-skip { position: absolute; left: -999px; top: 8px; z-index: 1000; background: #fff; padding: 10px 16px; border-radius: 10px; }
.cmd-skip:focus { left: 8px; }

/* ---------- Brand ---------- */
.cmd-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: .12em; font-size: 15px; }
.cmd-brand__star { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--cmd-accent); color: #fff; letter-spacing: 0; font-size: 18px; }
.cmd-brand__logo { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }

/* ---------- Shell ---------- */
.cmd-shell { min-height: 100vh; }
.cmd-rail { display: none; }
.cmd-stage { min-width: 0; }
.cmd-topbar {
	position: sticky; top: 0; z-index: 50;
	display: flex; align-items: center; justify-content: space-between;
	padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
	background: rgba(255, 244, 222, .92);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.cmd-topbar__actions { display: flex; align-items: center; gap: 8px; }
.cmd-iconbtn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: var(--shadow); cursor: pointer; }
.cmd-me img { display: block; width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; box-shadow: var(--shadow); }
.cmd-count { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--cmd-accent); color: #fff; font: 700 11px/20px var(--font); text-align: center; }

.cmd-main { padding: 8px 16px calc(var(--tabbar-h) + 32px + env(safe-area-inset-bottom)); }
.cmd-layout { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }

@media (min-width: 1024px) {
	.cmd-shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); }
	.cmd-rail {
		display: flex; flex-direction: column; gap: 20px;
		position: sticky; top: 0; height: 100vh; overflow-y: auto;
		padding: 24px 20px;
		background: #fff;
		border-right: 1px solid var(--line);
	}
	.cmd-topbar { justify-content: flex-end; }
	.cmd-topbar .cmd-brand { display: none; }
	.cmd-main { padding: 8px 32px 48px; }
	.cmd-tabbar { display: none !important; }
}
@media (min-width: 1320px) {
	.cmd-layout--with-side { max-width: 1120px; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
	.cmd-layout--with-side .cmd-side { position: sticky; top: 80px; }
}

/* ---------- Tile menu (the dominant UI) ---------- */
.cmd-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cmd-tile {
	position: relative;
	display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
	min-height: 96px; padding: 46px 14px 14px;
	border-radius: var(--radius-sm);
	text-decoration: none; color: var(--ink);
	background: color-mix(in srgb, var(--c) 11%, white);
	transition: transform .12s ease, background .12s ease;
}
.cmd-tile .cmd-icon { position: absolute; top: 14px; left: 14px; color: var(--c); }
.cmd-tile__label { font-weight: 700; font-size: 15px; }
.cmd-tile__sub { font-size: 12px; color: var(--muted); }
.cmd-tile .cmd-count { top: 10px; right: 10px; }
.cmd-tile:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--c) 18%, white); }
.cmd-tile.is-active { background: var(--c); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 40%, transparent); }
.cmd-tile.is-active .cmd-icon, .cmd-tile.is-active .cmd-tile__sub { color: rgba(255,255,255,.9); }

.cmd-rail__upsell { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: var(--radius-sm); background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.cmd-rail__upsell .cmd-icon { color: var(--cmd-sun); }

/* Phone tab bar */
.cmd-tabbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
	display: grid; grid-template-columns: repeat(5, 1fr);
	height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
	padding: 6px 6px env(safe-area-inset-bottom);
	background: #fff; border-top: 1px solid var(--line);
	box-shadow: 0 -8px 24px rgba(20,33,61,.06);
}
.cmd-tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: var(--muted); font: 600 11px/1 var(--font); text-decoration: none; border-radius: 14px; cursor: pointer; }
.cmd-tab .cmd-count { top: 4px; right: calc(50% - 22px); }
.cmd-tab.is-active { color: var(--c); background: color-mix(in srgb, var(--c) 10%, white); }
.cmd-tab--menu { color: var(--ink); }

/* Full-screen tile menu */
.cmd-menu { position: fixed; inset: 0; z-index: 100; overflow-y: auto; padding: max(16px, env(safe-area-inset-top)) 16px 32px; background: var(--bg); }
.cmd-menu[hidden] { display: none; }
.cmd-menu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cmd-tiles--big { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cmd-tiles--big .cmd-tile { min-height: 120px; }
@media (min-width: 560px) { .cmd-tiles--big { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
body.cmd-menu-open { overflow: hidden; }

/* ---------- Index cards ---------- */
.cmd-card {
	position: relative;
	background: var(--paper);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	border-top: 8px solid var(--sec);
	overflow: hidden;
}
.cmd-card__tab { position: absolute; top: 0; right: 28px; width: 64px; height: 18px; border-radius: 0 0 10px 10px; background: var(--sec); opacity: .25; }
.cmd-card__head {
	padding: 24px 24px 14px;
	border-bottom: 2px solid color-mix(in srgb, var(--cmd-accent) 35%, transparent); /* the index-card red rule */
	background-image: repeating-linear-gradient(to bottom, transparent 0 27px, var(--rule) 27px 28px);
}
.cmd-card__title { font-size: clamp(24px, 4vw, 30px); font-weight: 800; margin: 0; }
.cmd-card__body { padding: 20px 24px 28px; }
.cmd-card--page { min-height: 240px; }
.cmd-prose { max-width: 65ch; }
.cmd-empty { padding: 32px 24px; text-align: center; }

.cmd-card--mini { padding: 18px 20px; border-top-width: 6px; }
.cmd-card--mini h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.cmd-card--mini .cmd-icon { width: 20px; height: 20px; color: var(--sec); }
.cmd-card--link { display: block; text-decoration: none; color: inherit; transition: transform .12s ease; }
.cmd-card--link:hover { transform: translateY(-2px); }
.cmd-side { display: grid; gap: 16px; }
.cmd-region { --sec: var(--c-green); }
.cmd-viewers { --sec: var(--c-purple); }
.cmd-completion { --sec: var(--c-sun); }
.cmd-sponsor { --sec: var(--c-navy); font-size: 14px; }
.cmd-eyebrow { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.cmd-big { font-size: 22px; font-weight: 800; margin: 0 0 8px; }
.cmd-meter { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; margin-bottom: 12px; }
.cmd-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--cmd-sun), var(--cmd-accent)); border-radius: 99px; }
.cmd-checklist { list-style: none; padding: 0; margin: 0; }
.cmd-checklist li { padding: 6px 0 6px 26px; position: relative; }
.cmd-checklist li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); }
.cmd-checklist li.is-done { color: var(--muted); text-decoration: line-through; }
.cmd-checklist li.is-done::before { background: var(--c-green); border-color: var(--c-green); }
.cmd-avatars { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.cmd-avatars img { border-radius: 50%; display: block; }
.cmd-link { font-weight: 700; }
.cmd-card--mini a:not(.cmd-btn) { color: var(--ink); text-decoration-color: var(--sec); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Buttons & badges ---------- */
.cmd-btn, .cmd-app-content .button, .cmd-app-content button.button, .cmd-app-content input[type="submit"], .cmd-app-content .generic-button a, .cmd-app-content .generic-button button {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 44px; padding: 0 20px;
	border: 0; border-radius: 999px;
	background: var(--sec); color: #fff !important;
	font: 700 15px/1 var(--font); text-decoration: none; cursor: pointer;
}
.cmd-btn-sun { background: var(--cmd-sun); color: var(--ink) !important; }
.cmd-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 6px; border-radius: 999px; background: var(--cmd-sun); color: var(--ink); font-size: 12px; font-weight: 800; vertical-align: middle; }
.cmd-badge .cmd-icon { width: 14px; height: 14px; }
.cmd-report { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--muted); font: 600 12px/1 var(--font); cursor: pointer; padding: 6px; border-radius: 8px; }
.cmd-report .cmd-icon { width: 14px; height: 14px; }
.cmd-report:hover { color: var(--cmd-accent); background: color-mix(in srgb, var(--cmd-accent) 8%, white); }
.cmd-report.is-reported { color: var(--c-green); }

.cmd-upsell { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 16px; margin: 0 0 20px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--cmd-sun) 18%, white); }
.cmd-upsell > .cmd-icon { color: var(--c-sun); }
.cmd-upsell div { flex: 1 1 200px; }
.cmd-upsell p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* Plans + chips (shortcodes) */
.cmd-plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 24px; }
.cmd-plan { padding: 20px; border-radius: var(--radius-sm); background: #fff; border: 2px solid var(--line); }
.cmd-plan--premium { border-color: var(--cmd-sun); }
.cmd-plan h3 { display: flex; align-items: center; gap: 6px; }
.cmd-price { font-size: clamp(22px, 2vw, 26px); font-weight: 800; color: var(--cmd-primary); margin: 0 0 8px; white-space: nowrap; }
.cmd-plan-list { list-style: none; padding: 0; margin: 0; }
.cmd-plan-list li { padding: 7px 0 7px 26px; position: relative; border-bottom: 1px solid var(--line); }
.cmd-plan-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--c-green); font-weight: 800; }
.cmd-note { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.cmd-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
.cmd-chips a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--sec) 10%, white); text-decoration: none; font-weight: 600; color: var(--ink); }
.cmd-list { list-style: none; padding: 0; margin: 0; }
.cmd-list a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.cmd-list span { color: var(--muted); font-size: 14px; }

/* ---------- Forms ---------- */
.cmd-app-content input[type="text"], .cmd-app-content input[type="email"], .cmd-app-content input[type="password"],
.cmd-app-content input[type="search"], .cmd-app-content input[type="url"], .cmd-app-content input[type="tel"], .cmd-app-content input[type="number"], .cmd-app-content textarea, .cmd-app-content select {
	width: 100%; max-width: 100%;
	min-height: 46px; padding: 10px 14px;
	border: 2px solid var(--line); border-radius: 12px;
	background: #fff; color: var(--ink); font: inherit;
}
.cmd-app-content textarea { min-height: 110px; }
.cmd-app-content input:focus, .cmd-app-content textarea:focus, .cmd-app-content select:focus { outline: none; border-color: var(--sec); }
.cmd-consent { display: grid; gap: 10px; margin: 20px 0; padding: 16px; border-radius: 12px; background: color-mix(in srgb, var(--sec) 6%, white); }
.cmd-consent label { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.cmd-consent input { margin-top: 4px; width: 18px; height: 18px; }

/* ---------- BuddyPress (Nouveau) — calm it down into the card ---------- */
#buddypress.buddypress-wrap { margin: 0; }
.buddypress-wrap .bp-navs { margin: 0 0 16px; background: none !important; border: 0 !important; }
.buddypress-wrap .bp-navs ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; margin: 0; }
.buddypress-wrap .bp-navs ul::-webkit-scrollbar { display: none; }
.buddypress-wrap .bp-navs li { float: none; flex: none; border: 0 !important; background: none !important; }
.buddypress-wrap .bp-navs li a { display: inline-flex !important; align-items: center; gap: 6px; padding: 9px 16px !important; border-radius: 999px; background: color-mix(in srgb, var(--sec) 9%, white) !important; color: var(--ink) !important; font-weight: 600; white-space: nowrap; border: 0 !important; }
.buddypress-wrap .bp-navs li.selected a, .buddypress-wrap .bp-navs li.current a { background: var(--sec) !important; color: #fff !important; }
.buddypress-wrap .bp-navs li a span.count { background: rgba(0,0,0,.12) !important; color: inherit !important; border-radius: 99px; border: 0 !important; }

/* Profile header = top of the profile card */
.buddypress-wrap #item-header, #buddypress #header-cover-image + #item-header-cover-image { margin-bottom: 8px; }
.buddypress-wrap #header-cover-image { border-radius: 16px; min-height: 160px; background-color: color-mix(in srgb, var(--sec) 20%, white); }
.buddypress-wrap #item-header-avatar img.avatar { border-radius: 50% !important; border: 5px solid var(--paper) !important; box-shadow: var(--shadow); }
.buddypress-wrap .user-nicename, .buddypress-wrap #item-header .item-meta { color: var(--muted); }
.buddypress-wrap #item-header h2.user-nicename { color: var(--ink); }

/* Member header actions: Add Friend, messages, Visit store, Report */
.buddypress-wrap .member-header-actions { display: flex !important; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin: 12px 0 !important; }
.buddypress-wrap .member-header-actions .generic-button { float: none !important; margin: 0 !important; }
.buddypress-wrap .member-header-actions .generic-button a,
.buddypress-wrap .member-header-actions .generic-button button {
	display: inline-flex !important; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px !important;
	border: 0 !important; border-radius: 999px !important; font: 700 14px/1 var(--font) !important; text-decoration: none;
	background: color-mix(in srgb, var(--sec) 10%, white) !important; color: var(--ink) !important; width: auto !important; text-indent: 0 !important;
}
.buddypress-wrap .member-header-actions .generic-button a::before, .buddypress-wrap .member-header-actions .generic-button button::before { display: none !important; }
.buddypress-wrap .member-header-actions .friendship-button.add, .buddypress-wrap .member-header-actions .friendship-button button.add { background: var(--sec) !important; color: #fff !important; }
.buddypress-wrap .member-header-actions .cmd-report { min-height: 40px; padding: 0 12px; border-radius: 999px; }

/* Lists → mini cards */
.buddypress-wrap .activity-list.item-list > li, .buddypress-wrap ul.item-list > li {
	margin: 0 0 12px !important; padding: 16px !important;
	border: 1px solid var(--line) !important; border-radius: var(--radius-sm);
	background: #fff; list-style: none;
}
.buddypress-wrap .activity-list .activity-content .activity-inner { background: none; border: 0; padding: 6px 0; font-size: 16px; }
.buddypress-wrap .activity-meta.action { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 6px; background: none; }
.buddypress-wrap .activity-meta .button, .buddypress-wrap .activity-meta a.button {
	background: none !important; color: var(--muted) !important; min-height: 36px; padding: 0 10px; font-size: 13px;
}
.buddypress-wrap .activity-meta .button:hover { color: var(--sec) !important; }
.buddypress-wrap img.avatar { border-radius: 50%; }
.buddypress-wrap #whats-new-form { padding: 16px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--sec) 6%, white); }
.buddypress-wrap .grid > li .list-wrap { border: 0 !important; background: none !important; }

.buddypress-wrap .bp-feedback { border-radius: 12px; box-shadow: none; border: 1px solid var(--line); }
.buddypress-wrap .bp-feedback .bp-icon { border-radius: 12px 0 0 12px; }

/* ---------- bbPress ---------- */
#bbpress-forums { font-size: 15px !important; }
#bbpress-forums ul.bbp-forums, #bbpress-forums ul.bbp-topics, #bbpress-forums ul.bbp-replies, #bbpress-forums ul.bbp-lead-topic { border: 0 !important; border-radius: var(--radius-sm); overflow: hidden; }
#bbpress-forums li.bbp-header { background: var(--sec) !important; color: #fff; border: 0 !important; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
#bbpress-forums li.bbp-body ul.forum, #bbpress-forums li.bbp-body ul.topic { border-top: 1px solid var(--line) !important; padding: 14px 12px !important; }
#bbpress-forums .bbp-forum-title, #bbpress-forums .bbp-topic-permalink { font-weight: 700; font-size: 16px; color: var(--ink); }
#bbpress-forums div.odd, #bbpress-forums ul.odd { background: #fff !important; }
#bbpress-forums div.even, #bbpress-forums ul.even { background: var(--paper) !important; }
#bbpress-forums .bbp-forums-list { border: 0 !important; margin-top: 6px; }
#bbpress-forums .bbp-forums-list li { display: inline-block; margin: 0 4px 4px 0; }
#bbpress-forums .bbp-forums-list li a { display: inline-block; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--sec) 9%, white); text-decoration: none; font-size: 13px; color: var(--ink); }
#bbpress-forums div.bbp-reply-header { background: none !important; border-top: 1px solid var(--line) !important; }

/* Phones: tighten the index card */
@media (max-width: 600px) {
	.cmd-card__head { padding: 18px 18px 12px; }
	.cmd-card__body { padding: 16px 16px 22px; }
	#bbpress-forums li.bbp-forum-info, #bbpress-forums li.bbp-topic-title { width: 100% !important; }
	#bbpress-forums li.bbp-forum-topic-count, #bbpress-forums li.bbp-forum-reply-count,
	#bbpress-forums li.bbp-topic-voice-count, #bbpress-forums li.bbp-topic-reply-count,
	#bbpress-forums li.bbp-forum-freshness, #bbpress-forums li.bbp-topic-freshness { display: none; }
}

/* =========================================================================
   Shop & Mall (WooCommerce + Dokan Lite)
   ========================================================================= */
.cmd-layout--wide { max-width: 1120px; }
.cmd-btn--ghost, .cmd-app-content .cmd-btn--ghost { background: color-mix(in srgb, var(--sec) 10%, white); color: var(--ink) !important; }
.cmd-btn .cmd-icon { width: 18px; height: 18px; }
.cmd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.cmd-pill { display: inline-flex; align-items: center; gap: 4px; margin: 4px 4px 4px 0; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--sec) 10%, white); color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.6; vertical-align: middle; }
.cmd-pill .cmd-icon { width: 13px; height: 13px; }
.cmd-pill--sun { background: color-mix(in srgb, var(--cmd-sun) 30%, white); }
.cmd-pill--official { background: var(--cmd-primary); color: #fff; }
.cmd-badge--store { background: var(--c-orange); color: #fff; }
.cmd-callout { display: grid; gap: 10px; margin: 20px 0; padding: 18px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--sec) 7%, white); }
.cmd-callout p { margin: 0; }
.cmd-callout--warn { background: color-mix(in srgb, var(--cmd-accent) 9%, white); }
.cmd-plans--one { grid-template-columns: minmax(0, 420px); }
.cmd-plan--store { border-color: var(--c-orange); }
.cmd-plan--store .cmd-price { color: var(--c-orange); }
.cmd-mallbar { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }

/* WooCommerce buttons → COMUNIDAD buttons (beats WooCommerce's own specificity) */
.cmd-app-content a.button, .cmd-app-content button.button, .cmd-app-content input.button, .cmd-app-content .button.alt,
.cmd-app-content #respond input#submit, .cmd-app-content .wc-block-components-button:not(.is-link) {
	background: var(--sec) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important;
	font-weight: 700 !important; min-height: 44px; padding: 0 20px !important; display: inline-flex !important; align-items: center; justify-content: center; line-height: 1 !important; opacity: 1 !important;
}
.cmd-app-content a.button:hover, .cmd-app-content button.button:hover { filter: brightness(1.08); }
.cmd-app-content a.button.disabled, .cmd-app-content button.button:disabled { opacity: .5 !important; }
.cmd-app-content .added_to_cart { display: inline-block; margin-top: 6px; font-weight: 700; font-size: 13px; }

/* Product grid → small index cards */
.cmd-app-content ul.products { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 20px !important; padding: 0; }
.cmd-app-content ul.products::before, .cmd-app-content ul.products::after { display: none !important; }
.cmd-app-content ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; padding: 10px 10px 14px !important; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.cmd-app-content ul.products li.product a img { border-radius: 10px; margin-bottom: 10px !important; aspect-ratio: 1; object-fit: cover; background: var(--bg); }
.cmd-app-content ul.products li.product .woocommerce-loop-product__title { font-size: 15px !important; padding: 2px 0 !important; color: var(--ink); }
.cmd-app-content ul.products li.product .price { color: var(--ink) !important; font-weight: 800; font-size: 15px !important; }
.cmd-app-content ul.products li.product .button { margin-top: auto !important; width: 100%; min-height: 40px; font-size: 14px; }
.cmd-app-content .price del { opacity: .55; font-weight: 400; }
.cmd-app-content .price ins { text-decoration: none; }
.cmd-app-content span.onsale { background: var(--cmd-accent) !important; border-radius: 999px !important; min-height: 0 !important; min-width: 0 !important; padding: 4px 10px !important; line-height: 1.4 !important; top: 14px !important; left: 14px !important; right: auto !important; font-size: 12px; }
@media (min-width: 700px) { .cmd-app-content ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cmd-app-content ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.woocommerce-result-count { color: var(--muted); font-size: 14px; }
.woocommerce-ordering select { min-height: 40px !important; width: auto !important; }
.woocommerce-pagination ul { border: 0 !important; display: flex !important; gap: 6px; justify-content: center; }
.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce-pagination ul li a, .woocommerce-pagination ul li span { border-radius: 10px; min-width: 40px; padding: 10px !important; background: color-mix(in srgb, var(--sec) 9%, white); }

/* Single product */
.cmd-shop div.product { display: grid; gap: 24px; }
@media (min-width: 860px) { .cmd-shop div.product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .cmd-shop div.product > .woocommerce-tabs, .cmd-shop div.product > .related, .cmd-shop div.product > .up-sells { grid-column: 1 / -1; } }
.cmd-shop div.product div.images, .cmd-shop div.product div.summary { width: auto !important; float: none !important; margin: 0 !important; }
.cmd-shop div.product div.images img { border-radius: var(--radius-sm); }
.cmd-shop div.product .product_title { font-size: clamp(24px, 4vw, 32px); font-weight: 800; }
.cmd-shop div.product p.price { color: var(--ink) !important; font-size: 24px !important; font-weight: 800; }
.cmd-shop form.cart { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cmd-shop .quantity .qty { width: 80px !important; min-height: 44px; border-radius: 12px; border: 2px solid var(--line); }
.cmd-shop .product_meta { font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.cmd-shop .woocommerce-tabs ul.tabs { padding: 0 !important; margin: 0 0 12px !important; display: flex; gap: 8px; overflow-x: auto; }
.cmd-shop .woocommerce-tabs ul.tabs::before, .cmd-shop .woocommerce-tabs ul.tabs li::before, .cmd-shop .woocommerce-tabs ul.tabs li::after { display: none !important; }
.cmd-shop .woocommerce-tabs ul.tabs li { border: 0 !important; border-radius: 999px !important; margin: 0 !important; padding: 0 !important; background: color-mix(in srgb, var(--sec) 9%, white) !important; }
.cmd-shop .woocommerce-tabs ul.tabs li a { padding: 9px 16px !important; color: var(--ink) !important; font-weight: 600 !important; }
.cmd-shop .woocommerce-tabs ul.tabs li.active { background: var(--sec) !important; }
.cmd-shop .woocommerce-tabs ul.tabs li.active a { color: #fff !important; }
.cmd-seller { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 0 0 16px; padding: 12px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--c-orange) 7%, white); }
.cmd-seller__who { display: flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; }
.cmd-seller__who img { border-radius: 50%; }
.cmd-seller__who small { display: block; color: var(--muted); font-size: 12px; }
.cmd-share { margin-top: 16px; }

/* Notices, cart, checkout, account */
.cmd-app-content .woocommerce-message, .cmd-app-content .woocommerce-info, .cmd-app-content .woocommerce-error { border-radius: 12px; border-top-width: 0 !important; border-left: 5px solid var(--sec); background: color-mix(in srgb, var(--sec) 6%, white); padding: 14px 16px 14px 44px !important; list-style: none; }
.cmd-app-content .woocommerce-error { border-left-color: var(--cmd-accent); }
.cmd-app-content .woocommerce-message .button, .cmd-app-content .woocommerce-info .button { float: right; min-height: 34px; padding: 0 14px; font-size: 13px; }
.cmd-app-content table.shop_table { border-radius: var(--radius-sm) !important; border-color: var(--line) !important; background: #fff; }
.cmd-app-content table.shop_table th, .cmd-app-content table.shop_table td { border-color: var(--line) !important; }
.cmd-app-content .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.cmd-app-content .woocommerce-MyAccount-navigation a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--sec) 9%, white); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.cmd-app-content .woocommerce-MyAccount-navigation .is-active a { background: var(--sec); color: #fff; }
.cmd-app-content .woocommerce-MyAccount-navigation, .cmd-app-content .woocommerce-MyAccount-content { width: 100% !important; float: none !important; }
.cmd-app-content #payment { border-radius: var(--radius-sm) !important; background: color-mix(in srgb, var(--sec) 6%, white) !important; }

/* Profile store tab + purchases */
.cmd-store-tab h3 { display: flex; align-items: center; gap: 8px; }
.cmd-products { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .cmd-products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cmd-products a { display: grid; gap: 4px; padding: 8px; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; }
.cmd-products img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.cmd-products span { font-weight: 700; }
.cmd-visit-store { margin-left: 6px; }

/* Dokan: dashboard + store pages inside the card */
.cmd-app-content .dokan-dashboard-wrap, .cmd-app-content .dokan-store-wrap { font-size: 15px; }
.cmd-app-content .dokan-dash-sidebar { border-radius: var(--radius-sm); overflow: hidden; }
.cmd-app-content .dokan-dash-sidebar ul.dokan-dashboard-menu { background: var(--ink) !important; }
.cmd-app-content .dokan-dash-sidebar ul.dokan-dashboard-menu li.active { background: var(--c-orange) !important; }
.cmd-app-content .dokan-btn-theme, .cmd-app-content .dokan-btn-success { background: var(--sec) !important; border-color: var(--sec) !important; border-radius: 999px !important; }
.cmd-app-content .profile-frame { border-radius: var(--radius-sm); overflow: hidden; }
.cmd-app-content .dokan-store-info .cmd-store-profile a { color: #fff; font-weight: 700; text-decoration: underline; }
.cmd-app-content #dokan-seller-listing-wrap ul.dokan-seller-wrap li .store-wrapper { border-radius: var(--radius-sm); overflow: hidden; }

/* =========================================================================
   Plans, trial & guarantee, My Membership
   ========================================================================= */
.cmd-plans { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cmd-plan.is-current { box-shadow: 0 0 0 3px var(--sec); }
.cmd-plan--directory { border-color: var(--c-indigo); }
.cmd-plan--directory .cmd-price { color: var(--c-indigo); }
.cmd-offer { display: flex; align-items: center; gap: 6px; margin: -2px 0 10px; font-size: 13px; font-weight: 700; color: var(--c-teal); }
.cmd-offer .cmd-icon { width: 16px; height: 16px; }
.cmd-callout > .cmd-icon { color: var(--sec); }
.cmd-callout:has(> .cmd-icon) { grid-template-columns: auto 1fr; align-items: start; }
.cmd-badge--directory { background: var(--c-indigo); color: #fff; }
.cmd-membership { display: grid; gap: 14px; }
.cmd-membership > .cmd-plan { max-width: 420px; }
.cmd-membership h3 { margin-top: 10px; }
.cmd-refund summary { cursor: pointer; font-weight: 700; color: var(--sec); padding: 6px 0; }
.cmd-refund form { display: grid; gap: 10px; margin-top: 10px; }

/* =========================================================================
   Directory
   ========================================================================= */
.cmd-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 16px 0 12px; padding-bottom: 2px; }
.cmd-tabs a { flex: none; padding: 9px 16px; border-radius: 999px; background: color-mix(in srgb, var(--sec) 9%, white); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.cmd-tabs a.is-active { background: var(--sec); color: #fff; }
.cmd-filters { display: grid; gap: 10px; grid-template-columns: 1fr; margin-bottom: 8px; }
@media (min-width: 760px) { .cmd-filters { grid-template-columns: 2fr 1.2fr 1fr auto; } }
.cmd-directory__actions { margin: 0 0 4px; }
.cmd-listings { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .cmd-listings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cmd-listing-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; height: 100%; transition: transform .12s ease, box-shadow .12s ease; }
.cmd-listing-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cmd-listing-card__body { display: grid; gap: 3px; min-width: 0; }
.cmd-listing-card__body strong { font-size: 16px; }
.cmd-listing-card__tag { color: var(--muted); font-size: 14px; }
.cmd-listing-card__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 13px; color: var(--muted); }
.cmd-listing-card__meta > span { display: inline-flex; align-items: center; gap: 3px; }
.cmd-listing-card__meta .cmd-icon { width: 14px; height: 14px; }
.cmd-logo { width: 56px; height: 56px; flex: none; border-radius: 14px; object-fit: cover; background: #fff; border: 1px solid var(--line); }
.cmd-logo--initial { display: grid; place-items: center; background: color-mix(in srgb, var(--sec) 14%, white); color: var(--sec); font-weight: 800; font-size: 24px; border: 0; }
.cmd-pill--business { background: color-mix(in srgb, var(--c-indigo) 12%, white); }
.cmd-pill--professional { background: color-mix(in srgb, var(--c-teal) 14%, white); }
.cmd-pill--nonprofit { background: color-mix(in srgb, var(--c-green) 16%, white); }
.cmd-pill--verified { background: var(--c-green); color: #fff; }
a.cmd-pill { text-decoration: none; }
a.cmd-pill:hover { background: color-mix(in srgb, var(--sec) 18%, white); }
.cmd-pager { margin: 18px 0 0; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.cmd-pager .page-numbers { min-width: 40px; padding: 8px 12px; border-radius: 10px; text-align: center; background: color-mix(in srgb, var(--sec) 9%, white); color: var(--ink); text-decoration: none; }
.cmd-pager .current { background: var(--sec); color: #fff; }

.cmd-listing { display: grid; gap: 18px; }
.cmd-listing__head { display: flex; gap: 16px; align-items: center; }
.cmd-listing__head .cmd-logo { width: 84px; height: 84px; border-radius: 20px; font-size: 34px; }
.cmd-listing__pills { margin: 0; }
.cmd-listing__tagline { margin: 4px 0 0; font-size: 17px; color: var(--muted); }
.cmd-listing__contact { margin: 0; }
.cmd-listing__about { font-size: 16px; }
.cmd-details { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; padding: 16px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--sec) 5%, white); }
.cmd-details dt { font-weight: 700; color: var(--muted); font-size: 14px; }
.cmd-details dd { margin: 0; }
.cmd-social { display: flex; gap: 12px; }
.cmd-owner { display: flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; }
.cmd-owner img { border-radius: 50%; }
.cmd-owner small { display: block; color: var(--muted); font-size: 12px; }
.cmd-listing__foot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); }

/* Listing form */
.cmd-form { display: grid; gap: 4px; max-width: 720px; }
.cmd-field { margin: 0 0 12px; display: grid; gap: 6px; }
.cmd-field > label, .cmd-radios legend { font-weight: 700; font-size: 15px; }
.cmd-field small { color: var(--muted); font-size: 13px; }
.cmd-radios { border: 0; padding: 0; display: grid; gap: 6px; }
.cmd-radios label { display: flex; gap: 8px; align-items: center; }
.cmd-field input[type="checkbox"], .cmd-radios input { width: 18px; height: 18px; min-height: 0; }
.cmd-field input[type="file"] { border: 2px dashed var(--line); border-radius: 12px; padding: 12px; background: #fff; }
.cmd-grid2 { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cmd-grid2 { grid-template-columns: 1fr 1fr; } }
.cmd-remove { margin-top: 10px; }
.cmd-link-btn { border: 0; background: none; color: var(--cmd-accent); font: 600 14px var(--font); cursor: pointer; padding: 0; text-decoration: underline; }

/* Guest pages (register, terms) */
.cmd-guest-shell { max-width: 720px; margin: 0 auto; padding: 0 16px 48px; }
.cmd-guest-top { padding: 20px 0; text-align: center; }
.cmd-guest .cmd-main { padding: 0; }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}
