/* ヘッダーカート件数 */
.tbt-shop-header-quick__link--cart {
    position: relative;
}
.tbt-shop-header-quick__count {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #7f2629;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.tbt-shop-header-quick__count[hidden] {
    display: none !important;
}

/* サイドカート */
.tcf-side-cart {
    position: fixed;
    inset: 0;
    z-index: 100000;
    pointer-events: none;
    visibility: hidden;
}
.tcf-side-cart.is-open {
    pointer-events: auto;
    visibility: visible;
}
.tcf-side-cart__overlay {
    position: absolute;
    inset: 0;
    background: rgba(42, 22, 16, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.tcf-side-cart.is-open .tcf-side-cart__overlay {
    opacity: 1;
}
.tcf-side-cart__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(100%, 380px);
    height: 100%;
    max-height: 100vh;
    background: #f8f4ed;
    border-left: 1px solid #e8e0d5;
    box-shadow: -8px 0 32px rgba(42, 22, 16, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    outline: none;
}
.tcf-side-cart.is-open .tcf-side-cart__panel {
    transform: translateX(0);
}
.tcf-side-cart__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #e8e0d5;
}
.tcf-side-cart__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #7f2629;
}
.tcf-side-cart__close {
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #6a5e54;
    cursor: pointer;
    padding: 0 4px;
}
.tcf-side-cart__body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
}
.tcf-side-cart__empty {
    margin: 24px 0;
    text-align: center;
    color: #6a5e54;
    font-size: 14px;
}
.tcf-side-cart__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tcf-side-cart__item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #ebe3d8;
}
.tcf-side-cart__thumb img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
}
.tcf-side-cart__meta {
    flex: 1;
    min-width: 0;
}
.tcf-side-cart__name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
}
.tcf-side-cart__name a {
    color: #2d2a26;
    text-decoration: none;
}
.tcf-side-cart__line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #6a5e54;
}
.tcf-side-cart__foot {
    padding: 14px 16px 18px;
    border-top: 1px solid #e8e0d5;
    background: #fffefb;
}
.tcf-side-cart__subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}
.tcf-side-cart__subtotal strong {
    font-size: 17px;
    color: #7f2629;
}
.tcf-side-cart__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tcf-side-cart__btn {
    display: block;
    text-align: center;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
.tcf-side-cart__btn--ghost {
    border: 1px solid #c9b8a8;
    color: #4a4038;
    background: #fff;
}
.tcf-side-cart__btn--primary {
    background: #7f2629;
    color: #fff;
    border: 1px solid #7f2629;
}
body.tcf-side-cart-open {
    overflow: hidden;
}
