/* ============================================================
   Site-wide polish: typography + shared header motion.
   Loaded after the legacy stylesheets on every page.
   Font: Plus Jakarta Sans (Google Fonts) with a system fallback.
   Icon fonts (FontAwesome, Themify, Material Icons) are NOT touched:
   their rules target ::before / .fa* classes with their own font-family.
   ============================================================ */
:root {
    --jd-font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--jd-font);
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    line-height: 1.6;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
p, li, label, td, th, blockquote, small,
.nav-link, .navbar-brand, .btn, .dropdown-item,
input, button, select, textarea,
.swal2-popup, .swal2-title, .swal2-html-container, .swal2-styled {
    font-family: var(--jd-font);
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700; letter-spacing: -0.01em; line-height: 1.25;
}
.nav-link { font-weight: 600; }
.btn, button { font-weight: 600; }
/* keep icon glyph elements on their icon fonts even if a parent rule matches */
.fa, .fas, .far, .fab, [class^="ti-"], [class*=" ti-"], .material-icons { font-family: inherit; }
.fa { font-family: FontAwesome !important; }
[class^="ti-"], [class*=" ti-"] { font-family: 'themify' !important; }
.material-icons { font-family: 'Material Icons' !important; }

/* ---- Shared header motion (mirrors the home page behaviour) ----
   header-motion.js toggles:
   .jd-at-top – page top: header sits flat, no shadow
   .jd-drop   – (re)triggered when the user scrolls past the fold and on first
                paint, so the header drops in with a shadow like on the home page.
   Self-contained: does not depend on animate.css / header.css being loaded.   */
@-webkit-keyframes jdHeaderDrop { 0% { opacity: 0; -webkit-transform: translateY(-100%); } 100% { opacity: 1; -webkit-transform: translateY(0); } }
@keyframes jdHeaderDrop { 0% { opacity: 0; transform: translateY(-100%); } 100% { opacity: 1; transform: translateY(0); } }
.header_area.jd-drop { -webkit-animation: jdHeaderDrop .6s cubic-bezier(.22,.8,.3,1) both; animation: jdHeaderDrop .6s cubic-bezier(.22,.8,.3,1) both; }
.header_area.sticky { transition: box-shadow .3s ease; }
.header_area.sticky.jd-at-top { box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
    .header_area.jd-drop { animation: none !important; }
}

/* ---- Opt-in: "big header that shrinks on scroll" (home-page behaviour) ----
   Enabled per page with <body class="jd-shrink-header">. At the top the header is
   taller with the large "Just Deals" wordmark (72px, as on the home page); once the
   user scrolls past ~48px it eases down to the compact 70-80px bar (wordmark 50px).
   A top spacer keeps page content from sitting under the taller header.            */
/* Timing copied from the home page (measured): the bar itself and the navbar SNAP
   (0s) while the wordmark and menu links ease over 0.5s; shadow fades in over 0.3s.
   No slide-in animation (the home page's slideInDown keyframes never actually run). */
body.jd-shrink-header .header_area.sticky { animation: none !important; transition: box-shadow .3s ease; }
body.jd-shrink-header .header_area.sticky .navbar { transition: none; }
body.jd-shrink-header .header_area.sticky .menu_area .navbar-brand,
body.jd-shrink-header .header_area.sticky .menu_area #nav .nav-link { transition: all .5s ease; }
/* scrolled bar is 80px like the home page (some pages' legacy CSS says 70px) */
@media (min-width: 769px) { body.jd-shrink-header .header_area.sticky:not(.jd-at-top) { height: 80px; } }
body.jd-shrink-header .header_area.sticky.jd-at-top { height: 112px; }
body.jd-shrink-header .header_area.sticky.jd-at-top .navbar { padding: 8px 16px; }
body.jd-shrink-header .header_area.sticky.jd-at-top .menu_area .navbar-brand { font-size: 72px; line-height: 72px; }
body.jd-shrink-header .header_area.sticky.jd-at-top .menu_area #nav .nav-link { padding: 35px 15px; }
/* reserve the extra 32px so content doesn't jump or hide under the taller header */
body.jd-shrink-header .global-wrap { padding-top: 32px; }
@media (max-width: 768px) {
    /* phones keep the compact header (as on the home page) */
    body.jd-shrink-header .header_area.sticky.jd-at-top { height: auto; }
    body.jd-shrink-header .header_area.sticky.jd-at-top .navbar { padding: 0; }
    body.jd-shrink-header .header_area.sticky.jd-at-top .menu_area .navbar-brand { font-size: 50px; line-height: 50px; }
    body.jd-shrink-header .header_area.sticky.jd-at-top .menu_area #nav .nav-link { padding: 23px 15px; }
    body.jd-shrink-header .global-wrap { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
    body.jd-shrink-header .header_area.sticky, body.jd-shrink-header .header_area.sticky * { transition: none !important; }
}
