/* Derrick X theme – base, header, footer, generic pages. Tokens match the widgets plugin. */
:root {
  --dx-white: #ffffff; --dx-grey: #f1f1f1; --dx-black: #131313; --dx-muted: rgba(19,19,19,.55);
  --dx-display: 'Anton', 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --dx-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --dx-pad: clamp(20px, 4.5vw, 64px);
  --dx-header-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; max-width: 100%; overflow-x: clip; }
body.dx-site { margin: 0; font-family: var(--dx-body); font-size: 16px; line-height: 1.6; color: var(--dx-black); background: var(--dx-white); max-width: 100%; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, video, svg { max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--dx-display); font-weight: 400; letter-spacing: .04em; line-height: 1.1; margin: 0 0 .5em; }
button { font-family: inherit; }
.dx-skip { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: var(--dx-black); color: #fff; padding: 10px 16px; }
.dx-skip:focus { left: 8px; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

/* ---------- header ---------- */
.dx-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--dx-header-h); display: flex; align-items: center; gap: 16px; padding: 0 clamp(16px, 3.5vw, 48px); background: rgba(255,255,255,.97); color: var(--dx-black); box-shadow: 0 1px 0 rgba(0,0,0,.08); backdrop-filter: blur(8px); transition: background .4s ease, box-shadow .4s ease, color .4s ease; }
body.admin-bar .dx-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .dx-header { top: 46px; } }
body:not(.dx-hero-first) .dx-main { padding-top: var(--dx-header-h); }
body.dx-hero-first .dx-header:not(.is-scrolled):not(.is-open) { background: transparent; box-shadow: none; backdrop-filter: none; color: #fff; }

.dx-nav { flex: 1 1 0; min-width: 0; }
.dx-menu, .dx-menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(20px, 2.6vw, 36px); }
.dx-menu a { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; transition: opacity .2s; white-space: nowrap; }
.dx-menu a:hover { opacity: .6; }
.dx-menu .current-menu-item > a { text-decoration: underline; text-underline-offset: 6px; }

.dx-logo { flex: 0 0 auto; display: block; line-height: 0; }
.dx-logo img { height: 48px; width: auto; max-width: 56vw; }
.dx-logo__light { display: none; }
body.dx-hero-first .dx-header:not(.is-scrolled):not(.is-open) .dx-logo__light { display: block; }
body.dx-hero-first .dx-header:not(.is-scrolled):not(.is-open) .dx-logo__dark { display: none; }

.dx-icons { flex: 1 1 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.dx-icon-btn { position: relative; background: none; border: 0; color: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; text-decoration: none; transition: opacity .2s; }
.dx-icon-btn:hover { opacity: .6; }
.dx-cart__n { position: absolute; top: 4px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--dx-black); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; }
body.dx-hero-first .dx-header:not(.is-scrolled):not(.is-open) .dx-cart__n { background: #fff; color: var(--dx-black); }

.dx-burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 0; cursor: pointer; color: inherit; flex-direction: column; justify-content: center; align-items: center; gap: 5px; margin-left: -10px; }
.dx-burger span { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .3s; }

.dx-search { position: fixed; top: var(--dx-header-h); left: 0; right: 0; z-index: 999; background: #fff; padding: 18px var(--dx-pad); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
body.admin-bar .dx-search { top: calc(var(--dx-header-h) + 32px); }
.dx-search[hidden] { display: none; }
.dx-search form { display: flex; gap: 10px; max-width: 760px; margin: 0 auto; align-items: center; }
.dx-search input[type=search] { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 14px 16px; border: 1px solid rgba(19,19,19,.25); border-radius: 2px; }
.dx-search button[type=submit] { background: var(--dx-black); color: #fff; border: 0; padding: 0 22px; height: 48px; font-size: 12px; letter-spacing: .15em; font-weight: 600; cursor: pointer; }
.dx-search__close { background: none; border: 0; font-size: 32px; line-height: 1; cursor: pointer; width: 44px; height: 44px; }

.dx-drawer { position: fixed; inset: 0; z-index: 1100; visibility: hidden; }
.dx-drawer.is-open { visibility: visible; }
.dx-drawer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .3s; }
.dx-drawer.is-open .dx-drawer__backdrop { opacity: 1; }
.dx-drawer__panel { position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); background: #fff; transform: translateX(-100%); transition: transform .3s ease; padding: 72px 28px 32px; overflow-y: auto; }
.dx-drawer.is-open .dx-drawer__panel { transform: none; }
.dx-drawer__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; background: none; border: 0; font-size: 34px; line-height: 1; cursor: pointer; }
.dx-drawer__menu { list-style: none; margin: 0 0 24px; padding: 0; }
.dx-drawer__menu a, .dx-drawer__extra a { display: block; padding: 14px 0; font-family: var(--dx-display); font-size: 26px; letter-spacing: .06em; text-decoration: none; border-bottom: 1px solid rgba(19,19,19,.1); text-transform: uppercase; }
.dx-drawer__extra a { font-family: var(--dx-body); font-size: 13px; font-weight: 500; letter-spacing: .15em; border: 0; padding: 12px 0; color: rgba(19,19,19,.7); }
body.dx-drawer-open { overflow: hidden; }

@media (max-width: 960px) {
  .dx-nav { display: none; }
  .dx-burger { display: inline-flex; }
  .dx-burger, .dx-icons { flex: 0 0 auto; }
  .dx-header { justify-content: space-between; }
  .dx-logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .dx-logo img { height: 40px; max-width: 46vw; }
  .dx-icons { gap: 0; }
  .dx-account { display: none; }
  :root { --dx-header-h: 64px; }
}

