/* KXM product detail page: Carhartt-style gallery with a compact HBX-like rail. */
body.kxm-product-page .main-container {
    width: 100%;
    max-width: 1744px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 32px;
    padding-left: 32px;
}

body.kxm-product-page .main-container .col-main {
    float: none;
    width: 100%;
    max-width: none;
}

.kxm-pdp,
.kxm-pdp * {
    box-sizing: border-box;
}

.kxm-pdp {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 0 64px;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

.kxm-pdp a {
    color: inherit;
    text-decoration: none;
}

.kxm-pdp a:hover,
.kxm-pdp a:focus {
    text-decoration: none;
}

.kxm-pdp button,
.kxm-pdp input,
.kxm-pdp select,
.kxm-pdp textarea {
    font: inherit;
}

.kxm-pdp-breadcrumbs {
    padding: 22px 0 24px;
    color: #858585;
    font-size: 12px;
}

.kxm-pdp-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kxm-pdp-breadcrumbs li {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.kxm-pdp-breadcrumbs li + li::before {
    content: "›";
    margin: 0 8px;
    color: #aaa;
}

.kxm-pdp-breadcrumbs a:hover,
.kxm-pdp-breadcrumbs a:focus-visible {
    color: #111;
}

.kxm-pdp-breadcrumbs [aria-current="page"] span {
    overflow: hidden;
    max-width: 420px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kxm-pdp .kxm-pdp-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(440px, 1.1fr);
    align-items: start;
    gap: 24px;
}

.kxm-pdp-media,
.kxm-pdp-info {
    min-width: 0;
}

/* Gallery */
.kxm-pdp-gallery {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.kxm-pdp-gallery--count-1 {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
}

.kxm-pdp-gallery-item {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
}

.kxm-pdp-image-button {
    display: flex;
    width: 100%;
    min-height: 1px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.kxm-pdp-image-button img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
    border: 0;
    object-fit: contain;
}

.kxm-pdp-discount-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    min-width: 48px;
    padding: 7px 9px;
    background: #00758f;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
}

.kxm-pdp-mobile-counter {
    display: none;
}

/* Product information */
.kxm-pdp-purchase-card {
    padding: 0 0 26px;
    border-bottom: 1px solid #dedede;
}

.kxm-pdp-brand {
    margin: 0 0 10px;
    color: #111;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.kxm-pdp-brand a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.kxm-pdp-brand a:hover,
.kxm-pdp-brand a:focus-visible {
    color: #00758f;
}

.kxm-pdp .kxm-pdp-title {
    max-width: 640px;
    margin: 0 0 22px;
    padding: 0;
    color: #111;
    font-size: clamp(22px, 1.45vw, 26px);
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1.16;
    text-transform: none;
}

.kxm-pdp-price {
    margin: 0 0 24px;
}

.kxm-pdp .price-box {
    margin: 0;
    padding: 0;
}

.kxm-pdp .price-box .price,
.kxm-pdp .price-box .regular-price .price,
.kxm-pdp .price-box .special-price .price {
    color: #00758f;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
}

.kxm-pdp .price-box .old-price {
    display: inline-block;
    margin: 0 8px 0 0;
}

.kxm-pdp .price-box .old-price .price {
    color: #8d8d8d;
    font-size: 17px;
    font-weight: 400;
    text-decoration: line-through;
}

.kxm-pdp-color {
    margin: 0 0 18px;
    color: #111;
    font-size: 13px;
    line-height: 1.45;
}

.kxm-pdp-color span {
    color: #777;
}

.kxm-pdp .price-box .special-price {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.kxm-pdp .price-box .price-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.kxm-pdp-availability {
    margin: 0 0 16px;
    color: #6f6f6f;
    font-size: 12px;
}

.kxm-pdp-availability .availability {
    float: none;
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: 400;
    text-transform: none;
}

.kxm-pdp-availability .availability span {
    color: inherit;
    font-weight: 400;
}

.kxm-pdp-availability .availability.out-of-stock,
.kxm-pdp-availability .alert-price,
.kxm-pdp-availability .alert-stock {
    display: block;
    margin: 8px 0 0;
}

.kxm-pdp-buy-area {
    margin-top: 22px;
}

.kxm-pdp .product-options {
    margin: 0 0 20px;
    padding: 0;
    border: 0;
    background: transparent;
}

.kxm-pdp .product-options p.required,
.kxm-pdp .product-options .required em {
    display: none;
}

.kxm-pdp .product-options dl,
.kxm-pdp .product-options dt,
.kxm-pdp .product-options dd {
    margin: 0;
    padding: 0;
}

.kxm-pdp .product-options dt,
.kxm-pdp .product-options .swatch-attr > label,
.kxm-pdp .product-options label.required {
    display: block;
    margin: 0 0 10px;
    color: #111;
    font-size: 13px;
    font-weight: 400;
    text-transform: none;
}

.kxm-pdp .product-options .select-label {
    color: #777;
    font-weight: 400;
}

.kxm-pdp .product-options dd + dt,
.kxm-pdp .product-options .swatch-attr + .swatch-attr {
    margin-top: 18px;
}

.kxm-pdp .product-options select,
.kxm-pdp .product-options input.input-text,
.kxm-pdp .product-options textarea {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #cfcfcf;
    border-radius: 0;
    background: #fff;
    color: #111;
}

.kxm-pdp .configurable-swatch-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.kxm-pdp .configurable-swatch-list > li {
    float: none;
    margin: 0;
}

.kxm-pdp .configurable-swatch-list .swatch-link,
.kxm-pdp .configurable-swatch-list .swatch-label {
    display: inline-flex;
    min-width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #cfcfcf;
    border-radius: 0;
    background: #fff;
    color: #111;
    font-size: 13px;
    font-weight: 400;
    line-height: 42px;
    text-align: center;
}

.kxm-pdp .configurable-swatch-list .swatch-link:hover,
.kxm-pdp .configurable-swatch-list .swatch-link:focus-visible,
.kxm-pdp .configurable-swatch-list .selected .swatch-link {
    border-color: #111;
    outline: 0;
}

/* Carhartt WIP-like size tiles. The class is added only to the size attribute. */
.kxm-pdp .kxm-pdp-size-attribute > label,
.kxm-pdp .kxm-pdp-size-attribute > .select-label,
.kxm-pdp .kxm-pdp-size-attribute .kxm-pdp-size-label {
    display: none !important;
}

.kxm-pdp .product-options dt.kxm-pdp-size-attribute {
    display: none !important;
}

.kxm-pdp .kxm-pdp-size-attribute .configurable-swatch-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.kxm-pdp .kxm-pdp-size-attribute .configurable-swatch-list > li {
    width: 100%;
}

.kxm-pdp .kxm-pdp-size-attribute .swatch-link,
.kxm-pdp .kxm-pdp-size-attribute .swatch-label {
    width: 100% !important;
    min-width: 0 !important;
    height: 54px !important;
    padding: 0 12px !important;
    border-color: transparent;
    background: #f1f1f1;
    color: #111;
    font-size: 14px;
    line-height: 52px !important;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.kxm-pdp .kxm-pdp-size-attribute .swatch-label {
    border: 0;
    background: transparent;
    color: inherit;
}

.kxm-pdp .kxm-pdp-size-attribute .swatch-link:hover,
.kxm-pdp .kxm-pdp-size-attribute .swatch-link:focus-visible {
    border-color: transparent;
    background: #dcdcdc;
    color: #111;
    outline: 0;
}

.kxm-pdp .kxm-pdp-size-attribute .selected .swatch-link {
    border-color: #00758f;
    background: #00758f;
    color: #fff;
}

.kxm-pdp .kxm-pdp-size-attribute .selected .swatch-link:hover,
.kxm-pdp .kxm-pdp-size-attribute .selected .swatch-link:focus-visible {
    border-color: #00758f;
    background: #00758f;
    color: #fff;
}

.kxm-pdp .kxm-pdp-size-attribute .not-available .swatch-link,
.kxm-pdp .kxm-pdp-size-attribute .swatch-link.has-image.not-available {
    border-color: transparent;
    background-color: #f7f7f7;
    color: #aaa;
}

.kxm-pdp .configurable-swatch-list .not-available .swatch-link,
.kxm-pdp .configurable-swatch-list .swatch-link.has-image.not-available {
    color: #aaa;
    background: linear-gradient(to top right, transparent calc(50% - 0.5px), #bbb 50%, transparent calc(50% + 0.5px));
    opacity: .65;
}

.kxm-pdp .validation-advice {
    margin: 7px 0 0;
    color: #b00020;
    font-size: 12px;
}

.kxm-pdp .product-options-bottom,
.kxm-pdp .kxm-pdp-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.kxm-pdp .product-options-bottom .price-box,
.kxm-pdp .product-options-bottom .tier-prices-product,
.kxm-pdp .product-options-bottom .price-notice {
    display: none;
}

.kxm-pdp .kxm-pdp-add-to-cart,
.kxm-pdp .product-options-bottom .add-to-cart {
    display: block;
    float: none;
    flex: 1 1 auto;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
}

.kxm-pdp .kxm-pdp-main-cta,
.kxm-pdp .kxm-pdp-sticky-button {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px 18px;
    border: 1px solid #00758f;
    border-radius: 0;
    background: #00758f;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: none;
    cursor: pointer;
}

.kxm-pdp .kxm-pdp-main-cta:hover,
.kxm-pdp .kxm-pdp-main-cta:focus-visible,
.kxm-pdp .kxm-pdp-sticky-button:hover,
.kxm-pdp .kxm-pdp-sticky-button:focus-visible {
    border-color: #005f75;
    background: #005f75;
    outline: 0;
}

.kxm-pdp .kxm-pdp-main-cta[disabled],
.kxm-pdp .kxm-pdp-sticky-button[disabled] {
    opacity: .6;
    cursor: default;
}

.kxm-pdp .kxm-pdp-wishlist,
.kxm-pdp .product-options-bottom .kxm-pdp-wishlist {
    flex: 0 0 48px;
    margin: 0;
    padding: 0;
}

.kxm-pdp .kxm-pdp-wishlist-link {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfcfcf;
    background: #fff;
}

.kxm-pdp .kxm-pdp-wishlist-link:hover,
.kxm-pdp .kxm-pdp-wishlist-link:focus-visible {
    border-color: #111;
    outline: 0;
}

.kxm-pdp .kxm-pdp-wishlist-link svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.kxm-pdp .add-to-links,
.kxm-pdp .link-compare,
.kxm-pdp .sharing-links,
.kxm-pdp .or,
.kxm-pdp .qty-wrapper {
    display: none !important;
}

.kxm-pdp .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Service shortcuts */
.kxm-pdp-services {
    border-bottom: 1px solid #dedede;
}

.kxm-pdp-service {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 16px;
    width: 100%;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    margin: 0;
    padding: 0;
    border: 0;
    border-top: 1px solid #dedede;
    border-radius: 0;
    background: transparent;
    color: #111;
    text-align: left;
}

.kxm-pdp-services .kxm-pdp-service:first-child {
    border-top: 0;
}

.kxm-pdp-service svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.35;
}

.kxm-pdp-service strong,
.kxm-pdp-service small {
    display: block;
    font-weight: 400;
}

.kxm-pdp-service strong {
    color: #111;
    font-size: 13px;
}

.kxm-pdp-service small {
    margin-top: 2px;
    color: #808080;
    font-size: 11px;
}

.kxm-pdp-service-arrow {
    color: #777;
    font-size: 14px;
    text-align: right;
}

.kxm-pdp-service:hover strong,
.kxm-pdp-service:focus-visible strong {
    color: #00758f;
}

.kxm-pdp-service-button {
    cursor: pointer;
    appearance: none;
}

/* Accordions */
.kxm-pdp-accordion {
    border-bottom: 1px solid #dedede;
}

.kxm-pdp-accordion-toggle {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 13px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
}

.kxm-pdp-accordion-toggle > span:last-child {
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    transition: transform .18s ease;
}

.kxm-pdp-accordion-toggle[aria-expanded="true"] > span:last-child {
    transform: rotate(45deg);
}

.kxm-pdp-accordion-toggle:focus-visible {
    outline: 1px solid #111;
    outline-offset: 3px;
}

.kxm-pdp-accordion-panel {
    padding: 0 0 18px;
    color: #555;
    font-size: 12px;
    line-height: 1.65;
}

.kxm-pdp-accordion-panel[hidden] {
    display: none;
}

.kxm-pdp-accordion-panel p:first-child,
.kxm-pdp-accordion-panel .std > :first-child {
    margin-top: 0;
}

.kxm-pdp-accordion-panel p:last-child,
.kxm-pdp-accordion-panel .std > :last-child {
    margin-bottom: 0;
}

.kxm-pdp-accordion-panel table {
    width: 100%;
    border: 0;
}

.kxm-pdp-accordion-panel th,
.kxm-pdp-accordion-panel td {
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: 400;
    text-align: left;
}

.kxm-pdp-accordion-panel th {
    width: 42%;
    padding-right: 12px;
    color: #777;
}

.kxm-pdp-size-guide {
    overflow-x: auto;
}

.kxm-pdp-size-guide table {
    min-width: 420px;
    border-collapse: collapse;
}

.kxm-pdp-size-guide th,
.kxm-pdp-size-guide td {
    width: auto;
    padding: 9px 12px;
    border-bottom: 1px solid #e1e1e1;
    color: #333;
    white-space: nowrap;
}

.kxm-pdp-details-list {
    margin: 0;
}

.kxm-pdp-details-list > div {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 8px;
}

.kxm-pdp-details-list > div + div {
    margin-top: 7px;
}

.kxm-pdp-details-list dt,
.kxm-pdp-details-list dd {
    margin: 0;
    color: #111;
    font-size: 13px;
    font-weight: 400;
}

.kxm-pdp-details-list dt {
    color: #777;
}

.kxm-pdp-details-list a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.kxm-pdp-policy-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kxm-pdp-policy-links li + li {
    margin-top: 8px;
}

.kxm-pdp-policy-links a {
    color: #111;
}

.kxm-pdp-policy-links a:hover,
.kxm-pdp-policy-links a:focus-visible {
    color: #00758f;
}

/* Sticky compact buy bar */
.kxm-pdp-sticky-buy {
    position: fixed;
    right: max(32px, calc((100vw - 1680px) / 2 + 32px));
    bottom: 24px;
    z-index: 80;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 146px 154px;
    gap: 12px;
    width: min(570px, calc(100vw - 64px));
    align-items: center;
    padding: 12px;
    border: 1px solid #d8d8d8;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .18s ease, transform .18s ease;
}

.kxm-pdp-sticky-buy.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.kxm-pdp-sticky-meta {
    min-width: 0;
}

.kxm-pdp-sticky-meta > span:first-child {
    display: block;
    overflow: hidden;
    margin-bottom: 3px;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kxm-pdp-sticky-meta .price-box .price {
    font-size: 13px;
}

.kxm-pdp-sticky-size[hidden] {
    display: none;
}

.kxm-pdp-sticky-size {
    min-width: 0;
}

.kxm-pdp-sticky-size label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.kxm-pdp-sticky-size select {
    display: block;
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0 34px 0 12px;
    border: 1px solid #cfcfcf;
    border-radius: 0;
    background-color: #fff;
    color: #111;
    font-size: 13px;
    line-height: 40px;
}

.kxm-pdp-sticky-size select:focus {
    border-color: #00758f;
    outline: 2px solid rgba(0, 117, 143, .18);
    outline-offset: 0;
}

.kxm-pdp-sticky-size select.is-invalid {
    border-color: #a51d1d;
    outline-color: rgba(165, 29, 29, .14);
}

.kxm-pdp-sticky-button {
    min-height: 42px;
    padding-right: 12px;
    padding-left: 12px;
}

/* Lightbox */
body.kxm-lightbox-open {
    overflow: hidden;
}

.kxm-pdp-lightbox[hidden] {
    display: none;
}

.kxm-pdp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.kxm-pdp-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .98);
}

.kxm-pdp-lightbox-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 48px 72px;
    touch-action: pan-y pinch-zoom;
    overscroll-behavior: contain;
    user-select: none;
}

.kxm-pdp-lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.kxm-pdp-lightbox-close,
.kxm-pdp-lightbox-nav {
    position: absolute;
    z-index: 2;
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111;
    cursor: pointer;
}

.kxm-pdp-lightbox-close {
    top: 16px;
    right: 20px;
}

.kxm-pdp-lightbox-close svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.kxm-pdp-lightbox-prev {
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
}

.kxm-pdp-lightbox-next {
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
}

.kxm-pdp-lightbox-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    color: #555;
    font-size: 12px;
    transform: translateX(-50%);
}

/* Manufacturer story below the complete gallery. */
.kxm-pdp-brand-story {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 96px);
    margin-top: 72px;
    padding: 40px 0;
    border-top: 1px solid #dedede;
    border-bottom: 1px solid #dedede;
}

.kxm-pdp-brand-story-heading p {
    margin: 0 0 8px;
    color: #858585;
    font-size: 12px;
}

.kxm-pdp-brand-story-heading h2 {
    margin: 0 0 18px;
    color: #111;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: none;
}

.kxm-pdp-brand-story-heading a {
    color: #111;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.kxm-pdp-brand-story-content {
    max-width: 900px;
    color: #555;
    font-size: 13px;
    line-height: 1.7;
}

.kxm-pdp-brand-story-content > :first-child {
    margin-top: 0;
}

.kxm-pdp-brand-story-content > :last-child {
    margin-bottom: 0;
}

.kxm-pdp-brand-story-content img {
    max-width: 120px;
    height: auto;
    margin: 0 24px 16px 0;
}

/* Delivery prices modal. */
.kxm-pdp-shipping-modal[hidden] {
    display: none;
}

.kxm-pdp-shipping-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: Arial, Helvetica, sans-serif;
}

