/* =====================================================================
   Cart & Checkout Layer
   Covers: product enquiry form, cart, checkout, all-products browse,
   thank-you confirmation and the header cart link.

   Everything here is namespaced with .cbz- so it cannot collide with the
   Nest theme in main.min.css.

   Palette follows this site's theme:
     brand teal  #088178  (buttons, links, active states - matches .btn-brand)
     nav bar     #E89651  (header-bottom background)
     nav ink     #1A3D52  (header nav text)
   ===================================================================== */

.cbz-page, .cbz-order-form, .cbz-cartlink-wrap, :root {
    --cbz-brand: #088178;
    --cbz-brand-dark: #056B63;
    --cbz-brand-soft: #E8F5F3;
    --cbz-brand-tint: #D3EBE8;
    --cbz-brand-border: #BFE2DE;

    /* Header bar the cart link sits on */
    --cbz-navbar: #E89651;
    --cbz-navbar-ink: #1A3D52;

    --cbz-ink: #253D4E;
    --cbz-ink-soft: #4B5563;
    --cbz-muted: #7A8699;

    --cbz-surface: #ffffff;
    --cbz-surface-alt: #F7F8FA;
    --cbz-border: #E4E7EC;
    --cbz-border-strong: #CFD4DC;

    --cbz-green: #0F9D58;
    --cbz-green-soft: #E7F6EE;
    --cbz-amber-soft: #FFF6E5;
    --cbz-amber: #B4690E;

    --cbz-danger: #D6323F;
    --cbz-danger-dark: #B02430;
    --cbz-danger-soft: #FDECEE;
    --cbz-danger-border: #F7D2D6;

    --cbz-radius: 12px;
    --cbz-radius-sm: 8px;
    --cbz-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
    --cbz-shadow-lg: 0 12px 32px rgba(16, 24, 40, .10);
    --cbz-focus: 0 0 0 3px rgba(8, 129, 120, .18);

    --cbz-font: 'Lato', 'Spartan', system-ui, -apple-system, sans-serif;
    --cbz-font-head: 'Spartan', 'Lato', system-ui, -apple-system, sans-serif;
}

/* ------------------------------------------------------------------ */
/* Utilities                                                           */
/* main.min.css ships without Bootstrap's CSS, so screen-reader-only    */
/* text needs its own helper here.                                      */
/* ------------------------------------------------------------------ */
.cbz-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ------------------------------------------------------------------ */
/* Page shell                                                          */
/* ------------------------------------------------------------------ */
.cbz-page {
    font-family: var(--cbz-font);
    color: var(--cbz-ink);
    padding: 40px 0 70px;
}

.cbz-page__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.cbz-page__title {
    font-family: var(--cbz-font-head);
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--cbz-ink);
    margin: 0 0 6px;
}

.cbz-page__subtitle {
    font-size: 15px;
    color: var(--cbz-muted);
    margin: 0;
    max-width: 62ch;
}

/* ------------------------------------------------------------------ */
/* Progress steps                                                      */
/* ------------------------------------------------------------------ */
.cbz-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.cbz-steps__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cbz-muted);
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    background: var(--cbz-surface-alt);
    border: 1px solid var(--cbz-border);
}

.cbz-steps__item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--cbz-border-strong);
    font-size: 12px;
    color: var(--cbz-muted);
}

.cbz-steps__item.is-done {
    color: var(--cbz-green);
    background: var(--cbz-green-soft);
    border-color: rgba(15, 157, 88, .25);
}

.cbz-steps__item.is-done span {
    background: var(--cbz-green);
    border-color: var(--cbz-green);
    color: #fff;
}

.cbz-steps__item.is-current {
    color: var(--cbz-brand);
    background: var(--cbz-brand-soft);
    border-color: var(--cbz-brand-border);
}

.cbz-steps__item.is-current span {
    background: var(--cbz-brand);
    border-color: var(--cbz-brand);
    color: #fff;
}

/* ------------------------------------------------------------------ */
/* Cards                                                               */
/* ------------------------------------------------------------------ */
.cbz-card {
    background: var(--cbz-surface);
    border: 1px solid var(--cbz-border);
    border-radius: var(--cbz-radius);
    box-shadow: var(--cbz-shadow);
    overflow: hidden;
}

