:root {
  --background-color: #ffffff;
  --input-padding-x: .75em;
  --input-padding-y: .75em;
  --logo-height: 60px;
  --header-height: calc(var(--logo-height) + 40px);
  --text-color: #495057;
}

@media only screen and (min-width: 768px) {
    :root {
        --logo-height: 75px;
    }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  margin-top: var(--header-height);
  margin-bottom: 16rem;
  align-items: center;
  padding-top: 2.5rem;
  font-family: 'Muli', sans-serif;
}

@media only screen and (min-width: 768px) {
    body {
        margin-bottom: calc(var(--footer-height) + 2rem);
    }
}

/* Global Layout */
.color-steelblue {
    color: steelblue;
}

.content {
    margin-bottom: 8em;
}

.cursor-pointer {
    cursor: pointer !important;
}

.display-none {
    display: none;
}


.loading-image {
    width: 1rem;
    height: 1rem;
}

.loader {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    margin: -60px 0 0 -60px;
    z-index: 1060;
}

.spinner-border {
    width: 8rem;
    height: 8rem;
}

.loader-background {
    display: none;
    background: rgba(0,0,0,.5);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.recaptcha-form-container {
    margin-bottom: 11rem;
}

.unstyled-list {
    list-style: none;
}

.unstyled-link, .unstyled-link:hover {
    color: unset;
    text-decoration: none;
    cursor: pointer;
}

a.unstyled-link.underlined-link {
    text-decoration: underlined;
}

.lh-condensed {
    line-height: 1.25;
}

.highlight-border {
    border-style: solid !important;
    border-width: 0.25em !important;
    border-color: #105e96 !important;
}

.inset-border {
    border-style: inset solid;
    border-color: #eee;
}

/* Navbar */

.navbar {
  border-bottom: 0.1rem solid #eee;
}

nav.second-navbar {
    top: calc(var(--logo-height) + 10px);
}

.navbar-collapse.show {
    border-top: 0.1rem solid #eee;
}

.cart-nav {
    position: relative;
}

.cart-total {
    position: absolute;
    top: -10px;
    left: 15px;
}

.myaccount-dropdown-menu {
    min-width: 15rem;
}

.logo-navbar {
    height: var(--logo-height);
}

/* Breadcrumb */
.breadcrumb {
    background-color: #e9ecef;
    border-radius: 0.375rem;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}

.breadcrumb-item a {
    color: #105e96;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: #0a3d62;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #6c757d;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 0;
    border-top: 0.1em solid #eee;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Other Logos */
.dev-logo {
    max-height: 40px;
    max-width: 120px;
}

/* Search Bar */
form.nav-search-form {
    flex-wrap: inherit;
}

/* Checkout Page — hidden by default, revealed by JS slideDown() */
#shippingInformation,
#billingInformation,
#locations,
#additionalInformation {
    display: none;
}

/* Signin Page */

.signin-logo {
    max-height: 130px;
}

/* Shop Pages */
.shopping-card {
  max-width: 400px;
}

.shopping-card-slim {
  max-width: 300px;
  min-width: 200px;
  overflow: hidden;
}

/* Shop Browse Header (legacy — kept for any remaining pages) */
.shop-browse-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.25rem 0.75rem;
    margin-bottom: 1.25rem;
    border-radius: 0.375rem;
}

.shop-browse-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.25rem;
}

.shop-browse-title-accent {
    display: block;
    width: 3rem;
    height: 3px;
    background: #105e96;
    border-radius: 2px;
    margin-bottom: 1rem;
}

/* Product Detail Page */
.product-detail-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    min-height: 20rem;
    position: relative;
}

.product-detail-image .product-image {
    max-width: 100%;
    max-height: 22rem;
    object-fit: contain;
}

.product-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.product-detail-sku {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.product-detail-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.75rem;
}

.product-detail-price small {
    font-size: 0.8rem;
    font-weight: 400;
    color: #6c757d;
}

.product-detail-cart {
    padding: 1rem 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 1rem;
}

.product-detail-tabs .nav-link {
    color: #6c757d;
    font-weight: 500;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.6rem 1rem;
    transition: color 0.15s, border-color 0.15s;
}

.product-detail-tabs .nav-link:hover {
    color: #212529;
    border-bottom-color: #dee2e6;
}

.product-detail-tabs .nav-link.active {
    color: #105e96;
    border-bottom-color: #105e96;
    background: transparent;
}

