/* wtheme home page — own stylesheet, logo-coral accent, system fonts, no external files. */
:root {
	--accent: #fb5c3a;        /* logo colour — buttons, active states, icons */
	--accent-dark: #c93d1c;   /* hover + coral text on white (AA contrast) */
	--accent-soft: #fff0eb;
	--ink: #1f2328;
	--muted: #5b6270;
	--line: #e3e6ec;
	--page: #eef0f5;
	--card: #fff;
	--panel: #f7f8fb;
	--head: #262626;
	--radius: 6px;
	--shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .06);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--page); color: var(--ink);
	font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { display: block; max-width: 100%; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.25; font-weight: 600; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.center { text-align: center; margin-top: 28px; }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.15em; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border: 0; border-radius: var(--radius);
	background: var(--accent); color: #fff; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
	box-shadow: 0 2px 0 var(--accent-dark);
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn-sm { padding: 6px 14px; font-size: 13px; margin-top: 8px; }
.btn-line {
	display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--accent-dark); border-radius: 4px;
	color: var(--accent-dark); font-size: 12px; font-weight: 600; background: #fff; white-space: nowrap;
}
.btn-line:hover { background: var(--accent-soft); text-decoration: none; }
.icon-btn {
	display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 4px;
	background: #fff; color: var(--muted); cursor: pointer; font-size: 15px; padding: 0;
}
.icon-btn:hover { color: var(--accent-dark); border-color: var(--accent); text-decoration: none; }
.icon-btn.is-on { color: var(--accent); border-color: var(--accent); }
.icon-btn.is-on .ico { fill: currentColor; }
.card-actions form { margin: 0; }

