:root {
    --bg: #f0f4fa;
    --surface: #ffffff;
    --surface-soft: #e8f0fb;
    --text: #0f2340;
    --muted: #5a6f88;
    --line: #c5d6ea;
    --navy: #15256e;
    --navy-2: #2a5fc4;
    --orange: #ffc94a;
    --orange-dark: #f5a623;
    --brand-red: #d83a2f;
    --brand-red-hover: #bf2f25;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 4px 16px rgba(15, 35, 64, 0.06);
    --shadow-md: 0 12px 32px rgba(12, 30, 53, 0.1);
    --shadow-lg: 0 20px 48px rgba(12, 30, 53, 0.14);
    --transition: 0.2s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Noto Sans Thai", "Segoe UI", Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.site-shell { width: min(1200px, 92%); margin: 0 auto; }

/* ── Header ── */
.announcement-bar {
    background: var(--navy);
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
}

.announcement-track {
    display: inline-flex;
    width: max-content;
    padding: 0.4rem 0;
    animation: announcement-scroll 26s linear infinite;
}

.announcement-track span {
    display: inline-block;
    padding: 0 2.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

@keyframes announcement-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .announcement-track {
        animation: none;
    }
}

.topbar {
    background: linear-gradient(90deg, #121f5c 0%, #1e3d8f 55%, #2a5fc4 100%);
    color: #c8daf0;
    font-size: 0.8125rem;
}

.topbar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    min-height: 38px;
}

.topbar-left,
.topbar-right {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.topbar-right a {
    color: #e8f2fc;
    transition: color var(--transition);
}

.topbar-right a:hover { color: #fff; }

.topbar-phone {
    font-weight: 700;
    color: var(--orange) !important;
}

.topbar-phone:hover { color: #ffe08a !important; }

.topbar-social { opacity: 0.85; }

.mainbar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 12px rgba(15, 35, 64, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.mainbar-row {
    display: grid;
    grid-template-columns: auto auto minmax(220px, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.75rem 0;
}

.logo {
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.1;
    letter-spacing: -0.02em;
    transition: opacity var(--transition);
}

.logo:hover { opacity: 0.85; }

.logo small {
    display: block;
    font-size: 0.8rem;
    color: var(--brand-red);
    font-weight: 800;
    letter-spacing: 0.01em;
}

.menu-btn {
    background: var(--brand-red);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    padding: 0.65rem 1rem;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(216, 58, 47, 0.28);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.menu-btn:hover {
    background: var(--brand-red-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(216, 58, 47, 0.35);
}

.category-dropdown {
    position: relative;
}

.category-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    border: 0;
    font-family: inherit;
}

.category-dropdown-chevron {
    font-size: 0.75rem;
    transition: transform var(--transition);
}

.category-dropdown.is-open .category-dropdown-chevron {
    transform: rotate(180deg);
}

.category-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    z-index: 200;
    min-width: 240px;
    max-width: min(320px, 90vw);
    max-height: min(70vh, 420px);
    overflow-y: auto;
    margin: 0;
    padding: 0.4rem;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

.category-dropdown-menu[hidden] {
    display: none !important;
}

.category-dropdown.is-open .category-dropdown-menu:not([hidden]) {
    display: block;
}

.category-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background var(--transition);
}

.category-dropdown-menu a:hover {
    background: var(--surface-soft);
    color: var(--navy);
}

.category-dropdown-menu .cat-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    flex-shrink: 0;
}

.category-dropdown-menu li:first-child a {
    color: var(--navy-2);
    border-bottom: 1px solid var(--line);
    margin-bottom: 0.25rem;
    border-radius: 8px 8px 0 0;
}

.header-search {
    display: grid;
    grid-template-columns: 1fr auto;
    min-height: 42px;
}

.header-search input {
    border: 1.5px solid var(--line);
    border-right: 0;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    padding: 0 1rem;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    background: #fafcff;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.header-search input::placeholder { color: #8fa3bc; }

.header-search input:focus {
    outline: none;
    border-color: var(--navy-2);
    box-shadow: 0 0 0 3px rgba(42, 95, 196, 0.12);
}

.header-search button {
    border: 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: linear-gradient(180deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: #1a2860;
    font-weight: 700;
    font-family: inherit;
    font-size: 0.9rem;
    padding: 0 1.1rem;
    cursor: pointer;
    transition: filter var(--transition);
}

.header-search button:hover { filter: brightness(1.05); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.header-actions a {
    color: #2a415d;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
}

.header-actions a:hover {
    color: var(--navy);
    background: var(--surface-soft);
}

.header-phone {
    color: var(--brand-red) !important;
    font-weight: 800;
}

.header-phone:hover {
    background: transparent !important;
    color: var(--navy) !important;
}

/* ── Flash messages ── */
.message {
    width: min(1200px, 92%);
    margin: 0.75rem auto 0;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
}

.message.success {
    background: #e8f8ef;
    color: #1a6b3a;
    border: 1px solid #a8dfc0;
}

.message.error {
    background: #fef0ef;
    color: #9b2c24;
    border: 1px solid #f0b8b4;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    padding: 0.7rem 1.15rem;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--brand-red);
    color: #fff;
    box-shadow: 0 8px 20px rgba(216, 58, 47, 0.3);
}

.btn-primary:hover {
    background: var(--brand-red-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(216, 58, 47, 0.38);
}

.btn-ghost,
.btn-dark {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(4px);
}

.btn-ghost:hover,
.btn-dark:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.55);
}

.btn-dark-text {
    background: #fff;
    color: var(--navy);
    border-color: var(--line);
}

.btn-dark-text:hover {
    background: var(--surface-soft);
    border-color: #a8c4e0;
}

/* ── Section utilities ── */
.section-eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--navy-2);
}

.section-eyebrow-light { color: rgba(255, 255, 255, 0.75); }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.section-link {
    color: var(--navy-2);
    font-weight: 700;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: color var(--transition);
}

.section-link:hover { color: var(--navy); }

.section-link-light {
    color: rgba(255, 255, 255, 0.9);
}

.section-link-light:hover { color: #fff; }

.section-alt {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.home-section { padding: 2.5rem 0; }

/* ── Hero ── */
.home-hero {
    padding: 0;
    border: none;
    background:
        linear-gradient(105deg, rgba(8, 22, 55, 0.88) 0%, rgba(18, 52, 110, 0.75) 45%, rgba(22, 72, 140, 0.6) 100%),
        url('/img/Front.png') center/cover no-repeat;
    color: #fff;
}

.home-hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    min-height: clamp(380px, 52vh, 520px);
    padding: 2.5rem 0;
}

.home-hero-copy {
    align-self: center;
    background: rgba(12, 32, 72, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: var(--radius);
    padding: 1.5rem 1.35rem;
    max-width: 680px;
    box-shadow: var(--shadow-lg);
}

.home-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #a8c8ec;
}

.home-hero-copy h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3.2vw, 2.4rem);
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.home-hero-copy > p {
    margin: 0;
    color: #dce9f8;
    max-width: 52ch;
    font-size: clamp(0.9rem, 1.4vw, 1.02rem);
    line-height: 1.65;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.1rem 0 1rem;
}

.home-hero-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.home-hero-features article {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.65rem;
}

.feature-icon {
    font-size: 1rem;
    line-height: 1;
    margin-bottom: 0.1rem;
}

.home-hero-features strong {
    display: block;
    font-size: 0.82rem;
}

.home-hero-features span {
    font-size: 0.72rem;
    color: #b8d0ea;
}

/* ── Categories ── */
.category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.85rem;
}

.category-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 246, 252, 0.95) 100%);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    min-height: 168px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 1rem 1rem 0.95rem;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #a8c4e0;
    background:
        linear-gradient(180deg, #fff 0%, #edf4fd 100%);
}

.category-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}

.category-card-copy {
    display: grid;
    gap: 0.45rem;
    width: 100%;
}

.category-card-caption {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--muted);
}

.category-card-arrow {
    margin-left: auto;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(42, 95, 196, 0.08);
    color: var(--navy-2);
    font-weight: 800;
}

.cat-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.35rem;
    line-height: 1;
}

.cat-electric { background: #fff3d6; }
.cat-tools { background: #e8f0ff; }
.cat-plumbing { background: #e0f5ff; }
.cat-paint { background: #fce8f0; }
.cat-bath { background: #e8faf5; }
.cat-hardware { background: #f0ebe8; }

.category-card h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    color: #243f5e;
}

.categories-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.14), transparent 28%),
        radial-gradient(circle at 85% 22%, rgba(255, 255, 255, 0.12), transparent 24%),
        linear-gradient(100deg, var(--navy) 0%, #1c458f 48%, #2a66c5 100%);
    color: #fff;
    padding: 2.35rem 0;
    margin-bottom: 1.35rem;
}

.categories-hero::before,
.categories-hero::after {
    content: "";
    position: absolute;
    inset: auto;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(0);
    opacity: 0.35;
}

.categories-hero::before {
    width: 240px;
    height: 240px;
    right: -80px;
    top: -70px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.04) 45%, transparent 70%);
}

.categories-hero::after {
    width: 320px;
    height: 320px;
    left: -140px;
    bottom: -180px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 45%, transparent 72%);
}

.categories-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 1rem;
    align-items: stretch;
}