@media (max-width: 991.98px) {
    .product-detail-image {
        min-height: 14rem;
        padding: 1rem;
    }
    .product-detail-image .product-image {
        max-height: 16rem;
    }
}

/* Product Card */
.product-card {
    border: 1px solid #e9ecef;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
    box-shadow: 0 0.3rem 0.8rem rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-card-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 12rem;
    padding: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.product-card-name {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.2rem;
    color: #212529;
}

.product-card-qty {
    border-top: 1px solid #f0f0f0;
    padding-top: 0.6rem;
}

@media (max-width: 575.98px) {
    .product-card-img {
        height: 10rem;
    }
}

.shop-image-box-slim {
    width: 10em;
    height: 10em;
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.product-name-slim {
    font-size: 0.75em;
}

img.product-image-icon {
    position: absolute;
    top: -20px;
    right: -10px;
    display: block;
    height: 5em;
    margin-bottom: 0;
    line-height: 1.5;
    border: 1px solid transparent;
    border-radius: .25rem;
}

img.product-card-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

img.product-card-image-slim {
    max-width: 10em;
    max-height: 10em;
    height: max-content;
    width: max-content;
}

/* Category Card */
.category-card {
    border: 1px solid #e9ecef;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.category-card:hover {
    box-shadow: 0 0.3rem 0.8rem rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.category-card-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 14rem;
    padding: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
}

.category-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #212529;
}

img.category-card-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 575.98px) {
    .category-card-img {
        height: 10rem;
    }
}

/* Product Page */
.product-image {
    max-width: 20em;
    max-height: 20em;
}

.fa-file-pdf {
    color: red!important;
}

/* My Addresses */
.address-box {
    line-height: 1.4;
}

/* Address selection (checkout) */
#shippingInformation .address-box,
#billingInformation .address-box {
    cursor: pointer;
}

#shippingInformation .address-box .card:hover,
#billingInformation .address-box .card:hover {
    border-color: #105e96;
    box-shadow: 0 0.25rem 0.5rem rgba(16, 94, 150, 0.15);
}

/* My 2FA */
.g-auth-configure,
.g-auth-disable {
    display: none;
}

/* Tables */
table.table {
    width: 100%;
}

.table td,
.table th {
    vertical-align: middle;
}

.product-image-column {
    height: 5em;
    text-align: center;
}

.product-image-column .product-image {
    max-width: 5em;
    max-height: 5em;
}

/* Quantity Inputs */
.quantity-group {
    margin-bottom: 0;
}

.quantity-group > label.unit-of-measure {
    top: -0.2em;
    left: 5.5em;
    right: -5em;
    pointer-events: none;
}

.quantity-group > input.quantity-input,
.quantity-group > label.unit-of-measure {
    height: inherit;
}

.quantity-group > input.quantity-input:not(:placeholder-shown) {
    padding-top: .25em;
    padding-bottom: .25em;
}

.quantity-group > input.quantity-input {
    display: inline-block;
    width: inherit;
    text-align: center;
    vertical-align: middle;
}

#entityList {
    position: absolute;
    top: unset!important;
}

#entityList>option {
    background-color: #f9f9f9;
    padding: 4px;
    cursor: pointer;
}

/* Datepicker Styles */
.datepicker>td,.datepicker>th{
    text-align: center;
    padding: 8px 12px;
    font-size: 14px;
}

/* Stripe Checkout */
button#pay-button {
    width: 100%;
    margin-top: 1em;
}

/* Scanner */
#scannerContainer {
    width: 350px;
    height: 400px;
}

/* spinner/processing state, errors */
.spinner,
.spinner:before,
.spinner:after {
  border-radius: 50%;
}
.spinner {
  color: #ffffff;
  font-size: 22px;
  text-indent: -99999px;
  margin: 0px auto;
  position: relative;
  width: 20px;
  height: 20px;
  box-shadow: inset 0 0 0 2px;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}
.spinner:before,
.spinner:after {
  position: absolute;
  content: "";
}
.spinner:before {
  width: 10.4px;
  height: 20.4px;
  background: #5469d4;
  border-radius: 20.4px 0 0 20.4px;
  top: -0.2px;
  left: -0.2px;
  -webkit-transform-origin: 10.4px 10.2px;
  transform-origin: 10.4px 10.2px;
  -webkit-animation: loading 2s infinite ease 1.5s;
  animation: loading 2s infinite ease 1.5s;
}
.spinner:after {
  width: 10.4px;
  height: 10.2px;
  background: #5469d4;
  border-radius: 0 10.2px 10.2px 0;
  top: -0.1px;
  left: 10.2px;
  -webkit-transform-origin: 0px 10.2px;
  transform-origin: 0px 10.2px;
  -webkit-animation: loading 2s infinite ease;
  animation: loading 2s infinite ease;
}