.cbz-card__head {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--cbz-border);
    background: linear-gradient(180deg, #fff 0%, var(--cbz-surface-alt) 100%);
}

.cbz-card__title {
    font-family: var(--cbz-font-head);
    font-size: 20px;
    font-weight: 700;
    color: var(--cbz-ink);
    margin: 0 0 4px;
}

.cbz-card__subtitle {
    font-size: 14px;
    color: var(--cbz-muted);
    margin: 0;
}

.cbz-card__body {
    padding: 24px;
}

/* Product page wrapper */
.cbz-order-form {
    font-family: var(--cbz-font);
    color: var(--cbz-ink);
}

/* ------------------------------------------------------------------ */
/* Alerts                                                              */
/* ------------------------------------------------------------------ */
.cbz-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border-radius: var(--cbz-radius-sm);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.cbz-alert i {
    flex-shrink: 0;
    line-height: 1.4;
}

.cbz-alert--success {
    background: var(--cbz-green-soft);
    border-color: rgba(15, 157, 88, .25);
    color: #0B6E3E;
}

.cbz-alert--error {
    background: var(--cbz-danger-soft);
    border-color: var(--cbz-danger-border);
    color: var(--cbz-danger-dark);
}

.cbz-alert--info {
    background: var(--cbz-amber-soft);
    border-color: #F5DFB8;
    color: var(--cbz-amber);
}

/* ------------------------------------------------------------------ */
/* Form fields                                                         */
/* ------------------------------------------------------------------ */
.cbz-field-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
}

.cbz-field-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cbz-field-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cbz-field-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.cbz-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-bottom: 0;
}

.cbz-field + .cbz-field { margin-top: 18px; }
.cbz-field-grid .cbz-field + .cbz-field { margin-top: 0; }

.cbz-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--cbz-ink-soft);
    letter-spacing: .01em;
    margin-bottom: 7px;
}

.cbz-label__note {
    font-weight: 400;
    color: var(--cbz-muted);
    font-size: 12px;
}

.cbz-req { color: var(--cbz-danger); }

.cbz-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font-family: var(--cbz-font);
    font-size: 14px;
    color: var(--cbz-ink);
    background: #fff;
    border: 1px solid var(--cbz-border-strong);
    border-radius: var(--cbz-radius-sm);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
    appearance: none;
}

