/* =========================================================
   Hamza Prowear Industry — 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, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    input, select, textarea {
        font-size: 16px !important; /* Prevents auto-zoom on iOS */
    }

    button, a.nx-btn, a.featured-curve-cta, a.featured-curve-link, .nx-export-cta, .cat-pill {
        min-height: 44px;
    }

    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) {
    .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%;
    }

    .header-detail-drawer {
        width: min(100%, 100vw);
    }

    .header-detail-drawer__catalog-sub {
        grid-template-columns: 1fr;
    }

    .editorial-drawer__actions .catalog-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── 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(36px + 52px);
        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 .lp-hero-strip {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        flex-shrink: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        z-index: 4;
    }

    .home-section--hero .editorial-hero-title {
        font-size: clamp(26px, 6vw, 36px);
        margin: 4px 0 8px;
    }

    .home-section--hero .editorial-hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 8px;
        margin-top: 14px;
    }

    .home-section--hero .editorial-hero-btn {
        flex: 1 1 calc(50% - 4px);
        width: auto;
        min-height: 38px !important;
        padding: 8px 14px;
    }
}

@media (max-width: 767px) {
    .home-section--hero .editorial-hero-title {
        font-size: clamp(24px, 6.5vw, 32px);
        margin: 4px 0 8px;
    }

    .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;
    }

    .home-section--hero .editorial-hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 8px;
        margin-top: 14px;
    }

    .home-section--hero .editorial-hero-btn {
        flex: 1 1 calc(50% - 4px);
        width: auto;
        min-height: 38px !important;
        padding: 8px 12px;
        font-size: 0.56rem;
    }

    .home-section--hero .lp-hero-stat {
        padding: 10px 8px;
    }

    .home-section--hero .lp-hero-stat strong {
        font-size: clamp(18px, 5vw, 24px);
    }

    .home-section--hero .lp-hero-stat span {
        font-size: 8px;
        letter-spacing: 0.1em;
        line-height: 1.35;
    }

    .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;
    }

    .home-section--hero .editorial-hero-actions {
        flex-direction: column;
    }

    .home-section--hero .editorial-hero-btn {
        flex: 1 1 100%;
    }
}

/* ── 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) {
    .hp-footer__wrap {
        width: calc(100% - 28px);
    }

    .hp-footer__grid {
        gap: 28px;
    }

    .hp-footer__subscribe {
        grid-template-columns: 1fr !important;
    }

    .hp-footer__subscribe input,
    .hp-footer__subscribe button {
        width: 100%;
        min-height: 44px;
    }

    .hp-footer__cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hp-footer__cta-actions .catalog-btn {
        width: 100%;
        justify-content: center;
    }

    .whatsapp-float {
        right: 12px;
        bottom: calc(72px + env(safe-area-inset-bottom, 0px));
        width: 48px;
        height: 48px;
    }

    .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;
    }
}

/* Editorial masthead: compact identity, centered navigation, clear quote action. */
.site-header--editorial > .editorial-header-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
    min-height: 76px;
    padding: 6px clamp(24px, 4vw, 64px);
    gap: 24px;
    background: linear-gradient(180deg, rgba(9, 13, 15, .34), rgba(9, 13, 15, .04));
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.site-header--editorial .editorial-header-left {
    gap: 22px;
}

.site-header--editorial .editorial-header-left .site-logo__img--header {
    width: 64px;
    height: 64px;
    max-width: none;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .45));
}

.site-header--editorial .editorial-menu-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    transition: background .2s ease, border-color .2s ease;
}

.site-header--editorial .editorial-menu-toggle:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .65);
}

.site-header--editorial .editorial-top-nav {
    grid-column: 2;
    justify-content: center;
    gap: clamp(18px, 2.2vw, 34px);
}

.site-header--editorial .editorial-top-nav > .editorial-sep {
    display: none;
}