.kxm-pdp-shipping-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, .4);
    cursor: default;
}

.kxm-pdp-shipping-dialog {
    position: relative;
    z-index: 1;
    width: min(460px, 100%);
    padding: 30px;
    background: #fff;
    box-shadow: 0 16px 50px rgba(0, 0, 0, .18);
}

.kxm-pdp-shipping-dialog h2 {
    margin: 0 40px 24px 0;
    color: #111;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: none;
}

.kxm-pdp-shipping-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 27px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.kxm-pdp-shipping-rates {
    margin: 0;
    border-top: 1px solid #dedede;
}

.kxm-pdp-shipping-rates > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    padding: 14px 0;
    border-bottom: 1px solid #dedede;
}

.kxm-pdp-shipping-rates dt,
.kxm-pdp-shipping-rates dd {
    margin: 0;
    color: #111;
    font-size: 13px;
    font-weight: 400;
}

.kxm-pdp-shipping-rates dd {
    font-weight: 500;
}

.kxm-pdp-shipping-dialog > p {
    margin: 18px 0 0;
    color: #777;
    font-size: 11px;
    line-height: 1.5;
}

body.kxm-shipping-modal-open {
    overflow: hidden;
}

/* Product discovery and recently viewed rails. */
.kxm-product-discovery {
    clear: both;
    margin-top: 64px;
}

