/* ============================================================
   Torres OS — Global Styles  ·  Torres Liquidations brand
   Dark #111 + orange (#ff7a00 / #e15505), Oswald + Barlow Condensed.
   Layout: StockX-style marketplace.
   ============================================================ */
:root {
  --bg:        #111113;
  --bg-2:      #16161a;
  --surface:   #1c1c21;
  --surface-2: #26262c;
  --line:      #2b2b33;
  --line-2:    #3d3d47;
  --text:      #f5f5f7;
  --muted:     #a3a3af;
  --accent:    #ff7a00;   /* Torres orange */
  --accent-2:  #e15505;   /* deep orange */
  --dark:      #0b0b0d;
  --green:     #35d07f;
  --red:       #ff5a60;
  --amber:     #fbbf24;
  --amber-bg:  rgba(251,191,36,.14);
  --radius:    12px;
  --maxw:      1280px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 14px 34px -14px rgba(0,0,0,.65);
  --glow:      0 0 0 1px rgba(255,122,0,.35), 0 10px 30px -12px rgba(255,122,0,.35);
  --font:      'Barlow Condensed', 'Inter', -apple-system, sans-serif;
  --font-head: 'Oswald', 'Barlow Condensed', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 17px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }
input, select, textarea { font-family: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; font-weight: 600;
  font-size: 15px; letter-spacing: .04em; transition: .15s ease;
  background: var(--surface); color: var(--text); border: 1px solid var(--line-2);
  font-family: var(--font-head); text-transform: uppercase;
}
.btn:hover { border-color: var(--accent); color: #fff; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; border-color: transparent;
}
.btn-primary:hover { filter: brightness(1.12); box-shadow: var(--glow); }
.btn-green { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }
.btn-green:hover { filter: brightness(1.12); box-shadow: var(--glow); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Announcement bar ---------- */
.announce {
  background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--accent-2));
  color: #fff; text-align: center;
  font-size: 13.5px; font-weight: 700; padding: 9px 16px; letter-spacing: .05em;
  font-family: var(--font-head); text-transform: uppercase;
}
.announce b { color: #111; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17,17,19,.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo img.logo-img { height: 62px; width: auto; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #fff; font-size: 17px; font-weight: 900;
}
.nav-search {
  flex: 1; max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 15px; transition: .15s;
}
.nav-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,122,0,.15); }
.nav-search input { background: none; border: none; color: var(--text); outline: none; width: 100%; font-size: 16px; font-weight: 500; }
.nav-search input::placeholder { color: var(--muted); }
.nav-right { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.cart-btn { position: relative; }
.cart-badge {
  position: absolute; top: -6px; right: -6px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 800; min-width: 19px; height: 19px; border-radius: 10px;
  display: grid; place-items: center; padding: 0 5px;
}
/* category strip under nav */
.nav-cats { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.nav-cats-inner { display: flex; gap: 4px; justify-content: center; overflow-x: auto; }
.nav-cats a {
  padding: 12px 20px; font-size: 15px; font-weight: 600; color: var(--text);
  border-bottom: 2px solid transparent; white-space: nowrap;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em;
}
.nav-cats a:hover { border-bottom-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  border-bottom: 1px solid var(--line); overflow: hidden;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(255,122,0,.16), transparent 60%),
    radial-gradient(700px 380px at 5% 115%, rgba(225,85,5,.10), transparent 60%),
    var(--bg-2);
}
.hero-inner { padding: 60px 0 58px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text);
  letter-spacing: .04em; text-transform: uppercase; font-family: var(--font-head);
}
.pill.live { color: #ff8b60; border-color: rgba(255,122,0,.45); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 { font-size: 60px; line-height: 1.04; letter-spacing: .01em; font-weight: 700; text-transform: uppercase; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), #ffb347);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub { color: var(--muted); font-size: 19px; margin: 18px 0 28px; max-width: 500px; font-weight: 400; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 40px; }
.hero-stats .s b { font-size: 28px; font-weight: 700; display: block; font-family: var(--font-head); }
.hero-stats .s span { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-md); }
.hero-card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.channel { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 10px; transition: .15s; background: var(--surface-2); }
.channel:hover { border-color: var(--accent); transform: translateX(3px); }
.channel .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; color: #fff; }
.channel .ic.ic-brand { background: transparent !important; }
.channel .ic svg { width: 42px; height: 42px; display: block; }
.channel b { display: block; font-size: 17px; font-family: var(--font-head); font-weight: 600; letter-spacing: .02em; }
.channel span { font-size: 14px; color: var(--muted); }
.channel .go { margin-left: auto; color: var(--accent); font-weight: 700; }

