/*
Theme Name: Dealingkart
Theme URI: https://dealingkart.com
Author: Wovri Labs
Description: Storefront theme for the Dealingkart Core price comparison engine. Header, footer, page layouts and Elementor support; colours and fonts are set in Appearance → Customize → Dealingkart design.
Version: 2.6.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: dealingkart
Tags: e-commerce, custom-colors, custom-logo, full-width-template
*/

/* Masthead — brand band, like the printed top of a banknote */
.masthead { background: var(--brand); color: var(--on-brand); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; }
.admin-bar .masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar .masthead { top: 46px; } }
@media (max-width: 600px) { .admin-bar .masthead { top: 0; } } /* The toolbar scrolls away on phones. */
.dk-header-light .masthead { background: var(--card); color: var(--ink); border-bottom: 1px solid var(--line); }
.masthead-row { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; align-items: center; padding-block: 12px; }
@media (min-width: 900px) { .masthead-row { grid-template-columns: auto minmax(0, 1fr) auto; } }
.wordmark { display: inline-flex; align-items: flex-end; gap: 4px; text-decoration: none; color: inherit; }
.wordmark-text { font-family: var(--f-head); font-weight: 800; font-stretch: 125%; font-size: 1.625rem; letter-spacing: -.02em; line-height: 1; }
.wordmark-mark { width: 30px; height: 14px; stroke: currentColor; stroke-width: 1.6; fill: none; margin-bottom: 1px; }
.wordmark-mark .tip { fill: var(--accent); stroke: none; }
.custom-logo-link img { max-height: 40px; width: auto; }
.topnav { display: flex; gap: 6px; justify-content: flex-end; align-items: center; font-weight: 600; font-size: .9375rem; }
.topnav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--on-brand-2); display: inline-flex; align-items: center; gap: 6px; }
.topnav a:hover { background: color-mix(in srgb, currentColor 10%, transparent); color: var(--on-brand); }
.dk-header-light .topnav a { color: var(--ink-2); }
.dk-header-light .topnav a:hover { color: var(--ink); }
.topnav .btn-quiet { border: 1px solid color-mix(in srgb, currentColor 30%, transparent); color: inherit; }
.topnav .wallet-link .i { width: 18px; height: 18px; }
.topnav .saved-link { position: relative; padding: 8px 10px; }
.topnav .saved-link .i { width: 20px; height: 20px; }
.saved-count { position: absolute; top: 1px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #1D1B4C; font-size: .6875rem; font-weight: 800; line-height: 18px; text-align: center; }
.theme-toggle { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.theme-toggle:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.theme-toggle .i + .i { display: none; }
:root[data-theme="dark"] .theme-toggle .i:first-child { display: none; }
:root[data-theme="dark"] .theme-toggle .i + .i { display: block; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle .i:first-child { display: none; }
	:root:not([data-theme="light"]) .theme-toggle .i + .i { display: block; }
}
@media (max-width: 899px) {
	.masthead { position: relative; top: 0; }
	.masthead-row { grid-template-areas: "logo nav" "search search"; }
	.masthead-row > .wordmark, .masthead-row > .custom-logo-link { grid-area: logo; }
	.masthead-row > .topnav { grid-area: nav; }
	.masthead-row > .searchbar { grid-area: search; }
	.topnav a:not(.btn-quiet):not(.wallet-link):not(.saved-link) { display: none; }
	.topnav a { padding: 6px 12px; }
}
.catbar { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; font-size: .9375rem; }
.catbar::-webkit-scrollbar { display: none; }
.catbar a { color: var(--on-brand-2); text-decoration: none; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.catbar a:hover, .catbar a[aria-current] { color: var(--on-brand); background: color-mix(in srgb, currentColor 10%, transparent); }
.dk-header-light .catbar a { color: var(--ink-2); }
.dk-header-light .masthead .searchbar { border-color: var(--line); }

/* Pages */
.page-head { padding-block: 28px 8px; }
.dk-page-flow { max-width: var(--wrap); margin-inline: auto; padding: 8px var(--gutter) 56px; }
.dk-page-flow > p, .dk-page-flow > h2, .dk-page-flow > h3, .dk-page-flow > ul, .dk-page-flow > ol { max-width: 72ch; }
.dk-page-flow > * + * { margin-top: 1em; }
.dk-page-flow > .dk-block.wrap { padding-inline: 0; } /* The page already has gutters. */
.dk-page-flow h2 { margin-top: 1.6em; }
.dk-page.is-app .dk-page-content > .dk-block:last-child { margin-bottom: 56px; }
.prose-page { max-width: 780px; }
.prose { font-size: 1.0625rem; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; font-size: 1.1875rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.post-cat { font-size: .875rem; font-weight: 600; margin-bottom: 6px; }
.post-cat a { text-decoration: none; }
.post-date { color: var(--ink-3); font-size: .875rem; margin-top: 6px; }
.post-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; display: grid; gap: 6px; align-content: start; }
.post-card h2 { font-size: 1.1875rem; }
.post-card h2 a { text-decoration: none; }
.post-card p { color: var(--ink-2); }
.post-thumb img { border-radius: 10px; margin-bottom: 6px; }
.nav-links { display: flex; gap: 8px; margin-top: 28px; }
.nav-links .page-numbers { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; background: var(--card); }
.nav-links .current { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

/* Footer */
.colophon { background: var(--brand); color: var(--on-brand-2); margin-top: 64px; padding-top: 40px; background-image: var(--guilloche); }
.colophon-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .colophon-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.colophon h2 { font-size: 1rem; color: var(--on-brand); margin-bottom: 10px; font-stretch: 105%; }
.colophon ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.colophon a { color: var(--on-brand-2); text-decoration: none; }
.colophon a:hover { color: var(--on-brand); text-decoration: underline; }
.wordmark-foot { color: var(--on-brand); }
.wordmark-foot .wordmark { color: var(--on-brand); }
.foot-lede { margin-top: 10px; max-width: 40ch; }
.foot-disclosure { margin-top: 12px; font-size: .875rem; max-width: 52ch; }
.foot-small { font-size: .8125rem; padding-block: 28px; margin-top: 20px; border-top: 1px solid color-mix(in srgb, #fff 12%, transparent); }

/* Mobile tab bar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 26; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--card); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); }
.tabbar a { display: grid; justify-items: center; align-content: center; gap: 3px; font-size: .6875rem; font-weight: 600; text-decoration: none; color: var(--ink-3); }
.tabbar a[aria-current] { color: var(--ink); }
.tabbar a[aria-current] .i { stroke-width: 2.4; }
.tabbar .i { width: 22px; height: 22px; }
@media (min-width: 900px) { .tabbar { display: none; } }
