/*
Theme Name: DealVillaa V3
Theme URI: https://dealvillaa.com/
Author: DealVillaa
Description: Custom WordPress theme for DealVillaa: deals, coupons, stores and categories. Navigation, logo, homepage copy and footer are managed from the WordPress dashboard.
Version: 2.0.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: dealvantage
*/

/* =========================================================================
   1. Tokens & base
   ========================================================================= */
:root {
	--rose: #f43f5e;
	--rose-dark: #e11d48;
	--orange: #f97316;
	--orange-dark: #ea580c;
	--ink: #111827;
	--muted: #6b7280;
	--line: #e5e7eb;
	--bg: #f9fafb;
	--card: #ffffff;
	--radius: 18px;
	--header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	line-height: 1.6;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	overflow-wrap: break-word;
}

[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--rose-dark); }
img { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--rose-dark); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute; white-space: nowrap;
}
.skip-link:focus {
	clip: auto; clip-path: none; width: auto; height: auto; margin: 0; overflow: visible;
	left: 8px; top: 8px; z-index: 100; background: #fff; color: var(--ink);
	padding: 10px 16px; border-radius: 8px; box-shadow: 0 4px 16px #1118272e;
}

.container { width: min(1200px, calc(100% - 32px)); margin-inline: auto; }
.container-narrow { width: min(860px, calc(100% - 32px)); }
.site-main { flex: 1 0 auto; }

/* =========================================================================
   2. Buttons & shared bits
   ========================================================================= */
