:root {
    --ink: #172033;
    --muted: #647083;
    --line: #dfe4ea;
    --brand: #d61f2c;
    --brand-dark: #9f1720;
    --blue: #1f5f99;
    --surface: #f5f7fa;
    --white: #ffffff;
    --font-main: "Inter", "Segoe UI", Roboto, "Noto Sans", Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body,
button,
input,
select,
textarea {
    font-family: var(--font-main);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    line-height: 1.5;
}

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

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
}

/* Lovable-inspired refresh */
:root {
    --ink: #171717;
    --muted: #737373;
    --line: #e7e2dc;
    --brand: #c2410c;
    --brand-dark: #9a3412;
    --surface: #faf8f4;
    --white: #fffdf9;
}

body {
    background: var(--white);
}

.container {
    width: min(1280px, calc(100% - 48px));
}

.topbar,
.header-search-form,
.consultation-actions,
.legacy-brand {
    display: none !important;
}

.site-header {
    background: rgba(255, 253, 249, .84);
    border-bottom-color: rgba(231, 226, 220, .7);
    backdrop-filter: blur(18px);
}

.nav-wrap,
.site-header.is-sticky .nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 0;
}

.brand,
.site-header.is-sticky .brand {
    display: inline-flex;
    grid-column: auto;
    width: auto;
    padding-right: 0;
    gap: 10px;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    color: var(--white);
    background: var(--brand);
}

.brand-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand img,
.site-header.is-sticky .brand img {
    display: none;
}

.brand-copy {
    display: block;
    max-width: none;
}

.brand-copy strong {
    color: var(--ink);
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0;
}

.brand-copy strong span {
    color: var(--brand);
}

.brand-copy small {
    display: none;
}

.main-nav,
.site-header.is-sticky .main-nav {
    align-items: center;
    gap: 4px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.main-nav > a,
.nav-dropdown > a,
.site-header.is-sticky .main-nav > a,
.site-header.is-sticky .nav-dropdown > a {
    min-height: 0;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--ink) !important;
    border-bottom: 0;
    background: transparent;
}

.quote-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 20px;
    border-radius: 6px;
    color: var(--white);
    background: var(--brand);
    font-size: 14px;
    font-weight: 700;
}

.quote-button:hover {
    opacity: .9;
}

.home-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, var(--white) 0%, rgb(255, 253, 249, 48%) 48%, rgb(255, 255, 255 , 0%) 100%)
}

.home-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 620px;
    align-items: center;
    padding: 72px 0;
}

.home-hero-copy {
    max-width: 710px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 12px;
    border: 1px solid rgba(194, 65, 12, .36);
    border-radius: 999px;
    color: var(--brand);
    background: rgba(194, 65, 12, .08);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-badge span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
}

.home-hero h1 {
    margin: 22px 0 0;
    font-size: clamp(48px, 7vw, 86px);
    line-height: 1.04;
    letter-spacing: 0;
}

.home-hero h1 span {
    color: var(--brand);
}

.home-hero p {
    max-width: 560px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 6px;
    font-weight: 700;
}

.secondary-button {
    border-color: var(--line);
    color: var(--ink);
    background: rgba(250, 248, 244, .7);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 560px;
    gap: 24px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.hero-stats strong {
    display: block;
    color: var(--brand);
    font-size: 34px;
    line-height: 1;
}

.hero-stats span {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-top: 80px;
}

.service-grid article,
.category-tile,
.product-card,
.promotion-card,
.category-sidebar,
.contact-form,
.contact-info,
.content-page,
.detail-image {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(250, 248, 244, .55);
    box-shadow: none;
}

.service-grid article {
    padding: 24px;
}

.service-grid span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--brand);
    font-weight: 800;
}

.service-grid h3 {
    margin: 18px 0 0;
    font-size: 18px;
}

.service-grid p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.section-block {
    padding-top: 72px;
}

.section-heading {
    margin-bottom: 34px;
}

.section-heading p {
    margin: 0;
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.section-heading h2 {
    margin-top: 8px;
    font-size: clamp(34px, 4vw, 52px);
}

.section-heading > a {
    color: var(--brand);
    font-size: 14px;
    font-weight: 700;
}

.product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    transition:
        border-color .18s ease,
        transform .18s ease;
}

.product-card:hover {
    border-color: rgba(194, 65, 12, .55);
    transform: translateY(-2px);
}

.product-image {
    aspect-ratio: 1;
    background: var(--surface);
}

.product-image span {
    color: var(--muted);
}

.product-info {
    padding: 20px;
}

.sku {
    color: var(--brand);
    font-size: 12px;
    letter-spacing: .08em;
}

.product-info h3 {
    min-height: 0;
    margin: 8px 0 0;
    font-size: 19px;
    line-height: 1.25;
}

.product-summary {
    display: -webkit-box;
    min-height: 42px;
    margin: 10px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.price-row {
    justify-content: space-between;
    margin-top: 18px;
}

.price-row strong {
    color: var(--ink);
    font-size: 19px;
}

.product-link {
    color: var(--brand);
    font-size: 14px;
    font-weight: 700;
}

.category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.category-tile {
    min-height: 128px;
    padding: 24px;
}

.home-cta {
    position: relative;
    overflow: hidden;
    margin-top: 80px;
    margin-bottom: 24px;
    padding: 56px;
    border: 1px solid rgba(194, 65, 12, .28);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(250, 248, 244, .95), rgba(194, 65, 12, .14));
}

.home-cta::after {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(194, 65, 12, .2);
    filter: blur(40px);
}

.home-cta div {
    position: relative;
    z-index: 1;
    max-width: 660px;
}

.home-cta h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.1;
}

