﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
/* Skip link */
.skip-link {
    position: absolute;
    left: 1rem;
    top: 1rem;
    padding: .5rem .75rem;
    background: #fff;
    border: 2px solid #000;
    border-radius: .5rem;
    z-index: 2000;
    transform: translateY(-200%);
    transition: transform .15s ease;
    text-decoration: none;
}

    .skip-link:focus {
        transform: translateY(0);
    }

/* Strong keyboard focus */
:focus-visible {
    outline: 3px solid #000 !important;
    outline-offset: 3px;
}

/* Top bar */
.topbar {
    background: #6d6d6d;
    color: #fff;
    padding: .75rem 0;
}

.brand-logo {
    height: 48px;
    background: #fff;
    padding: 5px;
}

.brand-title {
    font-size: 1.6rem;
    font-weight: 700;
}

/* Category bar */
.catbar {
    background: #fff;
}

.catbar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.catbar-link {
    display: inline-block;
    padding: 14px 22px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
}

    .catbar-link:hover {
        background: #f3f3f3;
        color: #000;
    }
.cat-card {
    display: block;
    text-decoration: none;
    border: 1px solid #e5e5e5;
    border-radius: .5rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.cat-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.cat-card-title {
    display: block;
    text-align: center;
    font-weight: 700;
    padding: 14px 12px;
    color: #444;
}
/* Filters */
.filter-panel {
    border: 1px solid #e5e5e5;
    border-radius: .5rem;
    padding: .75rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

/* Product cards */
.product-card {
    border: 1px solid #e6e6e6;
    border-radius: .5rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    height: 100%;
}

.product-imgwrap {
    display: block;
    background: #f7f7f7;
}

.product-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.product-sku {
    font-size: .9rem;
    color: #555;
}

.product-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
}

.product-title {
    font-size: .85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.product-imgwrap {
    background: #f7f7f7;
}

.product-img {
    width: 100%;
    aspect-ratio: 1 / 1; /* ✅ square */
    height: auto;
    object-fit: cover;
    display: block;
}
.product-title {
    line-height: 1.15;
}

.product-card {
    border-radius: .6rem;
}
.pdp-card {
    border: 1px solid #e6e6e6;
    border-radius: .5rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    padding: 1rem;
}

.pdp-mainimg-wrap {
    border: 1px solid #e6e6e6;
    border-radius: .5rem;
    overflow: hidden;
    background: #f7f7f7;
    margin: 0;
}

.pdp-mainimg {
    width: 100%;
    height: 560px;
    object-fit: cover;
    display: block;
}

.thumb-btn {
    border: 1px solid #e6e6e6;
    border-radius: .5rem;
    background: #fff;
    padding: 0;
    overflow: hidden;
}

.thumb-img {
    width: 100%;
    height: 78px;
    object-fit: cover;
    display: block;
}

.thumb-btn:focus-visible {
    outline: 3px solid #000;
    outline-offset: 3px;
}

.pdp-gallery {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 12px;
    align-items: start;
}

.pdp-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumb-btn {
    border: 1px solid #e6e6e6;
    border-radius: .5rem;
    background: #fff;
    padding: 0;
    overflow: hidden;
    width: 86px;
    height: 86px;
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pdp-mainimg-wrap {
    border: 1px solid #e6e6e6;
    border-radius: .75rem;
    overflow: hidden;
    background: #f7f7f7;
    margin: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.pdp-mainimg {
    width: 100%;
    height: 620px;
    object-fit: cover;
    display: block;
}

@media (max-width: 991.98px) {
    .pdp-gallery {
        grid-template-columns: 1fr;
    }

    .pdp-thumbs {
        order: 2;
        flex-direction: row;
        overflow: auto;
        padding-bottom: 6px;
    }

    .thumb-btn {
        flex: 0 0 auto;
    }

    .pdp-mainimg {
        height: 420px;
    }
}
/* Thumbnail dropdown style */
.dropdown-menu-thumb {
    width: 340px;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    border: 1px solid #e6e6e6;
}

.thumb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
}

    .thumb-item:hover,
    .thumb-item:focus {
        background: #f3f5f7;
        color: #111;
    }

.thumb {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid #d9d9d9;
    background: linear-gradient(135deg, #f7f7f7, #e9e9e9);
    flex: 0 0 34px;
    position: relative;
    overflow: hidden;
}

    /* Optional “image” hint inside placeholder (no real image yet) */
    .thumb::after {
        content: "";
        position: absolute;
        inset: 8px;
        border-radius: 4px;
        border: 1px dashed rgba(0,0,0,.15);
    }

.thumb-text {
    line-height: 1.15;
}
.thumb {
    background-size: cover;
    background-position: center;
}

    .thumb::after {
        display: none;
    }
/* remove dashed placeholder */

/* 5-column grid helper (Bootstrap-ish) */
@media (min-width: 1200px) {
    .col-xl-2-4 {
        flex: 0 0 auto;
        width: 20%;
    }
}
.product-card {
    border: 1px solid #e6e6e6;
    border-radius: .6rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}
/* 5-column helper */
@media (min-width: 1200px) {
    .col-xl-2-4 {
        flex: 0 0 auto;
        width: 20%;
    }
}

/* card layout so content doesn't overflow */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.product-img {
    width: 100%;
    aspect-ratio: 1 / 1; /* square */
    height: auto;
    object-fit: cover;
    display: block;
}

.product-body {
    flex: 1 1 auto;
}

/* keep title readable without pushing button off */
.product-title {
    font-size: .85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2 lines max */
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.global-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.global-loader__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(1px);
}

.global-loader__panel {
    position: absolute;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    display: inline-flex;
    align-items: center;
    min-width: 260px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .global-loader__backdrop {
        backdrop-filter: none;
    }
}
.image-info-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.2);
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(4px);
    font-size: 14px;
    font-weight: 700;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
}

    .image-info-btn:hover,
    .image-info-btn:focus {
        background: #111;
        color: #fff;
        border-color: #111;
    }

.image-tooltip .tooltip-inner {
    max-width: 300px;
    text-align: left;
    font-size: .85rem;
    padding: .75rem;
}
.pdp-mainimg-wrap {
    background: #fff; /* or #f7f7f7 */
}

.pdp-mainimg {
    width: 100%;
    height: 620px; /* keep your fixed frame */
    object-fit: contain; /* ✅ show whole image */
    object-position: center;
    display: block;
    background: #fff; /* important for transparent PNGs */
}
.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}
/* Make gallery column behave nicely */
.pdp-gallery {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    align-items: start;
}

/* Scrollable thumbs column */
.pdp-thumbs-wrap {
    max-height: 620px; /* match .pdp-mainimg height */
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-gutter: stable;
}

/* Thumbs list */
.pdp-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Make the scrollbar look cleaner (Chrome/Edge) */
.pdp-thumbs-wrap::-webkit-scrollbar {
    width: 10px;
}

.pdp-thumbs-wrap::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.25);
    border-radius: 10px;
    border: 3px solid transparent;
    background-clip: content-box;
}

    .pdp-thumbs-wrap::-webkit-scrollbar-thumb:hover {
        background: rgba(0,0,0,.35);
        border: 3px solid transparent;
        background-clip: content-box;
    }

