/* BHS Shopify Cart Bridge */

/* ------- Icons ------- */

.bhs-scb-cart-icon {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.bhs-scb-cart-icon:hover {
    background: #f5f5f5;
    transform: scale(1.04);
}

.bhs-scb-cart-icon svg {
    width: 20px;
    height: 20px;
    color: #111111;
}

.bhs-scb-cart-icon__badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #111111;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    box-sizing: border-box;
    display: none;
}

.bhs-scb-cart-icon__badge.is-visible {
    display: block;
}

.bhs-scb-account-icon {
    position: fixed;
    top: 20px;
    right: 76px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.bhs-scb-account-icon:hover {
    background: #f5f5f5;
    transform: scale(1.04);
}

.bhs-scb-account-icon svg {
    width: 20px;
    height: 20px;
    color: #111111;
}

/* ------- Drawer ------- */

.bhs-scb-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.bhs-scb-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.bhs-scb-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 480px;
    max-width: 100vw;
    background: #ffffff;
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    color: #111111;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
}

.bhs-scb-drawer.is-open {
    transform: translateX(0);
}

.bhs-scb-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.bhs-scb-drawer__title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bhs-scb-drawer__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.bhs-scb-drawer__count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background: #f0f0f0;
    color: #111111;
    font-size: 12px;
    font-weight: 500;
    border-radius: 11px;
    box-sizing: border-box;
}

.bhs-scb-drawer__close {
    width: 36px;
    height: 36px;
    border: 1px solid #e5e5e5;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #111111;
    transition: background-color 0.15s ease;
}

.bhs-scb-drawer__close:hover {
    background: #f5f5f5;
}

.bhs-scb-drawer__close svg {
    width: 14px;
    height: 14px;
}

.bhs-scb-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
}

.bhs-scb-drawer__empty {
    text-align: center;
    color: #6b6b6b;
    font-size: 14px;
    padding: 40px 0;
}

.bhs-scb-drawer__footer {
    border-top: 1px solid #f0f0f0;
    padding: 20px 28px 24px;
}

.bhs-scb-drawer__discount-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    font-size: 14px;
    color: #111111;
}

.bhs-scb-drawer__discount-row svg {
    width: 14px;
    height: 14px;
}

.bhs-scb-drawer__total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 6px;
    font-size: 16px;
    font-weight: 600;
}

.bhs-scb-drawer__shipping-note {
    font-size: 12px;
    color: #6b6b6b;
    padding-bottom: 16px;
}

.bhs-scb-drawer__checkout {
    display: block;
    width: 100%;
    padding: 16px;
    background: #111111;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.bhs-scb-drawer__checkout:hover {
    background: #2a2a2a;
}

.bhs-scb-drawer__checkout[disabled] {
    background: #999999;
    cursor: not-allowed;
}

body.bhs-scb-noscroll {
    overflow: hidden;
}

/* ------- Line items ------- */

.bhs-scb-line-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bhs-scb-line-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 16px;
    align-items: start;
    transition: opacity 0.15s ease;
}

.bhs-scb-line-item.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

.bhs-scb-line-item__image {
    width: 64px;
    height: 64px;
    border-radius: 4px;
    background: #f5f5f5;
    overflow: hidden;
    flex-shrink: 0;
}

.bhs-scb-line-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bhs-scb-line-item__image--placeholder {
    width: 64px;
    height: 64px;
    background: #f5f5f5;
    border-radius: 4px;
}

.bhs-scb-line-item__details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.bhs-scb-line-item__title {
    font-size: 14px;
    font-weight: 600;
    color: #111111;
    line-height: 1.3;
    margin: 0;
    word-break: break-word;
}

.bhs-scb-line-item__variant {
    font-size: 12px;
    color: #6b6b6b;
    line-height: 1.3;
}

.bhs-scb-line-item__price {
    font-size: 13px;
    color: #111111;
    line-height: 1.3;
}

.bhs-scb-line-item__controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.bhs-scb-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
}

.bhs-scb-qty__btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111111;
    padding: 0;
    font-family: inherit;
}

.bhs-scb-qty__btn:hover:not([disabled]) {
    background: #f5f5f5;
}

.bhs-scb-qty__btn[disabled] {
    color: #999999;
    cursor: not-allowed;
}

.bhs-scb-qty__btn svg {
    width: 12px;
    height: 12px;
}

.bhs-scb-qty__value {
    min-width: 28px;
    text-align: center;
    font-size: 13px;
    color: #111111;
    line-height: 28px;
}

.bhs-scb-line-item__remove {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b6b6b;
    padding: 0;
    border-radius: 4px;
}

.bhs-scb-line-item__remove:hover {
    background: #f5f5f5;
    color: #111111;
}

.bhs-scb-line-item__remove svg {
    width: 14px;
    height: 14px;
}

.bhs-scb-line-item__line-total {
    font-size: 14px;
    font-weight: 600;
    color: #111111;
    text-align: right;
    white-space: nowrap;
}

/* ------- Product card embed ------- */

.bhs-scb-product-card {
    display: flex;
    flex-direction: column;
    max-width: 360px;
    margin: 24px 0;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    color: #111111;
}

.bhs-scb-product-card__image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.bhs-scb-product-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bhs-scb-product-card__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bhs-scb-product-card__title {
    font-size: 15px;
    font-weight: 600;
    color: #111111;
    line-height: 1.3;
    margin: 0;
    text-decoration: none;
}

.bhs-scb-product-card__title:hover {
    text-decoration: underline;
}

.bhs-scb-product-card__price {
    font-size: 14px;
    color: #111111;
    line-height: 1.3;
}

.bhs-scb-product-card__price--compare {
    color: #6b6b6b;
    text-decoration: line-through;
    margin-right: 8px;
}

.bhs-scb-product-card__sale-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    background: #111111;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    vertical-align: middle;
}

.bhs-scb-product-card__add {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 12px;
    background: #111111;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s ease;
    font-family: inherit;
}

.bhs-scb-product-card__add:hover:not([disabled]) {
    background: #2a2a2a;
}

.bhs-scb-product-card__add[disabled],
.bhs-scb-product-card__add.is-loading {
    background: #999999;
    cursor: not-allowed;
}

.bhs-scb-product-card__sold-out {
    display: block;
    text-align: center;
    padding: 12px;
    color: #6b6b6b;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
}

.bhs-scb-product-card__error {
    padding: 12px 16px;
    color: #b00020;
    font-size: 13px;
    background: #fff0f0;
    border: 1px solid #ffd0d0;
    border-radius: 6px;
    margin: 8px 0;
}

.bhs-scb-product-card.is-loading {
    opacity: 0.6;
}