.site-header--editorial .editorial-top-nav > a,
.site-header--editorial .editorial-top-nav > button,
.site-header--editorial .editorial-top-nav .nav-dropdown > button {
    min-height: 44px;
    font-size: 11px;
    letter-spacing: .12em;
    font-weight: 700;
}

.site-header--editorial .editorial-top-nav > a:last-child {
    position: absolute;
    right: clamp(24px, 4vw, 64px);
    top: 50%;
    transform: translateY(-50%);
    min-height: 40px;
    padding: 0 20px;
    gap: 14px;
    border-radius: 24px;
    background: #e60000;
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff;
    box-shadow: 0 6px 24px rgba(230, 0, 0, .22);
    transition: background .2s ease, box-shadow .2s ease;
}

.site-header--editorial .editorial-top-nav > a:last-child::after {
    content: '\2197';
    font-size: 19px;
    font-weight: 400;
}

.site-header--editorial .editorial-top-nav > a:last-child:hover {
    color: #fff;
    background: #bf0000;
    box-shadow: 0 8px 28px rgba(230, 0, 0, .35);
}

.site-header--editorial .editorial-top-nav a:focus-visible,
.site-header--editorial .editorial-top-nav button:focus-visible,
.site-header--editorial .editorial-menu-toggle:focus-visible {
    outline: 2px solid #c9a227;
    outline-offset: 5px;
}

@media (max-width: 980px) {
    .site-header--editorial > .editorial-header-row {
        min-height: 72px;
        grid-template-columns: 160px 1fr 145px;
        padding-inline: 22px;
        gap: 12px;
    }
    .site-header--editorial .editorial-header-left { gap: 14px; }
    .site-header--editorial .editorial-header-left .site-logo__img--header {
        width: 60px;
        height: 60px;
    }
    .site-header--editorial .editorial-top-nav { gap: 18px; }
    .site-header--editorial .editorial-top-nav > a:last-child { right: 22px; padding-inline: 16px; }
}

@media (max-width: 767px) {
    .site-header--editorial > .editorial-header-row {
        min-height: 68px;
        grid-template-columns: 1fr auto;
        padding: 4px 16px;
        gap: 14px;
    }
    .site-header--editorial .editorial-header-left { gap: 12px; }
    .site-header--editorial .editorial-header-left .site-logo__img--header { width: 56px; height: 56px; }
    .site-header--editorial .editorial-top-nav { display: flex; grid-column: 2; gap: 14px; }
    .site-header--editorial .editorial-top-nav > a:first-child,
    .site-header--editorial .editorial-top-nav > .nav-dropdown { display: none; }
    .site-header--editorial .editorial-top-nav > a:last-child {
        position: static;
        transform: none;
        min-height: 42px;
        padding-inline: 14px;
        font-size: 10px;
        gap: 8px;
    }
    .site-header--editorial .editorial-top-nav .editorial-search-open { font-size: 0; gap: 0; min-width: 30px; }
    .site-header--editorial .editorial-top-nav .editorial-search-open::before { width: 18px; height: 18px; }
}