/* Mobile: turn thumbs into horizontal scroll */
@media (max-width: 991.98px) {
    .pdp-gallery {
        grid-template-columns: 1fr;
    }

    .pdp-thumbs-wrap {
        max-height: none;
        overflow-y: visible;
        overflow-x: auto;
        padding-right: 0;
    }

    .pdp-thumbs {
        flex-direction: row;
        gap: 10px;
        padding-bottom: 6px;
    }

    .thumb-btn {
        flex: 0 0 auto;
    }
}
@media (min-width: 992px) {
    .pdp-gallery {
        position: sticky;
        top: 110px; /* adjust based on your header height */
    }
}
/* Default */
.catalog-results.is-grid .catalog-item {
}

/* LIST MODE */
.catalog-results.is-list .catalog-item {
    width: 100% !important;
    flex: 0 0 auto !important;
}

/* Make each card horizontal */
.catalog-results.is-list .product-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

/* Image block on left */
.catalog-results.is-list .product-imgwrap {
    width: 220px;
    flex: 0 0 220px;
}

/* Keep image nice in list */
.catalog-results.is-list .product-img {
    height: 180px;
    width: 100%;
    object-fit: cover;
}

/* The info area (your p-2 block) should stretch */
.catalog-results.is-list .product-body {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
}

    /* Make sure button never gets cut off */
    .catalog-results.is-list .product-body .btn {
        white-space: nowrap;
    }
