/* Khối "Combo ưu đãi của shop" trên trang gian hàng (EC-8049 #342b0ff1).
   Một file cho cả 3 bộ view: .stc--d desktop, .stc--t tablet, .stc--m mobile. Tiền tố stc- tránh đụng class cũ. */
.stc[hidden] {
    display: none;
}
.stc {
    background: #fff;
    border-radius: 8px;
    margin: 0 0 16px;
    padding: 18px 18px 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    color: var(--dark);
    font-family: Arial, sans-serif;
}
.stc-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.stc .stc-ttl {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 19px;
    line-height: 26px;
    font-weight: 700;
    text-transform: none;
    color: var(--dark, #222);
}
.stc-ic {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--price);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-right: 2px;
    font-size: 17px;
}
.stc-n {
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    color: var(--price);
    background: rgba(235, 16, 0, .07);
    border-radius: 10px;
    padding: 2px 9px;
}
.stc-blk {
    border: 1px solid rgba(235, 16, 0, .14);
    border-radius: 10px;
    margin: 0 0 14px;
    overflow: hidden;
}
.stc-hd {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(90deg, rgba(235, 16, 0, .06), #fff 70%);
    border-bottom: 1px solid rgba(235, 16, 0, .1);
}
.stc-nm {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40%;
}
.stc-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.stc-tag {
    background: var(--price);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid var(--price);
    border-radius: 4px;
    padding: 2px 8px;
    white-space: nowrap;
}
.stc-tag + .stc-tag {
    background: #fff;
    color: var(--price);
}
.stc-ct {
    font-size: 13px;
    color: var(--silver);
    white-space: nowrap;
}
.stc-ct b {
    color: var(--dark);
}
.stc-go {
    margin-left: auto;
    color: var(--price);
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
}
.stc-go:hover,
.stc-go:focus {
    color: var(--price);
    text-decoration: underline;
}
.stc-wrap {
    position: relative;
}
.stc-row {
    display: flex;
    gap: 12px;
    padding: 12px 14px 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.stc-row::-webkit-scrollbar {
    display: none;
}
.stc-it,
.stc-more {
    flex: 0 0 calc((100% - 60px) / 5.4);
    scroll-snap-align: start;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
}
.stc-it {
    display: block;
    border: 1px solid #eee;
    background: #fff;
    color: var(--dark);
}
.stc-it:hover,
.stc-it:focus {
    text-decoration: none;
    color: var(--dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}
.stc-im {
    display: block;
    position: relative;
    padding-top: 100%;
    background: var(--light);
}
.stc-im img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.stc-bd {
    display: block;
    padding: 8px 9px 10px;
}
.stc-t {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    line-height: 18px;
    height: 36px;
    color: var(--dark);
}
.stc-p {
    display: block;
    margin-top: 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stc-p s {
    margin-left: 5px;
    font-size: 13px;
    font-weight: 400;
    color: var(--silver);
}
.stc-cb {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    color: var(--price);
}
.stc-cb b {
    font-weight: 700;
}
.stc-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--price);
    background: rgba(235, 16, 0, .04);
    color: var(--price);
    text-align: center;
    font-size: 13px;
    line-height: 19px;
}
.stc-more:hover,
.stc-more:focus {
    color: var(--price);
    text-decoration: none;
}
.stc-more b {
    font-size: 24px;
    line-height: 30px;
}
.stc-more strong {
    margin-top: 6px;
}
.stc-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    color: var(--dark);
    cursor: pointer;
    z-index: 2;
}
.stc-nav-l {
    left: 6px;
}
.stc-nav-r {
    right: 6px;
}
.stc-nav.stc-off {
    opacity: 0;
    pointer-events: none;
}
.stc-bar {
    height: 3px;
    background: var(--light);
    margin: 0 14px 12px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}
.stc-bar i {
    position: absolute;
    left: 0;
    top: 0;
    height: 3px;
    width: 0;
    border-radius: 2px;
    background: var(--price);
}

/* Tab "Combo" */
.stc-badge {
    margin-left: 6px;
    background: var(--price);
    color: #fff;
    border-radius: 9px;
    font-size: 13px;
    line-height: 18px;
    padding: 0 6px;
}

/* Tablet: như desktop, vuốt thay mũi tên, ~3,4 thẻ */
.stc--t .stc-it,
.stc--t .stc-more {
    flex: 0 0 calc((100% - 36px) / 3.4);
}
.stc--t .stc-nav {
    display: none;
}

/* Mobile: ~2,5 thẻ, vuốt ngang */
.stc--m {
    border-radius: 0;
    margin: 0 0 8px;
    padding: 14px 0 4px;
    box-shadow: none;
}
.stc--m .stc-top {
    padding: 0 12px;
}
.stc--m .stc-ttl {
    gap: 8px;
    font-size: 17px;
    line-height: 24px;
}
.stc--m .stc-blk {
    margin: 0 12px 12px;
}
.stc--m .stc-hd {
    flex-wrap: wrap;
    gap: 6px 8px;
    padding: 10px 12px;
}
.stc--m .stc-nm {
    width: 100%;
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}
.stc--m .stc-nm > span {
    overflow: hidden;
    text-overflow: ellipsis;
}
.stc--m .stc-ct {
    flex: 0 0 auto;
    font-weight: 400;
    text-decoration: none;
}
.stc--m .stc-row {
    gap: 8px;
    padding: 10px 12px 12px;
    scroll-padding: 0 12px;
}
.stc--m .stc-it,
.stc--m .stc-more {
    flex: 0 0 40%;
}
.stc--m .stc-t {
    line-height: 17px;
    height: 34px;
}
.stc--m .stc-p {
    font-size: 14px;
}
.stc--m .stc-p s {
    display: block;
    margin: 0;
}
.stc--m .stc-bar {
    margin: 0 12px 10px;
}

/* Đăng 16/11 15:06: tab mặc định chỉ hiện combo đầu + nút "Xem thêm"; tab Combo hiện đủ, ẩn phần còn lại của trang. */
.stc.stc-collapsed .stc-blk ~ .stc-blk {
    display: none;
}
.stc-all {
    display: block;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    min-width: 220px;
    margin: 0 auto 14px;
    padding: 9px 28px;
    border: 1px solid var(--price);
    border-radius: 6px;
    background: #fff;
    color: var(--price);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.stc-all:hover,
.stc-all:focus {
    background: #fff5f5;
}
.stc:not(.stc-collapsed) .stc-all {
    display: none;
}
.stc-hide {
    display: none !important;
}
/* Đăng 16/11 16:46: nút ở giữa, desktop gọn không tràn hai bên. */
.stc--m .stc-all,
.stc--t .stc-all {
    min-width: 0;
    margin: 0 auto 14px;
    padding: 9px 22px;
}