.categories-hero-copy,
.categories-hero-card {
    border-radius: calc(var(--radius) + 2px);
}

.categories-hero-copy {
    padding: 0.3rem 0;
}

.categories-hero-copy h1 {
    margin: 0.2rem 0 0.65rem;
    font-size: clamp(1.65rem, 3.2vw, 2.4rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.catalog-lead-light {
    color: rgba(255, 255, 255, 0.92);
}

.categories-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.btn-light {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.categories-hero-card {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    padding: 1.1rem 1.15rem;
    background: rgba(6, 23, 56, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.categories-hero-card-title {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.72);
}

.categories-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.categories-hero-stats div {
    padding: 0.78rem 0.8rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.categories-hero-stats strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.1;
}

.categories-hero-stats span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.72);
}

.categories-hero-list {
    list-style: none;
    display: grid;
    gap: 0.65rem;
    padding: 0;
    margin: 0;
}

.categories-hero-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
}

.categories-hero-list .cat-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.categories-hero-list strong,
.categories-hero-list small {
    display: block;
}

.categories-hero-list strong {
    font-size: 0.9rem;
}

.categories-hero-list small {
    margin-top: 0.1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.72);
}

.categories-hero-note {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.categories-hero-note-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.72);
}

.categories-hero-note strong {
    font-size: 0.95rem;
    word-break: break-all;
}

.category-quick-nav {
    margin: -0.2rem 0 1.25rem;
}

.category-quick-nav-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.category-quick-nav-head h2 {
    margin: 0.1rem 0 0;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    color: var(--navy);
}

.category-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.category-quick-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.95rem 1rem;
    border-radius: var(--radius);
    border: 1px solid #cdddf1;
    background:
        linear-gradient(180deg, #fff 0%, #f5f9fe 100%);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.category-quick-card:hover {
    transform: translateY(-2px);
    border-color: #a7c2ea;
    box-shadow: var(--shadow-md);
}

.category-quick-card-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--navy-2);
}

.category-quick-card strong {
    font-size: 0.95rem;
    color: var(--navy);
}

.category-quick-card span:last-child {
    font-size: 0.8rem;
    color: var(--muted);
}

.category-grid-landing {
    gap: 1rem;
}

.category-detail-page .home-section {
    padding-top: 0;
}

.subcategory-card {
    background:
        linear-gradient(180deg, #fff 0%, #fbfdff 100%);
    border: 1px solid #d9e6f5;
    border-radius: calc(var(--radius) + 2px);
    padding: 1.15rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.subcategory-card-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.subcategory-card-eyebrow {
    margin: 0 0 0.15rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--navy-2);
}

.subcategory-card h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--navy);
}

