/* ── Tyrespot Store — Black & White Professional Theme ───────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --ts-primary:       #111111;
  --ts-primary-light: #2d2d2d;
  --ts-accent:        #e53935;
  --ts-text:          #111111;
  --ts-text-muted:    #6b7280;
  --ts-bg:            #f5f5f5;
  --ts-white:         #ffffff;
  --ts-border:        #e5e7eb;
  --ts-success:       #15803d;
  --ts-warning:       #b45309;
  --ts-danger:        #be123c;
  --ts-radius:        10px;
  --ts-shadow:        0 2px 12px rgba(0,0,0,.07);
  --ts-shadow-hover:  0 8px 28px rgba(0,0,0,.13);
  --ts-navbar-h:      68px;
  --ts-ticker-h:      36px;
}

* { box-sizing: border-box; }
body {
  background: var(--ts-bg);
  color: var(--ts-text);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* ── Announcement Ticker ──────────────────────────────────────────────── */
.ts-ticker {
  background: #111111;
  color: #ffffff;
  height: var(--ts-ticker-h);
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
}
.ts-ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 38s linear infinite;
  gap: 0;
}
.ts-ticker:hover .ts-ticker-track { animation-play-state: paused; }
.ts-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .4px;
  padding: 0 40px;
  text-transform: uppercase;
}
.ts-ticker-item i { color: #ffffff; font-size: .72rem; opacity: .75; }
.ts-ticker-sep {
  display: inline-block;
  width: 4px; height: 4px;
  background: rgba(255,255,255,.35);
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Navbar ──────────────────────────────────────────────────────── */
.ts-navbar {
  background: #111111;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 28px;
  height: var(--ts-navbar-h);
  display: flex;
  align-items: center;
  gap: 12px;
}
.ts-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: #fff;
  font-weight: 700; font-size: 1.2rem; flex-shrink: 0;
}
.ts-nav-links { display: flex; gap: 2px; margin-left: auto; }
.ts-nav-links a {
  text-decoration: none; color: rgba(255,255,255,.72);
  padding: 8px 16px; border-radius: 6px;
  transition: .2s; font-size: .88rem; font-weight: 500;
  white-space: nowrap; letter-spacing: .2px;
}
.ts-nav-links a:hover,
.ts-nav-links a.active { color: #ffffff; background: rgba(255,255,255,.1); }

/* Navbar right actions */
.ts-navbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ts-nav-links + .ts-navbar-actions { margin-left: 16px; }
.ts-cart-btn {
  position: relative; background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 8px; padding: 8px 16px; cursor: pointer;
  color: #fff; display: flex; align-items: center; gap: 7px;
  font-size: .88rem; font-weight: 500; transition: .2s; white-space: nowrap;
}
.ts-cart-btn:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.4); }
.ts-cart-badge {
  background: var(--ts-accent); color: #fff; border-radius: 50%;
  min-width: 18px; height: 18px; font-size: .65rem;
  display: none; align-items: center; justify-content: center; font-weight: 700;
}
.ts-cart-badge.show { display: flex; }

/* Hamburger */
.ts-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 40px; height: 40px; background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 8px; cursor: pointer; padding: 8px; transition: .2s;
}
.ts-hamburger span {
  display: block; width: 100%; height: 2px; background: #fff;
  border-radius: 2px; transition: .3s;
}
.ts-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ts-hamburger.active span:nth-child(2) { opacity: 0; }
.ts-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.ts-hamburger:hover { background: rgba(255,255,255,.2); }

