/* dealsfortune-child :: main.css — GLOBAL (loaded site-wide). Reads tokens.css variables.
   Phase 4E: refined header (utility bar, mega menu, live search, account/cart) + footer.
   Phase 7: fonts moved out of this render-blocking @import → preconnect + async load in inc/performance.php. */

*{box-sizing:border-box}
.df-body{margin:0;background:var(--df-bg);color:var(--df-text);font-family:var(--df-font-body);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}
.df-wrap{max-width:1140px;margin:0 auto;padding:0 40px}

.df-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:var(--df-font-head);font-weight:700;font-size:15px;padding:13px 22px;border-radius:var(--df-r-btn);text-decoration:none;cursor:pointer;border:1px solid transparent;transition:transform var(--df-dur) var(--df-ease),background var(--df-dur),border-color var(--df-dur)}
.df-btn--primary{background:var(--df-brand);color:#04130C}
.df-btn--primary:hover{background:#19d07e;transform:translateY(-1px)}
.df-btn--ghost{background:transparent;color:var(--df-text);border-color:var(--df-border)}
.df-btn--ghost:hover{border-color:var(--df-brand);color:var(--df-brand)}
.df-btn--sm{padding:10px 18px;font-size:14px}
.df-chk{color:var(--df-brand);flex:none}

/* skip link (a11y) */
.df-skip{position:absolute;left:-999px;top:0;z-index:200;background:var(--df-brand);color:#04130c;
  font-weight:700;padding:10px 16px;border-radius:0 0 8px 0}
.df-skip:focus{left:0}

/* ============================================================ ANNOUNCEMENT BANNER */
/* Very top of every page, above the utility bar. Dismissible (localStorage); stays visible on mobile. */
.dfx-anno{background:var(--df-brand);color:#06130D}
.dfx-anno__in{position:relative;max-width:1140px;margin:0 auto;padding:8px 44px;display:flex;align-items:center;justify-content:center;min-height:18px}
.dfx-anno__msg{margin:0;text-align:center;font-size:13.5px;font-weight:600;line-height:1.35}
.dfx-anno__msg a{color:#06130D;font-weight:800;text-decoration:underline;text-underline-offset:2px}
.dfx-anno__msg a:hover{color:#000}
.dfx-anno__x{position:absolute;right:10px;top:50%;transform:translateY(-50%);display:flex;padding:5px;border:0;border-radius:7px;background:none;color:#06130D;cursor:pointer;opacity:.78;transition:opacity .15s,background .15s}
.dfx-anno__x:hover{opacity:1;background:rgba(0,0,0,.1)}
.dfx-anno__x svg{width:15px;height:15px}

/* ============================================================ UTILITY BAR */
.dfx-util{background:#070A09;border-bottom:1px solid var(--df-border);font-size:12.5px;color:var(--df-text-muted)}
.dfx-util__in{max-width:1140px;margin:0 auto;padding:7px 40px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.dfx-util__msg{margin:0;display:flex;align-items:center;gap:8px}
.dfx-util__msg svg{width:14px;height:14px;color:var(--df-brand)}
.dfx-util__links{display:flex;align-items:center;gap:20px}
.dfx-util__links a{color:var(--df-text-muted);text-decoration:none;display:inline-flex;align-items:center;gap:6px}
.dfx-util__links a:hover{color:var(--df-text)}
.dfx-util__links svg{width:14px;height:14px}
.dfx-util__links .wa{color:#3FD17A}

/* ============================================================ HEADER */
.dfx-header{position:sticky;top:0;z-index:90;background:rgba(10,14,12,.72);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid var(--df-border);transition:background .22s var(--df-ease),box-shadow .22s var(--df-ease)}
.dfx-header.is-scrolled{background:rgba(8,11,10,.92);box-shadow:0 8px 30px rgba(0,0,0,.38)}
.dfx-header__in{max-width:1140px;margin:0 auto;padding:14px 40px;display:flex;align-items:center;gap:22px;
  transition:padding .22s var(--df-ease)}
.dfx-header.is-scrolled .dfx-header__in{padding:8px 40px}

.dfx-logo{display:flex;align-items:center;gap:11px;font-family:var(--df-font-head);font-weight:800;
  font-size:21px;letter-spacing:-.5px;color:var(--df-text);text-decoration:none;flex:none;transition:font-size .22s}
.dfx-logo .m{width:32px;height:32px;border-radius:9px;background:var(--df-brand);display:flex;
  align-items:center;justify-content:center;flex:none;transition:width .22s,height .22s}
.dfx-header.is-scrolled .dfx-logo{font-size:19px}
.dfx-header.is-scrolled .dfx-logo .m{width:28px;height:28px}

/* ---- primary nav + mega menu ---- */
.dfx-nav{position:relative;display:flex;align-items:center;gap:6px;font-size:14.5px}
.dfx-nav__item{display:flex;align-items:center}
.dfx-nav a,.dfx-nav__trigger{color:var(--df-text-muted);text-decoration:none;background:none;border:0;
  font:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:5px;padding:8px 10px;border-radius:8px}
.dfx-nav a:hover,.dfx-nav__item:hover .dfx-nav__trigger,.dfx-nav__item:focus-within .dfx-nav__trigger{color:var(--df-text)}
.dfx-nav__trigger svg{width:14px;height:14px;transition:transform .18s}
.dfx-nav__item:hover .dfx-nav__trigger svg,.dfx-nav__item:focus-within .dfx-nav__trigger svg{transform:rotate(180deg)}

.dfx-mega{position:absolute;top:calc(100% + 14px);left:0;width:700px;max-width:calc(100vw - 80px);
  background:var(--df-surface);border:1px solid var(--df-border);border-radius:16px;box-shadow:var(--df-shadow);
  padding:22px;display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:22px;z-index:80;
  opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .16s,transform .16s,visibility .16s}
.dfx-mega::before{content:"";position:absolute;top:-14px;left:0;right:0;height:14px}
.dfx-nav__item.has-mega:hover .dfx-mega,.dfx-nav__item.has-mega:focus-within .dfx-mega,.dfx-mega.is-open{opacity:1;visibility:visible;transform:none}
.dfx-mega__title{font-family:var(--df-font-head);font-weight:700;font-size:11px;letter-spacing:.07em;
  text-transform:uppercase;color:var(--df-text-dim);margin:0 0 12px}
.dfx-mega__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.dfx-mega__list a{display:flex;align-items:center;gap:9px;padding:7px 9px;border-radius:8px;font-size:14px;color:var(--df-text)}
.dfx-mega__list a:hover{background:var(--df-card);color:var(--df-text)}
.dfx-mega__dot{width:8px;height:8px;border-radius:50%;flex:none}
.dfx-mega__list .n{margin-left:auto;font-size:11.5px;color:var(--df-text-dim);font-variant-numeric:tabular-nums}
.dfx-mega__feat{display:block;text-decoration:none;color:var(--df-text);background:var(--df-card);
  border:1px solid var(--df-border);border-radius:12px;overflow:hidden}
.dfx-mega__feat .img{aspect-ratio:16/10;background:linear-gradient(140deg,#13211b,#0c1410);display:flex;
  align-items:center;justify-content:center;overflow:hidden}
.dfx-mega__feat .img img{width:100%;height:100%;object-fit:cover}
.dfx-mega__feat .ini{font-family:var(--df-font-head);font-weight:800;font-size:26px;color:rgba(255,255,255,.85)}
.dfx-mega__feat .b{padding:11px 12px}
.dfx-mega__feat .k{font-size:10.5px;color:var(--df-brand);font-weight:600;text-transform:uppercase;letter-spacing:.04em}
.dfx-mega__feat .t{font-family:var(--df-font-head);font-weight:700;font-size:13.5px;margin:3px 0 0;line-height:1.3;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dfx-mega__trend{display:flex;flex-direction:column;gap:10px}
.dfx-mega__trend a{display:flex;gap:10px;align-items:center;text-decoration:none;color:var(--df-text)}
.dfx-mega__trend .th{width:42px;height:42px;border-radius:8px;flex:none;background:linear-gradient(140deg,#1a2a22,#0c1410);
  overflow:hidden;display:flex;align-items:center;justify-content:center;font-family:var(--df-font-head);font-weight:800;font-size:13px;color:#cfe}
.dfx-mega__trend .th img{width:100%;height:100%;object-fit:cover}
.dfx-mega__trend .t{font-size:13px;line-height:1.32;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dfx-mega__trend a:hover .t{color:var(--df-brand)}

/* ---- search (center) + live results ---- */
.dfx-search{position:relative;flex:1;max-width:380px;margin:0 auto}
.dfx-search__field{display:flex;align-items:center;gap:9px;background:var(--df-card);border:1px solid var(--df-border);
  border-radius:10px;padding:0 12px;transition:border-color var(--df-dur)}
.dfx-search:focus-within .dfx-search__field{border-color:var(--df-brand)}
.dfx-search__field svg{width:18px;height:18px;color:var(--df-text-dim);flex:none}
.dfx-search input{flex:1;background:none;border:0;outline:none;color:var(--df-text);font:inherit;font-size:14px;padding:10px 0}
.dfx-search input::placeholder{color:var(--df-text-dim)}
.dfx-search__results{position:absolute;top:calc(100% + 8px);left:0;right:0;background:var(--df-surface);
  border:1px solid var(--df-border);border-radius:12px;box-shadow:var(--df-shadow);padding:7px;z-index:80;display:none}
.dfx-search.is-active .dfx-search__results{display:block}
.dfx-sr{display:flex;align-items:center;gap:11px;padding:8px;border-radius:9px;text-decoration:none;color:var(--df-text)}
.dfx-sr:hover{background:var(--df-card)}
.dfx-sr .th{width:42px;height:42px;border-radius:8px;flex:none;overflow:hidden;background:linear-gradient(140deg,#1a2a22,#0c1410);display:flex;align-items:center;justify-content:center;font-family:var(--df-font-head);font-weight:800;font-size:13px;color:#cfe}
.dfx-sr .th img{width:100%;height:100%;object-fit:cover}
.dfx-sr .t{font-size:13.5px;line-height:1.3;flex:1;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.dfx-sr .p{font-family:var(--df-font-head);font-weight:800;font-size:13.5px;color:var(--df-brand);flex:none}
.dfx-search__all{display:block;text-align:center;font-size:13px;font-weight:600;color:var(--df-text-muted);
  text-decoration:none;padding:9px;margin-top:3px;border-top:1px solid var(--df-border)}
.dfx-search__all:hover{color:var(--df-brand)}
.dfx-search__empty{padding:16px;text-align:center;color:var(--df-text-dim);font-size:13.5px}

/* ---- actions: account, cart, mobile toggles ---- */
.dfx-actions{margin-left:auto;display:flex;align-items:center;gap:6px;color:var(--df-text-muted)}
.dfx-iconbtn{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;
  color:var(--df-text-muted);background:none;border:0;cursor:pointer;text-decoration:none;position:relative}
.dfx-iconbtn:hover{color:var(--df-text);background:var(--df-card)}
.dfx-iconbtn svg{width:21px;height:21px}

.dfx-acct{position:relative}
.dfx-drop{position:absolute;top:calc(100% + 8px);right:0;width:210px;background:var(--df-surface);
  border:1px solid var(--df-border);border-radius:12px;box-shadow:var(--df-shadow);padding:7px;z-index:80;
  opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .16s,transform .16s,visibility .16s}
.dfx-acct:hover .dfx-drop,.dfx-acct:focus-within .dfx-drop,.dfx-drop.is-open{opacity:1;visibility:visible;transform:none}
.dfx-drop__head{padding:9px 11px 11px;border-bottom:1px solid var(--df-border);margin-bottom:5px}
.dfx-drop__head b{display:block;font-family:var(--df-font-head);font-size:14px}
.dfx-drop__head span{font-size:12px;color:var(--df-text-dim)}
.dfx-drop a{display:flex;align-items:center;gap:10px;padding:9px 11px;border-radius:8px;font-size:13.5px;color:var(--df-text);text-decoration:none}
.dfx-drop a:hover{background:var(--df-card)}
.dfx-drop a svg{width:16px;height:16px;color:var(--df-text-dim)}
.dfx-drop .sep{height:1px;background:var(--df-border);margin:5px 0}
.dfx-drop .row{display:flex;gap:8px;padding:6px}
.dfx-drop .row .df-btn{flex:1;padding:9px}

.dfx-cart__n{position:absolute;top:2px;right:2px;min-width:17px;height:17px;background:var(--df-brand);
  color:#04130c;border-radius:999px;font-family:var(--df-font-head);font-size:10.5px;font-weight:800;
  display:flex;align-items:center;justify-content:center;padding:0 4px;border:2px solid var(--df-bg)}
.dfx-cart__n:empty,.dfx-cart__n.is-zero{display:none}

.dfx-search-toggle,.dfx-burger{display:none}

/* ---- mobile search overlay ---- */
.dfx-msearch{position:fixed;top:0;left:0;right:0;z-index:120;background:var(--df-surface);
  border-bottom:1px solid var(--df-border);padding:12px 16px;display:flex;gap:10px;align-items:center;
  transform:translateY(-100%);transition:transform .22s var(--df-ease)}
.dfx-msearch.is-open{transform:none}
.dfx-msearch form{flex:1;display:flex;align-items:center;gap:9px;background:var(--df-card);border:1px solid var(--df-border);border-radius:10px;padding:0 12px}
.dfx-msearch input{flex:1;background:none;border:0;outline:none;color:var(--df-text);font:inherit;padding:12px 0}
.dfx-msearch svg{width:19px;height:19px;color:var(--df-text-dim)}
.dfx-msearch__close{background:none;border:0;color:var(--df-text-muted);font:inherit;cursor:pointer;padding:6px}

/* ---- mobile menu overlay ---- */
.dfx-mobile{position:fixed;inset:0;z-index:130;background:var(--df-bg);overflow-y:auto;
  transform:translateX(-100%);transition:transform .25s var(--df-ease);display:flex;flex-direction:column}
.dfx-mobile.is-open{transform:none}
.dfx-mobile__top{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--df-border)}
.dfx-mobile__close{background:none;border:0;color:var(--df-text);cursor:pointer;padding:6px;display:flex}
.dfx-mobile__close svg{width:26px;height:26px}
.dfx-mobile__body{padding:10px 16px 26px}
.dfx-mobile details{border-bottom:1px solid var(--df-border)}
.dfx-mobile summary{list-style:none;display:flex;align-items:center;justify-content:space-between;
  padding:15px 6px;font-family:var(--df-font-head);font-weight:700;font-size:16px;cursor:pointer}
.dfx-mobile summary::-webkit-details-marker{display:none}
.dfx-mobile summary svg{width:18px;height:18px;color:var(--df-text-dim);transition:transform .18s}
.dfx-mobile details[open] summary svg{transform:rotate(180deg)}
.dfx-mobile__sub{list-style:none;margin:0;padding:0 6px 12px;display:flex;flex-direction:column;gap:1px}
.dfx-mobile__sub a{display:flex;align-items:center;gap:9px;padding:9px 8px;border-radius:8px;color:var(--df-text-muted);text-decoration:none;font-size:14.5px}
.dfx-mobile__sub a:hover{background:var(--df-card);color:var(--df-text)}
.dfx-mobile__link{display:block;padding:15px 6px;font-family:var(--df-font-head);font-weight:700;font-size:16px;
  color:var(--df-text);text-decoration:none;border-bottom:1px solid var(--df-border)}
.dfx-mobile__foot{margin-top:auto;padding:18px 22px;border-top:1px solid var(--df-border);display:flex;flex-direction:column;gap:12px}
.dfx-mobile__foot a{color:var(--df-text-muted);text-decoration:none;display:flex;align-items:center;gap:9px;font-size:14px}
.dfx-mobile__foot svg{width:18px;height:18px;flex:none}
.dfx-mobile__foot .wa{color:#3FD17A}
.df-menu-open{overflow:hidden}

/* ============================================================ FOOTER */
.dfx-footer{background:var(--df-bg);border-top:1px solid var(--df-border);padding:56px 0 26px}
.dfx-footer__grid{display:grid;grid-template-columns:1.7fr 1fr 1fr 1.4fr;gap:40px;max-width:1140px;margin:0 auto;padding:0 40px}
.dfx-footer h4{font-family:var(--df-font-head);font-weight:700;font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--df-text-dim);margin:0 0 16px}
.dfx-footer ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:11px}
.dfx-footer a{color:var(--df-text-muted);text-decoration:none;font-size:14px}
.dfx-footer a:hover{color:var(--df-text)}
.dfx-fbrand p{color:var(--df-text-muted);font-size:14px;margin:14px 0 18px;max-width:34ch}
.dfx-soc{display:flex;gap:10px}
.dfx-soc a{width:34px;height:34px;border-radius:9px;border:1px solid var(--df-border);display:flex;align-items:center;justify-content:center;color:var(--df-text-muted)}
.dfx-soc a:hover{color:var(--df-text);border-color:var(--df-brand)}

/* newsletter (footer col 4) */
.dfx-news p{font-size:13.5px;color:var(--df-text-muted);margin:0 0 12px;line-height:1.5}
.dfx-news__form{display:flex;gap:8px}
.dfx-news__form input{flex:1;min-width:0;background:var(--df-card);border:1px solid var(--df-border);border-radius:8px;color:var(--df-text);font:inherit;font-size:13.5px;padding:10px 12px}
.dfx-news__form input:focus{outline:none;border-color:var(--df-brand)}
.dfx-news__wa{display:inline-flex;align-items:center;gap:8px;margin-top:14px;font-size:13.5px;font-weight:600;color:#3FD17A;text-decoration:none}
.dfx-news__wa svg{width:17px;height:17px}

/* trust badges row */
.dfx-trust{max-width:1140px;margin:40px auto 0;padding:24px 40px 0;border-top:1px solid var(--df-border);
  display:flex;flex-wrap:wrap;gap:12px 26px;align-items:center}
.dfx-tb{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;color:var(--df-text-muted)}
.dfx-tb svg{width:16px;height:16px;color:var(--df-brand);flex:none}

/* bottom bar */
.dfx-fbar{max-width:1140px;margin:22px auto 0;padding:20px 40px 0;border-top:1px solid var(--df-border);
  display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:13px;color:var(--df-text-dim);flex-wrap:wrap}
.dfx-fbar__links{display:flex;gap:18px;flex-wrap:wrap}
.dfx-fbar__links a{color:var(--df-text-dim);text-decoration:none}
.dfx-fbar__links a:hover{color:var(--df-text-muted)}
.dfx-pay{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dfx-pay b{font-family:var(--df-font-head);font-weight:700;font-size:11px;color:#cdd6d1;background:var(--df-card);border:1px solid var(--df-border);border-radius:6px;padding:5px 9px}

/* ============================================================ RESPONSIVE */
@media (max-width:1024px){
  .dfx-search{max-width:280px}
  .dfx-nav{gap:0}
}
@media (max-width:860px){
  .dfx-util{display:none}
  .dfx-nav,.dfx-search,.dfx-acct{display:none}
  .dfx-search-toggle,.dfx-burger{display:flex}
  .dfx-actions{gap:2px}
  .dfx-footer__grid{grid-template-columns:1fr 1fr;gap:28px 24px}
  .dfx-news{grid-column:1 / -1}
  .dfx-trust{gap:10px 18px}
}
@media (max-width:520px){
  .dfx-header__in{padding:11px 18px}
  .dfx-header.is-scrolled .dfx-header__in{padding:8px 18px}
  .dfx-footer{padding:44px 0 24px}
  .dfx-footer__grid{grid-template-columns:1fr;gap:26px;padding:0 20px}
  .dfx-trust{padding:22px 20px 0;margin-top:30px}
  .dfx-fbar{padding:18px 20px 0;flex-direction:column;align-items:flex-start}
}

/* ============================================================ 404 (4F-C) */
.df-404{padding:90px 0 110px;text-align:center}
.df-404__in{max-width:560px;margin:0 auto;padding:0 24px}
.df-404__code{display:inline-block;font-family:var(--df-font-head);font-weight:800;font-size:96px;line-height:1;
  background:linear-gradient(120deg,var(--df-brand),#0a7a52);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.df-404 h1{font-family:var(--df-font-head);font-weight:800;font-size:30px;margin:12px 0 10px}
.df-404 p{color:var(--df-text-muted);margin:0 auto 26px;max-width:46ch}
.df-404__search{display:flex;gap:10px;max-width:440px;margin:0 auto 22px}
.df-404__search input{flex:1;min-width:0;background:var(--df-card);border:1px solid var(--df-border);border-radius:8px;color:var(--df-text);font:inherit;padding:12px 14px}
.df-404__search input:focus{outline:none;border-color:var(--df-brand)}
.df-404__links{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
@media (max-width:520px){.df-404__code{font-size:72px}.df-404__search{flex-direction:column}}

/* ============================================================ print (4F-C) */
@media print{
  .dfx-util,.dfx-header,.dfx-footer,.dfx-mobile,.dfx-msearch,.pdp-sticky,.df-skip,
  .pdp-actions,.pdp-buynow,.pdp-wa,.pdp-share,.pdp-related,.pdp-upsell,.pdp-tabnav,.pdp-thumbs{display:none !important}
  .pdp-panel{display:block !important;page-break-inside:avoid}
  body,.df-body{background:#fff !important;color:#000 !important}
  .df-pdp-wrap{padding:0 !important}
  a{color:#000 !important;text-decoration:underline}
  .pdp-title,.pdp-price,.pdp-rte,.pdp-trust,.pdp-meta,.pdp-excerpt,.pdp-rte p,.pdp-rte li{color:#000 !important}
  .pdp-price .amount,.pdp-price ins .amount{color:#000 !important}
  .pdp-stage{border:1px solid #ccc}
}

/* Footer "Become an affiliate" CTA band (Phase 9B) */
.dfx-aff-cta{display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap;
  max-width:1200px;margin:0 auto 10px;padding:15px 22px;border-radius:14px;text-decoration:none;
  background:linear-gradient(100deg,rgba(0,194,111,.14),rgba(0,194,111,.04));
  border:1px solid rgba(0,194,111,.32);transition:border-color .2s,transform .2s}
.dfx-aff-cta:hover{border-color:var(--df-brand);transform:translateY(-1px)}
.dfx-aff-cta__txt{color:var(--df-text);font-size:15px}
.dfx-aff-cta__txt strong{color:var(--df-brand)}
.dfx-aff-cta__btn{white-space:nowrap;font-weight:700;font-size:14px;color:#04130c;
  background:var(--df-brand);padding:9px 18px;border-radius:9px}
@media(max-width:600px){.dfx-aff-cta{flex-direction:column;gap:10px;text-align:center;margin:0 14px 10px}}

/* Keep Select2's hidden <select> (a11y) from taking layout width — fixes a ~31px
   horizontal overflow on the checkout State dropdown at mobile widths (Phase 10). */
.select2-hidden-accessible{position:absolute!important;width:1px!important;height:1px!important;
  padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;
  white-space:nowrap!important;border:0!important}
