/* TikShop Landing - giao diện theo mẫu Sora/Inter, nhiều màn hình (sản phẩm / xác nhận / thành công) */

:root {
	--tsl-bg: #F0EEE9;
	--tsl-surface: #FFFFFF;
	--tsl-ink: #1B1E2A;
	--tsl-muted: #6B7280;
	--tsl-accent: #FFB020;
	--tsl-accent-deep: #E8930A;
	--tsl-teal: #0F9E8E;
	--tsl-danger: #FF4757;
	--tsl-border: #E7E5E0;
}

.tsl-landing-body {
	margin: 0;
	background: var(--tsl-bg);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--tsl-ink);
}

.tsl-app {
	max-width: 430px;
	margin: 0 auto;
	background: var(--tsl-surface);
	position: relative;
	min-height: 100vh;
	box-shadow: 0 0 40px rgba(0,0,0,0.08);
	overflow-x: hidden;
}
.tsl-app * { box-sizing: border-box; }

.tsl-screen { display: none; flex-direction: column; min-height: 100vh; padding-bottom: 96px; }
.tsl-screen.tsl-screen-active { display: flex; }

/* Top bar */
.tsl-topbar {
	position: sticky; top: 0; z-index: 5;
	display: flex; align-items: center; justify-content: space-between;
	padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px 12px;
	background: rgba(255,255,255,0.92);
	backdrop-filter: blur(6px);
}
.tsl-iconbtn {
	width: 34px; height: 34px;
	border-radius: 50%;
	background: var(--tsl-surface);
	border: 1px solid var(--tsl-border);
	display: flex; align-items: center; justify-content: center;
	font-size: 16px;
	text-decoration: none;
	color: var(--tsl-ink);
}
.tsl-topbar-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; }

/* Gallery */
.tsl-gallery { position: relative; background: #000; }
.tsl-gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.tsl-gallery-slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; background: #f4f4f5; }
.tsl-gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.tsl-no-image { color: #999; }

.tsl-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 5; }
.tsl-gallery-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 5; }
.tsl-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.35); cursor: pointer; }
.tsl-dot-on { background: var(--tsl-accent); width: 16px; border-radius: 4px; transition: 0.25s; }

.tsl-gallery-arrow {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 30px; height: 30px; border: none; border-radius: 50%;
	background: rgba(0,0,0,0.4); color: #fff; font-size: 12px;
	display: flex; align-items: center; justify-content: center;
	z-index: 5; cursor: pointer;
}
.tsl-arrow-prev { left: 10px; }
.tsl-arrow-next { right: 10px; }

.tsl-flash {
	position: absolute; top: 14px; left: 14px;
	background: var(--tsl-danger); color: #fff;
	font-weight: 700; font-size: 11.5px;
	padding: 5px 10px; border-radius: 20px;
	display: flex; align-items: center; gap: 6px;
	z-index: 5;
}
.tsl-timer { display: flex; gap: 4px; font-family: 'Sora', sans-serif; }

/* Content sections */
.tsl-section { padding: 16px 16px 6px; }
.tsl-price-row { display: flex; align-items: baseline; gap: 10px; }
.tsl-price { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 26px; color: var(--tsl-danger); }
.tsl-price-old { color: var(--tsl-muted); text-decoration: line-through; font-size: 14px; }
.tsl-badge-off { background: #FFECEE; color: var(--tsl-danger); font-weight: 700; font-size: 11.5px; padding: 3px 7px; border-radius: 6px; }
.tsl-title { font-family: 'Sora', sans-serif; font-size: 16.5px; font-weight: 600; line-height: 1.4; margin-top: 8px; }
.tsl-meta-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12.5px; color: var(--tsl-muted); flex-wrap: wrap; }
.tsl-stars { color: var(--tsl-accent); letter-spacing: 1px; }
.tsl-divider { height: 8px; background: var(--tsl-bg); }

