/* Shop by Industry pages (/industries, /industries/<sector>) - generated by scripts/build-industries.js */

/* Variables the mobile footer and bottom nav expect (normally from mobile/css/mobile.css, which is not
   loaded here because its unscoped .product-* rules would restyle the shop cards). */
:root {
    --purple: #273469;
    --purple-dark: #1E2749;
    --purple-light: #E4D9FF;
    --gray-50: #FAFAFF;
    --gray-100: #f0eef5;
    --gray-200: #e0dde8;
    --gray-300: #c8c5d3;
    --gray-400: #8b8a95;
    --gray-500: #5c5b66;
    --gray-600: #454350;
    --gray-700: #30343F;
    --gray-800: #30343F;
    --gray-900: #1E2749;
    --white: #FAFAFF;
    --black: #1E2749;
    --radius-full: 9999px;
    --transition-fast: 150ms ease;
    --bottom-nav-height: 64px;
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --ind-navy: #273469;
    --ind-ink: #161821;
    --ind-muted: #5b6070;
    --ind-line: #e5e7eb;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.ind-page {
    margin: 0;
    min-height: 100vh;
    background: #f7f7f8;
    color: var(--ind-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    overflow-x: hidden;
}

.ind-page img {
    max-width: 100%;
}

/* ------------------------------------------------------------------ mobile bar + bottom nav */

.ind-mobile-bar {
    min-height: 64px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border-bottom: 1px solid var(--ind-line);
    position: sticky;
    top: 0;
    z-index: 90;
}

.ind-back {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--ind-navy);
}

.ind-brand {
    display: block;
    color: var(--ind-navy);
    font-size: 14px;
    font-weight: 800;
}

.ind-brand span {
    color: #ff6b00;
}

.ind-mobile-title {
    display: block;
    margin-top: 1px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ind-page .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
    padding-bottom: var(--safe-area-bottom);
    background: #fff;
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
}

.ind-page .bottom-nav .nav-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    color: var(--gray-500);
    text-decoration: none;
}

.ind-page .bottom-nav .nav-item-label {
    font-size: 10px;
    font-weight: 500;
}

/* ------------------------------------------------------------------ layout */

.ind-main {
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px 24px 72px;
}

.ind-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--ind-muted);
}

.ind-breadcrumb a {
    color: var(--ind-navy);
    text-decoration: none;
}

.ind-breadcrumb a:hover {
    text-decoration: underline;
}

.ind-eyebrow {
    margin: 0 0 10px;
    color: #6d4fe5;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ind-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--ind-line);
    border-radius: 20px;
}

.ind-hero h1,
.ind-hub-intro h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4.4vw, 48px);
    line-height: 1.05;
    letter-spacing: -.03em;
    color: var(--ind-ink);
}

.ind-intro {
    margin: 0 0 14px;
    max-width: 620px;
    color: #3d4254;
    font-size: 17px;
    line-height: 1.6;
}

.ind-meta {
    margin: 0 0 20px;
    color: var(--ind-muted);
    font-size: 13px;
    line-height: 1.5;
}

.ind-hero__media {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #eceef3;
}

.ind-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ind-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ind-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.ind-btn--primary {
    background: var(--ind-navy);
    color: #fff;
}

.ind-btn--primary:hover {
    background: #1a244d;
}

.ind-btn--ghost {
    background: #fff;
    color: var(--ind-navy);
    border: 1.5px solid var(--ind-navy);
}

.ind-btn--ghost:hover {
    background: #f1f3fa;
}

/* Category jump links */
.ind-jump {
    position: sticky;
    top: var(--brandeduk-site-header-height, 0px);
    z-index: 20;
    margin: 20px -24px 0;
    padding: 10px 24px;
    background: rgba(247, 247, 248, .96);
    backdrop-filter: blur(6px);
}

.ind-jump__inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ind-jump__inner::-webkit-scrollbar {
    display: none;
}

.ind-jump a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--ind-line);
    border-radius: 999px;
    background: #fff;
    color: var(--ind-navy);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.ind-jump a span {
    color: var(--ind-muted);
    font-weight: 500;
}

.ind-jump a:hover {
    border-color: var(--ind-navy);
}

/* Groups */
.ind-group {
    margin-top: 36px;
    scroll-margin-top: calc(var(--brandeduk-site-header-height, 0px) + 72px);
}