.cbz-input::placeholder { color: #A5AEBD; }

.cbz-input:hover { border-color: #B6BDC9; }

.cbz-input:focus {
    outline: none;
    border-color: var(--cbz-brand);
    box-shadow: var(--cbz-focus);
}

.cbz-input.is-invalid {
    border-color: var(--cbz-danger);
    background: #FFFBFB;
}

.cbz-select {
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237A8699' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.cbz-textarea {
    height: auto;
    min-height: 120px;
    padding: 12px 14px;
    line-height: 1.6;
    resize: vertical;
}

.cbz-error {
    display: block;
    font-size: 12.5px;
    color: var(--cbz-danger);
    margin-top: 6px;
}

/* Dimensions group */
.cbz-fieldset {
    border: 1px solid var(--cbz-border);
    border-radius: var(--cbz-radius-sm);
    background: var(--cbz-surface-alt);
    padding: 18px 18px 4px;
    margin: 0 0 18px;
}

.cbz-legend {
    float: none;
    width: auto;
    font-family: var(--cbz-font-head);
    font-size: 14px;
    font-weight: 700;
    color: var(--cbz-ink);
    padding: 0 6px;
    margin: 0 0 12px;
}

.cbz-legend__hint {
    display: block;
    font-family: var(--cbz-font);
    font-size: 12px;
    font-weight: 400;
    color: var(--cbz-muted);
    margin-top: 3px;
}

.cbz-fieldset .cbz-field-grid { margin-bottom: 14px; }

/* Quantity stepper */
.cbz-stepper {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--cbz-border-strong);
    border-radius: var(--cbz-radius-sm);
    overflow: hidden;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.cbz-stepper:focus-within {
    border-color: var(--cbz-brand);
    box-shadow: var(--cbz-focus);
}

.cbz-stepper__btn {
    width: 44px;
    flex-shrink: 0;
    border: 0;
    background: var(--cbz-surface-alt);
    color: var(--cbz-ink-soft);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.cbz-stepper__btn:hover {
    background: var(--cbz-brand-soft);
    color: var(--cbz-brand);
}

.cbz-stepper__input {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: center;
    font-weight: 700;
    -moz-appearance: textfield;
}

.cbz-stepper__input::-webkit-outer-spin-button,
.cbz-stepper__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cbz-stepper--sm { max-width: 168px; }
.cbz-stepper--sm .cbz-stepper__btn { width: 36px; font-size: 16px; }
.cbz-stepper--sm .cbz-input { height: 40px; font-size: 13px; }

/* File upload */
.cbz-upload {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 12px 16px;
    border: 1.5px dashed var(--cbz-border-strong);
    border-radius: var(--cbz-radius-sm);
    background: var(--cbz-surface-alt);
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease;
    margin: 0;
}

.cbz-upload:hover {
    border-color: var(--cbz-brand);
    background: var(--cbz-brand-soft);
}

.cbz-upload.is-invalid { border-color: var(--cbz-danger); }

.cbz-upload i {
    font-size: 20px;
    color: var(--cbz-brand);
    flex-shrink: 0;
}

.cbz-upload__text {
    display: flex;
    flex-direction: column;
    font-size: 13.5px;
    color: var(--cbz-ink-soft);
    line-height: 1.4;
    min-width: 0;
}

.cbz-upload__text strong { color: var(--cbz-brand); }

.cbz-upload__text small {
    font-size: 11.5px;
    color: var(--cbz-muted);
    margin-top: 2px;
}

.cbz-upload__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.cbz-upload__status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--cbz-muted);
    margin-top: 8px;
}

.cbz-filelist {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cbz-filelist li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--cbz-ink-soft);
    background: var(--cbz-green-soft);
    border: 1px solid rgba(15, 157, 88, .2);
    border-radius: 999px;
    padding: 4px 12px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */
.cbz-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.cbz-actions--split { justify-content: space-between; align-items: center; }
.cbz-actions--center { justify-content: center; }

.cbz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 24px;
    font-family: var(--cbz-font-head);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    border-radius: var(--cbz-radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background-color .18s ease, color .18s ease,
                border-color .18s ease, box-shadow .18s ease;
}

.cbz-btn:focus-visible {
    outline: none;
    box-shadow: var(--cbz-focus);
}

.cbz-btn:disabled,
.cbz-btn[disabled] {
    opacity: .6;
    cursor: not-allowed;
    transform: none !important;
}

.cbz-btn i { font-size: 15px; line-height: 1; }

.cbz-btn--primary {
    background: var(--cbz-brand);
    border-color: var(--cbz-brand);
    color: #fff;
    box-shadow: 0 4px 14px rgba(8, 129, 120, .22);
}

.cbz-btn--primary:hover {
    background: var(--cbz-brand-dark) !important;
    border-color: var(--cbz-brand-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(8, 129, 120, .3);
}

.cbz-btn--outline {
    background: #fff;
    border-color: var(--cbz-brand);
    color: var(--cbz-brand);
}

.cbz-btn--outline:hover {
    background: var(--cbz-brand-soft) !important;
    border-color: var(--cbz-brand);
    color: var(--cbz-brand-dark);
    transform: translateY(-1px);
}

.cbz-btn--ghost {
    background: transparent;
    border-color: var(--cbz-border-strong);
    color: var(--cbz-ink-soft);
}

.cbz-btn--ghost:hover {
    background: var(--cbz-surface-alt) !important;
    border-color: var(--cbz-border-strong);
    color: var(--cbz-ink);
}

.cbz-btn--danger {
    background: var(--cbz-danger);
    border-color: var(--cbz-danger);
    color: #fff;
}

.cbz-btn--danger:hover {
    background: var(--cbz-danger-dark) !important;
    border-color: var(--cbz-danger-dark);
    color: #fff;
}

.cbz-btn--block {
    display: flex;
    width: 100%;
}

.cbz-btn--block + .cbz-btn--block { margin-top: 10px; }

.cbz-btn--sm {
    min-height: 38px;
    padding: 0 16px;
    font-size: 13px;
}

.cbz-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 0;
    padding: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--cbz-brand);
    cursor: pointer;
    text-decoration: none;
    transition: color .15s ease;
}