.image-info-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.15);
    background: rgba(255,255,255,.9);
    color: #111;
    font-weight: 700;
    font-size: 14px;
    line-height: 30px;
    text-align: center;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    z-index: 10;
}

    .image-info-btn:hover,
    .image-info-btn:focus {
        background: #111;
        color: #fff;
        border-color: #111;
    }

    .image-info-btn:focus-visible {
        outline: 3px solid #000;
        outline-offset: 3px;
    }

/* Tooltip styling (Bootstrap) */
.image-tooltip .tooltip-inner {
    max-width: 280px; /* ✅ prevents giant bar */
    text-align: left;
    font-size: .85rem;
    line-height: 1.35;
    padding: .75rem .85rem;
    border-radius: 12px;
}

.image-tooltip .tooltip-arrow::before {
    /* keep default arrow; remove if you want */
}
.catalog-landing-title {
    font-size: 2rem;
    font-weight: 700;
}

.catalog-tile {
    display: block;
    text-decoration: none;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease;
}

    .catalog-tile:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,.10);
    }

    .catalog-tile:focus-visible {
        outline: 3px solid #000;
        outline-offset: 3px;
    }

.catalog-tile-media {
    background: #f7f7f7;
}

.catalog-tile-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.catalog-tile-body {
    padding: 12px 14px 14px;
}

.catalog-tile-title {
    display: block;
    font-weight: 700;
    color: #444;
    line-height: 1.2;
    min-height: 2.4em;
}

@media (min-width: 1200px) {
    .col-xl-2-4 {
        flex: 0 0 auto;
        width: 20%;
    }
}
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #4f4f4f;
    border-top: 1px solid rgba(255,255,255,.1);
    z-index: 1000;
}

