:root {
    --cdf-primary: #0f2f4a;
    --cdf-accent: #d8562a;
    --cdf-soft: #f5f7f8;
    --cdf-ink: #17212b;
    --cdf-line: #dde5ea;
    --cdf-shadow: 0 18px 50px rgba(15, 47, 74, .11);
    --cdf-header-height: 94px;
}

html,
body {
    overflow-x: hidden;
}

*,
*::before,
*::after {
    min-width: 0;
}

body {
    color: var(--cdf-ink);
    background: #fff;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

.site-header {
    box-shadow: 0 10px 30px rgba(15, 47, 74, .07);
    z-index: 1040;
}

main > :last-child {
    margin-bottom: 0;
}

main {
    padding-top: var(--cdf-header-height);
}

.navbar-brand img {
    height: 46px;
    max-width: min(210px, 58vw);
    width: auto;
}

.site-header .navbar-collapse {
    align-items: center;
}

.main-nav-menu {
    justify-content: center;
}

.nav-link {
    font-weight: 600;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: .5rem;
    right: .5rem;
    bottom: .25rem;
    height: 2px;
    background: var(--cdf-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.btn-cdf {
    --bs-btn-bg: var(--cdf-accent);
    --bs-btn-border-color: var(--cdf-accent);
    --bs-btn-hover-bg: #bf4923;
    --bs-btn-hover-border-color: #bf4923;
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    box-shadow: 0 12px 24px rgba(216, 86, 42, .22);
}

.btn,
.form-control,
.form-select,
.card,
.accordion-item {
    border-radius: .75rem;
}

.btn {
    font-weight: 700;
    white-space: normal;
}

.btn:hover {
    transform: translateY(-1px);
}

.honeypot-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.text-cdf {
    color: var(--cdf-accent) !important;
}

.bg-cdf-dark {
    background: var(--cdf-primary);
}

.bg-cdf-soft {
    background: var(--cdf-soft);
}

.legal-page {
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
}

.legal-side {
    top: calc(var(--cdf-header-height) + 1.5rem);
}

.legal-summary .nav-link {
    color: var(--cdf-muted);
    border-bottom: 1px solid var(--cdf-line);
    font-weight: 700;
}

.legal-summary .nav-link:hover {
    color: var(--cdf-accent);
}

.legal-article {
    scroll-margin-top: calc(var(--cdf-header-height) + 1.5rem);
}

.legal-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    background: rgba(225, 82, 39, .1);
    color: var(--cdf-accent);
    font-weight: 800;
}

.legal-info-box {
    padding: 1rem;
    border: 1px solid var(--cdf-line);
    border-radius: .75rem;
    background: #fff;
}

.legal-info-box span {
    display: block;
    margin-bottom: .35rem;
    color: var(--cdf-muted);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.legal-info-box strong {
    display: block;
    color: var(--cdf-primary);
    line-height: 1.35;
}

.home-hero,
.hero-slide {
    min-height: 620px;
    background-position: center;
    background-size: cover;
    position: relative;
}

.page-hero {
    min-height: 250px;
    background-position: center;
    background-size: cover;
    position: relative;
    align-items: center !important;
}

.home-hero::before,
.hero-slide::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 20, 31, .92), rgba(7, 20, 31, .66) 44%, rgba(7, 20, 31, .2)),
        linear-gradient(0deg, rgba(7, 20, 31, .42), transparent 60%);
}

.home-hero {
    min-height: 720px;
    overflow: hidden;
}

.home-hero .container {
    position: relative;
    z-index: 1;
}

.hero-proof-strip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, .38);
}

.hero-proof {
    min-height: 98px;
    border-right: 1px solid var(--cdf-line);
}

.hero-proof:last-child {
    border-right: 0;
}

.hero-content,
.page-hero .container {
    position: relative;
    z-index: 1;
    padding-top: 2.25rem !important;
    padding-bottom: 2.25rem !important;
}