.cbz-link-btn:hover { color: var(--cbz-brand-dark); text-decoration: underline; }
.cbz-link-btn:disabled { opacity: .6; cursor: not-allowed; }

.cbz-link-btn--center {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.cbz-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid transparent;
    border-radius: var(--cbz-radius-sm);
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cbz-muted);
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

.cbz-icon-btn:hover {
    color: var(--cbz-brand);
    background: var(--cbz-brand-soft);
    border-color: var(--cbz-brand-border);
}

.cbz-icon-btn__text { display: none; }

/* Spinner */
.cbz-spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -2px;
    animation: cbz-spin .7s linear infinite;
}

@keyframes cbz-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .cbz-spinner { animation-duration: 2s; }
    .cbz-btn:hover { transform: none; }
}

/* ------------------------------------------------------------------ */
/* Trust list                                                          */
/* ------------------------------------------------------------------ */
.cbz-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    list-style: none;
    margin: 18px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--cbz-border);
}

.cbz-trust li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--cbz-ink-soft);
}

.cbz-trust i {
    color: var(--cbz-green);
    font-size: 12px;
}

.cbz-trust--stack {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* ------------------------------------------------------------------ */
/* Chips                                                               */
/* ------------------------------------------------------------------ */
.cbz-chip {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--cbz-brand);
    background: var(--cbz-brand-soft);
    border: 1px solid var(--cbz-brand-border);
    border-radius: 999px;
    padding: 3px 10px;
    margin-bottom: 6px;
}

/* ------------------------------------------------------------------ */
/* Empty states                                                        */
/* ------------------------------------------------------------------ */
.cbz-empty {
    text-align: center;
    background: var(--cbz-surface);
    border: 1px solid var(--cbz-border);
    border-radius: var(--cbz-radius);
    padding: 64px 24px;
    box-shadow: var(--cbz-shadow);
}

.cbz-empty__icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cbz-brand-soft);
    color: var(--cbz-brand);
    font-size: 30px;
}

.cbz-empty__title {
    font-family: var(--cbz-font-head);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px;
}

.cbz-empty__text {
    font-size: 15px;
    color: var(--cbz-muted);
    max-width: 46ch;
    margin: 0 auto 26px;
    line-height: 1.6;
}

/* ------------------------------------------------------------------ */
/* Cart                                                                */
/* ------------------------------------------------------------------ */
.cbz-cart {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 24px;
    align-items: start;
}

.cbz-cart__items {
    background: var(--cbz-surface);
    border: 1px solid var(--cbz-border);
    border-radius: var(--cbz-radius);
    box-shadow: var(--cbz-shadow);
    overflow: hidden;
}

.cbz-cart__header,
.cbz-cart__row {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr) 190px 110px;
    gap: 18px;
    align-items: center;
}

.cbz-cart__header {
    padding: 14px 22px;
    background: var(--cbz-surface-alt);
    border-bottom: 1px solid var(--cbz-border);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--cbz-muted);
}

.cbz-cart__row {
    padding: 20px 22px;
    border-bottom: 1px solid var(--cbz-border);
    transition: background-color .15s ease;
}

.cbz-cart__row:last-child { border-bottom: 0; }
.cbz-cart__row:hover { background: #FCFCFD; }

.cbz-cart__product {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    min-width: 0;
}

.cbz-cart__thumb {
    flex-shrink: 0;
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cbz-border);
    border-radius: var(--cbz-radius-sm);
    background: var(--cbz-surface-alt);
    overflow: hidden;
}

.cbz-cart__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.cbz-cart__thumb--empty { color: var(--cbz-muted); font-size: 26px; }

.cbz-cart__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cbz-cart__name {
    font-family: var(--cbz-font-head);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--cbz-ink);
    text-decoration: none;
}

.cbz-cart__name:hover { color: var(--cbz-brand); }

