/* ============================================================
   host-shopping.css · 主播端直播购物入口与商品管理抽屉
   ============================================================ */

/* 秀场直播保持原布局；购物模式才让白色线框购物车进入右侧操作组。 */
.live-secondary-actions {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.host-shopping-action {
    display: none;
}

html[data-live-mode="shopping"] .host-shopping-action {
    display: flex;
}

.host-shopping-action .live-action-icon::after {
    display: none;
}

.host-shopping-action .live-action-icon svg {
    width: 29px;
    height: 27px;
    overflow: visible;
    stroke: rgba(255, 255, 255, 0.94);
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.55));
}

.host-shopping-action.open .live-action-icon svg {
    opacity: 0.68;
    transform: scale(0.88);
}

.drawer.host-shopping-sheet {
    height: 596px;
    padding: 10px 14px 22px;
    user-select: none;
}

.host-shopping-page {
    position: relative;
    z-index: 1;
    height: calc(100% - 20px);
}

.host-shopping-page.is-active {
    display: flex;
    flex-direction: column;
}

.host-shopping-page[hidden] {
    display: none;
}

.host-shopping-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0 2px 14px;
}

.host-shopping-heading h2,
.host-shopping-form-heading h2 {
    margin: 0;
    color: rgba(255, 255, 255, 0.96);
    font-size: 17px;
    font-weight: 650;
    line-height: 23px;
}

.host-shopping-heading p {
    margin: 3px 0 0;
    color: rgba(255, 255, 255, 0.43);
    font-size: 11px;
    line-height: 16px;
}

.host-shopping-list {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    touch-action: pan-y;
}

.host-shopping-list::-webkit-scrollbar {
    display: none;
}

.host-shopping-item {
    min-height: 84px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.052);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.host-shopping-item.is-offline {
    opacity: 0.58;
}

.host-shopping-item-media {
    position: relative;
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    overflow: hidden;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.08);
}

.host-shopping-item-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.host-shopping-item-media span {
    position: absolute;
    top: 4px;
    left: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    color: #fff;
    background: rgba(8, 8, 12, 0.72);
    font-size: 9px;
    line-height: 18px;
    text-align: center;
}

.host-shopping-item-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.host-shopping-item-copy strong {
    display: block;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.host-shopping-item-meta {
    margin-top: 2px;
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.host-shopping-item-meta b {
    color: #ff668c;
    font-size: 15px;
    font-weight: 700;
}

.host-shopping-item-meta span {
    color: rgba(255, 255, 255, 0.38);
    font-size: 9px;
}

.host-shopping-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 9px;
    flex: 0 0 auto;
}

.host-shopping-switch {
    position: relative;
    width: 36px;
    height: 21px;
    padding: 0;
    border: 0;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
    transition: background 180ms ease;
}

.host-shopping-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 180ms ease;
}

.host-shopping-switch[aria-checked="true"] {
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
}

.host-shopping-switch[aria-checked="true"]::after {
    transform: translateX(15px);
}

.host-shopping-remove {
    padding: 0;
    border: 0;
    color: rgba(255, 255, 255, 0.38);
    background: transparent;
    font: inherit;
    font-size: 9px;
    cursor: pointer;
}

.host-shopping-add-button,
.host-shopping-save-button {
    width: 100%;
    margin-top: 12px;
}

.host-shopping-add-button span:first-child {
    margin-right: 4px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    vertical-align: -1px;
}

.host-shopping-form-heading {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    align-items: center;
    margin: 0 0 16px;
    text-align: center;
}

.host-shopping-form-heading button {
    width: 32px;
    height: 32px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.07);
    cursor: pointer;
}

.host-shopping-form-heading svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.host-shopping-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.host-shopping-form label > span,
.host-shopping-form legend {
    display: block;
    margin: 0 0 6px 2px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    line-height: 15px;
}

.host-shopping-form input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 11px;
    outline: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.065);
    font: inherit;
    font-size: 12px;
    box-sizing: border-box;
}

.host-shopping-form input:focus {
    border-color: color-mix(in srgb, var(--brand-3) 60%, rgba(255, 255, 255, 0.15));
    background: rgba(255, 255, 255, 0.09);
}

.host-shopping-form input::placeholder {
    color: rgba(255, 255, 255, 0.27);
}

.host-shopping-form-row {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 10px;
}

.host-shopping-price-input {
    position: relative;
}

.host-shopping-price-input b {
    position: absolute;
    z-index: 1;
    left: 12px;
    top: 0;
    color: #ff7395;
    font-size: 12px;
    line-height: 42px;
}

.host-shopping-price-input input {
    padding-left: 28px;
}

.host-shopping-form fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.host-shopping-image-options {
    display: flex;
    gap: 10px;
}

.host-shopping-image-options button {
    position: relative;
    width: 64px;
    height: 64px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.host-shopping-image-options button.is-selected {
    border-color: var(--brand-3);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-3) 20%, transparent);
}

.host-shopping-image-options img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
