/*
Theme Name: Dropshipping Deal
Theme URI: https://www.dropshippingdeal.com/
Author: Dropshipping Deal
Description: Lightweight theme for DropshippingDeal.com: supplier directory home page, blog with sidebar, labelled AdSense slots and The Weekly Deal newsletter. Designed to work with the DSD Directory plugin.
Version: 1.0.2
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dropshipping-deal
*/

:root {
	--brand-teal: #0f766e;
	--brand-teal-deep: #0b5e58;
	--brand-aqua: #2dd4bf;
	--deal-coral: #ff7a59;
	--deal-coral-ink: #c2410c;
	--tag-amber: #ffc145;
	--ink: #0f172a;
	--muted: #5b6b80;
	--surface: #ffffff;
	--surface-alt: #f4f6f8;
	--line: #e2e8f0;
	--footer: #0b1f24;
	--footer-muted: #94a3b8;
	--radius-sm: 8px;
	--radius-md: 14px;
	--radius-lg: 20px;
	--shadow-card: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .06);
	--shadow-hover: 0 2px 4px rgba(15, 23, 42, .08), 0 12px 32px rgba(15, 23, 42, .12);
	--font-display: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--container: 1200px;
	--measure: 720px;
	/* DSD Directory plugin variables */
	--dsdd-accent: var(--brand-teal);
	--dsdd-ink: var(--ink);
	--dsdd-muted: var(--muted);
	--dsdd-line: var(--line);
	--dsdd-soft: var(--surface-alt);
	--dsdd-radius: var(--radius-md);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 16px/1.65 var(--font-body); }
img, svg, video, iframe { max-width: 100%; height: auto; }
a { color: var(--brand-teal); }
a:hover { color: var(--brand-teal-deep); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.25; }
:focus-visible { outline: 3px solid var(--brand-aqua); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; border-radius: var(--radius-sm); }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer; }
.btn--primary { background: var(--brand-teal); color: #fff; }
.btn--primary:hover { background: var(--brand-teal-deep); color: #fff; }
.btn--deal { background: var(--deal-coral); color: var(--ink); }
.btn--deal:hover { color: var(--ink); filter: brightness(1.05); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); position: relative; z-index: 20; }
.site-header__row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; }
.brand__word { line-height: .95; font-family: var(--font-display); font-size: 18px; }
.brand__word b { display: block; font-weight: 500; color: var(--ink); }
.brand__word i { display: block; font-style: normal; font-weight: 800; color: var(--deal-coral); }
.brand__word i span { color: var(--brand-teal); }
.site-nav { margin-left: 12px; }
.site-nav ul { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: inline-block; padding: 8px 2px; font: 500 15px var(--font-body); color: var(--ink); text-decoration: none; }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a, .site-nav .current-menu-ancestor > a, .site-nav a:hover { color: var(--brand-teal); box-shadow: inset 0 -2px 0 var(--brand-teal); }
.site-header__cta { margin-left: auto; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); }
@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.site-header__cta { display: none; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; margin: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; gap: 4px; }
	.site-nav a { padding: 12px 4px; }
}