.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	border: 0; border-radius: 999px; padding: 12px 20px;
	font: inherit; font-weight: 700; line-height: 1.2; cursor: pointer;
	background: linear-gradient(100deg, var(--rose-dark), var(--orange-dark));
	color: #fff; text-align: center;
}
.button:hover { color: #fff; filter: brightness(.95); }
.button-light { background: #fff; color: var(--rose-dark); }
.button-light:hover { color: var(--rose-dark); }

.text-link { font-weight: 700; color: var(--rose-dark); }
.muted { color: var(--muted); font-size: .92rem; }
.badge { display: inline-block; background: #fff1f2; color: var(--rose-dark); border-radius: 7px; padding: 4px 8px; font-size: .78rem; font-weight: 800; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.no-results { background: var(--card); padding: 28px; border: 1px solid var(--line); border-radius: 16px; color: var(--muted); }
.notice { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 12px 16px; color: #9a3412; }

.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.03em; margin: 2em 0 .5em; }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 .4em; }
.prose p, .prose li { color: #374151; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--rose-dark); text-decoration: underline; }

/* =========================================================================
   3. Header & navigation
   ========================================================================= */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { min-height: var(--header-h); display: flex; align-items: center; gap: 24px; }

.site-branding { flex: 0 0 auto; }
.site-brand { font-size: 1.55rem; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.site-brand span { color: var(--rose-dark); }
.custom-logo-link { display: block; line-height: 0; }
.custom-logo { max-height: 48px; width: auto; }

.main-nav { flex: 1 1 auto; min-width: 0; }
.primary-menu, .footer-menu { list-style: none; margin: 0; padding: 0; }
.primary-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-weight: 600; }
.primary-menu li { position: relative; margin: 0; }
.primary-menu a { display: block; white-space: nowrap; padding: 6px 0; }
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a,
.primary-menu .current_page_item > a { color: var(--rose-dark); }

.primary-menu .sub-menu {
	display: none; position: absolute; left: -12px; top: 100%; min-width: 200px; z-index: 60;
	list-style: none; margin: 0; padding: 8px; background: #fff;
	border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 35px #1118271a;
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu { display: block; }
.primary-menu .sub-menu a { padding: 8px 12px; border-radius: 8px; }
.primary-menu .sub-menu a:hover { background: #fff1f2; }

.menu-toggle {
	display: none; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0; background: #fff;
	border: 1px solid var(--line); border-radius: 12px; cursor: pointer; color: var(--ink);
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
	display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
	transition: transform .18s, background .18s;
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle.is-open .menu-toggle-bars { background: transparent; }
.menu-toggle.is-open .menu-toggle-bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle.is-open .menu-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.header-search { display: flex; flex: 0 0 auto; gap: 8px; margin: 0; }
.header-search input[type="search"] {
	width: 200px; min-width: 0; border: 1px solid var(--line); border-radius: 999px;
	padding: 10px 14px; font: inherit; background: #fff; color: var(--ink);
}
.header-search .button { padding: 10px 18px; }


/* Long menus (more than 6 top-level items): logo + search on row 1, menu on row 2. */
.has-long-menu .header-inner { flex-wrap: wrap; gap: 0 24px; }
.has-long-menu .site-branding { order: 1; padding: 14px 0; }
.has-long-menu .header-search { order: 2; margin-left: auto; padding: 14px 0; }
.has-long-menu .main-nav { order: 3; flex: 1 1 100%; border-top: 1px solid var(--line); padding: 4px 0; }
.has-long-menu .primary-menu { gap: 0 22px; }

/* =========================================================================
   4. Heroes
   ========================================================================= */
.hero {
	position: relative; overflow: hidden; color: #fff; padding: 84px 0 78px;
	background: linear-gradient(125deg, #111827, #1f2937 55%, #111827);
}
.hero::before, .hero::after {
	content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
	filter: blur(85px); opacity: .2; pointer-events: none;
}
.hero::before { background: var(--rose); top: -160px; left: -100px; }
.hero::after { background: var(--orange); right: -100px; bottom: -180px; }
.hero-content { position: relative; max-width: 760px; }
.eyebrow { display: inline-block; padding: 6px 13px; border-radius: 999px; background: #ffffff18; color: #fda4af; font-size: .9rem; font-weight: 700; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.08; letter-spacing: -.045em; margin: 0; }
.hero p { font-size: 1.1rem; color: #d1d5db; max-width: 660px; margin: 22px 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; gap: 8px 24px; flex-wrap: wrap; list-style: none; margin: 36px 0 0; padding: 0; color: #d1d5db; font-size: .92rem; }

.page-hero {
	color: #fff; padding: 56px 0 52px;
	background: linear-gradient(125deg, #111827, #1f2937 55%, #111827);
}
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -.04em; margin: 0; max-width: 900px; }
.page-hero-text { color: #d1d5db; font-size: 1.05rem; max-width: 780px; margin: 16px 0 0; }

/* =========================================================================
   5. Sections & grids
   ========================================================================= */
.section { padding: 60px 0; }
.section-alt { background: #f3f4f6; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.03em; }
.section-intro { margin: 0 0 24px; color: var(--muted); }
.section-links { display: flex; gap: 20px; flex-wrap: wrap; margin: 28px 0 0; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.2; margin: 0; letter-spacing: -.03em; }
.section-head p { margin: 6px 0 0; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.steps, .why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: step; }
.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.why-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.step-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; counter-increment: step; }
.step-card h3 { margin: 0 0 8px; font-size: 1.1rem; line-height: 1.3; }
.step-card p { margin: 0; }
.why-list .step-card::before {
	content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 12px;
	border-radius: 50%; background: #fff1f2; color: var(--rose-dark); font-weight: 800;
}

.tracked { margin-top: 40px; }
.tracked h3 { margin: 0 0 6px; font-size: 1.25rem; }
.tracked-list { margin: 12px 0 0; padding-left: 1.2em; }
.tracked-list li { margin-bottom: 6px; color: #374151; }

.page-title { padding: 44px 0 20px; }
.page-title h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 0; letter-spacing: -.04em; line-height: 1.15; }
.content-area { padding: 20px 0 64px; }
.single-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 28px; align-items: start; }

/* =========================================================================
   6. Cards
   ========================================================================= */
.deal-card, .store-card, .category-card {
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; transition: transform .18s, box-shadow .18s;
}
.deal-card:hover, .store-card:hover, a.category-card:hover { transform: translateY(-3px); box-shadow: 0 14px 35px #1118270d; }

.deal-card { padding: 20px; display: flex; flex-direction: column; }
.deal-card.is-expired { opacity: .65; }
.deal-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.verified { font-size: .85rem; font-weight: 600; color: #15803d; }
.deal-store { margin: 10px 0 0; font-size: .85rem; font-weight: 700; color: var(--muted); }
.deal-title { font-size: 1.05rem; line-height: 1.35; margin: 6px 0 8px; }
.deal-card .muted { margin: 0 0 8px; }
.deal-expiry { margin-top: auto; }
.deal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.deal-actions .button { width: 100%; }
.deal-actions-single { margin-top: 24px; max-width: 420px; }

.coupon-code {
	display: block; border: 1px dashed #fb7185; border-radius: 10px; background: #fff7f8;
	padding: 10px 12px; font-weight: 800; letter-spacing: .04em; text-align: center; word-break: break-all;
}
.coupon-code-lg { font-size: 1.2rem; }

.store-card { padding: 20px; text-align: center; display: flex; flex-direction: column; gap: 10px; height: 100%; }
.store-card-link { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.store-logo { width: 72px; height: 72px; object-fit: contain; border-radius: 16px; background: var(--bg); }
.store-logo-placeholder { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 16px; background: #fff1f2; color: var(--rose-dark); font-size: 1.5rem; font-weight: 800; }
.store-name { font-size: 1.05rem; }
.store-count { color: var(--rose-dark); font-weight: 700; font-size: .9rem; }
.store-summary { font-size: .85rem; }
.store-site { font-size: .85rem; text-decoration: underline; }

.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.category-card { display: flex; flex-direction: column; gap: 6px; padding: 22px 20px; }
.category-icon { font-size: 1.6rem; line-height: 1; }
.category-card strong { font-size: 1.05rem; }
.category-card .muted { font-size: .88rem; }

.cta { background: linear-gradient(120deg, var(--rose-dark), var(--orange-dark)); color: #fff; border-radius: 26px; padding: 48px 24px; text-align: center; overflow: hidden; }
.cta h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); margin: 0; }
.cta p { max-width: 700px; margin: 14px auto 24px; color: #fff1f2; }
.cta p:last-child { margin-bottom: 0; }

/* =========================================================================
   7. Filters, directory, FAQ, pagination, offer details
   ========================================================================= */
.deal-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin-bottom: 32px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.filter-field { display: flex; flex-direction: column; gap: 4px; min-width: 170px; flex: 1 1 170px; }
.filter-field label { font-size: .85rem; font-weight: 700; }
.filter-field select, .brand-filter input {
	width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; background: #fff; color: var(--ink);
}

.letter-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.letter-nav a, .letter-nav .is-disabled {
	display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-weight: 700; font-size: .9rem;
}
.letter-nav a { background: var(--card); border: 1px solid var(--line); }
.letter-nav a:hover { border-color: var(--rose-dark); }
.letter-nav .is-disabled { color: #cbd5e1; border: 1px solid transparent; }
.brand-filter { max-width: 420px; margin-bottom: 24px; }
.letter-group { margin-bottom: 32px; }
.letter-heading { font-size: 1.5rem; margin: 0 0 14px; color: var(--rose-dark); }
.store-item { min-width: 0; }

.container-narrow .faq-list, .faq-list { display: grid; gap: 10px; margin-top: 20px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style-position: outside; }
.faq-item[open] summary { color: var(--rose-dark); }
.faq-item p { margin: 0 0 16px; color: #374151; }

.pagination { margin-top: 28px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { display: inline-block; background: var(--card); border: 1px solid var(--line); padding: 8px 12px; border-radius: 8px; margin-right: 5px; }
.pagination .nav-links .page-numbers { margin-right: 0; }
.pagination .current { background: var(--rose-dark); border-color: var(--rose-dark); color: #fff; }

.offer-details { margin: 0; }
.offer-details dt { font-weight: 700; margin-top: 12px; }
.offer-details dd { margin: 2px 0 0; color: #374151; }

/* =========================================================================
   8. Footer
   ========================================================================= */
.site-footer { background: #111827; color: #d1d5db; padding: 42px 0; margin-top: auto; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { color: #fff; font-size: 1.3rem; font-weight: 800; }
.site-footer p { margin: 6px 0 12px; }
.footer-menu { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a:hover { color: #fda4af; }

/* =========================================================================
   9. Responsive (one set of breakpoints: 1100 / 860 / 560)
   ========================================================================= */
@media (max-width: 1100px) {
	.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.header-search input[type="search"] { width: 150px; }
}

@media (max-width: 860px) {
	.grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.single-layout { grid-template-columns: 1fr; }

	/* Header collapses: logo + toggle on row 1, search on row 2, menu on row 3. */
	.header-inner { flex-wrap: wrap; gap: 12px; padding: 12px 0; min-height: 0; }
	.site-branding { order: 1; }
	.menu-toggle { order: 2; margin-left: auto; }
	.header-search { order: 3; flex: 1 1 100%; }
	.header-search input[type="search"] { flex: 1 1 auto; width: auto; }
	.main-nav, .has-long-menu .main-nav { order: 4; flex: 1 1 100%; border-top: 0; padding: 0; }
	.has-long-menu .site-branding, .has-long-menu .header-search { padding: 0; }
	.has-long-menu .header-search { order: 3; margin-left: 0; }
	.has-long-menu .header-inner { gap: 12px; }

	.js .menu-toggle { display: inline-flex; }
	.js .main-nav { display: none; }
	.js .main-nav.is-open { display: block; }

	.primary-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-menu li { border-top: 1px solid var(--line); }
	.primary-menu a { padding: 12px 4px; white-space: normal; }
	.primary-menu .sub-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 6px 16px; min-width: 0; }
}

@media (max-width: 560px) {
	.hero { padding: 56px 0; }
	.page-hero { padding: 40px 0; }
	.section { padding: 42px 0; }
	.section-head { align-items: flex-start; flex-direction: column; }
	.grid, .steps, .why-list, .category-grid { grid-template-columns: 1fr; }
	.panel { padding: 18px; }
	.hero-actions .button { flex: 1 1 100%; }
	.deal-filters .button { width: 100%; }
}

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


/* DealVillaa four-column footer */
.site-footer {
    background: #111827;
    color: #d1d5db;
    padding: 44px 0 20px;
}

.site-footer .footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.site-footer .footer-brand {
    display: inline-block;
    color: #fff;
    font-size: 25px;
    font-weight: 800;
    text-decoration: none;
    margin-bottom: 10px;
}

.site-footer .footer-column p {
    line-height: 1.7;
    margin-top: 8px;
}

.site-footer .footer-heading {
    color: #fff;
    font-size: 17px;
    margin: 0 0 18px;
}

.site-footer .footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer .footer-menu li {
    margin: 0 0 12px;
}

.site-footer .footer-menu a {
    color: #d1d5db;
    font-size: 14px;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.site-footer .footer-menu a:hover {
    color: #f43f5e;
}

.site-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid #374151;
    margin-top: 30px;
    padding-top: 18px;
    color: #9ca3af;
}

@media (max-width: 900px) {
    .site-footer .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .site-footer .footer-inner {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .site-footer .footer-bottom {
        flex-direction: column;
    }
}

/* =========================================================================
   DealVillaa V3 - Final 5-column footer
   Add this block at the VERY END of style.css
   ========================================================================= */

.site-footer {
    background: #111827;
    color: #d1d5db;
    padding: 38px 0 18px;
    margin-top: auto;
    width: 100%;
}

.site-footer .footer-inner {
    display: grid;
    grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}

.site-footer .footer-column {
    min-width: 0;
}

.site-footer .footer-brand {
    display: inline-block;
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 12px;
    text-decoration: none;
}

.site-footer .footer-brand:hover {
    color: #fda4af;
}

.site-footer .footer-tagline {
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 18px;
}

.site-footer .footer-heading {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 3px 0 18px;
}

.site-footer .footer-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer .footer-list li {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.site-footer .footer-list a {
    color: #cbd5e1;
    display: inline-block;
    font-size: 13px;
    line-height: 1.6;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.site-footer .footer-list a:hover {
    color: #fda4af;
}

.site-footer .footer-social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 14px;
}

.site-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #374151;
    border-radius: 50%;
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-footer .footer-social a:hover {
    background: #f43f5e;
    border-color: #f43f5e;
    color: #ffffff;
}

.site-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 24px;
    border-top: 1px solid #374151;
    margin-top: 28px;
    padding-top: 16px;
    color: #9ca3af;
}

.site-footer .footer-bottom small {
    font-size: 12px;
    line-height: 1.7;
}

.site-footer .footer-disclosure {
    text-align: right;
}

/* Tablet */
@media (max-width: 1050px) {
    .site-footer .footer-inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 30px 24px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .site-footer {
        padding: 30px 0 16px;
    }

    .site-footer .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 18px;
    }

    .site-footer .footer-heading {
        margin-bottom: 12px;
    }

    .site-footer .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        margin-top: 24px;
    }

    .site-footer .footer-disclosure {
        text-align: left;
    }
}

/* Small mobile screens */
@media (max-width: 380px) {
    .site-footer .footer-inner {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

/* =========================================================================
   DealVillaa V3 offer cards + Coupon reveal modal
   ========================================================================= */
.deal-card-v3 { padding: 22px 24px; gap: 12px; border-radius: 20px; box-shadow: 0 4px 18px rgba(17,24,39,.035); }
.deal-card-v3:hover { border-color: #fecdd3; box-shadow: 0 14px 34px rgba(17,24,39,.08); }
.deal-card-head { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.deal-store-brand { display:flex; align-items:center; gap:12px; min-width:0; }
.deal-store-logo { width:46px; height:46px; flex:0 0 46px; object-fit:contain; border:1px solid var(--line); border-radius:13px; background:#fff; padding:4px; }
.deal-store-logo-placeholder { display:grid; place-items:center; color:var(--rose-dark); background:#fff1f2; font-weight:800; font-size:1.15rem; }
.deal-store-meta { display:flex; flex-direction:column; line-height:1.25; gap:4px; }
.deal-store-meta .deal-store { margin:0; color:var(--rose-dark); font-size:.94rem; font-weight:700; }
.deal-kind { color:var(--muted); font-size:.75rem; letter-spacing:.07em; text-transform:uppercase; }
.deal-discount { display:inline-flex; align-items:center; justify-content:center; min-height:36px; padding:6px 13px; border-radius:999px; background:#fff1f2; color:#be123c; font-weight:800; white-space:nowrap; }
.deal-discount-neutral { background:#f3f4f6; color:#374151; }
.deal-card-v3 .deal-title { margin:2px 0 0; font-size:clamp(1.08rem,2vw,1.28rem); line-height:1.35; letter-spacing:-.02em; }
.deal-card-v3 .deal-title a:hover { color:var(--rose-dark); }
.deal-summary { margin:0; color:#596273; font-size:.96rem; }
.deal-meta-row { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; margin-top:2px; }
.deal-status { display:inline-flex; align-items:center; gap:5px; padding:5px 9px; border-radius:7px; background:#f9fafb; color:#596273; font-size:.82rem; }
.deal-status-verified { color:#047857; background:#ecfdf5; font-weight:650; }
.deal-actions-v3 { margin-top:4px; }
.deal-actions-v3 .button { width:100%; min-height:48px; border-radius:12px; font-size:1rem; }
.deal-popup-trigger { font-family:inherit; }
.button-disabled { opacity:.6; cursor:not-allowed; background:#6b7280; }

.dv-modal-open { overflow:hidden; }
.dv-offer-modal { position:fixed; inset:0; z-index:999999; display:grid; place-items:center; padding:20px; }
.dv-offer-modal[hidden] { display:none; }
.dv-modal-backdrop { position:absolute; inset:0; background:rgba(15,23,42,.58); backdrop-filter:blur(3px); }
.dv-modal-panel { position:relative; z-index:1; width:min(100%,560px); max-height:min(88vh,760px); overflow:auto; padding:30px; border-radius:22px; background:#fff; box-shadow:0 24px 80px rgba(0,0,0,.24); }
.dv-modal-close { position:absolute; top:14px; right:16px; width:36px; height:36px; border:0; border-radius:50%; background:#f3f4f6; color:#374151; font-size:26px; line-height:1; cursor:pointer; }
.dv-modal-store { padding-right:40px; color:var(--rose-dark); font-size:.78rem; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.dv-modal-panel h2 { margin:5px 38px 12px 0; color:#111827; font-size:1.45rem; line-height:1.25; }
.dv-modal-type { display:inline-block; padding:5px 10px; border-radius:999px; background:#fff1f2; color:#be123c; font-size:.78rem; font-weight:750; }
.dv-modal-description { margin:15px 0; color:#4b5563; }
.dv-modal-code-wrap { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:center; margin:16px 0; }
.dv-modal-code { min-width:0; padding:12px; border:1px dashed #fb7185; border-radius:10px; background:#fff7f8; color:#9f1239; font-size:1.1rem; font-weight:850; letter-spacing:.06em; text-align:center; overflow-wrap:anywhere; }
.dv-copy-code { white-space:nowrap; border-radius:10px; }
.dv-modal-expiry { margin:12px 0; color:#6b7280; font-size:.9rem; }
.dv-visit-store { width:100%; min-height:50px; border-radius:12px; }
.dv-modal-disclosure { margin:14px 0 0; color:#6b7280; font-size:.78rem; line-height:1.5; }
@media (max-width:640px) {
 .deal-card-v3 { padding:17px; }
 .deal-card-head { align-items:flex-start; }
 .deal-discount { min-height:32px; padding:5px 9px; font-size:.84rem; }
 .deal-store-logo { width:40px; height:40px; flex-basis:40px; }
 .deal-status { font-size:.76rem; }
 .dv-offer-modal { padding:12px; }
 .dv-modal-panel { padding:24px 18px; border-radius:18px; }
 .dv-modal-code-wrap { grid-template-columns:1fr; }
 .dv-copy-code { width:100%; }
}

/* =========================================================================
   DealVillaa V3: equal-height cards, buttons always at bottom 
   ========================================================================= */

.deal-card-v3 { height: 100%; }

/* Title max 3 lines */
.deal-card-v3 .deal-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Description max 3 lines */
.deal-card-v3 .deal-summary {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Expiry row + button always pinned to the bottom */
.deal-card-v3 .deal-meta-row { margin-top: auto; padding-top: 6px; }
.deal-card-v3 .deal-actions-v3 { margin-top: 4px; }

/* Buttons inside .prose content must keep button styling (Store Button Style Fix */
.prose a.button,
.prose a.button:visited { color: #fff; text-decoration: none; }
.prose a.button:hover { color: #fff; text-decoration: none; }

/* Dedicated Categories directory page */
.dv-categories-heading { max-width: 760px; margin: 0 auto 30px; text-align: center; }
.dv-categories-heading .eyebrow { margin: 0 0 8px; color: var(--rose-dark); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dv-categories-heading .section-title { margin-bottom: 10px; }
.dv-category-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dv-category-directory-card { display: flex; align-items: center; gap: 15px; min-width: 0; min-height: 116px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 4px 16px rgba(17,24,39,.035); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.dv-category-directory-card:hover { transform: translateY(-3px); border-color: #fda4af; box-shadow: 0 12px 28px rgba(17,24,39,.08); }
.dv-category-directory-icon { display: grid; place-items: center; flex: 0 0 54px; width: 54px; height: 54px; border-radius: 15px; background: #fff1f2; font-size: 1.7rem; }
.dv-category-directory-copy { display: flex; flex: 1 1 auto; flex-direction: column; gap: 5px; min-width: 0; }
.dv-category-directory-copy strong { color: var(--ink); font-size: 1rem; line-height: 1.3; }
.dv-category-directory-copy > span { color: var(--muted); font-size: .84rem; line-height: 1.45; }
.dv-category-directory-arrow { flex: 0 0 auto; color: var(--rose-dark); font-size: 1.35rem; font-weight: 700; }
@media (max-width: 900px) { .dv-category-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dv-category-directory-grid { grid-template-columns: 1fr; gap: 12px; } .dv-category-directory-card { min-height: 98px; padding: 16px; } }


/* =========================================================================
   DealVillaa Categories directory: warm neutral visual identity + finder
   ========================================================================= */
.dv-categories-page { padding-top: 0; padding-bottom: 64px; }
.dv-categories-hero {
    padding: 34px 0 42px;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(217, 180, 255, .34), transparent 48%),
        radial-gradient(ellipse at 100% 100%, rgba(125, 211, 252, .28), transparent 48%),
        linear-gradient(115deg, #fbf7ff 0%, #fff 52%, #f3fbff 100%);
    border-bottom: 1px solid #e5e7eb;
}
.dv-categories-breadcrumb {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 34px;
    color: #64748b;
    font-size: .94rem;
}
.dv-categories-breadcrumb a { color: #334155; text-decoration: none; }
.dv-categories-breadcrumb a:hover { color: var(--rose-dark); }
.dv-categories-breadcrumb span[aria-hidden="true"] { color: #94a3b8; font-size: 1.3rem; }
.dv-categories-hero-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}
.dv-categories-hero-copy { max-width: 800px; }
.dv-categories-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
    padding: 7px 13px;
    border: 1px solid #ddd6fe;
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    color: #5b45d6;
    font-size: .86rem;
    font-weight: 700;
}
.dv-categories-hero-copy h1 {
    margin: 0 0 12px;
    color: #171717;
    font-size: clamp(2.5rem, 5vw, 3.65rem);
    font-weight: 850;
    letter-spacing: -.045em;
    line-height: 1.08;
}
.dv-categories-hero-copy p {
    max-width: 850px;
    margin: 0;
    color: #536174;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.65;
}
.dv-categories-stats {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0;
    padding-bottom: 5px;
}
.dv-categories-stat {
    display: flex;
    flex-direction: column;
    min-width: 128px;
    padding: 0 25px;
    border-left: 1px solid rgba(148,163,184,.3);
}
.dv-categories-stat:first-child { border-left: 0; padding-left: 0; }
.dv-categories-stat:last-child { padding-right: 0; }
.dv-categories-stat strong {
    color: #111827;
    font-size: clamp(1.8rem, 3vw, 2.25rem);
    font-weight: 850;
    letter-spacing: -.035em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.dv-categories-stat span { margin-top: 5px; color: #64748b; font-size: 1rem; }
.dv-categories-directory { padding-top: 48px; }
.dv-categories-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 16px;
    margin-bottom: 34px;
}
.dv-category-search {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 60px;
    padding: 0 18px;
    border: 1px solid #e5e7eb;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15,23,42,.025);
}
.dv-category-search:focus-within { border-color: #c4b5fd; box-shadow: 0 0 0 3px rgba(139,92,246,.1); }
.dv-category-search-icon { color: #94a3b8; font-size: 1.7rem; line-height: 1; transform: rotate(-20deg); }
.dv-category-search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111827;
    font: inherit;
    font-size: 1.05rem;
    box-shadow: none;
}
.dv-category-search input::placeholder { color: #94a3b8; }
.dv-category-sort-label { display: block; }
.dv-category-sort-label select {
    width: 100%;
    height: 60px;
    padding: 0 15px;
    border: 1px solid #e5e7eb;
    border-radius: 17px;
    background: #fff;
    color: #111827;
    font: inherit;
    font-size: 1rem;
}
.dv-categories-results-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 0 0 20px;
    color: #64748b;
    font-size: .98rem;
}
.dv-categories-results-line strong { color: #475569; font-weight: 600; }
.dv-categories-results-line span { color: #64748b; }
.dv-category-directory-grid { align-items: stretch; }
.dv-category-directory-card { position: relative; }
.dv-category-directory-copy small {
    margin-top: 3px;
    color: #8b95a5;
    font-size: .78rem;
    font-weight: 650;
}
.dv-category-directory-card[hidden],
.dv-category-directory-grid[hidden],
.dv-categories-no-results[hidden] { display: none !important; }
.dv-categories-no-results {
    padding: 36px 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    color: #64748b;
    text-align: center;
}
@media (max-width: 1050px) {
    .dv-categories-hero-content { align-items: flex-start; flex-direction: column; gap: 28px; }
    .dv-categories-stats { width: 100%; }
    .dv-categories-stat { flex: 1 1 0; }
}
@media (max-width: 640px) {
    .dv-categories-hero { padding: 25px 0 30px; }
    .dv-categories-breadcrumb { margin-bottom: 25px; }
    .dv-categories-hero-copy h1 { font-size: 2.45rem; }
    .dv-categories-stats { justify-content: space-between; }
    .dv-categories-stat { min-width: 0; padding: 0 12px; }
    .dv-categories-stat strong { font-size: 1.55rem; }
    .dv-categories-stat span { font-size: .78rem; }
    .dv-categories-toolbar { grid-template-columns: 1fr; gap: 10px; margin-bottom: 25px; }
    .dv-category-search, .dv-category-sort-label select { min-height: 54px; height: 54px; }
    .dv-categories-directory { padding-top: 28px; }
    .dv-categories-results-line { font-size: .85rem; }
}


/* DealVillaa Categories page — calm warm-neutral palette */
.dv-categories-hero {
    background:
        radial-gradient(ellipse at 0% 0%, rgba(238, 190, 150, .13), transparent 54%),
        radial-gradient(ellipse at 100% 100%, rgba(232, 218, 198, .16), transparent 56%),
        linear-gradient(115deg, #fbf9f6 0%, #fffdfa 54%, #f8f7f3 100%);
    border-bottom-color: #ebe6df;
}
.dv-categories-breadcrumb {
    color: #77716a;
}
.dv-categories-breadcrumb a {
    color: #4b4945;
}
.dv-categories-breadcrumb a:hover {
    color: #bd6338;
}
.dv-categories-breadcrumb span[aria-hidden="true"] {
    color: #aaa198;
}
.dv-categories-hero-copy h1 {
    color: #292724;
}
.dv-categories-hero-copy p {
    color: #68635d;
}
.dv-categories-stat strong {
    color: #292724;
}
.dv-categories-stat span {
    color: #77716a;
}
.dv-categories-stat {
    border-left-color: rgba(130, 117, 101, .19);
}
.dv-category-search:focus-within {
    border-color: #dfb99f;
    box-shadow: 0 0 0 3px rgba(189, 99, 56, .08);
}
.dv-category-directory-card:hover {
    border-color: #e8c9b4;
}
.dv-category-directory-icon {
    background: #fbf1e9;
}
.dv-category-directory-arrow {
    color: #bd6338;
}
@media (max-width: 640px) {
    .dv-categories-hero {
        background: linear-gradient(145deg, #fbf9f6 0%, #fffdfa 100%);
    }
}
