/* Home only: restored Printly blue, light surfaces and the refined home layout.
   Product photography, logo colours, managed content and other pages are unchanged. */

body.home-brand-theme {
    --brand-ink: #101c29;
    --brand-ink-hover: #243446;
    --brand-accent: #0051bb;
    --brand-action: #0051bb;
    --brand-action-hover: #004399;
    --brand-accent-soft: #eff6ff;
    --brand-paper: #fff;
    --brand-surface: #f5f9ff;
    --brand-border: #dce6f5;
    --brand-muted: #2b2b2b;
    --primary: var(--brand-action);
    --primary-dark: var(--brand-action-hover);
    --primary-light: var(--brand-surface);
    --primary-mid: var(--brand-border);
    --dark: var(--brand-ink);
    --dark-2: var(--brand-ink-hover);
    --muted: var(--brand-muted);
    --light-bg: var(--brand-surface);
    background: #edf2f9;
    color: var(--brand-ink);
}


/* Announcement and navigation: the colourful logo is the focal point. */

body.home-brand-theme .topbar {
    background: var(--brand-action);
    color: #fff;
    box-shadow: none;
}

body.home-brand-theme .topbar::before {
    display: none;
}

body.home-brand-theme .topbar :is(.topbar-badge, .topbar-text, .topbar-deadline, .topbar-link, .topbar-close) {
    color: #fff;
}

body.home-brand-theme .topbar :is(.topbar-badge, .topbar-deadline) {
    border-color: #ffffff26;
    background: #ffffff0d;
}

body.home-brand-theme .cmn-site-header {
    background: #fff!important;
    border-bottom-color: var(--brand-border)!important;
    box-shadow: none;
}

body.home-brand-theme .cmn-header-logo .brand-lockup__mark {
    width: 132px;
    height: auto;
    max-height: 44px;
    flex: 0 0 auto;
    border-radius: 0;
    object-fit: contain;
}

body.home-brand-theme .cmn-header-menu a {
    color: var(--brand-muted);
}

body.home-brand-theme .cmn-header-menu a:hover {
    background: var(--brand-surface)!important;
    color: var(--brand-ink)!important;
    box-shadow: none!important;
}

body.home-brand-theme .cmn-header-menu a.is-active {
    background: var(--brand-action)!important;
    color: #fff!important;
    box-shadow: none!important;
}

body.home-brand-theme .cmn-header-action:hover {
    background: var(--brand-surface)!important;
    box-shadow: none!important;
}

body.home-brand-theme .cmn-header-account-icon {
    border-color: var(--brand-border)!important;
    background: var(--brand-surface)!important;
    color: var(--brand-action)!important;
    box-shadow: none!important;
}

body.home-brand-theme .cmn-cart-count {
    background: var(--brand-action)!important;
    box-shadow: none;
}

body.home-brand-theme :is(.cmn-menu-toggle, .cmn-menu-close) {
    background: var(--brand-surface);
    border-color: var(--brand-border);
    color: var(--brand-ink);
}

body.home-brand-theme :is(.cmn-mobile-menu, .mobile-drawer) {
    background: #fff;
}

body.home-brand-theme .cmn-mobile-menu-head {
    border-color: var(--brand-border);
}

body.home-brand-theme .cmn-mobile-links a,
body.home-brand-theme .cmn-mobile-links a:hover {
    color: var(--brand-ink);
}

body.home-brand-theme .cmn-mobile-links a[aria-current="page"] {
    background: var(--brand-action);
    border-color: var(--brand-border);
    color: #fff;
}


/* Hero: soft blue-grey backdrop around the merchandise. */