@-webkit-keyframes loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* Checkout Stepper */
.checkout-stepper {
    padding: 0 1rem;
}

.stepper-track {
    display: flex;
    align-items: center;
    justify-content: center;
}

.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.stepper-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background-color: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background-color 0.3s, color 0.3s;
}

.stepper-step.active .stepper-icon {
    background-color: #105e96;
    color: #fff;
}

.stepper-step.completed .stepper-icon {
    background-color: #198754;
    color: #fff;
}

.stepper-label {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: #6c757d;
    white-space: nowrap;
}

.stepper-step.active .stepper-label {
    color: #105e96;
    font-weight: 600;
}

.stepper-step.completed .stepper-label {
    color: #198754;
}

.stepper-connector {
    flex: 1;
    height: 2px;
    background-color: #dee2e6;
    margin: 0 0.5rem;
    margin-bottom: 1.5rem;
    max-width: 6rem;
    min-width: 2rem;
    transition: background-color 0.3s;
}

.stepper-connector.completed {
    background-color: #198754;
}

.stepper-check {
    font-size: 0.8rem;
}

/* Mobile Cart Cards */
.cart-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: #fff;
}

.cart-card-body {
    display: flex;
    gap: 0.75rem;
}

.cart-card-image {
    flex-shrink: 0;
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-card-image img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0.25rem;
}

.cart-card-details {
    flex: 1;
    min-width: 0;
}

.cart-card-name {
    margin-bottom: 0.15rem;
    line-height: 1.3;
}

.cart-card-name strong {
    font-size: 0.9rem;
}

.cart-card-unit-price {
    margin-bottom: 0.35rem;
}

.cart-card-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.cart-card-quantity {
    display: flex;
    align-items: center;
}

.cart-card-qty-input {
    width: 3.5rem;
    text-align: center;
    padding: 0.15rem 0.25rem;
}

.cart-card-price {
    font-weight: 600;
    white-space: nowrap;
}

.cart-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
}

.cart-summary {
    padding: 0.5rem;
}

.cart-empty-state {
    padding: 1rem 0;
}

/* Detail Pages (Order Detail, Quote Detail) */
.status-badge {
    display: inline-block;
    padding: 0.25em 0.75em;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    vertical-align: middle;
}

.status-badge-sm {
    font-size: 0.7rem;
    padding: 0.2em 0.6em;
}

.status-paid {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-processing {
    background-color: #cfe2ff;
    color: #084298;
}

.status-posting {
    background-color: #cfe2ff;
    color: #084298;
}

.status-backorder {
    background-color: #fff3cd;
    color: #664d03;
}

.status-default {
    background-color: #e9ecef;
    color: #495057;
}

.status-canceled {
    background-color: #e9ecef;
    color: #495057;
}

.info-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    background: #fff;
}

.info-card-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.address-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.35rem;
}

.address-block {
    font-size: 0.9rem;
    line-height: 1.5;
}

.detail-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
}

.detail-label {
    color: #6c757d;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-right: 1rem;
}

.detail-table {
    width: 100%;
    font-size: 0.9rem;
}

.detail-table thead {
    background-color: #f8f9fa;
}

.detail-table thead th {
    font-weight: 600;
    color: #495057;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.6rem 0.75rem;
    border-bottom: 2px solid #dee2e6;
}

.detail-table tbody td {
    padding: 0.6rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.detail-table tbody tr:hover {
    background-color: #f8f9fa;
}

.totals-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fff;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    font-size: 0.9rem;
}

.totals-total {
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    border-top: 2px solid #dee2e6;
    font-size: 1rem;
}

/* Page Size Control */
.page-size-control {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
}

.page-size-label {
    font-weight: 500;
}

/* Table Toolbar */
.table-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.table-toolbar .toolbar-search {
    flex: 0 1 280px;
    min-width: 180px;
}

.table-toolbar .toolbar-dates {
    flex: 0 1 320px;
    min-width: 240px;
}

.table-toolbar .toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    margin-left: auto;
}

/* Status Filter Tabs */
.status-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.status-filter-btn {
    display: inline-block;
    padding: 0.3em 0.85em;
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: 1rem;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
}