.kxm-product-discovery--recent {
    margin-top: 76px;
}

.kxm-product-discovery-header {
    display: flex;
    min-height: 28px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.kxm-product-discovery-header h2 {
    margin: 0;
    color: #111;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    text-transform: none;
}

.kxm-product-discovery-header > a {
    flex: 0 0 auto;
    color: #555;
    font-size: 12px;
}

.kxm-product-discovery-header > a:hover,
.kxm-product-discovery-header > a:focus-visible {
    color: #111;
}

.kxm-product-rail-shell {
    position: relative;
}

.kxm-product-rail {
    display: grid;
    grid-auto-columns: calc((100% - 64px) / 5);
    grid-auto-flow: column;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.kxm-product-rail::-webkit-scrollbar {
    display: none;
}

.kxm-product-rail:focus {
    outline: 0;
}

.kxm-product-rail:focus-visible {
    outline: 1px solid #111;
    outline-offset: 4px;
}

.kxm-product-rail-card {
    min-width: 0;
    margin: 0;
    scroll-snap-align: start;
}

.kxm-product-rail-image {
    position: relative;
    display: flex;
    width: 100%;
    aspect-ratio: 1 / 1.44;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 0;
    background: transparent;
}

.kxm-product-rail-image img {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
    transition: opacity .18s ease;
}

.kxm-product-rail-image:hover img,
.kxm-product-rail-image:focus-visible img {
    opacity: .92;
}

.kxm-product-rail-discount {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 1;
    min-width: 44px;
    padding: 6px 8px;
    background: #00758f;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
}

.kxm-product-rail-meta {
    padding-top: 12px;
}

.kxm-product-rail-meta h3 {
    display: -webkit-box;
    overflow: hidden;
    min-height: 36px;
    margin: 0 0 7px;
    color: #111;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    text-transform: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.kxm-product-rail-meta h3 a {
    text-decoration: none;
}

.kxm-product-rail-price {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
}

.kxm-product-rail-price .current-price {
    color: #00758f;
    font-weight: 600;
}

.kxm-product-rail-price .old-price {
    color: #858585;
    font-weight: 400;
    text-decoration: line-through;
}

.kxm-product-rail-control {
    position: absolute;
    top: calc(50% - 42px);
    z-index: 3;
    display: none;
    width: 38px;
    height: 52px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 1px solid #dedede;
    border-radius: 0;
    background: rgba(255, 255, 255, .96);
    color: #111;
    font-size: 17px;
    box-shadow: none;
}

.kxm-product-rail-control--prev {
    left: 0;
}

.kxm-product-rail-control--next {
    right: 0;
}

.kxm-product-rail-shell.is-scrollable .kxm-product-rail-control {
    display: flex;
}

.kxm-product-rail-control[disabled] {
    opacity: 0;
    pointer-events: none;
}

.kxm-product-rail-control:hover,
.kxm-product-rail-control:focus-visible {
    border-color: #111;
    background: #fff;
    color: #111;
}

/* Related and upsell sections inherit the category card rhythm. */
.kxm-pdp .box-collateral,
.kxm-pdp + .box-collateral,
.kxm-pdp .block-related {
    clear: both;
    margin-top: 56px;
}

.kxm-pdp .box-title h2,
.kxm-pdp .block-title strong {
    color: #111;
    font-size: 16px;
    font-weight: 400;
    text-transform: none;
}

@media (max-width: 1199px) {
    .kxm-pdp .kxm-pdp-grid {
        grid-template-columns: minmax(0, 1.55fr) minmax(400px, 1fr);
        gap: 24px;
    }

    .kxm-product-rail {
        grid-auto-columns: calc((100% - 48px) / 4);
    }
}

@media (max-width: 1023px) {
    body.kxm-product-page .main-container {
        padding-right: 24px;
        padding-left: 24px;
    }

    .kxm-pdp .kxm-pdp-grid {
        display: block;
    }

    .kxm-pdp-gallery,
    .kxm-pdp-gallery--count-1 {
        display: flex;
        grid-template-columns: none;
        justify-content: flex-start;
        gap: 0;
        overflow-x: auto;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
    }

    .kxm-pdp-gallery::-webkit-scrollbar {
        display: none;
    }

    .kxm-pdp-gallery-item {
        flex: 0 0 100%;
        scroll-snap-align: start;
    }

    .kxm-pdp-image-button {
        min-height: 0;
    }

    .kxm-pdp-mobile-counter {
        position: absolute;
        right: 12px;
        bottom: 12px;
        z-index: 3;
        display: block;
        padding: 6px 9px;
        background: rgba(255, 255, 255, .9);
        color: #111;
        font-size: 11px;
    }

    .kxm-pdp-info {
        max-width: 620px;
        margin: 28px auto 0;
    }

    .kxm-pdp-brand-story {
        grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
        margin-top: 56px;
    }

    .kxm-product-rail {
        grid-auto-columns: calc((100% - 32px) / 3);
    }

    .kxm-pdp-sticky-buy {
        right: 24px;
        bottom: 16px;
        width: calc(100vw - 48px);
        max-width: 680px;
    }
}

@media (max-width: 767px) {
    body.kxm-product-page .main-container {
        padding-right: 0;
        padding-left: 0;
    }

    .kxm-pdp {
        padding: 0 16px 40px;
    }

    .kxm-pdp-breadcrumbs {
        padding: 14px 0 16px;
        font-size: 11px;
    }

    .kxm-pdp-breadcrumbs [aria-current="page"] span {
        max-width: 190px;
    }

    .kxm-pdp .kxm-pdp-title {
        margin-bottom: 18px;
        font-size: 21px;
    }

    .kxm-pdp .price-box .price,
    .kxm-pdp .price-box .regular-price .price,
    .kxm-pdp .price-box .special-price .price {
        font-size: 17px;
    }

    .kxm-pdp-info {
        margin-top: 22px;
    }

    .kxm-pdp-purchase-card {
        padding-bottom: 20px;
    }

    .kxm-pdp-service {
        min-height: 62px;
    }

    .kxm-pdp-brand-story {
        display: block;
        margin-top: 44px;
        padding: 30px 0;
    }

    .kxm-pdp-brand-story-heading {
        margin-bottom: 24px;
    }

    .kxm-pdp-brand-story-heading h2 {
        font-size: 22px;
    }

    .kxm-product-discovery,
    .kxm-product-discovery--recent {
        margin-top: 48px;
    }

    .kxm-product-discovery-header {
        margin-bottom: 16px;
    }

    .kxm-product-discovery-header h2 {
        font-size: 15px;
    }

    .kxm-product-rail {
        grid-auto-columns: calc((100% - 12px) / 2.15);
        gap: 12px;
        margin-right: -16px;
        padding-right: 16px;
    }

    .kxm-product-rail-control {
        display: none !important;
    }

    .kxm-product-rail-meta {
        padding-top: 10px;
    }

    .kxm-product-rail-meta h3 {
        min-height: 34px;
        font-size: 12px;
    }

    .kxm-pdp-shipping-dialog {
        padding: 26px 20px 22px;
    }

    .kxm-pdp-lightbox-dialog {
        padding: 52px 16px 48px;
    }

    .kxm-pdp-lightbox-prev {
        left: 0;
    }

    .kxm-pdp-lightbox-next {
        right: 0;
    }

    .kxm-pdp-sticky-buy {
        left: 8px;
        right: 8px;
        bottom: 8px;
        grid-template-columns: minmax(112px, 42%) minmax(0, 1fr);
        gap: 8px;
        width: auto;
        padding: 8px;
    }

    .kxm-pdp-sticky-meta {
        display: none;
    }

    .kxm-pdp-sticky-size select,
    .kxm-pdp-sticky-button {
        min-height: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kxm-pdp-gallery,
    .kxm-pdp-sticky-buy,
    .kxm-pdp-accordion-toggle > span:last-child {
        scroll-behavior: auto;
        transition: none;
    }
}