.page-hero-title {
    margin: 0 0 .65rem;
    font-size: 1.75rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0;
}

.object-fit-cover {
    object-fit: cover;
}

.section-kicker {
    color: var(--cdf-accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.section-title {
    letter-spacing: 0;
    line-height: 1.05;
}

h2.display-6 {
    font-size: 1.75rem;
}

.home-hero-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.home-hero-text {
    max-width: 42rem;
    font-size: 1rem;
    line-height: 1.5;
}

.home-hero .btn-lg {
    --bs-btn-padding-y: .55rem;
    --bs-btn-padding-x: 1rem;
    --bs-btn-font-size: 1rem;
    line-height: 1.25;
}

.premium-card {
    border: 1px solid rgba(15, 47, 74, .08) !important;
    box-shadow: var(--cdf-shadow);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.premium-card:hover {
    border-color: rgba(216, 86, 42, .28) !important;
    box-shadow: 0 24px 70px rgba(15, 47, 74, .15);
    transform: translateY(-4px);
}

.product-card {
    overflow: hidden;
}

.product-compact {
    min-height: 100%;
}

.product-compact .card-img-top {
    height: 170px;
}

.shop-sidebar {
    position: sticky;
    top: 102px;
}

.shop-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem .85rem;
    border: 1px solid var(--cdf-line);
    border-radius: .75rem;
    color: var(--cdf-ink);
    text-decoration: none;
    background: #fff;
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.shop-category-link:hover,
.shop-category-link.active {
    color: var(--cdf-accent);
    border-color: rgba(216, 86, 42, .45);
    transform: translateY(-1px);
}

.shop-filter-bar {
    border: 1px solid var(--cdf-line);
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 47, 74, .06);
}

.product-main-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.product-thumb-card {
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: .35rem;
    border: 1px solid var(--cdf-line);
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 47, 74, .07);
    transition: border-color .2s ease, transform .2s ease;
}

.product-thumb-card:hover,
.product-thumb-card.is-active {
    border-color: rgba(216, 86, 42, .65);
    transform: translateY(-2px);
}

.product-thumb-card img {
    width: 100%;
    height: 100%;
    border-radius: .55rem;
    object-fit: cover;
}

.product-detail-tabs .nav-link {
    border-radius: 999px;
    color: var(--cdf-ink);
    font-weight: 800;
}

.product-detail-tabs .nav-link.active {
    background: var(--cdf-accent);
    color: #fff;
}

.product-feature {
    min-height: 430px;
    background-position: center;
    background-size: cover;
    position: relative;
    overflow: hidden;
    border-radius: .75rem;
}

.product-feature::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(7, 20, 31, .84), rgba(7, 20, 31, .18));
}

.product-feature > * {
    position: relative;
    z-index: 1;
}

.editorial-image {
    min-height: 360px;
    background-position: center;
    background-size: cover;
}

.editorial-image-tall {
    min-height: 100%;
    height: 100%;
}

.usage-tile {
    min-height: 260px;
    background-position: center;
    background-size: cover;
    border-radius: .75rem;
    overflow: hidden;
    position: relative;
}

.usage-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(7, 20, 31, .78), rgba(7, 20, 31, .18));
}

.usage-tile > * {
    position: relative;
    z-index: 1;
}

.product-card img {
    transition: transform .35s ease;
}

.product-card:hover img {
    transform: scale(1.045);
}

.metric-card {
    background: #fff;
    border: 1px solid rgba(15, 47, 74, .08);
    box-shadow: 0 12px 32px rgba(15, 47, 74, .08);
    border-radius: 1rem;
    min-height: 112px;
}

.icon-chip {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cdf-accent);
    background: rgba(216, 86, 42, .1);
    border-radius: .85rem;
}

.card-img-top {
    height: 230px;
    object-fit: cover;
}

.product-card .badge {
    max-width: calc(100% - 1.5rem);
    white-space: normal;
    text-align: left;
}

