@charset "UTF-8";
/*
 * Login, signup, shopping cart and checkout pages
 * (templates/Users/login.php, Users/signup.php, Products/shopping_cart.php, Orders/checkout.php).
 * The theme sets html { font-size: 62.5% }, so px is used here to keep sizes predictable.
 */
.bbx {
    --bbx-red: #ED1D24;
    --bbx-red-dark: #c4141a;
    --bbx-green: #059669;
    --bbx-ink: #1b1d21;
    --bbx-muted: #6b7078;
    --bbx-line: #e6e7eb;
    --bbx-soft: #f6f7f9;
    --bbx-radius: 18px;
    --bbx-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);

    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px 0 56px;
    color: var(--bbx-ink);
}
.bbx a {
    text-decoration: none;
}
/* banner on top on desktop; below the main content on phones (and always at the bottom on checkout) */
.bbx-banner {
    order: -1;
}
.bbx--banner-bottom .bbx-banner {
    order: 2;
}

/* ---------- Shared card + form controls ---------- */
.bbx-card {
    background: #fff;
    border: 1px solid var(--bbx-line);
    border-radius: var(--bbx-radius);
    box-shadow: var(--bbx-shadow);
}
.bbx-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--bbx-ink);
}
.bbx-card__title .fa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-size: 15px;
    color: var(--bbx-red);
    background: #fff1f1;
    border-radius: 10px;
}
.bbx-field {
    margin-bottom: 16px;
}
.bbx-field > label,
.bbx-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bbx-ink);
}
.bbx-field .bbx-req {
    color: var(--bbx-red);
}
.bbx-control {
    position: relative;
}
.bbx-control > .fa {
    position: absolute;
    left: 15px;
    top: 50%;
    z-index: 1;
    font-size: 15px;
    color: #9aa0a8;
    transform: translateY(-50%);
    pointer-events: none;
}
.bbx-control--textarea > .fa {
    top: 18px;
    transform: none;
}
.bbx-control .input {
    margin: 0;
}
.bbx-control input,
.bbx-control textarea {
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0 14px 0 42px;
    font-size: 15px;
    color: var(--bbx-ink);
    background: var(--bbx-soft);
    border: 2px solid transparent;
    border-radius: 12px;
    box-shadow: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.bbx-control textarea {
    height: auto;
    min-height: 92px;
    padding-top: 13px;
    padding-bottom: 13px;
    line-height: 1.5;
    resize: vertical;
}
.bbx-control input:focus,
.bbx-control textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--bbx-red);
    box-shadow: 0 0 0 4px rgba(237, 29, 36, .12);
}
.bbx-control input::placeholder,
.bbx-control textarea::placeholder {
    color: #9aa0a8;
    opacity: 1;
}
.bbx-control--password input {
    padding-right: 48px;
}
.bbx-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    z-index: 1;
    width: 38px;
    height: 38px;
    padding: 0;
    font-size: 16px;
    color: var(--bbx-muted);
    background: transparent;
    border: 0;
    border-radius: 10px;
    transform: translateY(-50%);
}
.bbx-eye:hover,
.bbx-eye:focus-visible {
    color: var(--bbx-ink);
    background: #eceef1;
}
.bbx-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--bbx-muted);
}
.bbx-field .error-message,
.bbx-error {
    margin-top: 6px;
    font-size: 13px;
    color: var(--bbx-red);
}
.bbx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 12px;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.bbx-btn--primary {
    color: #fff;
    background: var(--bbx-red);
    border: 0;
    box-shadow: 0 10px 22px rgba(237, 29, 36, .28);
}
.bbx-btn--primary:hover,
.bbx-btn--primary:focus-visible {
    color: #fff;
    background: var(--bbx-red-dark);
    transform: translateY(-1px);
}
.bbx-btn--outline {
    color: var(--bbx-ink);
    background: #fff;
    border: 2px solid var(--bbx-line);
}
.bbx-btn--outline:hover,
.bbx-btn--outline:focus-visible {
    color: var(--bbx-red);
    border-color: var(--bbx-red);
}
.bbx-btn--ghost {
    width: auto;
    min-height: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--bbx-muted);
    background: none;
    border: 0;
}
.bbx-btn--ghost:hover {
    color: var(--bbx-red);
}
.bbx-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    font-size: 13px;
    color: var(--bbx-muted);
}
.bbx-divider::before,
.bbx-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--bbx-line);
}