.cbz-cart__meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--cbz-muted);
    margin-top: 5px;
}

.cbz-cart__spec { display: flex; flex-direction: column; min-width: 0; }

.cbz-cart__label {
    display: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--cbz-muted);
    margin-bottom: 5px;
}

.cbz-cart__dims {
    font-size: 14px;
    font-weight: 700;
    color: var(--cbz-ink);
}

.cbz-cart__dims--muted { color: var(--cbz-muted); font-weight: 600; }

.cbz-cart__qty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.cbz-cart__remove { display: flex; justify-content: flex-end; }

/* Summary panel */
.cbz-cart__summary,
.cbz-checkout__summary { position: sticky; top: 24px; }

.cbz-summary {
    background: var(--cbz-surface);
    border: 1px solid var(--cbz-border);
    border-radius: var(--cbz-radius);
    box-shadow: var(--cbz-shadow);
    padding: 24px;
}

.cbz-summary__title {
    font-family: var(--cbz-font-head);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--cbz-border);
}

.cbz-summary__list {
    margin: 0 0 18px;
    padding: 0;
}

.cbz-summary__list > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.cbz-summary__list dt {
    font-size: 14px;
    font-weight: 400;
    color: var(--cbz-muted);
    margin: 0;
}

.cbz-summary__list dd {
    font-size: 15px;
    font-weight: 700;
    color: var(--cbz-ink);
    margin: 0;
}

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

.cbz-summary__note {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--cbz-muted);
    background: var(--cbz-surface-alt);
    border-radius: var(--cbz-radius-sm);
    padding: 12px 14px;
    margin: 0 0 18px;
}

.cbz-summary__items {
    list-style: none;
    margin: 0 0 18px;
    padding: 0 0 6px;
    max-height: 320px;
    overflow-y: auto;
}

.cbz-summary__item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--cbz-border);
}

.cbz-summary__item:last-child { border-bottom: 0; }

.cbz-summary__thumb {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cbz-border);
    border-radius: var(--cbz-radius-sm);
    background: var(--cbz-surface-alt);
    color: var(--cbz-muted);
    overflow: hidden;
}

.cbz-summary__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.cbz-summary__detail {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.cbz-summary__detail strong {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--cbz-ink);
    line-height: 1.35;
}

.cbz-summary__detail small {
    font-size: 12px;
    color: var(--cbz-muted);
}

.cbz-confirm {
    background: var(--cbz-danger-soft);
    border: 1px solid var(--cbz-danger-border);
    border-radius: var(--cbz-radius-sm);
    padding: 14px;
    margin-top: 10px;
}

.cbz-confirm p {
    font-size: 13.5px;
    color: var(--cbz-danger-dark);
    margin: 0 0 12px;
    line-height: 1.5;
}

.cbz-confirm__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ */
/* Checkout                                                            */
/* ------------------------------------------------------------------ */
.cbz-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 24px;
    align-items: start;
}

.cbz-privacy {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--cbz-muted);
    margin: 18px 0 0;
}

.cbz-privacy i { color: var(--cbz-green); }

/* ------------------------------------------------------------------ */
/* All products browse                                                 */
/* ------------------------------------------------------------------ */
.cbz-section { margin-bottom: 34px; }

.cbz-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.cbz-section__title {
    font-family: var(--cbz-font-head);
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.cbz-catgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 14px;
}

.cbz-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--cbz-surface);
    border: 1px solid var(--cbz-border);
    border-radius: var(--cbz-radius);
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.cbz-cat:hover {
    border-color: var(--cbz-brand-border);
    box-shadow: var(--cbz-shadow);
    transform: translateY(-2px);
}

.cbz-cat.is-active {
    border-color: var(--cbz-brand);
    background: var(--cbz-brand-soft);
    box-shadow: var(--cbz-shadow);
}

.cbz-cat__media {
    width: 100%;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cbz-muted);
    font-size: 26px;
}

.cbz-cat__media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.cbz-cat__name {
    font-family: var(--cbz-font-head);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--cbz-ink);
    line-height: 1.35;
}

.cbz-cat__count { font-size: 11.5px; color: var(--cbz-muted); }