/* Header */
.top { background: var(--head); color: #fff; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 6px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.logo:hover { text-decoration: none; }
.logo-text { font-weight: 800; font-size: 21px; letter-spacing: -.02em; color: var(--accent); }
.logo-text span { color: #fff; }
.top-links { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.top-links a { color: #d6d6d6; }
.top-links a:hover { color: #fff; }
.btn-dark { background: #3a3a3a; color: #fff !important; padding: 9px 16px; border-radius: 4px; display: inline-flex; gap: 6px; align-items: center; }
.btn-dark:hover { background: #4a4a4a; text-decoration: none; }
.top-nav { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; font-size: 14px; }
.top-nav a { color: #a8a8a8; padding: 12px 0; white-space: nowrap; border-bottom: 3px solid transparent; }
.top-nav a:hover { color: #fff; text-decoration: none; }
.top-nav a.is-on { color: #fff; font-weight: 600; border-bottom-color: var(--accent); }
.catbar { background: #fff; border-bottom: 1px solid var(--line); }
.catbar .wrap { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; }
.catbar a { color: #444; font-size: 13px; padding: 11px 0; white-space: nowrap; }
.catbar a:hover { color: var(--accent-dark); }

/* Hero */
.hero { background: linear-gradient(180deg, #f6f7fa, var(--page)); padding: 56px 0 44px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 30px; font-weight: 700; max-width: 560px; }
.hero h1 + p { margin-top: 10px; color: var(--muted); font-size: 16px; max-width: 560px; }
.search { margin-top: 28px; display: flex; gap: 8px; background: #fff; padding: 8px; border-radius: var(--radius); box-shadow: 0 6px 24px rgba(16, 24, 40, .12); max-width: 560px; }
.search input { flex: 1; min-width: 0; border: 0; font: inherit; padding: 8px 10px; outline: none; }
.hero-shots { position: relative; height: 300px; }
.shot { position: absolute; border-radius: 6px; box-shadow: 0 12px 30px rgba(16, 24, 40, .22); object-fit: cover; object-position: top; background: #fff; }
.shot-0 { width: 56%; height: 170px; right: 12%; top: 0; }
.shot-1 { width: 48%; height: 150px; left: 0; top: 90px; z-index: 2; }
.shot-2 { width: 40%; height: 130px; right: 0; top: 150px; z-index: 3; }

/* Promo banner */
.promo { background: #1c1c1c; color: #fff; border-radius: 10px; padding: 44px 40px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; overflow: hidden; }
.promo h2 { color: #fff; font-size: 30px; font-weight: 700; }
.promo h2 em { font-style: normal; color: var(--accent); display: block; }
.promo p { margin: 14px 0 20px; color: #d0d0d0; }
.promo-fan { position: relative; height: 220px; }
.promo-fan img { position: absolute; bottom: -40px; left: calc(var(--i) * 22%); width: 36%; height: 230px; object-fit: cover; object-position: top; border-radius: 10px; transform: rotate(calc(-14deg + var(--i) * 9deg)); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }

/* Sections */
.sec { padding: 56px 0 0; }
main > .sec:last-child { padding-bottom: 56px; }
.wrap > .promo { margin-top: 0; }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: var(--panel); border-radius: var(--radius); padding: 26px 26px 0; text-align: center; overflow: hidden; display: flex; flex-direction: column; }
.tile h2 { font-size: 22px; }
.tile h2 a { color: var(--ink); }
.tile > p { margin-top: 6px; font-size: 13px; color: var(--muted); }
.tile-links { display: flex; gap: 16px; justify-content: center; }
.tile-links a { color: var(--accent-dark); }
.tile-img { position: relative; margin: 34px 16px 0; display: block; }
.tile-img img { height: 120px; width: 100%; object-fit: cover; object-position: top; border-radius: 4px 4px 0 0; box-shadow: 0 6px 20px rgba(16, 24, 40, .18); }
.tile-ico { position: absolute; left: 50%; top: -24px; transform: translateX(-50%); width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); border: 3px solid #fff; display: grid; place-items: center; color: var(--accent-dark); font-size: 22px; z-index: 1; }

/* Split rows (mosaic + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split--rev .split-text { order: 2; }
.mosaic { background: #fff; padding: 24px; border-radius: var(--radius); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; box-shadow: var(--shadow); }
.mosaic img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: top; border-radius: 3px; }
.split-text h2 { font-size: 26px; font-weight: 500; margin-bottom: 20px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.values > div { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); font-size: 13px; color: var(--muted); }
.v-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-size: 18px; margin-bottom: 12px; }

/* Featured / bestsellers */
.feature { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; align-items: stretch; }
.feature-intro { background: var(--panel); border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.feature-intro h2 { font-size: 24px; font-weight: 500; }
.feature-intro p { margin: 12px 0 22px; color: var(--muted); }

/* Card grids */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border-radius: 4px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card-img img { width: 100%; aspect-ratio: 590 / 300; object-fit: cover; object-position: top; background: var(--panel); }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card h3 a { color: var(--ink); }
.card-by { font-size: 11px; color: var(--muted); margin-top: 2px; }
.card-by a { color: var(--muted); }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.card-price { display: block; font-size: 17px; color: var(--ink); }
.card-sales { font-size: 11px; color: var(--muted); }
.card-actions { display: flex; gap: 6px; }

/* Newest */
.head-center { text-align: center; max-width: 900px; margin: 0 auto 26px; }
.head-center h2 { font-size: 26px; font-weight: 500; }
.head-center p { margin-top: 12px; color: var(--muted); }
.pills { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 26px; }
.pill { background: #fff; border: 1px solid #fff; border-radius: 4px; padding: 8px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); }
.pill:hover { border-color: var(--accent); }
.pill.is-on { border: 2px solid var(--accent); padding: 7px; }
.pills-empty { text-align: center; color: var(--muted); }

/* Featured creator */
.creator { background: var(--panel); border-radius: 8px; padding: 28px; }
.creator > h2 { font-size: 26px; font-weight: 500; margin-bottom: 20px; }
.creator-row { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; margin-bottom: 26px; }
.creator-id { display: flex; gap: 16px; align-items: flex-start; }
.creator-avatar { width: 64px; height: 64px; background: #1c1c1c; border-radius: 4px; display: grid; place-items: center; flex: none; }
.creator-avatar img { width: 38px; }
.creator-id h3 { font-size: 18px; font-weight: 500; }
.creator-id p, .creator-row > p { font-size: 13px; color: var(--muted); }
.creator-row > p { font-size: 15px; }

/* Footer */
.foot { background: #1c1c1c; color: #bdbdbd; padding: 48px 0 0; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid > div:first-child p { margin-top: 12px; max-width: 320px; }
.foot h4 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.foot-grid a:not(.logo) { display: block; color: #bdbdbd; padding: 3px 0; }
.foot-grid a:not(.logo):hover { color: #fff; }
.foot-stats b { color: #fff; font-size: 22px; }
.foot-bottom { border-top: 1px solid #333; margin-top: 36px; padding: 18px 16px; font-size: 13px; }

/* Toasts from wp-ajax.js */
.flash-stack { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: grid; gap: 8px; }
.flash { background: #1c1c1c; color: #fff; padding: 10px 14px; border-radius: 6px; display: flex; gap: 12px; align-items: center; font-size: 14px; box-shadow: var(--shadow); }
.flash-error { background: #b42318; }
.flash-close { background: none; border: 0; color: inherit; font-size: 18px; cursor: pointer; }

/* Responsive */
@media (max-width: 1024px) {
	.grid-4 { grid-template-columns: repeat(3, 1fr); }
	.pills { grid-template-columns: repeat(3, 1fr); }
	.values { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
	.hero-grid, .split, .feature, .promo, .creator-row { grid-template-columns: 1fr; }
	.split--rev .split-text { order: 0; }
	.tiles, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
	.hero-shots { height: 260px; }
	.promo { padding: 32px 24px; }
	.promo-fan { height: 170px; }
	.foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.tiles, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
	.pills { grid-template-columns: repeat(2, 1fr); }
	.hero h1, .promo h2 { font-size: 24px; }
	.top-links a:not(.btn-dark) { display: none; }
	.hero-shots { height: 200px; }
	.shot-0 { height: 120px; } .shot-1 { height: 110px; top: 60px; } .shot-2 { height: 100px; top: 100px; }
	.feature-intro { padding: 28px; }
}
