/*!
 * TikTok Style Theme for OpenCart 3.0.x
 * Pure skin: no core file is modified. Colours come from --tt-accent / --tt-accent2 (set in the theme settings).
 */
:root {
  --tt-accent: #fe2c55;
  --tt-accent2: #25f4ee;
  --tt-bg: #121212;
  --tt-bg-rail: #000;
  --tt-surface: rgba(255, 255, 255, .08);
  --tt-surface-2: rgba(255, 255, 255, .14);
  --tt-elevated: #1f1f1f;
  --tt-text: #fff;
  --tt-text-2: rgba(255, 255, 255, .75);
  --tt-text-3: rgba(255, 255, 255, .5);
  --tt-border: rgba(255, 255, 255, .12);
  --tt-input: rgba(255, 255, 255, .1);
  --tt-shadow: 0 8px 28px rgba(0, 0, 0, .45);
  --tt-radius: 8px;
  --tt-radius-lg: 14px;
  --tt-rail-w: 248px;
  --tt-top-h: 60px;
  --tt-tab-h: 56px;
  --tt-safe-b: env(safe-area-inset-bottom, 0px);
  --tt-catbar-h: 46px;
  /* one stacking scale for the whole theme (a fixed child cannot escape its parent's layer, so header owns the overlays it hosts) */
  --z-feed-ui: 940;
  --z-buybar: 990;
  --z-tabbar: 1000;
  --z-top: 1050;
  --z-scrim: 1090;
  --z-rail: 1100;
  --z-modal: 1300;
  --z-toast: 2100;
  --tt-font: "Proxima Nova", "TikTok Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Arial, sans-serif;
  color-scheme: dark;
}
html[data-tt-mode="light"] {
  --tt-bg: #fff;
  --tt-bg-rail: #fff;
  --tt-surface: rgba(22, 24, 35, .06);
  --tt-surface-2: rgba(22, 24, 35, .12);
  --tt-elevated: #fff;
  --tt-text: #161823;
  --tt-text-2: rgba(22, 24, 35, .75);
  --tt-text-3: rgba(22, 24, 35, .5);
  --tt-border: rgba(22, 24, 35, .12);
  --tt-input: rgba(22, 24, 35, .06);
  --tt-shadow: 0 8px 28px rgba(22, 24, 35, .16);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  html[data-tt-mode="auto"] {
    --tt-bg: #fff;
    --tt-bg-rail: #fff;
    --tt-surface: rgba(22, 24, 35, .06);
    --tt-surface-2: rgba(22, 24, 35, .12);
    --tt-elevated: #fff;
    --tt-text: #161823;
    --tt-text-2: rgba(22, 24, 35, .75);
    --tt-text-3: rgba(22, 24, 35, .5);
    --tt-border: rgba(22, 24, 35, .12);
    --tt-input: rgba(22, 24, 35, .06);
    --tt-shadow: 0 8px 28px rgba(22, 24, 35, .16);
    color-scheme: light;
  }
}