.cbz-filterbar {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 12px;
    background: var(--cbz-surface);
    border: 1px solid var(--cbz-border);
    border-radius: var(--cbz-radius);
    box-shadow: var(--cbz-shadow);
    padding: 16px;
    margin-bottom: 16px;
}

.cbz-filterbar__search { position: relative; }

.cbz-filterbar__search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cbz-muted);
    font-size: 14px;
    pointer-events: none;
}

.cbz-filterbar__search .cbz-input { padding-left: 40px; }

.cbz-resultbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    min-height: 22px;
}

.cbz-resultbar p {
    margin: 0;
    font-size: 14px;
    color: var(--cbz-muted);
}

.cbz-resultbar strong { color: var(--cbz-ink); }

.cbz-prodgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.cbz-prod {
    display: flex;
    flex-direction: column;
    background: var(--cbz-surface);
    border: 1px solid var(--cbz-border);
    border-radius: var(--cbz-radius);
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.cbz-prod:hover {
    border-color: var(--cbz-brand-border);
    box-shadow: var(--cbz-shadow-lg);
    transform: translateY(-3px);
}

.cbz-prod__media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: var(--cbz-surface-alt);
    overflow: hidden;
}

.cbz-prod__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform .3s ease;
}

.cbz-prod:hover .cbz-prod__media img { transform: scale(1.05); }

.cbz-prod__placeholder { color: var(--cbz-muted); font-size: 34px; }

.cbz-prod__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 16px 16px;
}

.cbz-prod__name {
    font-family: var(--cbz-font-head);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
    flex: 1;
}

.cbz-prod__name a { color: var(--cbz-ink); text-decoration: none; }
.cbz-prod__name a:hover { color: var(--cbz-brand); }

.cbz-prod__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--cbz-brand);
    text-decoration: none;
}

.cbz-prod__cta:hover { color: var(--cbz-brand-dark); gap: 10px; }

/* Bootstrap's CSS is not loaded on the front end, so the pagination markup
   Livewire renders needs its full layout defined here. */
.cbz-pagination { margin-top: 34px; }

.cbz-pagination .pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cbz-pagination .page-item { display: inline-flex; }

.cbz-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--cbz-ink-soft);
    background: #fff;
    border: 1px solid var(--cbz-border);
    border-radius: var(--cbz-radius-sm);
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.cbz-pagination .page-link:hover {
    background: var(--cbz-brand-soft);
    border-color: var(--cbz-brand-border);
    color: var(--cbz-brand);
}

.cbz-pagination .page-item.active .page-link {
    background: var(--cbz-brand);
    border-color: var(--cbz-brand);
    color: #fff;
}

.cbz-pagination .page-item.disabled .page-link {
    color: #B6BDC9;
    background: var(--cbz-surface-alt);
    pointer-events: none;
}

.cbz-pagination .page-link svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ */
/* Thank you                                                           */
/* ------------------------------------------------------------------ */
.cbz-thanks {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    background: var(--cbz-surface);
    border: 1px solid var(--cbz-border);
    border-radius: var(--cbz-radius);
    box-shadow: var(--cbz-shadow);
    padding: 52px 32px 44px;
}

.cbz-thanks__badge {
    width: 82px;
    height: 82px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cbz-green-soft);
    color: var(--cbz-green);
    font-size: 32px;
    box-shadow: 0 0 0 8px rgba(15, 157, 88, .08);
}

.cbz-thanks__title {
    font-family: var(--cbz-font-head);
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px;
}

.cbz-thanks__text {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--cbz-ink-soft);
    max-width: 52ch;
    margin: 0 auto 26px;
}

.cbz-thanks__ref {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    background: var(--cbz-brand-soft);
    border: 1px dashed var(--cbz-brand-border);
    border-radius: var(--cbz-radius-sm);
    padding: 14px 28px;
    margin-bottom: 30px;
}

.cbz-thanks__ref-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--cbz-muted);
}

.cbz-thanks__ref-value {
    font-family: var(--cbz-font-head);
    font-size: 21px;
    font-weight: 700;
    color: var(--cbz-brand);
    letter-spacing: .02em;
}

.cbz-thanks__ref-hint { font-size: 12px; color: var(--cbz-muted); }