/* Mobile Nav */
.ts-mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.6); z-index: 1100;
}
.ts-mobile-overlay.open { display: block; }
.ts-mobile-nav {
  position: fixed; top: 0; left: -300px; width: 300px; height: 100vh;
  background: #111111; z-index: 1101;
  display: flex; flex-direction: column;
  box-shadow: 4px 0 32px rgba(0,0,0,.4);
  transition: left .3s ease;
}
.ts-mobile-nav.open { left: 0; }
.ts-mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.1);
  min-height: var(--ts-navbar-h);
}
.ts-mobile-close {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  font-size: 1rem; border-radius: 6px;
  cursor: pointer; color: #fff; padding: 6px 10px; transition: .2s;
}
.ts-mobile-close:hover { background: rgba(255,255,255,.2); }
.ts-mobile-links { display: flex; flex-direction: column; padding: 8px 0; }
.ts-mobile-links a {
  padding: 14px 24px; text-decoration: none; color: rgba(255,255,255,.8);
  font-size: .95rem; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.06);
  transition: .15s; display: flex; align-items: center; gap: 12px;
}
.ts-mobile-links a:hover,
.ts-mobile-links a.active { color: #fff; background: rgba(255,255,255,.1); }

/* ── Hero / Carousel ──────────────────────────────────────────────── */
.ts-hero {
  min-height: 440px; display: flex; align-items: center;
  background: linear-gradient(135deg, #111 0%, #2d2d2d 100%);
  color: #fff; padding: 56px 24px;
}
.ts-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin: 0 0 16px; line-height: 1.15; }
.ts-hero p { font-size: clamp(.95rem, 2vw, 1.1rem); opacity: .8; margin: 0 0 32px; }
.ts-hero-badge { font-size: .75rem; opacity: .6; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; }

.ts-carousel { position: relative; overflow: hidden; height: 460px; background: #111; }
.ts-carousel-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; transform: translateX(60px);
  transition: opacity .55s ease, transform .55s ease;
  pointer-events: none;
}
.ts-carousel-slide.active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.ts-carousel-slide.leaving { opacity: 0; transform: translateX(-60px); }
.ts-carousel-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ts-carousel-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.3) 60%, rgba(0,0,0,.1) 100%); }
.ts-carousel-content { position: relative; z-index: 1; color: #fff; padding: 48px 6%; max-width: 680px; }
.ts-carousel-content h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; margin: 0 0 14px; animation: slideUp .5s ease .1s both; }
.ts-carousel-content p { font-size: 1.05rem; opacity: .85; margin: 0 0 28px; animation: slideUp .5s ease .2s both; }
.ts-carousel-content a { animation: slideUp .5s ease .3s both; }
@keyframes slideUp { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }
.ts-carousel-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.ts-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); border: none; cursor: pointer; padding: 0; transition: width .3s, background .3s; }
.ts-dot.active { background: #fff; width: 28px; border-radius: 4px; }
.ts-carousel-prev, .ts-carousel-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,.25); color: #fff;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.1rem;
  cursor: pointer; z-index: 10; transition: .25s;
  display: flex; align-items: center; justify-content: center;
}
.ts-carousel-prev:hover, .ts-carousel-next:hover { background: rgba(255,255,255,.28); border-color: rgba(255,255,255,.55); }
.ts-carousel-prev { left: 22px; }
.ts-carousel-next { right: 22px; }

/* ── Section ─────────────────────────────────────────────────────── */
.ts-section { padding: 64px 0; }
.ts-section-alt { background: var(--ts-white); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.ts-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; flex-wrap: wrap; gap: 12px; }
.ts-section-title {
  font-size: 1.5rem; font-weight: 800; margin: 0;
  color: #111; position: relative; padding-bottom: 12px;
}
.ts-section-title::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 40px; height: 3px;
  background: #111; border-radius: 2px;
}
.ts-section-header .ts-section-title::after { display: block; }
.text-center .ts-section-title::after { left: 50%; transform: translateX(-50%); }

