/* =========================================================
   Deer Fight Gear — Global responsive overrides
   Loaded last on all public + admin pages
   Breakpoints: 991 (tablet) · 767 (mobile) · 480 (small)
   ========================================================= */

/* ── Global tokens — mobile ─────────────────────────── */

@media (max-width: 991px) {
    :root {
        --page-hero-min-height: clamp(420px, 68vh, 580px);
        --page-hero-padding-top: calc(var(--site-header-height) + 48px);
        --page-hero-padding-bottom: 48px;
        --page-hero-padding-x: clamp(20px, 5vw, 40px);
    }

    body.has-editorial-header {
        --site-header-height: 56px;
    }
}

@media (max-width: 767px) {
    :root {
        --page-hero-min-height: clamp(360px, 62vh, 520px);
        --page-hero-padding-top: calc(var(--site-header-height) + 32px);
        --page-hero-padding-bottom: 40px;
        --page-hero-padding-x: 20px;
    }

    body.is-home-page {
        --site-header-height: 0px;
    }

    html {
        overflow-x: clip;
    }

    img,
    video,
    svg {
        max-width: 100%;
        height: auto;
    }

    table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ── Overflow / width safety ──────────────────────────── */

@media (max-width: 767px) {
    .site-header,
    .editorial-header,
    .editorial-header__inner,
    .header-detail-drawer {
        max-width: 100%;
    }

    .contact-hero__content,
    .contact-channels__grid,
    .contact-main__grid,
    .contact-banner__inner {
        width: 100% !important;
        max-width: 100% !important;
    }

    .catalog-toolbar,
    .blog-toolbar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .catalog-toolbar input,
    .catalog-toolbar select,
    .catalog-toolbar button,
    .blog-toolbar input,
    .blog-toolbar select,
    .blog-toolbar button {
        min-width: 0 !important;
        flex: 1 1 100%;
        width: 100%;
    }
}

/* ── Header & drawer ──────────────────────────────────── */

@media (max-width: 767px) {
    body.is-home-page {
        --mobile-announce-h: 34px;
        --mobile-header-h: 50px;
    }

    body.is-home-page .announcement-bar {
        z-index: 111;
        min-height: var(--mobile-announce-h);
        padding: 6px 12px;
        font-size: 8.5px;
        letter-spacing: 0.03em;
        line-height: 1.35;
    }

    body.is-home-page .announcement-bar p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    body.is-home-page .site-header--editorial {
        top: var(--mobile-announce-h);
        z-index: 110;
        background: rgba(0, 0, 0, 0.94);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(230, 0, 0, 0.5);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }

    body.is-home-page .site-header--editorial .editorial-header-row {
        display: grid;
        grid-template-columns: 38px 1fr 38px;
        align-items: center;
    }

    body.is-home-page .announcement-bar.is-hidden ~ .site-header--editorial,
    body.is-home-page .site-header--editorial.is-scrolled {
        top: 0;
    }

    .editorial-header-row {
        min-height: var(--mobile-header-h, 50px);
        padding: 6px 12px;
        gap: 10px;
    }

    .editorial-header-left {
        flex: 1 1 auto;
        min-width: 0;
        gap: 10px;
    }

    .editorial-header-left .site-logo__img--header {
        height: 32px !important;
        max-width: min(132px, 42vw);
        width: auto;
        object-fit: contain;
        filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.65));
    }

    .editorial-menu-toggle {
        flex-shrink: 0;
    }

    /* Override legacy .menu-toggle { position: fixed } in style.css — keeps logo visible */
    .site-header--editorial .editorial-header-row {
        display: grid;
        grid-template-columns: 38px 1fr 38px;
        align-items: center;
        width: 100%;
    }

    .site-header--editorial .editorial-header-left {
        display: contents;
    }

    .site-header--editorial .editorial-menu-toggle,
    .site-header--editorial .menu-toggle {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        z-index: 1;
        grid-column: 1;
        grid-row: 1;
        width: 38px;
        height: 38px;
        min-height: 38px !important;
        margin: 0;
        padding: 0;
        flex: 0 0 38px;
        display: inline-flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: none;
    }

    .site-header--editorial .editorial-logo.site-logo {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        max-width: 100%;
        min-width: 0;
    }

    .site-header--editorial .editorial-header-left .site-logo__img--header {
        height: 30px !important;
        max-width: min(148px, 58vw);
        width: auto;
        margin-inline: auto;
    }

    body.has-editorial-header .site-header--editorial {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 110;
        background: rgba(0, 0, 0, 0.94);
        border-bottom: 1px solid rgba(230, 0, 0, 0.45);
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    }

    body.has-editorial-header .site-header--editorial .editorial-header-row {
        min-height: 48px;
        padding: 6px 10px;
    }

    .editorial-search-overlay__inner {
        padding-inline: 20px;
    }

    .editorial-search-form {
        flex-wrap: wrap;
        gap: 10px;
    }

    .editorial-search-form input {
        min-width: 0;
        flex: 1 1 auto;
        width: 100%;
    }
}

/* ── Universal Smooth Drawer & Backdrop Overlay ───────────────────── */

.drawer-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9998 !important;
    background: rgba(0, 0, 0, 0.72) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease !important;
    pointer-events: none !important;
}