.cbz-nextsteps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0 0 32px;
    padding: 28px 0 0;
    border-top: 1px solid var(--cbz-border);
    text-align: left;
}

.cbz-nextsteps li { display: flex; gap: 12px; align-items: flex-start; }

.cbz-nextsteps__num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cbz-brand);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.cbz-nextsteps__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 13px;
    color: var(--cbz-muted);
    line-height: 1.55;
}

.cbz-nextsteps__body strong { font-size: 14px; color: var(--cbz-ink); }

.cbz-thanks__contact {
    font-size: 14px;
    color: var(--cbz-muted);
    margin: 26px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--cbz-border);
}

.cbz-thanks__contact a { font-weight: 700; }

/* ------------------------------------------------------------------ */
/* Header cart link                                                    */
/* ------------------------------------------------------------------ */
.cbz-cartlink-wrap { display: inline-flex; }

.cbz-cartlink {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--cbz-radius-sm);
    border: 1.5px solid var(--cbz-navbar-ink);
    background: transparent;
    color: var(--cbz-navbar-ink) !important;
    font-family: var(--cbz-font-head);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.cbz-cartlink:hover {
    background: var(--cbz-navbar-ink);
    border-color: var(--cbz-navbar-ink);
    color: #fff !important;
}

.cbz-cartlink i { font-size: 16px; }

.cbz-cartlink__badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--cbz-brand);
    color: #fff;
    border: 2px solid var(--cbz-navbar);
    font-size: 11px;
    font-weight: 700;
}

/* Mobile header variant sits on the nav bar next to the burger icon */
.cbz-cartlink--mobile { margin-right: 12px; }

.cbz-cartlink--mobile .cbz-cartlink {
    padding: 8px 10px;
    border-color: transparent;
    background: transparent;
}

.cbz-cartlink--mobile .cbz-cartlink__text { display: none; }
.cbz-cartlink--mobile .cbz-cartlink i { font-size: 20px; }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 1199px) {
    .cbz-cart,
    .cbz-checkout { grid-template-columns: minmax(0, 1fr) 310px; }

    .cbz-cart__header,
    .cbz-cart__row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 170px 56px; gap: 14px; }
}

@media (max-width: 991px) {
    .cbz-cart,
    .cbz-checkout { grid-template-columns: minmax(0, 1fr); }

    .cbz-cart__summary,
    .cbz-checkout__summary { position: static; }

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

    .cbz-filterbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .cbz-filterbar__search { grid-column: 1 / -1; }

    .cbz-nextsteps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 767px) {
    .cbz-page { padding: 26px 0 50px; }
    .cbz-page__title { font-size: 25px; }

    .cbz-card__body { padding: 18px; }
    .cbz-card__head { padding: 16px 18px 14px; }

    .cbz-field-grid--2,
    .cbz-field-grid--3 { grid-template-columns: minmax(0, 1fr); }

    /* Cart rows become stacked cards */
    .cbz-cart__header { display: none; }

    .cbz-cart__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 18px;
        position: relative;
    }

    .cbz-cart__label { display: block; }

    .cbz-cart__spec,
    .cbz-cart__qty {
        padding-top: 14px;
        border-top: 1px dashed var(--cbz-border);
    }

    .cbz-cart__remove { justify-content: flex-start; }

    .cbz-icon-btn {
        border-color: var(--cbz-border);
        padding: 8px 14px;
    }

    .cbz-icon-btn__text { display: inline; }

    .cbz-cart__thumb { width: 68px; height: 68px; }

    .cbz-actions .cbz-btn { flex: 1 1 100%; }
    .cbz-actions--split { flex-direction: column-reverse; align-items: stretch; }

    .cbz-thanks { padding: 38px 20px 32px; }
    .cbz-thanks__title { font-size: 23px; }

    .cbz-empty { padding: 44px 18px; }

    .cbz-prodgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
    .cbz-catgrid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
}

@media (max-width: 575px) {
    .cbz-filterbar { grid-template-columns: minmax(0, 1fr); }
    .cbz-steps { width: 100%; }
    .cbz-steps__item { flex: 1 1 auto; justify-content: center; }
}