.ind-group__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ind-line);
}

.ind-group__head h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--ind-ink);
}

.ind-group__count {
    flex-shrink: 0;
    color: var(--ind-muted);
    font-size: 13px;
}

/* ------------------------------------------------------------------ product grid + card (matches shop-pc.html) */

.ind-page .products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.ind-page .product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    border: 1px solid #f3f4f6;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ind-page .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .1);
}

.ind-page .product-card:focus-within {
    box-shadow: 0 0 0 2px var(--ind-navy);
}

.ind-page .product-media {
    position: relative;
    padding: 16px;
    background: #fff;
    border: 1px solid #d1d5db;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ind-page .product-image {
    width: 100%;
    height: 100%;
    max-height: 200px;
    object-fit: contain;
}

.ind-page .product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 180px;
}

.ind-page .product-method-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    min-height: 18px;
    margin: 0 0 8px;
}

.ind-page .product-method-row .method-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .06em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.ind-page .product-method-row .method-item svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.ind-page .product-method-row .method-item.embroidery svg {
    width: 22px;
    height: 16px;
}

.ind-page .product-method-row .method-sep {
    width: 1px;
    height: 14px;
    background: #d1d5db;
    flex-shrink: 0;
}

.ind-page .product-method-row .method-item.best-seller { color: #e11d2e; }
.ind-page .product-method-row .method-item.embroidery { color: #2563eb; }
.ind-page .product-method-row .method-item.print { color: #f5a623; }
.ind-page .product-method-row .method-item.recommended { color: #059669; }

.ind-page .product-code-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    min-height: 24px;
}

.ind-page .product-code {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.ind-page .brand-logo {
    height: auto;
    width: auto;
    max-height: 24px;
    max-width: 96px;
    margin-left: auto;
    opacity: .85;
    object-fit: contain;
    object-position: right center;
}

.ind-page .brand-name {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-left: auto;
    text-align: right;
}

.ind-page .product-name {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
}

.ind-page .product-name a {
    color: inherit;
    text-decoration: none;
}

.ind-page .product-name a:focus-visible {
    outline: none;
    text-decoration: underline;
}

.ind-page .product-price {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-bottom: 12px;
    flex-wrap: nowrap;
    white-space: nowrap;
    height: 20px;
}

.ind-page .price-label {
    font-size: 10px;
    color: #10b981;
    font-weight: 600;
}

.ind-page .price-value {
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
}

.ind-page .price-suffix {
    font-size: 9px;
    color: #9ca3af;
}

.ind-page .product-colors-wrapper {
    position: relative;
    margin-top: auto;
    padding-top: 12px;
}

.ind-page .product-colors {
    display: flex;
    gap: 6px;
    align-items: center;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 2px;
    height: 40px;
}

.ind-page .product-colors::-webkit-scrollbar {
    display: none;
}

.ind-page .color-dot {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    background-color: #f3f4f6;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease;
}

.ind-page .color-dot:hover {
    transform: scale(1.1);
}

.ind-page .color-dot.active {
    border-color: #E4D9FF;
}

.ind-page .color-slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.ind-page .color-arrow {
    width: 24px;
    height: 24px;
    padding: 0;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    transition: all .2s ease;
}

.ind-page .color-arrow:hover {
    background: #E4D9FF;
    color: #fff;
    border-color: #E4D9FF;
}

.ind-page .color-progress {
    flex: 1;
    height: 4px;
    margin: 0 8px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.ind-page .color-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #17a2b8, #E4D9FF);
    border-radius: 2px;
    transition: width .3s ease;
}

/* ------------------------------------------------------------------ quote band + other industries */

.ind-quote {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 48px;
    padding: 28px 32px;
    border-radius: 18px;
    background: linear-gradient(135deg, #273469 0%, #1a244d 100%);
    color: #fff;
}

.ind-quote h2 {
    margin: 0 0 6px;
    font-size: 24px;
    letter-spacing: -.02em;
}

.ind-quote p {
    margin: 0;
    max-width: 640px;
    color: rgba(255, 255, 255, .82);
    font-size: 15px;
    line-height: 1.55;
}

.ind-quote .ind-btn--primary {
    flex-shrink: 0;
    background: #fff;
    color: var(--ind-navy);
}

.ind-quote .ind-btn--primary:hover {
    background: #E4D9FF;
}

.ind-others {
    margin-top: 36px;
}

.ind-others h2 {
    margin: 0 0 12px;
    font-size: 18px;
    color: var(--ind-ink);
}

.ind-others__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ind-others__list a {
    padding: 9px 16px;
    border: 1px solid var(--ind-line);
    border-radius: 999px;
    background: #fff;
    color: var(--ind-navy);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.ind-others__list a:hover {
    border-color: var(--ind-navy);
}

/* ------------------------------------------------------------------ hub */

.ind-hub-intro {
    max-width: 760px;
    margin: 8px 0 28px;
}

.ind-sector-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ind-sector-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ind-line);
    border-radius: 16px;
    background: #fff;
    color: var(--ind-ink);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.ind-sector-card:hover,
.ind-sector-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, .12);
}

.ind-sector-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eceef3;
}

.ind-sector-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.ind-sector-card:hover .ind-sector-card__media img {
    transform: scale(1.04);
}

.ind-sector-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2px 12px;
    padding: 16px 18px 18px;
}

.ind-sector-card__title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.ind-sector-card__count {
    grid-column: 1;
    color: var(--ind-muted);
    font-size: 13px;
}

.ind-sector-card__cta {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: var(--ind-navy);
    font-size: 14px;
    font-weight: 700;
}

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1199px) {
    .ind-page .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 899px) {
    .ind-hero {
        grid-template-columns: 1fr;
    }

    .ind-hero__media {
        order: -1;
    }

    .ind-page .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .ind-sector-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ind-quote {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 699px) {
    body.ind-page {
        padding-top: 0 !important;
        padding-bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
    }

    .ind-page .site-header,
    .ind-page .top-promo-bar,
    .ind-page .header-with-promo,
    .ind-page [data-pc-footer] {
        display: none !important;
    }

    .ind-main {
        padding: 14px 14px 40px;
    }

    .ind-breadcrumb {
        display: none;
    }

    .ind-hero {
        gap: 18px;
        padding: 14px;
        border-radius: 16px;
    }

    .ind-intro {
        font-size: 15px;
    }

    .ind-cta-row .ind-btn {
        flex: 1 1 100%;
    }

    .ind-jump {
        top: 64px;
        margin: 14px -14px 0;
        padding: 8px 14px;
    }

    .ind-group {
        margin-top: 26px;
        scroll-margin-top: 130px;
    }

    .ind-group__head h2 {
        font-size: 20px;
    }

    .ind-page .products-grid {
        gap: 10px;
    }

    .ind-page .product-card:hover {
        transform: none;
        box-shadow: none;
    }

    .ind-page .product-media {
        padding: 8px;
    }

    .ind-page .product-info {
        padding: 10px;
        min-height: 0;
    }

    .ind-page .product-method-row .method-item {
        font-size: 8px;
    }

    .ind-page .product-method-row .method-item.embroidery svg {
        width: 18px;
        height: 13px;
    }

    .ind-page .product-code {
        font-size: 11px;
    }

    .ind-page .brand-logo {
        max-height: 18px;
        max-width: 64px;
    }

    .ind-page .brand-name {
        font-size: 9px;
        max-width: 60%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ind-page .product-name {
        font-size: 12.5px;
        height: 35px;
    }

    .ind-page .color-dot {
        width: 26px;
        height: 26px;
    }

    .ind-page .product-colors {
        height: 34px;
    }

    .ind-page .color-slider-controls {
        display: none;
    }

    .ind-quote {
        margin-top: 32px;
        padding: 22px 18px;
    }

    .ind-quote .ind-btn {
        width: 100%;
    }

    .ind-sector-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (min-width: 700px) {
    .ind-mobile-bar,
    .ind-page .bottom-nav,
    .ind-page [data-mobile-footer] {
        display: none !important;
    }

    .ind-main {
        padding-top: 28px;
    }

    /* Match the ticker styling used on home/shop (see mobile/css/terms.css). */
    .ind-page .top-promo-bar {
        margin-top: 0;
        background: linear-gradient(135deg, #273469 0%, #1a244d 100%);
        border-top: 0;
        border-bottom: 0;
    }

    .ind-page .site-header {
        line-height: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ind-page .product-card,
    .ind-sector-card,
    .ind-sector-card__media img {
        transition: none;
    }
}