.footer-nav {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.footer-link {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    font-size: 1.05rem;
    padding: 14px 4px;
}

    .footer-link:visited {
        color: #ffffff !important; /* Added important here too */
    }

    .footer-link:hover,
    .footer-link:focus-visible {
        color: #ff7a00 !important; /* This now overrides the white */
    }
/* =========================
   CHECKOUT FINAL OVERRIDE
   ========================= */

/* keep normal page spacing; fixed footer should not cover content */
body {
    margin-bottom: 54px;
}

.checkout-page {
    padding-top: .35rem !important;
    padding-bottom: .35rem !important;
}

    .checkout-page-header,
    .checkout-page > header {
        margin-bottom: .35rem !important;
    }

.checkout-title {
    font-size: 1.75rem;
    line-height: 1.05;
    font-weight: 700;
    margin: 0;
}

.checkout-page p.text-muted,
.checkout-page > header p {
    font-size: .9rem;
    line-height: 1.15;
    margin-bottom: 0;
}

/* Desktop only */
@media (min-width: 1200px) {
    .checkout-fit-page {
        min-height: calc(100vh - 140px);
        overflow: visible;
    }

    .checkout-main-row {
        min-height: 0;
        align-items: stretch;
    }

    .checkout-left-col,
    .checkout-right-col {
        display: flex;
        min-height: 0;
    }

    .checkout-main-form,
    .checkout-summary-card {
        display: flex;
        flex-direction: column;
        min-height: 0;
        width: 100%;
    }

    /* LEFT */
    .checkout-legacy-panel {
        border: 1px solid #cfcfcf;
        background: #fff;
        overflow: visible;
        flex: 1 1 auto;
        min-height: 0;
    }

    .checkout-legacy-header,
    .checkout-subsection-header,
    .checkout-card-header.compact-header {
        background: #f2f2f2;
        border-bottom: 1px solid #d8d8d8;
        padding: .35rem .65rem;
    }

        .checkout-legacy-header h2,
        .checkout-subsection-header h3,
        .checkout-section-title {
            font-size: .98rem;
            line-height: 1.1;
            font-weight: 700;
            color: #333;
            margin: 0;
        }

    .checkout-legacy-body {
        padding: .4rem .65rem;
        overflow: visible;
        min-height: 0;
    }

    .checkout-form-grid {
        display: flex;
        flex-direction: column;
    }

    .checkout-row {
        display: grid;
        grid-template-columns: 108px minmax(0, 1fr);
        gap: .35rem;
        align-items: center;
        padding: .1rem 0;
    }

    .checkout-row-top {
        align-items: start;
    }

    .checkout-inline-label {
        margin: 0;
        font-size: .83rem;
        line-height: 1.1;
        font-weight: 500;
        color: #444;
    }

    .checkout-inline-field {
        min-width: 0;
    }

    .checkout-mini-input,
    .checkout-mini-textarea {
        font-size: .84rem;
        line-height: 1.15;
        padding: .18rem .4rem;
        border-radius: .2rem;
    }

    .checkout-mini-input {
        min-height: 30px;
    }

    .checkout-mini-textarea {
        min-height: 42px;
        resize: none;
    }

    .checkout-zip-input {
        max-width: 140px;
    }

    .checkout-same-address {
        margin-top: .3rem !important;
        padding-left: 1.3rem;
    }

        .checkout-same-address .form-check-label {
            font-size: .82rem;
        }

    /* ACTIONS */
    .checkout-actions-bar {
        flex: 0 0 auto;
        margin-top: .35rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: .4rem;
        padding: .45rem .6rem;
        background: #f7f7f7;
        border: 1px solid #ddd;
        border-radius: .35rem;
    }

    .checkout-actions-left,
    .checkout-actions-right {
        display: flex;
        flex-wrap: wrap;
        gap: .3rem;
    }

    .btn-action {
        min-height: 30px;
        padding: .2rem .55rem;
        font-size: .82rem;
    }

    .btn-action-primary {
        min-height: 34px;
        padding: .28rem .8rem;
        border: 0;
        border-radius: .35rem;
        background: #2f2f2f;
        color: #fff;
        font-weight: 600;
        font-size: .84rem;
    }

        .btn-action-primary:hover,
        .btn-action-primary:focus {
            background: #1f1f1f;
            color: #fff;
        }

    .checkout-note {
        flex: 0 0 auto;
        margin-top: .3rem;
        margin-bottom: 0;
        font-size: .8rem;
        line-height: 1.1;
        color: #6c757d;
    }

    /* RIGHT */
    .checkout-summary-card {
        border: 1px solid #cfcfcf;
        background: #fff;
        overflow: visible;
        min-height: 0;
    }

    .checkout-summary-scroll {
        display: flex;
        flex-direction: column;
        padding: .4rem .55rem;
        min-height: 0;
    }

    .checkout-summary-items {
        max-height: 430px;
        overflow: auto;
        padding-right: .1rem;
    }

    .summary-item-compact {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) auto;
        gap: .42rem;
        align-items: start;
        padding: .28rem 0;
        border-bottom: 1px solid #ececec;
    }

        .summary-item-compact:last-child {
            border-bottom: 0;
        }

    .compact-summary-imgwrap {
        width: 42px;
        height: 42px;
        border: 1px solid #ddd;
        border-radius: .2rem;
        overflow: hidden;
        background: #fff;
        flex: 0 0 42px;
    }

    .summary-item-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .summary-item-title {
        font-size: .84rem;
        font-weight: 600;
        line-height: 1.08;
        margin-bottom: .05rem;
    }

    .summary-item-sku,
    .summary-item-meta {
        font-size: .72rem;
        color: #6c757d;
        line-height: 1.05;
        margin: 0;
    }

    .summary-item-price {
        font-size: .84rem;
        font-weight: 700;
        white-space: nowrap;
        padding-left: .15rem;
    }

    .summary-totals-wrap {
        flex: 0 0 auto;
        border-top: 1px solid #dcdcdc;
        margin-top: .3rem;
        padding-top: .3rem;
        background: #fff;
    }

    .summary-totals {
        margin: 0;
    }

    .summary-row {
        display: flex;
        justify-content: space-between;
        gap: .75rem;
        font-size: .82rem;
        padding: .08rem 0;
    }

        .summary-row dt,
        .summary-row dd {
            margin: 0;
        }

    .summary-row-total {
        font-size: .9rem;
        font-weight: 700;
        padding-top: .18rem;
        border-top: 1px solid #ececec;
        margin-top: .12rem;
    }
}