.home-cta p {
    margin: 16px 0 24px;
    color: var(--muted);
    font-size: 18px;
}

.site-footer {
    margin-top: 96px;
    border-top-color: rgba(231, 226, 220, .75);
    background: rgba(250, 248, 244, .55);
}

@media (max-width: 1100px) {
    .service-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 900px) {
    .container {
        width: min(100% - 28px, 1280px);
    }

    .nav-wrap,
    .site-header.is-sticky .nav-wrap {
        grid-template-columns: 44px 1fr 44px;
        min-height: auto;
        padding: 12px 0;
    }

    .quote-button {
        display: none;
    }

    .brand-copy strong {
        font-size: 16px;
    }

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

    .home-hero h1 {
        font-size: 44px;
    }

    .hero-stats {
        gap: 16px;
    }

    .service-grid {
        padding-top: 48px;
    }
}

@media (max-width: 620px) {
    .service-grid,
    .category-grid,
    .product-grid,
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .home-hero-inner {
        padding: 48px 0;
    }

    .home-hero p,
    .home-cta p {
        font-size: 16px;
    }

    .home-cta {
        padding: 32px 22px;
    }
}

.topbar {
    background: #101827;
    color: #d9e0ea;
    font-size: 14px;
}

.topbar-inner,
.nav-wrap,
.search-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-inner {
    min-height: 38px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.site-header.is-sticky {
    box-shadow: 0 10px 24px rgba(16, 24, 39, .12);
}

.site-header.is-sticky .nav-wrap {
    display: flex;
    min-height: 86px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 0;
    align-items: center;
    flex-wrap: nowrap;
}

.site-header.is-sticky .brand img {
    width: 72px;
    height: 72px;
}

.site-header.is-sticky .brand-copy {
    display: none;
}

.site-header.is-sticky .brand {
    width: auto;
    gap: 0;
    padding-right: 0;
}

.site-header.is-sticky .main-nav {
    width: auto;
    margin-top: 0;
    margin-left: 32px;
    margin-right: 0;
    gap: 28px;
}

.site-header.is-sticky .consultation-actions {
    display: none;
}

.site-header.is-sticky .header-search-form {
    display: grid;
    flex: 1 1 auto;
    min-width: 280px;
    margin-top: 0;
    margin-left: 24px;
}

.nav-wrap {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(360px, 1fr);
    justify-content: start;
    min-height: 196px;
    padding: 24px 0 18px;
    padding-right: 0;
    align-items: flex-start;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    grid-column: 1 / -1;
    width: 100%;
    gap: 28px;
    min-width: 0;
    padding-right: calc(clamp(320px, 27vw, 420px) + 24px);
    font-size: 22px;
    font-weight: 800;
}

.brand-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
    max-width: 100%;
    line-height: 1.12;
}

.brand-copy strong {
    color: var(--ink);
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
}

.brand-copy small {
    display: block;
    color: var(--muted);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.brand img,
.brand-mark {
    width: 120px;
    height: 120px;
    border-radius: 6px;
    transition: width .2s ease, height .2s ease;
}

.brand img {
    object-fit: contain;
}

.brand-mark {
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--brand);
}

.mobile-menu-toggle,
.mobile-menu-close,
.mobile-drawer,
.mobile-drawer-overlay {
    display: none;
}

.main-nav {
    display: flex;
    align-items: center;
    align-self: center;
    gap: 32px;
    color: #263246;
    font-weight: 700;
    width: auto;
    margin-top: 8px;
    margin-left: 0;
    margin-right: 22px;
    white-space: nowrap;
}

.main-nav > a,
.nav-dropdown > a {
    display: inline-flex;
    align-items: center;
    min-height: 54px;
}

.header-search-form {
    align-self: center;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: inline-block;
}

.nav-dropdown-trigger {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
}

.nav-dropdown-trigger::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.main-nav a:hover {
    color: var(--brand);
}

.main-nav a.active {
    color: var(--brand);
    border-bottom: 2px solid var(--brand);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    z-index: 120;
    display: none;
    width: 260px;
    padding: 18px 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 36px rgba(16, 24, 39, .16);
    transform: translateX(-50%);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: grid;
    transform: translateX(-50%);
}

.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-dropdown-menu > a,
.dropdown-parent,
.dropdown-submenu a {
    display: block;
    padding: 10px 18px;
    border-bottom: 0 !important;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

.nav-dropdown-menu > a:hover,
.dropdown-category:hover .dropdown-parent,
.dropdown-submenu a:hover {
    color: var(--white);
    background: var(--brand);
}

.dropdown-category {
    position: relative;
}

.dropdown-parent {
    color: var(--brand-dark);
    font-weight: 800;
}

.dropdown-parent::after {
    content: "›";
    float: right;
    font-size: 18px;
    line-height: 1;
}

.dropdown-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    display: none;
    width: 240px;
    min-height: 100%;
    padding: 8px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 36px rgba(16, 24, 39, .16);
}

.dropdown-category:hover .dropdown-submenu,
.dropdown-category:focus-within .dropdown-submenu {
    display: block;
}

.dropdown-submenu a {
    color: var(--muted);
    font-weight: 700;
}

.primary-button,
.secondary-button,
.search-form button,
.filter-bar button,
.contact-form button {
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 800;
}

.primary-button,
.search-form button,
.filter-bar button,
.contact-form button {
    color: var(--white);
    background: var(--brand);
}

.consultation-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    width: min(420px, 27vw);
    min-width: 320px;
    overflow: hidden;
    border-radius: 0 0 34px 34px;
    background: linear-gradient(105deg, #fb174d 0%, #a2072f 100%);
    color: var(--white);
    isolation: isolate;
}