*, *::before, *::after { -webkit-tap-highlight-color: transparent; }
html { background: var(--tt-bg); }
body.tt-body {
  margin: 0;
  background: var(--tt-bg);
  color: var(--tt-text);
  font-family: var(--tt-font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.tt-has-feed { overflow: hidden; background: #000; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
a { color: var(--tt-text); text-decoration: none; }
a:hover, a:focus { color: var(--tt-accent); text-decoration: none; }
:focus-visible { outline: 2px solid var(--tt-accent2); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--tt-font); color: var(--tt-text); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 26px; margin: 8px 0 16px; }
h2 { font-size: 21px; margin: 24px 0 12px; }
h3 { font-size: 18px; margin: 20px 0 10px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
p { margin: 0 0 12px; }
hr { border-top: 1px solid var(--tt-border); }
small, .small { color: var(--tt-text-3); }
img { max-width: 100%; }
legend { color: var(--tt-text); border-bottom: 1px solid var(--tt-border); font-size: 18px; font-weight: 700; padding-bottom: 8px; margin-bottom: 18px; }
label { font-weight: 600; color: var(--tt-text-2); }
.text-muted { color: var(--tt-text-3); }
.text-danger { color: #ff5b6e; }
.text-success { color: #3ddc97; }
div.required .control-label:before { content: '* '; color: var(--tt-accent); font-weight: 700; }
.container { width: auto; max-width: 1280px; padding-left: 20px; padding-right: 20px; }
@media (max-width: 767px) { .container { padding-left: 14px; padding-right: 14px; } }

/* ---------- Buttons ---------- */
.btn { border-radius: var(--tt-radius); font-weight: 600; border: 1px solid transparent; padding: 9px 16px; transition: background .15s, transform .1s, opacity .15s; text-shadow: none; box-shadow: none; }
.btn:active { transform: scale(.98); }
.btn-lg { padding: 13px 22px; font-size: 16px; }
.btn-sm, .btn-xs { padding: 5px 10px; }
.btn-default, .btn-link { background: var(--tt-surface); color: var(--tt-text); border-color: transparent; }
.btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active, .open > .dropdown-toggle.btn-default { background: var(--tt-surface-2); color: var(--tt-text); border-color: transparent; }
.btn-link:hover, .btn-link:focus { background: var(--tt-surface-2); color: var(--tt-text); text-decoration: none; }
.btn-primary, .btn-inverse, .btn-success { background: var(--tt-accent); color: #fff; border-color: var(--tt-accent); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .btn-primary[disabled],
.btn-inverse:hover, .btn-inverse:focus, .btn-inverse:active, .btn-inverse.active, .open > .dropdown-toggle.btn-inverse,
.btn-success:hover, .btn-success:focus, .btn-success:active { background: var(--tt-accent); border-color: var(--tt-accent); color: #fff; filter: brightness(1.12); }
.btn-info { background: var(--tt-surface-2); color: var(--tt-text); border-color: transparent; }
.btn-info:hover, .btn-info:focus, .btn-info:active { background: var(--tt-surface-2); color: var(--tt-text); filter: brightness(1.2); }
.btn-warning { background: #ffb020; color: #1b1300; }
.btn-warning:hover, .btn-warning:focus { background: #ffb020; color: #1b1300; filter: brightness(1.1); }
.btn-danger { background: transparent; color: #ff5b6e; border-color: rgba(255, 91, 110, .5); }
.btn-danger:hover, .btn-danger:focus, .btn-danger:active { background: #ff5b6e; border-color: #ff5b6e; color: #fff; }
.btn[disabled], .btn.disabled { opacity: .5; }
.btn-group > .btn, .btn-group > .dropdown-menu { font-size: inherit; }
.input-group-btn > .btn { padding-top: 9px; padding-bottom: 9px; }

/* ---------- Forms ---------- */
.form-control {
  height: 44px; padding: 10px 14px; font-size: 15px; color: var(--tt-text); background: var(--tt-input);
  border: 1px solid transparent; border-radius: var(--tt-radius); box-shadow: none; transition: border-color .15s, background .15s;
}
textarea.form-control { height: auto; }
.form-control::placeholder { color: var(--tt-text-3); }
.form-control:focus { border-color: var(--tt-text-3); box-shadow: none; background: var(--tt-input); color: var(--tt-text); }
.form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { background: var(--tt-surface); opacity: .6; }
select.form-control { appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23999' stroke-width='2' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; }
select.form-control option { background: var(--tt-elevated); color: var(--tt-text); }
.input-group-addon { background: var(--tt-surface); color: var(--tt-text-2); border: 1px solid transparent; border-radius: var(--tt-radius); }
.input-group .form-control:first-child, .input-group-addon:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .form-control:last-child, .input-group-addon:last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group-btn:last-child > .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group-btn:first-child > .btn { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.has-error .form-control { border-color: #ff5b6e; }
.has-error .control-label, .has-error .help-block { color: #ff5b6e; }
.help-block { color: var(--tt-text-3); }
.checkbox, .radio { margin: 8px 0; }
.checkbox label, .radio label, .checkbox-inline, .radio-inline { color: var(--tt-text); font-weight: 500; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--tt-accent); }
.radio label img.img-thumbnail, .checkbox label img.img-thumbnail { width: 36px; height: 36px; object-fit: cover; }
.form-horizontal .control-label { text-align: left; }
@media (min-width: 768px) { .form-horizontal .control-label { text-align: right; } }
.buttons { margin: 22px 0; display: flow-root; }

/* ---------- Components ---------- */
.breadcrumb { background: none; padding: 10px 0; margin: 0 0 6px; font-size: 13px; }
.breadcrumb > li { color: var(--tt-text-3); }
.breadcrumb > li a { color: var(--tt-text-3); }
.breadcrumb > li a:hover { color: var(--tt-text); }
.breadcrumb > li + li:before { content: '\203A'; color: var(--tt-text-3); padding: 0 8px; }
.breadcrumb > li:last-child a { color: var(--tt-text-2); }
.breadcrumb > li:after { display: none; }
.nav-tabs { border-bottom: 1px solid var(--tt-border); margin-bottom: 18px; display: flex; flex-wrap: wrap; }
.nav-tabs > li { float: none; margin-bottom: -1px; }
.nav-tabs > li > a { color: var(--tt-text-3); background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; margin: 0; padding: 12px 18px; font-weight: 700; }
.nav-tabs > li > a:hover { background: transparent; border-color: transparent; color: var(--tt-text); }
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { background: transparent; border: 0; border-bottom: 2px solid var(--tt-text); color: var(--tt-text); }
.tab-content { color: var(--tt-text-2); }
.nav-pills > li.active > a, .nav-pills > li.active > a:hover { background: var(--tt-accent); }
.dropdown-menu { background: var(--tt-elevated); border: 1px solid var(--tt-border); border-radius: 12px; box-shadow: var(--tt-shadow); padding: 6px; margin-top: 8px; color: var(--tt-text); }
.dropdown-menu > li > a { color: var(--tt-text); padding: 9px 14px; border-radius: 8px; }
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus, .dropdown-menu > .active > a { background: var(--tt-surface); color: var(--tt-text); }
.dropdown-menu .divider { background: var(--tt-border); }
.dropdown-header { color: var(--tt-text-3); }
.alert { border: 0; border-radius: var(--tt-radius); padding: 12px 16px; }
.alert-success { background: rgba(61, 220, 151, .15); color: #3ddc97; }
.alert-danger { background: rgba(255, 91, 110, .15); color: #ff6f80; }
.alert-warning { background: rgba(255, 176, 32, .15); color: #ffb020; }
.alert-info { background: rgba(37, 244, 238, .12); color: var(--tt-accent2); }
html[data-tt-mode="light"] .alert-info { color: #0a8d89; }
html[data-tt-mode="light"] .alert-success { color: #12875a; }
html[data-tt-mode="light"] .alert-danger { color: #d3263d; }
.alert .close { color: inherit; opacity: .7; text-shadow: none; }
.alert a { color: inherit; text-decoration: underline; }
.well { background: var(--tt-surface); border: 0; border-radius: var(--tt-radius-lg); box-shadow: none; }
.panel { background: var(--tt-surface); border: 0; border-radius: var(--tt-radius-lg); box-shadow: none; color: var(--tt-text); }
.panel-default > .panel-heading, .panel-heading { background: transparent; color: var(--tt-text); border: 0; border-bottom: 1px solid var(--tt-border); padding: 14px 18px; border-radius: var(--tt-radius-lg) var(--tt-radius-lg) 0 0; }
.panel-default > .panel-heading + .panel-collapse > .panel-body { border-top: 0; }
.panel-title { font-size: 16px; font-weight: 700; }
.panel-title a { color: var(--tt-text); display: block; }
.panel-body { padding: 18px; }
.panel-footer { background: transparent; border-top: 1px solid var(--tt-border); }
.panel-group .panel + .panel { margin-top: 10px; }
.list-group-item { background: transparent; color: var(--tt-text-2); border: 0; border-radius: 8px !important; margin-bottom: 2px; padding: 10px 14px; }
.list-group a.list-group-item:hover, .list-group a.list-group-item:focus { background: var(--tt-surface); color: var(--tt-text); }
.list-group a.list-group-item.active, .list-group a.list-group-item.active:hover { background: var(--tt-surface-2); color: var(--tt-text); font-weight: 700; border: 0; }
.list-group a.list-group-item.sub { padding-left: 28px; font-size: 14px; }
.label { border-radius: 4px; }
.label-info { background: var(--tt-accent2); color: #000; }
.badge { background: var(--tt-accent); }
.img-thumbnail, .thumbnail { background: var(--tt-surface); border: 0; border-radius: var(--tt-radius); padding: 0; }
.close { color: var(--tt-text); text-shadow: none; opacity: .6; }
.close:hover { color: var(--tt-text); opacity: 1; }
.tooltip-inner { background: #000; color: #fff; border-radius: 6px; }
.tooltip.in { opacity: 1; }
.popover { background: var(--tt-elevated); border-color: var(--tt-border); color: var(--tt-text); }
.modal-content { background: var(--tt-elevated); color: var(--tt-text); border: 1px solid var(--tt-border); border-radius: var(--tt-radius-lg); box-shadow: var(--tt-shadow); }
.modal-header, .modal-footer { border-color: var(--tt-border); }
.modal-backdrop.in { opacity: .7; }
.progress { background: var(--tt-surface); box-shadow: none; }
.progress-bar { background: var(--tt-accent); }
pre, code { background: var(--tt-surface); color: var(--tt-text); border: 0; }

/* ---------- Tables ---------- */
.table { color: var(--tt-text); margin-bottom: 18px; }
.table > thead > tr > th, .table > thead > tr > td, .table > tbody > tr > th, .table > tbody > tr > td, .table > tfoot > tr > td, .table > tfoot > tr > th { border-color: var(--tt-border); padding: 12px 10px; vertical-align: middle; }
.table > thead > tr > td, .table > thead > tr > th { color: var(--tt-text-3); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; border-bottom-width: 1px; }
.table-bordered, .table-bordered > thead > tr > th, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > th, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td { border-color: var(--tt-border); }
.table-bordered { border-radius: var(--tt-radius); border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--tt-border); }
.table-bordered > thead > tr > *, .table-bordered > tbody > tr > *, .table-bordered > tfoot > tr > * { border-left: 0; border-right: 0; }
.table-striped > tbody > tr:nth-of-type(odd), .table-hover > tbody > tr:hover { background: var(--tt-surface); }
.table-responsive { border: 0; }
.table a { color: var(--tt-text); }
.table a:hover { color: var(--tt-accent); }
.table .img-thumbnail { max-width: 70px; }

/* ---------- Pagination ---------- */
.pagination { margin: 16px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pagination > li > a, .pagination > li > span { background: var(--tt-surface); border: 0; color: var(--tt-text); border-radius: 8px !important; margin: 0; min-width: 38px; text-align: center; padding: 8px 12px; float: none; }
.pagination > li { display: inline-block; }
.pagination > li > a:hover { background: var(--tt-surface-2); color: var(--tt-text); }
.pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover { background: var(--tt-accent); border: 0; color: #fff; }
.pagination > .disabled > span { background: transparent; color: var(--tt-text-3); }

/* ---------- Toasts (core alerts get promoted by tiktok.js) ---------- */
#tt-toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: var(--z-toast); display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.alert.tt-toast { pointer-events: auto; margin: 0; box-shadow: var(--tt-shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(25, 25, 25, .92); color: #fff; border-radius: 12px; animation: tt-pop .22s ease-out; }
.alert.tt-toast a { color: var(--tt-accent2); }
.alert.tt-toast.alert-danger { background: rgba(60, 14, 22, .96); }
html[data-tt-mode="light"] .alert.tt-toast { background: rgba(255,255,255,.96); color: #161823; }
@keyframes tt-pop { from { opacity: 0; transform: translateY(-10px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .001s !important; transition-duration: .001s !important; } }
/* ================= Shell ================= */
.tt-wordmark { position: relative; font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--tt-text); text-shadow: -1.5px -1.5px 0 var(--tt-accent2), 1.5px 1.5px 0 var(--tt-accent); white-space: nowrap; }
.tt-brand { display: inline-flex; align-items: center; color: var(--tt-text); }
.tt-brand img { max-height: 36px; width: auto; }
.tt-icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: transparent; border: 0; color: var(--tt-text); font-size: 19px; cursor: pointer; padding: 0; transition: background .15s; }
.tt-icon-btn:hover, .tt-icon-btn:focus { background: var(--tt-surface); color: var(--tt-text); }
.tt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: var(--tt-radius); font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: filter .15s, transform .1s, background .15s; }
.tt-btn:active { transform: scale(.98); }
.tt-btn-primary { background: var(--tt-accent); color: #fff; }
.tt-btn-primary:hover, .tt-btn-primary:focus { color: #fff; filter: brightness(1.1); }
.tt-btn-ghost { background: transparent; color: var(--tt-text); border-color: var(--tt-border); }
.tt-btn-ghost:hover { background: var(--tt-surface); color: var(--tt-text); }
.tt-btn-glass { background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tt-btn-glass:hover { background: rgba(255, 255, 255, .28); color: #fff; }
.tt-btn-lg { min-height: 52px; font-size: 17px; width: 100%; }

/* ---------- Left rail ---------- */
#tt-rail { position: fixed; z-index: var(--z-rail); top: 0; left: 0; bottom: 0; width: min(86vw, 320px); background: var(--tt-bg-rail); border-right: 1px solid var(--tt-border); transform: translateX(-102%); transition: transform .25s ease; overflow-y: auto; overscroll-behavior: contain; }
.tt-rail-inner { padding: 14px 12px 28px; display: flex; flex-direction: column; min-height: 100%; }
.tt-rail-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 14px; }
.tt-rail-close { background: none; border: 0; color: var(--tt-text); font-size: 20px; width: 36px; height: 36px; border-radius: 50%; }
.tt-nav-item { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 10px; color: var(--tt-text); font-weight: 700; font-size: 16px; }
.tt-nav-item i { width: 26px; text-align: center; font-size: 21px; }
.tt-nav-item:hover { background: var(--tt-surface); color: var(--tt-text); }
.tt-nav-item.active { color: var(--tt-accent); }
.tt-nav-item.active i { color: var(--tt-accent); }
.tt-rail-section { border-top: 1px solid var(--tt-border); margin-top: 12px; padding-top: 12px; }
.tt-rail-account { border-top: 1px solid var(--tt-border); margin-top: 12px; padding-top: 14px; }
.tt-btn-login { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: var(--tt-radius); border: 1px solid var(--tt-accent); color: var(--tt-accent); font-weight: 700; margin: 0 4px 8px; }
.tt-btn-login:hover { background: var(--tt-accent); color: #fff; }
.tt-rail-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--tt-border); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: 13px; }
.tt-rail-foot form { margin: 0; }
.tt-rail-foot .pull-left { float: none !important; }
.tt-rail-foot .btn-link { color: var(--tt-text-2); background: transparent; padding: 6px 8px; font-weight: 600; }
.tt-rail-foot .btn-link strong { color: var(--tt-text); }
.tt-rail-foot .tt-phone { width: 100%; padding: 6px 12px; color: var(--tt-text-2); font-weight: 600; }
.tt-rail-foot .tt-contact { width: 100%; font-size: 14px; }
.tt-rail-foot .dropdown-menu { background: var(--tt-elevated); }
.tt-rail-foot .dropdown-menu .btn-link { color: var(--tt-text); width: 100%; text-align: left; }

body.tt-rail-open #tt-rail { transform: none; box-shadow: var(--tt-shadow); }
#tt-scrim { position: fixed; inset: 0; z-index: var(--z-scrim); background: rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transition: opacity .2s; }
body.tt-rail-open #tt-scrim { opacity: 1; visibility: visible; }
body.tt-rail-open { overflow: hidden; }

/* category menu inside the rail */
.tt-menu-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--tt-text-3); padding: 4px 12px 8px; }
.tt-menu-list, .tt-menu-list ul { list-style: none; margin: 0; padding: 0; }
.tt-menu-list > li { position: relative; }
.tt-menu-list > li > a { display: block; padding: 9px 44px 9px 12px; border-radius: 10px; color: var(--tt-text-2); font-weight: 600; }
.tt-menu-list a:hover { background: var(--tt-surface); color: var(--tt-text); }
.tt-menu-toggle { position: absolute; right: 4px; top: 3px; width: 36px; height: 36px; background: none; border: 0; color: var(--tt-text-3); border-radius: 50%; transition: transform .2s; }
.tt-menu-list li.is-open > .tt-menu-toggle { transform: rotate(180deg); }
.tt-menu-list li ul { display: none; padding: 2px 0 6px 14px; }
.tt-menu-list li.is-open > ul { display: block; }
.tt-menu-list li ul a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--tt-text-3); font-size: 14px; }
.tt-menu-list li ul .tt-see-all a { color: var(--tt-accent); font-weight: 700; }

/* ---------- Top bar ---------- */
#tt-app { min-height: 100vh; display: flex; flex-direction: column; }
#tt-top { position: sticky; top: 0; z-index: var(--z-top); height: var(--tt-top-h); display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--tt-bg); border-bottom: 1px solid var(--tt-border); }
.tt-brand-top { margin-right: auto; }
#tt-top .tt-search { order: 2; }
.tt-top-actions { display: flex; align-items: center; gap: 2px; order: 3; margin-left: auto; }
.tt-brand-top ~ .tt-search { margin-left: 0; }
/* ---------- Search (instant, with suggestions) ---------- */
.tt-search { position: relative; flex: 0 0 auto; order: 2; }
.tt-search-toggle { display: inline-flex; }
.tt-search-panel { display: none; }
.tt-search-bar { display: flex; align-items: center; gap: 6px; height: 46px; }
.tt-search-field { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; height: 44px; border-radius: 22px; background: var(--tt-input); }
.tt-search-field input[name="search"] { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; color: var(--tt-text); padding: 0 6px 0 18px; font-size: 16px; outline: 0; box-shadow: none; }
.tt-search-field input::placeholder { color: var(--tt-text-3); }
.tt-search-go, .tt-search-back, .tt-search-clear { flex: 0 0 auto; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: var(--tt-text-2); font-size: 17px; display: inline-flex; align-items: center; justify-content: center; }
.tt-search-go:hover, .tt-search-back:hover { color: var(--tt-accent); }
.tt-search-clear { display: none; position: absolute; right: 40px; top: 1px; width: 40px; height: 42px; font-size: 16px; color: var(--tt-text-3); }
.tt-search.has-value .tt-search-clear { display: inline-flex; }
.tt-search-back { display: none; }
.tt-suggest { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.tt-suggest[hidden] { display: none; }
.tt-sg-title { padding: 14px 16px 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tt-text-3); }
.tt-sg-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 16px; background: transparent; border: 0; color: var(--tt-text); text-align: left; font-size: 15px; cursor: pointer; }
.tt-sg-item:hover, .tt-sg-item.is-sel { background: var(--tt-surface-2); color: var(--tt-text); }
.tt-sg-item > i.fa { flex: 0 0 22px; text-align: center; color: var(--tt-text-3); }
.tt-sg-item mark { background: transparent; color: var(--tt-accent); font-weight: 800; padding: 0; }
.tt-sg-product img { flex: 0 0 48px; width: 48px; height: 64px; border-radius: 8px; object-fit: cover; background: var(--tt-surface-2); }
.tt-sg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tt-sg-main b { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tt-sg-main small { color: var(--tt-text-3); }
.tt-sg-price { flex: 0 0 auto; text-align: right; font-weight: 800; color: var(--tt-accent); white-space: nowrap; }
.tt-sg-price s { display: block; font-weight: 400; font-size: 12px; color: var(--tt-text-3); }
.tt-sg-oos { flex: 0 0 auto; font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 4px; background: var(--tt-surface-2); color: var(--tt-text-2); }
.tt-sg-all { justify-content: center; font-weight: 800; color: var(--tt-accent); border-top: 1px solid var(--tt-border); margin-top: 6px; padding: 14px 16px; }
.tt-sg-all:hover { color: var(--tt-accent); }
.tt-sg-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 12px; }
.tt-sg-chip { border: 0; border-radius: 999px; padding: 8px 14px; background: var(--tt-surface); color: var(--tt-text); font-size: 14px; font-weight: 600; }
.tt-sg-chip:hover { background: var(--tt-surface-2); }
.tt-sg-none { padding: 34px 20px; text-align: center; color: var(--tt-text-2); }
.tt-sg-none i { font-size: 34px; color: var(--tt-text-3); display: block; margin-bottom: 10px; }
.tt-sg-none small { display: block; margin-top: 6px; }
.tt-sg-wait { padding: 26px; text-align: center; color: var(--tt-text-3); }

/* phones + tablets: icon in the bar, full-screen panel when opened */
@media (max-width: 991px) {
  .tt-search { margin-left: auto; }
  .tt-search.is-open .tt-search-toggle { visibility: hidden; }
  .tt-search.is-open .tt-search-panel { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 5; background: var(--tt-bg); color: var(--tt-text); }
  .tt-search.is-open .tt-search-bar { flex: 0 0 var(--tt-top-h); padding: 7px 10px; border-bottom: 1px solid var(--tt-border); box-sizing: border-box; height: var(--tt-top-h); }
  .tt-search.is-open .tt-search-back { display: inline-flex; color: var(--tt-text); }
  .tt-search.is-open .tt-suggest { flex: 1 1 auto; padding-bottom: calc(var(--tt-tab-h) + var(--tt-safe-b)); }
  .tt-search-open #tt-top { background: var(--tt-bg); }
  .tt-search-open .tt-search-field input { color: var(--tt-text); }
  .tt-search-open { overflow: hidden; }
}
/* desktop: the pill lives in the header, suggestions drop down under it */
@media (min-width: 992px) {
  .tt-search { width: min(520px, 46vw); margin: 0 auto; }
  .tt-search-toggle { display: none; }
  .tt-search-panel { display: block; }
  .tt-search-bar { height: 42px; }
  .tt-search-field { height: 42px; }
  .tt-suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; max-height: min(72vh, 620px); background: var(--tt-elevated); border: 1px solid var(--tt-border); border-radius: 16px; box-shadow: var(--tt-shadow); padding: 6px 0 4px; color: var(--tt-text); }
  .tt-brand-top { margin-right: 0; }
}
.tt-has-feed #tt-top .tt-search-field { background: rgba(255, 255, 255, .16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tt-has-feed #tt-top .tt-search-field input, .tt-has-feed #tt-top .tt-search-go { color: #fff; }
.tt-has-feed #tt-top .tt-search-field input::placeholder { color: rgba(255, 255, 255, .7); }
@media (max-width: 991px) { .tt-has-feed #tt-top .tt-search-field { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--tt-input); } .tt-has-feed #tt-top .tt-search.is-open .tt-search-field input, .tt-has-feed #tt-top .tt-search.is-open .tt-search-go { color: var(--tt-text); } .tt-has-feed #tt-top .tt-search.is-open .tt-search-field input::placeholder { color: var(--tt-text-3); } }
.tt-account .dropdown-menu { min-width: 180px; }
.tt-top-actions .sr-only { clip: rect(0,0,0,0); }
#wishlist-total i { font-size: 20px; }

/* cart button + slide-over sheet */
#tt-top #cart { margin: 0; position: relative; }
#cart > button { position: relative; }
#cart-total { font-size: 0; line-height: 1; display: inline-flex; }
#cart-total i { font-size: 20px; }
#cart[data-count]:not([data-count="0"]) > button::after { content: attr(data-count); position: absolute; top: 1px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--tt-accent); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; box-sizing: border-box; }
#cart.open::before { content: ''; position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 1190; }
#cart .dropdown-menu.tt-sheet { position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(100vw, 420px); margin: 0; padding: 0; border: 0; border-left: 1px solid var(--tt-border); border-radius: 0; z-index: 1200; background: var(--tt-bg-rail); box-shadow: var(--tt-shadow); float: none; }
#cart.open > .dropdown-menu.tt-sheet { display: flex; flex-direction: column; animation: tt-slide-in .24s ease-out; }
@keyframes tt-slide-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.tt-sheet > li { list-style: none; }
.tt-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--tt-border); font-size: 17px; flex: 0 0 auto; }
.tt-sheet-close { background: var(--tt-surface); border: 0; color: var(--tt-text); width: 34px; height: 34px; border-radius: 50%; }
.tt-sheet-body { flex: 1 1 auto; overflow-y: auto; padding: 8px 18px; }
.tt-sheet-body.tt-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--tt-text-3); text-align: center; }
.tt-sheet-body.tt-empty i { font-size: 44px; margin-bottom: 12px; }
.tt-cart-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--tt-border); }
.tt-cart-thumb { flex: 0 0 62px; width: 62px; height: 82px; border-radius: 8px; overflow: hidden; background: var(--tt-surface); display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--tt-text-3); }
.tt-cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tt-cart-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tt-cart-name { font-weight: 700; line-height: 1.3; }
.tt-cart-info small { color: var(--tt-text-3); }
.tt-cart-qty { color: var(--tt-text-2); font-size: 14px; margin-top: 2px; }
.tt-cart-remove { background: none; border: 0; color: var(--tt-text-3); font-size: 18px; width: 36px; height: 36px; border-radius: 50%; }
.tt-cart-remove:hover { background: var(--tt-surface); color: #ff5b6e; }
.tt-sheet-foot { flex: 0 0 auto; padding: 16px 18px calc(16px + var(--tt-safe-b)); border-top: 1px solid var(--tt-border); }
.tt-cart-totals > div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--tt-text-2); }
.tt-cart-totals > div:last-child { color: var(--tt-text); font-size: 18px; padding-top: 8px; margin-top: 4px; border-top: 1px dashed var(--tt-border); }
.tt-cart-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

/* ---------- Main + footer ---------- */
#tt-main { flex: 1 0 auto; min-width: 0; padding-bottom: 28px; }
.tt-has-feed #tt-main { padding: 0; }
#tt-footer { border-top: 1px solid var(--tt-border); padding: 30px 0 24px; color: var(--tt-text-3); font-size: 14px; }
.tt-footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.tt-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px 28px; }
.tt-foot-col summary { font-weight: 800; color: var(--tt-text); cursor: pointer; list-style: none; margin-bottom: 8px; font-size: 14px; }
.tt-foot-col summary::-webkit-details-marker { display: none; }
.tt-foot-col ul { margin: 0; }
.tt-foot-col a { color: var(--tt-text-3); line-height: 2; }
.tt-foot-col a:hover { color: var(--tt-text); }
.tt-powered { margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--tt-border); font-size: 13px; }
.tt-has-feed #tt-footer { display: none; }

/* ---------- Mobile tab bar ---------- */
#tt-tabbar { display: none; }
@media (max-width: 991px) {
  .tt-has-tabbar #tt-tabbar { position: fixed; z-index: var(--z-tabbar); left: 0; right: 0; bottom: 0; height: calc(var(--tt-tab-h) + var(--tt-safe-b)); padding-bottom: var(--tt-safe-b); display: flex; background: var(--tt-bg-rail); border-top: 1px solid var(--tt-border); }
  #tt-tabbar a, #tt-tabbar button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: none; border: 0; color: var(--tt-text-3); font-size: 11px; font-weight: 600; padding: 0; }
  #tt-tabbar i { font-size: 21px; }
  #tt-tabbar a.active, #tt-tabbar a:hover, #tt-tabbar button:hover { color: var(--tt-text); }
  #tt-tabbar a.active i { color: var(--tt-accent); }
  .tt-badge { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--tt-accent); color: #fff; font-style: normal; font-size: 10px; font-weight: 800; line-height: 17px; text-align: center; box-sizing: border-box; }
  .tt-badge[data-count="0"] { display: none; }
  .tt-has-tabbar #tt-main { padding-bottom: calc(var(--tt-tab-h) + var(--tt-safe-b) + 24px); }
  .tt-has-tabbar #tt-footer { padding-bottom: calc(var(--tt-tab-h) + var(--tt-safe-b)); }
}

/* ---------- Desktop rail ---------- */
@media (min-width: 992px) {
  .tt-has-rail #tt-rail { transform: none; width: var(--tt-rail-w); box-shadow: none; z-index: 1000; }
  .tt-has-rail #tt-app { margin-left: var(--tt-rail-w); }
  .tt-has-rail #tt-menu-btn, .tt-has-rail .tt-brand-top, .tt-has-rail .tt-rail-close { display: none; }
  .tt-has-rail #tt-scrim { display: none; }
  body.tt-rail-open { overflow: auto; }
  .tt-has-rail.tt-has-feed { overflow: hidden; }
  /* without the rail, the header shows menu button + brand */
  body:not(.tt-has-rail) #tt-rail { width: 320px; }
  #tt-top { padding: 0 20px; }
}
@media (min-width: 992px) { #tt-tab-explore { display: none; } }
/* ================= Listings ================= */
.tt-page-head { display: flex; align-items: center; gap: 16px; margin: 6px 0 14px; }
.tt-page-head h1 { margin: 0; }
.tt-page-thumb { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.tt-page-desc { color: var(--tt-text-2); font-size: 14px; margin-top: 4px; }
.tt-page-desc p:last-child { margin: 0; }
.tt-section-title { font-size: 18px; margin: 28px 0 14px; }
.tt-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; margin: 0 -2px; }
.tt-chips::-webkit-scrollbar { display: none; }
.tt-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: var(--tt-surface); color: var(--tt-text); font-weight: 600; font-size: 14px; border: 0; white-space: nowrap; }
.tt-chip:hover { background: var(--tt-surface-2); color: var(--tt-text); }
.tt-chip-ghost { background: transparent; border: 1px solid var(--tt-border); }
.tt-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; color: var(--tt-text-3); }
.tt-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 16px; }
.tt-toolbar .tt-chip-ghost { margin-right: auto; }
.tt-select { display: inline-flex; align-items: center; gap: 8px; margin: 0; background: var(--tt-surface); border-radius: 999px; padding: 0 6px 0 14px; font-size: 13px; color: var(--tt-text-3); }
.tt-select span { font-weight: 600; }
.tt-select select { background: transparent; border: 0; color: var(--tt-text); font-weight: 700; font-size: 14px; height: 38px; padding: 0 8px; outline: 0; max-width: 170px; }
.tt-select select option { background: var(--tt-elevated); color: var(--tt-text); }
.tt-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.tt-pager .pagination { margin: 0; }
.tt-results { color: var(--tt-text-3); font-size: 13px; }

/* product grid */
.tt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .tt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 992px) { .tt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .tt-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.col-sm-9 .tt-grid { }
@media (min-width: 992px) { .col-sm-9 .tt-grid, .col-sm-6 .tt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* horizontal rail (modules, related) */
.tt-hrail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 190px); gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 14px; margin: 0 -2px; scrollbar-width: thin; scrollbar-color: var(--tt-surface-2) transparent; }
@media (min-width: 768px) { .tt-hrail { grid-auto-columns: minmax(180px, 220px); gap: 16px; } }
.tt-hrail > .tt-card { scroll-snap-align: start; }
.tt-module { margin-bottom: 18px; }

/* card */
.tt-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--tt-surface); border-radius: 12px; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
@media (hover: hover) { .tt-card:hover { transform: translateY(-3px); box-shadow: var(--tt-shadow); } }
.tt-card-media { position: relative; display: block; aspect-ratio: 3 / 4; background: var(--tt-surface-2); overflow: hidden; }
.tt-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
@media (hover: hover) { .tt-card:hover .tt-card-media img { transform: scale(1.04); } }
.tt-card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tt-badge-play { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px 0 8px; border-radius: 13px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; font-size: 11px; }
.tt-badge-sale { position: absolute; top: 8px; left: 8px; height: 22px; line-height: 22px; padding: 0 9px; border-radius: 4px; background: var(--tt-accent); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.tt-card-body { padding: 10px 12px 4px; flex: 1; }
.tt-card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 14px; line-height: 1.35; color: var(--tt-text); min-height: 2.7em; }
.tt-stars { color: #ffc531; font-size: 11px; margin-top: 4px; white-space: nowrap; }
.tt-stars .fa-star-o { color: var(--tt-text-3); }
.tt-card-price { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.tt-price-now { font-weight: 800; font-size: 17px; color: var(--tt-text); }
.tt-card .tt-price-now { color: var(--tt-accent); }
.tt-price-old { color: var(--tt-text-3); text-decoration: line-through; font-size: 13px; }
.tt-price-tax { width: 100%; color: var(--tt-text-3); font-size: 12px; }
.tt-card-actions { display: flex; gap: 6px; padding: 8px 10px 10px; }
.tt-card-cart { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; border-radius: 8px; border: 0; background: var(--tt-accent); color: #fff; font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; padding: 0 8px; }
.tt-card-cart span { overflow: hidden; text-overflow: ellipsis; }
.tt-card-cart:hover { filter: brightness(1.1); }
.tt-card-icon { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 8px; border: 0; background: var(--tt-surface-2); color: var(--tt-text); font-size: 15px; }
.tt-card-icon:hover { background: var(--tt-surface-2); color: var(--tt-accent); }
@media (max-width: 420px) { .tt-card-cart span { display: none; } }

/* brands */
.tt-brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tt-brand-tile { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--tt-surface); font-weight: 600; }
.tt-brand-tile:hover { background: var(--tt-surface-2); color: var(--tt-text); }
.tt-brand-avatar { flex: 0 0 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--tt-accent), var(--tt-accent2)); color: #fff; font-weight: 800; text-transform: uppercase; }

/* search box */
.tt-searchbox { background: var(--tt-surface); border-radius: var(--tt-radius-lg); padding: 16px; margin-bottom: 8px; }
.tt-search-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 768px) { .tt-search-row { grid-template-columns: 1.4fr 1fr auto; } }
.tt-search-opts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; }

/* empty / success states */
.tt-empty-state, .tt-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 56px 16px; color: var(--tt-text-2); }
.tt-empty-state > i { font-size: 52px; color: var(--tt-text-3); }
.tt-state h1 { margin: 4px 0 0; }
.tt-state-icon { width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 38px; color: #fff; background: linear-gradient(135deg, #25f4ee, #3ddc97); }
.tt-state-icon.tt-state-warn { background: linear-gradient(135deg, var(--tt-accent), #ffb020); }
.tt-state-text { max-width: 560px; }
/* ================= Home video feed ================= */
.tt-home-feed { position: relative; height: 100vh; height: 100dvh; background: #000; color: #fff; overflow: hidden; }
@media (max-width: 991px) { .tt-has-tabbar .tt-home-feed { height: calc(100vh - var(--tt-tab-h) - var(--tt-safe-b)); height: calc(100dvh - var(--tt-tab-h) - var(--tt-safe-b)); } }
/* header floats over the feed */
.tt-has-feed #tt-app { height: 100vh; height: 100dvh; min-height: 0; }
.tt-has-feed #tt-top { position: fixed; top: 0; left: 0; right: 0; background: linear-gradient(#000a, #0000); border-bottom: 0; z-index: var(--z-top); color: #fff; pointer-events: none; }
.tt-has-feed #tt-top > * { pointer-events: auto; }
.tt-has-feed #tt-top .tt-icon-btn, .tt-has-feed #tt-top .tt-wordmark { color: #fff; }
@media (min-width: 992px) { .tt-has-rail.tt-has-feed #tt-top { left: var(--tt-rail-w); } }

.tt-feed { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: 0; }
.tt-feed::-webkit-scrollbar { display: none; }
.tt-slide { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; gap: 18px; padding: calc(var(--tt-top-h) + var(--tt-catbar-h) + 6px) 0 16px; box-sizing: border-box; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.tt-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(44px) brightness(.45) saturate(1.3); transform: scale(1.1); z-index: 0; }
.tt-stage { position: relative; z-index: 1; height: 100%; aspect-ratio: 9 / 16; max-width: 100%; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.tt-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tt-slide.is-playing .tt-poster { opacity: 0; transition: opacity .35s .25s; }
.tt-slide-image .tt-poster, .tt-slide-image.is-playing .tt-poster { opacity: 1; }
.tt-slide-image.is-active .tt-poster { animation: tt-kenburns 14s ease-in-out infinite alternate; }
@keyframes tt-kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
.tt-player { position: absolute; inset: 0; background: transparent; }
.tt-player iframe, .tt-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.tt-player video { object-fit: contain; }
.tt-stage.is-wide .tt-player iframe { height: auto; aspect-ratio: 16 / 9; top: 50%; bottom: auto; transform: translateY(-50%); }
.tt-tap { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.tt-slide[data-type="instagram"] .tt-tap, .tt-slide[data-type="streamable"] .tt-tap { display: none; }
.tt-slide[data-type="instagram"] .tt-shade { display: none; }
.tt-slide[data-type="instagram"] .tt-meta { display: none; }
.tt-pause { position: absolute; z-index: 3; top: 50%; left: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; font-size: 32px; padding-left: 5px; opacity: 0; transform: scale(.7); pointer-events: none; transition: opacity .18s, transform .18s; }
.tt-slide.is-paused .tt-pause { opacity: 1; transform: none; }
.tt-burst { position: absolute; z-index: 4; left: 50%; top: 50%; font-size: 96px; color: var(--tt-accent); margin: -48px 0 0 -48px; opacity: 0; pointer-events: none; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .5)); }
.tt-burst.go { animation: tt-burst .8s ease-out; }
@keyframes tt-burst { 0% { opacity: 0; transform: scale(.3) rotate(-12deg); } 25% { opacity: 1; transform: scale(1.15) rotate(6deg); } 70% { opacity: 1; transform: scale(1) rotate(0); } 100% { opacity: 0; transform: translateY(-40px) scale(1.05); } }
.tt-shade { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 52%; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); pointer-events: none; }
.tt-meta { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; padding: 0 16px 20px; pointer-events: none; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.tt-meta a, .tt-meta button { pointer-events: auto; }
.tt-user { display: inline-block; font-weight: 800; font-size: 17px; color: #fff; margin-bottom: 4px; }
.tt-user:hover { text-decoration: underline; color: #fff; }
.tt-title { display: block; font-weight: 700; font-size: 16px; line-height: 1.3; color: #fff; margin-bottom: 4px; }
.tt-title:hover { color: #fff; text-decoration: underline; }
.tt-desc { margin: 0 0 8px; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .9); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tt-meta .tt-stars { margin: 0 0 6px; }
.tt-meta .tt-stars small { color: rgba(255, 255, 255, .75); }
.tt-price { margin-bottom: 10px; font-size: 22px; line-height: 1.1; }
.tt-price strong { font-weight: 800; }
.tt-price s { font-size: 14px; color: rgba(255, 255, 255, .7); margin-left: 6px; }
.tt-cta { display: flex; flex-wrap: wrap; gap: 8px; text-shadow: none; }
.tt-cta .tt-btn { min-height: 40px; font-size: 14px; }
.tt-progress { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .25); opacity: 0; transition: opacity .2s; }
.tt-slide.is-active[data-type="file"] .tt-progress, .tt-slide.is-active[data-type="hls"] .tt-progress { opacity: 1; }
.tt-progress span { display: block; height: 100%; width: 0; background: #fff; }

/* right-hand action rail */
.tt-actions { position: relative; z-index: 5; align-self: flex-end; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 26px; }
.tt-act { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 0; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.tt-act i { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .16); font-size: 21px; transition: transform .15s, background .15s; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tt-act:hover { color: #fff; }
.tt-act:hover i { background: rgba(255, 255, 255, .28); }
.tt-act:active i { transform: scale(.88); }
.tt-act.liked i { color: var(--tt-accent); animation: tt-pulse .35s; }
@keyframes tt-pulse { 50% { transform: scale(1.25); } }
.tt-act span { min-height: 14px; }
.tt-act-avatar { margin-bottom: 4px; }
.tt-act-avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }

/* floating controls */
.tt-feed-ui { position: absolute; z-index: var(--z-feed-ui); inset: 0; pointer-events: none; }
.tt-mute { position: absolute; pointer-events: auto; top: calc(var(--tt-top-h) + var(--tt-catbar-h) + 14px); left: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .45); color: #fff; font-size: 17px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tt-mute i.fa-volume-up { }
.tt-feed-nav { position: absolute; pointer-events: auto; right: 22px; top: 50%; transform: translateY(-50%); display: none; flex-direction: column; gap: 12px; }
.tt-feed-nav button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 16px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tt-feed-nav button:hover { background: rgba(255, 255, 255, .26); }
.tt-feed-nav button[disabled] { opacity: .35; cursor: default; }
@media (min-width: 992px) {
  .tt-feed-nav { display: flex; }
  .tt-mute { left: 18px; top: calc(var(--tt-top-h) + var(--tt-catbar-h) + 12px); }
}
.tt-feed-loader { height: 80px; display: none; align-items: center; justify-content: center; color: #fff; font-size: 24px; scroll-snap-align: end; }
.tt-feed.is-loading .tt-feed-loader { display: flex; }

/* phones: full-bleed slides, actions on top of the video */
@media (max-width: 767px) {
  .tt-slide { padding: 0; display: block; }
  .tt-stage { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; max-width: none; border-radius: 0; box-shadow: none; }
  .tt-meta { padding: 0 76px 18px 14px; }
  .tt-actions { position: absolute; right: 8px; bottom: 18px; margin: 0; gap: 10px; }
  .tt-act i { width: 44px; height: 44px; font-size: 19px; }
  .tt-act-avatar img { width: 44px; height: 44px; }
  .tt-price { font-size: 20px; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .tt-slide { gap: 10px; }
}
@media (max-width: 400px) { .tt-cta .tt-btn-glass { display: none; } }
/* ================= Product page ================= */
.tt-pdp { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 8px; }
@media (min-width: 900px) { .tt-pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: start; } .tt-pdp-media { position: sticky; top: calc(var(--tt-top-h) + 16px); } }
.tt-gallery { position: relative; }
.tt-gallery ul.thumbnails { display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--tt-radius-lg); background: var(--tt-surface); -webkit-overflow-scrolling: touch; }
.tt-gallery ul.thumbnails::-webkit-scrollbar { display: none; }
.tt-gallery ul.thumbnails > li { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; aspect-ratio: 3 / 4; max-height: 80vh; margin: 0; padding: 0; float: none; }
.tt-gallery ul.thumbnails > li > a { display: block; width: 100%; height: 100%; background: transparent; border: 0; border-radius: 0; cursor: zoom-in; }
.tt-gallery ul.thumbnails > li img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tt-vstage { position: relative; width: 100%; height: 100%; background: #000; overflow: hidden; }
.tt-vstage .tt-poster { object-fit: cover; }
.tt-vstage .tt-player { position: absolute; inset: 0; }
.tt-vstage .tt-player iframe, .tt-vstage .tt-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tt-vstage .tt-player video { object-fit: contain; }
.tt-video-slide[data-ratio="16:9"] .tt-player iframe { height: auto; aspect-ratio: 16 / 9; top: 50%; transform: translateY(-50%); }
.tt-vplay { position: absolute; z-index: 3; top: 50%; left: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 30px; padding-left: 5px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tt-video-slide.is-playing .tt-vplay { display: none; }
.tt-video-slide.is-playing .tt-poster { opacity: 0; transition: opacity .3s .2s; }
.tt-vsound { position: absolute; z-index: 4; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .5); color: #fff; display: none; }
.tt-video-slide.is-playing .tt-vsound { display: block; }
.tt-gallery-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.tt-gallery-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: var(--tt-surface-2); }
.tt-gallery-dots button.on { background: var(--tt-text); width: 18px; border-radius: 4px; }
.tt-gal-prev, .tt-gal-next { position: absolute; top: calc(50% - 22px); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .5); color: #fff; display: none; z-index: 5; }
.tt-gal-prev { left: 10px; } .tt-gal-next { right: 10px; }
@media (hover: hover) { .tt-gallery.has-many:hover .tt-gal-prev, .tt-gallery.has-many:hover .tt-gal-next { display: block; } }

.tt-pdp-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tt-pdp-top h1 { margin: 0 0 6px; font-size: 24px; line-height: 1.25; }
.tt-pdp-tools { display: flex; gap: 2px; flex: 0 0 auto; }
.tt-pdp-tools .tt-icon-btn { background: var(--tt-surface); }
.tt-pdp-brand { display: inline-block; font-weight: 800; color: var(--tt-text-2); margin-bottom: 6px; }
.tt-pdp-rating { color: #ffc531; margin: 4px 0 6px; }
.tt-pdp-rating .fa-star-o { color: var(--tt-text-3); }
.tt-pdp-rating a { color: var(--tt-text-2); margin-left: 6px; text-decoration: underline; }
.tt-pdp-rating span { color: var(--tt-text-3); }
.tt-pdp-price { margin: 10px 0 2px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.tt-pdp-price strong { font-size: 32px; font-weight: 800; line-height: 1.1; }
.tt-pdp-price .tt-price-now { color: var(--tt-accent); }
.tt-pdp-price s { color: var(--tt-text-3); font-size: 18px; }
.tt-pdp-pricemeta { color: var(--tt-text-3); font-size: 13px; margin: 0 0 6px; }
.tt-pdp-pricemeta .tt-discount { display: inline-block; margin: 4px 6px 0 0; padding: 4px 10px; border-radius: 999px; background: var(--tt-surface); color: var(--tt-text-2); }
.tt-pdp-meta { margin: 12px 0 16px; padding: 12px 14px; border-radius: 10px; background: var(--tt-surface); font-size: 14px; display: grid; gap: 4px; }
.tt-pdp-meta span { color: var(--tt-text-3); margin-right: 4px; }
#product h3 { font-size: 16px; margin: 18px 0 10px; }
#product .form-group { margin-bottom: 14px; }
#product .radio label, #product .checkbox label { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--tt-surface); width: 100%; margin: 0; font-weight: 600; color: var(--tt-text); }
#product .radio input[type="radio"], #product .checkbox input[type="checkbox"] { position: static; margin: 0; flex: 0 0 auto; }
.tt-buy .tt-qty { display: inline-flex; align-items: center; background: var(--tt-input); border-radius: 10px; margin-bottom: 14px; }
.tt-buy .tt-qty input { width: 64px; text-align: center; background: transparent; padding: 0; font-weight: 700; }
.tt-qty button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--tt-text); }
.tt-qty button:hover { color: var(--tt-accent); }
.tt-buy { display: block; }
.tt-buy .control-label { display: block; margin-bottom: 8px; }
.tt-buy .tt-btn-lg { display: flex; }
.tt-pdp-tabs { margin-top: 30px; }
.tt-pdp-tabs #tab-description { line-height: 1.7; }
.tt-pdp-tabs #tab-description img { height: auto; border-radius: 8px; }
#review .table, #tab-review .table { margin-bottom: 8px; }
#form-review h2 { font-size: 18px; margin-top: 22px; }
#form-review input[type="radio"] { margin: 0 4px; }

/* sticky buy bar (phones) */
.tt-buybar { display: none; }
@media (max-width: 899px) {
  .tt-buybar { position: fixed; z-index: var(--z-buybar); left: 0; right: 0; bottom: calc(var(--tt-tab-h) + var(--tt-safe-b)); display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--tt-bg-rail); border-top: 1px solid var(--tt-border); }
  body:not(.tt-has-tabbar) .tt-buybar { bottom: var(--tt-safe-b); }
  .tt-buybar-price { flex: 1; font-size: 20px; line-height: 1.1; }
  .tt-buybar-price s { color: var(--tt-text-3); font-size: 13px; margin-left: 6px; }
  .tt-buybar .tt-btn { flex: 0 0 auto; }
  .tt-product { padding-bottom: 72px; }
}
@media (min-width: 900px) { .tt-pdp-tools .tt-icon-btn { width: 44px; height: 44px; } }

/* ================= Cart page ================= */
.tt-cart-page { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; }
@media (min-width: 992px) { .tt-cart-page { grid-template-columns: minmax(0, 1fr) 340px; } .tt-cart-summary { position: sticky; top: calc(var(--tt-top-h) + 16px); } }
.tt-line { display: grid; grid-template-columns: 84px 1fr; gap: 6px 14px; padding: 14px; margin-bottom: 10px; background: var(--tt-surface); border-radius: var(--tt-radius-lg); align-items: center; }
.tt-line-img { grid-row: span 2; width: 84px; height: 112px; border-radius: 10px; overflow: hidden; background: var(--tt-surface-2); display: flex; align-items: center; justify-content: center; color: var(--tt-text-3); font-size: 28px; }
.tt-line-img img { width: 100%; height: 100%; object-fit: cover; }
.tt-line-info { display: flex; flex-direction: column; min-width: 0; }
.tt-line-name { font-weight: 700; font-size: 16px; line-height: 1.3; }
.tt-line-info small { color: var(--tt-text-3); }
.tt-line-unit { color: var(--tt-text-2); margin-top: 4px; }
.tt-line-qty { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tt-line-qty .input-group { width: 168px; flex: none; }
.tt-line-qty .form-control { text-align: center; height: 40px; }
.tt-line-total { grid-column: 2; font-weight: 800; font-size: 18px; text-align: right; }
@media (min-width: 640px) {
  .tt-line { grid-template-columns: 96px 1fr 190px 110px; }
  .tt-line-img { grid-row: auto; width: 96px; height: 128px; }
  .tt-line-qty, .tt-line-total { grid-column: auto; }
}
.tt-summary-card { background: var(--tt-surface); border-radius: var(--tt-radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.tt-sum-row { display: flex; justify-content: space-between; color: var(--tt-text-2); }
.tt-sum-final { margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--tt-border); color: var(--tt-text); font-size: 22px; }
.tt-cart-modules h2 { font-size: 18px; }

/* ================= Account / checkout / info (default markup, skinned) ================= */
#checkout-checkout .panel-group .panel, #account-account .panel { background: var(--tt-surface); }
#checkout-checkout .panel-heading { cursor: pointer; }
#checkout-checkout .panel-title { font-size: 16px; }
#checkout-checkout .radio, #checkout-checkout .checkbox { margin: 8px 0; }
#checkout-checkout .table-responsive { margin-bottom: 10px; }
#account-login .well, #account-register .well { padding: 22px; }
#account-account h2 { font-size: 18px; margin-top: 26px; }
#account-account ul.list-unstyled { display: grid; gap: 2px; }
#account-account ul.list-unstyled a, .tt-sidelist a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--tt-text-2); }
#account-account ul.list-unstyled a:hover { background: var(--tt-surface); color: var(--tt-text); }
#information-information #content, #information-contact #content { max-width: 880px; }
#information-information #content h1 { margin-bottom: 18px; }
#information-information #content, #information-sitemap #content { line-height: 1.75; color: var(--tt-text-2); }
#information-sitemap ul { padding-left: 22px; }
#information-sitemap a { color: var(--tt-text-2); }
#product-compare .table td { vertical-align: top; }
#column-left, #column-right { margin-bottom: 18px; }
.col-sm-3 .list-group, aside#column-left .list-group, aside#column-right .list-group { margin-bottom: 20px; }
.carousel, .swiper-viewport { border-radius: var(--tt-radius-lg); overflow: hidden; }
.swiper-pagination-bullet-active { background: var(--tt-accent) !important; }
.swiper-viewport { box-shadow: none !important; border: 0 !important; margin-bottom: 20px; }
#content .row > [class*="col-"] > .product-thumb { background: var(--tt-surface); border: 0; border-radius: 12px; overflow: hidden; }
/* third-party modules that still emit the stock product grid */
.product-thumb { background: var(--tt-surface); border: 0; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.product-thumb .caption { padding: 10px 12px; }
.product-thumb .caption h4 a { color: var(--tt-text); }
.product-thumb .button-group { display: flex; border: 0; background: var(--tt-surface-2); }
.product-thumb .button-group button { flex: 1; border: 0; background: transparent; color: var(--tt-text); height: 40px; }
.product-thumb .button-group button:hover { color: var(--tt-accent); background: transparent; }
.product-thumb .price { color: var(--tt-accent); font-weight: 800; }
.product-thumb .price-old { color: var(--tt-text-3); text-decoration: line-through; font-weight: 400; }
.rating .fa-stack { width: 1em; }
.rating .fa-star, .rating .fa-star-o { color: #ffc531; }
.rating .fa-star + .fa-star-o { color: #ffc531; }
h2.price { color: var(--tt-text); }
.sticky-top { top: 0; }

/* ================= Account dashboard + auth ================= */
.tt-dash { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tt-dash-card { background: var(--tt-surface); border-radius: var(--tt-radius-lg); padding: 18px 16px 12px; }
.tt-dash-card h2 { font-size: 16px; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.tt-dash-card h2 .fa { color: var(--tt-accent); }
.tt-dash-card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--tt-text-3); margin: 14px 0 4px; }
#account-account .tt-dash-card ul.list-unstyled { display: grid; gap: 2px; margin: 0; }
.tt-auth { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; max-width: 880px; margin: 0 auto; }
.tt-auth .well { height: 100%; margin: 0; }


/* ================= Category bar on the home feed ================= */
.tt-catbar { position: absolute; left: 0; right: 0; top: var(--tt-top-h); z-index: var(--z-feed-ui); pointer-events: none; }
@media (min-width: 992px) { .tt-has-rail .tt-catbar { left: 0; } }
.tt-cat-row { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 5px 14px; scrollbar-width: none; pointer-events: auto; -webkit-overflow-scrolling: touch; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 26px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 26px), transparent 100%); cursor: grab; }
.tt-cat-row::-webkit-scrollbar { display: none; }
.tt-cat-row.is-drag { cursor: grabbing; scroll-snap-type: none; }
.tt-cat { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .38); color: rgba(255, 255, 255, .92); font-weight: 700; font-size: 14px; letter-spacing: .01em; white-space: nowrap; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: background .18s, color .18s, transform .12s; }
.tt-cat:hover { background: rgba(255, 255, 255, .22); }
.tt-cat:active { transform: scale(.96); }
.tt-cat.active { background: #fff; color: #111; box-shadow: none; }
.tt-cat .fa { font-size: 13px; opacity: .65; transition: transform .2s; }
.tt-cat.has-sub.active .fa { transform: rotate(90deg); opacity: 1; }
/* sub categories slide in sideways, in the secondary colour so the two levels never get confused */
.tt-cat-subs { max-height: 0; opacity: 0; overflow: hidden; padding-top: 0; padding-bottom: 0; transition: max-height .26s ease, opacity .2s ease, padding .26s ease; }
.tt-cat-subs.is-open { max-height: 52px; opacity: 1; padding-top: 3px; padding-bottom: 6px; overflow-x: auto; }
.tt-sub-group { display: none; flex: 0 0 auto; align-items: center; gap: 8px; }
.tt-sub-group.is-active { display: flex; animation: tt-slide-x .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes tt-slide-x { from { transform: translateX(34px); opacity: 0; } to { transform: none; opacity: 1; } }
.tt-subcat { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .45); background: color-mix(in srgb, var(--tt-accent2) 24%, rgba(0, 0, 0, .5)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tt-accent2) 60%, transparent); color: #fff; font-weight: 700; font-size: 13px; white-space: nowrap; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tt-subcat:hover { color: #fff; background: color-mix(in srgb, var(--tt-accent2) 40%, rgba(0, 0, 0, .4)); }
.tt-subcat.active { background: var(--tt-accent2); color: #06201f; box-shadow: none; }
.tt-subcat-go { color: var(--tt-accent2); background: transparent; box-shadow: none; padding-right: 6px; }
.tt-subcat-go:hover { background: transparent; color: #fff; }
.tt-home-feed[data-subs="1"] .tt-slide { padding-top: calc(var(--tt-top-h) + var(--tt-catbar-h) + 46px); }
@media (max-width: 767px) { .tt-slide, .tt-home-feed[data-subs="1"] .tt-slide { padding-top: 0; } }
.tt-feed-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: rgba(255, 255, 255, .7); text-align: center; padding: 0 30px; scroll-snap-align: start; }
.tt-feed-empty i { font-size: 46px; opacity: .6; }
.tt-feed.is-loading { opacity: .85; }

/* ================= Slide: swipe through extra pictures + expandable text ================= */
.tt-track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.tt-track::-webkit-scrollbar { display: none; }
.tt-pane { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.tt-pane-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.tt-count { position: absolute; z-index: 7; top: 12px; right: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 12px; font-weight: 700; pointer-events: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tt-dots { position: absolute; z-index: 7; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.tt-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .4); transition: width .2s, background .2s; }
.tt-dots i.on { width: 16px; border-radius: 3px; background: #fff; }
.tt-pane-nav { position: absolute; z-index: 7; top: calc(50% - 20px); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .5); color: #fff; display: none; opacity: 0; transition: opacity .15s; }
.tt-pane-prev { left: 10px; } .tt-pane-next { right: 10px; }
@media (hover: hover) { .tt-stage.has-panes:hover .tt-pane-nav { display: inline-flex; align-items: center; justify-content: center; opacity: 1; } .tt-pane-nav[disabled] { opacity: 0 !important; pointer-events: none; } }
.tt-descwrap { position: relative; }
.tt-more { pointer-events: auto; display: inline-block; margin: -4px 0 8px; padding: 2px 0; background: none; border: 0; color: #fff; font-size: 13px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.tt-more[hidden] { display: none; }
.tt-slide.is-desc-open .tt-desc { -webkit-line-clamp: unset; display: block; max-height: 34vh; overflow-y: auto; pointer-events: auto; padding-right: 6px; overscroll-behavior: contain; }
.tt-slide.is-desc-open .tt-shade { height: 82%; background: linear-gradient(transparent, rgba(0, 0, 0, .9) 38%); }
.tt-slide.is-desc-open .tt-meta { pointer-events: none; }
.tt-slide.is-desc-open .tt-count, .tt-slide.is-desc-open .tt-dots { opacity: 0; }

/* ================= Stock: sold out, notify me ================= */
.tt-btn-notify { background: transparent; color: var(--tt-text); box-shadow: inset 0 0 0 2px var(--tt-accent); }
.tt-slide .tt-btn-notify { color: #fff; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 2px #fff; }
.tt-btn-notify:hover { background: var(--tt-accent); color: #fff; box-shadow: none; }
.tt-oos-pill { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 9px; border-radius: 4px; background: rgba(255, 255, 255, .22); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.tt-badge-oos { position: absolute; top: 8px; left: 8px; height: 22px; line-height: 22px; padding: 0 9px; border-radius: 4px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.tt-card.is-oos .tt-card-media img { filter: grayscale(.85) brightness(.8); }
.tt-card.is-oos .tt-price-now { color: var(--tt-text-2); }
.tt-card-notify { background: var(--tt-surface-2); color: var(--tt-text); }
.tt-card-notify:hover { background: var(--tt-accent); color: #fff; }
.tt-oos-box { flex: 1 1 100%; padding: 16px; border-radius: var(--tt-radius-lg); background: var(--tt-surface); border: 1px dashed var(--tt-border); }
.tt-oos-title { font-weight: 800; margin-bottom: 6px; color: #ff7a8a; }
.tt-oos-box p { color: var(--tt-text-2); font-size: 14px; margin-bottom: 12px; }

/* bottom sheet used by "notify me" */
.tt-modal { position: fixed; inset: 0; z-index: var(--z-modal); display: flex; align-items: flex-end; justify-content: center; }
.tt-modal[hidden] { display: none; }
.tt-modal-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .62); animation: tt-fade .2s; }
.tt-modal-card { position: relative; width: min(100%, 440px); padding: 26px 22px calc(22px + var(--tt-safe-b)); border-radius: 22px 22px 0 0; background: var(--tt-elevated); color: var(--tt-text); box-shadow: var(--tt-shadow); text-align: center; animation: tt-rise .26s cubic-bezier(.2, .8, .2, 1); }
@media (min-width: 600px) { .tt-modal { align-items: center; } .tt-modal-card { border-radius: 22px; } }
@keyframes tt-fade { from { opacity: 0; } }
@keyframes tt-rise { from { transform: translateY(40px); opacity: 0; } }
.tt-modal-x { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--tt-surface); color: var(--tt-text); }
.tt-modal-icon { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; background: linear-gradient(135deg, var(--tt-accent), #ffb020); }
.tt-modal-card h3 { margin: 0 0 4px; font-size: 20px; }
.tt-modal-name { font-weight: 700; color: var(--tt-text-2); margin-bottom: 6px; }
.tt-modal-card p { color: var(--tt-text-2); font-size: 14px; }
.tt-modal-card form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.tt-modal-card input[type="email"] { height: 48px; border-radius: 12px; border: 1px solid var(--tt-border); background: var(--tt-input); color: var(--tt-text); padding: 0 16px; font-size: 16px; outline: 0; text-align: center; }
.tt-modal-card input[type="email"]:focus { border-color: var(--tt-accent); }
.tt-modal-msg { min-height: 20px; margin-top: 8px; font-size: 14px; }
.tt-modal-msg.is-error { color: #ff6b7d; }
.tt-modal-msg.is-ok { color: #3ddc97; font-weight: 700; }
.tt-modal.is-done form, .tt-modal.is-done .tt-modal-text { display: none; }
.tt-modal.is-done .tt-modal-icon { background: linear-gradient(135deg, #25f4ee, #3ddc97); }

/* ================= Product page: shake + highlight the missing option ================= */
.has-error.tt-flash, .tt-flash { animation: tt-shake .5s; }
@keyframes tt-shake { 15% { transform: translateX(-7px); } 35% { transform: translateX(6px); } 55% { transform: translateX(-4px); } 75% { transform: translateX(3px); } }
.has-error .form-control, .has-error .tt-qty { border-color: #ff5b6e !important; box-shadow: 0 0 0 3px rgba(255, 91, 110, .25); }
.has-error > label.control-label, .has-error .control-label { color: #ff7a8a; }

/* ================= Listings: infinite scroll + category header ================= */
.tt-js .tt-pager .pagination { display: none; }
.tt-js .tt-pager .tt-results { display: none; }
.tt-more-loader { display: flex; align-items: center; justify-content: center; gap: 10px; height: 64px; color: var(--tt-text-3); }
.tt-more-loader[hidden] { display: none; }
.tt-more-end { text-align: center; color: var(--tt-text-3); font-size: 13px; padding: 14px 0 6px; }
.tt-page-head { align-items: flex-start; padding: 16px; margin: 4px 0 14px; border-radius: var(--tt-radius-lg); background: linear-gradient(135deg, color-mix(in srgb, var(--tt-accent) 16%, transparent), color-mix(in srgb, var(--tt-accent2) 12%, transparent)); }
.tt-page-head > div { min-width: 0; flex: 1; }
.tt-page-thumb { flex: 0 0 64px; width: 64px; height: 64px; border: 2px solid var(--tt-border); background: var(--tt-surface-2); }
.tt-page-head h1 { font-size: 24px; line-height: 1.2; }
.tt-clamp-box { position: relative; }
.tt-clamp-box .tt-clamp-body { max-height: 4.5em; overflow: hidden; transition: max-height .25s ease; }
.tt-clamp-box.is-open .tt-clamp-body { max-height: 2000px; }
.tt-clamp-box.is-clamped:not(.is-open) .tt-clamp-body { -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.tt-clamp-toggle { display: none; margin-top: 4px; padding: 0; background: none; border: 0; color: var(--tt-accent); font-weight: 800; font-size: 13px; }
.tt-clamp-box.is-clamped .tt-clamp-toggle { display: inline-block; }
.tt-page-desc * { max-width: 100%; }
.tt-page-desc img { height: auto; border-radius: 8px; }
.tt-page-desc h1, .tt-page-desc h2, .tt-page-desc h3, .tt-page-desc h4 { font-size: 15px; margin: 6px 0; }
@media (max-width: 480px) { .tt-page-head { padding: 14px 12px; gap: 12px; } .tt-page-thumb { flex-basis: 52px; width: 52px; height: 52px; } .tt-page-head h1 { font-size: 21px; } }

/* ================= Round-2 fixes ================= */
/* controls that sit under the category bar follow it down when the second (sub category) row is open */
.tt-home-feed[data-subs="1"] .tt-mute { top: calc(var(--tt-top-h) + var(--tt-catbar-h) + 60px); }
/* category / page descriptions: no half cropped pictures while collapsed, tidy ones when expanded */
.tt-clamp-box:not(.is-open) .tt-clamp-body img, .tt-clamp-box:not(.is-open) .tt-clamp-body iframe, .tt-clamp-box:not(.is-open) .tt-clamp-body video, .tt-clamp-box:not(.is-open) .tt-clamp-body table { display: none; }
.tt-page-desc img { max-height: 360px; width: auto; object-fit: contain; display: block; margin: 8px auto; }
.tt-page-desc iframe, .tt-page-desc video { max-width: 100%; }
.tt-sentinel { height: 1px; width: 100%; pointer-events: none; }

/* ---- round 3: gallery video can't be paused (ads), shield over iframe ---- */
.tt-vshield { position: absolute; inset: 0; z-index: 2; background: transparent; touch-action: pan-x pan-y; }
.tt-video-slide:not(.is-playing) .tt-vshield { display: none; }

/* ---- round 3: order via WhatsApp / Telegram / SMS / phone ---- */
.tt-order { margin: 16px 0 6px; padding: 14px; border: 1px solid var(--tt-border); border-radius: 14px; background: var(--tt-surface); }
.tt-order-title { font-size: 13px; font-weight: 700; color: var(--tt-text-2); margin-bottom: 10px; letter-spacing: .02em; }
.tt-order-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tt-order-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: 10px; color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none !important; line-height: 1.2; text-align: center; transition: transform .12s, filter .12s; }
.tt-order-btn:hover { filter: brightness(1.08); }
.tt-order-btn:active { transform: scale(.97); }
.tt-order-btn .fa { font-size: 18px; }
.tt-order-whatsapp { background: #25d366; }
.tt-order-telegram { background: #229ed9; }
.tt-order-sms { background: #8a63f2; }
.tt-order-call { background: #2b2f3a; }
html[data-tt-mode="dark"] .tt-order-call { background: #3a3f4d; }
.tt-order-list .tt-order-btn:only-child, .tt-order-list .tt-order-btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
#tt-theme-btn .fa { font-size: 18px; }