/* ── Feature strip (dark) ─────────────────────────────────────────── */
.ts-feature-strip {
  background: #111111;
  color: #fff;
  padding: 44px 0;
}
.ts-feature-strip .ts-section-title { color: #fff; }
.ts-feature-strip .ts-section-title::after { background: rgba(255,255,255,.4); }
.feature-icon {
  width: 60px; height: 60px;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin: 0 auto 16px;
  color: #fff;
  transition: background .2s;
}
.ts-feature-strip .feature-card:hover .feature-icon { background: rgba(255,255,255,.18); }
.feature-card { text-align: center; padding: 20px 16px; }
.ts-feature-strip .feature-card p { color: rgba(255,255,255,.8); }
.ts-feature-strip .feature-card .fw-600 { color: #fff; font-size: .95rem; margin-bottom: 6px; }
.ts-feature-strip .feature-card .fs-sm { font-size: .82rem; color: rgba(255,255,255,.62); margin: 0; }

/* ── Product Grid ────────────────────────────────────────────────── */
.ts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.ts-card {
  background: var(--ts-white); border-radius: var(--ts-radius);
  box-shadow: var(--ts-shadow); overflow: hidden; display: flex;
  flex-direction: column; transition: .2s; text-decoration: none; color: inherit;
  border: 1px solid rgba(0,0,0,.05);
}
.ts-card:hover { box-shadow: var(--ts-shadow-hover); transform: translateY(-4px); }
.ts-card-img {
  height: 168px; background: #f7f7f7; display: flex;
  align-items: center; justify-content: center; font-size: 3rem; color: #d1d5db; overflow: hidden;
}
.ts-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ts-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.ts-card-title { font-size: .9rem; font-weight: 600; margin: 0 0 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #111; }
.ts-card-meta { font-size: .77rem; color: var(--ts-text-muted); margin-bottom: 8px; }
.ts-card-price { font-size: 1.15rem; font-weight: 800; color: #111; margin-top: auto; margin-bottom: 12px; }
.ts-card-footer { padding: 0 16px 16px; }

/* ── Badges ──────────────────────────────────────────────────────── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: .70rem; font-weight: 600; margin-bottom: 6px; letter-spacing: .3px; }
.badge-success { background: #dcfce7; color: var(--ts-success); }
.badge-warning { background: #fef3c7; color: var(--ts-warning); }
.badge-danger  { background: #fce7f3; color: var(--ts-danger); }
.badge-primary { background: #f3f4f6; color: #111; border: 1px solid #e5e7eb; }
.badge-secondary { background: #f9fafb; color: #6b7280; border: 1px solid #e5e7eb; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 22px; border-radius: 8px; font-size: .88rem; font-weight: 600; cursor: pointer; border: none; transition: .2s; text-decoration: none; letter-spacing: .2px; }
.btn-primary { background: #111111; color: #fff; }
.btn-primary:hover { background: #2d2d2d; }
.btn-outline { background: transparent; border: 1.5px solid #111; color: #111; }
.btn-outline:hover { background: #111; color: #fff; }
.btn-ghost { background: transparent; color: var(--ts-text-muted); border: 1.5px solid var(--ts-border); }
.btn-ghost:hover { background: #f3f4f6; color: #111; }
.btn-danger { background: var(--ts-danger); color: #fff; }
.btn-danger:hover { background: #9b0a2e; }
.btn-sm { padding: 7px 16px; font-size: .80rem; }
.btn-lg { padding: 14px 30px; font-size: .98rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-icon { padding: 7px 9px; border-radius: 8px; background: none; border: 1.5px solid var(--ts-border); cursor: pointer; color: var(--ts-text-muted); transition: .2s; line-height: 1; }
.btn-icon:hover { border-color: #111; color: #111; }

/* ── Form ────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 7px; color: #374151; text-transform: uppercase; letter-spacing: .4px; }
.form-control { width: 100%; padding: 11px 14px; border: 1.5px solid #e5e7eb; border-radius: 8px; font-size: .9rem; outline: none; transition: .2s; background: #fff; color: #111; }
.form-control:focus { border-color: #111; box-shadow: 0 0 0 3px rgba(17,17,17,.07); }
.form-control.error { border-color: var(--ts-danger); }
.form-error { font-size: .78rem; color: var(--ts-danger); margin-top: 5px; display: none; }
.form-error:not(:empty) { display: block; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

/* ── Alert ───────────────────────────────────────────────────────── */
.alert { padding: 13px 18px; border-radius: 8px; font-size: .88rem; margin-bottom: 16px; }
.alert-danger  { background: #fff1f2; color: var(--ts-danger); border: 1px solid #fecdd3; }
.alert-success { background: #f0fdf4; color: var(--ts-success); border: 1px solid #bbf7d0; }

/* ── Skeleton ────────────────────────────────────────────────────── */
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton { background: linear-gradient(90deg,#f0f0f0 25%,#e6e6e6 50%,#f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }

/* ── Cart Drawer ─────────────────────────────────────────────────── */
.ts-drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 2000; }
.ts-drawer-overlay.open { display: block; }
.ts-drawer {
  position: fixed; top: 0; right: -420px; width: 390px; max-width: 100vw;
  height: 100vh; background: #fff; z-index: 2001;
  display: flex; flex-direction: column;
  box-shadow: -4px 0 32px rgba(0,0,0,.18); transition: right .3s ease;
}
.ts-drawer.open { right: 0; }
.ts-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--ts-border); background: #111; color: #fff; }
.ts-drawer-header .btn-icon { border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.8); }
.ts-drawer-header .btn-icon:hover { border-color: rgba(255,255,255,.6); color: #fff; background: rgba(255,255,255,.1); }
.ts-drawer-body { flex: 1; overflow-y: auto; padding: 16px; }
.ts-drawer-footer { padding: 18px; border-top: 1px solid var(--ts-border); }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ts-border); }
.cart-item-img { width: 60px; height: 60px; background: #f5f5f5; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #d1d5db; flex-shrink: 0; overflow: hidden; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: .85rem; font-weight: 600; margin: 0 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #111; }
.cart-item-meta { font-size: .75rem; color: var(--ts-text-muted); margin: 0 0 8px; }
.qty-control { display: inline-flex; align-items: center; gap: 8px; }
.qty-btn { width: 28px; height: 28px; border: 1.5px solid var(--ts-border); border-radius: 6px; background: none; cursor: pointer; font-size: .9rem; display: flex; align-items: center; justify-content: center; transition: .2s; font-weight: 600; }
.qty-btn:hover { border-color: #111; color: #111; background: #f3f4f6; }
.qty-val { font-size: .9rem; font-weight: 700; min-width: 24px; text-align: center; }

/* ── Footer ──────────────────────────────────────────────────────── */
.ts-footer { background: #0a0a0a; color: #9ca3af; padding: 56px 0 24px; }
.ts-footer h5 { color: #fff; font-size: .9rem; font-weight: 700; margin: 0 0 18px; text-transform: uppercase; letter-spacing: .8px; }
.ts-footer a { color: #9ca3af; text-decoration: none; font-size: .86rem; display: block; margin-bottom: 10px; transition: .2s; }
.ts-footer a:hover { color: #fff; }
.ts-footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ts-footer-logo span { color: #fff; font-weight: 700; font-size: 1.1rem; }
.ts-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  margin-top: 40px; padding-top: 22px;
  text-align: center; font-size: .78rem; color: #6b7280;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; }

/* ── Product Detail ──────────────────────────────────────────────── */
.ts-product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.ts-product-img {
  background: #f5f5f5; border-radius: var(--ts-radius);
  height: 380px; display: flex; align-items: center;
  justify-content: center; font-size: 5rem; color: #d1d5db; overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
}
.ts-product-img img { width: 100%; height: 100%; object-fit: contain; }
.ts-spec-table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.ts-spec-table td { padding: 11px 14px; border-bottom: 1px solid #f3f4f6; }
.ts-spec-table td:first-child { color: var(--ts-text-muted); width: 130px; font-weight: 600; text-transform: uppercase; font-size: .72rem; letter-spacing: .6px; }

/* ── Breadcrumb ──────────────────────────────────────────────────── */
.breadcrumb { display: flex; gap: 6px; align-items: center; font-size: .80rem; color: var(--ts-text-muted); margin-bottom: 22px; padding: 0; list-style: none; flex-wrap: wrap; }
.breadcrumb a { color: var(--ts-text-muted); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: #111; }
.breadcrumb-sep { opacity: .35; }

/* ── Shop Layout ─────────────────────────────────────────────────── */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; margin-top: 24px; }
.shop-sidebar { position: sticky; top: calc(var(--ts-navbar-h) + 12px); height: fit-content; }
.shop-filter-toggle { display: none; }

/* Shop sidebar card */
.shop-sidebar-card {
  background: #fff; border-radius: var(--ts-radius);
  border: 1px solid var(--ts-border);
  padding: 20px; margin-bottom: 16px;
}
.shop-sidebar-card h6 {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: #111; margin: 0 0 14px;
  padding-bottom: 10px; border-bottom: 1.5px solid #f3f4f6;
}

/* ── Checkout ────────────────────────────────────────────────────── */
.ts-checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; }
.ts-card-box { background: #fff; border-radius: var(--ts-radius); box-shadow: var(--ts-shadow); padding: 26px; margin-bottom: 22px; border: 1px solid rgba(0,0,0,.04); }
.ts-card-box h5 { font-size: .9rem; font-weight: 700; margin: 0 0 22px; display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .5px; color: #111; }
.ts-card-box h5 i { color: #6b7280; }
.order-summary-item { display: flex; justify-content: space-between; font-size: .87rem; margin-bottom: 10px; color: var(--ts-text-muted); }
.order-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.05rem; margin-top: 10px; padding-top: 14px; border-top: 2px solid #111; }
.radio-option { border: 1.5px solid var(--ts-border); border-radius: 8px; padding: 15px 18px; margin-bottom: 10px; cursor: pointer; transition: .2s; display: flex; align-items: flex-start; gap: 12px; }
.radio-option:hover { border-color: #888; }
.radio-option.selected { border-color: #111; background: #f9fafb; box-shadow: 0 0 0 2px #111; }
.radio-option input { margin-top: 3px; accent-color: #111; }

/* ── Utilities ───────────────────────────────────────────────────── */
.d-flex { display: flex; } .align-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.text-muted { color: var(--ts-text-muted); } .text-primary { color: #111; } .text-success { color: var(--ts-success); } .text-danger { color: var(--ts-danger); }
.fw-bold { font-weight: 700; } .fw-600 { font-weight: 600; }
.fs-sm { font-size: .82rem; } .fs-lg { font-size: 1.1rem; }
.w-100 { width: 100%; } .text-center { text-align: center; }
.row { display: grid; gap: 24px; }
.row-2 { grid-template-columns: 1fr 1fr; }
.row-3 { grid-template-columns: repeat(3, 1fr); }
.row-4 { grid-template-columns: repeat(4, 1fr); }
.divider { border: none; border-top: 1px solid var(--ts-border); margin: 18px 0; }
.text-huge { font-size: 2rem; font-weight: 800; }
.empty-state { text-align: center; padding: 64px 24px; color: var(--ts-text-muted); }
.empty-state .icon { font-size: 3.5rem; display: block; margin-bottom: 16px; opacity: .25; color: #111; }

/* ── Collection card ─────────────────────────────────────────────── */
.col-card { background: #fff; border-radius: var(--ts-radius); overflow: hidden; box-shadow: var(--ts-shadow); text-decoration: none; color: inherit; display: block; transition: .2s; border: 1px solid rgba(0,0,0,.05); }
.col-card:hover { box-shadow: var(--ts-shadow-hover); transform: translateY(-3px); }
.col-card-img { height: 160px; background: #f3f4f6; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #d1d5db; overflow: hidden; }
.col-card-img img { width: 100%; height: 100%; object-fit: cover; }
.col-card-body { padding: 16px; }

/* ── Spinner ─────────────────────────────────────────────────────── */
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.spinner-dark { border-color: rgba(17,17,17,.15); border-top-color: #111; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Loading overlay ─────────────────────────────────────────────── */
.loading-overlay { display: none; position: fixed; inset: 0; background: rgba(255,255,255,.75); z-index: 9999; align-items: center; justify-content: center; }
.loading-overlay.show { display: flex; }

/* ════════════════════════════════════════════════════════════════
   CUSTOMER AUTH PAGES
   ════════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: calc(100vh - 200px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px; background: #f5f5f5;
}
.auth-card {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 16px; padding: 44px 40px;
  width: 100%; max-width: 420px;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.auth-logo {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 1.2rem; font-weight: 800; color: #111;
  margin-bottom: 24px; text-decoration: none;
}
.auth-title { font-size: 1.4rem; font-weight: 800; margin: 0 0 6px; text-align: center; color: #111; }
.auth-sub { text-align: center; color: #6b7280; font-size: .88rem; margin: 0 0 26px; }
.auth-alert { padding: 12px 16px; border-radius: 8px; font-size: .87rem; margin-bottom: 18px; line-height: 1.5; }
.auth-alert--error   { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.auth-alert--success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.auth-link { color: #111; font-weight: 700; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-footer { text-align: center; font-size: .85rem; color: #6b7280; margin: 22px 0 0; }
.auth-eye-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 4px; font-size: .95rem; color: #9ca3af;
}
.auth-eye-btn:hover { color: #111; }
.ts-login-btn {
  padding: 8px 20px; background: #111; color: #fff;
  border-radius: 8px; font-size: .85rem; font-weight: 600;
  text-decoration: none; transition: background .2s; white-space: nowrap;
  border: 1.5px solid #111;
}
.ts-login-btn:hover { background: #2d2d2d; }

/* ── User Menu Dropdown ──────────────────────────────────────────── */
.ts-user-menu { position: relative; }
.ts-user-btn { background: none; border: none; cursor: pointer; padding: 0; display: flex; align-items: center; }
.ts-user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.2); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 700;
  border: 2px solid rgba(255,255,255,.3);
  transition: border-color .2s;
}
.ts-user-btn:hover .ts-user-avatar { border-color: rgba(255,255,255,.8); background: rgba(255,255,255,.28); }
.ts-user-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 12px);
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  box-shadow: 0 8px 36px rgba(0,0,0,.14); min-width: 224px; z-index: 1000; overflow: hidden;
}
.ts-user-dropdown.open { display: block; }
.ts-user-dropdown-header { padding: 14px 16px; border-bottom: 1px solid #f3f4f6; background: #f9fafb; }
.ts-user-dropdown-header strong { display: block; font-size: .9rem; color: #111; margin-bottom: 2px; font-weight: 700; }
.ts-user-dropdown-header span  { font-size: .76rem; color: #6b7280; }
.ts-user-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; font-size: .86rem; color: #374151;
  text-decoration: none; transition: background .15s;
}
.ts-user-dropdown a:hover { background: #f9fafb; }
.ts-user-dropdown-divider { height: 1px; background: #f3f4f6; margin: 4px 0; }

/* ── Logo images ─────────────────────────────────────────────────── */
.ts-logo-img { height: 52px; width: auto; display: block; object-fit: contain; }
.ts-footer-logo-img {
  height: 48px; width: auto; display: block; object-fit: contain;
  border-radius: 6px; padding: 6px 10px;
}
.ts-auth-logo-img { height: 72px; width: auto; display: block; margin: 0 auto 4px; object-fit: contain; }
.ts-logo .ts-logo-icon { display: none; }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */

/* Tablet — 1024px */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ts-checkout-grid { grid-template-columns: 1fr 320px; gap: 20px; }
  .ts-product-detail-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .row-4 { grid-template-columns: repeat(2, 1fr); }
  .ts-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .shop-layout { grid-template-columns: 220px 1fr; }
}

/* Mobile — 768px */
@media (max-width: 768px) {
  :root { --ts-navbar-h: 60px; --ts-ticker-h: 32px; }

  /* Ticker */
  .ts-ticker-item { font-size: .72rem; padding: 0 28px; }

  /* Navbar */
  .ts-nav-links { display: none; }
  .ts-hamburger { display: flex; }
  .ts-navbar { padding: 0 16px; }
  .cart-label { display: none; }
  .ts-cart-btn { padding: 7px 12px; }

  /* Hero */
  .ts-hero { min-height: 300px; padding: 36px 16px; }
  .ts-carousel { height: 320px; }
  .ts-carousel-content { padding: 28px 18px; }
  .ts-carousel-prev, .ts-carousel-next { width: 38px; height: 38px; font-size: 1rem; left: 12px; }
  .ts-carousel-next { left: auto; right: 12px; }

  /* Section */
  .ts-section { padding: 44px 0; }
  .ts-feature-strip { padding: 36px 0; }
  .container { padding: 0 16px; }

  /* Product grid */
  .ts-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .ts-card-img { height: 130px; }

  /* Shop layout */
  .shop-layout { grid-template-columns: 1fr; gap: 16px; }
  .shop-sidebar { position: static; }
  .shop-filter-toggle {
    display: flex; align-items: center; gap: 8px;
    width: 100%; padding: 11px 18px; background: #111; color: #fff;
    border: none; border-radius: 8px;
    font-size: .88rem; font-weight: 600; cursor: pointer; margin-bottom: 0;
  }
  .shop-filter-panel { display: none; }
  .shop-filter-panel.open { display: block; }

  /* Product detail */
  .ts-product-detail-grid { grid-template-columns: 1fr; gap: 20px; }
  .ts-product-img { height: 260px; }

  /* Checkout */
  .ts-checkout-grid { grid-template-columns: 1fr; }

  /* Grids */
  .row-3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .row-4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .row-2 { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .ts-footer { padding: 40px 0 20px; }

  /* Cart drawer */
  .ts-drawer { width: 100vw; }
}

/* Small mobile — 480px */
@media (max-width: 480px) {
  .ts-grid { grid-template-columns: 1fr; }
  .row-2, .row-3, .row-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .ts-hero { min-height: 260px; padding: 28px 14px; }
  .ts-carousel { height: 270px; }
  .ts-section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ts-card-box { padding: 18px; }
  .ts-spec-table td:first-child { width: 100px; font-size: .70rem; }
  .auth-card { padding: 28px 20px; }
}