.page-hero .breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: .1rem;
    margin-bottom: 1rem;
    padding: .55rem .8rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(7, 20, 31, .2);
}

.page-hero .breadcrumb-item {
    color: rgba(255, 255, 255, .82);
    font-size: .88rem;
    font-weight: 700;
}

.page-hero .breadcrumb-item + .breadcrumb-item::before,
.page-hero .breadcrumb a {
    color: rgba(255, 255, 255, .76);
}

.page-hero .breadcrumb .active {
    color: #fff;
}

.promo-badge {
    background: #138a5b;
    color: #fff;
}

.shop-action {
    min-width: 2.75rem;
}

.header-shop-actions {
    align-items: center;
    gap: .65rem;
}

.header-quote-action {
    margin-left: 1.55rem;
    white-space: nowrap;
}

.cart-line-img {
    width: 86px;
    height: 64px;
    object-fit: cover;
}

.cart-qty-input {
    width: 82px;
}

.offcanvas-cart {
    --bs-offcanvas-width: min(100vw, 460px);
}

.cart-drawer-line {
    border: 1px solid var(--cdf-line);
    border-radius: .85rem;
}

.wishlist-drawer-line {
    border: 1px solid var(--cdf-line);
    border-radius: .85rem;
    background: #fff;
}

.toast-container {
    z-index: 1080;
}

.testimonial-card {
    border: 1px solid rgba(15, 47, 74, .1);
    border-left: 4px solid var(--cdf-accent);
    border-radius: 1rem;
    min-height: 100%;
    box-shadow: 0 14px 34px rgba(15, 47, 74, .08);
}

.rating-stars {
    color: #f2a81d;
    letter-spacing: 0;
}

.promo-widget {
    position: fixed;
    left: 1.25rem;
    bottom: 3.25rem;
    z-index: 1060;
    width: min(340px, calc(100vw - 2rem));
}

.promo-widget-panel {
    display: none;
    margin-bottom: .75rem;
    overflow: hidden;
    border: 1px solid rgba(15, 47, 74, .12);
    border-radius: .85rem;
    background: #fff;
    box-shadow: 0 20px 55px rgba(15, 47, 74, .18);
}

.promo-widget.is-open .promo-widget-panel {
    display: block;
}

.promo-widget-toggle {
    border: 0;
    border-radius: 999px;
    background: var(--cdf-accent);
    color: #fff;
    box-shadow: 0 14px 32px rgba(216, 86, 42, .28);
    animation: promoPulse 3.6s ease-in-out infinite;
    transform-origin: left center;
    transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.promo-widget-toggle:hover,
.promo-widget-toggle:focus-visible {
    background: #b8421d;
    color: #fff;
    box-shadow: 0 18px 44px rgba(184, 66, 29, .42);
    transform: translateY(-2px);
}

.promo-widget-toggle i {
    animation: promoTicket 2.4s ease-in-out infinite;
}

.promo-widget.is-open .promo-widget-toggle {
    animation: none;
}

@keyframes promoPulse {
    0%,
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 14px 32px rgba(216, 86, 42, .28);
    }

    45% {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 18px 42px rgba(216, 86, 42, .38);
    }

    55% {
        transform: translateY(-2px) rotate(-1deg);
    }
}

@keyframes promoTicket {
    0%,
    100% {
        transform: rotate(0deg);
    }

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

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

.promo-code {
    display: inline-flex;
    align-items: center;
    padding: .2rem .45rem;
    border-radius: .45rem;
    background: rgba(216, 86, 42, .1);
    color: var(--cdf-accent);
    font-weight: 800;
    font-size: .78rem;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1070;
    width: 100%;
    border-top: 1px solid rgba(15, 47, 74, .12);
    background: #fff;
    box-shadow: 0 -14px 42px rgba(15, 47, 74, .16);
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .35s ease, opacity .35s ease;
}

.cookie-banner.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-preferences-modal .modal-content {
    border-radius: 1rem;
}

.cookie-choice-list {
    display: grid;
    gap: .85rem;
}

.cookie-choice-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--cdf-line);
    border-radius: .85rem;
    background: #fff;
}