/* Hero */
.hero { background: var(--surface-alt); }
.hero__row { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding: 64px 0 56px; }
.hero__text { flex: 999 1 560px; min-width: 0; }
.eyebrow { margin: 0 0 14px; font: 600 12px/16px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-teal); }
.hero h1 { margin: 0 0 16px; font-size: clamp(34px, 5vw, 56px); line-height: 1.07; font-weight: 800; letter-spacing: -.02em; max-width: 720px; }
.hero h1 em { font-style: normal; color: var(--deal-coral); }
.hero__lead { margin: 0 0 28px; font-size: 18px; line-height: 30px; color: var(--muted); max-width: 620px; }
.hero-search { display: flex; flex-wrap: wrap; gap: 10px; max-width: 680px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-card); }
.hero-search input { flex: 1 1 240px; min-height: 44px; border: 0; outline: 0; background: transparent; padding: 0 16px; font: 400 16px var(--font-body); color: var(--ink); }
.hero-popular { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.hero-popular > span { font-size: 14px; color: var(--muted); margin-right: 4px; }
.hero-popular a { text-decoration: none; }
.hero__stats { flex: 1 1 300px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stat { border-radius: var(--radius-lg); padding: 22px; }
.stat b { display: block; font: 800 34px/1 var(--font-display); }
.stat span { display: block; margin-top: 6px; font: 500 14px/20px var(--font-body); }
.stat--teal { background: var(--brand-teal); color: #fff; }
.stat--amber { background: var(--tag-amber); color: var(--ink); }
.stat--white { background: #fff; border: 1px solid var(--line); }
.stat--white b { color: var(--brand-teal); }
.stat--white span { color: var(--muted); }
.stat--coral { background: var(--deal-coral); color: var(--ink); }

/* Sections */
.section { padding: 64px 0; }
.section--alt { background: var(--surface-alt); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section__head h2 { margin: 0; font-size: 28px; }
.directory-section { padding: 40px 0 24px; }

/* Ad slots */
.ad-slot { background: var(--surface-alt); border-radius: var(--radius-md); padding: 10px 14px 16px; text-align: center; margin: 48px 0; overflow: hidden; }
.ad-slot__label { display: block; margin-bottom: 8px; font: 600 11px/16px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ad-slot--sidebar { margin: 0; }
.ad-slot--sticky { position: sticky; top: 24px; }
.ad-slot ins { display: block; }
.dsdd-grid > .ad-slot { grid-column: 1 / -1; margin: 16px 0; }

/* Post cards */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .18s, transform .18s; }
.post-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); color: var(--ink); }
.post-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--surface-alt); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__cat { position: absolute; left: 14px; bottom: 14px; background: var(--tag-amber); color: var(--ink); font: 600 12px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.post-card__body { padding: 18px 20px 22px; }
.post-card__title { margin: 0 0 8px; font: 700 20px/28px var(--font-display); }
.post-card__excerpt { margin: 0 0 12px; font-size: 15px; line-height: 24px; }
.post-card__meta { font-size: 13px; color: var(--muted); }
.post-card--featured { flex-direction: row; flex-wrap: wrap; margin-bottom: 32px; }
.post-card--featured .post-card__media { flex: 1 1 320px; aspect-ratio: auto; min-height: 260px; }
.post-card--featured .post-card__body { flex: 1 1 320px; padding: 28px; }
.post-card--featured .post-card__title { font-size: 28px; line-height: 36px; }

/* Layout with sidebar */
.with-sidebar { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding: 48px 0 64px; }
.with-sidebar > main { flex: 999 1 600px; min-width: 0; }
.sidebar { flex: 1 1 300px; max-width: 340px; display: flex; flex-direction: column; gap: 32px; }
@media (max-width: 960px) { .sidebar { max-width: none; } .ad-slot--sticky { position: static; } }
.widget-box { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; }
.widget-box h2 { margin: 0 0 12px; font-size: 18px; }
.widget-box ol, .widget-box ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 22px; }

/* Page header */
.page-hero { background: var(--surface-alt); padding: 56px 0 40px; }
.page-hero h1 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 40px); }
.page-hero p { margin: 0; font-size: 18px; line-height: 30px; color: var(--muted); max-width: 640px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 500 14px var(--font-body); color: var(--ink); text-decoration: none; }
.tabs a.is-active, .tabs a:hover { background: var(--brand-teal); border-color: var(--brand-teal); color: #fff; }

/* Article */
.entry { max-width: var(--measure); }
.breadcrumbs { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.entry-title { margin: 0 0 14px; font-size: clamp(30px, 4vw, 40px); line-height: 1.2; }
.entry-meta { margin: 0 0 28px; font-size: 14px; color: var(--muted); }
.entry-thumb { margin: 0 0 32px; border-radius: var(--radius-md); overflow: hidden; }
.entry-thumb img { display: block; width: 100%; }
.entry-content { font-size: 18px; line-height: 30px; }
.entry-content > * { margin-top: 0; margin-bottom: 22px; }
.entry-content h2 { margin-top: 40px; margin-bottom: 14px; font-size: 28px; line-height: 36px; }
.entry-content h3 { margin-top: 28px; margin-bottom: 10px; font-size: 20px; line-height: 28px; }
.entry-content img { border-radius: var(--radius-md); }
.entry-content blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--tag-amber); color: var(--muted); }
.entry-content a { text-decoration: underline; text-underline-offset: 2px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.page-content { max-width: 860px; padding: 48px 0 64px; }

/* Newsletter */
.newsletter { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; padding: 40px; background: var(--brand-teal); color: #fff; border-radius: var(--radius-lg); }
.newsletter img { width: 88px; height: 88px; }
.newsletter__text { flex: 999 1 380px; }
.newsletter h2 { margin: 0 0 8px; color: #fff; font-size: 32px; line-height: 38px; font-weight: 800; }
.newsletter h2 em { font-style: normal; color: var(--tag-amber); }
.newsletter p { margin: 0; font-size: 16px; line-height: 26px; }
.newsletter__form { flex: 1 1 360px; }
.newsletter__form form { display: flex; gap: 8px; background: #fff; border-radius: 999px; padding: 6px; }
.newsletter__form input[type="email"] { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 14px; font: 400 15px var(--font-body); color: var(--ink); background: transparent; }
.newsletter__form small { display: block; margin-top: 8px; font-size: 12px; opacity: .9; }
.newsletter--compact { padding: 24px; gap: 14px; }
.newsletter--compact img { display: none; }
.newsletter--compact h2 { font-size: 24px; line-height: 30px; }
.newsletter--compact .newsletter__form form { flex-direction: column; border-radius: var(--radius-md); background: transparent; padding: 0; }
.newsletter--compact .newsletter__form input[type="email"] { background: #fff; min-height: 44px; border-radius: 10px; }

/* Pagination */
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.page-numbers { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.page-numbers.current { background: var(--brand-teal); border-color: var(--brand-teal); color: #fff; }

/* Footer */
.site-footer { background: var(--footer); color: #f1f5f9; margin-top: 0; }
.site-footer a { color: var(--footer-muted); }
.site-footer a:hover { color: #fff; }
.site-footer__row { display: flex; flex-wrap: wrap; gap: 40px; padding: 48px 0 32px; }
.site-footer__brand { flex: 2 1 280px; }
.site-footer__brand .brand__word b { color: #fff; }
.site-footer__brand p { margin: 14px 0 0; font-size: 14px; line-height: 22px; color: var(--footer-muted); max-width: 360px; }
.site-footer__col { flex: 1 1 160px; }
.site-footer__col h2 { margin: 0 0 10px; font: 600 14px var(--font-body); color: #fff; }
.site-footer__col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.site-footer__bottom { border-top: 1px solid #1f3a40; padding: 18px 0 24px; font-size: 13px; color: var(--footer-muted); }

/* Search form, 404 */
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form input[type="search"] { flex: 1; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font: 400 16px var(--font-body); }
.empty-state { padding: 64px 0; text-align: center; }

/* WordPress core */
.alignwide { max-width: 1000px; }
.alignfull { width: 100%; }
.wp-caption, figcaption { font-size: 14px; color: var(--muted); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* ---- Extra: single, comments, search ---- */
.content-col{min-width:0}
.entry-tags{margin:24px 0 0;display:flex;flex-wrap:wrap;gap:8px}
.entry-tags a{font:600 13px/1.6 var(--font-body,Inter,sans-serif);padding:3px 12px;border-radius:999px;background:var(--surface-alt,#f4f6f8);color:var(--ink,#0f172a);text-decoration:none}
.entry-newsletter{margin:48px 0 0}
.related{margin-top:56px}
.related h2{font:700 24px/1.3 Poppins,sans-serif;margin:0 0 20px}
.comments{margin-top:56px;border-top:1px solid var(--line,#e2e8f0);padding-top:32px}
.comment-list{padding-left:20px}
.comment-form input:not([type=submit]):not([type=checkbox]),.comment-form textarea{width:100%;border:1px solid var(--line,#e2e8f0);border-radius:10px;padding:10px 12px;font:inherit}
.comment-form .submit{background:var(--brand,#0f766e);color:#fff;border:0;border-radius:999px;padding:12px 22px;font-weight:600;cursor:pointer}
.archive-description p{margin:0;color:var(--muted,#5b6b80)}
.page-hero .search-form{margin:16px 0}
.related .post-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}

/* Newsletter form (plugin) */
.dsdd-newsletter-form{position:relative}
.dsdd-newsletter-msg{margin:10px 0 0;font-size:15px}
.newsletter .dsdd-newsletter-msg{color:#fff}
.newsletter__form small a{text-decoration:underline}