.consultation-actions a {
    display: grid;
    gap: 6px;
    padding: 13px 15px 15px;
    text-align: center;
    font-weight: 800;
}

.consultation-actions a + a {
    border-left: 1px solid rgba(255, 255, 255, .24);
}

.consultation-actions span {
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}

.consultation-actions strong {
    font-size: 15px;
    line-height: 1.1;
    white-space: nowrap;
}

.search-row {
    padding: 18px 0 20px;
    max-height: 96px;
    opacity: 1;
    overflow: hidden;
    transform: translateY(0);
    transition:
        max-height .24s ease,
        padding .24s ease,
        opacity .18s ease,
        transform .24s ease;
}

.site-header.is-sticky .search-row {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr 150px;
    width: 100%;
    border: 2px solid var(--brand);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
}

.search-form input,
.filter-bar input,
.filter-bar select,
.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 13px 14px;
    font: inherit;
    background: var(--white);
}

.search-form input {
    border: 0;
    min-height: 54px;
    font-size: 17px;
}

.search-form button {
    border-radius: 0;
}

.hero-layout,
.catalog-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 24px;
    padding-top: 28px;
}

.category-sidebar {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    padding: 0 18px 18px;
    align-self: start;
}

.category-sidebar h2 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 -18px 14px;
    padding: 24px 30px;
    color: var(--white);
    background: linear-gradient(105deg, #fb174d 0%, #a2072f 100%);
    font-size: 20px;
    font-weight: 800;
}

.category-sidebar h2::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: rotate(45deg) translateY(-3px);
}

.category-group {
    display: grid;
    gap: 7px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
}

.category-group a,
.category-sidebar > a {
    color: var(--muted);
}

.parent-cat {
    color: var(--ink) !important;
    font-weight: 800;
}

.active {
    color: var(--brand) !important;
}

.hero-banner {
    position: relative;
    min-height: 410px;
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(105deg, rgba(16, 24, 39, .92) 0%, rgba(16, 24, 39, .72) 47%, rgba(31, 95, 153, .28) 100%),
        url("../images/hero-parts.782d566d122d.svg") center right / cover no-repeat;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(16, 24, 39, .9) 0%, rgba(16, 24, 39, .68) 47%, rgba(31, 95, 153, .26) 100%);
}

.hero-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: min(560px, 90%);
    padding: 58px;
    color: var(--white);
}

.hero-copy p,
.eyebrow,
.sku {
    margin: 0 0 10px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
}

.hero-copy span {
    display: block;
    max-width: 470px;
    color: #e8edf4;
    font-size: 18px;
}

.hero-copy a {
    display: inline-block;
    margin-top: 28px;
    padding: 13px 20px;
    border-radius: 6px;
    background: var(--brand);
    font-weight: 800;
}

.hero-slider-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(15, 23, 42, .46);
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
}

.hero-slider-control:hover {
    background: rgba(214, 31, 44, .9);
}

.hero-slider-control.prev {
    left: 16px;
}

.hero-slider-control.next {
    right: 16px;
}

.hero-slider-dots {
    position: absolute;
    right: 24px;
    bottom: 20px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

.hero-slider-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .52);
    cursor: pointer;
}

.hero-slider-dots button.is-active {
    width: 28px;
    border-radius: 999px;
    background: var(--white);
}

.section-block,
.page-title {
    padding: 24px 0 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.section-heading h2,
.page-title h1,
.detail-info h1,
.content-page h1,
.contact-info h1 {
    margin: 0;
    line-height: 1.12;
}

.section-heading a {
    color: var(--brand);
    font-weight: 800;
}

.category-grid,
.product-grid {
    display: grid;
    gap: 18px;
}

.category-grid {
    grid-template-columns: repeat(4, 1fr);
}

.category-tile {
    min-height: 110px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.category-tile span {
    display: block;
    font-size: 18px;
    font-weight: 800;
}

.category-tile small {
    color: var(--muted);
}

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

.product-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.promotion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.promotion-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.promotion-image {
    display: grid;
    aspect-ratio: 16 / 10;
    place-items: center;
    background: #eef2f6;
    color: var(--muted);
    font-weight: 800;
}

.promotion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promotion-info {
    padding: 18px;
}

.promotion-info h2 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.25;
}

.promotion-info p {
    margin: 0 0 16px;
    color: var(--muted);
}

.read-more {
    color: var(--brand);
    font-weight: 800;
}

.promotion-detail {
    padding-top: 34px;
    padding-bottom: 54px;
}

.promotion-detail h1 {
    max-width: 880px;
    margin: 22px 0 12px;
    font-size: 40px;
    line-height: 1.15;
}

.promotion-detail-image {
    width: 100%;
    max-height: 520px;
    border-radius: 8px;
    object-fit: cover;
}

.promotion-summary {
    max-width: 820px;
    color: var(--muted);
    font-size: 18px;
    font-weight: 600;
}

.product-image,
.detail-image,
.content-image {
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(31, 95, 153, .12), rgba(214, 31, 44, .10)),
        #eef2f6;
    color: var(--muted);
    font-weight: 800;
}

.product-image {
    aspect-ratio: 4 / 3;
}

.product-image img,
.detail-image img,
.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    min-height: 52px;
    margin: 0 0 10px;
    font-size: 17px;
}

.rating {
    color: #f2b705;
    font-size: 13px;
}

.rating span {
    color: var(--muted);
}

.price-row,
.detail-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 10px;
}

.price-row strong,
.detail-price strong {
    color: var(--brand);
    font-size: 18px;
}

del {
    color: var(--muted);
}

.about-strip {
    margin-top: 52px;
    padding: 42px 0;
    color: var(--white);
    background: #172033;
}