/* Trust badges */
.tsl-trust { display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto; }
.tsl-trust-item { flex: 1; min-width: 96px; background: #F4FBF9; border: 1px solid #D9F0EC; border-radius: 10px; padding: 10px 8px; text-align: center; }
.tsl-trust-item .tsl-ic { font-size: 18px; }
.tsl-trust-item .tsl-lb { font-size: 11px; color: var(--tsl-teal); font-weight: 600; margin-top: 4px; line-height: 1.3; }

.tsl-block-title { font-weight: 600; font-size: 13.5px; color: var(--tsl-muted); margin-bottom: 10px; }

/* Chips (màu sắc / phân loại) */
.tsl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tsl-chip { padding: 9px 14px; border-radius: 9px; border: 1.5px solid var(--tsl-border); font-size: 13.5px; font-weight: 500; background: var(--tsl-surface); font-family: 'Inter', sans-serif; cursor: pointer; color: var(--tsl-ink); }
.tsl-chip-sel { border-color: var(--tsl-accent); background: #FFF6E6; color: var(--tsl-accent-deep); font-weight: 700; }

/* Số lượng */
.tsl-qty-row { display: flex; align-items: center; justify-content: flex-end; }
.tsl-stepper { display: flex; align-items: center; border: 1.5px solid var(--tsl-border); border-radius: 9px; overflow: hidden; }
.tsl-stepper button { width: 32px; height: 32px; font-size: 16px; color: var(--tsl-ink); background: none; border: none; cursor: pointer; }
.tsl-stepper span { width: 32px; text-align: center; font-weight: 600; font-size: 14px; }

/* Hotline / ship row */
.tsl-ship { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-size: 13px; }
.tsl-ship-lb { color: var(--tsl-muted); }
.tsl-ship-link { color: var(--tsl-teal); font-weight: 600; text-decoration: none; }

/* Video */
.tsl-video-embed { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #000; }
.tsl-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tsl-detail-video { width: 100%; border-radius: 10px; background: #000; display: block; }

/* Mô tả / thông số */
.tsl-specs { font-size: 13.5px; line-height: 1.8; color: var(--tsl-ink); }
.tsl-specs img { max-width: 100%; height: auto; border-radius: 8px; }
.tsl-specs b { font-weight: 600; color: var(--tsl-muted); }

/* Đánh giá khách hàng */
.tsl-review { border-top: 1px solid var(--tsl-border); padding: 12px 0; }
.tsl-review-who { font-weight: 600; font-size: 13px; }
.tsl-review-cmt { font-size: 13px; color: var(--tsl-muted); margin-top: 4px; line-height: 1.5; }

/* Bottom bar */
.tsl-bottombar {
	position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
	width: 100%; max-width: 430px;
	background: var(--tsl-surface);
	border-top: 1px solid var(--tsl-border);
	padding: 10px 14px calc(env(safe-area-inset-bottom, 0px) + 10px);
	display: flex; gap: 10px; align-items: center;
	z-index: 6;
}
.tsl-bottombar .tsl-iconbtn { flex: 0 0 auto; }
.tsl-btn { flex: 1; padding: 12px 0; border-radius: 10px; font-weight: 700; font-size: 14px; text-align: center; border: none; cursor: pointer; font-family: 'Inter', sans-serif; }
.tsl-btn-fill { background: var(--tsl-accent); color: var(--tsl-ink); }
.tsl-btn-fill:active { filter: brightness(0.95); }
.tsl-btn-fill[disabled] { opacity: 0.6; }

.tsl-bar-total { flex: 0 0 auto; }
.tsl-bar-total-lb { font-size: 11px; color: var(--tsl-muted); }
.tsl-bar-total-amt { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 16px; color: var(--tsl-danger); }

/* Form xác nhận đơn */
.tsl-field { margin-bottom: 12px; }
.tsl-field label { display: block; font-size: 12.5px; color: var(--tsl-muted); margin-bottom: 5px; font-weight: 500; }
.tsl-field input {
	width: 100%; padding: 11px 12px;
	border: 1.5px solid var(--tsl-border); border-radius: 9px;
	font-size: 14px; font-family: 'Inter', sans-serif; color: var(--tsl-ink);
	background: var(--tsl-surface);
}
.tsl-field input:focus { outline: 2px solid var(--tsl-accent); outline-offset: 1px; border-color: var(--tsl-accent); }
.tsl-row2 { display: flex; gap: 10px; }
.tsl-row2 .tsl-field { flex: 1; }

.tsl-sum-line { display: flex; justify-content: space-between; font-size: 13.5px; padding: 5px 0; color: var(--tsl-muted); }
.tsl-sum-line b { color: var(--tsl-ink); font-weight: 600; }
.tsl-sum-total { display: flex; justify-content: space-between; font-size: 15.5px; font-weight: 700; padding-top: 8px; border-top: 1px solid var(--tsl-border); margin-top: 6px; }
.tsl-sum-val { color: var(--tsl-danger); font-family: 'Sora', sans-serif; }

.tsl-pay-opt { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1.5px solid var(--tsl-accent); background: #FFF6E6; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--tsl-accent-deep); }

.tsl-item-line { display: flex; gap: 10px; align-items: center; padding: 10px 0; }
.tsl-item-line .tsl-thumb { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: #f4f4f5; flex: 0 0 auto; }
.tsl-item-line .tsl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tsl-item-nm { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.tsl-item-vr { font-size: 12px; color: var(--tsl-muted); margin-top: 2px; }
.tsl-item-pr { font-size: 13.5px; font-weight: 700; white-space: nowrap; }

.tsl-form-msg { margin: 10px 16px; font-size: 13px; text-align: center; }
.tsl-form-msg.tsl-success { color: #17a34a; }
.tsl-form-msg.tsl-error { color: #e11d48; }

/* Màn thành công */
.tsl-success { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; }
.tsl-check { width: 64px; height: 64px; border-radius: 50%; background: #E7F8F0; color: var(--tsl-teal); display: flex; align-items: center; justify-content: center; font-size: 32px; margin-bottom: 16px; }
.tsl-success h2 { font-family: 'Sora', sans-serif; font-size: 19px; margin-bottom: 8px; }
.tsl-success p { color: var(--tsl-muted); font-size: 13.5px; line-height: 1.6; margin: 0 0 4px; }
.tsl-code { font-weight: 700; color: var(--tsl-ink); }
.tsl-success .tsl-btn-fill { margin-top: 20px; padding: 12px 28px; border-radius: 10px; flex: none; }