/* Tablet/mobile: natural flow */
@media (max-width: 1199.98px) {
    .checkout-fit-page {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .checkout-main-row {
        height: auto;
    }

    .checkout-legacy-body,
    .checkout-summary-items {
        overflow: visible;
        max-height: none;
    }
}

@media (max-width: 767.98px) {
    .checkout-row {
        grid-template-columns: 1fr;
        gap: .18rem;
    }

    .checkout-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .checkout-actions-left,
    .checkout-actions-right {
        width: 100%;
    }

        .checkout-actions-right .btn-action-primary {
            width: 100%;
        }

    .summary-item-compact {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .summary-item-price {
        grid-column: 2;
        padding-left: 0;
    }
}

/* ADA focus */
.checkout-page :focus-visible {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}
.checkout-quote-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #f8f8f8;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 10px;
}

/* LEFT */
.quote-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quote-label {
    font-size: .9rem;
    color: #6b7280;
}

.quote-input {
    width: 120px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #cfcfcf;
    padding: 4px 8px;
}

.btn-quote-go {
    height: 32px;
    padding: 0 10px;
    border: 1px solid #999;
    background: #fff;
    font-weight: 600;
    border-radius: 6px;
}

    .btn-quote-go:hover {
        background: #efefef;
    }

/* CENTER */
.quote-center {
    display: flex;
    align-items: center;
    gap: 6px;
}

.quote-number-label {
    font-size: 1rem;
    color: #4b5563;
}

.quote-number-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1f2937;
}

/* RIGHT */
.quote-right {
    display: flex;
    gap: 6px;
}

.quote-icon-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    color: #6b7280;
}

    .quote-icon-btn:hover {
        background: #f3f4f6;
        color: #111827;
    }
.checkout-billing-col,
.checkout-billing-col .checkout-billing-panel {
    display: block !important;
}

.checkout-billing-panel {
    height: auto !important;
    min-height: 0 !important;
}

.checkout-proceed-btn {
    min-width: 260px;
}
.search-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 56px; /* leaves room for search button */
    z-index: 1050;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    max-height: 320px;
    overflow-y: auto;
}

.search-suggestion-item {
    display: block;
    width: 100%;
    padding: .65rem .875rem;
    text-decoration: none;
    color: #212529;
    border-bottom: 1px solid #f1f3f5;
    background: #fff;
}

    .search-suggestion-item:last-child {
        border-bottom: 0;
    }

    .search-suggestion-item:hover,
    .search-suggestion-item:focus {
        background: #f8f9fa;
        color: #212529;
    }

.search-suggestion-empty {
    padding: .65rem .875rem;
    color: #6c757d;
}

.search-form {
    width: 1000px;
    max-width: 100%;
}
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
    z-index: 2000;
    max-height: 300px;
    overflow: auto;
}

.search-suggestion-item.active {
    background: #e9ecef;
}
.search-suggestion-item.active,
.search-suggestion-item:hover,
.search-suggestion-item:focus {
    background: #f1f3f5;
    color: inherit;
}
.checkout-summary-table {
    width: 100%;
    border-top: 1px solid #bfc3c8;
    font-size: 14px;
}

.checkout-summary-head,
.checkout-summary-row {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) 110px 120px 120px;
    align-items: start;
}

.checkout-summary-head {
    background: #f3f3f3;
    border-bottom: 1px solid #bfc3c8;
    font-weight: 700;
    color: #374151;
}

    .checkout-summary-head .checkout-summary-col {
        padding: .45rem .75rem;
        border-right: 1px solid #d3d7db;
    }

        .checkout-summary-head .checkout-summary-col:last-child {
            border-right: 0;
        }

.checkout-summary-row {
    border-bottom: 1px dotted #c9cdd2;
    padding: .7rem 0;
}