/* Logo palette and consistent public action states. */
:root { --brand-red: #E60000; --brand-gold: #C9A227; --brand-black: #0B0B0B; --brand-white: #FFFFFF; }
body :is(button, [role="button"], .btn, [class*="-btn"], .drawer-foot-cta, .catalog-toolbar button, .contact-btn, .home-category-action) {
    transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease, opacity .3s ease, transform .3s ease;
}
body :is(button, [role="button"], .btn, [class*="-btn"], .drawer-foot-cta, .contact-btn):not(:disabled):is(:hover, :focus-visible),
.site-header--editorial .editorial-top-nav > a:last-child:is(:hover, :focus-visible),
.home-category-panel:is(:hover, :focus-visible) .home-category-action {
    background-color: var(--brand-white);
    background-image: none;
    color: var(--brand-red);
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 1px var(--brand-gold), 0 5px 18px #c9a22726;
}
body :is(.btn-white, .btn-outline, .nx-btn--line, .editorial-hero-btn--secondary, .editorial-hero-btn--outline):is(:hover, :focus-visible) {
    background: var(--brand-red);
    color: var(--brand-white);
    border-color: var(--brand-gold);
}
body :is(.nx-btn--wa, .drawer-foot-cta) { background: var(--brand-red); color: var(--brand-white); border-color: var(--brand-red); }
body :is(button, [role="button"], .btn, [class*="-btn"]):focus-visible { outline: 2px solid var(--brand-gold); outline-offset: 4px; }
body .editorial-menu-toggle:hover span { background: var(--brand-red); }
body .editorial-top-nav .editorial-search-open:hover::before { filter: none; }

/* Quiet, editorial newsletter above the footer. */
#home-subscribe { padding: 48px 0; background: #0B0B0B; border-top: 1px solid #ffffff0d; }
.nx-newsletter { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(32px, 6vw, 88px); padding: clamp(28px, 4vw, 48px); border: 1px solid #c9a22740; border-radius: 16px; background: radial-gradient(ellipse at 0% 0%, #e6000010, transparent 60%), #121212; overflow: hidden; }
.nx-newsletter::before { content: ''; position: absolute; top: 0; left: 40px; width: 64px; height: 3px; background: #E60000; }
.nx-newsletter .nx-eyebrow { margin-bottom: 16px; }
.nx-newsletter h2 { margin: 0 0 16px; font-size: clamp(26px, 3vw, 38px); line-height: 1.16; font-weight: 700; letter-spacing: -.04em; color: #fff; }
.nx-newsletter h2 em { color: #C9A227; font-style: normal; }
.nx-newsletter__intro > p { max-width: 43ch; margin: 0; color: #b6b6b6; font-size: 14px; line-height: 1.8; }
.nx-newsletter__label { display: block; margin-bottom: 14px; color: #fff; font-size: 13px; font-weight: 600; }
.nx-newsletter .nx-subscribe__pill { max-width: none; padding: 5px; border-radius: 9px; box-shadow: none; background: #0B0B0B; border: 1px solid #ffffff30; gap: 4px; }
.nx-newsletter .nx-subscribe__pill:focus-within { border-color: #C9A227; box-shadow: 0 0 0 3px #c9a22718; }
.nx-newsletter .nx-subscribe__field { padding-left: 12px; }
.nx-newsletter .nx-subscribe__field input { color: #fff; padding-block: 14px; font-size: 13px; }
.nx-newsletter .nx-subscribe__icon { color: #C9A227; }
.nx-newsletter .nx-subscribe__submit { padding: 14px 18px; background: #E60000; border-radius: 5px; font-size: 10px; letter-spacing: .07em; border: 1px solid #E60000; }
.nx-newsletter .nx-subscribe__submit:is(:hover, :focus-visible) { background: #fff; color: #E60000; border-color: #C9A227; }
.nx-newsletter__note { margin: 12px 0 0; color: #858585; font-size: 11px; }
@media (max-width: 767px) {
    #home-subscribe { padding: 32px 0; }
    .nx-newsletter { grid-template-columns: 1fr; gap: 26px; padding: 28px 22px; }
    .nx-newsletter .nx-subscribe__pill { flex-direction: column; padding: 6px; border-radius: 10px; }
    .nx-newsletter .nx-subscribe__submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    body :is(button, [role="button"], .btn, [class*="-btn"], .drawer-foot-cta, .home-category-action) { transition: none; }
}

/* Collections live directly in the desktop masthead. */
@media (min-width: 1100px) {
    .site-header--editorial > .editorial-header-row { grid-template-columns: 110px 1fr 155px; gap: 18px; padding-inline: clamp(24px, 3vw, 48px); }
    .site-header--editorial .editorial-menu-toggle { display: none; }
    .site-header--editorial .editorial-top-nav { gap: clamp(14px, 1.5vw, 24px); }
    .site-header--editorial .editorial-top-nav .nav-dropdown > button,
    .site-header--editorial .editorial-top-nav > a,
    .site-header--editorial .editorial-top-nav > button { font-size: 10px; letter-spacing: .07em; }
    .site-header--editorial .editorial-top-nav > a:last-child { right: clamp(24px, 3vw, 48px); }
    .site-header--editorial .editorial-top-nav > .header-category { display: inline-flex; }
    .site-header--editorial .editorial-top-nav .nav-dropdown > button { border-radius: 6px; padding-inline: 6px; }
}
.site-header--editorial .header-category .header-category__panel {
    left: 0; right: auto; width: 280px; max-width: calc(100vw - 32px); padding: 18px 10px 10px;
    border: 1px solid #c9a22740; border-top: 2px solid #C9A227; border-radius: 0 0 12px 12px;
    background: #fff; box-shadow: 0 18px 44px #0003;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}
.header-category__eyebrow { display: block; padding: 0 12px 10px; font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8a6a12; }
.site-header--editorial .header-category__panel a { display: flex; justify-content: space-between; min-height: 38px; padding: 10px 12px; border-radius: 6px; color: #202020; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; transition: color .2s ease, background .2s ease, padding .2s ease; }
.site-header--editorial .header-category__panel a:hover,
.site-header--editorial .header-category__panel a:focus-visible { background: #e6000008; color: #E60000; padding-left: 16px; }
.site-header--editorial .header-category__panel .header-category__all { color: #E60000; font-weight: 700; border-bottom: 1px solid #eee; margin-bottom: 6px; border-radius: 0; }
.header-category:focus-within .dropdown-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(4px); }
@media (max-width: 1099px) {
    .site-header--editorial .editorial-top-nav > .header-category { display: none; }
}
@media (max-width: 767px) {
    .site-header--editorial .editorial-top-nav > .header-blog-link { display: none; }
}

/* Category campaign artwork stays uncropped, including text baked into banners. */
.category-campaign { padding-top: 76px; background: #0B0B0B; }
.category-campaign__image-link { display: block; }
.category-campaign__image { display: block; width: 100%; height: auto; }
.category-campaign__bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px clamp(20px, 4vw, 64px); border-bottom: 1px solid #c9a22740; color: white; }
.category-campaign__bar > span { font-size: 17px; font-weight: 700; }
.category-campaign__bar small { display: block; color: #C9A227; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }
.category-campaign__bar > div { display: flex; gap: 10px; }
.category-campaign__bar .catalog-btn { background: #E60000; color: white; border: 1px solid #E60000; border-radius: 6px; padding: 10px 18px; font-size: 11px; }
.category-campaign__bar .catalog-btn--outline { background: transparent; border-color: #ffffff50; }
.category-campaign__bar .catalog-btn:hover { background: white; color: #E60000; border-color: #C9A227; }
@media (max-width: 767px) {
    .category-campaign { padding-top: 68px; }
    .category-campaign__bar { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 20px; }
    .category-campaign__bar > div { flex-wrap: wrap; }
}
.category-campaign > .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Compact campaigns and direct category navigation. */
.site-header--editorial,
.site-header--editorial.site-header--solid,
.site-header--editorial.is-scrolled { background: #E60000; }
.site-header--editorial > .editorial-header-row { background: linear-gradient(110deg, #c90000, #E60000 55%, #c90000); border-bottom-color: #ffffff25; backdrop-filter: none; }
.site-header--editorial .editorial-top-nav > a,
.site-header--editorial .editorial-top-nav > .nav-dropdown > a,
.site-header--editorial .editorial-top-nav > .nav-dropdown > button,
.site-header--editorial .editorial-top-nav > button { color: #fff; }
.site-header--editorial .editorial-top-nav > a:last-child { background: #fff; color: #E60000; border-color: white; box-shadow: 0 4px 16px #81000020; }
.site-header--editorial .editorial-top-nav > a:last-child:hover { background: #0B0B0B; color: #fff; border-color: #C9A227; }
.site-header--editorial .editorial-top-nav .header-category { gap: 0; }
.site-header--editorial .editorial-top-nav .header-category__link { min-height: 44px; padding: 0 2px 0 6px; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; border-radius: 5px; transition: color .25s ease, background .25s ease; }
.site-header--editorial .editorial-top-nav .header-category__link:hover { color: #fff; background: #ffffff14; }
.site-header--editorial .editorial-top-nav .header-category__toggle { min-width: 20px; width: 20px; padding: 0; min-height: 40px; border-radius: 5px; }
.site-header--editorial .editorial-top-nav .header-category__toggle::after { margin-inline: 0; }
.site-header--editorial .editorial-top-nav .header-category__toggle:hover { color: #E60000; }
.category-campaign__image { height: clamp(220px, 28vw, 340px); object-fit: contain; background: #0B0B0B; }
.category-campaign--martial-arts .category-campaign__image { object-fit: cover; object-position: center 42%; }
.category-campaign__bar { padding-block: 12px; }
#cat-products { scroll-margin-top: 88px; }
@media (max-width: 767px) {
    .category-campaign__image { height: auto; max-height: 250px; object-fit: contain; }
    .category-campaign--martial-arts .category-campaign__image { height: 220px; object-fit: cover; }
    .category-campaign__bar { flex-direction: row; flex-wrap: wrap; gap: 10px; }
    .category-campaign__bar > span { font-size: 14px; }
    .category-campaign__bar .catalog-btn { padding: 8px 12px; font-size: 10px; }
}

/* Keep masthead labels readable over white hover/open surfaces. */
.site-header--editorial .editorial-top-nav > .nav-dropdown > button:is(:hover, :focus-visible),
.site-header--editorial .editorial-top-nav > .nav-dropdown.is-open > button,
.site-header--editorial .editorial-top-nav > .nav-dropdown:hover > button {
    background: #FFFFFF;
    color: #E60000;
    border-color: #C9A227;
}
.site-header--editorial .editorial-top-nav > .nav-dropdown > button:is(:hover, :focus-visible)::after,
.site-header--editorial .editorial-top-nav > .nav-dropdown.is-open > button::after,
.site-header--editorial .editorial-top-nav > .nav-dropdown:hover > button::after {
    border-color: #E60000;
}
.site-header--editorial .editorial-top-nav > .editorial-search-open:is(:hover, :focus-visible) {
    color: #E60000;
}

/* Taller, edge-to-edge category campaigns. */
.category-campaign { width: 100%; max-width: none; }
.category-campaign__image-link { width: 100%; }
.category-campaign__image {
    width: 100%;
    max-width: none;
    height: clamp(316px, calc(28vw + 96px), 436px);
    object-fit: cover;
    object-position: center;
}
@media (max-width: 767px) {
    .category-campaign__image,
    .category-campaign--martial-arts .category-campaign__image {
        width: 100%;
        height: 316px;
        max-height: none;
        object-fit: cover;
    }
}

/* Black masthead across default, solid and scrolled states. */
.site-header--editorial,
.site-header--editorial.site-header--solid,
.site-header--editorial.is-scrolled,
.site-header--editorial > .editorial-header-row {
    background: #0B0B0B;
}

/* Product cards: complete product photography and a compact buying summary. */
.catalog-page .catalog-card--pro {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid #e8e5df;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px #0b0b0b08;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.catalog-page .catalog-card--pro:hover {
    transform: translateY(-5px);
    border-color: #C9A227;
    box-shadow: 0 16px 36px #0b0b0b12;
}
.catalog-page .catalog-card--pro .catalog-card__media {
    display: grid;
    place-items: center;
    height: 310px;
    min-height: 0;
    aspect-ratio: auto;
    padding: 16px;
    background: #f8f8f6;
    border-bottom: 1px solid #eeece7;
    overflow: hidden;
}
.catalog-page .catalog-card--pro .catalog-card__media img,
.catalog-page .catalog-card--pro:hover .catalog-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 278px;
    object-fit: contain;
    object-position: center;
    transform: none;
    border-radius: 6px;
    filter: none;
}
.catalog-page .catalog-card--pro .catalog-card__shine { display: none; }
.catalog-page .catalog-card--pro .catalog-card__body { flex: 1; padding: 20px; gap: 0; }
.catalog-page .catalog-card--pro .catalog-card__cat { margin: 0 0 10px; color: #9b7616; font-size: 9px; letter-spacing: .14em; font-weight: 700; }
.catalog-page .catalog-card--pro .catalog-card__title { margin: 0 0 10px; min-height: 44px; font-size: 17px; line-height: 1.3; letter-spacing: -.025em; font-weight: 700; color: #0B0B0B; }
.catalog-page .catalog-card--pro .catalog-card__title a { color: inherit; text-decoration: none; }
.catalog-page .catalog-card--pro .catalog-card__title a:hover { color: #E60000; }
.catalog-page .catalog-card--pro .catalog-card__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0 0 20px; min-height: 42px; color: #707070; font-size: 12px; line-height: 1.75; }
.catalog-page .catalog-card--pro .catalog-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid #eeece7; }
.catalog-page .catalog-card--pro .catalog-card__actions .catalog-btn { width: 100%; min-width: 0; min-height: 42px; padding: 10px 8px; border-radius: 7px; font-size: 10px; font-weight: 700; letter-spacing: .015em; }
.catalog-page .catalog-card--pro .catalog-btn--gold { background: #E60000; border-color: #E60000; color: #fff; }
.catalog-page .catalog-card--pro .catalog-btn--white { background: #fff; color: #202020; border-color: #dedbd4; }
.catalog-page .catalog-card--pro .catalog-btn--gold:is(:hover, :focus-visible) { background: #fff; color: #E60000; border-color: #C9A227; }
.catalog-page .catalog-card--pro .catalog-btn--white:is(:hover, :focus-visible) { background: #E60000; color: #fff; border-color: #C9A227; }
@media (max-width: 600px) {
    .catalog-page .catalog-card--pro .catalog-card__media { height: 330px; }
    .catalog-page .catalog-card--pro .catalog-card__media img { max-height: 298px; }
}
@media (prefers-reduced-motion: reduce) { .catalog-page .catalog-card--pro { transition: none; } }

/* Wider, shorter catalogue cards with a restrained two-tone frame. */
.catalog-page .catalog-grid.catalog-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.catalog-page .catalog-card--pro {
    border: 1px solid transparent;
    border-radius: 14px;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #C9A227, #e8e5df 30%, #e8e5df 70%, #E60000) border-box;
    box-shadow: 0 5px 18px #0b0b0b08;
}
.catalog-page .catalog-card--pro:hover {
    border-color: transparent;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #E60000, #C9A227) border-box;
    box-shadow: 0 12px 28px #c9a22720;
    transform: translateY(-3px);
}
.catalog-page .catalog-card--pro .catalog-card__media { height: 225px; padding: 12px; }
.catalog-page .catalog-card--pro .catalog-card__media img,
.catalog-page .catalog-card--pro:hover .catalog-card__media img { max-height: 201px; object-fit: contain; }
.catalog-page .catalog-card--pro .catalog-card__body { padding: 16px 18px; }
.catalog-page .catalog-card--pro .catalog-card__cat { margin-bottom: 7px; }
.catalog-page .catalog-card--pro .catalog-card__title { min-height: 0; margin-bottom: 8px; font-size: 17px; }
.catalog-page .catalog-card--pro .catalog-card__text { -webkit-line-clamp: 1; min-height: 21px; margin-bottom: 12px; }
.catalog-page .catalog-card--pro .catalog-card__actions { padding-top: 12px; }
.catalog-page .catalog-card--pro .catalog-card__actions .catalog-btn { min-height: 38px; padding-block: 8px; }
@media (max-width: 980px) { .catalog-page .catalog-grid.catalog-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 600px) { .catalog-page .catalog-grid.catalog-grid--4 { grid-template-columns: 1fr; } }

/* Four compact catalogue cards on desktop. */
@media (min-width: 981px) {
    .catalog-page .catalog-grid.catalog-grid--4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }
}

/* Keep the masthead below the announcement until both scroll together. */
body.is-home-page .site-header--editorial:not(.is-scrolled) {
    top: var(--announcement-height, 36px);
}
@media (max-width: 991px) {
    .home-section--hero .editorial-hero {
        height: auto;
        min-height: min(780px, 100svh);
        padding-top: 160px;
    }
    .home-section--hero .editorial-hero-video {
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
    }
    .home-section--hero .editorial-hero-copy {
        margin-top: auto;
        padding-bottom: 28px;
    }
    .home-section--hero .editorial-hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        height: auto;
    }
    .home-section--hero .editorial-hero-btn {
        flex: 1 1 140px;
        height: 44px;
        min-height: 44px !important;
        padding: 10px 12px;
        border-radius: 24px;
        font-size: 10px;
        box-sizing: border-box;
    }
}
@media (max-width: 767px) {
    .announcement-bar p { font-size: 11px; line-height: 1.4; }
    .site-header--editorial > .editorial-header-row { gap: 8px; padding-inline: 12px; }
    .site-header--editorial .editorial-header-left { gap: 8px; }
    .site-header--editorial .editorial-top-nav { gap: 8px; }
    .site-header--editorial .editorial-top-nav > .editorial-search-open { font-size: 0; gap: 0; width: 36px; }
    .site-header--editorial .editorial-top-nav > a:last-child { padding-inline: 12px; font-size: 9px; }
    .home-section--hero { min-height: 0; }
    .home-section--hero .editorial-hero-copy { padding-top: 100px; }
    .home-section--hero .editorial-hero-kicker { font-size: 9px; }
    .home-section--hero .editorial-hero-tagline { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Compact, directly accessible administration navigation on phones/tablets. */
@media (max-width: 991px) {
    .admin-sidebar { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 16px; height: auto; min-height: 0; }
    .admin-sidebar .admin-brand { flex-basis: 100%; margin-bottom: 10px; padding-bottom: 10px; }
    .admin-sidebar .admin-nav-group, .admin-sidebar .admin-nav-group nav { display: contents; }
    .admin-sidebar .admin-nav-label, .admin-sidebar-foot { display: none; }
    .admin-sidebar nav a { flex: 1 0 auto; min-height: 44px; padding: 10px 12px; margin: 0; font-size: 12px; }
    .admin-sidebar .admin-nav-icon { width: 16px; height: 16px; }
    .admin-topbar { flex-wrap: wrap; gap: 14px; padding: 18px 16px; }
    .admin-user { flex-wrap: wrap; gap: 8px; }
    .admin-main, .admin-panel, .admin-chart-panel, .admin-content { min-width: 0; max-width: 100%; }
    .admin-welcome__stats { flex-wrap: wrap; }
    .admin-welcome__stat { min-width: 0; }
    .admin-panel .panel-title { flex-wrap: wrap; gap: 10px; }
    .responsive-table { max-width: 100%; overflow-x: auto; }
    .admin-body .responsive-table table { display: table; min-width: 540px; }
}
@media (max-width: 600px) {
    .admin-quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-quick-actions a { min-width: 0; font-size: 12px; padding: 12px; }
    .login-card { width: min(440px, calc(100% - 32px)); margin: 16px auto; padding: 24px; box-sizing: border-box; }
}

@media (max-width: 1099px) {
    .site-header--editorial .editorial-menu-toggle { position: static; flex-shrink: 0; z-index: auto; display: flex; }
}

/* Preserve the complete campaign artwork on narrow screens. */
@media (max-width: 767px) {
    .category-campaign__image,
    .category-campaign--martial-arts .category-campaign__image {
        display: block;
        width: 100%;
        height: auto;
        min-height: 0;
        object-fit: contain;
    }
}
