/* Discounts Theme: RTL-first, logical properties, system fonts (no external requests). */
:root {
	--ink: #14202b;
	--muted: #5d6b78;
	--line: #e3e8ee;
	--bg: #f6f8fa;
	--card: #ffffff;
	--accent: #0f9d7a;
	--accent-dark: #0b7c60;
	--hot: #e8590c;
	--radius: 12px;
	--font: system-ui, -apple-system, "Segoe UI", "Arial Hebrew", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; }
a { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
h3 { font-size: 1.05rem; }
ul, ol { padding-inline-start: 1.3em; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.dt-skip { position: absolute; inset-inline-start: -9999px; }
.dt-skip:focus { inset-inline-start: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.dt-wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.dt-narrow { max-width: 780px; }
.dt-center { text-align: center; padding-block: 48px; }
.dt-section { margin-block: 36px; }
.dt-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dt-muted { color: var(--muted); }
.dt-empty { padding: 24px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* Header */
.dt-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.dt-header__row { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.dt-brand, .dt-header .custom-logo-link { font-weight: 800; font-size: 1.35rem; color: var(--ink); text-decoration: none; }
.dt-header .custom-logo { max-height: 44px; width: auto; }
.dt-nav { flex: 1; }
.dt-menu { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.dt-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.dt-menu a:hover, .dt-menu .current-menu-item > a { background: var(--bg); color: var(--accent-dark); }
.dt-search { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--bg); }
.dt-search input[type=search] { border: 0; background: transparent; padding: 8px 14px; font: inherit; width: 190px; min-width: 0; }
.dt-search button { border: 0; background: transparent; padding: 0 14px; cursor: pointer; font-size: 1rem; }
.dt-burger { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 10px; cursor: pointer; margin-inline-start: auto; }
.dt-burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }

/* Breadcrumbs */
.dt-crumbs { width: min(1140px, 100% - 32px); margin: 14px auto 0; font-size: .875rem; color: var(--muted); }
.dt-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dt-crumbs li + li::before { content: "›"; margin-inline-end: 6px; transform: scaleX(-1); display: inline-block; }
.dt-crumbs a { color: var(--muted); }

/* Hero */
.dt-hero { background: linear-gradient(180deg, #e9f7f2, var(--bg)); padding: 44px 0 28px; text-align: center; }
.dt-hero__stats { display: inline-block; margin: 0 0 14px; padding: 4px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .875rem; color: var(--muted); }
.dt-hero__lead { max-width: 640px; margin: 0 auto 22px; color: var(--muted); }
.dt-hero__search { display: flex; gap: 8px; max-width: 620px; margin: 0 auto; }
.dt-hero__search input { flex: 1; min-width: 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 999px; font: inherit; }

/* Buttons */
.dt-btn { display: inline-block; padding: 11px 22px; background: var(--accent); color: #fff; border: 0; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; }
.dt-btn:hover { background: var(--accent-dark); color: #fff; }
.dt-btn--ghost { background: #fff; color: var(--accent-dark); border: 1px solid var(--accent); }
.dt-btn--ghost:hover { background: #e9f7f2; color: var(--accent-dark); }

/* Coupon card */
.dt-list { display: grid; gap: 12px; }
.dt-card { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.dt-card:not(:has(.dt-card__logo)) { grid-template-columns: 1fr auto; }
.dt-card.is-exclusive { border-color: var(--hot); box-shadow: 0 0 0 1px var(--hot) inset; }
.dt-card__logo { width: 84px; height: 84px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.dt-logo { max-width: 100%; max-height: 100%; object-fit: contain; }
.dt-logo--text { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 800; font-size: 1.6rem; background: var(--bg); color: var(--muted); }
.dt-card__title { margin: 4px 0; }
.dt-card__title a { color: var(--ink); text-decoration: none; }
.dt-card__title a:hover { color: var(--accent-dark); }
.dt-card__terms { margin: 0 0 6px; color: var(--muted); font-size: .9rem; }
.dt-card__meta { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; font-size: .8125rem; color: var(--muted); }
.dt-card__more { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 10px; color: var(--muted); font-size: .9rem; }
.dt-card__more summary { cursor: pointer; font-weight: 600; color: var(--accent-dark); }
.dt-card__more p { margin: .6em 0 0; }
.dt-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.dt-badge { font-size: .75rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.dt-badge--hot { background: #fff1e8; color: var(--hot); border-color: #ffd3b8; }
.dt-badge--ok { background: #e9f7f2; color: var(--accent-dark); border-color: #bfe8da; }

.dt-card__action { min-width: 190px; text-align: center; }
.dt-reveal { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-decoration: none; color: var(--ink); border: 2px dashed var(--accent); border-radius: 10px; padding: 4px 4px 4px 12px; background: #f3fbf8; }
.dt-reveal__code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .5px; padding-inline: 6px; }
.dt-reveal__label { background: var(--accent); color: #fff; font-weight: 700; padding: 9px 14px; border-radius: 7px; white-space: nowrap; }
.dt-reveal:hover .dt-reveal__label { background: var(--accent-dark); }
.dt-reveal.is-loading { opacity: .7; pointer-events: none; }
.dt-reveal.is-open { border-style: solid; }
.dt-feedback { margin-top: 8px; font-size: .8125rem; color: var(--muted); display: flex; gap: 6px; justify-content: center; align-items: center; }
.dt-feedback[hidden] { display: none; }
.dt-feedback button { font: inherit; padding: 2px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; }
.dt-feedback button:hover { border-color: var(--accent); }

/* Store tiles */
.dt-stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.dt-stores--wide { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.dt-store { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 16px 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.dt-store:hover { border-color: var(--accent); }
.dt-store .dt-logo { width: 72px; height: 72px; }
.dt-store__name { font-weight: 700; font-size: .9rem; line-height: 1.3; }
.dt-store__count { font-size: .75rem; color: var(--muted); }

/* Categories */
.dt-cats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.dt-cats a { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 700; }
.dt-cats a:hover { border-color: var(--accent); }
.dt-cats small { color: var(--muted); font-weight: 400; }

/* Store page */
.dt-store-head { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 14px; }
.dt-store-head__logo { width: 120px; height: 120px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.dt-store-head__text p { margin: 0 0 8px; color: var(--muted); }
.dt-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; padding: 0; font-size: .95rem; }
.dt-filters { display: grid; gap: 8px; margin-bottom: 14px; }
.dt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dt-chip { padding: 5px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .875rem; font-weight: 600; }
.dt-chip small { color: var(--muted); }
.dt-chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.dt-chip.is-on small { color: #cbd5df; }
.dt-expired { margin-top: 16px; color: var(--muted); }
.dt-expired summary { cursor: pointer; }
.dt-pager ul, .navigation .nav-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 18px 0 0; justify-content: center; }
.dt-pager a, .dt-pager span, .navigation a, .navigation span { display: block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; color: var(--ink); }
.dt-pager .current, .navigation .current { background: var(--ink); color: #fff; border-color: var(--ink); }

.dt-howto { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.dt-howto ol { margin: 0; }
.dt-howto li { margin-block: 6px; }

.dt-kpis { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; padding: 0; margin: 0 0 18px; }
.dt-kpis li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.dt-kpis strong { display: block; font-size: 1.6rem; color: var(--accent-dark); }
.dt-kpis span { color: var(--muted); font-size: .875rem; }
.dt-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-width: 560px; }
.dt-bars li { display: grid; grid-template-columns: 110px 1fr 28px; gap: 10px; align-items: center; font-size: .875rem; }
.dt-bars__bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.dt-bars__bar i { display: block; height: 100%; background: var(--accent); }
.dt-bars__n { text-align: end; color: var(--muted); }

.dt-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-block: 8px; }
.dt-faq summary { cursor: pointer; font-weight: 700; }
.dt-faq p { margin: 10px 0 0; color: var(--muted); }

/* Text content (Gutenberg output) */
.dt-prose { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.dt-prose > :first-child { margin-top: 0; }
.dt-prose > :last-child { margin-bottom: 0; }
.dt-prose img { border-radius: 8px; }
.dt-narrow.dt-prose { margin-block: 24px; }
.dt-post { padding-block: 14px; border-bottom: 1px solid var(--line); }
.dt-post h2 a { color: var(--ink); text-decoration: none; }

/* Footer */
.dt-footer { margin-top: 56px; background: #0e1821; color: #c3cdd6; padding: 36px 0 24px; font-size: .9rem; }
.dt-footer a { color: #e6edf3; }
.dt-footer__title { color: #fff; font-size: 1.1rem; }
.dt-footer__cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.dt-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dt-footer__disclosure { border-top: 1px solid #243543; padding-top: 16px; margin-top: 22px; }
.dt-footer__copy { margin: 0; opacity: .7; }

/* Mobile */
@media (max-width: 820px) {
	.dt-burger { display: block; }
	.dt-header__row { flex-wrap: wrap; padding-block: 8px; }
	.dt-nav { display: none; order: 5; flex-basis: 100%; }
	.dt-nav.is-open { display: block; }
	.dt-menu { flex-direction: column; }
	.dt-search { order: 4; flex: 1 1 100%; }
	.dt-search input[type=search] { width: 100%; }
	.dt-card { grid-template-columns: auto 1fr; }
	.dt-card:not(:has(.dt-card__logo)) { grid-template-columns: 1fr; }
	.dt-card__action { grid-column: 1 / -1; min-width: 0; }
	.dt-card__logo { width: 64px; height: 64px; }
	.dt-store-head { grid-template-columns: 1fr; text-align: center; justify-items: center; }
	.dt-facts { justify-content: center; }
	.dt-hero__search { flex-direction: column; }
	.dt-bars li { grid-template-columns: 90px 1fr 24px; }
}

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