.checkout-summary-col {
    padding: 0 .75rem;
}

.checkout-summary-col-qty,
.checkout-summary-col-price,
.checkout-summary-col-total {
    text-align: center;
}

.checkout-summary-col-price,
.checkout-summary-col-total {
    font-weight: 500;
    padding-top: .5rem;
}

.checkout-summary-col-total {
    font-weight: 700;
}

.checkout-item-desc-wrap {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}

.checkout-item-image {
    width: 60px;
    flex: 0 0 60px;
}

.summary-item-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.checkout-item-desc-text {
    min-width: 0;
}

.checkout-item-no {
    font-size: 1.65rem;
    line-height: 1.1;
    font-weight: 700;
    color: #5b6b7a;
    margin-bottom: .15rem;
}

.checkout-item-name {
    font-size: 1.05rem;
    line-height: 1.2;
    color: #2f3c4a;
    margin-bottom: .2rem;
}

.checkout-item-info {
    color: #6b7280;
    line-height: 1.3;
    white-space: pre-line;
}

.checkout-qty-legacy {
    display: inline-flex;
    align-items: stretch;
    justify-content: center;
    margin-top: .2rem;
}

.checkout-qty-legacy-btn {
    width: 29px;
    height: 31px;
    border: 1px solid #b8b8b8;
    background: #f3f3f3;
    color: #222;
    padding: 0;
    margin: 0;
    font-size: 18px;
    line-height: 29px;
    text-align: center;
}

    .checkout-qty-legacy-btn:hover {
        background: #e9e9e9;
    }

    .checkout-qty-legacy-btn:focus-visible {
        outline: 2px solid #2563eb;
        outline-offset: 1px;
        position: relative;
        z-index: 2;
    }

.checkout-qty-legacy-input {
    width: 50px;
    height: 31px;
    border-top: 1px solid #b8b8b8;
    border-bottom: 1px solid #b8b8b8;
    border-left: 0;
    border-right: 0;
    text-align: center;
    padding: 0 4px;
    margin: 0;
    font-size: 18px;
    line-height: 31px;
    color: #111;
    background: #fff;
}

    .checkout-qty-legacy-input:focus {
        outline: none;
    }
.checkout-qty-legacy {
    display: inline-flex;
    align-items: center;
}

.checkout-qty-legacy-btn {
    width: 22px;
    height: 24px;
    border: 1px solid #b8b8b8;
    background: #f3f3f3;
    color: #222;
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
}

    .checkout-qty-legacy-btn:hover {
        background: #e9e9e9;
    }

    .checkout-qty-legacy-btn:focus-visible {
        outline: 2px solid #2563eb;
        outline-offset: 1px;
    }

.checkout-qty-legacy-input {
    width: 36px;
    height: 24px;
    border-top: 1px solid #b8b8b8;
    border-bottom: 1px solid #b8b8b8;
    border-left: 0;
    border-right: 0;
    text-align: center;
    padding: 0;
    margin: 0;
    font-size: 13px;
    line-height: 24px;
    color: #111;
    background: #fff;
}
.checkout-qty-legacy {
    display: inline-flex;
    align-items: center;
}