body.home-brand-theme .hero {
    background: radial-gradient(ellipse at 85% 20%, rgba(166, 194, 240, .32), transparent 58%), linear-gradient(135deg, #edf3fc 0%, #f4f7fc 52%, #e8effa 100%);
    padding: 56px 24px 48px;
    border-bottom: 0;
}

body.home-brand-theme .hero-container {
    width: min(1200px, 100%);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
}

body.home-brand-theme .hero-content {
    min-width: 0;
    text-align: left;
}

body.home-brand-theme :is(.hero::before, .hero::after, .hero-product-frame::before) {
    display: none;
}

body.home-brand-theme .hero-title {
    max-width: 620px;
    margin-bottom: 24px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -2.2px;
    color: var(--brand-ink);
}

body.home-brand-theme .hero-title .highlight {
    color: var(--brand-ink);
}

body.home-brand-theme .hero-title-accent {
    color: var(--brand-accent);
    text-decoration: underline;
    text-decoration-color: #dbeafe;
    text-decoration-thickness: .09em;
    text-underline-offset: .12em;
    text-decoration-skip-ink: none;
}

body.home-brand-theme .hero-title .highlight::after {
    display: none;
}

body.home-brand-theme .hero-desc {
    max-width: 430px;
    margin-bottom: 30px;
    color: var(--brand-muted);
    font-size: 14px;
}

body.home-brand-theme :is(.hero-badge, .section-tag) {
    border: 1px solid var(--brand-border);
    background: var(--brand-surface);
    color: var(--brand-muted);
    box-shadow: none;
}

body.home-brand-theme .hero-badge-dot {
    background: var(--brand-accent);
    animation: none;
    box-shadow: none;
}

body.home-brand-theme .hero-badge {
    margin-bottom: 24px;
    padding: 8px 12px;
    border: 1px solid #deeaee;
    border-radius: 999px;
    background: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .035em;
}

body.home-brand-theme .hero-actions {
    align-items: center;
    gap: 24px;
    margin-bottom: 36px;
}

body.home-brand-theme .hero-actions .btn-hero-primary {
    min-height: 48px;
    height: 48px;
    padding: 14px 24px;
    font-size: 13px;
    gap: 20px;
}

body.home-brand-theme .hero-actions .btn-hero-primary i {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 8px;
    background: #ffffff14;
    font-size: 19px;
}

body.home-brand-theme .hero-browse-link {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border: 1px solid var(--brand-border);
    border-radius: 12px;
    background: #fff;
    color: var(--brand-ink);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

body.home-brand-theme .hero-browse-link:hover {
    border-color: #b6cbd1;
    background: #f7fafb;
}

body.home-brand-theme .hero-process {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: 520px;
    margin: 0;
    padding: 8px;
    border: 1px solid #dbe7ef;
    border-radius: 18px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 14px 36px rgba(16, 28, 41, .07);
    backdrop-filter: blur(12px);
    list-style: none;
}

body.home-brand-theme .hero-process li {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 72px;
    padding: 10px 12px;
    border-radius: 13px;
    background: linear-gradient(145deg, #f8fbfc 0%, #f2f8fa 100%);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

body.home-brand-theme .hero-process li:hover {
    z-index: 2;
    background: #fff;
    box-shadow: 0 8px 20px rgba(16, 28, 41, .09);
    transform: translateY(-2px);
}

body.home-brand-theme .hero-process li:not(:last-child)::after {
    content: '›';
    position: absolute;
    z-index: 3;
    top: 50%;
    right: -12px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 1px solid #d9e8ed;
    border-radius: 50%;
    background: #fff;
    color: #007da3;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    box-shadow: 0 3px 10px rgba(16, 28, 41, .08);
    transform: translateY(-50%);
}

body.home-brand-theme .hero-process li>span:first-child {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #007da3;
    border-radius: 12px;
    background: linear-gradient(145deg, #008bb4 0%, #006f93 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: .04em;
    box-shadow: 0 7px 15px rgba(0, 111, 147, .2);
}

body.home-brand-theme .hero-process-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

body.home-brand-theme .hero-process small {
    color: #27819b;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

body.home-brand-theme .hero-process strong {
    color: var(--brand-ink);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.45;
}

body.home-brand-theme :is(.btn-hero-primary, .btn-all-products, .btn-primary-nav) {
    border: 1px solid var(--brand-action);
    border-radius: 14px;
    background: var(--brand-action);
    color: #fff!important;
    box-shadow: 0 4px 8px #101c290a, 0 10px 20px #101c2908;
}

body.home-brand-theme :is(.btn-hero-primary, .btn-all-products, .btn-primary-nav):hover {
    background: var(--brand-action-hover);
    border-color: var(--brand-action-hover);
    box-shadow: 0 5px 12px #101c2910;
    transform: translateY(-1px);
}

body.home-brand-theme .hero-product-frame {
    width: min(100%, 440px);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.home-brand-theme .hero-visual {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 14px;
    overflow: hidden;
    border: 1px solid #d7e4f4;
    border-radius: 30px;
    background: radial-gradient(circle at 12% 12%, rgba(96, 165, 250, .14), transparent 34%), radial-gradient(circle at 88% 88%, rgba(59, 130, 246, .10), transparent 32%), linear-gradient(145deg, #f5f9ff 0%, #eaf2ff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 24px 60px -30px rgba(30, 64, 175, .35);
}

body.home-brand-theme .hero-visual::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 7px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 24px;
    pointer-events: none;
}

body.home-brand-theme .hero-swiper-wrap {
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(203, 216, 235, .9);
    border-radius: 22px;
    background: radial-gradient(circle at 50% 38%, rgba(219, 234, 254, .78), transparent 42%), rgba(255, 255, 255, .82);
    box-shadow: inset 0 1px 0 #fff, 0 14px 34px rgba(30, 64, 175, .07);
    backdrop-filter: blur(14px);
}

body.home-brand-theme .hero-swiper-wrap::before,
body.home-brand-theme .hero-swiper-wrap::after {
    content: '';
    position: absolute;
    z-index: 2;
    width: 18px;
    height: 18px;
    border-color: #9ebbd1;
    border-style: solid;
    opacity: .7;
    pointer-events: none;
}

body.home-brand-theme .hero-swiper-wrap::before {
    top: 14px;
    left: 14px;
    border-width: 1px 0 0 1px;
    border-radius: 4px 0 0;
}

body.home-brand-theme .hero-swiper-wrap::after {
    right: 14px;
    bottom: 14px;
    border-width: 0 1px 1px 0;
    border-radius: 0 0 4px;
}

body.home-brand-theme :is(.heroSwiper, .hero-slide-fallback) {
    min-height: 0;
}

body.home-brand-theme .hero-product-slide {
    min-height: 0;
    padding: 24px 16px 44px;
    gap: 8px;
}

body.home-brand-theme .hero-product-name {
    color: var(--brand-ink);
    font-size: 16px;
    font-weight: 650;
    line-height: 1.35;
}

body.home-brand-theme .hero-glb-viewer {
    min-height: 0;
}

body.home-brand-theme .hero-product-meta {
    margin-top: 4px;
    color: var(--brand-muted);
    font-size: 11px;
    font-weight: 600;
}

body.home-brand-theme .hero-product-frame img {
    filter: drop-shadow(0 22px 22px rgba(30, 64, 175, .12));
}

body.home-brand-theme .hero-product-info {
    min-width: min(240px, calc(100% - 24px));
    max-width: calc(100% - 24px);
    padding: 11px 18px 12px;
    text-align: center;
}

body.home-brand-theme .heroSwiper .swiper-pagination {
    bottom: 15px!important;
}

body.home-brand-theme .heroSwiper .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    margin-inline: 4px;
    transition: width .2s ease, background .2s ease;
}

body.home-brand-theme .heroSwiper .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 999px;
}

body.home-brand-theme :is(.hero-product-meta, .hero-trust-text, .float-label) {
    color: var(--brand-muted);
}

body.home-brand-theme .hero-float-badge {
    border: 1px solid var(--brand-border);
    background: #fff;
    box-shadow: 0 6px 20px #101c2908;
    animation: none;
}

body.home-brand-theme .hero-glb-hint {
    background: #ffffffeb;
    border-color: var(--brand-border);
    color: var(--brand-muted);
    box-shadow: none;
}

body.home-brand-theme .hero-trust-avatars .av {
    background: #e8edf0!important;
    color: var(--brand-ink);
}

body.home-brand-theme .hero-trust-avatars .av:last-child {
    background: var(--brand-ink)!important;
    color: #fff;
}

body.home-brand-theme :is(.hero-stars, .review-stars) {
    color: var(--brand-ink);
}

body.home-brand-theme .swiper-pagination-bullet {
    background: #c4cbd1;
}

body.home-brand-theme .swiper-pagination-bullet-active {
    background: var(--brand-accent);
}


/* Category and product cards share the same neutral treatment. */

body.home-brand-theme :is(.category-showcase-section, .home-products-section, .reviews-bg) {
    background: #edf2f9;
}

body.home-brand-theme .category-showcase-section {
    padding-top: 64px;
    padding-bottom: 64px;
    background: radial-gradient(ellipse at 8% 35%, rgba(183, 205, 240, .28), transparent 56%), linear-gradient(180deg, #edf3fb 0%, #f1f5fa 100%);
}

body.home-brand-theme .category-section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
}

body.home-brand-theme .category-section-heading {
    max-width: 670px;
}

body.home-brand-theme .category-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 11px;
    color: #0051bb;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
}

body.home-brand-theme .category-section-eyebrow::before {
    content: '';
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0051bb, #0051bb);
}

body.home-brand-theme .category-section-title {
    margin: 0;
    color: var(--brand-ink);
    font-size: clamp(22px, 3vw, 22px);
    font-weight: 700;
    line-height: 1.18;
}

body.home-brand-theme .category-section-description {
    max-width: 590px;
    margin: 10px 0 0;
    color: var(--brand-muted);
    font-size: 13px;
    line-height: 1.65;
}

body.home-brand-theme .category-section-link {
    min-height: 44px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 16px;
    border: 1px solid #d2e0ec;
    border-radius: 12px;
    background: rgba(255, 255, 255, .82);
    color: var(--brand-ink);
    font-size: 11px;
    font-weight: 650;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(16, 28, 41, .05);
    transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

body.home-brand-theme .category-section-link i {
    font-size: 15px;
    transition: transform .2s ease;
}

body.home-brand-theme .category-section-link:hover {
    border-color: var(--brand-action);
    background: var(--brand-action);
    color: #fff;
    transform: translateY(-2px);
}

body.home-brand-theme .category-section-link:hover i {
    transform: translateX(3px);
}

body.home-brand-theme .category-showcase {
    gap: 16px;
}

body.home-brand-theme .home-products-section {
    border-top: 1px solid var(--brand-border);
    background: radial-gradient(ellipse at 95% 25%, rgba(190, 208, 241, .3), transparent 60%), linear-gradient(180deg, #f1f5fa 0%, #eaf0f8 100%);
}

body.home-brand-theme .reviews-bg {
    background: radial-gradient(ellipse at 12% 70%, rgba(180, 204, 235, .24), transparent 58%), linear-gradient(180deg, #eaf0f8 0%, #f0f4fa 100%);
}

body.home-brand-theme .home-products-section {
    padding-block: 60px;
}

body.home-brand-theme .home-products-section .section-header {
    text-align: left;
    margin-bottom: 28px;
}

body.home-brand-theme .home-products-section .section-tag {
    padding: 0;
    margin-bottom: 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 10px;
    letter-spacing: .08em;
}

body.home-brand-theme .home-products-section .section-tag::before {
    content: '';
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0051bb, #0051bb);
}

body.home-brand-theme .home-products-section .section-title {
    font-size: clamp(24px, 2.6vw, 30px);
    font-weight: 700;
    line-height: 1.25;
}

body.home-brand-theme .home-products-section .section-desc:empty {
    display: none;
}

body.home-brand-theme .category-feature-cta {
    border: 1px solid var(--brand-action);
    border-radius: 22px;
    background: var(--brand-action);
    box-shadow: none;
}

body.home-brand-theme :is(.category-feature-cta::before, .category-feature-cta::after) {
    display: none;
}

body.home-brand-theme .category-feature-kicker {
    display: block;
    margin-bottom: 22px;
    padding-left: 10px;
    border-left: 2px solid #bfdbfe;
    color: #fff;
    font-size: 9px;
    letter-spacing: .08em;
    font-weight: 500;
}

body.home-brand-theme .category-feature-title {
    color: #fff;
    font-size: 26px;
    line-height: 1.25;
}

body.home-brand-theme .category-feature-copy {
    color: #fff;
    line-height: 1.75;
    font-size: 12px;
}

body.home-brand-theme .category-feature-link {
    border: 1px solid #fff;
    border-radius: 12px;
    background: #fff;
    color: var(--brand-action)!important;
    box-shadow: none;
}

body.home-brand-theme .category-feature-link:hover {
    background: #e8edf0;
    box-shadow: none;
    transform: translateY(-1px);
}

body.home-brand-theme :is(.home-category-card, .product-card, .review-card) {
    border: 1px solid var(--brand-border);
    background: #fff;
    box-shadow: 0 2px 4px #101c2903, 0 8px 20px #101c2905;
}

body.home-brand-theme .home-category-card {
    overflow: hidden;
    border-color: #d9e5f3;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(30, 64, 175, .07);
}

body.home-brand-theme .home-category-card::after {
    content: '';
    position: absolute;
    z-index: 3;
    top: 0;
    left: 28px;
    right: 28px;
    display: block;
    height: 3px;
    border: 0;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    transform: scaleX(.45);
}

body.home-brand-theme .home-category-card:is(:hover, :focus-within) {
    border-color: #a9c6e8;
    box-shadow: 0 20px 42px rgba(30, 64, 175, .13);
    transform: translateY(-5px);
}

body.home-brand-theme .home-category-card:is(:hover, :focus-within)::after {
    opacity: 1;
    transform: scaleX(1);
}

body.home-brand-theme .home-category-media {
    padding-bottom: 76px;
}

body.home-brand-theme .home-category-media img,
body.home-brand-theme .home-category-media product-glb-preview {
    filter: drop-shadow(0 18px 18px rgba(30, 64, 175, .13));
}

body.home-brand-theme .home-category-media img {
    padding: 20px 18px 8px;
}

body.home-brand-theme :is(.home-category-card, .product-card)::before,
body.home-brand-theme :is(.home-category-card, .product-card)::after {
    display: none;
}

body.home-brand-theme :is(.home-category-card, .product-card):is(:hover, :focus-within) {
    border-color: #b6cbd1;
    box-shadow: 0 5px 10px #101c2905, 0 14px 28px #24495810;
}

body.home-brand-theme .home-category-label {
    left: 11px;
    right: 11px;
    bottom: 11px;
    min-height: 60px;
    padding: 9px 9px 9px 14px;
    border-color: rgba(210, 224, 239, .92);
    border-radius: 15px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 10px 24px rgba(30, 64, 175, .07);
    backdrop-filter: blur(12px);
}

body.home-brand-theme .home-category-copy strong {
    color: var(--brand-ink);
    font-size: 13px;
    font-weight: 650;
}

body.home-brand-theme .home-category-copy small {
    margin-top: 2px;
    font-size: 10px;
}

body.home-brand-theme .home-category-label i {
    background: var(--brand-surface);
    color: var(--brand-ink);
}

body.home-brand-theme .home-category-card:hover .home-category-label i {
    background: var(--brand-action);
    color: #fff;
}

body.home-brand-theme :is(.product-category, .home-category-copy small) {
    color: var(--brand-muted);
}

body.home-brand-theme :is(.product-action-primary, .product-action-secondary) {
    border-color: var(--brand-border);
    background: #fff;
    color: var(--brand-ink);
    box-shadow: none;
}

body.home-brand-theme .product-action-primary {
    background: var(--brand-accent-soft);
    color: var(--brand-action);
}

body.home-brand-theme .product-action-primary:hover {
    border-color: var(--brand-action);
    background: var(--brand-action);
    color: #fff;
}

body.home-brand-theme .product-action-secondary:hover {
    border-color: #bdc7ce;
    background: var(--brand-surface);
    color: var(--brand-ink);
}

body.home-brand-theme .product-discount-badge {
    background: var(--brand-action);
    color: #fff;
    box-shadow: none;
}

body.home-brand-theme .product-discount-condition {
    color: var(--brand-muted);
}

body.home-brand-theme .stats-section {
    background: linear-gradient(90deg, #e7eef9 0%, #eff4fc 50%, #e7eef9 100%);
    border-block: 1px solid var(--brand-border);
}

body.home-brand-theme .stats-inner {
    max-width: 1200px;
    margin-inline: auto;
}

body.home-brand-theme .stats-section::before {
    display: none;
}

body.home-brand-theme .stat-item:not(:last-child)::after {
    background: var(--brand-border);
}

body.home-brand-theme .stat-label {
    font-size: 13px;
}

body.home-brand-theme .stat-value {
    color: var(--brand-ink);
}

body.home-brand-theme .stat-label {
    color: var(--brand-muted);
}

body.home-brand-theme .scroll-top {
    background: #fff;
    border: 1px solid var(--brand-border);
    color: var(--brand-ink);
    box-shadow: 0 4px 12px #101c2910;
}

body.home-brand-theme .site-toast-icon {
    background: var(--brand-surface);
    color: var(--brand-ink);
}

body.home-brand-theme :is(a, button):focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 3px;
}

@media(hover:hover) and (pointer:fine) {
    body.home-brand-theme :is(.home-category-card, .product-card):hover {
        transform: translateY(-3px);
    }
    body.home-brand-theme :is(.home-category-card:hover .home-category-media img, .product-card:hover .product-image-wrap img) {
        transform: scale(1.025);
        filter: drop-shadow(0 10px 14px #101c2912);
    }
}

@media(min-width:768px) {
    body.home-brand-theme .category-showcase {
        grid-auto-rows: minmax(300px, auto);
    }
    body.home-brand-theme :is(.category-feature-cta, .home-category-card) {
        height: 100%;
        min-height: 300px;
    }
    body.home-brand-theme .category-feature-cta {
        padding: 28px;
    }
}

@media(max-width:991px) {
    body.home-brand-theme .hero {
        padding: 36px 24px;
    }
    body.home-brand-theme .hero-container {
        gap: 28px;
    }
    body.home-brand-theme .hero-title {
        font-size: 38px;
        letter-spacing: -1.3px;
    }
    body.home-brand-theme .hero-visual {
        padding: 16px;
    }
    body.home-brand-theme .hero-actions {
        gap: 16px;
    }
}

@media(max-width:767px) {
    body.home-brand-theme .cmn-header-logo .brand-lockup__mark {
        width: 110px;
        max-height: 36px;
    }
    body.home-brand-theme .hero {
        padding: 28px 16px 32px;
    }
    body.home-brand-theme .hero-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
    body.home-brand-theme .hero-content {
        width: 100%;
        max-width: 560px;
        margin-inline: auto;
    }
    body.home-brand-theme .hero-badge {
        margin-bottom: 18px;
        font-size: 10px;
    }
    body.home-brand-theme .hero-desc {
        max-width: 450px;
        margin-bottom: 24px;
        font-size: 13px;
    }
    body.home-brand-theme .hero-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 12px 20px;
        margin-bottom: 24px;
    }
    body.home-brand-theme .hero-actions>.btn-hero-primary {
        width: auto;
        flex: 1 1 170px;
        min-height: 48px;
        padding-inline: 16px;
        gap: 12px;
    }
    body.home-brand-theme .hero-actions>.hero-browse-link {
        width: auto;
        min-height: 48px;
        flex: 0 0 auto;
        padding-inline: 12px;
        font-size: 11px;
    }
    body.home-brand-theme .hero-process {
        max-width: none;
        gap: 8px;
        padding: 8px;
    }
    body.home-brand-theme .hero-process strong {
        font-size: 10px;
    }
    body.home-brand-theme .hero-visual {
        max-width: 560px;
        margin-inline: auto;
        padding: 16px;
        border-radius: 22px;
    }
    body.home-brand-theme .hero-swiper-wrap {
        border-radius: 18px;
    }
    body.home-brand-theme .hero-product-info {
        padding: 9px 14px;
    }
    body.home-brand-theme .hero-product-frame {
        width: min(100%, 390px);
    }
    body.home-brand-theme .hero-product-slide {
        padding: 18px 8px 40px;
    }
    body.home-brand-theme .category-showcase-section {
        padding-block: 32px;
    }
    body.home-brand-theme .category-feature-cta {
        padding: 26px;
    }
    body.home-brand-theme .category-feature-kicker {
        margin-bottom: 16px;
        font-size: 8px;
    }
    body.home-brand-theme .category-feature-title {
        font-size: 24px;
    }
    body.home-brand-theme .home-products-section {
        padding-block: 36px;
    }
    body.home-brand-theme .cat-grid.popular-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    body.home-brand-theme .hero-process {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 7px;
    }
    body.home-brand-theme .hero-process li {
        min-height: 64px;
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 8px 10px;
    }
    body.home-brand-theme .hero-process li>span:first-child {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }
    body.home-brand-theme .hero-process li:not(:last-child)::after {
        content: '⌄';
        top: auto;
        right: 50%;
        bottom: -12px;
        transform: translateX(50%);
    }
    body.home-brand-theme .hero-process strong {
        font-size: 11px;
    }
}

@media (max-width: 767px) {
    body.home-brand-theme .category-section-header {
        align-items: flex-start;
        margin-bottom: 22px;
    }
    body.home-brand-theme .category-section-title {
        font-size: clamp(22px, 7vw, 22px);
    }
    body.home-brand-theme .category-section-description {
        font-size: 12px;
    }
    body.home-brand-theme .category-section-link {
        min-height: 42px;
        padding-inline: 13px;
    }
}

@media (max-width: 520px) {
    body.home-brand-theme .category-section-header {
        flex-direction: column;
        gap: 16px;
    }
    body.home-brand-theme .category-section-link {
        width: 100%;
    }
}

@media(prefers-reduced-motion:reduce) {
    body.home-brand-theme :is(.home-category-card, .product-card, .home-category-media img, .product-image-wrap img) {
        transition: none!important;
        transform: none!important;
    }
}


/* Unified homepage catalogue-card hover, matching the detailed product card. */

body.home-brand-theme :is(.home-category-card, .product-card) {
    transition: border-color .24s ease, box-shadow .24s ease, transform .24s ease, background-color .24s ease;
}

body.home-brand-theme :is(.home-category-label, .product-card-info) {
    transition: border-color .24s ease, background-color .24s ease, box-shadow .24s ease;
}

@media (hover:hover) and (pointer:fine) {
    body.home-brand-theme :is(.home-category-card, .product-card):hover {
        background-color: #f8fbff;
        box-shadow: 0 0 0 1px rgba(59, 130, 246, .08), 0 20px 42px rgba(30, 64, 175, .16);
        transform: translateY(-4px);
    }
    body.home-brand-theme .home-category-card:hover .home-category-label {
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 10px 26px rgba(30, 64, 175, .12);
    }
    body.home-brand-theme .product-card:hover .product-card-info {
        background: #f8fbff;
    }
    body.home-brand-theme :is(.home-category-card:hover .home-category-media img, .product-card:hover .product-image-wrap img) {
        transform: translateY(-3px) scale(1.045);
        filter: drop-shadow(0 16px 20px rgba(30, 64, 175, .16));
    }
}

body.home-brand-theme :is(.home-category-card, .product-card):focus-within {
    border-color: #0051bb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12), 0 18px 38px rgba(30, 64, 175, .14);
}


/* Blue top-edge accent revealed on catalogue-card hover. */

body.home-brand-theme :is(.home-category-card, .product-card)::after {
    content: '';
    position: absolute;
    z-index: 6;
    top: 0;
    left: 18px;
    right: 18px;
    display: block;
    height: 2px;
    border: 0;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, transparent, #2563eb 14%, #2563eb 86%, transparent);
    opacity: 0;
    pointer-events: none;
    transform: scaleX(.55);
    transform-origin: center;
    transition: opacity .22s ease, transform .28s ease;
}

body.home-brand-theme :is(.home-category-card, .product-card):is(:hover, :focus-within)::after {
    opacity: 1;
    transform: scaleX(1);
}


/* Give popular products the full card width instead of a 168px thumbnail. */

body.home-brand-theme #productGrid .product-card .product-image-wrap {
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
    aspect-ratio: 1 / 1;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    padding: 10px;
}

body.home-brand-theme #productGrid .product-card .product-image-wrap img {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 575px) {
    body.home-brand-theme #productGrid .product-card .product-image-wrap {
        padding: 8px;
    }
}


/* Category titles sit below the image frame. */

body.home-brand-theme .category-showcase {
    grid-auto-rows: auto;
    align-items: start;
}

body.home-brand-theme .home-category-card,
body.home-brand-theme .home-category-card:is(:hover, :focus-within) {
    height: auto;
    min-height: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

body.home-brand-theme .home-category-card::before,
body.home-brand-theme .home-category-card::after {
    display: none;
}

body.home-brand-theme .home-category-media {
    height: auto;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 1px solid #d9e5f3;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(30, 64, 175, .04);
}

body.home-brand-theme .home-category-media::after {
    content: '';
    position: absolute;
    z-index: 6;
    top: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, transparent, #2563eb 14%, #2563eb 86%, transparent);
    opacity: 0;
    transform: scaleX(.55);
    transition: opacity .22s ease, transform .28s ease;
    pointer-events: none;
}

body.home-brand-theme .home-category-card:is(:hover, :focus-within) .home-category-media::after {
    opacity: 1;
    transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
    body.home-brand-theme .home-category-media::after {
        transition: none;
    }
}

body.home-brand-theme .home-category-media img {
    padding: 0;
}


/* Use the whole frame while keeping the complete uploaded image visible. */

body.home-brand-theme .home-category-media>img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    filter: none;
    transform: none;
}

body.home-brand-theme .home-category-card:is(:hover, :focus-within) .home-category-media>img {
    transform: none;
    filter: none;
}


/* Keep the primary image underneath until the optional second image loads. */

body.home-brand-theme .home-category-media>.home-category-hover-image {
    opacity: 0;
    background: #fff;
    pointer-events: none;
    transition: opacity .22s ease;
}

@media (hover: hover) and (pointer: fine) {
    body.home-brand-theme .home-category-card:hover .home-category-hover-image.is-loaded {
        opacity: 1;
    }
}

body.home-brand-theme .home-category-media:focus-visible>.home-category-hover-image.is-loaded {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    body.home-brand-theme .home-category-media>.home-category-hover-image {
        transition: none;
    }
}

body.home-brand-theme .home-category-card:is(:hover, :focus-within) .home-category-media {
    border-color: #a9c6e8;
}

body.home-brand-theme .home-category-label,
body.home-brand-theme .home-category-card:hover .home-category-label {
    position: static;
    display: block;
    min-height: 0;
    margin: 0;
    padding: 12px 2px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transform: none;
    text-align: left;
}

body.home-brand-theme .home-category-copy,
body.home-brand-theme .home-category-copy strong {
    display: block;
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
}

body.home-brand-theme .home-category-copy strong {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 650;
}

body.home-brand-theme .home-category-label:focus-visible,
body.home-brand-theme a.home-category-media:focus-visible {
    outline: 2px solid #0051bb;
    outline-offset: 4px;
}

@media (max-width: 575px) {
    body.home-brand-theme .home-category-media {
        border-radius: 16px;
    }
    body.home-brand-theme .home-category-media img {
        padding: 0;
    }
    body.home-brand-theme .home-category-label {
        padding-top: 10px;
    }
    body.home-brand-theme .home-category-copy strong {
        font-size: 12px;
    }
}