/* DigiKarnal v2 — brand: charcoal #20282F + gold #F8B00A */
:root {
	--dk-charcoal: #20282f;
	--dk-gold: #f8b00a;
	--dk-gold-dark: #d89406;
	--dk-light: #f6f7f9;
	--dk-text: #2b333b;
	--dk-muted: #6b7683;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--dk-text);
	background: #fff;
}

.dk-main { min-height: 60vh; }

/* Topbar */
.dk-topbar { background: var(--dk-charcoal); color: #cfd6dd; font-size: 13px; padding: 6px 0; }
.dk-topbar-link { color: #fff; margin-left: 16px; text-decoration: none; }
.dk-topbar-link:hover { color: var(--dk-gold); }

/* Navbar */
.dk-navbar { background: #fff; border-bottom: 3px solid var(--dk-gold); padding: 10px 0; }
.dk-brand-name { font-weight: 800; font-size: 26px; color: var(--dk-charcoal); }
.dk-brand-name span { color: var(--dk-gold-dark); }
/* Custom logo: never let it blow up the header (applies wherever WP puts it) */
.dk-header img.custom-logo, .dk-brand img.custom-logo { max-height: 60px !important; width: auto !important; height: auto !important; }
.dk-brand .custom-logo-link { display: inline-block; line-height: 0; }
.dk-navbar .nav-link { color: var(--dk-charcoal); font-weight: 600; margin: 0 6px; }
.dk-navbar .nav-link:hover { color: var(--dk-gold-dark); }

/* WP default submenu -> Bootstrap-style dropdown (desktop hover) */
@media (min-width: 992px) {
	.dk-navbar .navbar-nav .menu-item-has-children { position: relative; }
	.dk-navbar .navbar-nav .sub-menu {
		display: none; position: absolute; top: 100%; left: 0; z-index: 1000;
		background: #fff; border: 1px solid #e7eaee; border-radius: 10px;
		min-width: 210px; padding: 8px; margin: 0; list-style: none;
		box-shadow: 0 10px 24px rgba(0,0,0,.14);
	}
	.dk-navbar .navbar-nav .menu-item-has-children:hover > .sub-menu,
	.dk-navbar .navbar-nav .menu-item-has-children:focus-within > .sub-menu { display: block; }
	.dk-navbar .navbar-nav .sub-menu li { margin: 0; }
	.dk-navbar .navbar-nav .sub-menu a {
		display: block; padding: 8px 12px; color: var(--dk-charcoal);
		text-decoration: none; border-radius: 6px; font-weight: 500; white-space: nowrap;
	}
	.dk-navbar .navbar-nav .sub-menu a:hover { background: var(--dk-light); color: var(--dk-gold-dark); }
}
@media (max-width: 991.98px) {
	.dk-navbar .navbar-nav .sub-menu { list-style: none; padding-left: 16px; }
	.dk-navbar .navbar-nav .sub-menu a { color: var(--dk-charcoal); text-decoration: none; padding: 6px 0; display: block; }
}

.dk-btn-gold {
	background: var(--dk-gold); color: var(--dk-charcoal); font-weight: 700;
	border: none; border-radius: 8px; padding: 10px 20px;
}
.dk-btn-gold:hover { background: var(--dk-gold-dark); color: #fff; }
.dk-btn-dark {
	background: var(--dk-charcoal); color: #fff; font-weight: 700;
	border: none; border-radius: 8px; padding: 10px 20px;
}
.dk-btn-dark:hover { background: #11161b; color: var(--dk-gold); }
.dk-btn-whatsapp {
	background: #25d366; color: #fff; font-weight: 700;
	border: none; border-radius: 8px; padding: 10px 20px;
}
.dk-btn-whatsapp:hover { background: #1da851; color: #fff; }

/* Hero */
.dk-hero {
	background: linear-gradient(135deg, var(--dk-charcoal) 0%, #2e3a44 100%);
	color: #fff; padding: 64px 0;
}
.dk-hero h1 { font-weight: 800; font-size: 2.4rem; }
.dk-hero h1 .hl { color: var(--dk-gold); }
.dk-hero p.lead { color: #cfd6dd; }
.dk-search-box {
	background: #fff; border-radius: 12px; padding: 12px;
	box-shadow: 0 10px 30px rgba(0,0,0,.25); margin-top: 24px;
}

/* Section titles */
.dk-section { padding: 56px 0; }
.dk-section-title { font-weight: 800; color: var(--dk-charcoal); margin-bottom: 8px; }
.dk-section-sub { color: var(--dk-muted); margin-bottom: 28px; }

/* Category cards */
.dk-cat-card {
	display: block; background: var(--dk-light); border-radius: 12px; padding: 22px 12px;
	text-align: center; text-decoration: none; color: var(--dk-charcoal);
	transition: transform .15s ease, box-shadow .15s ease; height: 100%;
}
.dk-cat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.12); color: var(--dk-charcoal); }
.dk-cat-card .fa { font-size: 30px; color: var(--dk-gold-dark); margin-bottom: 10px; }
.dk-cat-card h3 { font-size: 15px; font-weight: 700; margin: 0; }
.dk-cat-card small { color: var(--dk-muted); }
.dk-cat-card .dk-cat-name { display: block; font-size: 15px; font-weight: 700; }
.dk-cat-card .dk-cat-count { display: block; font-size: 12px; color: var(--dk-muted); margin-top: 4px; }

/* Hero search (directory page) */
.dk-hero-search { display: flex; gap: 8px; max-width: 560px; margin-top: 20px; }
.dk-hero-search .form-control { border-radius: 10px; }

/* Contact page */
.dk-contact-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid #e7eaee; border-radius: 12px; padding: 18px; height: 100%; }
.dk-contact-card .dk-cc-icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px; background: var(--dk-charcoal); color: var(--dk-gold); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.dk-contact-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; color: var(--dk-charcoal); }
.dk-contact-card p { margin: 0; color: var(--dk-muted); font-size: 14px; }
.dk-contact-card a { color: var(--dk-charcoal); text-decoration: none; font-weight: 600; }
.dk-contact-card a:hover { color: var(--dk-gold-dark); }
.dk-social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.dk-social-row a { display: inline-flex; align-items: center; gap: 6px; background: var(--dk-light); border-radius: 8px; padding: 8px 14px; color: var(--dk-charcoal); text-decoration: none; font-weight: 600; font-size: 14px; }
.dk-social-row a:hover { background: var(--dk-gold); color: var(--dk-charcoal); }

/* About page */
.dk-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.dk-feature { background: #fff; border: 1px solid #e7eaee; border-radius: 12px; padding: 18px; }
.dk-feature .dk-f-icon { font-size: 26px; margin-bottom: 8px; }
.dk-feature h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; color: var(--dk-charcoal); }
.dk-feature p { margin: 0; font-size: 13px; color: var(--dk-muted); }
.dk-stat-band { background: var(--dk-charcoal); border-radius: 12px; padding: 26px; color: #fff; }
.dk-stat-band .dk-stat { text-align: center; }
.dk-stat-band .dk-stat b { display: block; font-size: 28px; color: var(--dk-gold); }
.dk-stat-band .dk-stat span { font-size: 13px; color: #cfd6dd; }

/* Listing cards */
.dk-listing-card {
	border: 1px solid #e7eaee; border-radius: 12px; overflow: hidden;
	background: #fff; height: 100%; transition: box-shadow .15s ease;
}
.dk-listing-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.dk-listing-card img.dk-thumb { width: 100%; height: 170px; object-fit: cover; }
.dk-listing-body { padding: 16px; }
.dk-listing-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.dk-listing-body h3 a { color: var(--dk-charcoal); text-decoration: none; }
.dk-listing-meta { font-size: 13px; color: var(--dk-muted); }
.dk-badge {
	display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px;
	border-radius: 20px; text-transform: uppercase; letter-spacing: .4px;
}
.dk-badge-premium { background: var(--dk-gold); color: var(--dk-charcoal); }
.dk-badge-seller { background: var(--dk-charcoal); color: var(--dk-gold); }
.dk-badge-verified { background: #e7f6ec; color: #1c7c3c; }

/* Plan cards */
.dk-plan-card {
	border: 2px solid #e7eaee; border-radius: 14px; padding: 28px; height: 100%;
	background: #fff; position: relative;
}
.dk-plan-card.featured { border-color: var(--dk-gold); box-shadow: 0 10px 30px rgba(248,176,10,.18); }
.dk-plan-price { font-size: 2rem; font-weight: 800; color: var(--dk-charcoal); }
.dk-plan-card ul { list-style: none; padding: 0; margin: 20px 0; }
.dk-plan-card ul li { padding: 6px 0; font-size: 14px; }
.dk-plan-card ul li .fa-check { color: #1c7c3c; margin-right: 8px; }
.dk-plan-card ul li .fa-times { color: #c0392b; margin-right: 8px; }

/* Detail page */
.dk-detail-header { background: var(--dk-light); border-radius: 14px; padding: 24px; }
.dk-crumbs .breadcrumb { background: transparent; padding: 0; font-size: 13px; }
.dk-info-table th { width: 38%; }
.dk-section-box { background: #fff; border: 1px solid #e7eaee; border-radius: 12px; padding: 22px; margin-bottom: 22px; }
.dk-section-box h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; color: var(--dk-charcoal); }

/* Product cards */
.dk-product-card { border: 1px solid #e7eaee; border-radius: 12px; overflow: hidden; background: #fff; height: 100%; }
.dk-product-card img { width: 100%; height: 160px; object-fit: cover; }
.dk-product-body { padding: 14px; }
.dk-product-price { font-weight: 800; font-size: 1.1rem; color: var(--dk-charcoal); }

/* Dashboard */
.dk-dash-nav .nav-link { color: var(--dk-charcoal); font-weight: 600; }
.dk-dash-nav .nav-link.active { background: var(--dk-charcoal); color: var(--dk-gold); }
.dk-stat { background: var(--dk-light); border-radius: 12px; padding: 18px; text-align: center; }
.dk-stat .num { font-size: 1.8rem; font-weight: 800; color: var(--dk-charcoal); }
.dk-stat .lbl { font-size: 12px; color: var(--dk-muted); text-transform: uppercase; letter-spacing: .5px; }

/* Footer */
.dk-footer { background: var(--dk-charcoal); color: #cfd6dd; margin-top: 40px; }
.dk-footer-title { color: #fff; font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
.dk-footer a { color: #cfd6dd; text-decoration: none; }
.dk-footer a:hover { color: var(--dk-gold); }
.dk-footer-links { list-style: none; padding: 0; }
.dk-footer-links li { padding: 4px 0; }
.dk-footer-bottom { border-top: 1px solid #39434d; padding: 16px 0; text-align: center; font-size: 13px; }

/* WhatsApp popup */
.dk-wa-modal { position: fixed; inset: 0; z-index: 1050; display: none; align-items: center; justify-content: center; }
.dk-wa-modal.open { display: flex; }
.dk-wa-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.dk-wa-box { position: relative; background: #fff; border-radius: 14px; padding: 28px; max-width: 420px; width: 92%; }

@media (max-width: 767px) {
	.dk-hero h1 { font-size: 1.7rem; }
	.dk-hero { padding: 40px 0; }
}