.checkout-qty-legacy-btn {
    width: 22px;
    height: 24px;
    border: 1px solid #b8b8b8;
    background: #f3f3f3;
    color: #222;
    padding: 0;
    margin: 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-qty-legacy-input {
    width: 36px;
    height: 24px;
    border-top: 1px solid #b8b8b8;
    border-bottom: 1px solid #b8b8b8;
    border-left: 0;
    border-right: 0;
    text-align: center;
    padding: 0;
    margin: 0;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.summary-totals-wrap {
    margin-top: .75rem;
    padding-top: .55rem;
    border-top: 1px solid #d7d7d7;
}

.summary-totals {
    width: 100%;
    margin: 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .18rem 0;
    line-height: 1.25;
}

    .summary-row dt,
    .summary-row dd {
        margin: 0;
    }

    .summary-row dt {
        font-size: 1rem;
        font-weight: 700;
        color: #111;
    }

    .summary-row dd {
        font-size: 1rem;
        font-weight: 400;
        color: #111;
        text-align: right;
        min-width: 110px;
    }

.summary-row-total dt {
    font-weight: 700;
}

.summary-row-total dd {
    font-weight: 700;
}
.summary-totals-wrap {
    margin-top: .75rem;
    padding: .55rem .75rem 0 .75rem; /* left + right margin inside card */
    border-top: 1px solid #d7d7d7;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .18rem 0;
}

    .summary-row dt,
    .summary-row dd {
        margin: 0;
    }

    .summary-row dt {
        font-size: 1rem;
        font-weight: 700;
    }

    .summary-row dd {
        font-size: 1rem;
        text-align: right;
        min-width: 110px;
    }

.summary-row-total dd {
    font-weight: 700;
}

.checkout-item-desc-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.checkout-item-no,
.checkout-item-name,
.checkout-item-info,
.checkout-item-regular-price,
.checkout-item-save {
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.checkout-item-name {
    margin-bottom: 2px;
}

.checkout-item-info {
    font-size: 0.92rem;
    color: #666;
}

    .checkout-item-info br {
        content: "";
        display: block;
        margin: 0 0 2px 0;
    }

.checkout-item-regular-price {
    margin-top: 4px;
    line-height: 1.1;
}

.checkout-item-save {
    line-height: 1.1;
    margin-top: 0;
}
.checkout-item-desc-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.checkout-item-info {
    margin: 0;
    padding: 0;
}

.checkout-item-info-line {
    margin: 0;
    padding: 0;
    line-height: 1.15;
}
/* ===== ORDER SUMMARY ITEM INFO TIGHTEN ===== */
.checkout-summary-row .checkout-item-desc-text {
    display: block;
    min-width: 0;
}

.checkout-summary-row .checkout-item-no {
    margin: 0 0 2px 0 !important;
    line-height: 1.05 !important;
}

.checkout-summary-row .checkout-item-name {
    margin: 0 0 4px 0 !important;
    line-height: 1.1 !important;
}

.checkout-summary-row .checkout-item-info {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
}

.checkout-summary-row .checkout-item-info-line {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.05 !important;
}

    .checkout-summary-row .checkout-item-info-line + .checkout-item-info-line {
        margin-top: 2px !important;
    }

.checkout-summary-row .checkout-item-regular-price {
    margin: 6px 0 0 0 !important;
    padding: 0 !important;
    line-height: 1.05 !important;
}

.checkout-summary-row .checkout-item-save {
    margin: 1px 0 0 0 !important;
    padding: 0 !important;
    line-height: 1.05 !important;
}

    .checkout-summary-row .checkout-item-save span,
    .checkout-summary-row .checkout-item-regular-price s {
        line-height: inherit !important;
    }

/* ===== MATCH ORDER SUMMARY TEXT TO FORM LABEL SIZE ===== */

/* item text */
.checkout-summary-row .checkout-item-no {
    font-size: .83rem !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    color: #444 !important;
}

.checkout-summary-row .checkout-item-name {
    font-size: .83rem !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
    color: #444 !important;
}

.checkout-summary-row .checkout-item-info,
.checkout-summary-row .checkout-item-info-line,
.checkout-summary-row .checkout-item-regular-price,
.checkout-summary-row .checkout-item-save {
    font-size: .83rem !important;
    line-height: 1.1 !important;
}

/* price / qty / total columns */
.checkout-summary-col-qty,
.checkout-summary-col-price,
.checkout-summary-col-total,
.checkout-qty-legacy-input,
.checkout-qty-legacy-btn {
    font-size: .83rem !important;
}

/* totals section */
.summary-row dt,
.summary-row dd {
    font-size: .83rem !important;
    line-height: 1.1 !important;
}

.summary-row dt {
    font-weight: 700 !important;
}

.summary-row dd {
    font-weight: 400 !important;
}

.summary-row-total dt,
.summary-row-total dd {
    font-size: .83rem !important;
    font-weight: 700 !important;
}

.table-measure {
    font-size: .9rem;
    border: 1px solid #ddd;
    border-radius: .5rem;
    overflow: hidden;
}

    .table-measure thead {
        background: #f5f5f5;
    }

    .table-measure th {
        font-weight: 600;
        color: #333;
        white-space: nowrap;
    }

    .table-measure td {
        color: #444;
    }

    .table-measure tbody tr {
        border-top: 1px solid #eee;
    }

        .table-measure tbody tr:hover {
            background: #fafafa;
        }

        /* zebra for readability */
        .table-measure tbody tr:nth-child(even) {
            background: #fcfcfc;
        }

    /* focus for accessibility */
    .table-measure td:focus,
    .table-measure th:focus {
        outline: 2px solid #000;
        outline-offset: 2px;
    }
    .table-measure td {
        font-size: .8rem;
        text-align: center;
        padding: .35rem .25rem;
    }

    .table-measure th {
        padding: .4rem .25rem;
    }
        .table-measure th:first-child,
        .table-measure td:first-child {
            text-align: left;
            width: 22%;
        }
.table-measure {
    font-size: .75rem;
}
/* in-transit numbers */
.text-warning {
    color: #000 !important; /* force black */
}
.table td,
.table th {
    vertical-align: middle;
}

    /* center these */
    .table td:nth-child(1), /* Warehouse */
    .table td:nth-child(5), /* Available */
    .table td:nth-child(6) /* In-Transit */ {
        text-align: center;
    }

    /* keep text columns left */
    .table td:nth-child(2),
    .table td:nth-child(3) {
        text-align: left;
    }

    /* status centered */
    .table td:nth-child(4) {
        text-align: center;
        font-weight: 600;
    }
.related-products-section {
    margin: 1.5rem 0;
}

.related-products-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2f3a45;
    margin: 0 0 .75rem 0;
}

/* wrapper */
.related-products-wrapper {
    position: relative;
}

/* hides bottom scrollbar */
.related-products-viewport {
    overflow: hidden;
    padding: 4px 46px;
}

/* scrolling row */
.related-products-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/old Edge */
}

    .related-products-track::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

/* modern card */
.related-product-card {
    flex: 0 0 190px;
    background: #fff;
    border: 1px solid #e7eaee;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .related-product-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(16, 24, 40, 0.12);
        border-color: #d7dde5;
    }

    .related-product-card:focus-within {
        border-color: #111;
        box-shadow: 0 0 0 3px rgba(17,17,17,.12), 0 10px 24px rgba(16,24,40,.12);
    }

/* top area */
.related-addcart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    margin: 0;
    background: #f8fafc;
    border-bottom: 1px solid #edf1f5;
    font-size: .82rem;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
}

    .related-addcart input {
        margin: 0;
    }