.about-strip-inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 180px 110px;
    gap: 12px;
    margin-bottom: 18px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 34px;
}

.pagination a,
.pagination span {
    display: inline-grid;
    place-items: center;
    min-width: 54px;
    height: 54px;
    padding: 0 14px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: var(--white);
    color: #30343d;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
    transition:
        border-color .18s ease,
        color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.pagination a:hover,
.pagination .current {
    border-color: #c8083d;
    color: var(--white) !important;
    background: #c8083d;
    box-shadow: 0 10px 22px rgba(200, 8, 61, .18);
}

.pagination .dots {
    border-color: #e5e7eb;
    color: #30343d;
    background: var(--white);
}

.pagination .page-arrow {
    color: #30343d;
    font-size: 34px;
    font-weight: 700;
}

.pagination .page-arrow.disabled {
    color: #a8adb5;
    pointer-events: none;
    background: var(--white);
    box-shadow: none;
}

.detail-layout,
.content-page,
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    padding-top: 12px;
}

.detail-image {
    min-height: 430px;
    border-radius: 8px;
    overflow: hidden;
}

.product-gallery {
    display: grid;
    gap: 12px;
}

.product-gallery-main {
    position: relative;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(23, 32, 51, .12);
    border-radius: 50%;
    color: var(--ink);
    background: rgba(255, 253, 249, .9);
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background .18s ease, border-color .18s ease;
}

.gallery-nav:hover {
    border-color: rgba(194, 65, 12, .42);
    background: var(--white);
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
}

.gallery-thumb {
    display: grid;
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: var(--surface);
    cursor: pointer;
}

