/*
Theme Name: WPDZ Marketplace
Theme URI: https://example.com/wpdz
Author: WPDZ
Description: Thème marketplace autonome pour vendre des plugins et thèmes WordPress. Gestion des produits intégrée (catégories, plans avec liens de paiement, détails, téléchargements gratuits), barre supérieure, hero centré, page produit avec barre latérale fixe. Aucune extension requise.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wpdz
Tags: e-commerce, grid-layout, custom-colors, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ---------- Tokens ---------- */
:root {
	--wpdz-accent: #2546C7;
	--wpdz-accent-dark: color-mix(in srgb, var(--wpdz-accent) 78%, #000);
	--wpdz-accent-soft: color-mix(in srgb, var(--wpdz-accent) 10%, #fff);
	--wpdz-accent-line: color-mix(in srgb, var(--wpdz-accent) 30%, #fff);
	--wpdz-surface: color-mix(in srgb, var(--wpdz-accent) 5%, #fff);
	--wpdz-ink: #121628;
	--wpdz-text: #3A3F55;
	--wpdz-muted: #5B6178;
	--wpdz-muted-2: #4A5068;
	--wpdz-border: #ECEEF4;
	--wpdz-border-2: #DDE1EC;
	--wpdz-field: #F4F5F9;
	--wpdz-free: #B4440F;
	--wpdz-free-soft: #FDEDE3;
	--wpdz-success: #0B7A4B;
	--wpdz-success-soft: #E3F3EA;
	--wpdz-dark: #121628;
	--wpdz-radius: 18px;
	--wpdz-max: 1240px;
	--wpdz-font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--wpdz-ink); font-family: var(--wpdz-font); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wpdz-accent); text-decoration: none; }
a:hover { color: var(--wpdz-accent-dark); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; color: var(--wpdz-ink); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--wpdz-accent); 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: 8px; }
.wpdz-container { max-width: var(--wpdz-max); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.wpdz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; transition: background .15s ease, border-color .15s ease, color .15s ease; white-space: nowrap; }
.wpdz-btn svg { width: 18px; height: 18px; flex: none; }
.wpdz-btn--primary { background: var(--wpdz-accent); color: #fff; }
.wpdz-btn--primary:hover { background: var(--wpdz-accent-dark); color: #fff; }
.wpdz-btn--outline { background: #fff; border-color: var(--wpdz-border-2); color: var(--wpdz-ink); }
.wpdz-btn--outline:hover { border-color: var(--wpdz-accent); color: var(--wpdz-accent); }
.wpdz-btn--free { background: var(--wpdz-free); color: #fff; }
.wpdz-btn--free:hover { background: #8A330B; color: #fff; }
.wpdz-btn--success { background: var(--wpdz-success); color: #fff; }
.wpdz-btn--lg { height: 54px; padding: 0 24px; border-radius: 14px; font-size: 16px; font-weight: 700; }
.wpdz-btn--block { display: flex; width: 100%; }

/* ---------- Top bar ---------- */
.wpdz-topbar { background: var(--wpdz-dark); color: rgba(255,255,255,.88); font-size: 13px; }
.wpdz-topbar__inner { padding-top: 10px; padding-bottom: 10px; text-align: center; }
.wpdz-topbar a { color: #fff; text-decoration: underline; }

/* ---------- Header ---------- */
.wpdz-header { border-bottom: 1px solid var(--wpdz-border); background: #fff; }
.wpdz-header__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.wpdz-logo { display: flex; align-items: center; gap: 10px; color: var(--wpdz-ink); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.wpdz-logo:hover { color: var(--wpdz-ink); }
.wpdz-logo__mark { width: 36px; height: 36px; border-radius: 10px; background: var(--wpdz-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.wpdz-logo img, .custom-logo { max-height: 40px; width: auto; }
.wpdz-search { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 12px; background: var(--wpdz-field); }
.wpdz-search svg { width: 18px; height: 18px; flex: none; color: var(--wpdz-muted); }
.wpdz-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 15px; color: var(--wpdz-ink); }
.wpdz-header__actions { display: flex; gap: 10px; align-items: center; }

/* ---------- Hero ---------- */
.wpdz-hero { padding-top: 28px; }
.wpdz-hero__box { border-radius: 24px; background: var(--wpdz-surface); padding: 64px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.wpdz-hero h1 { max-width: 760px; font-size: clamp(32px, 4vw, 48px); line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; }
.wpdz-hero p { margin: 0; max-width: 580px; font-size: 18px; line-height: 1.6; color: var(--wpdz-muted-2); }
.wpdz-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.wpdz-hero__actions .wpdz-btn { height: 50px; padding: 0 24px; }

/* ---------- Catalog ---------- */
.wpdz-catalog { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 36px; padding-bottom: 88px; }
.wpdz-cats { flex: 1 1 220px; max-width: 260px; display: flex; flex-direction: column; gap: 4px; }
.wpdz-cats__label { font-size: 13px; font-weight: 600; color: var(--wpdz-muted); padding: 0 12px 8px; text-transform: uppercase; letter-spacing: .03em; }
.wpdz-cats a { min-height: 44px; padding: 0 12px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: var(--wpdz-text); }
.wpdz-cats a:hover { background: var(--wpdz-field); color: var(--wpdz-ink); }
.wpdz-cats a.is-active { background: var(--wpdz-accent-soft); color: var(--wpdz-accent); }
.wpdz-cats a span { font-size: 13px; color: var(--wpdz-muted); }
.wpdz-catalog__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.wpdz-catalog__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.wpdz-catalog__title { font-size: 26px; }
.wpdz-catalog__count { font-size: 14px; color: var(--wpdz-muted); }
.wpdz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.wpdz-empty { padding: 48px 24px; border-radius: var(--wpdz-radius); border: 1px dashed var(--wpdz-border-2); text-align: center; color: var(--wpdz-muted); }

/* ---------- Card ---------- */
.wpdz-card { border: 1px solid var(--wpdz-border); border-radius: var(--wpdz-radius); padding: 18px; color: var(--wpdz-ink); display: flex; flex-direction: column; gap: 14px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.wpdz-card:hover { color: var(--wpdz-ink); border-color: var(--wpdz-accent-line); box-shadow: 0 12px 30px -16px color-mix(in srgb, var(--wpdz-accent) 45%, transparent); transform: translateY(-2px); }
.wpdz-card__media { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 30px; }
.wpdz-card__media img { width: 100%; height: 100%; object-fit: cover; }
.wpdz-badge-free { position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--wpdz-free); color: #fff; }
.wpdz-card__body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.wpdz-card__title { font-weight: 700; font-size: 17px; }
.wpdz-card__desc { font-size: 14px; color: var(--wpdz-muted); line-height: 1.5; }
.wpdz-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.wpdz-card__cat { color: var(--wpdz-muted); }
.wpdz-card__price { font-weight: 700; font-size: 16px; }
.wpdz-card__price.is-free { color: var(--wpdz-free); }

.wpdz-pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.wpdz-pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--wpdz-border); color: var(--wpdz-ink); }
.wpdz-pagination .current { background: var(--wpdz-accent); border-color: var(--wpdz-accent); color: #fff; }

/* ---------- Single product ---------- */
.wpdz-single { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 24px; padding-bottom: 96px; }
.wpdz-single__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.wpdz-crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--wpdz-muted); }
.wpdz-crumbs a { color: var(--wpdz-muted); }
.wpdz-crumbs a:hover { color: var(--wpdz-ink); }
.wpdz-crumbs [aria-current] { color: var(--wpdz-ink); }
.wpdz-phead { display: flex; flex-direction: column; gap: 18px; }
.wpdz-phead__row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.wpdz-icon { flex: none; width: 72px; height: 72px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 24px; overflow: hidden; }
.wpdz-icon img { width: 100%; height: 100%; object-fit: cover; }
.wpdz-icon--sm { width: 44px; height: 44px; border-radius: 12px; font-size: 15px; }
.wpdz-phead__text { flex: 1 1 300px; display: flex; flex-direction: column; gap: 6px; }
.wpdz-phead h1 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
.wpdz-phead__sub { margin: 0; font-size: 17px; color: var(--wpdz-muted-2); line-height: 1.5; }
.wpdz-pill-free { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--wpdz-free); color: #fff; }
.wpdz-chips { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--wpdz-text); }
.wpdz-chips span { padding: 6px 12px; border-radius: 8px; background: var(--wpdz-field); }
.wpdz-gallery { display: flex; flex-direction: column; gap: 12px; }
.wpdz-gallery__main { aspect-ratio: 16 / 9; border-radius: 20px; background: var(--wpdz-surface); border: 1px solid var(--wpdz-border); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--wpdz-muted-2); }
.wpdz-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
/* Image entière, hauteur naturelle */
.wpdz-gallery--full .wpdz-gallery__main { aspect-ratio: auto; }
.wpdz-gallery--full .wpdz-gallery__main img { height: auto; max-height: 85vh; object-fit: contain; }
/* Image entière dans un cadre 16:9 */
.wpdz-gallery--contain .wpdz-gallery__main img { object-fit: contain; }
.wpdz-gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.wpdz-gallery__thumbs button { padding: 0; border: 2px solid var(--wpdz-border); border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--wpdz-surface); cursor: pointer; }
.wpdz-gallery__thumbs button.is-active { border-color: var(--wpdz-accent); }
.wpdz-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.wpdz-gallery--full .wpdz-gallery__thumbs img, .wpdz-gallery--contain .wpdz-gallery__thumbs img { object-fit: contain; }

.wpdz-section { display: flex; flex-direction: column; gap: 16px; }
.wpdz-section > h2 { font-size: 26px; }
.wpdz-content { font-size: 16px; line-height: 1.7; color: var(--wpdz-text); }
.wpdz-content > *:last-child { margin-bottom: 0; }
.wpdz-content img { border-radius: 14px; }
.wpdz-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px 32px; list-style: none; margin: 0; padding: 0; }
.wpdz-features li { display: flex; gap: 12px; align-items: flex-start; }
.wpdz-check { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--wpdz-accent-soft); color: var(--wpdz-accent); display: flex; align-items: center; justify-content: center; }
.wpdz-check svg { width: 13px; height: 13px; }
.wpdz-check--free { background: var(--wpdz-free-soft); color: var(--wpdz-free); }
.wpdz-features strong { display: block; font-weight: 600; }
.wpdz-features small { display: block; font-size: 15px; color: var(--wpdz-muted-2); line-height: 1.5; }
.wpdz-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.6; color: var(--wpdz-text); }
.wpdz-faq { display: flex; flex-direction: column; gap: 10px; }
.wpdz-faq details { border-radius: 14px; background: #F7F8FB; padding: 18px 20px; }
.wpdz-faq summary { font-weight: 600; cursor: pointer; }
.wpdz-faq details p { margin: 10px 0 0; color: var(--wpdz-muted-2); line-height: 1.6; }
.wpdz-table-wrap { border-radius: 16px; border: 1px solid var(--wpdz-border); overflow-x: auto; }
.wpdz-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 440px; }
.wpdz-table th { text-align: left; background: #F7F8FB; padding: 14px 20px; font-weight: 600; color: var(--wpdz-muted-2); }
.wpdz-table th.is-free { color: var(--wpdz-free); }
.wpdz-table th.is-pro { color: var(--wpdz-accent); }
.wpdz-table td { padding: 14px 20px; border-top: 1px solid var(--wpdz-border); }
.wpdz-table td:nth-child(2) { color: var(--wpdz-muted-2); }
.wpdz-table td:nth-child(3) { font-weight: 600; }

/* ---------- Sticky sidebar ---------- */
.wpdz-aside { flex: 1 1 340px; min-width: 0; position: sticky; top: 24px; align-self: flex-start; display: flex; flex-direction: column; gap: 14px; }
.admin-bar .wpdz-aside { top: 56px; }
.wpdz-box { border-radius: 22px; padding: 24px; background: #fff; border: 1px solid #E3E7F3; box-shadow: 0 24px 60px -32px rgba(18,22,40,.35); display: flex; flex-direction: column; gap: 16px; }
.wpdz-box h2 { font-size: 20px; letter-spacing: -0.01em; }
.wpdz-plans { display: flex; flex-direction: column; gap: 10px; border: 0; margin: 0; padding: 0; }
.wpdz-plan { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--wpdz-border-2); background: #fff; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.wpdz-plan input { position: absolute; opacity: 0; pointer-events: none; }
.wpdz-plan__dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #C7CDE0; display: flex; align-items: center; justify-content: center; }
.wpdz-plan__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: transparent; }
.wpdz-plan__text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.wpdz-plan__name { font-weight: 700; }
.wpdz-plan__note { font-size: 14px; color: var(--wpdz-muted); }
.wpdz-plan__price { font-weight: 700; font-size: 20px; white-space: nowrap; }
.wpdz-plan:has(input:checked), .wpdz-plan.is-checked { border-color: var(--wpdz-accent); background: var(--wpdz-surface); }
.wpdz-plan:has(input:checked) .wpdz-plan__dot, .wpdz-plan.is-checked .wpdz-plan__dot { border-color: var(--wpdz-accent); }
.wpdz-plan:has(input:checked) .wpdz-plan__dot::after, .wpdz-plan.is-checked .wpdz-plan__dot::after { background: var(--wpdz-accent); }
.wpdz-plan:has(input:focus-visible) { outline: 2px solid var(--wpdz-accent); outline-offset: 2px; }
.wpdz-single-price { display: flex; align-items: baseline; justify-content: space-between; }
.wpdz-single-price strong { font-size: 34px; letter-spacing: -0.02em; }
.wpdz-box__alt { text-align: center; font-size: 15px; font-weight: 600; }
.wpdz-benefits { margin: 0; padding: 16px 0 0; border-top: 1px solid var(--wpdz-border); list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--wpdz-text); }
.wpdz-benefits li { display: flex; gap: 10px; align-items: center; }
.wpdz-benefits svg { width: 16px; height: 16px; flex: none; color: var(--wpdz-accent); }
.wpdz-field { display: flex; flex-direction: column; gap: 8px; }
.wpdz-field label { font-size: 14px; font-weight: 600; }
.wpdz-field label span { font-weight: 400; color: var(--wpdz-muted); }
.wpdz-field input { height: 48px; padding: 0 14px; border: 1px solid var(--wpdz-border-2); border-radius: 12px; font-size: 15px; background: #fff; }
.wpdz-success { padding: 16px; border-radius: 14px; background: var(--wpdz-success-soft); display: flex; gap: 12px; align-items: flex-start; }
.wpdz-success svg { flex: none; width: 20px; height: 20px; color: var(--wpdz-success); }
.wpdz-success strong { display: block; font-weight: 600; }
.wpdz-success span { font-size: 14px; color: var(--wpdz-text); }
.wpdz-meta { margin: 0; padding-top: 16px; border-top: 1px solid var(--wpdz-border); display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; }
.wpdz-meta dt { color: var(--wpdz-muted); }
.wpdz-meta dd { margin: 0; }
.wpdz-upsell { border-radius: 18px; padding: 18px 20px; background: var(--wpdz-surface); color: var(--wpdz-ink); display: flex; align-items: center; gap: 14px; }
.wpdz-upsell:hover { color: var(--wpdz-ink); background: var(--wpdz-accent-soft); }
.wpdz-upsell span { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.wpdz-upsell small { font-size: 14px; color: var(--wpdz-muted-2); }
.wpdz-upsell b { color: var(--wpdz-accent); }
.wpdz-price-big { font-weight: 700; font-size: 34px; letter-spacing: -0.02em; }
.wpdz-box__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.wpdz-box__top small { font-size: 14px; color: var(--wpdz-muted); }
[hidden] { display: none !important; }

/* ---------- Generic pages ---------- */
.wpdz-page { padding-top: 48px; padding-bottom: 96px; max-width: 860px; }
.wpdz-page--wide { max-width: var(--wpdz-max); }
.wpdz-page__title { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 24px; }

/* ---------- Footer ---------- */
.wpdz-footer { background: var(--wpdz-dark); color: rgba(255,255,255,.76); }
.wpdz-footer a { color: rgba(255,255,255,.76); }
.wpdz-footer a:hover { color: #fff; }
.wpdz-footer__top { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 64px; padding-bottom: 40px; }
.wpdz-footer__brand { flex: 2 1 300px; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.wpdz-footer__brand .wpdz-logo, .wpdz-footer__brand .wpdz-logo:hover { color: #fff; }
.wpdz-footer__brand p { margin: 0; font-size: 14px; line-height: 1.7; }
.wpdz-paychips { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.9); }
.wpdz-paychips span { padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); }
.wpdz-footer__col { flex: 1 1 160px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.wpdz-footer__col h2 { font-size: 13px; font-weight: 600; color: #fff; letter-spacing: .04em; text-transform: uppercase; }
.wpdz-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.wpdz-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.wpdz-footer__bottom .wpdz-container { padding-top: 20px; padding-bottom: 20px; text-align: center; font-size: 13px; color: rgba(255,255,255,.66); }
.wpdz-footer__bottom p { margin: 0; }

/* ---------- Floating buy bar ---------- */
.wpdz-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: #fff; border-top: 1px solid var(--wpdz-border); box-shadow: 0 -12px 30px -18px rgba(18,22,40,.35); transition: transform .25s ease, opacity .25s ease; }
.wpdz-sticky.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
.wpdz-sticky__inner { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.wpdz-sticky__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.wpdz-sticky__text strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wpdz-sticky__text span { font-size: 14px; font-weight: 700; }
.wpdz-sticky__text span.is-free { color: var(--wpdz-free); }
.wpdz-sticky .wpdz-btn { height: 48px; padding: 0 20px; border-radius: 12px; }
body.wpdz-has-sticky-all .wpdz-footer { padding-bottom: 76px; }
@media (min-width: 783px) { .wpdz-sticky--mobile { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 782px) {
	body.wpdz-has-sticky-mobile .wpdz-footer { padding-bottom: 76px; }
	.wpdz-gallery__thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
	.wpdz-gallery__main { border-radius: 14px; }
	.wpdz-cats { max-width: none; flex-direction: row; flex-wrap: wrap; gap: 6px; }
	.wpdz-cats__label { width: 100%; padding-bottom: 2px; }
	.wpdz-cats a { min-height: 40px; background: var(--wpdz-field); }
	.wpdz-aside { position: static; }
	.wpdz-hero__box { padding: 44px 20px; }
	.wpdz-header__inner { justify-content: space-between; gap: 12px; }
	.wpdz-search { order: 3; flex-basis: 100%; }
	.wpdz-header__actions .wpdz-btn span { display: none; }
	.wpdz-header__actions .wpdz-btn { width: 44px; padding: 0; }
}