/* image */
.related-product-image-wrap {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
}

.related-product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* body */
.related-product-body {
    padding: 12px 14px 14px;
}

.related-product-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.related-product-sku {
    font-size: .76rem;
    color: #667085;
    line-height: 1.2;
}

.related-product-price {
    font-size: .95rem;
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
    line-height: 1.2;
}

.related-product-name {
    font-size: .88rem;
    font-weight: 600;
    color: #344054;
    line-height: 1.35;
    min-height: 2.4em;
}

/* arrows */
.related-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 1px solid #d8dee6;
    border-radius: 999px;
    background: #ffffff;
    color: #475467;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .related-scroll-btn:hover {
        background: #111827;
        color: #fff;
        border-color: #111827;
    }

.related-scroll-btn-left {
    left: 0;
}

.related-scroll-btn-right {
    right: 0;
}

/* ADA focus */
.related-scroll-btn:focus-visible,
.related-products-track:focus-visible,
.related-addcart input:focus-visible {
    outline: 3px solid #111;
    outline-offset: 3px;
}

@media (max-width: 991.98px) {
    .related-products-viewport {
        padding: 4px 40px;
    }

    .related-product-card {
        flex: 0 0 170px;
    }

    .related-product-image-wrap {
        height: 145px;
    }
}

@media (max-width: 575.98px) {
    .related-products-viewport {
        padding: 4px 34px;
    }

    .related-product-card {
        flex: 0 0 150px;
    }

    .related-product-image-wrap {
        height: 128px;
        padding: 12px;
    }

    .related-product-name,
    .related-product-price,
    .related-product-sku,
    .related-addcart {
        font-size: .76rem;
    }
}