/* TokoThic 3.0 — storefront ringan, mobile-first, ala marketplace lokal.
   1 file, no framework. Warna aksen bisa diubah dari Pengaturan. */

.tokothic {
	--tt-accent: #0E7C66;
	--tt-ink: #1C2024;
	--tt-muted: #6B7280;
	--tt-line: #E7E9EC;
	--tt-bg: #F7F8F9;
	--tt-card: #FFFFFF;
	--tt-danger: #DC2626;
	--tt-radius: 14px;
	color: var(--tt-ink);
	font-size: 15px;
	line-height: 1.55;
	max-width: 1080px;
	margin: 0 auto;
	padding: 8px 4px 90px;
}
.tokothic *, .tokothic *::before, .tokothic *::after { box-sizing: border-box; }
.tokothic img { max-width: 100%; display: block; }
.tokothic a { text-decoration: none; color: inherit; }

/* Normalisasi anti-tema.
   Banyak tema WordPress memaksa warna & font pada semua button/input
   (mis. `button { color:#fff }`). Tanpa ini, teks bisa jadi putih di atas
   latar putih alias tak terlihat. :where() dipakai supaya specificity-nya
   rendah dan tetap bisa ditimpa aturan komponen di bawahnya. */
.tokothic :where(button, input, select, textarea) {
	font-family: inherit;
	color: var(--tt-ink);
	background-color: transparent;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
	box-shadow: none;
	min-height: auto;
	margin: 0;
}

.tt-h2 { font-size: 22px; font-weight: 800; margin: 8px 0 14px; }
.tt-muted { color: var(--tt-muted); font-size: 13px; }
.tt-center { text-align: center; }
.tt-hr { border: 0; border-top: 1px solid var(--tt-line); margin: 14px 0; }
.tt-link, .tt-link-center { color: var(--tt-accent); font-weight: 600; }
.tt-link-center { display: block; text-align: center; margin-top: 14px; }

