/* BookShopee Core - giao diện các khối do plugin tạo ra (dùng màu của theme nếu có) */

/* Trang chi tiết sản phẩm */
.bsc-byline { display: flex; flex-wrap: wrap; gap: 4px 18px; color: #757575; font-size: 13px; margin: 0 0 8px; }
.bsc-byline a { color: var(--bs-primary, #ee4d2d); }
.bsc-stats { display: flex; align-items: center; flex-wrap: wrap; margin: 0 0 14px; font-size: 14px; color: #555; }
.bsc-stats__item { display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; border-left: 1px solid #e0e0e0; color: inherit; text-decoration: none; }
.bsc-stats__item:first-child { padding-left: 0; border-left: 0; }
.bsc-stats__item b { font-size: 16px; color: #222; font-weight: 600; }
.bsc-stats__rating b { color: var(--bs-primary, #ee4d2d); border-bottom: 1px solid currentColor; }
.bsc-star { background: linear-gradient(90deg, #ffb400 var(--p, 0%), #d5d5d5 var(--p, 0%)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; letter-spacing: 2px; font-size: 16px; line-height: 1; }
.bsc-policies { list-style: none; margin: 14px 0 0; padding: 12px 14px; background: #fffaf8; border: 1px dashed #ffcfc2; border-radius: 3px; font-size: 13px; color: #444; }
.bsc-policies li { padding: 2px 0 2px 20px; position: relative; }
.bsc-policies li::before { content: "\2713"; position: absolute; left: 0; color: var(--bs-primary, #ee4d2d); font-weight: 700; }
.bsc-info { width: 100%; border-collapse: collapse; }
.bsc-info th, .bsc-info td { padding: 9px 12px; text-align: left; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.bsc-info th { width: 180px; color: #757575; font-weight: 400; background: #fafafa; }
.bsc-info a { color: var(--bs-primary, #ee4d2d); }
.bsc-buy-now { background: var(--bs-primary, #ee4d2d); color: #fff; border: 0; height: 42px; padding: 0 30px; border-radius: 2px; cursor: pointer; font-size: 14px; font-weight: 500; }
.bsc-buy-now:hover { background: var(--bs-primary-dark, #d73211); }

/* Flash Sale */
.bsc-flash { background: #fff; margin-top: 15px; border-radius: 2px; }
.bsc-flash__head { display: flex; align-items: center; gap: 20px; padding: 12px 20px; border-bottom: 1px solid #f0f0f0; }
.bsc-flash__title { color: var(--bs-primary, #ee4d2d); font-size: 20px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .5px; }
.bsc-countdown { display: flex; align-items: center; gap: 4px; }
.bsc-countdown b { background: #222; color: #fff; border-radius: 2px; min-width: 28px; text-align: center; padding: 3px 4px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bsc-countdown i { font-style: normal; font-weight: 700; }
.bsc-flash__more { margin-left: auto; color: var(--bs-primary, #ee4d2d); text-decoration: none; }
.bsc-flash__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 8px 5px 14px; }
.bsc-fs-item { display: block; padding: 8px 10px; color: inherit; text-align: center; text-decoration: none; }
.bsc-fs-item:hover { box-shadow: 0 0 12px rgba(0, 0, 0, .1); }
.bsc-fs-thumb { position: relative; aspect-ratio: 3 / 4; background: #f3f3f3; overflow: hidden; }
.bsc-fs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.bsc-fs-badge { position: absolute; top: 0; right: 0; background: rgba(255, 212, 36, .95); color: var(--bs-primary, #ee4d2d); font-size: 12px; font-weight: 700; padding: 2px 5px 3px; }
.bsc-fs-price { color: var(--bs-primary, #ee4d2d); font-size: 18px; font-weight: 500; margin: 8px 0 6px; }
.bsc-fs-price del, .bsc-fs-price .screen-reader-text { display: none; }
.bsc-fs-price ins { background: none; text-decoration: none; }
.bsc-fs-bar { position: relative; height: 16px; background: #ffbda6; border-radius: 8px; overflow: hidden; }
.bsc-fs-bar span { position: absolute; top: 0; bottom: 0; left: 0; background: linear-gradient(90deg, #ee4d2d, #ff7337); border-radius: 8px; }
.bsc-fs-bar em { position: relative; z-index: 1; font-style: normal; font-size: 11px; font-weight: 500; color: #fff; line-height: 16px; text-transform: uppercase; }

/* Voucher */
.bsc-vouchers { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.bsc-voucher { display: flex; border: 1px solid #ffd2c6; border-radius: 4px; background: #fffaf8; overflow: hidden; }
.bsc-voucher__l { background: linear-gradient(135deg, #ee4d2d, #ff7337); color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px; min-width: 96px; font-size: 14px; font-weight: 700; line-height: 1.3; }
.bsc-voucher__r { padding: 10px 12px; flex: 1; min-width: 0; }
.bsc-voucher__r p { margin: 0; font-size: 13px; font-weight: 500; }
.bsc-voucher__r small { color: #757575; font-size: 12px; }
.bsc-voucher__code { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.bsc-voucher__code code { background: #fff; border: 1px dashed var(--bs-primary, #ee4d2d); color: var(--bs-primary, #ee4d2d); padding: 1px 6px; font-size: 12px; font-weight: 600; }
.bsc-voucher__code button { background: var(--bs-primary, #ee4d2d); color: #fff; border: 0; border-radius: 2px; font-size: 12px; padding: 4px 10px; cursor: pointer; white-space: nowrap; }

/* Nút liên hệ nổi */
.bsc-float { position: fixed; right: 16px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 90; }
.bsc-float a { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; font-size: 22px; font-weight: 700; text-decoration: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.bsc-float__phone { background: #ee4d2d; }
.bsc-float__zalo { background: #0068ff; font-size: 12px !important; }

@media (max-width: 900px) {
	.bsc-flash__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 30%; overflow-x: auto; }
	.bsc-stats__item { padding: 0 10px; }
}
@media (max-width: 540px) {
	.bsc-flash__list { grid-auto-columns: 44%; }
	.bsc-flash__head { gap: 10px; padding: 10px 12px; }
	.bsc-flash__title { font-size: 16px; }
}