/* ---------- Category tiles ---------- */
.cat-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat-tile {
  background: var(--surface); border-radius: 16px; padding: 26px 18px 20px;
  text-align: center; transition: .18s ease; border: 1px solid var(--line); cursor: pointer;
}
.cat-tile:hover { border-color: var(--accent); box-shadow: var(--glow); transform: translateY(-3px); }
.cat-tile .em { font-size: 42px; line-height: 1; }
.cat-tile b { display: block; margin-top: 12px; font-size: 17px; font-weight: 600; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; }
.cat-tile span { font-size: 13.5px; color: var(--muted); font-weight: 500; }

/* ---------- Section headings ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; gap: 16px; }
.section-head h2 { font-size: 32px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.section-head p { color: var(--muted); font-size: 16px; margin-top: 2px; font-weight: 400; font-family: var(--font); }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-family: var(--font-head); }
.see-all { font-size: 15px; font-weight: 600; color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 1px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Filter chips ---------- */
.cat-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 17px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text); font-weight: 600; font-size: 14.5px; transition: .15s;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }
.chip .n { opacity: .6; font-size: 12.5px; font-weight: 700; }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: .18s ease; cursor: pointer;
}
.card:hover { box-shadow: var(--glow); transform: translateY(-3px); border-color: rgba(255,122,0,.5); }
.card .thumb {
  aspect-ratio: 4/3; position: relative; display: grid; place-items: center; font-size: 58px;
  background: linear-gradient(180deg, #202026, #17171b); overflow: hidden;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .tag {
  position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 6px; background: rgba(11,11,13,.72); backdrop-filter: blur(6px); border: 1px solid var(--line); color: var(--text);
  text-transform: uppercase; letter-spacing: .05em; font-family: var(--font-head);
}
.card .tag.low { background: var(--accent-2); color: #fff; border-color: transparent; }
.card .body { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card .brand { font-size: 12px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-head); }
.card .name { font-weight: 600; font-size: 17px; line-height: 1.25; font-family: var(--font-head); letter-spacing: .01em; }
.card .meta { font-size: 14px; color: var(--muted); font-weight: 400; }
.card .foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.card .price-label { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; display: block; font-family: var(--font-head); }
.card .price { font-size: 20px; font-weight: 700; color: var(--accent); font-family: var(--font-head); }
.card .add {
  border-radius: 999px; background: transparent; border: 1px solid var(--line-2); color: var(--text);
  padding: 8px 16px; font-weight: 600; font-size: 14px; transition: .15s;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .03em;
}
.card .add:hover { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); grid-column: 1/-1; font-weight: 500; }

/* ---------- Modal / Drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.62); backdrop-filter: blur(3px); z-index: 100; opacity: 0; pointer-events: none; transition: .2s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  position: fixed; z-index: 101; top: 50%; left: 50%; transform: translate(-50%, -46%);
  width: min(780px, 94vw); max-height: 90vh; overflow: auto; background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 18px; opacity: 0; pointer-events: none; transition: .2s; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
}
.modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; }
.modal-thumb { background: linear-gradient(180deg, #202026, #17171b); display: grid; place-items: center; font-size: 110px; min-height: 340px; }
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 28px; }
.modal-body .name { font-size: 27px; font-weight: 700; margin: 6px 0 10px; line-height: 1.1; font-family: var(--font-head); text-transform: uppercase; }
.modal-body .desc { color: var(--muted); font-size: 16px; margin: 14px 0; font-weight: 400; }
.spec { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec span { color: var(--muted); font-weight: 400; }
.modal-price { font-size: 36px; font-weight: 700; margin: 18px 0 14px; color: var(--accent); font-family: var(--font-head); }
.modal-price small { font-size: 12.5px; color: var(--muted); font-weight: 600; display: block; text-transform: uppercase; letter-spacing: .08em; }

/* Cart drawer */
.drawer {
  position: fixed; z-index: 101; top: 0; right: 0; height: 100vh; width: min(430px, 92vw);
  background: var(--surface); border-left: 1px solid var(--line-2); transform: translateX(100%);
  transition: .24s ease; display: flex; flex-direction: column; box-shadow: -20px 0 60px -30px rgba(0,0,0,.7);
}
.drawer.open { transform: translateX(0); }
.drawer-head { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.drawer-head h3 { font-size: 21px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.drawer-items { flex: 1; overflow: auto; padding: 8px 22px; }
.line { display: flex; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.line .li-thumb { width: 62px; height: 62px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font-size: 28px; flex-shrink: 0; overflow: hidden; }
.line .li-thumb img { width: 100%; height: 100%; object-fit: cover; }
.line .li-info { flex: 1; min-width: 0; }
.line .li-info b { font-size: 16px; display: block; font-family: var(--font-head); font-weight: 600; }
.line .li-info span { font-size: 14px; color: var(--muted); font-weight: 400; }
.line .li-x { color: var(--muted); background: none; font-size: 16px; }
.drawer-foot { padding: 20px 22px; border-top: 1px solid var(--line); background: var(--bg-2); }
.row-tot { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 15px; color: var(--muted); font-weight: 400; }
.row-tot.grand { color: var(--text); font-size: 22px; font-weight: 700; margin: 10px 0 16px; font-family: var(--font-head); }
.row-tot.grand span:last-child { color: var(--accent); }
.icon-btn { background: var(--surface-2); border: 1px solid var(--line-2); width: 36px; height: 36px; border-radius: 999px; color: var(--text); display: grid; place-items: center; font-size: 16px; cursor: pointer; transition: .15s; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.qty button { background: var(--surface-2); color: var(--text); width: 32px; height: 32px; font-size: 16px; font-weight: 700; }
.qty button:hover { color: var(--accent); }
.qty span { width: 38px; text-align: center; font-weight: 700; font-size: 15px; }

/* ---------- Trust bar ---------- */
.trust { border-bottom: 1px solid var(--line); background: var(--bg); }
.trust-inner { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding: 22px 0; }
.trust .t { text-align: center; display: flex; align-items: center; justify-content: center; gap: 10px; }
.trust .t .ic { font-size: 20px; }
.trust .t b { display: block; font-size: 15px; font-family: var(--font-head); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.trust .t span { font-size: 13px; color: var(--muted); font-weight: 400; }
.trust .t > div { text-align: left; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 52px 0 32px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 34px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.footer a { display: block; color: var(--text); font-size: 16px; padding: 5px 0; font-weight: 400; }
.footer a:hover { color: var(--accent); }
.footer a.foot-chan { display: flex; align-items: center; gap: 9px; }
.foot-logo { width: 20px; height: 20px; flex-shrink: 0; display: block; }
.footer .fine { color: var(--muted); font-size: 15px; font-weight: 400; }
.footer img.logo-img { height: 84px; width: auto; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 14px; font-weight: 400; }
.pay-marks { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pay-marks .pm { background: var(--surface); border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 9px; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; font-family: 'Inter', sans-serif; }
.pay-logo { height: 26px; width: auto; display: block; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--dark); color: #fff; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--accent-2);
  font-size: 15px; font-weight: 600; box-shadow: 0 0 24px -6px rgba(255,122,0,.5); animation: pop .25s ease;
  font-family: var(--font-head); letter-spacing: .03em;
}
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .07em; font-family: var(--font-head); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 11px 13px; color: var(--text); font-size: 16px; outline: none; transition: .15s; font-weight: 400;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,122,0,.14); }
.field textarea { resize: vertical; min-height: 80px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
select.btn { appearance: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cat-tiles { grid-template-columns: repeat(3, 1fr); }
  .trust-inner { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 46px; }
  .modal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 38px; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .logo img.logo-img { height: 48px; }

  /* Search gets its own full-width row on phones instead of being hidden.
     With 500+ products, search is the main way people find anything. */
  .nav-inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .logo { order: 1; }
  .nav-right { order: 2; margin-left: auto; }
  .nav-search { order: 3; flex: 1 1 100%; max-width: none; margin: 0; padding: 12px 14px; }
  .nav-search input { font-size: 16px; }   /* 16px stops iOS zooming on focus */
}