/* ---------- Buttons ---------- */
.tt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	background: var(--tt-accent); color: #fff !important;
	border: 2px solid var(--tt-accent); border-radius: 12px;
	padding: 12px 22px; font-size: 15px; font-weight: 700; cursor: pointer;
	transition: transform .12s ease, opacity .12s ease;
	-webkit-tap-highlight-color: transparent;
}
.tt-btn:hover { opacity: .92; }
.tt-btn:active { transform: scale(.97); }
.tt-btn:disabled { background: #C9CDD2; border-color: #C9CDD2; cursor: not-allowed; }
.tt-btn-outline { background: #fff; color: var(--tt-accent) !important; }
.tt-btn-block { width: 100%; }
.tt-btn.loading { pointer-events: none; opacity: .7; }
.tt-btn.loading::after { content: ""; width: 14px; height: 14px; border: 2px solid #fff; border-top-color: transparent; border-radius: 50%; animation: ttspin .7s linear infinite; }
@keyframes ttspin { to { transform: rotate(360deg); } }

/* ---------- Search & category chips ---------- */
.tt-search { display: flex; gap: 8px; margin-bottom: 12px; }
.tt-search input {
	flex: 1; border: 1.5px solid var(--tt-line); border-radius: 12px;
	padding: 11px 16px; font-size: 15px; background: var(--tt-card); color: var(--tt-ink);
}
.tt-search input::placeholder { color: #9AA1A9; opacity: 1; }
.tt-search input:focus { outline: 2px solid var(--tt-accent); border-color: transparent; }
.tt-search button { border: 0; background: var(--tt-accent); color: #fff !important; border-radius: 12px; padding: 0 18px; font-size: 17px; cursor: pointer; }

.tt-cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 10px; scrollbar-width: none; }
.tt-cats::-webkit-scrollbar { display: none; }
.tt-chip {
	flex: 0 0 auto; border: 1.5px solid var(--tt-line); background: var(--tt-card);
	color: var(--tt-ink);
	border-radius: 99px; padding: 7px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
	white-space: nowrap;
}
.tt-chip.active { background: var(--tt-accent); border-color: var(--tt-accent); color: #fff !important; }

/* ---------- Product grid ---------- */
.tt-grid {
	display: grid; gap: 10px;
	grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .tt-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 900px) { .tt-grid { grid-template-columns: repeat(4, 1fr); } }

.tt-card {
	background: var(--tt-card); border: 1px solid var(--tt-line);
	border-radius: var(--tt-radius); overflow: hidden;
	transition: transform .15s ease, box-shadow .15s ease;
}
.tt-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.tt-card-img { position: relative; aspect-ratio: 1; background: var(--tt-bg); }
.tt-card-img img { width: 100%; height: 100%; object-fit: cover; }
.tt-badge {
	position: absolute; top: 8px; left: 8px;
	background: var(--tt-danger); color: #fff;
	font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 7px;
}
.tt-badge-lg { font-size: 13px; padding: 5px 10px; }
.tt-card-body { padding: 10px 12px 12px; }
.tt-card-title {
	font-size: 13.5px; font-weight: 600; margin: 0 0 6px; line-height: 1.4;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	min-height: 2.8em;
}
.tt-price { color: var(--tt-accent); font-weight: 800; }
.tt-price-old { color: var(--tt-muted); font-size: 12px; margin-left: 6px; }
.tt-price-xl { font-size: 26px; }
.tt-card-meta { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; color: var(--tt-muted); }
.tt-oos { color: var(--tt-danger); font-weight: 700; }

.tt-pagination ul { display: flex; gap: 6px; justify-content: center; list-style: none; padding: 18px 0 0; margin: 0; }
.tt-pagination a, .tt-pagination span {
	display: inline-block; min-width: 36px; text-align: center; padding: 8px 10px;
	border: 1.5px solid var(--tt-line); border-radius: 10px; background: var(--tt-card);
	color: var(--tt-ink); font-weight: 600;
}
.tt-pagination .current { background: var(--tt-accent); color: #fff; border-color: var(--tt-accent); }

/* ---------- Single product ---------- */
.tt-single-grid { display: grid; gap: 20px; }
@media (min-width: 800px) { .tt-single-grid { grid-template-columns: 1fr 1.1fr; gap: 32px; } }
.tt-single-img { position: relative; border-radius: var(--tt-radius); overflow: hidden; background: var(--tt-bg); align-self: start; }
.tt-single-title { font-size: 21px; font-weight: 800; margin: 0 0 8px; line-height: 1.35; }
.tt-single-meta { display: flex; gap: 14px; font-size: 12.5px; color: var(--tt-muted); margin-bottom: 12px; }
.tt-single-price { background: var(--tt-bg); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.tt-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.tt-variant-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.tt-variant.active { background: var(--tt-accent); border-color: var(--tt-accent); color: #fff; }
.tt-variant:disabled { opacity: .45; cursor: not-allowed; }
.tt-variants { margin-bottom: 16px; }

.tt-qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.tt-qty-row .tt-label { margin: 0; }
.tt-qty { display: inline-flex; align-items: stretch; height: 42px; border: 1.5px solid var(--tt-line); border-radius: 11px; overflow: hidden; background: var(--tt-card); }
.tokothic .tt-qty button {
	display: flex; align-items: center; justify-content: center;
	width: 42px; height: 100%; min-height: 0; margin: 0; padding: 0;
	border: 0; border-radius: 0; background: transparent; box-shadow: none;
	line-height: 1; font-size: 0; cursor: pointer; color: var(--tt-accent);
}
.tokothic .tt-qty button:hover:not(:disabled) { background: var(--tt-bg); }
.tokothic .tt-qty button svg { display: block; pointer-events: none; }
.tt-qty button:disabled { color: #C9CDD2; cursor: not-allowed; }
.tt-stock-warn { display: inline-block; margin-top: 4px; font-size: 11.5px; font-weight: 700; color: #B45309; background: #FEF3C7; border-radius: 5px; padding: 2px 8px; }
.tokothic .tt-qty input {
	border: 0; border-left: 1px solid var(--tt-line); border-right: 1px solid var(--tt-line); border-radius: 0;
	width: 52px; height: 100%; margin: 0; padding: 0; box-shadow: none;
	text-align: center; line-height: normal; font-size: 15px; font-weight: 700;
	color: var(--tt-ink); background: #fff; -moz-appearance: textfield;
}
.tokothic .tt-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.tt-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.tt-qty.tt-qty-sm { height: 34px; }
.tokothic .tt-qty-sm button { width: 34px; }
.tokothic .tt-qty-sm input { width: 40px; font-size: 13px; }
.tt-stock-info { font-size: 13px; color: var(--tt-muted); }
.tt-single-desc { border-top: 1px solid var(--tt-line); padding-top: 16px; }

/* Sticky buy bar */
.tt-buybar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
	display: flex; gap: 10px; align-items: center;
	background: var(--tt-card); border-top: 1px solid var(--tt-line);
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
	box-shadow: 0 -6px 20px rgba(0,0,0,.07);
}
.tt-buybar .tt-btn { flex: 1; padding: 12px 8px; }
.tt-buybar-cart { position: relative; font-size: 24px; padding: 4px 8px; }
.tt-cart-count {
	position: absolute; top: -4px; right: -6px;
	background: var(--tt-danger); color: #fff; font-size: 10.5px; font-weight: 800;
	min-width: 18px; height: 18px; border-radius: 99px;
	display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}
@media (min-width: 800px) {
	.tt-buybar { position: sticky; border-radius: var(--tt-radius); border: 1px solid var(--tt-line); margin-top: 20px; }
}

/* Floating cart button on shop */
.tt-cart-fab {
	position: fixed; right: 18px; bottom: 22px; z-index: 999;
	width: 56px; height: 56px; border-radius: 50%;
	background: var(--tt-accent); color: #fff; font-size: 23px;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 22px rgba(0,0,0,.22);
}

/* ---------- Cart page ---------- */
.tt-cart-item {
	display: flex; gap: 12px; align-items: flex-start;
	background: var(--tt-card); border: 1px solid var(--tt-line);
	border-radius: var(--tt-radius); padding: 12px; margin-bottom: 10px;
}
.tt-cart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.tt-cart-item-info { flex: 1; min-width: 0; }
.tt-cart-item-title { font-weight: 700; font-size: 14px; display: block; }
.tt-cart-variant { font-size: 12px; color: var(--tt-muted); background: var(--tt-bg); border-radius: 6px; padding: 2px 8px; display: inline-block; margin-top: 3px; }
.tt-cart-item-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.tt-cart-item.tt-busy { opacity: .55; pointer-events: none; }
.tt-cart-remove { border: 0; background: transparent; color: var(--tt-ink); font-size: 17px; cursor: pointer; opacity: .6; padding: 4px; }
.tt-cart-remove:hover { opacity: 1; }

.tt-summary {
	background: var(--tt-card); border: 1px solid var(--tt-line);
	border-radius: var(--tt-radius); padding: 18px; margin-top: 14px;
}
.tt-summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; }
.tt-summary-total { border-top: 2px solid var(--tt-ink); margin-top: 8px; padding-top: 12px; font-size: 16px; }
.tt-summary .tt-btn { margin-top: 12px; }

/* ---------- Checkout ---------- */
.tt-checkout-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .tt-checkout-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.tt-panel {
	background: var(--tt-card); border: 1px solid var(--tt-line);
	border-radius: var(--tt-radius); padding: 18px; margin-bottom: 14px;
}
.tt-panel-sticky { position: sticky; top: 20px; }
.tt-panel-title { font-size: 16px; font-weight: 800; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.tt-step {
	background: var(--tt-accent); color: #fff; width: 26px; height: 26px; border-radius: 8px;
	display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}
.tt-field { margin-bottom: 12px; flex: 1; }
.tt-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.tt-field input, .tt-field textarea, .tt-field select {
	width: 100%; border: 1.5px solid var(--tt-line); border-radius: 11px;
	padding: 11px 14px; font-size: 15px; font-family: inherit;
	background: #fff; color: var(--tt-ink);
}
.tt-field input::placeholder, .tt-field textarea::placeholder { color: #9AA1A9; opacity: 1; }
.tt-field input:focus, .tt-field textarea:focus, .tt-field select:focus { outline: 2px solid var(--tt-accent); border-color: transparent; }
.tt-field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tt-field-row .tt-field { min-width: 140px; }

.tt-autocomplete { position: relative; }
.tt-autocomplete-results {
	position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
	background: #fff; color: var(--tt-ink);
	border: 1px solid var(--tt-line); border-radius: 11px;
	box-shadow: 0 12px 30px rgba(0,0,0,.12); max-height: 240px; overflow-y: auto;
	display: none; margin-top: 4px;
}
.tt-autocomplete-results.open { display: block; }
.tt-autocomplete-results button {
	display: block; width: 100%; text-align: left; border: 0;
	background: #fff; color: var(--tt-ink); font-weight: 500;
	padding: 11px 14px; font-size: 13.5px; cursor: pointer; border-bottom: 1px solid var(--tt-bg);
}
.tt-autocomplete-results button:hover,
.tt-autocomplete-results button:focus { background: var(--tt-bg); color: var(--tt-ink); }

.tt-rates { display: grid; gap: 8px; }
.tt-rate {
	display: flex; align-items: center; gap: 12px;
	border: 1.5px solid var(--tt-line); border-radius: 12px; padding: 12px 14px; cursor: pointer;
	background: #fff; transition: border-color .12s ease;
}
.tt-rate input { accent-color: var(--tt-accent); width: 18px; height: 18px; }
.tt-rate.active { border-color: var(--tt-accent); background: color-mix(in srgb, var(--tt-accent) 5%, #fff); }
.tt-rate-info { flex: 1; }
.tt-rate-info strong { display: block; font-size: 14px; }
.tt-rate-info small { color: var(--tt-muted); font-size: 12px; }
.tt-rate-cost { font-weight: 800; color: var(--tt-accent); white-space: nowrap; }
.tt-rates-loading { text-align: center; color: var(--tt-muted); padding: 14px; }

.tt-gateways { display: grid; gap: 8px; }
.tt-gateway {
	display: flex; align-items: center; gap: 12px;
	border: 1.5px solid var(--tt-line); border-radius: 12px; padding: 12px 14px; cursor: pointer;
}
.tt-gateway input { accent-color: var(--tt-accent); width: 18px; height: 18px; }
.tt-gateway.active { border-color: var(--tt-accent); background: color-mix(in srgb, var(--tt-accent) 5%, #fff); }
.tt-gateway-icon { font-size: 22px; }
.tt-gateway-info strong { display: block; font-size: 14px; }
.tt-gateway-info small { color: var(--tt-muted); font-size: 12px; }

/* Channel pembayaran (Duitku dsb) */
.tt-gateway-block + .tt-gateway-block { margin-top: 8px; }
.tt-channels {
	border: 1.5px solid var(--tt-accent); border-top: 0;
	border-radius: 0 0 12px 12px; padding: 12px 14px 14px;
	background: color-mix(in srgb, var(--tt-accent) 4%, #fff);
	margin-top: -6px;
}
.tt-channels-label { font-size: 12px; font-weight: 700; color: var(--tt-muted); margin: 0 0 10px; text-transform: uppercase; letter-spacing: .4px; }
.tt-channel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 520px) { .tt-channel-grid { grid-template-columns: repeat(3, 1fr); } }
.tt-channel {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	background: #fff; color: var(--tt-ink);
	border: 1.5px solid var(--tt-line); border-radius: 10px;
	padding: 10px 8px; cursor: pointer; text-align: center; min-height: 74px;
	transition: border-color .12s ease, transform .12s ease;
}
.tt-channel:active { transform: scale(.97); }
.tt-channel.active { border-color: var(--tt-accent); border-width: 2px; background: color-mix(in srgb, var(--tt-accent) 7%, #fff); }
.tt-channel img { height: 22px; width: auto; max-width: 76px; object-fit: contain; }
.tt-channel-code { font-size: 13px; font-weight: 800; color: var(--tt-accent); letter-spacing: .5px; }
.tt-channel-name { font-size: 11px; font-weight: 600; line-height: 1.3; }

.tt-mini-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--tt-bg); }
.tt-mini-item img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; }
.tt-mini-item > div { flex: 1; min-width: 0; }
.tt-mini-item span { font-size: 13px; font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-mini-item small { color: var(--tt-muted); font-size: 11.5px; }
.tt-mini-item strong { font-size: 13px; white-space: nowrap; }

/* ---------- Order received ---------- */
.tt-received { max-width: 640px; }
.tt-received-head { text-align: center; margin-bottom: 18px; }
.tt-received-icon { font-size: 46px; margin-bottom: 6px; }
.tt-received-head h2 { font-size: 23px; font-weight: 800; margin: 0 0 6px; }
.tt-status-pill { padding: 4px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 700; }

.tt-progress { display: flex; justify-content: space-between; margin: 4px 0 20px; position: relative; }
.tt-progress::before { content: ""; position: absolute; top: 8px; left: 10%; right: 10%; height: 3px; background: var(--tt-line); z-index: 0; }
.tt-progress-step { position: relative; z-index: 1; text-align: center; flex: 1; color: var(--tt-muted); font-weight: 600; }
.tt-progress-dot { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--tt-line); margin: 0 auto 5px; border: 3px solid var(--tt-bg); }
.tt-progress-step.done { color: var(--tt-accent); }
.tt-progress-step.done .tt-progress-dot { background: var(--tt-accent); }
.tt-progress-step small { font-size: 11px; }

.tt-bank-box {
	display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
	background: var(--tt-bg); border: 1px solid var(--tt-line);
	border-radius: 12px; padding: 14px 16px; margin-bottom: 8px;
}
.tt-bank-name {
	background: var(--tt-ink); color: #fff;
	font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
	padding: 4px 11px; border-radius: 6px;
}
.tt-bank-number {
	font-size: 20px; font-weight: 800; letter-spacing: 1px; cursor: pointer;
	display: flex; align-items: center; gap: 8px;
}
.tt-bank-number small {
	font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
	color: var(--tt-accent); border: 1px solid var(--tt-accent);
	border-radius: 5px; padding: 2px 7px;
}
.tt-bank-owner { color: var(--tt-muted); font-size: 12.5px; }
.tt-resi { font-size: 21px; font-weight: 800; letter-spacing: 1px; cursor: pointer; margin: 4px 0 12px; }
.tt-alert { border-radius: 11px; padding: 12px 16px; font-size: 14px; }
.tt-alert-success { background: #ECFDF5; border: 1px solid #10B981; color: #065F46; }
.tt-confirm-or { text-align: center; color: var(--tt-muted); font-size: 12.5px; margin: 12px 0 8px; }
.tt-btn-wa { display: flex; align-items: center; justify-content: center; width: 100%; background: #25D366 !important; border-color: #25D366 !important; color: #fff !important; }

/* ---------- Tracking ---------- */
.tt-track-summary { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.tt-track-summary div { background: var(--tt-bg); border-radius: 10px; padding: 8px 14px; font-size: 13px; }
.tt-track-summary strong { display: block; font-size: 14px; }
.tt-timeline { position: relative; padding-left: 24px; }
.tt-timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--tt-line); }
.tt-timeline-item { position: relative; padding-bottom: 16px; }
.tt-timeline-item::before {
	content: ""; position: absolute; left: -24px; top: 4px;
	width: 12px; height: 12px; border-radius: 50%; background: var(--tt-line); border: 2px solid #fff;
}
.tt-timeline-item:first-child::before { background: var(--tt-accent); }
.tt-timeline-item:first-child { font-weight: 700; }
.tt-timeline-time { font-size: 12px; color: var(--tt-muted); display: block; }

/* ---------- Account ---------- */
.tt-account-head { display: flex; justify-content: space-between; align-items: center; }
.tt-order-row {
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
	background: var(--tt-card); border: 1px solid var(--tt-line);
	border-radius: var(--tt-radius); padding: 14px 16px; margin-bottom: 8px;
}
.tt-order-row:hover { border-color: var(--tt-accent); }
.tt-order-row small { display: block; color: var(--tt-muted); font-size: 12px; }
.tt-order-row-right { text-align: right; }
.tt-order-row-right strong { display: block; margin-bottom: 4px; }

/* ---------- Misc ---------- */
.tt-empty { text-align: center; padding: 48px 16px; color: var(--tt-muted); }
.tt-empty-icon { font-size: 44px; margin-bottom: 8px; }
.tt-empty .tt-btn { margin-top: 12px; }

.tt-toast {
	position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(16px);
	background: var(--tt-ink); color: #fff; border-radius: 12px;
	padding: 12px 22px; font-size: 14px; font-weight: 600;
	opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
	z-index: 1200; max-width: 90vw; text-align: center;
}
.tt-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.tt-toast.error { background: var(--tt-danger); }

@media (prefers-reduced-motion: reduce) {
	.tokothic * { animation: none !important; transition: none !important; }
}

/* ---------- Quick Add ---------- */
.tt-quick { max-width: 560px; }
.tt-quick-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.tt-quick-counter { font-size: 12.5px; color: var(--tt-muted); background: var(--tt-bg); padding: 5px 12px; border-radius: 99px; font-weight: 600; }

.tt-quick-shot {
	position: relative; border: 2px dashed var(--tt-line); border-radius: var(--tt-radius);
	background: var(--tt-card); min-height: 200px; margin-bottom: 14px;
	display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer;
}
.tt-quick-shot:active { border-color: var(--tt-accent); }
.tt-quick-placeholder { text-align: center; padding: 34px 20px; color: var(--tt-muted); }
.tt-quick-cam { font-size: 42px; display: block; margin-bottom: 8px; }
.tt-quick-placeholder strong { display: block; font-size: 16px; color: var(--tt-ink); margin-bottom: 3px; }
.tt-quick-placeholder small { font-size: 12.5px; }
.tt-quick-shot img { width: 100%; max-height: 320px; object-fit: contain; background: var(--tt-bg); }
.tt-quick-retake {
	position: absolute; right: 10px; bottom: 10px;
	background: rgba(0,0,0,.72); color: #fff; border: 0; border-radius: 99px;
	padding: 7px 16px; font-size: 12.5px; font-weight: 700; cursor: pointer;
}

.tt-quick-weight {
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
	background: var(--tt-bg); border-radius: 10px; padding: 9px 14px; margin-top: 8px; font-size: 13.5px;
}
.tt-quick-weight strong { color: var(--tt-accent); font-size: 15px; }
.tt-quick-edit { margin-left: auto; background: none; border: 0; color: var(--tt-muted) !important; font-size: 12.5px; text-decoration: underline; cursor: pointer; padding: 0; }

.tt-quick-more { margin: 4px 0 14px; }
.tt-quick-more summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--tt-accent); padding: 8px 0; list-style: revert; }

.tt-quick-recent { display: grid; gap: 8px; }
.tt-quick-item {
	display: flex; align-items: center; gap: 12px;
	background: var(--tt-card); border: 1px solid var(--tt-line);
	border-radius: 12px; padding: 10px 14px;
}
.tt-quick-item img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; }
.tt-quick-noimg { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; background: var(--tt-bg); border-radius: 8px; font-size: 21px; }
.tt-quick-item strong { display: block; font-size: 14px; }
.tt-quick-item small { color: var(--tt-accent); font-weight: 700; font-size: 13px; }

/* ---------- Timer & harga naik bertahap ---------- */
.tt-flip {
	background: var(--tt-ink); color: #fff; border-radius: var(--tt-radius);
	padding: 14px 16px 16px; margin-bottom: 14px; text-align: center;
}
.tt-flip-title { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .3px; opacity: .85; }
.tt-flip-grid { display: flex; justify-content: center; gap: 8px; }
.tt-flip-block {
	background: rgba(255,255,255,.1); border-radius: 10px; min-width: 62px; padding: 8px 6px 6px;
	display: flex; flex-direction: column; align-items: center;
}
.tt-flip-block span { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tt-flip-block small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; opacity: .7; margin-top: 3px; }

.tt-tier-box {
	background: #FFF8E1; border: 1px solid #FFCA28; color: #7A5A00;
	border-radius: 12px; padding: 12px 16px; margin-bottom: 10px;
	font-size: 14.5px; font-weight: 600; text-align: center; line-height: 1.5;
}
.tt-tier-box strong { font-weight: 800; }
.tt-tier-final { background: #F3F4F6; border-color: #E5E7EB; color: #4B5563; font-weight: 600; }
.tt-low-stock {
	background: #FDF0F0; border: 1px solid #F5B5B5; color: #B42318;
	border-radius: 12px; padding: 11px 16px; margin-bottom: 10px; font-size: 14px;
}
.tt-flip { margin-top: 4px; }
.tt-tier-bar { height: 7px; background: rgba(0,0,0,.08); border-radius: 99px; margin-top: 9px; overflow: hidden; }
.tt-tier-bar span { display: block; height: 100%; background: linear-gradient(90deg, #F59E0B, #DC2626); border-radius: 99px; }

.tt-closed-box {
	background: #F3F4F6; border: 1px solid #D1D5DB; color: #374151;
	border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-weight: 700; text-align: center;
}
.tt-badge-dark { background: #374151 !important; }
.tt-badge-up { top: auto !important; bottom: 8px; left: 8px; background: #B45309 !important; }