/* ---------- generic pages ---------- */
.dx-page { max-width: 980px; margin: 0 auto; padding: 56px 20px 80px; }
.dx-page--woo { max-width: 1200px; }
.dx-page__head { text-align: center; margin-bottom: 40px; }
.dx-page__title { font-size: clamp(40px, 6vw, 68px); letter-spacing: .04em; margin: 0; text-transform: uppercase; }
.dx-prose { font-size: 16px; line-height: 1.8; color: rgba(19,19,19,.8); }
.dx-prose h2, .dx-prose h3 { color: var(--dx-black); margin: 1.6em 0 .5em; text-transform: uppercase; }
.dx-prose p, .dx-prose ul, .dx-prose ol { margin: 0 0 1em; }
.dx-prose a { text-decoration: underline; text-underline-offset: 3px; }
.dx-404 { text-align: center; }
.dx-404 .dx-btn { margin-top: 20px; }
.dx-postlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.dx-postcard h2 { font-size: 26px; margin: 12px 0 6px; }
.dx-postcard img { border-radius: 4px; width: 100%; }
.dx-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: rgba(19,19,19,.45); margin: 0 0 12px; }
.dx-title { font-family: var(--dx-display); font-weight: 400; font-size: clamp(40px, 6vw, 72px); letter-spacing: .04em; line-height: 1; margin: 0; text-transform: uppercase; }
.dx-heading { text-align: center; margin: 0 auto 48px; }
.dx-empty { text-align: center; color: var(--dx-muted); padding: 40px 0; }

/* ---------- footer ---------- */
.dx-footer { background: #111; color: #fff; padding: 56px var(--dx-pad) 22px; font-family: var(--dx-body); }
.dx-footer__container { max-width: 1280px; margin: 0 auto; }
.dx-footer__top { display: grid; grid-template-columns: minmax(240px, 1.1fr) minmax(0, 2.4fr); gap: clamp(32px, 5vw, 80px); padding-bottom: 40px; }
.dx-footer__logo { display: block; width: 100%; max-width: 270px; height: auto; margin: 0 0 16px -6px; }
.dx-footer__about { margin: 0 0 20px; max-width: 300px; font-size: 13px; line-height: 1.7; color: #a0a0a0; }
.dx-footer__links { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 32px clamp(20px, 3vw, 48px); align-content: start; }
.dx-footer__col h4 { font-family: var(--dx-body); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 18px; color: #fff; }
.dx-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.dx-footer__list a, .dx-footer__list span { color: #a0a0a0; font-size: 13.5px; line-height: 1.5; text-decoration: none; transition: color .25s; overflow-wrap: anywhere; }
.dx-footer__list a:hover { color: #fff; }
.dx-footer__socials { display: flex; flex-wrap: wrap; gap: 10px; }
.dx-footer__socials a { width: 38px; height: 38px; background: #fff; color: #111; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 16px; transition: transform .25s, background .25s; }
.dx-footer__socials a:hover { transform: translateY(-3px); background: #e0e0e0; }
.dx-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; }
.dx-footer__bottom p { margin: 0; font-size: 12px; color: #808080; }
@media (max-width: 900px) {
  .dx-footer { padding: 40px 20px 20px; }
  .dx-footer__top { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
  .dx-footer__logo { max-width: 210px; margin-bottom: 12px; }
  .dx-footer__about { max-width: none; margin-bottom: 16px; }
  .dx-footer__links { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .dx-footer__col--contact { grid-column: 1 / -1; }
  .dx-footer__bottom { flex-direction: column; text-align: center; padding-top: 16px; }
}

/* ---------- floating WhatsApp ---------- */
.dx-wa { position: fixed; right: 16px; bottom: 16px; z-index: 900; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.28); transition: transform .2s; }
.dx-wa:hover { transform: scale(1.06); }
body.single-product .dx-wa { bottom: 84px; }
@media (min-width: 768px) { body.single-product .dx-wa { bottom: 16px; } }

/* ---------- shop ---------- */
.dx-shop { padding: 56px var(--dx-pad) 90px; }
.dx-shop__head { text-align: center; margin-bottom: 32px; }
.dx-shop__desc { max-width: 640px; margin: 16px auto 0; color: rgba(19,19,19,.65); font-size: 15px; }
.dx-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.dx-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 20px; border: 1px solid rgba(19,19,19,.2); font-size: 11px; font-weight: 600; letter-spacing: .15em; text-decoration: none; border-radius: 2px; transition: all .2s; }
.dx-chip:hover, .dx-chip.is-on { background: var(--dx-black); color: #fff; border-color: var(--dx-black); }
.dx-shop__bar { max-width: 1400px; margin: 0 auto 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--dx-muted); }
.dx-shop__bar .woocommerce-result-count, .dx-shop__bar .woocommerce-ordering { margin: 0; float: none; }
.dx-shop__bar select { font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid rgba(19,19,19,.2); background: #fff; max-width: 100%; }
.dx-shop .woocommerce-pagination { text-align: center; margin-top: 48px; }
.dx-shop .woocommerce-pagination ul { display: inline-flex; gap: 6px; border: 0; padding: 0; margin: 0; list-style: none; }
.dx-shop .woocommerce-pagination li { border: 0; float: none; }
.dx-shop .woocommerce-pagination a, .dx-shop .woocommerce-pagination span { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid rgba(19,19,19,.2); padding: 0 12px; text-decoration: none; font-size: 14px; background: #fff; color: var(--dx-black); }
.dx-shop .woocommerce-pagination .current { background: var(--dx-black); color: #fff; border-color: var(--dx-black); }
@media (max-width: 767px) { .dx-shop { padding: 36px 16px 64px; } .dx-chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin-inline: -16px; padding: 0 16px 6px; scrollbar-width: none; } .dx-chips::-webkit-scrollbar { display: none; } .dx-chip { flex: none; } }