.status-filter-btn:hover {
    background: #f0f0f0;
    color: #212529;
    text-decoration: none;
}

.status-filter-btn.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.status-filter-btn.active:hover {
    background: #0b5ed7;
    border-color: #0a58ca;
}

@media (max-width: 767.98px) {
    .table-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .table-toolbar .toolbar-search,
    .table-toolbar .toolbar-dates {
        flex: 1 1 100%;
    }
    .table-toolbar .toolbar-actions {
        margin-left: 0;
        justify-content: flex-start;
    }
}

/* Account Summary Page */
.summary-account-info {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.summary-balance-highlight {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.summary-balance-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.summary-balance-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
}

.detail-row.aging-overdue {
    color: #dc3545;
    font-weight: 600;
}

/* Home Page */
.home-hero {
    position: relative;
    background: url('/images/background.jpg') center/cover no-repeat;
    margin-top: -2.5rem;
    padding: 5rem 1.5rem 4rem;
    text-align: center;
    color: #fff;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16,94,150,.88) 0%, rgba(12,70,112,.92) 100%);
}

.home-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.home-hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.home-hero-tagline {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.92;
    margin-bottom: 2rem;
}

.btn-hero-primary {
    background: #fff;
    color: #105e96;
    font-weight: 600;
    border: 2px solid #fff;
    border-radius: 50px;
    padding: 0.6rem 2rem;
    transition: background 0.2s, color 0.2s;
}

.btn-hero-primary:hover {
    background: transparent;
    color: #fff;
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,.7);
    border-radius: 50px;
    padding: 0.6rem 2rem;
    transition: background 0.2s, color 0.2s;
}

.btn-hero-outline:hover {
    background: #fff;
    color: #105e96;
}

.home-hero-signup {
    display: inline-block;
    margin-top: 1.25rem;
    color: rgba(255,255,255,.85);
    text-decoration: underline;
    font-size: 0.9rem;
}

.home-hero-signup:hover {
    color: #fff;
}

.home-value-strip {
    background: #f8f9fa;
    padding: 2rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

.home-value-item {
    text-align: center;
    padding: 0.75rem 0.5rem;
}

.home-value-icon {
    font-size: 1.5rem;
    color: #105e96;
    margin-bottom: 0.4rem;
}

.home-value-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
}

.home-value-cta {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #105e96;
    border: 2px solid #105e96;
    border-radius: 50px;
    padding: 0.35rem 1.25rem;
    transition: background 0.2s, color 0.2s;
}

.home-value-cta:hover {
    background: #105e96;
    color: #fff;
}

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

.home-section-products,
.home-section-categories {
    background: rgba(248,249,250,.95);
}

.home-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.25rem;
}

.home-section-title-accent {
    display: block;
    width: 3rem;
    height: 3px;
    background: #105e96;
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

@media (min-width: 768px) {
    .home-hero {
        padding: 6rem 2rem 5rem;
    }
    .home-hero-title {
        font-size: 3rem;
    }
    .home-hero-tagline {
        font-size: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .home-hero-title {
        font-size: 1.75rem;
    }
    .btn-hero-primary,
    .btn-hero-outline {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Browse Hero Banner */
.browse-hero {
    position: relative;
    background: url('/images/background.jpg') center/cover no-repeat;
    margin-top: -2.5rem;
    padding: 2.75rem 1.5rem 1.5rem;
    color: #fff;
}

.browse-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16,94,150,.90) 0%, rgba(10,58,94,.94) 100%);
}

.browse-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

.browse-hero .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

.browse-hero .breadcrumb-item,
.browse-hero .breadcrumb-item a {
    color: rgba(255,255,255,.78);
}

.browse-hero .breadcrumb-item a:hover {
    color: #fff;
}

.browse-hero .breadcrumb-item.active,
.browse-hero .breadcrumb-item.active a {
    color: rgba(255,255,255,.92);
}

.browse-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,.5);
}

.browse-hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.browse-hero-subtitle {
    font-size: 0.95rem;
    color: rgba(255,255,255,.82);
    margin-bottom: 0.25rem;
}

.browse-hero-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.browse-grid-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 1rem;
}

/* Auth Form Section — overlaps browse-hero so the card floats above the background image */
.auth-form-section {
    position: relative;
    z-index: 1;
    margin-top: -2rem;
    padding: 0 1rem 3rem;
    display: flex;
    justify-content: center;
}