body.is-menu-open .drawer-backdrop {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

body.is-menu-open {
    overflow: hidden !important;
}

.header-detail-drawer,
.editorial-drawer.main-nav {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: auto !important;
    z-index: 9999 !important;
    width: min(340px, 86vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    gap: 0 !important;
    background: #0B0B0B !important;
    color: #FFFFFF !important;
    border: 0 !important;
    border-right: 1px solid rgba(201, 162, 39, 0.35) !important;
    border-radius: 0 !important;
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.85) !important;
    overflow: hidden !important;
    /* Smooth sliding transition */
    transform: translateX(-100%) !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.36s ease,
                opacity 0.25s ease !important;
    pointer-events: none !important;
}

.header-detail-drawer.is-open,
.editorial-drawer.main-nav.is-open {
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.drawer-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
    min-height: 58px !important;
    padding: 14px 18px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: #060606 !important;
}

.drawer-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-decoration: none !important;
}

.drawer-brand .site-logo__img--header {
    height: 28px !important;
    width: auto !important;
}

.drawer-brand small {
    font-size: 9.5px !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: var(--gold, #C9A227) !important;
    margin-top: 3px !important;
    font-weight: 600 !important;
}

.drawer-close {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    flex: 0 0 36px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
    font-size: 24px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
}

.drawer-close:hover {
    background: #E60000 !important;
    border-color: #E60000 !important;
    color: #FFFFFF !important;
    transform: rotate(90deg) !important;
}

.drawer-body {
    flex: 1 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 10px 12px 16px !important;
    background: #0B0B0B !important;
}

.drawer-menu-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.header-detail-drawer .drawer-menu-item {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 42px !important;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-family: var(--font-heading, 'Inter', sans-serif) !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.header-detail-drawer .drawer-menu-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #C9A227 !important;
    padding-left: 18px !important;
}

.header-detail-drawer .drawer-menu-item.sale {
    color: #E60000 !important;
    font-weight: 800 !important;
}

.header-detail-drawer .drawer-menu-item.sale:hover {
    color: #FF2E2E !important;
}

.drawer-accordion {
    margin: 4px 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    overflow: hidden !important;
}

.drawer-accordion-trigger {
    width: 100% !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 0 14px !important;
    background: transparent !important;
    border: 0 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-family: var(--font-heading, 'Inter', sans-serif) !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.drawer-accordion-trigger:hover,
.drawer-accordion.is-open .drawer-accordion-trigger {
    color: #C9A227 !important;
    background: rgba(201, 162, 39, 0.08) !important;
}

.drawer-accordion-arrow {
    width: 16px !important;
    height: 16px !important;
    transition: transform 0.28s ease !important;
}

.drawer-accordion.is-open .drawer-accordion-arrow {
    transform: rotate(180deg) !important;
}

.drawer-accordion-panel {
    background: rgba(0, 0, 0, 0.35) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 6px 8px 8px !important;
}

.drawer-accordion-link {
    display: block !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.drawer-accordion-link:hover {
    color: #C9A227 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    transform: translateX(3px) !important;
}

.drawer-accordion-link--parent {
    color: #E60000 !important;
    font-weight: 800 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    margin-bottom: 4px !important;
    padding-bottom: 8px !important;
}

.drawer-foot {
    background: #060606 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 14px 16px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
}

.drawer-foot-link {
    min-height: 38px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #FFFFFF !important;
    font-family: var(--font-heading, 'Inter', sans-serif) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.drawer-foot-link:hover {
    border-color: #C9A227 !important;
    color: #C9A227 !important;
}

.drawer-foot-cta {
    grid-column: 1 / -1 !important;
    min-height: 42px !important;
    border-radius: 4px !important;
    background: #E60000 !important;
    color: #FFFFFF !important;
    font-family: var(--font-heading, 'Inter', sans-serif) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.drawer-foot-cta:hover {
    background: #C40000 !important;
    transform: translateY(-1px) !important;
}

/* ── Home hero — flex stack on small screens (copy + stats, no overlap) ── */

@media (max-width: 991px) {
    .home-section--hero {
        min-height: 100dvh;
    }

    .home-section--hero .editorial-hero {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        height: 100dvh;
        min-height: 520px;
        padding-top: calc(var(--mobile-announce-h, 34px) + var(--mobile-header-h, 50px) + 8px);
        box-sizing: border-box;
    }

    .home-section--hero .editorial-hero-video,
    .home-section--hero .editorial-hero-shade {
        position: absolute;
        inset: 0;
    }

    .home-section--hero .editorial-hero-copy {
        position: relative;
        left: auto;
        top: auto;
        bottom: auto;
        transform: none;
        z-index: 3;
        width: 100%;
        max-width: none;
        margin-top: auto;
        padding: 0 clamp(16px, 4vw, 28px) 12px;
        box-sizing: border-box;
    }

    .home-section--hero .editorial-hero-actions {
        display: none !important;
    }

    .home-section--hero .lp-hero-strip {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        flex-shrink: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        z-index: 4;
    }

    .home-section--hero .lp-hero-stat {
        min-width: 0;
        padding: 8px 4px;
    }

    .home-section--hero .lp-hero-stat span {
        font-size: 7px;
        letter-spacing: 0.05em;
        line-height: 1.25;
        overflow-wrap: anywhere;
        hyphens: auto;
    }
}

@media (max-width: 767px) {
    .home-section--hero .editorial-hero-kicker {
        font-size: 7px;
        letter-spacing: 0.12em;
        line-height: 1.45;
    }

    .home-section--hero .editorial-hero-tagline {
        font-size: 0.82rem;
        line-height: 1.58;
        max-width: none;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .home-section--hero .editorial-hero-actions {
        display: none !important;
    }

    .home-section--hero .editorial-hero-copy {
        padding-bottom: 6px;
    }

    .home-section--hero .lp-hero-stat {
        padding: 10px 6px;
    }

    .home-section--hero .lp-hero-stat strong {
        font-size: clamp(20px, 5.5vw, 26px);
    }

    .home-section--hero .lp-hero-stat span {
        font-size: 8px;
        letter-spacing: 0.04em;
        line-height: 1.3;
        color: rgba(255, 255, 255, 0.85);
        overflow-wrap: anywhere;
        hyphens: auto;
    }

    .home-section--process .home-flow-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .home-section--process .home-manufacturing-flow {
        padding-inline: 16px;
    }
}

@media (max-width: 480px) {
    .lp-product-grid {
        grid-template-columns: 1fr !important;
    }

    .home-category-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

/* ── Category split heroes ───────────────────────────── */

@media (max-width: 767px) {
    .cat-hub-hero--split {
        --cat-banner-height: clamp(320px, 58vw, 420px);
    }

    .cat-hub-hero--split .cat-hub-hero__content-panel {
        padding: 0 16px 20px;
        align-items: flex-end;
    }

    .cat-hub-hero--split .cat-hub-hero__content-panel .cat-hub-hero__content {
        padding-left: 18px;
        width: 100%;
    }

    .cat-hub-hero--split .cat-hub-hero__title--sport {
        font-size: clamp(1.35rem, 7.5vw, 1.85rem);
    }

    .cat-hub-hero--split .cat-hub-hero__lead {
        font-size: 0.82rem;
        line-height: 1.62;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .cat-hub-hero--split .cat-hub-hero__chips {
        gap: 5px;
        margin-bottom: 10px;
    }

    .cat-hub-hero--split .cat-hub-hero__chips li {
        font-size: 7px;
        padding: 4px 8px;
    }

    .cat-hub-hero--split .cat-hub-hero__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 7px;
        width: 100%;
    }

    .cat-hub-hero--split .cat-hub-hero__actions .catalog-btn {
        width: 100%;
        min-height: 36px;
        justify-content: center;
        text-align: center;
    }

    .cat-hub-hero:not(.cat-hub-hero--split) .cat-hub-hero__title {
        max-width: none !important;
    }

    .cat-hub-subnav__inner {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        padding-bottom: 6px;
        scrollbar-width: thin;
    }

    .cat-hub-subnav__item {
        flex: 0 0 auto;
        scroll-snap-align: start;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .cat-hub-hero--split {
        --cat-banner-height: clamp(280px, 72vw, 360px);
    }

    .cat-hub-hero--split .cat-hub-hero__home-back {
        font-size: 0.68rem;
    }
}

/* ── Catalog / product grids ─────────────────────────── */

@media (max-width: 767px) {
    .catalog-grid,
    .catalog-grid--4,
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .catalog-card--pro .catalog-card__actions {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .catalog-card--pro .catalog-card__actions .catalog-btn {
        width: auto;
        flex: 1 1 0;
    }

    .catalog-hero,
    .catalog-hero--split {
        padding-inline: 20px;
    }

    .pd-content {
        padding-inline: 20px;
    }

    .pd-specs div,
    .pd-specs--inline div {
        grid-template-columns: 1fr !important;
        gap: 4px;
    }

    .pd-specs dt,
    .pd-specs--inline dt {
        margin-bottom: 2px;
    }

    .pd-gallery {
        gap: 10px;
    }

    .pd-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .pd-actions .catalog-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 600px) and (max-width: 991px) {
    .catalog-grid--4,
    .catalog-subcat-grid,
    .catalog-hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* ── Inner page heroes (contact, faq, gallery, etc.) ─── */

@media (max-width: 767px) {
    body.has-editorial-header .page-hero h1,
    .contact-hero h1,
    .gallery-hero h1,
    .faq-hero h1,
    .mfg-hero h1,
    .blog-hero h1,
    .terms-hero h1,
    .privacy-hero h1 {
        max-width: none !important;
        font-size: clamp(1.85rem, 8.5vw, 2.5rem) !important;
        line-height: 1.05;
    }

    body.has-editorial-header .page-hero p,
    .contact-hero p,
    .gallery-hero p,
    .faq-hero p,
    .mfg-hero p,
    .blog-hero p {
        max-width: 100%;
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .about-hero h1 {
        font-size: clamp(1.85rem, 8vw, 2.45rem);
    }

    .about-hero__inner {
        padding-inline: 0;
    }
}

/* ── Contact & forms ─────────────────────────────────── */

@media (max-width: 767px) {
    .contact-form__row,
    .nx-form-grid {
        grid-template-columns: 1fr !important;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea,
    .nx-form-grid input,
    .nx-form-grid select,
    .nx-form-grid textarea {
        width: 100%;
        min-height: 44px;
    }

    .contact-channels__grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── Blog ────────────────────────────────────────────── */

@media (max-width: 767px) {
    .blog-card__body {
        padding: 16px;
    }

    .blog-detail-hero h1,
    .article-pro h1 {
        font-size: clamp(1.65rem, 7vw, 2.2rem);
        line-height: 1.1;
    }

    .article-pro__content {
        padding: 20px 16px;
        font-size: 1rem;
        line-height: 1.75;
    }
}

/* ── Gallery ─────────────────────────────────────────── */

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .gallery-card__caption {
        font-size: 0.85rem;
    }
}

/* ── Manufacturing page ────────────────────────────── */

@media (max-width: 767px) {
    .mfg-process__track {
        gap: 20px;
    }

    .mfg-card {
        grid-template-columns: 1fr !important;
    }

    .mfg-intro__grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── Home lower / premium sections ───────────────────── */

@media (max-width: 767px) {
    .premium-tabs-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .premium-tab,
    .premium-tabs-nav button {
        flex: 0 0 auto;
    }

    .nx-why-track {
        padding-bottom: 8px;
    }

    .nx-faq-item summary {
        padding: 14px 16px;
        font-size: 0.92rem;
    }
}

/* ── Footer & floating actions ─────────────────────── */

@media (max-width: 767px) {
    .deer-footer__wrap {
        width: calc(100% - 28px);
    }

    .deer-footer__grid {
        gap: 28px;
    }

    .deer-footer__subscribe {
        grid-template-columns: 1fr !important;
    }

    .deer-footer__subscribe input,
    .deer-footer__subscribe button {
        width: 100%;
        min-height: 44px;
    }

    .deer-footer__cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .deer-footer__cta-actions .catalog-btn {
        width: 100%;
        justify-content: center;
    }

    .whatsapp-float {
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        width: 46px;
        height: 46px;
        z-index: 118;
    }

    body.is-home-page .whatsapp-float {
        bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }

    .nx-landing,
    .nx-wrap,
    .premium-container,
    .home-section-shell {
        max-width: 100%;
    }

    .nx-why-track {
        margin-inline: -4px;
        padding-inline: 8px;
    }

    .nx-connect-form-card,
    .nx-connect-side {
        min-width: 0;
    }

    .announcement-bar {
        padding-inline: 12px;
        font-size: 9px;
        line-height: 1.35;
    }

    .announcement-bar p {
        max-width: 100%;
    }
}

/* ── Admin panel ─────────────────────────────────────── */

@media (max-width: 991px) {
    .admin-toolbar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .admin-toolbar input,
    .admin-toolbar select,
    .admin-search {
        min-width: 0 !important;
        flex: 1 1 100%;
        width: 100%;
    }

    .admin-catalog-layout {
        grid-template-columns: 1fr !important;
    }

    .admin-form-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 767px) {
    .admin-content {
        padding: 16px;
    }

    .admin-card {
        padding: 16px;
    }

    .admin-table-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-table-actions .admin-btn,
    .admin-table-actions a {
        width: 100%;
        text-align: center;
    }
}

/* ── Touch targets & accessibility ───────────────────── */

@media (max-width: 767px) {
    .catalog-btn,
    .about-btn,
    .admin-btn,
    .cat-hub-subnav__item {
        min-height: 44px;
    }

    button:not(.home-section-dot):not(.editorial-hero-dots button):not(.featured-curve-nav):not(.menu-toggle) {
        min-height: 44px;
    }

    .home-section-dot {
        min-width: 28px;
        min-height: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-category-panel-row {
        animation: none !important;
        scroll-behavior: auto;
    }
}

/* ==========================================================================
   DEER FIGHT GEAR — COMPLETE MOBILE RESPONSIVE SUITE FOR HOMEPAGE
   Ensures 100% pixel-perfect fit on 320px, 375px, 414px, 480px, 640px, 768px
   ========================================================================== */

@media (max-width: 991px) {
    .home-flow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .nx-seo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .nx-seo-specs__inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .nx-blogs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .nx-factory__split {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .nx-connect-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .nx-faq-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .deer-footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 20px;
    }

    .deer-footer__col--brand {
        grid-column: 1 / -1;
        text-align: center;
    }

    .deer-footer__col--brand .deer-footer__logo {
        margin-inline: auto;
    }

    .deer-footer__col--brand .deer-footer__social {
        justify-content: center;
    }

    .deer-footer__col--brand .deer-footer__mission {
        margin-inline: auto;
        text-align: center;
    }
}

@media (max-width: 767px) {
    /* Global Container Width & Overflow Prevention */
    html, body {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .home-landing,
    .home-sections,
    .home-section,
    .nx-landing,
    .nx-wrap {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .nx-wrap {
        width: calc(100% - 24px) !important;
        margin-inline: auto !important;
    }

    .nx-section {
        padding: clamp(36px, 7vw, 56px) 0 !important;
    }

    /* Announcement Bar */
    .announcement-bar {
        padding: 7px 10px;
        min-height: 32px;
        font-size: 9px;
        line-height: 1.35;
        text-align: center;
    }

    /* Site Header on Mobile */
    body.is-home-page .site-header--editorial {
        position: fixed;
        top: var(--mobile-announce-h, 32px);
        left: 0;
        right: 0;
        z-index: 110;
        background: rgba(11, 11, 11, 0.96);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(230, 0, 0, 0.4);
    }

    .editorial-header-row {
        min-height: 48px;
        padding: 6px 12px;
    }

    .site-logo__img--header {
        height: 28px !important;
        max-width: 130px !important;
    }

    /* Hero Section on Mobile */
    .home-section--hero .editorial-hero {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        height: 100dvh;
        min-height: 520px;
        padding-top: calc(var(--mobile-announce-h, 32px) + 54px);
        box-sizing: border-box;
    }

    .home-section--hero .editorial-hero-copy {
        position: relative;
        left: auto;
        top: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin-top: auto;
        padding: 12px 14px 8px;
        border-left: 3px solid var(--nx-gold, #C9A227);
        box-sizing: border-box;
        background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 100%);
    }

    .home-section--hero .editorial-hero-kicker {
        font-size: 8px;
        letter-spacing: 0.14em;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .home-section--hero .editorial-hero-tagline {
        font-size: clamp(0.78rem, 3.2vw, 0.86rem);
        line-height: 1.52;
        color: rgba(255, 255, 255, 0.88);
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .home-section--hero .editorial-hero-actions {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 10px;
        width: 100%;
    }

    .home-section--hero .editorial-hero-btn {
        flex: 1 1 calc(50% - 4px);
        min-height: 38px;
        padding: 6px 12px;
        font-size: 10px;
        font-weight: 700;
        justify-content: center;
        border-radius: 4px;
    }

    .home-section--hero .editorial-hero-btn__icon {
        width: 14px;
        height: 14px;
    }

    .home-section--hero .lp-hero-strip {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        max-width: 100%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
        padding: 8px 6px;
        box-sizing: border-box;
        background: rgba(11, 11, 11, 0.92);
        border-top: 1px solid rgba(201, 162, 39, 0.25);
        z-index: 4;
    }

    .home-section--hero .lp-hero-stat {
        padding: 6px 2px;
        text-align: center;
    }

    .home-section--hero .lp-hero-stat strong {
        font-size: clamp(15px, 4.2vw, 19px);
        line-height: 1.1;
        color: var(--nx-gold, #C9A227);
    }

    .home-section--hero .lp-hero-stat span {
        font-size: clamp(6.8px, 1.9vw, 8px);
        letter-spacing: 0.03em;
        line-height: 1.2;
        color: rgba(255, 255, 255, 0.75);
    }

    /* Category Showcase Accordion */
    .home-category-intro {
        padding: clamp(28px, 5vw, 42px) 14px 18px;
    }

    .home-category-heading {
        font-size: clamp(1.35rem, 5.5vw, 1.9rem);
        line-height: 1.18;
    }

    .home-category-lead {
        font-size: 0.85rem;
        line-height: 1.55;
    }

    .home-section--categories .home-category-panel-row {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding: 0 14px 18px;
        min-height: 380px;
        scrollbar-width: none;
    }

    .home-section--categories .home-category-panel-row::-webkit-scrollbar {
        display: none;
    }

    .home-section--categories .home-category-panel {
        flex: 0 0 clamp(240px, 78vw, 320px) !important;
        min-width: 240px !important;
        scroll-snap-align: center;
        border-radius: 8px;
        overflow: hidden;
        min-height: 380px;
        padding: 22px 18px;
        position: relative;
    }

    .home-category-content strong {
        font-size: 24px;
    }

    .home-category-content em {
        font-size: 12.5px;
        max-width: 260px;
    }

    /* Manufacturing Process Flow (6 Steps) */
    .home-section--process .home-manufacturing-flow {
        padding: clamp(32px, 5vw, 48px) 14px clamp(36px, 5vw, 52px);
    }

    .home-flow-heading {
        font-size: clamp(1.35rem, 5.2vw, 1.85rem);
        line-height: 1.2;
    }

    .home-flow-sub {
        font-size: 0.85rem;
    }

    .home-section--process .home-flow-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .home-flow-card {
        padding: 16px 14px;
        border-radius: 8px;
    }

    .home-flow-card h3 {
        font-size: 1rem;
    }

    .home-flow-card p {
        font-size: 0.84rem;
        line-height: 1.55;
    }

    .home-flow-img-btn img {
        width: 100%;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        border-radius: 6px;
    }

    /* SEO Capabilities & Specifications Section */
    .nx-seo-section {
        padding: clamp(36px, 6vw, 56px) 0;
    }

    .nx-seo-head {
        margin-bottom: 24px;
    }

    .nx-seo-head .nx-heading {
        font-size: clamp(1.35rem, 5.2vw, 1.85rem);
        line-height: 1.2;
    }

    .nx-seo-head .nx-copy {
        font-size: 0.86rem;
        line-height: 1.6;
    }

    .nx-seo-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 24px;
    }

    .nx-seo-card {
        padding: 18px 14px;
        border-radius: 8px;
    }

    .nx-seo-card__title {
        font-size: 1.05rem;
    }

    .nx-seo-card__desc {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }

    .nx-seo-specs {
        padding: 18px 14px;
        margin-bottom: 24px;
    }

    .nx-seo-specs__inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .nx-seo-spec-item__val {
        font-size: 1.1rem;
    }

    .nx-seo-spec-item__desc {
        font-size: 0.82rem;
    }

    .nx-seo-tags {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .nx-seo-tags__list {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }

    .nx-seo-tag {
        font-size: 10px;
        padding: 5px 10px;
    }

    /* Trust Marquee */
    .nx-marquee {
        padding: 10px 0;
    }

    .nx-marquee-group span {
        font-size: 10px;
    }

    /* Latest Blogs */
    .nx-blogs-head {
        margin-bottom: 20px;
    }

    .nx-blogs-head__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .nx-blogs-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .nx-blog-card {
        border-radius: 8px;
        overflow: hidden;
    }

    .nx-blog-card__body {
        padding: 16px 14px;
    }

    .nx-blog-card__body h3 {
        font-size: 1.02rem;
    }

    .nx-blog-card__body p {
        font-size: 0.84rem;
    }

    /* Why Choose Us Timeline */
    .nx-why-head {
        margin-bottom: 22px;
    }

    .nx-why-title {
        font-size: clamp(1.35rem, 5.2vw, 1.85rem);
    }

    .nx-why-track {
        overflow-x: auto;
        display: flex;
        flex-wrap: nowrap;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding: 0 14px 14px;
        scrollbar-width: none;
    }

    .nx-why-track::-webkit-scrollbar {
        display: none;
    }

    .nx-why-node {
        flex: 0 0 clamp(220px, 72vw, 270px) !important;
        scroll-snap-align: center;
        background: #121212;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 8px;
        padding: 18px 14px;
        text-align: center;
    }

    .nx-why-ring {
        width: 80px;
        height: 80px;
        margin-inline: auto;
        margin-bottom: 12px;
    }

    .nx-why-node h3 {
        font-size: 1rem;
    }

    .nx-why-node p {
        font-size: 0.82rem;
    }

    /* Factory Video Showcase */
    .nx-factory {
        padding: clamp(36px, 6vw, 56px) 0;
    }

    .nx-factory__head {
        margin-bottom: 22px;
    }

    .nx-factory__split {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .nx-factory__frame {
        width: 100%;
        aspect-ratio: 16 / 9;
        border-radius: 8px;
        overflow: hidden;
    }

    .nx-factory__play {
        width: 52px;
        height: 52px;
    }

    .nx-factory__flow {
        padding: 0;
        margin: 0 0 18px;
    }

    .nx-factory__flow li {
        padding: 10px 8px;
        gap: 10px;
    }

    .nx-factory__flow-num {
        font-size: 12px;
        min-width: 24px;
    }

    .nx-factory__flow-body strong {
        font-size: 0.92rem;
    }

    .nx-factory__flow-body p {
        font-size: 0.82rem;
    }

    .nx-factory__stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        text-align: center;
        margin-bottom: 14px;
    }

    .nx-factory__stat-value {
        font-size: 1.25rem;
    }

    .nx-factory__stat-label {
        font-size: 8.5px;
    }

    .nx-factory__cta {
        width: 100%;
        justify-content: center;
        min-height: 46px;
        font-size: 11px;
    }

    /* Contact Form + WhatsApp Grid */
    .nx-connect {
        padding: clamp(36px, 6vw, 56px) 0;
    }

    .nx-connect-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nx-connect-form-card {
        padding: 20px 16px;
        border-radius: 8px;
        width: 100%;
    }

    .nx-form-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .nx-form-stack {
        gap: 12px;
    }

    .nx-field label {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .nx-field input,
    .nx-field textarea {
        font-size: 16px !important;
        min-height: 46px;
        padding: 10px 12px;
        border-radius: 4px;
        width: 100%;
        background: rgba(255, 255, 255, 0.05);
    }

    .nx-btn--fill {
        min-height: 48px;
        width: 100%;
        font-size: 12px;
        letter-spacing: 0.1em;
    }

    .nx-connect-side {
        padding: 20px 16px;
        border-radius: 8px;
        text-align: center;
    }

    .nx-connect-side__qr img {
        max-width: 130px;
        height: auto;
        margin-inline: auto;
    }

    .nx-btn--wa {
        min-height: 48px;
        width: 100%;
        font-size: 12px;
        justify-content: center;
    }

    .nx-connect-side__meta {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: left;
    }

    /* FAQ Section */
    .nx-faq {
        padding: clamp(36px, 6vw, 56px) 0;
    }

    .nx-faq-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .nx-faq-intro {
        text-align: center;
    }

    .nx-faq-intro .nx-display {
        font-size: clamp(1.5rem, 5.5vw, 2.1rem);
    }

    .nx-faq-intro .nx-copy--faq {
        font-size: 0.85rem;
    }

    .nx-faq-intro .nx-btn {
        width: 100%;
        max-width: 260px;
        margin-inline: auto;
    }

    .nx-faq-trigger {
        padding: 14px 12px;
        min-height: 48px;
        font-size: 0.88rem;
        gap: 10px;
    }

    .nx-faq-num {
        font-size: 11px;
    }

    .nx-faq-body-wrap {
        display: grid;
        grid-template-rows: 0fr;
        overflow: hidden !important;
        visibility: hidden !important;
        transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.35s ease;
    }

    .nx-faq-item.is-open .nx-faq-body-wrap {
        grid-template-rows: 1fr;
        visibility: visible !important;
    }

    .nx-faq-body-inner {
        min-height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
    }

    .nx-faq-body-inner p {
        padding: 0 12px 14px 44px !important;
        font-size: 0.84rem;
        line-height: 1.58;
    }

    /* Deer Fight Gear Footer */
    .deer-footer__main {
        padding: clamp(32px, 5vw, 48px) 0 20px;
    }

    .deer-footer__grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 28px 16px !important;
    }

    .deer-footer__col {
        min-width: 0 !important;
        text-align: left !important;
    }

    .deer-footer__col--brand {
        grid-column: 1 / -1 !important;
        text-align: center !important;
        padding-right: 0 !important;
        margin-bottom: 4px;
    }

    .deer-footer__col--brand .deer-footer__logo {
        margin-inline: auto;
    }

    .deer-footer__col--brand .deer-footer__social {
        justify-content: center;
    }

    .deer-footer__col--brand .deer-footer__mission {
        margin-inline: auto;
        text-align: center;
        max-width: 38ch;
    }

    .deer-footer__col--contact {
        grid-column: 1 / -1 !important;
    }

    .deer-footer__col::before {
        display: none !important;
    }

    .deer-footer__col-title {
        font-size: 11px;
        margin-bottom: 12px;
        text-align: left !important;
    }

    .deer-footer__col-title::after {
        margin-left: 0 !important;
        margin-right: auto !important;
    }

    .deer-footer__links {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 0;
        margin: 0;
    }

    .deer-footer__links a,
    .deer-footer__links .deer-footer__contact-item {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        width: fit-content !important;
        max-width: 100% !important;
        padding: 6px 0 !important;
        font-size: 0.84rem !important;
        min-height: 32px !important;
        text-align: left !important;
    }

    .deer-footer__icon,
    .deer-footer__contact-icon {
        flex: 0 0 16px !important;
        width: 16px !important;
        height: 16px !important;
        color: var(--ft-gold) !important;
        margin: 0 !important;
    }

    .deer-footer__links a span,
    .deer-footer__links .deer-footer__contact-item span {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        text-align: left !important;
        white-space: normal !important;
        word-break: normal !important;
    }

    .deer-footer__links--contact .deer-footer__contact-item span,
    .deer-footer__links--contact a span {
        white-space: normal !important;
    }

    .deer-footer__contact-row {
        align-items: flex-start;
    }

    .deer-footer__contact-item {
        justify-content: flex-start;
    }

    .deer-footer__legal {
        padding: 14px 0 20px;
    }

    .deer-footer__legal-text {
        font-size: 10px;
        text-align: center;
    }

    /* Floating WhatsApp on Mobile */
    .whatsapp-float {
        right: 14px !important;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
        width: 48px !important;
        height: 48px !important;
        z-index: 999 !important;
    }

    body.is-home-page .whatsapp-float {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* Small mobile devices (<= 440px) */
@media (max-width: 440px) {
    .home-section--hero .lp-hero-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .home-section--hero .editorial-hero-btn {
        flex: 1 1 100%;
    }

    .nx-seo-tags__title {
        text-align: center;
        width: 100%;
        margin-bottom: 4px;
    }

    .nx-factory__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
}

/* =========================================================
   Final mobile hardening
   ========================================================= */

html,
body {
    max-width: 100%;
}

img,
picture,
video,
canvas,
svg,
iframe,
object,
embed {
    max-width: 100%;
}

main,
section,
article,
aside,
header,
footer,
nav,
form,
fieldset,
[class*="__wrap"],
[class*="__content"],
[class*="__grid"] {
    min-width: 0;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

pre,
.responsive-table {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.article-pro__content table,
.terms-document__body table,
.privacy-document__body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.article-pro__content,
.terms-document__body,
.privacy-document__body,
.contact-card,
.deer-footer__links,
.admin-content {
    overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4,
h5,
h6,
a,
p,
li,
dd {
    overflow-wrap: anywhere;
}

@media (max-width: 991px) {
    /* Admin navigation becomes a compact, swipeable toolbar. */
    .admin-sidebar {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        padding: 12px 16px 10px !important;
        overflow: hidden !important;
    }

    .admin-brand {
        margin: 0 0 10px !important;
    }

    .admin-nav-scroll {
        display: flex;
        gap: 8px;
        width: 100%;
        padding: 0 0 5px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .admin-nav-group,
    .admin-nav-group nav {
        display: contents;
    }

    .admin-nav-label,
    .admin-sidebar-foot {
        display: none !important;
    }

    .admin-nav-group nav a {
        flex: 0 0 auto;
        display: inline-flex !important;
        align-items: center;
        min-height: 44px;
        margin: 0 !important;
        padding: 9px 12px !important;
        white-space: nowrap;
    }

    .admin-main {
        width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
    }

    .admin-content,
    .admin-topbar {
        width: 100%;
        min-width: 0;
    }

    .responsive-table table {
        min-width: 680px;
    }

    .gallery-lightbox {
        padding: 8px;
    }

    .gallery-lightbox__dialog {
        width: min(100%, 720px);
        max-height: calc(100dvh - 16px);
        margin: auto;
        overflow: hidden;
    }

    .gallery-lightbox__content {
        max-height: calc(100dvh - 16px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .pd-layout,
    .pd-layout--pro,
    .pd-gallery,
    .pd-summary,
    .pd-content {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 767px) {
    :root {
        --mobile-page-gutter: 16px;
    }

    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    button,
    [role="button"],
    input[type="submit"],
    input[type="button"],
    .btn,
    [class$="__btn"] {
        min-height: 44px;
    }

    .gallery-filters,
    .terms-document__nav,
    .privacy-document__nav {
        flex-wrap: nowrap !important;
        width: 100%;
        padding-bottom: 8px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-filter,
    .terms-document__nav a,
    .privacy-document__nav a {
        flex: 0 0 auto;
        min-height: 44px;
        white-space: nowrap;
    }

    .cat-hub-hero--split {
        --cat-banner-height: clamp(390px, 110vw, 500px) !important;
    }

    .cat-hub-hero--split .cat-hub-hero__content-panel {
        width: 100%;
        max-width: 100%;
        padding-inline: var(--mobile-page-gutter) !important;
    }

    .cat-hub-hero--split .cat-hub-hero__actions,
    .blog-article-cta__btns,
    .gallery-lightbox__actions {
        width: 100%;
        flex-direction: column;
    }

    .cat-hub-hero--split .cat-hub-hero__actions > *,
    .blog-article-cta__btns > *,
    .gallery-lightbox__actions > * {
        width: 100%;
        min-width: 0 !important;
    }

    .blog-detail-hero__meta {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 12px;
    }

    .gallery-lightbox__media {
        min-height: 190px;
        padding: 10px;
    }

    .gallery-lightbox__media img {
        max-height: 34dvh;
    }

    .gallery-lightbox__details {
        padding: 16px;
    }

    .gallery-lightbox__close {
        top: 8px;
        right: 8px;
        width: 44px;
        height: 44px;
    }

    .about-final-cta {
        padding: 28px 20px !important;
    }

    .admin-topbar {
        align-items: flex-start !important;
        gap: 12px;
        padding: 16px !important;
    }

    .admin-content {
        padding: 16px !important;
    }

    .admin-user {
        max-width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start !important;
    }

    .admin-page-head,
    .admin-page-header,
    .admin-toolbar,
    .panel-header,
    .form-actions {
        align-items: stretch !important;
        gap: 10px !important;
    }

    .admin-page-head > *,
    .admin-page-header > *,
    .admin-toolbar > *,
    .form-actions > * {
        max-width: 100%;
    }

    .admin-content .card,
    .admin-content .panel,
    .admin-content .form-card {
        min-width: 0;
        max-width: 100%;
    }
}

@media (max-width: 520px) {
    .login-body {
        min-height: 100dvh;
        padding: 12px;
    }

    .login-card {
        width: 100%;
        padding: 28px 20px;
        border-radius: 8px;
    }

    .login-card h1 {
        font-size: 1.55rem;
        letter-spacing: 0;
    }

    .deer-footer__grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .deer-footer__brand,
    .deer-footer__col,
    .deer-footer__col--contact {
        grid-column: 1 !important;
        width: 100%;
    }

    .deer-footer__cta-actions,
    .deer-footer__legal .deer-footer__wrap {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .deer-footer__cta-actions > * {
        width: 100% !important;
    }

    .cat-hub-hero--split {
        --cat-banner-height: clamp(410px, 125vw, 530px) !important;
    }

    .blog-detail-hero__content,
    .terms-document__head,
    .terms-document__body,
    .privacy-document__head,
    .privacy-document__body {
        padding-inline: 16px !important;
    }

    .terms-document__card,
    .privacy-document__card {
        border-radius: 6px;
    }

    .admin-sidebar {
        padding-inline: 12px !important;
    }

    .admin-brand img {
        flex: 0 0 auto;
        width: auto;
        max-width: 96px;
        height: 42px;
        object-fit: contain;
    }

    .admin-topbar {
        display: flex !important;
        flex-direction: column;
    }

    .admin-user {
        width: 100%;
    }

    .admin-user > * {
        flex: 0 0 auto;
    }

    .responsive-table table {
        min-width: 620px;
    }
}

@media (max-width: 380px) {
    :root {
        --mobile-page-gutter: 12px;
    }

    .site-header__inner,
    .admin-content,
    .admin-topbar {
        padding-inline: 12px !important;
    }

    .home-section--hero .lp-hero-strip {
        grid-template-columns: 1fr;
    }

    .nx-factory__stats {
        grid-template-columns: 1fr;
    }

    .gallery-grid,
    .product-grid,
    .blog-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .gallery-card:hover,
    .product-card:hover,
    .blog-card:hover,
    .gallery-filter:hover {
        transform: none !important;
    }
}

@media (orientation: landscape) and (max-height: 560px) and (max-width: 991px) {
    .gallery-lightbox__content {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
    }

    .gallery-lightbox__media {
        min-height: 0;
    }

    .gallery-lightbox__media img {
        max-height: calc(100dvh - 36px);
    }
}