/* ---------- Login / signup ---------- */
.bbx-auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    width: 100%;
    max-width: 940px;
    margin: 0 auto;
    overflow: hidden;
}
.bbx-auth__side {
    position: relative;
    overflow: hidden;
    padding: 40px 36px;
    color: #fff;
    background:
        radial-gradient(90% 120% at 0% 0%, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 55%),
        linear-gradient(140deg, #ED1D24 0%, #a50f14 70%, #7d0c12 100%);
}
.bbx-auth__side .fa-motorcycle.bbx-auth__art {
    position: absolute;
    right: -40px;
    bottom: -40px;
    font-size: 220px;
    line-height: 1;
    color: rgba(255, 255, 255, .08);
    transform: rotate(-10deg);
    pointer-events: none;
}
.bbx-auth__side h2 {
    position: relative;
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}
.bbx-auth__side > p {
    position: relative;
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .85);
}
.bbx-perks {
    position: relative;
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.bbx-perks li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
}
.bbx-perks .fa {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    font-size: 15px;
    line-height: 34px;
    text-align: center;
    color: var(--bbx-red);
    background: #fff;
    border-radius: 50%;
}
.bbx-perks strong {
    display: block;
    font-size: 15px;
    color: #fff;
}
.bbx-perks span {
    color: rgba(255, 255, 255, .8);
}
.bbx-auth__form {
    padding: 40px 40px 34px;
}
.bbx-auth__head {
    margin-bottom: 24px;
}
.bbx-auth__head h1 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--bbx-ink);
}
.bbx-auth__head p {
    margin: 0;
    font-size: 14px;
    color: var(--bbx-muted);
}
.bbx-auth__foot {
    margin: 18px 0 0;
    font-size: 14px;
    text-align: center;
    color: var(--bbx-muted);
}
.bbx-auth__foot a {
    font-weight: 700;
    color: var(--bbx-red);
}

/* ---------- Steps (cart / checkout / order confirmed) ---------- */
.bbx-steps {
    /* own copies of the colours so the steps also work outside .bbx (order-confirmed page) */
    --bbx-red: #ED1D24;
    --bbx-green: #059669;
    --bbx-ink: #1b1d21;
    --bbx-muted: #6b7078;
    --bbx-line: #e6e7eb;
    --bbx-soft: #f6f7f9;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.bbx-steps li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bbx-muted);
}
.bbx-steps li + li::before {
    content: "";
    width: 40px;
    height: 2px;
    margin-right: 0;
    background: var(--bbx-line);
    border-radius: 2px;
}
.bbx-steps b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 13px;
    color: var(--bbx-muted);
    background: var(--bbx-soft);
    border: 2px solid var(--bbx-line);
    border-radius: 50%;
}
.bbx-steps .is-done,
.bbx-steps .is-current {
    color: var(--bbx-ink);
}
.bbx-steps .is-done b {
    color: #fff;
    background: var(--bbx-green);
    border-color: var(--bbx-green);
}
.bbx-steps .is-current b {
    color: #fff;
    background: var(--bbx-red);
    border-color: var(--bbx-red);
}
.bbx-steps .is-done + li::before,
.bbx-steps .is-current + li::before {
    background: var(--bbx-line);
}
.bbx-steps .is-done + .is-done::before,
.bbx-steps .is-done + .is-current::before {
    background: var(--bbx-green);
}

/* ---------- Two-column shop layout ---------- */
.bbx-shop {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.bbx-shop__main,
.bbx-shop__side {
    min-width: 0;
}
.bbx-shop__side {
    position: sticky;
    top: 90px;
}
.bbx-pad {
    padding: 24px;
}
.bbx-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.bbx-head-row .bbx-card__title {
    margin: 0;
}

/* ---------- Cart items ---------- */
.bbx-items {
    display: grid;
    gap: 12px;
}
.bbx-item {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--bbx-line);
    border-radius: 14px;
}
.bbx-item__img {
    width: 84px;
    height: 84px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--bbx-line);
    border-radius: 12px;
}
.bbx-item__img img {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 4px;
    object-fit: contain;
}
.bbx-item__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--bbx-ink);
}
.bbx-item__unit {
    font-size: 13px;
    color: var(--bbx-muted);
}
.bbx-item__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}
.bbx-qty {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--bbx-line);
    border-radius: 10px;
}
.bbx-qty button {
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 13px;
    color: var(--bbx-ink);
    background: var(--bbx-soft);
    border: 0;
}
.bbx-qty button:hover {
    color: #fff;
    background: var(--bbx-red);
}
.bbx-qty input {
    width: 42px;
    height: 34px;
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    color: var(--bbx-ink);
    background: #fff;
    border: 0;
    -moz-appearance: textfield;
}
.bbx-item__remove.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 13px;
    color: var(--bbx-muted);
    background: none;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
}
.bbx-item__remove.btn-danger:hover,
.bbx-item__remove.btn-danger:focus-visible {
    color: var(--bbx-red);
    background: #fff1f1;
}
.bbx-item__total {
    font-size: 17px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
    color: var(--bbx-ink);
}