.subcategory-card-count {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: #eef4fc;
    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.subcategory-product-grid {
    margin-top: 1rem;
}

/* ── Products ── */
.tabs {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tabs span {
    font-size: 0.8rem;
    font-weight: 600;
    border: 1.5px solid var(--line);
    background: var(--surface);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    cursor: default;
    transition: all var(--transition);
    color: var(--muted);
}

.tabs span:hover:not(.is-active) {
    border-color: #a8c4e0;
    color: var(--text);
}

.tabs .is-active {
    background: var(--brand-red);
    color: #fff;
    border-color: var(--brand-red);
    box-shadow: 0 4px 12px rgba(216, 58, 47, 0.25);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.85rem;
}

.product-card {
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 0.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.thumb {
    min-height: 110px;
    border-radius: var(--radius-sm);
    margin-bottom: 0.55rem;
    background: linear-gradient(145deg, #e8eef6 0%, #f4f8fc 100%);
}

.thumb-wire { background: linear-gradient(145deg, #fff8e6 0%, #fde8a8 100%); }
.thumb-bulb { background: linear-gradient(145deg, #fffde8 0%, #fff0a0 100%); }
.thumb-pipe { background: linear-gradient(145deg, #e8f8ff 0%, #b8e4ff 100%); }
.thumb-paint { background: linear-gradient(145deg, #fce8f4 0%, #f0b8d8 100%); }
.thumb-drill { background: linear-gradient(145deg, #eee8f8 0%, #c8b8e8 100%); }
.thumb-cement { background: linear-gradient(145deg, #ece8e4 0%, #c8c0b8 100%); }

.product-card h3 {
    margin: 0 0 0.3rem;
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 700;
    color: var(--text);
    flex: 1;
}

.product-card .price {
    margin: 0 0 0.4rem;
    color: var(--brand-red);
    font-weight: 800;
    font-size: 1rem;
}

.product-card a {
    font-size: 0.8rem;
    color: var(--navy-2);
    font-weight: 700;
    transition: color var(--transition);
}

.product-card a:hover { color: var(--navy); }

/* ── Brand strip ── */
.home-brand-strip {
    margin: 0;
    border-radius: 0;
    background: linear-gradient(100deg, var(--navy) 0%, #1e4088 50%, var(--navy-2) 100%);
    color: #fff;
    padding: 2.5rem 0;
}

.home-brand-strip .section-head h2 { color: #fff; }

.brand-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.65rem;
}

.brand-grid span {
    min-height: 56px;
    background: rgba(255, 255, 255, 0.97);
    color: #1a3d62;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    transition: transform var(--transition), box-shadow var(--transition);
}

.brand-grid span:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* ── Popular groups ── */
.group-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.group-grid article {
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    overflow: hidden;
}

.group-grid article:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.group-thumb {
    min-height: 130px;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.group-electric { background: linear-gradient(140deg, #fff8e0 0%, #ffd878 100%); }
.group-tools { background: linear-gradient(140deg, #e8eeff 0%, #a8c0f0 100%); }
.group-plumbing { background: linear-gradient(140deg, #e0f4ff 0%, #88d0f8 100%); }
.group-paint { background: linear-gradient(140deg, #fce8f8 0%, #e8a0c8 100%); }
.group-bath { background: linear-gradient(140deg, #e8faf5 0%, #88d8c0 100%); }
.group-hardware { background: linear-gradient(140deg, #f0ebe8 0%, #c8b8a8 100%); }
.group-build { background: linear-gradient(140deg, #ece8e4 0%, #b0a898 100%); }
.group-floor { background: linear-gradient(140deg, #f0e8f8 0%, #c8a8e0 100%); }

.group-grid h3 {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.group-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* ── Insight section ── */
.insight-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.05fr);
    gap: 1rem;
    align-items: start;
}

.why-card,
.article-card,
.info-box {
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 1.15rem;
    box-shadow: var(--shadow-sm);
}

.why-card h2 {
    margin: 0 0 0.85rem;
    font-size: 1.2rem;
    font-weight: 800;
}

.why-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.why-card li {
    position: relative;
    padding-left: 1.5rem;
}

.why-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.1rem;
    height: 1.1rem;
    background: #e8f5ef;
    color: #1a7a45;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    line-height: 1;
}

.why-card li strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
}

.why-card li span {
    color: var(--muted);
    font-size: 0.84rem;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.article-grid > article {
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.65rem;
    background: #fafcff;
    transition: box-shadow var(--transition);
}

.article-grid > article:hover {
    box-shadow: var(--shadow-sm);
}

.article-thumb {
    min-height: 88px;
    border-radius: 8px;
    margin-bottom: 0.45rem;
}

.article-paint { background: linear-gradient(140deg, #fce8f4 0%, #e8b0d0 100%); }
.article-pipe { background: linear-gradient(140deg, #e0f4ff 0%, #90d0f8 100%); }
.article-electric { background: linear-gradient(140deg, #fff8e0 0%, #ffd060 100%); }

.article-grid h3 {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    line-height: 1.45;
    font-weight: 700;
}

.article-grid a {
    color: var(--navy-2);
    font-weight: 700;
    font-size: 0.78rem;
}

.article-grid a:hover { color: var(--navy); }

/* ── Articles (public) ── */
.articles-page {
    padding: 0;
}

.articles-page .site-shell {
    width: min(1200px, 94%);
    margin-left: auto;
    margin-right: auto;
}

.articles-page .catalog-hero {
    padding: 2rem 0 2.25rem;
}

.articles-page .catalog-hero .site-shell {
    width: min(1200px, 94%);
}

.articles-page .catalog-hero h1 {
    max-width: none;
}

.articles-page .catalog-hero p {
    max-width: 65ch;
}

.articles-page .home-section {
    padding: 2.5rem 0 3rem;
}

.articles-page .home-section > .site-shell {
    display: block;
    width: min(1200px, 94%);
}

.articles-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    width: 100%;
    max-width: 100%;
}

.articles-page .articles-list-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.articles-list-grid-compact {
    gap: 0.75rem;
    grid-template-columns: 1fr;
}

.article-preview-card {
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
    width: 100%;
    min-width: 0;
}

.article-preview-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.article-preview-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.article-preview-link .article-thumb,
.article-preview-link .article-thumb-placeholder {
    width: 100%;
    min-height: 160px;
    border-radius: 0;
    margin: 0;
    object-fit: cover;
}

.articles-page .article-preview-link .article-thumb,
.articles-page .article-preview-link .article-thumb-placeholder {
    min-height: 200px;
    max-height: 220px;
}

.article-thumb-placeholder {
    display: block;
}

.article-thumb-placeholder.article-paint { background: linear-gradient(140deg, #fce8f4 0%, #e8b0d0 100%); }
.article-thumb-placeholder.article-pipe { background: linear-gradient(140deg, #e0f4ff 0%, #90d0f8 100%); }
.article-thumb-placeholder.article-electric { background: linear-gradient(140deg, #fff8e0 0%, #ffd060 100%); }
.article-thumb-placeholder.article-default { background: linear-gradient(140deg, #e8eef6 0%, #c8d8ec 100%); }

.article-preview-body {
    padding: 0.85rem 0.95rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-preview-date {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--navy-2);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.article-preview-body h3 {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 800;
    color: var(--text);
}

.article-preview-body p {
    margin: 0 0 0.5rem;
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.5;
    flex: 1;
}

.article-read-more {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--navy-2);
}

.article-preview-card:hover .article-read-more {
    color: var(--brand-red);
}

.article-detail article.home-section > .site-shell {
    width: min(760px, 94%);
    margin-left: auto;
    margin-right: auto;
}

.article-detail .home-section.section-alt > .site-shell {
    width: min(1200px, 94%);
}

.article-detail .home-section.section-alt .articles-list-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.article-detail-layout {
    max-width: 100%;
}

.article-detail-header {
    margin-bottom: 1.25rem;
}

.article-detail-date {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--navy-2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.article-detail-header h1 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.35rem, 2.8vw, 2rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.article-detail-lead {
    margin: 0;
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.65;
}

.article-detail-cover {
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1.5px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.article-detail-image,
.article-detail-cover .article-thumb-placeholder {
    display: block;
    width: 100%;
    min-height: 280px;
    object-fit: cover;
}

.article-detail-body {
    color: var(--text);
    line-height: 1.75;
    font-size: 1rem;
}

.article-detail-body p {
    margin: 0 0 1rem;
}

.article-detail-body a {
    color: var(--brand-red);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
}

.article-detail-body a:hover {
    color: var(--navy);
}

.article-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

/* Home insight — article carousel */
.insight-grid .article-card {
    min-width: 0;
}

.article-carousel-viewport {
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.article-carousel-track {
    display: flex;
    transition: transform 0.35s ease;
    will-change: transform;
}

.article-carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.article-carousel .article-preview-card {
    margin: 0;
}

.article-carousel .article-preview-link .article-thumb,
.article-carousel .article-preview-link .article-thumb-placeholder {
    min-height: 140px;
    max-height: 160px;
}

.article-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.article-carousel-btn {
    flex-shrink: 0;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: var(--surface);
    color: var(--navy);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.article-carousel-btn:hover {
    border-color: var(--navy-2);
    color: var(--brand-red);
    background: #f8fbff;
}

.article-carousel-dots {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.article-carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--line);
    cursor: pointer;
    transition: width var(--transition), background var(--transition), border-radius var(--transition);
}

.article-carousel-dot[aria-selected="true"] {
    width: 1.25rem;
    border-radius: 4px;
    background: var(--navy-2);
}

/* ── Contact ── */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.info-box h3 {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.info-box p {
    margin: 0 0 0.4rem;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.info-box-highlight {
    border-color: var(--navy-2);
    background: linear-gradient(160deg, #f8fbff 0%, #eef5ff 100%);
    box-shadow: 0 8px 24px rgba(42, 95, 196, 0.1);
}

.info-hours { font-weight: 600; color: var(--text) !important; }

.info-phone {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-red) !important;
    margin: 0.25rem 0;
}

.info-phone:hover { color: var(--brand-red-hover) !important; }

.info-social {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
}

.info-thumb {
    min-height: 130px;
    border-radius: var(--radius-sm);
    margin-bottom: 0.65rem;
}

.info-showroom { background: linear-gradient(140deg, #e8eef6 0%, #c8d8ec 100%); }

.info-map {
    overflow: hidden;
    padding: 0;
    background: #e8eef6;
}

.info-map-embed {
    display: block;
    width: 100%;
    min-height: 200px;
    height: 200px;
    border: 0;
}

.info-plus-code {
    font-size: 0.88rem;
    color: var(--muted) !important;
}

/* ── Footer ── */
.site-footer {
    background: linear-gradient(180deg, #0f1f4a 0%, #15256e 100%);
    color: #a8c0dc;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 2rem;
    padding: 2.5rem 0 1.5rem;
}

.footer-logo {
    color: #fff !important;
    margin-bottom: 0.65rem;
    display: inline-block;
}

.footer-logo small { color: #ff8a7a; }

.footer-brand p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.65;
    max-width: 32ch;
    color: #8aa8c8;
}

.footer-links h4,
.footer-contact h4 {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: #a8c0dc;
    transition: color var(--transition);
}

.footer-links a:hover { color: #fff; }

.footer-contact p,
.footer-contact span {
    margin: 0 0 0.4rem;
    font-size: 0.88rem;
    line-height: 1.6;
    display: block;
}

.footer-contact a {
    color: var(--orange);
    font-weight: 700;
    font-size: 1rem;
}

.footer-contact a:hover { color: #ffe08a; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0 1.25rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
    color: #6a88a8;
    text-align: center;
}

/* ── Auth / Login ── */
.auth-page {
    min-height: calc(100vh - 180px);
    display: grid;
    place-items: center;
    padding: 2.5rem 1rem;
}

.auth-card {
    width: min(420px, 100%);
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.auth-card h1 {
    margin: 0 0 0.35rem;
    font-size: 1.4rem;
    font-weight: 800;
}

.auth-lead {
    margin: 0 0 1.25rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.auth-form .input {
    margin-bottom: 0.85rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--navy-2);
    box-shadow: 0 0 0 3px rgba(42, 95, 196, 0.12);
}

.auth-submit {
    width: 100%;
    margin-top: 0.25rem;
}

/* ── About page ── */
.about-page {
    padding: 0;
}

.about-hero {
    background:
        linear-gradient(105deg, rgba(8, 22, 55, 0.9) 0%, rgba(18, 52, 110, 0.78) 48%, rgba(22, 72, 140, 0.65) 100%),
        url('/img/store/tools-cordless-aisle.jpg') center/cover no-repeat;
    color: #fff;
    padding: 2rem 0 2.5rem;
}

.about-breadcrumb {
    margin-bottom: 1.25rem;
}

.about-breadcrumb a {
    color: #c8daf0;
}

.about-breadcrumb a:hover {
    color: #fff;
}

.about-breadcrumb span {
    color: rgba(255, 255, 255, 0.75);
}

.about-hero-content {
    max-width: 680px;
}

.about-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #a8c8ec;
}

.about-hero h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3.2vw, 2.35rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.about-hero-lead {
    margin: 0;
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    line-height: 1.65;
    color: #dce9f8;
    max-width: 52ch;
}

.about-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.15rem;
}

.about-stats {
    padding: 1.75rem 0;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.about-stats-grid article {
    text-align: center;
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 0.75rem;
    box-shadow: var(--shadow-sm);
}

.about-stats-grid strong {
    display: block;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.2rem;
}

.about-stats-grid span {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.4;
}

.about-section {
    padding: 2.5rem 0;
}

.about-story-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.5rem;
    align-items: center;
}

.about-story-copy h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
    font-weight: 800;
}

.about-story-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.about-story-copy p + p {
    margin-top: 0.65rem;
}

.about-photo-frame {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1.5px solid var(--line);
    box-shadow: var(--shadow-md);
    background: var(--surface);
}

.about-photo-frame img {
    display: block;
    width: 100%;
    min-height: 300px;
    object-fit: cover;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.about-value-card {
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 1.15rem 1rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.about-value-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.about-value-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface-soft);
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
}

.about-value-card h3 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
}

.about-value-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.55;
}

.about-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.about-gallery-card {
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.about-gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.about-gallery-image {
    overflow: hidden;
}

.about-gallery-image img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.about-gallery-card:hover .about-gallery-image img {
    transform: scale(1.04);
}

.about-gallery-body {
    padding: 1rem 1.05rem 1.1rem;
}

.about-gallery-body h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 800;
}

.about-gallery-body p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.55;
}

.about-contact {
    padding: 2.5rem 0 3rem;
}

.about-contact-card {
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
    border: 1.5px solid #b8d0ea;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.about-contact-copy h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    font-weight: 800;
}

.about-contact-copy p {
    margin: 0 0 1.25rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 50ch;
}

.about-contact-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.about-contact-details article {
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
}

.about-contact-details h3 {
    margin: 0 0 0.4rem;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--navy-2);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.about-contact-details p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.55;
}

.about-contact-details a {
    color: var(--brand-red);
    font-weight: 700;
    font-size: 1.05rem;
}

.about-contact-details a:hover {
    color: var(--brand-red-hover);
}

.about-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* Admin styles: see webroot/css/admin.css */

main table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    max-width: 100%;
}

main .actions ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

main .actions ul li { margin: 0; }

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

/* ── Responsive ── */
@media (max-width: 1240px) {
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .group-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
    .mainbar-row { grid-template-columns: 1fr 1fr; }
    .header-search { grid-column: 1 / -1; }
    .header-actions { justify-content: flex-start; }
    .home-hero-features { grid-template-columns: 1fr; }
    .insight-grid,
    .info-grid,
    .footer-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .categories-hero-inner { grid-template-columns: 1fr; }
    .category-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-grid { grid-template-columns: 1fr; }
    .articles-page .articles-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .about-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-story-grid { grid-template-columns: 1fr; }
    .about-values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-gallery-grid { grid-template-columns: 1fr; }
    .about-contact-details { grid-template-columns: 1fr; }
}

/* ── Catalog & product detail ── */
.catalog-page:not(.articles-page) {
    padding: 2rem 0 3rem;
}

.catalog-page:not(.articles-page) > .site-shell {
    width: min(1200px, 94%);
    margin-left: auto;
    margin-right: auto;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.breadcrumb a {
    color: var(--navy-2);
    font-weight: 600;
}

.breadcrumb a:hover { color: var(--navy); }

.catalog-lead {
    margin: 0.35rem 0 0;
    color: var(--muted);
    max-width: 52ch;
}

.catalog-subsection {
    margin-top: 2rem;
}

.catalog-subsection h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: var(--navy);
}

.catalog-empty {
    color: var(--muted);
    font-size: 0.95rem;
}

.catalog-paginator {
    margin-top: 2rem;
        width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
        text-align: center;
    gap: 0.65rem;
}

.catalog-paginator .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.catalog-paginator > p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.catalog-paginator .pagination a,
.catalog-paginator .pagination span {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.product-detail-main {
    min-height: 360px;
    border-radius: var(--radius);
    background: linear-gradient(145deg, #e8eef6 0%, #f4f8fc 100%);
    background-size: cover;
    background-position: center;
    border: 1.5px solid var(--line);
}

.product-detail-placeholder {
    background: linear-gradient(145deg, #e8eef6 0%, #f4f8fc 100%);
}

.product-detail-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.product-detail-thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    background-size: cover;
    background-position: center;
    background-color: #fff;
    border: 1.5px solid var(--line);
    padding: 0;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-detail-thumb:hover {
    border-color: var(--brand-red);
}

.product-detail-thumb.is-active {
    border-color: var(--brand-red);
    border-width: 2px;
    box-shadow: 0 0 0 2px rgba(224, 49, 49, 0.15);
}

.product-detail-brand {
    margin: 0 0 0.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy-2);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-detail-info h1 {
    margin: 0 0 0.75rem;
    font-size: 1.75rem;
    color: var(--navy);
}

.product-detail-price {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-red);
}

.product-detail-meta,
.product-detail-summary {
    color: var(--muted);
    margin: 0 0 0.75rem;
}

.product-detail-description {
    margin: 1rem 0 1.5rem;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .product-detail-grid { grid-template-columns: 1fr; }
}

/* ── Catalog pages ── */
.catalog-hero {
    background: linear-gradient(100deg, var(--navy) 0%, #1e4088 50%, var(--navy-2) 100%);
    color: #fff;
    padding: 1.75rem 0;
}

.catalog-hero-compact { padding: 1.1rem 0; }

.catalog-hero h1 {
    margin: 0.35rem 0 0;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 800;
}

.catalog-hero p {
    margin: 0.5rem 0 0;
    color: #c8daf0;
    max-width: 60ch;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    font-size: 0.82rem;
    color: #a8c0dc;
}

.breadcrumb a { color: #e8f2fc; }
.breadcrumb a:hover { color: #fff; }

.catalog-empty {
    text-align: center;
    color: var(--muted);
    padding: 2rem 1rem;
    background: var(--surface-soft);
    border-radius: var(--radius);
    border: 1px dashed var(--line);
}

.catalog-filters { margin-bottom: 1rem; }

.tabs a {
    font-size: 0.8rem;
    font-weight: 600;
    border: 1.5px solid var(--line);
    background: var(--surface);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    color: var(--muted);
    transition: all var(--transition);
}

.tabs a.is-active,
.tabs a:hover {
    background: var(--brand-red);
    color: #fff;
    border-color: var(--brand-red);
}

.product-brand {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.product-card h3 a {
    color: inherit;
}

.product-card h3 a:hover { color: var(--navy-2); }

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.product-detail-image,
.product-detail-media .thumb {
    min-height: 320px;
    border-radius: var(--radius);
    width: 100%;
}

.product-detail-info h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 800;
}

.product-lead {
    color: var(--muted);
    margin: 0 0 0.75rem;
}

.product-detail-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-red);
    margin: 0 0 1rem;
}

.product-detail-variants {
    margin: 0 0 1.25rem;
}

.product-detail-variants-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.35rem;
}

.product-detail-variant-select {
    width: 100%;
    max-width: 420px;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1.5px solid var(--line);
    background: #fff;
    font-size: 0.95rem;
    color: var(--navy);
}

.product-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1rem;
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
}

.product-meta dt {
    font-weight: 700;
    color: var(--muted);
}

.product-meta dd { margin: 0; }

.product-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.product-description h2 {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
}

.product-description-body {
    color: var(--muted);
    line-height: 1.7;
}

.pagination-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.pagination-nav a,
.pagination-nav span {
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.85rem;
    background: var(--surface);
}

.pagination-nav a:hover {
    border-color: var(--navy-2);
    color: var(--navy-2);
}

.thumb-placeholder.thumb-default {
    background: linear-gradient(145deg, #e8eef6 0%, #f4f8fc 100%);
}

@media (max-width: 980px) {
    .product-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .topbar { display: none; }
    .site-shell { width: min(1200px, 94%); }
    .category-grid,
    .product-grid,
    .group-grid,
    .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-hero-actions { flex-direction: column; }
    .home-hero-actions .btn { width: 100%; }
    .product-detail-actions { flex-direction: column; }
    .product-detail-actions .btn { width: 100%; text-align: center; }
    .mainbar-row {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        padding: 0.65rem 0;
    }
    .logo { font-size: 1.45rem; }
    .menu-btn { text-align: center; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .home-section { padding: 1.75rem 0; }
    .home-hero-inner { min-height: 320px; padding: 1.75rem 0; }
    .about-stats-grid,
    .about-values-grid { grid-template-columns: 1fr; }
    .categories-hero-stats { grid-template-columns: 1fr; }
    .subcategory-card-head { flex-direction: column; }
    .about-hero { padding: 1.5rem 0 2rem; }
    .about-hero-actions { flex-direction: column; }
    .about-hero-actions .btn,
    .about-contact-actions .btn { width: 100%; }
    .article-detail-actions { flex-direction: column; }
    .article-detail-actions .btn { width: 100%; }
    .articles-page .articles-list-grid { grid-template-columns: 1fr; }
    .articles-page .catalog-hero { padding: 1.5rem 0 1.75rem; }
    .about-section,
    .about-contact { padding: 1.75rem 0; }
}

/* ── Public redesign overrides ── */
:root {
    --bg: #f4f7fc;
    --surface: #ffffff;
    --surface-soft: #eef4fb;
    --text: #172b4d;
    --muted: #60708a;
    --line: #dce5f1;
    --navy: #142d69;
    --navy-2: #2462c7;
    --orange: #f9b233;
    --orange-dark: #f0a11f;
    --brand-red: #e73d32;
    --brand-red-hover: #c92f25;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 6px 20px rgba(20, 45, 105, 0.06);
    --shadow-md: 0 10px 30px rgba(20, 45, 105, 0.10);
    --shadow-lg: 0 18px 44px rgba(20, 45, 105, 0.14);
    --container-width: 1320px;
}

.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;
}

.site-shell {
    width: min(calc(100% - 32px), var(--container-width));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    backdrop-filter: blur(12px);
}

.topbar {
    background: linear-gradient(90deg, #102255 0%, #183178 50%, #23489f 100%);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
}

.topbar-row {
    min-height: 36px;
}

.topbar-left,
.topbar-right {
    gap: 0.9rem;
}

.topbar-phone {
    color: #ffd56a !important;
}

.mainbar {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(220, 229, 241, 0.9);
    box-shadow: 0 8px 26px rgba(20, 45, 105, 0.06);
}

.mainbar-row {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 0.8rem;
    padding: 0.85rem 0;
}

.mainbar-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.header-mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--navy);
    font-size: 1.1rem;
    cursor: pointer;
}

.logo {
    font-size: 1.55rem;
}

.menu-btn {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(231, 61, 50, 0.18);
}

.header-search {
    position: relative;
    min-height: 48px;
    grid-template-columns: 1fr auto;
    background: #f7f9fd;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.header-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #7f92ae;
    pointer-events: none;
}

.header-search-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-search input {
    height: 100%;
    padding: 0 1rem 0 2.5rem;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.header-search input:focus {
    box-shadow: inset 0 0 0 1px rgba(36, 98, 199, 0.18);
}

.header-search button {
    padding: 0 1.1rem;
    background: linear-gradient(180deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: #1f2c55;
}

.header-actions {
    gap: 0.5rem;
}

.header-actions a {
    padding: 0.45rem 0.7rem;
    background: var(--surface-soft);
    color: var(--navy);
    border-radius: 10px;
}

.header-actions a:hover {
    background: #dde8fa;
}

.site-mobile-drawer {
    position: fixed;
    inset: 0;
    background: rgba(7, 18, 41, 0.55);
    display: grid;
    align-items: start;
    padding-top: 88px;
    z-index: 190;
}

.site-mobile-drawer[hidden] {
    display: none !important;
}

.site-mobile-drawer-panel {
    background: var(--surface);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    padding: 1rem;
}

.site-mobile-drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
}

.site-mobile-drawer-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: var(--surface-soft);
    color: var(--navy);
    font-size: 1.15rem;
}

.site-mobile-links {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
}

.site-mobile-links a,
.site-mobile-category-grid a {
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font-weight: 600;
}

.site-mobile-phone {
    color: var(--brand-red) !important;
}

.site-mobile-categories p {
    margin: 0 0 0.55rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.site-mobile-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.section-heading,
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-heading-copy {
    max-width: 760px;
}

.section-heading__eyebrow,
.section-eyebrow {
    margin: 0 0 0.3rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--navy-2);
}

.section-eyebrow-light,
.section-heading__eyebrow-light {
    color: rgba(255, 255, 255, 0.78);
}

.section-heading__title,
.section-head h1,
.section-head h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    line-height: 1.18;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
}

.section-heading__description,
.catalog-lead {
    margin: 0.35rem 0 0;
    color: var(--muted);
    max-width: 62ch;
    line-height: 1.65;
}

.section-heading__link,
.section-link {
    color: var(--navy-2);
    font-weight: 700;
    white-space: nowrap;
}

.section-heading__link:hover,
.section-link:hover {
    color: var(--navy);
}

.section-heading-light .section-heading__title {
    color: #fff;
}

.section-heading-light .section-heading__description {
    color: rgba(255, 255, 255, 0.85);
}

.home-section {
    padding: 3.5rem 0;
}

.section-surface {
    background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(244,247,252,0.9) 100%);
}

.home-section-alt {
    background: linear-gradient(180deg, #f7faff 0%, #eef4fb 100%);
}

.home-hero {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(20, 45, 105, 0.84) 0%, rgba(20, 45, 105, 0.72) 28%, rgba(20, 45, 105, 0.24) 58%, rgba(20, 45, 105, 0.05) 100%),
        url('/img/Front.png') center/cover no-repeat;
    color: #fff;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 30%, rgba(255,255,255,0.14), transparent 30%),
        radial-gradient(circle at 18% 22%, rgba(12, 24, 56, 0.24), transparent 28%);
    pointer-events: none;
}

.home-hero-inner {
    position: relative;
    z-index: 1;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.home-hero-copy {
    max-width: 620px;
    padding: 1.5rem 1.6rem 1.45rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(14, 31, 69, 0.72) 0%, rgba(14, 31, 69, 0.56) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 48px rgba(8, 20, 44, 0.22);
}

.home-eyebrow {
    margin: 0 0 0.55rem;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #cfe0ff;
}

.home-hero-copy h1 {
    margin: 0 0 0.75rem;
    max-width: 13ch;
    font-size: clamp(2rem, 3.8vw, 3.4rem);
    line-height: 1.03;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.home-hero-copy > p {
    margin: 0;
    max-width: 52ch;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.96rem;
    line-height: 1.65;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.1rem;
}

.btn-hero-outline,
.btn-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.btn-hero-outline:hover,
.btn-light:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.75);
}

.home-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.15rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.home-hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #eef4ff;
    font-weight: 700;
    font-size: 0.86rem;
}

.home-hero-trust span + span {
    padding-left: 0.85rem;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.home-hero-trust svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.category-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

.category-card {
    min-height: 210px;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
    box-shadow: var(--shadow-sm);
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--navy-2);
}

.category-card-icon .cat-icon {
    width: 52px;
    height: 52px;
}

.category-card h3 {
    font-size: 1.05rem;
}

.category-card-caption {
    min-height: 2.7em;
    font-size: 0.84rem;
}

.category-card-meta {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--navy-2);
}

.category-card-arrow {
    width: 2.25rem;
    height: 2.25rem;
    background: #edf4ff;
}

.product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.product-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: #b7c9e6;
    box-shadow: var(--shadow-md);
}

.product-card-media-link {
    display: block;
    background: #f7f9fd;
}

.product-card-media,
.product-card-media img,
.product-card-media-link .thumb-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    display: block;
    padding: 0.9rem;
    background: linear-gradient(180deg, #fff 0%, #f2f6fc 100%);
}

.product-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.95rem 1rem 1rem;
}

.product-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-card-dot {
    color: #9eb2d0;
}

.product-card h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 800;
    color: var(--text);
    min-height: 2.9em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card h3 a {
    color: inherit;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.5rem;
}

.product-card-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--brand-red);
}

.product-card-unit {
    font-size: 0.8rem;
    color: var(--muted);
}

.product-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--navy-2);
}

.product-card-link::after {
    content: "→";
}

.thumb-placeholder,
.article-thumb-placeholder {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(180deg, #f7f9fd 0%, #eef4fb 100%);
}

.media-fallback-mark {
    position: absolute;
    left: 50%;
    top: 44%;
    width: 54px;
    height: 40px;
    transform: translate(-50%, -50%);
    border-radius: 12px;
    border: 2px solid rgba(20, 45, 105, 0.18);
    background: rgba(255, 255, 255, 0.55);
}

.media-fallback-mark::before,
.media-fallback-mark::after {
    content: "";
    position: absolute;
    inset: 10px 12px auto;
    height: 2px;
    background: rgba(20, 45, 105, 0.18);
}

.media-fallback-mark::after {
    inset: auto 12px 10px;
}

.media-fallback-label {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.article-list-grid,
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.article-preview-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.article-preview-card:hover {
    transform: translateY(-3px);
    border-color: #b7c9e6;
    box-shadow: var(--shadow-md);
}

.article-preview-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-preview-link .article-thumb,
.article-preview-link .article-thumb-placeholder {
    aspect-ratio: 16 / 9;
    width: 100%;
    min-height: 0;
    margin: 0;
    object-fit: cover;
}

.article-preview-body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem;
}

.article-preview-date,
.article-preview-category {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--navy-2);
}

.article-preview-body h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 800;
    color: var(--text);
    min-height: 2.9em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-preview-body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.article-read-more {
    margin-top: auto;
}

.why-card {
    padding: 1.25rem;
}

.why-card h2 {
    margin: 0;
    font-size: 1.45rem;
}

.why-lead {
    margin: 0.45rem 0 1rem;
    color: var(--muted);
}

.why-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.why-benefit {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f9fbfe;
}

.why-benefit-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eef4ff;
    color: var(--navy-2);
    flex-shrink: 0;
}

.why-benefit-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 2;
}

.why-benefit strong {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.92rem;
}

.why-benefit span {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.why-visual-card {
    padding: 1.25rem;
}

.why-visual-panel {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    min-height: 360px;
    border-radius: 18px;
    padding: 1.25rem;
    color: #fff;
    background:
        radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.16), transparent 24%),
        radial-gradient(circle at 82% 82%, rgba(249, 178, 51, 0.18), transparent 20%),
        linear-gradient(160deg, #142d69 0%, #1e4aa0 52%, #2462c7 100%);
}

.why-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: #f9b233;
    color: #142d69;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.why-visual-shapes {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0) 24%),
        radial-gradient(circle at 76% 34%, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0) 22%),
        radial-gradient(circle at 68% 76%, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0) 30%);
}

.why-visual-copy {
    position: relative;
    margin-top: auto;
    padding-top: 9rem;
    max-width: 22rem;
}

.why-visual-copy strong {
    display: block;
    font-size: 1.55rem;
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.why-visual-copy span {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.55;
}

.home-section-visit {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.68) 55%, rgba(255, 255, 255, 0.82) 100%),
        url('/img/Front.png') center 35% / cover no-repeat;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.contact-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.contact-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem;
    height: 100%;
}

.contact-card h3 {
    margin: 0;
    font-size: 1.1rem;
}

.contact-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.contact-card-sub {
    font-size: 0.88rem;
    color: var(--text) !important;
    font-weight: 700;
}

.contact-card-image {
    aspect-ratio: 16 / 9;
    background: linear-gradient(160deg, #edf4ff 0%, #d6e4ff 55%, #edf2f9 100%);
}

.contact-showroom-image {
    background: url('/img/store/power-tools-display.jpg') center/cover no-repeat;
}

.contact-map-wrap {
    height: 250px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.contact-map {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-card-highlight {
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.contact-phone {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--brand-red) !important;
}

.contact-social {
    color: var(--muted);
    font-size: 0.88rem;
}

.contact-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
}

.categories-hero {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
    margin-bottom: 0.9rem;
    background: #fcfcfa;
    border-bottom: 1px solid var(--line);
}

.categories-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 16% 16%, rgba(36, 98, 199, 0.08), transparent 24%);
    pointer-events: none;
}

.categories-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1rem;
    align-items: stretch;
}

.categories-hero-copy h1 {
    font-size: clamp(2rem, 3.8vw, 3rem);
    color: var(--navy);
    letter-spacing: -0.025em;
}

.catalog-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem 1.4rem;
    align-items: end;
    margin: 0.65rem 0 1.1rem;
}

.catalog-toolbar-count {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
}

.catalog-toolbar-subtitle {
    margin: 0.35rem 0 0;
    max-width: 48ch;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.catalog-toolbar-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.45rem 0.82rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fbff;
    color: #214a96;
    font-size: 0.78rem;
    font-weight: 700;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.catalog-toolbar-chip.is-active,
.catalog-toolbar-chip:hover {
    color: #fff;
    background: var(--navy-2);
    border-color: var(--navy-2);
}

.catalog-page .breadcrumb {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.catalog-page .breadcrumb a {
    color: var(--navy-2);
    font-weight: 600;
}

.catalog-page .breadcrumb a:hover {
    color: var(--navy);
}

.catalog-page .home-section {
    padding-top: 2.2rem;
}

.categories-toolbar {
    align-items: end;
    margin-bottom: 0.5rem;
}

.categories-toolbar-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.55rem;
    justify-content: flex-end;
}

.categories-page .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
    align-items: stretch;
}

.categories-page .category-card {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 2.4rem;
    align-items: center;
    column-gap: 1rem;
    row-gap: 0.45rem;
    min-height: 182px;
    padding: 1.1rem;
    border-radius: 14px;
    border-color: #dce5f1;
    background: #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.categories-page .category-card:hover {
    transform: translateY(-4px);
    border-color: var(--navy-2);
    box-shadow: var(--shadow-md);
}

.categories-page .category-card-arrow {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    background: #f2f6ff;
    font-size: 0.86rem;
    color: #1e4ea7;
    border-radius: 10px;
    border: 1px solid #d7e4f5;
    margin-left: auto;
    transition: all var(--transition);
}

.categories-page .category-card:hover .category-card-arrow {
    color: #fff;
    background: var(--navy);
    border-color: var(--navy);
}

.categories-page .category-card-icon .cat-icon {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
    border-radius: 14px;
    border-color: #cfdff1;
    border-width: 1.5px;
    margin-top: 0.1rem;
}

.categories-page .cat-icon {
    background: #f0f4fb;
    border: 1px solid #d8e4f4;
    color: #244b97;
}

.categories-page .category-card-caption {
    margin: 0;
    min-height: auto;
    font-size: 0.82rem;
    line-height: 1.52;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.categories-page .category-card-meta {
    margin-top: auto;
    font-size: 0.75rem;
    color: var(--navy-2);
    font-weight: 700;
}

.categories-page .page-hero-aside .page-hero-card {
    border-color: #dbe6f2;
    box-shadow: var(--shadow-md);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.page-hero-aside .page-hero-card-title {
    color: #617b9d;
}

.categories-page .page-hero-stats strong,
.category-detail-page .page-hero-stats strong {
    color: #113067;
}

.categories-page .page-hero-card > .page-hero-stats div,
.category-detail-page .page-hero-card > .page-hero-stats div {
    background: #f0f6ff;
    border-color: #dce7f7;
}

.categories-page .page-hero-list,
.category-detail-page .page-hero-list {
    margin-bottom: 0.2rem;
}

.categories-page .page-hero-list a,
.category-detail-page .page-hero-list a {
    border-color: #dbe7f6;
    background: #fff;
}

.categories-page .page-hero-list a:hover,
.category-detail-page .page-hero-list a:hover {
    background: #eaf1fd;
    border-color: #bdd3f0;
}

.category-quick-nav {
    margin-bottom: 1.25rem;
}

.category-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.category-quick-card {
    display: grid;
    gap: 0.45rem;
    min-height: 110px;
    padding: 1rem 1.05rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.category-quick-card:hover {
    transform: translateY(-3px);
    border-color: var(--navy-2);
    box-shadow: var(--shadow-md);
}

.category-quick-card-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1f4ea0;
}

.category-quick-card strong {
    font-size: 0.96rem;
    color: #17326d;
}

.category-quick-card span:last-child {
    color: var(--muted);
    font-size: 0.82rem;
}

.category-quick-card::after {
    content: "";
    position: absolute;
    left: 0.95rem;
    right: 0.95rem;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dbe7f4, transparent);
    opacity: 0.7;
}

.catalog-toolbar-copy {
    max-width: 680px;
}

.subcategory-card {
    padding: 1rem 1.1rem 1.15rem;
    border: 1px solid #dbe4f2;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.95rem;
    display: grid;
    gap: 0.7rem;
}

.subcategory-card-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.subcategory-card h3 {
    font-size: 1.13rem;
    color: #17316b;
    line-height: 1.24;
}

.subcategory-product-grid {
    margin-top: 0;
}

.catalog-subcategory-list {
    display: grid;
    gap: 0.95rem;
}

.category-detail-page .category-hero-meta {
    margin: 0.55rem 0 0;
    font-size: 0.93rem;
    color: var(--muted);
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.category-detail-page .category-hero-meta::before {
    content: "";
    width: 16px;
    height: 1px;
    border-radius: 999px;
    background: var(--line);
}

.category-detail-page .category-quick-card {
    min-height: 112px;
}

.category-detail-page .subcategory-card {
    margin-bottom: 0.9rem;
    display: grid;
    gap: 0.75rem;
}

.category-detail-page .subcategory-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.site-footer {
    background: linear-gradient(180deg, #102255 0%, #142d69 100%);
    color: #afc4e0;
}

.footer-grid-modern {
    grid-template-columns: 1.2fr 0.9fr 0.9fr 1.1fr;
    gap: 1.25rem;
    padding: 2.2rem 0 1.2rem;
}

.footer-brand p {
    max-width: 38ch;
    color: #8da7c8;
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
}

.footer-socials {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.7rem;
}

.footer-socials a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
}

.footer-bottom {
    border-top-color: rgba(255,255,255,0.12);
}

.footer-bottom p {
    color: #88a3c2;
}

.category-detail-page .section-heading__title {
    font-size: clamp(1.45rem, 2.5vw, 1.9rem);
}

.category-detail-page .section-heading__description {
    max-width: 58ch;
}

@media (max-width: 1199px) {
    .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .article-list-grid,
    .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .why-visual-panel { min-height: 320px; }
}

@media (max-width: 991px) {
    .mainbar-row {
        grid-template-columns: auto 1fr auto;
    }

    .category-dropdown {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .header-mobile-toggle {
        display: inline-flex;
    }

    .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .insight-grid { grid-template-columns: 1fr; }
    .footer-grid-modern { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .categories-hero-inner { grid-template-columns: 1fr; }
    .category-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .categories-page .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .categories-toolbar-filters { justify-content: flex-start; }
    .catalog-toolbar { grid-template-columns: 1fr auto; }
    .categories-page .category-card {
        grid-template-columns: 52px 1fr auto;
        min-height: 164px;
        row-gap: 0.6rem;
    }
    .categories-page .category-card-arrow {
        width: 1.9rem;
        height: 1.9rem;
    }
    .categories-page .category-card-caption {
        min-height: 0;
    }
}

@media (max-width: 767px) {
    .topbar { display: none; }

    .mainbar-row {
        grid-template-columns: auto 1fr;
        align-items: center;
    }

    .logo {
        font-size: 1.35rem;
    }

    .header-search {
        grid-column: 1 / -1;
        order: 3;
    }

    .mainbar-brand {
        grid-column: 1 / -1;
        justify-content: space-between;
    }

    .home-hero {
        min-height: 0;
    }

    .home-hero-inner {
        min-height: 400px;
        padding: 1.5rem 0 1.75rem;
    }

    .home-hero-copy h1 {
        max-width: 11ch;
        font-size: clamp(1.8rem, 7.4vw, 2.55rem);
    }

    .home-hero-trust {
        gap: 0.6rem;
    }

    .home-hero-trust span + span {
        padding-left: 0;
        border-left: 0;
    }

    .section-heading,
    .section-head,
    .catalog-toolbar,
    .subcategory-card-head,
    .category-quick-nav-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .catalog-toolbar {
        grid-template-columns: 1fr;
    }

    .categories-toolbar {
        align-items: flex-start;
    }

    .category-grid,
    .product-grid,
    .article-list-grid,
    .article-grid,
    .category-quick-grid,
    .footer-grid-modern,
    .why-benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .why-visual-copy {
        padding-top: 7rem;
    }

    .contact-card-actions,
    .home-hero-actions {
        flex-direction: column;
    }

    .home-hero-actions .btn,
    .contact-card-actions .btn {
        width: 100%;
    }

    .categories-toolbar-filters {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    .site-shell {
        width: min(calc(100% - 24px), var(--container-width));
    }

    .header-search button {
        padding-inline: 0.9rem;
    }

    .category-grid,
    .product-grid,
    .article-list-grid,
    .article-grid,
    .category-quick-grid,
    .footer-grid-modern,
    .why-benefits-grid {
        grid-template-columns: 1fr;
    }

    .product-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-map-wrap {
        height: 230px;
    }

    .home-hero-inner {
        min-height: 360px;
    }

    .categories-page .category-card {
        grid-template-columns: 1fr;
    }

    .categories-page .category-card-arrow {
        width: 1.85rem;
        height: 1.85rem;
        margin: 0;
        justify-self: end;
    }
}

/* ── Unified page layout (catalog + about) ── */
.page-breadcrumb-wrap {
    padding: 1rem 0 0.35rem;
}

.page-breadcrumb {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0;
}

.page-breadcrumb a {
    color: var(--navy-2);
    font-weight: 600;
}

.page-breadcrumb a:hover {
    color: var(--navy);
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 1.75rem 0 2rem;
    background: #fcfcfa;
    border-bottom: 1px solid var(--line);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 16% 16%, rgba(36, 98, 199, 0.08), transparent 24%);
    pointer-events: none;
}

.page-hero-compact {
    padding: 1rem 0 1.25rem;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.page-hero-inner-split {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
}

.page-hero-eyebrow {
    margin: 0 0 0.45rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--navy-2);
}

.page-hero-title {
    margin: 0;
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--navy);
}

.page-hero-description {
    margin: 0.65rem 0 0;
    max-width: 62ch;
    color: var(--muted);
    line-height: 1.65;
    font-size: 1rem;
}

.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.15rem;
}

.page-hero-card {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    padding: 1rem 1.05rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

.page-hero-card-title {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.page-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.page-hero-stats div {
    padding: 0.78rem 0.8rem;
    border-radius: var(--radius-sm);
    background: #f8fbff;
    border: 1px solid var(--line);
}

.page-hero-stats strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.1;
    color: var(--navy);
}

.page-hero-stats span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.page-hero-list {
    list-style: none;
    display: grid;
    gap: 0.55rem;
    padding: 0;
    margin: 0;
}

.page-hero-list a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: #f9fbfe;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.page-hero-list a:hover {
    border-color: var(--navy-2);
    background: #eef4ff;
    transform: translateY(-1px);
}

.page-hero-list .cat-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.page-hero-list strong,
.page-hero-list small {
    display: block;
}

.page-hero-list strong {
    font-size: 0.9rem;
    color: var(--text);
}

.page-hero-list small {
    margin-top: 0.1rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.catalog-page .home-section:first-of-type,
.catalog-page .category-quick-nav + .home-section {
    padding-top: 2.5rem;
}

.category-hero-meta-bar {
    margin: 1rem 0 0.75rem;
}

.category-hero-meta-bar .category-hero-meta {
    margin: 0;
    font-size: 0.93rem;
    color: var(--muted);
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.category-hero-meta-bar .category-hero-meta::before {
    content: "";
    width: 16px;
    height: 1px;
    border-radius: 999px;
    background: var(--line);
}

.category-detail-page .page-hero-category .page-hero-title {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
}

/* Product detail */
.product-detail-page .product-detail-section {
    padding-top: 2rem;
}

.product-detail-panel {
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.product-detail-panel h1 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--navy);
}

.product-detail-meta-list {
    margin: 0 0 1rem;
    padding: 0.85rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.product-detail-meta-list dd a {
    color: var(--navy-2);
    font-weight: 600;
}

.product-detail-meta-list dd a:hover {
    color: var(--brand-red);
}

.product-description-panel {
    margin-top: -0.5rem;
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.product-description-panel h2 {
    margin: 0 0 0.85rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--navy);
}

.product-detail-main {
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    min-height: 380px;
    background-size: contain;
    background-repeat: no-repeat;
}

.product-detail-gallery {
    position: sticky;
    top: 110px;
}

/* Articles */
.articles-page .home-section {
    padding: 2.5rem 0 3rem;
}

.article-detail-section {
    padding-top: 2rem !important;
}

.article-detail-layout {
    max-width: 760px;
    margin-inline: auto;
}

.article-detail .home-section.home-section-alt .site-shell {
    max-width: min(calc(100% - 32px), var(--container-width));
}

.article-detail .home-section.home-section-alt .article-list-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* About page refresh */
.about-page {
    padding: 0;
    background: var(--bg);
}

.about-page .page-breadcrumb-wrap {
    display: none;
}

.about-page .breadcrumb {
    margin: 0 0 1.25rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
}

.about-page .breadcrumb a {
    color: #dce9f8;
    font-weight: 600;
}

.about-page .breadcrumb a:hover {
    color: #fff;
}

.about-page .breadcrumb span {
    color: rgba(255, 255, 255, 0.85);
}

.about-hero {
    position: relative;
    overflow: hidden;
    padding: 1.5rem 0 3.5rem;
    color: #fff;
    background:
        linear-gradient(105deg, rgba(8, 22, 55, 0.92) 0%, rgba(18, 52, 110, 0.82) 48%, rgba(22, 72, 140, 0.68) 100%),
        url('/img/store/tools-cordless-aisle.jpg') center/cover no-repeat;
}

.about-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12), transparent 35%);
    pointer-events: none;
}

.about-hero .site-shell {
    position: relative;
    z-index: 1;
}

.about-hero-content {
    max-width: 680px;
}

.about-eyebrow {
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #d6e4ff;
}

.about-hero h1 {
    margin: 0 0 0.85rem;
    font-size: clamp(1.75rem, 3.5vw, 2.65rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.about-hero-lead {
    margin: 0;
    max-width: 58ch;
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
}

.about-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.about-stats {
    position: relative;
    z-index: 2;
    margin-top: -2.25rem;
    padding: 0 0 2.5rem;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.about-stats-grid article {
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.15rem 0.85rem;
    box-shadow: var(--shadow-md);
}

.about-stats-grid strong {
    display: block;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.about-stats-grid span {
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.45;
}

.about-section {
    padding: 2.75rem 0;
}

.about-section-alt {
    background: linear-gradient(180deg, #f7faff 0%, #eef4fb 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.about-section .section-heading {
    margin-bottom: 1.25rem;
}

.about-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2rem;
    align-items: center;
}

.about-story-copy .section-heading__eyebrow {
    margin-bottom: 0.35rem;
}

.about-story-copy h2 {
    margin: 0 0 0.85rem;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.about-story-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.about-story-copy p + p {
    margin-top: 0.75rem;
}

.about-photo-frame {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    background: #fff;
}

.about-photo-frame img {
    display: block;
    width: 100%;
    min-height: 320px;
    object-fit: cover;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.about-value-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.2rem 1.05rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.about-value-card:hover {
    transform: translateY(-3px);
    border-color: #b7c9e6;
    box-shadow: var(--shadow-md);
}

.about-value-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #eef4ff;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.about-value-card h3 {
    margin: 0 0 0.4rem;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.35;
}

.about-value-card p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.6;
}

.about-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.about-gallery-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.about-gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.about-gallery-image img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.about-gallery-card:hover .about-gallery-image img {
    transform: scale(1.04);
}

.about-gallery-body {
    padding: 1rem 1.1rem 1.15rem;
}

.about-gallery-body h3 {
    margin: 0 0 0.4rem;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text);
}

.about-gallery-body p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.6;
}

.about-contact {
    padding-bottom: 3.5rem;
    background: var(--bg);
}

.about-contact-card {
    border-radius: 18px;
    padding: 1.75rem;
    background: linear-gradient(135deg, #142d69 0%, #1e4aa0 55%, #2462c7 100%);
    border: 0;
    box-shadow: var(--shadow-lg);
    color: #fff;
}

.about-contact-copy .section-heading__eyebrow {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.35rem;
}

.about-contact-copy h2 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    font-weight: 800;
    color: #fff;
}

.about-contact-copy p {
    margin: 0 0 1.35rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.65;
    max-width: 52ch;
}

.about-contact-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.35rem;
}

.about-contact-details article {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 1rem 1.05rem;
}

.about-contact-details h3 {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.about-contact-details p {
    margin: 0;
    font-size: 0.92rem;
    color: #fff;
    line-height: 1.6;
}

.about-contact-details a {
    color: #ffd56a;
    font-weight: 800;
    font-size: 1.1rem;
}

.about-contact-details a:hover {
    color: #ffe08a;
}

.about-contact-details span {
    color: rgba(255, 255, 255, 0.82);
}

.about-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.about-contact-actions .btn-dark-text {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.about-contact-actions .btn-dark-text:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Contact us page */
.contact-page .page-hero {
    padding: 2.2rem 0 2.5rem;
    border-bottom-color: #dce3ec;
    background:
        radial-gradient(circle at 18% 18%, rgba(36, 98, 199, 0.08), transparent 24%),
        linear-gradient(180deg, #fcfcfa 0%, #f5f8fc 100%);
}

.contact-page .page-hero::before {
    opacity: 0.55;
}

.contact-page-hero .page-hero-title {
    max-width: 18ch;
    white-space: pre-line;
}

.contact-page-hero .contact-page-hero-content {
    display: grid;
    gap: 0.85rem;
    max-width: 44rem;
}

.contact-page-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.contact-page-pills span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    font-size: 0.76rem;
    font-weight: 700;
    border-radius: 999px;
    color: #1f3e86;
    border: 1px solid #dbe4f1;
    background: #f8fbff;
    letter-spacing: 0.01em;
}

.contact-page-hero .page-hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: 1.2rem;
}

.contact-page-hero .page-hero-description {
    max-width: 54ch;
}

.contact-page-hero .page-hero-aside {
    position: relative;
}

.contact-hero-visual {
    position: relative;
    min-height: 330px;
    padding: 1rem;
    border-radius: 24px;
    background:
        radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.65), transparent 26%),
        radial-gradient(circle at 80% 22%, rgba(244, 182, 62, 0.22), transparent 24%),
        linear-gradient(135deg, #f5efe3 0%, #e8eef8 46%, #f7fafc 100%);
    border: 1px solid #dce5f2;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.contact-hero-window {
    position: relative;
    width: min(100%, 430px);
    margin: 0 auto;
    padding: 0.65rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 18px 40px rgba(20, 45, 105, 0.12);
}

.contact-hero-window-top {
    display: flex;
    gap: 0.38rem;
    padding: 0 0.1rem 0.55rem;
}

.contact-hero-window-top span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d9e3f0;
}

.contact-hero-window-body {
    position: relative;
    display: grid;
    gap: 0.8rem;
}

.contact-hero-feed {
    display: flex;
    gap: 0.35rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.contact-hero-feed span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    background: var(--hero-accent, var(--navy));
    box-shadow: 0 8px 18px rgba(20, 45, 105, 0.12);
}

.contact-hero-device {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 0.25rem 0 0.1rem;
}

.contact-hero-device-screen {
    width: min(100%, 320px);
    padding: 0.7rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f1f6fd 100%);
    border: 1px solid #d7e1ef;
    box-shadow: 0 14px 32px rgba(20, 45, 105, 0.12);
}

.contact-hero-device-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.contact-hero-device-card {
    display: grid;
    gap: 0.3rem;
    padding: 0.75rem;
    border-radius: 14px;
    border: 1px solid #dbe4f2;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.contact-hero-device-brand {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    background: var(--hero-accent, var(--navy));
}

.contact-hero-device-card strong {
    font-size: 0.84rem;
    color: var(--navy);
    line-height: 1.2;
}

.contact-hero-device-card span {
    font-size: 0.7rem;
    color: var(--muted);
    line-height: 1.35;
}

.contact-hero-cart {
    position: absolute;
    right: 0.8rem;
    bottom: 0.8rem;
    width: 110px;
    height: 82px;
}

.contact-hero-cart-basket {
    position: absolute;
    inset: 18px 10px 10px 24px;
    border-radius: 18px 18px 12px 12px;
    border: 2px solid rgba(20, 45, 105, 0.16);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.85), rgba(248, 251, 255, 0.65));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55);
}

.contact-hero-cart-basket::before,
.contact-hero-cart-basket::after {
    content: "";
    position: absolute;
    inset: 20px 14px auto;
    height: 2px;
    border-radius: 999px;
    background: rgba(36, 98, 199, 0.18);
}

.contact-hero-cart-basket::after {
    inset: 32px 18px auto;
}

.contact-hero-cart-handle {
    position: absolute;
    left: 18px;
    top: 5px;
    width: 58px;
    height: 30px;
    border: 3px solid rgba(20, 45, 105, 0.15);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
}

.contact-hero-floating {
    position: absolute;
    display: grid;
    gap: 0.2rem;
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #d9e3f2;
    box-shadow: 0 10px 24px rgba(20, 45, 105, 0.08);
}

.contact-hero-floating strong {
    font-size: 0.82rem;
    color: var(--navy);
}

.contact-hero-floating span {
    font-size: 0.72rem;
    color: var(--muted);
}

.contact-hero-floating-a {
    left: 1rem;
    top: 1rem;
}

.contact-hero-floating-b {
    right: 1rem;
    top: 1rem;
}

.contact-directory {
    padding-top: 2.35rem;
    padding-bottom: 2.8rem;
}

.contact-directory .section-heading {
    margin-bottom: 1rem;
}

.contact-grid--store {
    display: grid;
    gap: 1.1rem;
}

.contact-branch-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.contact-branch-body {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.contact-branch-card h3 {
    margin: 0;
    font-size: 1.18rem;
    color: var(--navy);
}

.contact-branch-meta {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.contact-branch-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.contact-detail-item {
    padding: 0.72rem 0.75rem;
    border-radius: 12px;
    background: #f9fbfe;
    border: 1px solid var(--line);
}

.contact-detail-item h4 {
    margin: 0 0 0.35rem;
    font-size: 0.73rem;
    color: var(--navy-2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.contact-detail-item p,
.contact-detail-item a {
    margin: 0;
    color: var(--text);
    line-height: 1.6;
    font-size: 0.94rem;
}

.contact-detail-item a {
    color: var(--navy);
    font-weight: 700;
}

.contact-detail-item a:hover {
    color: var(--brand-red);
}

.contact-branch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: auto;
}

.contact-branch-map {
    min-height: 300px;
    border-left: 1px solid var(--line);
    background: linear-gradient(135deg, #edf4ff 0%, #d8e7fb 100%);
}

.contact-branch-iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: 0;
}

.contact-branch-map-placeholder {
    min-height: 300px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.contact-branch-body .btn-dark-text {
    background: #fff;
    border-color: var(--line);
    color: var(--navy);
}

.contact-page .catalog-empty {
    margin-top: 0.4rem;
}

.marketplace-link-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.9rem;
}

.marketplace-link-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    min-height: 320px;
    padding: 1rem 1rem 1.05rem;
    border-radius: 16px;
    border: 1px solid #dce3ec;
    overflow: hidden;
    background: linear-gradient(140deg, #ffffff 0%, #f8fbff 100%);
    color: var(--navy);
    text-decoration: none;
    isolation: isolate;
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.marketplace-link-card::before {
    content: "";
    position: absolute;
    inset: 0;
    left: 0;
    width: 0.42rem;
    background: linear-gradient(180deg, var(--marketplace-accent), rgba(255, 255, 255, 0.25));
    opacity: 0.95;
    z-index: -1;
    pointer-events: none;
}

.marketplace-link-card:hover {
    transform: translateY(-3px);
    border-color: #9bb6dd;
    box-shadow: 0 8px 24px rgba(15, 35, 64, 0.1);
    background: linear-gradient(140deg, #ffffff 0%, #f2f7ff 100%);
}

.marketplace-link-card:focus-visible {
    outline: 2px solid #2a5fc4;
    outline-offset: 2px;
}

.marketplace-icon {
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.84rem;
    color: #fff;
    background: radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.35), transparent 45%), var(--marketplace-accent);
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.brand-icon {
    display: block;
    width: 56%;
    height: 56%;
    background-color: currentColor;
    -webkit-mask: var(--icon-url) center / contain no-repeat;
    mask: var(--icon-url) center / contain no-repeat;
}

.marketplace-link-body {
    position: relative;
    min-width: 0;
    z-index: 1;
    display: grid;
    gap: 0.25rem;
    flex: 1;
}

.marketplace-link-label {
    margin: 0 0 0.15rem;
    font-weight: 800;
    font-size: 1rem;
    color: var(--navy);
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.marketplace-link-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.79rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.marketplace-link-desc {
    margin: 0.3rem 0 0;
    color: #3f4f68;
    font-size: 0.88rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.marketplace-link-cta {
    color: #fff;
    position: relative;
    z-index: 1;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    padding: 0.62rem 0.84rem;
    border-radius: 12px;
    background: var(--marketplace-accent);
    margin-top: auto;
}

@media (max-width: 991px) {
    .about-stats-grid,
    .about-values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-story-grid {
        grid-template-columns: 1fr;
    }

    .about-gallery-grid {
        grid-template-columns: 1fr;
    }

    .about-contact-details {
        grid-template-columns: 1fr;
    }

    .contact-branch-card {
        grid-template-columns: 1fr;
    }

    .contact-branch-map {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .contact-branch-details {
        grid-template-columns: 1fr;
    }

    .contact-page-pills span {
        font-size: 0.74rem;
        padding: 0.32rem 0.7rem;
    }

    .contact-page .page-hero-inner {
        grid-template-columns: 1fr;
    }

    .contact-hero-visual {
        min-height: 300px;
        max-width: 640px;
        margin-inline: auto;
    }

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

    .marketplace-link-card {
        min-height: 280px;
    }

}

@media (max-width: 767px) {
    .contact-directory {
        padding-top: 1.9rem;
        padding-bottom: 2rem;
    }

    .contact-page .page-hero {
        padding: 1.6rem 0 2rem;
    }

    .contact-page-hero .page-hero-title {
        max-width: 14ch;
    }

    .contact-hero-visual {
        min-height: 260px;
        padding: 0.85rem;
    }

    .contact-hero-window {
        width: min(100%, 330px);
    }

    .contact-hero-device-screen {
        width: 100%;
    }

    .contact-hero-floating {
        display: none;
    }

    .marketplace-link-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .marketplace-link-card {
        min-height: 0;
        gap: 0.75rem;
        padding: 0.95rem;
    }

    .marketplace-icon {
        width: 54px;
        height: 54px;
    }

    .about-stats-grid,
    .about-values-grid {
        grid-template-columns: 1fr;
    }

    .about-section {
        padding: 2rem 0;
    }

    .about-hero-actions,
    .about-contact-actions {
        flex-direction: column;
    }

    .about-hero-actions .btn,
    .about-contact-actions .btn {
        width: 100%;
    }

    .about-hero {
        padding: 1.25rem 0 3rem;
    }

    .about-stats {
        margin-top: -1.5rem;
    }

    .about-photo-frame img {
        min-height: 240px;
    }
}

/* Home insight grid */
.insight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 1rem;
    align-items: stretch;
}

@media (max-width: 991px) {
    .insight-grid {
        grid-template-columns: 1fr;
    }
}

.article-list-grid-home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Tabs hover fix - only active gets red bg */
.tabs a:not(.is-active):hover {
    background: var(--surface-soft);
    color: var(--navy);
    border-color: #a8c4e0;
}

@media (max-width: 991px) {
    .page-hero-inner-split {
        grid-template-columns: 1fr;
    }

    .product-detail-gallery {
        position: static;
    }

    .article-list-grid-home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .page-hero-actions {
        flex-direction: column;
    }

    .page-hero-actions .btn {
        width: 100%;
    }

    .page-hero-stats {
        grid-template-columns: 1fr;
    }

    .article-list-grid-home {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