.cookie-choice-item strong {
    color: var(--cdf-primary);
}

.cookie-choice-item .form-check-input {
    width: 3rem;
    height: 1.5rem;
    cursor: pointer;
}

.cookie-choice-item .form-check-input:checked {
    background-color: var(--cdf-accent);
    border-color: var(--cdf-accent);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991.98px) {
    :root {
        --cdf-header-height: 78px;
    }

    .site-header .navbar {
        padding-top: .65rem !important;
        padding-bottom: .65rem !important;
    }

    .navbar-brand img {
        height: 40px;
    }

    .home-hero,
    .hero-slide,
    .page-hero {
        min-height: auto;
        background-color: var(--cdf-primary);
        background-position: center;
    }

    .home-hero {
        min-height: 520px;
        background-image:
            linear-gradient(180deg, rgba(7, 20, 31, .82), rgba(7, 20, 31, .64)),
            var(--home-hero-mobile-image) !important;
        background-position: center;
        background-size: cover;
    }

    .hero-slide,
    .page-hero {
        background-image: linear-gradient(180deg, #12334f 0%, #0f2539 100%) !important;
    }

    .home-hero,
    .hero-slide {
        align-items: flex-start !important;
    }

    .page-hero {
        align-items: flex-end !important;
    }

    .home-hero::before,
    .hero-slide::before,
    .page-hero::before {
        background: rgba(7, 20, 31, .18);
    }

    .home-hero .container {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .home-hero .row,
    .home-hero [class*="col-"] {
        width: 100%;
        max-width: none;
    }

    .home-hero-title {
        margin-bottom: 1rem !important;
        max-width: 18ch;
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .home-hero-text {
        margin-bottom: 1.25rem !important;
        max-width: 32rem;
        font-size: 1rem;
        line-height: 1.5;
    }

    .home-hero .d-flex.flex-wrap {
        flex-direction: column;
        gap: .75rem !important;
    }

    .home-hero .btn {
        width: 100%;
        max-width: 22rem;
    }

    .hero-proof-strip {
        display: none !important;
    }

    .promo-widget {
        display: none !important;
    }

    .page-hero .container {
        padding-top: 1.35rem !important;
        padding-bottom: 1.35rem !important;
    }

    .page-hero .breadcrumb,
    .page-hero .text-white-50 {
        display: none;
    }

    .page-hero-title {
        margin-bottom: 0;
        font-size: 1.5rem;
        line-height: 1.2;
    }
}

@media (max-width: 767.98px) {
    :root {
        --cdf-header-height: 78px;
    }

    .site-header .navbar {
        padding-top: .65rem !important;
        padding-bottom: .65rem !important;
    }

    .site-header .navbar-collapse {
        max-height: calc(100vh - var(--cdf-header-height));
        overflow-y: auto;
        padding-top: .75rem;
    }

    .navbar-brand img {
        height: 40px;
    }

    .nav-link {
        padding: .72rem .25rem;
    }

    .nav-link::after {
        left: 0;
        right: auto;
        width: 2.5rem;
    }

    section.py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .container,
    .container-fluid {
        --bs-gutter-x: 1.25rem;
    }

    .home-hero,
    .hero-slide {
        min-height: 500px;
        align-items: flex-start !important;
        background-color: var(--cdf-primary);
        background-position: center;
    }

    .page-hero {
        min-height: auto;
        align-items: flex-end !important;
        background-color: var(--cdf-primary);
        background-position: center;
    }

    .home-hero::before,
    .hero-slide::before,
    .page-hero::before {
        background: rgba(7, 20, 31, .28);
    }

    .home-hero .container {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .home-hero-title {
        margin-bottom: 1rem !important;
        font-size: 1.45rem;
        line-height: 1.2;
    }

    .home-hero .badge {
        margin-bottom: .8rem !important;
        font-size: .7rem;
    }

    .home-hero-text {
        margin-bottom: 1.25rem !important;
        font-size: 1rem;
        line-height: 1.5;
    }

    .home-hero .d-flex.flex-wrap {
        flex-direction: column;
        gap: .75rem !important;
    }

    .home-hero .btn {
        width: 100%;
    }

    .page-hero .container {
        padding-top: 1.35rem !important;
        padding-bottom: 1.35rem !important;
    }

    .page-hero-title {
        margin-bottom: 0;
        font-size: 1.3rem;
        line-height: 1.2;
    }

    .page-hero .breadcrumb {
        display: none;
    }

    .page-hero .text-white-50 {
        display: none;
    }

    h2.display-6,
    .section-title {
        font-size: 1.35rem;
        line-height: 1.12;
    }

    .hero-proof-strip {
        display: none;
    }

    .hero-proof {
        border-right: 0;
        border-bottom: 1px solid var(--cdf-line);
    }

    .header-shop-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: .75rem;
        margin-bottom: .85rem;
        width: 100%;
    }

    .header-quote-action {
        display: flex;
        justify-content: center;
        margin-left: 0;
        margin-top: .25rem;
        width: 100%;
    }

    .shop-action {
        width: 100%;
    }

    .shop-filter-bar .d-flex,
    .product-card .d-flex.justify-content-between,
    .product-card .d-flex.gap-2,
    .cart-drawer-line .d-flex.justify-content-between,
    .wishlist-drawer-line .d-flex.justify-content-between,
    [data-quote-summary] .list-group-item,
    [data-cart-page] .d-flex.justify-content-between,
    [data-wishlist-page] .d-flex.justify-content-between {
        align-items: stretch !important;
        flex-direction: column;
    }

    .product-card .btn,
    .shop-filter-bar .btn,
    [data-cart-page] .btn,
    [data-wishlist-page] .btn {
        width: 100%;
    }

    .card-body {
        padding: 1.25rem !important;
    }

    .card-img-top {
        height: 190px;
    }

    .product-compact .card-img-top {
        height: 180px;
    }

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

    .product-feature,
    .usage-tile {
        min-height: 280px;
    }

    .editorial-image,
    .editorial-image-tall {
        min-height: 260px;
    }

    .product-detail-tabs .nav-pills {
        display: grid;
        grid-template-columns: 1fr;
    }

    .product-detail-tabs .nav-link {
        width: 100%;
    }

    .cart-line-img {
        width: 76px;
        height: 58px;
    }

    .cart-qty-input {
        width: 100%;
    }

    .list-group-item .row > [class*="col"] {
        width: 100%;
    }

    .list-group-item .row > .col-auto {
        width: auto;
    }

    .input-group {
        flex-direction: column;
    }

    .input-group > .form-control,
    .input-group > .btn {
        width: 100%;
        border-radius: .75rem !important;
    }

    .input-group > .btn {
        margin-top: .5rem;
    }

    .promo-widget {
        left: .75rem;
        right: .75rem;
        bottom: 1rem;
        width: auto;
    }

    .promo-widget-toggle {
        width: 100%;
        justify-content: center;
    }

    .cookie-banner {
        left: 0;
        right: 0;
        bottom: 0;
    }

    .cookie-choice-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .cookie-banner .btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .home-hero-title {
        font-size: 1.35rem;
    }

    .page-hero-title {
        font-size: 1.2rem;
    }

    h2.display-6,
    .section-title {
        font-size: 1.25rem;
    }

    .btn-lg {
        --bs-btn-padding-y: .5rem;
        --bs-btn-padding-x: .75rem;
        --bs-btn-font-size: 1rem;
    }

    .home-hero .btn-lg {
        --bs-btn-padding-y: .45rem;
        --bs-btn-font-size: .95rem;
        line-height: 1.2;
    }

    .page-hero .container,
    .home-hero .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