/* ---------- Summary ---------- */
.bbx-sum {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.bbx-sum li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
    color: #3d4149;
}
.bbx-sum li span:last-child {
    font-weight: 600;
    text-align: right;
    color: var(--bbx-ink);
}
.bbx-sum .bbx-sum__muted span:last-child {
    font-size: 13px;
    font-weight: 500;
    color: var(--bbx-muted);
}
.bbx-sum .bbx-sum__total {
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px dashed var(--bbx-line);
    font-size: 17px;
    font-weight: 700;
    color: var(--bbx-ink);
}
.bbx-sum .bbx-sum__total span:last-child {
    font-size: 22px;
    font-weight: 800;
    color: var(--bbx-red);
}
.bbx-note {
    display: flex;
    gap: 10px;
    margin: 16px 0;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.55;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
}
.bbx-note .fa {
    margin-top: 3px;
}
.bbx-assure {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: #3d4149;
}
.bbx-assure li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.bbx-assure .fa {
    width: 16px;
    color: var(--bbx-green);
    text-align: center;
}
.bbx-info {
    margin-top: 16px;
    border-top: 1px solid var(--bbx-line);
}
.bbx-info summary {
    padding: 14px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--bbx-ink);
    cursor: pointer;
}
.bbx-info ul {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.6;
    color: #3d4149;
}
.bbx-info p {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: #3d4149;
}

/* ---------- Empty cart ---------- */
.bbx-empty {
    padding: 48px 24px;
    text-align: center;
}
.bbx-empty .fa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin-bottom: 18px;
    font-size: 36px;
    color: var(--bbx-red);
    background: #fff1f1;
    border-radius: 50%;
}
.bbx-empty h2 {
    margin: 0 0 6px;
    font-size: 21px;
    font-weight: 700;
}
.bbx-empty p {
    margin: 0 0 22px;
    font-size: 14px;
    color: var(--bbx-muted);
}
.bbx-empty .bbx-btn {
    width: auto;
}

/* ---------- Checkout extras ---------- */
.bbx-mini-items {
    display: grid;
    gap: 12px;
    max-height: 260px;
    margin: 0 0 16px;
    padding: 0 0 16px;
    overflow-y: auto;
    list-style: none;
    border-bottom: 1px solid var(--bbx-line);
}
.bbx-mini-items li {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}
.bbx-mini-items img {
    width: 52px;
    height: 52px;
    margin: 0;
    padding: 3px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--bbx-line);
    border-radius: 10px;
}
.bbx-mini-items .bbx-mini-items__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.4;
    color: var(--bbx-ink);
}
.bbx-mini-items small {
    display: block;
    font-size: 12px;
    color: var(--bbx-muted);
}
.bbx-mini-items b {
    font-size: 14px;
    white-space: nowrap;
}
.bbx-pay {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 2px solid var(--bbx-red);
    border-radius: 12px;
}
.bbx-pay__dot {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 6px solid var(--bbx-red);
    border-radius: 50%;
}
.bbx-pay strong {
    display: block;
    font-size: 15px;
}
.bbx-pay small {
    font-size: 13px;
    color: var(--bbx-muted);
}
.bbx-pay .fa {
    margin-left: auto;
    font-size: 22px;
    color: var(--bbx-green);
}
.bbx-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--bbx-muted);
}

/* ---------- Mobile sticky checkout bar (cart page) ---------- */
.bbx-sticky {
    display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .bbx-banner {
        order: 2;
    }
    .bbx-shop {
        grid-template-columns: minmax(0, 1fr);
    }
    .bbx-shop__side {
        position: static;
    }
    .bbx-sticky {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 64px; /* above the site's fixed bottom toolbar */
        z-index: 98;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 16px;
        background: #fff;
        border-top: 1px solid #e6e7eb;
        box-shadow: 0 -6px 18px rgba(16, 24, 40, .08);
    }
    .bbx-sticky[hidden] {
        display: none;
    }
    .bbx-sticky small {
        display: block;
        font-size: 12px;
        color: #6b7078;
    }
    .bbx-sticky strong {
        font-size: 20px;
        color: #ED1D24;
    }
    .bbx-sticky .bbx-btn {
        width: auto;
        min-height: 46px;
        padding: 0 22px;
        font-size: 15px;
    }
    .bbx--has-sticky {
        padding-bottom: 150px;
    }
    /* the floating "all categories" pill would cover the sticky bar */
    .bbx--has-sticky ~ .mobile-fixed-footer,
    body:has(.bbx--has-sticky) .mobile-fixed-footer {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .bbx {
        gap: 18px;
        padding-top: 14px;
    }
    .bbx-auth {
        grid-template-columns: minmax(0, 1fr);
    }
    .bbx-auth__side {
        order: 2;
        padding: 26px 22px;
    }
    .bbx-auth__side h2 {
        font-size: 19px;
    }
    .bbx-auth__form {
        padding: 26px 20px 24px;
    }
    .bbx-auth__head h1 {
        font-size: 22px;
    }
    .bbx-steps li {
        font-size: 12px;
        gap: 6px;
    }
    .bbx-steps li + li::before {
        width: 16px;
    }
    .bbx-steps b {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    .bbx-pad {
        padding: 18px 16px;
    }
    .bbx-head-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    .bbx-head-row .bbx-card__title {
        flex-wrap: wrap;
        font-size: 17px;
    }
    .bbx-item {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }
    .bbx-item__img {
        width: 68px;
        height: 68px;
    }
    .bbx-item__title {
        font-size: 14px;
    }
    .bbx-item__total {
        grid-column: 2;
        text-align: left;
        font-size: 16px;
    }
}