/* Auth Form Card — centered card for auth/registration forms */
.auth-form-card {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    width: 100%;
    max-width: 480px;
}

@media (max-width: 575.98px) {
    .auth-form-card {
        padding: 1.25rem 1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* Page Content Section — overlaps browse-hero so the card floats above the background image (full-width variant of auth-form) */
.page-content-section {
    position: relative;
    z-index: 1;
    margin-top: -2rem;
    padding: 0 1rem 3rem;
}

/* Page Content Card — full-width card for content pages */
.page-content-card {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 575.98px) {
    .page-content-card {
        padding: 1.25rem 1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

@media (min-width: 992px) {
    .browse-hero {
        padding: 3.25rem 2rem 1.75rem;
    }
    .browse-hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .browse-hero {
        padding: 2.5rem 1rem 3rem;
    }
    .browse-hero-title {
        font-size: 1.35rem;
    }
    .browse-hero-actions {
        flex-wrap: wrap;
    }
}

/* Browse Hero — Checkout stepper color overrides for dark background */
.browse-hero .checkout-stepper {
    margin-bottom: 0;
    padding: 0.75rem 1rem 0;
}

.browse-hero .stepper-icon {
    background-color: rgba(255,255,255,.25);
    color: rgba(255,255,255,.8);
}

.browse-hero .stepper-step.active .stepper-icon {
    background-color: #fff;
    color: #105e96;
}

.browse-hero .stepper-step.completed .stepper-icon {
    background-color: #198754;
    color: #fff;
}

.browse-hero .stepper-label {
    color: rgba(255,255,255,.65);
}

.browse-hero .stepper-step.active .stepper-label {
    color: #fff;
    font-weight: 600;
}

.browse-hero .stepper-step.completed .stepper-label {
    color: rgba(255,255,255,.85);
}

.browse-hero .stepper-connector {
    background-color: rgba(255,255,255,.25);
}

.browse-hero .stepper-connector.completed {
    background-color: #198754;
}

/* Browse Hero — Badge readability on dark background */
.browse-hero .badge,
.browse-hero .status-badge {
    border: 1px solid rgba(255,255,255,.3);
}

/* ── Checkout Redesign ─────────────────────────────────────────────── */

/* Step section — card wrapper applied directly to each fieldset */
.checkout-step-section {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

/* Step header — icon + title row at top of each card */
.checkout-step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.checkout-step-header .btn {
    flex-shrink: 0;
}

/* Circular icon badge in step header */
.checkout-step-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #105e96;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.checkout-step-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
    line-height: 1.3;
}

.checkout-step-subtitle {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0.125rem 0 0;
}

/* Shipping method option cards */
.checkout-method-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.checkout-method-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
    flex: 1;
    min-width: 160px;
}

.checkout-method-option:hover {
    border-color: #adb5bd;
    background-color: #f8f9fa;
}

.checkout-method-option.highlight-border {
    border-color: #105e96 !important;
    border-width: 2px !important;
    border-style: solid !important;
    box-shadow: 0 0.125rem 0.5rem rgba(16, 94, 150, 0.12);
    background-color: rgba(16, 94, 150, 0.03);
}

.checkout-method-option img.shipment-method {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
    flex-shrink: 0;
}

.checkout-method-label {
    font-weight: 500;
    font-size: 0.95rem;
    color: #212529;
}

/* Pickup location option cards */
.checkout-location-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.checkout-location-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
    flex: 1;
    min-width: 160px;
}

.checkout-location-option:hover {
    border-color: #adb5bd;
    background-color: #f8f9fa;
}

.checkout-location-option.highlight-border {
    border-color: #105e96 !important;
    border-width: 2px !important;
    border-style: solid !important;
    box-shadow: 0 0.125rem 0.5rem rgba(16, 94, 150, 0.12);
    background-color: rgba(16, 94, 150, 0.03);
}

.checkout-location-label {
    font-weight: 500;
    font-size: 0.95rem;
    color: #212529;
}

/* Billing "same as shipping" toggle */
.checkout-billing-toggle {
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 0.5rem;
    padding: 0.875rem 1.25rem;
    margin-top: 1.25rem;
}

/* Continue / submit actions row */
.checkout-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.5rem;
}

.checkout-actions .btn {
    min-width: 180px;
}

@media (max-width: 575.98px) {
    .checkout-step-section {
        padding: 1rem;
        border-radius: 0.375rem;
    }
    .checkout-actions {
        display: block;
    }
    .checkout-actions .btn {
        width: 100%;
    }
}