.gallery-thumb.is-active {
    border-color: var(--brand);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info {
    padding: 24px 0;
}

.detail-info h1 {
    font-size: 38px;
}

.detail-price strong {
    font-size: 28px;
}

.cta-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.primary-button,
.secondary-button {
    padding: 13px 18px;
}

.secondary-button {
    border: 1px solid var(--brand);
    color: var(--brand);
    background: var(--white);
}

.product-description,
.content-page,
.contact-layout {
    padding-bottom: 50px;
}

.content-page,
.contact-layout {
    align-items: start;
}

.contact-info,
.contact-form {
    color: var(--muted);
}

.content-image {
    min-height: 320px;
    border-radius: 8px;
}

.contact-form {
    display: grid;
    gap: 13px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.contact-form h2 {
    margin: 0;
    color: var(--ink);
}

.contact-form button {
    width: 100%;
    min-height: 52px;
    padding: 14px 18px;
    font-size: 16px;
}

.map-frame iframe {
    width: 100%;
    min-height: 260px;
    border: 0;
}

.messages {
    padding-top: 16px;
}

.breadcrumb-wrap {
    padding: 18px 0 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

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

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

.breadcrumb span:last-child {
    color: var(--brand);
}

.message {
    padding: 12px 14px;
    border-radius: 6px;
    background: #e9f7ef;
    color: #17633a;
}

.site-footer {
    margin-top: 12px;
    padding: 36px 0;
    color: #d9e0ea;
    background: #101827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.5fr;
    gap: 26px;
}

.footer-grid h3 {
    color: var(--white);
}

.footer-grid a {
    display: block;
    margin: 6px 0;
}

.footer-map iframe {
    width: 100%;
    min-height: 220px;
    border: 0;
}

.footer-map .embed-map-responsive {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
    padding-bottom: 66.6667%;
    border-radius: 8px;
}

.footer-map .embed-map-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.footer-map .embed-map-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

.floating-contact {
    position: fixed;
    right: 3px;
    top: 66%;
    z-index: 160;
    display: grid;
    gap: 8px;
    transform: translateY(-50%);
}

.floating-contact-button {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #a9d3ff40;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .16);
    animation: contact-shake 1.8s ease-in-out infinite;
}

.floating-contact-button::before {
    content: "";
    position: absolute;
    inset: 6px;
    z-index: -1;
    border: 3px solid rgba(66, 161, 255, .82);
    border-radius: 50%;
    animation: contact-pulse 1.8s ease-out infinite;
}

.floating-contact-button::after {
    content: "";
    position: absolute;
    inset: 14px;
    z-index: 0;
    border: 4px solid #1281f1;
    border-radius: 50%;
    background: #0873e8;
}

.floating-contact-icon {
    position: relative;
    z-index: 1;
    width: 35px;
    height: 35px;
    background: var(--white);
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
}

.floating-contact-button.zalo .floating-contact-icon {
    width: 42px;
    height: 42px;
    mask-image: url("../images/zalo.0ca2b2ab0f38.png");
    -webkit-mask-image: url("../images/zalo.0ca2b2ab0f38.png");
}

.floating-contact-button.messenger .floating-contact-icon {
    mask-image: url("../images/facebook_icon.5ab14298a4a6.png");
    -webkit-mask-image: url("../images/facebook_icon.5ab14298a4a6.png");
}

.floating-contact-button.tiktok .floating-contact-icon {
    width: 33px;
    height: 33px;
    mask-image: url("../images/tiktok.57969c0328a7.png");
    -webkit-mask-image: url("../images/tiktok.57969c0328a7.png");
}

.floating-contact-button.phone .floating-contact-icon {
    width: 31px;
    height: 31px;
    mask-image: url("../images/phone-ring.0be83eb42aab.png");
    -webkit-mask-image: url("../images/phone-ring.0be83eb42aab.png");
}

.floating-contact-button:nth-child(2) {
    animation-delay: .2s;
}

.floating-contact-button:nth-child(3) {
    animation-delay: .4s;
}

.floating-contact-button:nth-child(4) {
    animation-delay: .6s;
}

@keyframes contact-shake {
    0%,
    78%,
    100% {
        transform: rotate(0);
    }

    82% {
        transform: rotate(-10deg);
    }

    86% {
        transform: rotate(10deg);
    }

    90% {
        transform: rotate(-8deg);
    }

    94% {
        transform: rotate(8deg);
    }
}

@keyframes contact-pulse {
    0% {
        opacity: .85;
        transform: scale(.72);
    }

    72%,
    100% {
        opacity: 0;
        transform: scale(1.32);
    }
}

@media (max-width: 900px) {
    .topbar-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 0;
    }

    .nav-wrap {
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
        min-height: auto;
        padding: 16px 0;
        padding-right: 0;
    }

    .site-header.is-sticky .nav-wrap {
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
        min-height: auto;
        padding: 10px 0;
        padding-right: 0;
    }

    .brand {
        grid-column: 2;
        justify-self: center;
        width: auto;
        gap: 0;
        padding-right: 0;
    }

    .site-header.is-sticky .brand {
        grid-column: 2;
        justify-self: center;
        width: auto;
    }

    .brand img {
        width: 82px;
        height: 82px;
    }

    .site-header.is-sticky .brand img {
        width: 66px;
        height: 66px;
    }

    .brand-copy {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-grid;
        gap: 6px;
        justify-self: start;
        width: 44px;
        height: 44px;
        padding: 10px 7px;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        display: block;
        height: 3px;
        border-radius: 999px;
        background: var(--brand-dark);
    }

    .main-nav {
        display: none;
        margin: 0;
        flex-wrap: wrap;
        gap: 14px;
    }

    .consultation-actions {
        display: none;
    }

    .header-search-form,
    .site-header.is-sticky .header-search-form {
        display: grid;
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        margin: 10px 0 0;
    }

    .mobile-drawer-overlay {
        position: fixed;
        inset: 0;
        z-index: 180;
        display: block;
        pointer-events: none;
        background: rgba(15, 23, 42, .56);
        opacity: 0;
        transition: opacity .2s ease;
    }

    .mobile-drawer {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 190;
        display: block;
        width: min(82vw, 320px);
        background: var(--white);
        box-shadow: 18px 0 36px rgba(15, 23, 42, .25);
        transform: translateX(-105%);
        transition: transform .24s ease;
    }

    .mobile-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px;
        background: linear-gradient(105deg, #fb174d 0%, #77121f 100%);
    }

    .mobile-drawer-brand img {
        width: 72px;
        height: 72px;
        border-radius: 6px;
        object-fit: contain;
    }

    .mobile-menu-close {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border: 0;
        color: var(--white);
        background: transparent;
        cursor: pointer;
        font-size: 42px;
        line-height: 1;
    }

    .mobile-drawer-nav {
        display: grid;
    }

    .mobile-drawer-nav a,
    .mobile-nav-group summary {
        padding: 20px 22px;
        border-bottom: 1px solid var(--line);
        color: var(--ink);
        font-size: 18px;
        font-weight: 800;
    }

    .mobile-nav-group summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        list-style: none;
    }

    .mobile-nav-group summary::-webkit-details-marker {
        display: none;
    }

    .mobile-nav-group summary::after {
        content: "";
        width: 10px;
        height: 10px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translateY(-3px);
        transition: transform .2s ease;
    }

    .mobile-nav-group[open] summary::after {
        transform: rotate(225deg) translateY(-1px);
    }

    .mobile-subnav {
        display: grid;
        background: #f8fafc;
    }

    .mobile-subnav a {
        padding: 14px 22px 14px 32px;
        font-size: 15px;
        font-weight: 700;
    }

    .mobile-subnav .child-link {
        padding-left: 48px;
        color: var(--muted);
        font-weight: 600;
    }

    .hero-layout > .category-sidebar,
    .catalog-layout > .category-sidebar {
        display: none;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open .mobile-drawer {
        transform: translateX(0);
    }

    body.menu-open .mobile-drawer-overlay {
        pointer-events: auto;
        opacity: 1;
    }

    .hero-layout,
    .catalog-layout,
    .detail-layout,
    .content-page,
    .contact-layout,
    .about-strip-inner,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .category-grid,
    .product-grid,
    .promotion-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-copy {
        padding: 36px 26px;
    }

    .floating-contact {
        right: 10px;
        top: 80%;
        gap: 6px;
    }

    .floating-contact-button {
        width: 64px;
        height: 64px;
    }

    .floating-contact-button::after {
        inset: 11px;
    }

    .floating-contact-icon {
        width: 29px;
        height: 29px;
    }

    .floating-contact-button.zalo .floating-contact-icon {
        width: 35px;
        height: 35px;
    }

    .floating-contact-button.phone .floating-contact-icon {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 1200px) {
    .brand {
        padding-right: 0;
    }

    .consultation-actions {
        display: none;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .search-form,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .site-header .search-form.header-search-form {
        grid-template-columns: minmax(0, 1fr) max-content;
    }

    .site-header .header-search-form input {
        min-width: 0;
    }

    .site-header .header-search-form button {
        width: auto;
        padding-right: 12px;
        padding-left: 12px;
        white-space: nowrap;
    }

    .search-form button {
        min-height: 48px;
    }

    .consultation-actions {
        grid-template-columns: 1fr;
    }

    .consultation-actions a {
        padding: 16px 18px;
    }

    .consultation-actions a + a {
        border-top: 1px solid rgba(255, 255, 255, .24);
        border-left: 0;
    }

    .category-grid,
    .product-grid,
    .promotion-grid {
        grid-template-columns: 1fr;
    }

    .hero-banner {
        min-height: 360px;
    }

    .hero-slider-control {
        width: 34px;
        height: 34px;
        font-size: 28px;
    }

    .hero-slider-control.prev {
        left: 8px;
    }

    .hero-slider-control.next {
        right: 8px;
    }

    .hero-slider-dots {
        right: 16px;
        bottom: 14px;
    }

    .pagination {
        gap: 8px;
    }

    .pagination a,
    .pagination span {
        min-width: 48px;
        height: 48px;
        padding: 0 12px;
        border-radius: 12px;
        font-size: 18px;
    }

    .pagination .page-arrow {
        font-size: 34px;
    }

    .detail-info h1 {
        font-size: 30px;
    }

    .cta-row {
        flex-direction: column;
    }
}

/* Stable product detail gallery */
.product-gallery-main.detail-image {
    aspect-ratio: 4 / 3;
    min-height: 0 !important;
    background: var(--surface);
}

.product-gallery-main.detail-image img[data-gallery-main] {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    opacity: 1;
    transform: scale(1);
    transition: opacity .18s ease, transform .18s ease;
}

.product-gallery-main.detail-image img[data-gallery-main].is-switching {
    opacity: .22;
    transform: scale(.985);
}

.product-gallery.has-single-image .gallery-nav,
.gallery-nav[hidden] {
    display: none !important;
}

/* Keep product cards visually consistent across grids. */
.product-grid {
    align-items: stretch;
}

.product-grid > .product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-grid .product-image {
    flex: 0 0 auto;
    aspect-ratio: 1 / 1;
}

.product-grid .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-grid .product-info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.product-grid .product-info h3 {
    min-height: 48px;
}

.product-grid .product-summary {
    min-height: 42px;
}

.product-grid .price-row {
    margin-top: auto;
}

/* Dropdown hover must stay readable over the orange background. */
.site-header .nav-dropdown-menu > a:hover,
.site-header .nav-dropdown-menu > a:focus,
.site-header .dropdown-category:hover > .dropdown-parent,
.site-header .dropdown-category:focus-within > .dropdown-parent,
.site-header .dropdown-submenu a:hover,
.site-header .dropdown-submenu a:focus {
    background: var(--brand) !important;
    color: var(--white) !important;
}

/* Rich text content from CKEditor on product detail pages. */
.product-description-content {
    color: var(--ink);
    font-size: 16px;
    line-height: 1.7;
}

.product-description-content p,
.product-description-content ul,
.product-description-content ol,
.product-description-content table,
.product-description-content figure {
    margin: 0 0 18px;
}

.product-description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-description-content .image-align-left {
    float: left;
    margin: 6px 24px 18px 0;
}

.product-description-content .image-align-right {
    float: right;
    margin: 6px 0 18px 24px;
}

.product-description-content .image-align-center {
    display: block;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.product-description-content table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.product-description-content th,
.product-description-content td {
    padding: 10px 12px;
    border: 1px solid var(--line);
    color: var(--ink);
}

/* Final cascade layer for the Lovable-inspired styling */
.container {
    width: min(1280px, calc(100% - 48px));
}

.topbar,
.header-search-form,
.consultation-actions,
.legacy-brand {
    display: none !important;
}

.site-header {
    background: rgba(255, 253, 249, .84);
    border-bottom-color: rgba(231, 226, 220, .7);
    backdrop-filter: blur(18px);
}

.nav-wrap,
.site-header.is-sticky .nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 0;
}

.brand,
.site-header.is-sticky .brand {
    display: inline-flex;
    grid-column: auto;
    width: auto;
    padding-right: 0;
    gap: 10px;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    color: var(--white);
    background: var(--brand);
}

.brand-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand img,
.site-header.is-sticky .brand img {
    display: none;
}

.brand-copy,
.site-header.is-sticky .brand-copy {
    display: block;
    max-width: none;
}

.brand-copy strong {
    color: var(--ink);
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0;
}

.brand-copy strong span {
    color: var(--brand);
}

.brand-copy small {
    display: none;
}

.main-nav,
.site-header.is-sticky .main-nav {
    align-items: center;
    gap: 4px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.main-nav > a,
.nav-dropdown > a,
.site-header.is-sticky .main-nav > a,
.site-header.is-sticky .nav-dropdown > a {
    min-height: 0;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--ink) !important;
    border-bottom: 0;
}

.quote-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 20px;
    border-radius: 6px;
    color: var(--white);
    background: var(--brand);
    font-size: 14px;
    font-weight: 700;
}

.product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.product-card,
.category-tile,
.service-grid article,
.promotion-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(250, 248, 244, .55);
    box-shadow: none;
}

.product-image {
    aspect-ratio: 1;
    background: var(--surface);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    min-height: 0;
    margin: 8px 0 0;
    font-size: 19px;
    line-height: 1.25;
}

.price-row {
    justify-content: space-between;
    margin-top: 18px;
}

@media (max-width: 1100px) {
    .service-grid,
    .category-grid,
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .container {
        width: min(100% - 28px, 1280px);
    }

    .nav-wrap,
    .site-header.is-sticky .nav-wrap {
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        min-height: auto;
        padding: 12px 0;
    }

    .quote-button {
        display: none;
    }

    .brand-copy strong {
        font-size: 16px;
    }
}

@media (max-width: 620px) {
    .service-grid,
    .category-grid,
    .product-grid,
    .hero-stats {
        grid-template-columns: 1fr;
    }
}

/* Fixups after design refresh */
.brand-icon {
    display: none !important;
}

.brand img,
.site-header.is-sticky .brand img {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: contain;
}

.brand-copy strong {
    display: block;
    max-width: 360px;
    font-size: 14px;
    line-height: 1.48;
}

.brand-copy strong span {
    color: var(--brand);
}

.header-search-form,
.site-header.is-sticky .header-search-form {
    display: grid !important;
    flex: 0 1 320px;
    grid-template-columns: minmax(0, 1fr) auto;
    width: min(320px, 28vw);
    min-width: 240px;
    margin: 0;
    border-color: var(--line);
    border-width: 1px;
}

.header-search-form input {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 14px;
}

.header-search-form button {
    min-height: 38px;
    padding: 0 14px;
    background: var(--brand);
    font-size: 13px;
    white-space: nowrap;
}

.category-sidebar h2,
.mobile-drawer-head {
    background: linear-gradient(105deg, var(--brand) 0%, var(--brand-dark) 100%) !important;
}

.pagination a:hover,
.pagination .current {
    border-color: var(--brand);
    background: var(--brand);
    box-shadow: 0 10px 22px rgba(194, 65, 12, .18);
}

.pagination a,
.pagination span {
    border-color: var(--line);
}

.mobile-drawer {
    background: var(--white) !important;
    opacity: 1;
    backdrop-filter: none;
}

.mobile-drawer-nav,
.mobile-subnav {
    background: var(--white);
}

.mobile-subnav {
    background: var(--surface);
}

@media (max-width: 1240px) {
    .brand-copy strong {
        max-width: 300px;
        font-size: 13px;
    }

    .header-search-form,
    .site-header.is-sticky .header-search-form {
        flex-basis: 260px;
        width: 260px;
        min-width: 220px;
    }
}

@media (max-width: 1050px) {
    .quote-button {
        display: none;
    }

    .header-search-form,
    .site-header.is-sticky .header-search-form {
        flex-basis: 240px;
        width: 240px;
        min-width: 200px;
    }
}

@media (max-width: 900px) {
    .brand img,
    .site-header.is-sticky .brand img {
        width: 52px;
        height: 52px;
    }

    .brand-copy {
        display: none !important;
    }

    .header-search-form,
    .site-header.is-sticky .header-search-form {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        min-width: 0;
        margin-top: 12px;
    }
}

/* Header spacing and catalog request fixes */
.nav-wrap,
.site-header.is-sticky .nav-wrap {
    gap: 0;
}

.brand {
    flex: 0 1 330px;
}

.brand-copy strong {
    max-width: 260px;
    font-size: 13px;
}

.brand-copy strong > span {
    display: block;
    color: var(--ink);
    white-space: normal;
}

.brand-copy strong {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.main-nav,
.site-header.is-sticky .main-nav {
    flex: 1 1 auto;
    justify-content: center;
}

.quote-button {
    display: none !important;
}

.price-row strong,
.detail-price strong {
    color: var(--brand);
}

.mobile-drawer {
    top: 0;
    bottom: 0;
    min-height: 100vh;
    height: 100vh;
    overflow-y: auto;
}

@supports (height: 100dvh) {
    .mobile-drawer {
        min-height: 100dvh;
        height: 100dvh;
    }
}

@media (max-width: 1240px) {
    .brand {
        flex-basis: 300px;
    }

    .brand-copy strong {
        max-width: 235px;
        font-size: 12px;
    }
}

@media (max-width: 900px) {
    .brand {
        flex: none;
    }
}

/* Page layout breathing room */
.content-page {
    margin-top: 12px ;
    padding-right: 24px;
    padding-left: 24px;
}

.about-editor-page {
    padding: 18px 0 64px;
}

.about-editor-shell {
    display: grid;
    gap: 26px;
}

.about-editor-heading {
    max-width: 920px;
    padding: 28px 0 6px;
    border-bottom: 1px solid var(--line);
}

.about-editor-heading span {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.about-editor-heading h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.about-editor-content {
    /*width: min(100%, 980px);*/
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.about-editor-content > :first-child {
    margin-top: 0;
}

.about-editor-content > :last-child {
    margin-bottom: 0;
}

.about-editor-content h2,
.about-editor-content h3,
.about-editor-content h4 {
    color: var(--ink);
    line-height: 1.18;
}

.about-editor-content p,
.about-editor-content li {
    color: var(--ink);
    font-size: 17px;
}

.about-editor-content.rich-text,
.about-editor-content.rich-text p,
.about-editor-content.rich-text li,
.about-editor-content.rich-text td,
.about-editor-content.rich-text th {
    color: var(--ink);
}

.about-editor-page .rich-text {
    color: var(--ink);
}

.rich-text figure {
    margin: 24px 0;
}

.rich-text img {
    height: auto;
    max-width: 100%;
    border-radius: 8px;
}

.rich-text .image-align-left {
    float: left;
    margin: 6px 24px 18px 0;
}

.rich-text .image-align-right {
    float: right;
    margin: 6px 0 18px 24px;
}

.rich-text .image-align-center {
    display: block;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.rich-text .image-align-center img,
.rich-text p[style*="text-align: center"] img,
.rich-text div[style*="text-align: center"] img {
    display: inline-block;
    margin-right: auto;
    margin-left: auto;
}

.rich-text figure.image_resized img {
    width: 100%;
}

.rich-text figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.rich-text .image-style-side {
    float: right;
    width: 42%;
    max-width: 45%;
    margin: 6px 0 18px 24px;
}

.rich-text figure.image-style-side,
.rich-text figure.image-style-align-right {
    float: right;
    width: 42%;
    max-width: 420px;
    margin: 6px 0 18px 24px;
}

.rich-text table {
    width: 100%;
    border-collapse: collapse;
}

.rich-text th,
.rich-text td {
    padding: 10px 12px;
    border: 1px solid var(--line);
}

.contact-layout {
    margin-top: 12px;
}

.contact-info {
    padding: 24px;
}

@media (max-width: 900px) {
    .content-page {
        padding-right: 16px;
        padding-left: 16px;
    }

    .about-editor-page {
        padding-bottom: 42px;
    }

    .about-editor-heading {
        padding-top: 18px;
    }

    .about-editor-content {
        padding: 22px 18px;
    }

    .rich-text .image-style-side {
        float: none;
        width: auto;
        max-width: 100%;
        margin: 24px 0;
    }

    .rich-text figure.image-style-side,
    .rich-text figure.image-style-align-right {
        float: none;
        width: auto;
        max-width: 100%;
        margin: 24px 0;
    }

    .rich-text .image-align-left,
    .rich-text .image-align-right {
        float: none;
        display: block;
        margin: 24px 0;
    }

    .contact-info {
        padding: 18px;
    }
}

/* Current navigation state */
.main-nav > a,
.nav-dropdown > a {
    position: relative;
}

.main-nav > a::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 4px;
    left: 14px;
    height: 2px;
    border-radius: 999px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}

.nav-dropdown-trigger::before {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 4px;
    left: 14px;
    height: 2px;
    border-radius: 999px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}

.main-nav > a.active,
.nav-dropdown-trigger.active {
    color: var(--brand) !important;
    background: transparent;
}

.main-nav > a:hover::after,
.main-nav > a.active::after,
.nav-dropdown-trigger:hover::before,
.nav-dropdown-trigger.active::before {
    transform: scaleX(1);
}

.mobile-drawer-nav a.active,
.mobile-nav-group summary.active {
    color: var(--brand);
    background: rgba(194, 65, 12, .1);
}

/* Keep company name visible beside the logo on tablet and mobile */
@media (max-width: 900px) {
    .brand,
    .site-header.is-sticky .brand {
        display: inline-flex;
        align-items: center;
        justify-self: center;
        gap: 9px;
        max-width: min(100%, 520px);
    }

    .brand-copy,
    .site-header.is-sticky .brand-copy {
        display: block !important;
        min-width: 0;
    }

    .brand-copy strong {
        max-width: min(52vw, 320px);
        font-size: 13px;
        line-height: 1.40;
    }

    .brand img,
    .site-header.is-sticky .brand img {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
    }
}

@media (max-width: 560px) {
    .brand,
    .site-header.is-sticky .brand {
        gap: 8px;
        justify-self: start;
        max-width: calc(100vw - 104px);
    }

    .brand-copy strong {
        max-width: calc(100vw - 150px);
        font-size: 11px;
        line-height: 1.18;
    }

    .brand img,
    .site-header.is-sticky .brand img {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
}

/* Make the company name more prominent in the header brand. */
.brand-copy strong,
.site-header.is-sticky .brand-copy strong {
    font-size: 15px;
    line-height: 1.55;
}

@media (max-width: 1240px) {
    .brand-copy strong,
    .site-header.is-sticky .brand-copy strong {
        font-size: 14px;
    }
}

@media (max-width: 900px) {
    .brand-copy strong,
    .site-header.is-sticky .brand-copy strong {
        font-size: 14px;
    }
}

@media (max-width: 560px) {
    .brand-copy strong,
    .site-header.is-sticky .brand-copy strong {
        font-size: 12px;
        line-height: 1.22;
    }
}

/* Final product-card sizing: tall uploaded images must not stretch cards. */
.product-grid {
    align-items: stretch;
}

.product-grid > .product-card {
    display: flex !important;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
}

.product-grid > .product-card .product-image {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--surface);
}

.product-grid > .product-card .product-image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover !important;
    object-position: center;
}

.product-grid > .product-card .product-info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.product-grid > .product-card .price-row {
    margin-top: auto;
}

.category-seo-copy {
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 251, 0.9));
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.category-seo-copy h1 {
    margin: 0 0 10px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.08;
}

.category-seo-copy p,
.category-seo-copy div {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .container {
        width: min(100% - 24px, 1280px);
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle,
    .mobile-menu-close,
    .mobile-drawer-nav a,
    .mobile-nav-group summary,
    .primary-button,
    .secondary-button,
    .product-link,
    .pagination a,
    .pagination span,
    .floating-contact-button {
        min-width: 44px;
        min-height: 44px;
    }

    .mobile-drawer-nav a,
    .mobile-nav-group summary {
        display: flex;
        align-items: center;
        padding: 12px 16px;
        font-size: 16px;
    }

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

    .home-hero-copy h1 {
        font-size: clamp(34px, 11vw, 56px);
    }
}

/* Category slider: keep categories in one row and navigate with buttons. */
.category-slider {
    position: relative;
}

.category-grid {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 280px);
    grid-template-columns: none !important;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 14px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.category-grid::-webkit-scrollbar {
    display: none;
}

.category-grid .category-tile {
    min-width: 0;
    scroll-snap-align: start;
}

.category-slider-button {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 253, 249, 0.94);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    transform: translateY(-50%);
}

.category-slider-button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.category-slider-button[hidden] {
    display: none;
}

.home-seo-content {
    margin-top: 64px;
}

.home-seo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.home-seo-grid article {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(250, 248, 244, 0.72);
}

.home-seo-grid h3 {
    margin: 0 0 12px;
    font-size: 20px;
}

.home-seo-grid p {
    margin: 0;
    color: var(--muted);
    line-height: 1.78;
}

.category-slider-prev {
    left: -18px;
}

.category-slider-next {
    right: -18px;
}

@media (max-width: 620px) {
    .category-grid {
        grid-auto-columns: calc(100vw - 48px);
    }

    .category-slider-prev {
        left: 6px;
    }

    .category-slider-next {
        right: 6px;
    }

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