/* ============ FORMD Luxury Theme ============ */
:root {
  --bg: #0b0b0d;
  --bg-2: #111114;
  --surface: #16161a;
  --surface-2: #1d1d22;
  --line: #26262c;
  --text: #f4f1ea;
  --muted: #a09a8e;
  --gold: #c9a96a;
  --gold-2: #e0c894;
  --gold-deep: #8c733e;
  --accent: #c9a96a;
  --danger: #d8493e;
  --radius: 14px;
  --max: 1320px;
  --transition: 0.4s cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Display heading font */
h1, h2, h3, .display {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}

/* ============ Top Contact Bar ============ */
.topbar {
  background: linear-gradient(90deg, #060607 0%, #0b0b0d 50%, #060607 100%);
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  font-size: 12px;
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.topbar-msg {
  color: var(--gold);
  letter-spacing: 0.08em;
  font-weight: 500;
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-channels {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.tb-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
}
.tb-link:hover { color: white; transform: translateY(-1px); }
.tb-tiktok:hover  { background: linear-gradient(135deg, #ff0050, #000); }
.tb-facebook:hover { background: #1877f2; }
.tb-shopee:hover  { background: #ee4d2d; }
.tb-lazada:hover  { background: #9b54f3; }
.tb-line:hover    { background: #06c755; }
.tb-admin {
  margin-left: 8px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--gold);
}
.tb-admin:hover { background: var(--gold); color: var(--bg); border-left-color: transparent; }

/* Admin icon in nav */
.admin-icon {
  border: 1px solid var(--gold-deep) !important;
  color: var(--gold) !important;
  position: relative;
}
.admin-icon:hover {
  background: var(--gold) !important;
  color: var(--bg) !important;
  border-color: var(--gold) !important;
}

@media (max-width: 780px) {
  .topbar-msg { display: none; }
  .topbar-inner { justify-content: center; padding: 0 12px; }
  .topbar-channels { gap: 2px; }
  .tb-link span { display: none; }
  .tb-link { padding: 6px 8px; }
}

/* ============ Navigation ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  color: #0a0a0a;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(201, 169, 106, 0.25);
}
.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.32em;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  border: 1px solid transparent;
  transition: all var(--transition);
}
.icon-btn:hover {
  border-color: var(--line);
  background: var(--surface);
  color: var(--gold);
}
.cta-btn {
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}
.cta-btn:hover {
  background: var(--gold);
  color: var(--bg);
}
.cart-count {
  background: var(--bg);
  color: var(--text);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  padding: 80px 40px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(201, 169, 106, 0.18), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(201, 169, 106, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  right: -10%;
  top: -10%;
  width: 60%;
  height: 120%;
  background-image: url('images/polo_player_05.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: grayscale(60%) contrast(1.1);
  mask-image: linear-gradient(to left, black 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 30%, transparent 100%);
}
.hero-content {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  z-index: 2;
}
.hero-title {
  font-size: clamp(56px, 10vw, 144px);
  font-weight: 500;
  margin-bottom: 28px;
  line-height: 0.95;
}
.hero-title em {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 40px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.btn-primary {
  background: var(--gold);
  color: #0a0a0a;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
  border: 1px solid var(--gold);
}
.btn-primary:hover {
  background: var(--gold-2);
  border-color: var(--gold-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(201, 169, 106, 0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hero-meta {
  display: flex;
  gap: 60px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  max-width: 600px;
}
.hero-meta div { display: flex; flex-direction: column; gap: 4px; }
.hero-meta strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  color: var(--gold);
  font-weight: 600;
}
.hero-meta span {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============ Section heads ============ */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 16px;
}
.section-sub {
  color: var(--muted);
  font-size: 16px;
}

/* ============ Categories ============ */
.categories {
  padding: 120px 40px;
  background: var(--bg-2);
}
.cat-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat-grid-5 { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition);
}
.cat-card:hover { transform: translateY(-4px); }
.cat-jersey {
  background-image: url('images/jersey_1730475168151472930.webp');
}
.cat-jersey::before {
  content: '♪ TikTok Shop';
  position: absolute;
  top: 20px; right: 20px;
  background: linear-gradient(135deg, #ff0050, #000);
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 3;
  box-shadow: 0 4px 16px rgba(255,0,80,0.4);
}
.cat-polo-fan      { background-image: url('images/polo_fan_01.jpg'); }
.cat-polo-player   { background-image: url('images/polo_player_02.jpg'); }
.cat-tshirt        { background-image: url('images/tshirt_03.jpg'); }
.cat-footballset   { background-image: url('images/footballset_05.jpg'); }
.cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.85) 100%);
  transition: opacity var(--transition);
}
.cat-card:hover .cat-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.9) 100%);
}
.cat-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 36px;
  color: white;
}
.cat-tag {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}
.cat-info h3 {
  font-size: 38px;
  margin-bottom: 12px;
}
.cat-info p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
}
.cat-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.cat-card:hover .cat-link { gap: 14px; }

/* ============ Catalog ============ */
.catalog {
  padding: 120px 40px;
}
.filters {
  max-width: var(--max);
  margin: 0 auto 48px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all var(--transition);
}
.chip:hover {
  border-color: var(--gold);
  color: var(--text);
}
.chip.active {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}
.search-wrap, .sort-wrap { flex: 1; min-width: 220px; max-width: 320px; }
#searchInput, #sortSelect {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}
#searchInput:focus, #sortSelect:focus { border-color: var(--gold); }
#sortSelect {
  appearance: none;
  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' fill='none'><path d='M1 1l5 5 5-5' stroke='%23a09a8e' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 40px;
  cursor: pointer;
}

.product-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-deep);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(201, 169, 106, 0.1);
}
.product-img {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #1a1a1f;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.product-card:hover .product-img img { transform: scale(1.06); }
.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(10px);
  color: var(--gold);
  padding: 5px 11px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.product-badge.tiktok {
  background: linear-gradient(135deg, #ff0050, #000);
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.product-card.has-link .product-quick {
  background: linear-gradient(135deg, #ff0050, #000);
  color: white;
}
.product-card.has-link:hover {
  border-color: #ff0050;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(255, 0, 80, 0.2);
}
.tiktok-ribbon {
  position: absolute;
  top: 14px;
  right: -30px;
  transform: rotate(35deg);
  background: linear-gradient(135deg, #ff0050, #00f2ea);
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 4px 36px;
  box-shadow: 0 4px 12px rgba(255,0,80,0.4);
  text-transform: uppercase;
}

/* ============ Jersey minimal card (links to TikTok) ============ */
.jersey-card {
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  background: transparent;
  border: 1px solid var(--line);
  padding: 0 !important;
  display: block;
}
.jersey-card:hover { border-color: #ff0050; }
.jersey-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  overflow: hidden;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.jersey-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 0, 80, 0.22), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(0, 242, 234, 0.16), transparent 55%),
    linear-gradient(135deg, #1a1a20 0%, #0a0a0c 100%);
  z-index: 0;
}
.jersey-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.jersey-bg::after {
  content: 'F';
  position: absolute;
  right: -30px;
  bottom: -60px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 280px;
  line-height: 1;
  color: rgba(201, 169, 106, 0.08);
  letter-spacing: -0.04em;
  transition: all 0.5s;
}
.jersey-card:hover .jersey-bg::after {
  color: rgba(255, 0, 80, 0.16);
  transform: scale(1.1) rotate(-8deg);
}
.jersey-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}
.jersey-brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  color: #0a0a0a;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 700;
  border-radius: 6px;
}
.jersey-brand-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--text);
}
.jersey-meta {
  position: relative;
  z-index: 2;
}
.jersey-sku {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-bottom: 14px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}
.jersey-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 8px;
}
.jersey-cta {
  position: relative;
  z-index: 2;
}
.jersey-cta-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #ff0050, #000);
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all var(--transition);
  box-shadow: 0 6px 18px rgba(255, 0, 80, 0.2);
}
.jersey-card:hover .jersey-cta-inner {
  transform: translateX(4px);
  box-shadow: 0 10px 28px rgba(255, 0, 80, 0.4);
}
.product-quick {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--bg);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transition: all var(--transition);
}
.product-card:hover .product-quick {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.product-info {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-cat {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}
.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
}
.product-price .price {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}
.product-price .currency {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.product-stock {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.product-stock.low { color: var(--danger); }

.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.empty-state h3 { font-size: 32px; margin-bottom: 12px; }

/* ============ Brand Story ============ */
.story {
  padding: 120px 40px;
  background: var(--bg-2);
}
.story-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.story-text h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  margin-bottom: 28px;
}
.story-text p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 18px;
}
.story-points {
  list-style: none;
  margin-top: 28px;
}
.story-points li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--text);
}
.story-points strong { color: var(--gold); margin-right: 12px; font-size: 18px; }

.story-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 600px;
}
.visual-card {
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  transition: transform var(--transition);
}
.visual-card:hover { transform: scale(1.02); }
.v1 {
  grid-row: 1/3;
  background-image: url('images/polo_player_10.jpg');
}
.v2 { background-image: url('images/footballset_15.jpg'); }
.v3 { background-image: url('images/polo_fan_08.jpg'); }

/* ============ Live CTA ============ */
.live-cta {
  padding: 120px 40px;
  background:
    radial-gradient(ellipse at center, rgba(201, 169, 106, 0.12), transparent 60%),
    var(--bg);
  text-align: center;
}
.live-inner {
  max-width: 700px;
  margin: 0 auto;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(216, 73, 62, 0.15);
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.live-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}
.live-cta h2 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 20px;
}
.live-cta p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 32px;
}

/* ============ Channels (Contact) ============ */
.channels {
  padding: 110px 40px 120px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.channels-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.channel {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.channel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.03));
  opacity: 0;
  transition: opacity var(--transition);
}
.channel:hover { transform: translateY(-3px); }
.channel:hover::before { opacity: 1; }
.channel-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  flex-shrink: 0;
  color: white;
  transition: transform var(--transition);
}
.channel:hover .channel-icon { transform: scale(1.08); }
.channel-text { flex: 1; min-width: 0; }
.channel-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 3px;
  color: var(--text);
}
.channel-handle {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Brand colors per platform */
.channel-tiktok:hover   { border-color: #ff0050; }
.channel-tiktok .channel-icon { background: linear-gradient(135deg, #ff0050, #000); }

.channel-facebook:hover { border-color: #1877f2; }
.channel-facebook .channel-icon { background: linear-gradient(135deg, #1877f2, #0c4fc6); }

.channel-shopee:hover   { border-color: #ee4d2d; }
.channel-shopee .channel-icon { background: linear-gradient(135deg, #ee4d2d, #d73c12); }

.channel-lazada:hover   { border-color: #9b54f3; }
.channel-lazada .channel-icon { background: linear-gradient(135deg, #9b54f3, #0a1d7a); }

.channel-line:hover     { border-color: #06c755; }
.channel-line .channel-icon { background: linear-gradient(135deg, #06c755, #06a048); }

/* ============ Footer ============ */
footer {
  background: #060607;
  border-top: 1px solid var(--line);
  padding: 80px 40px 30px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }
.brand-footer { margin-bottom: 18px; }
.footer-desc {
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
}
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ============ Modal ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  animation: rise 0.4s cubic-bezier(.2,.7,.2,1);
}
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: white;
  font-size: 22px;
  display: grid;
  place-items: center;
  z-index: 2;
  backdrop-filter: blur(8px);
  transition: background var(--transition);
}
.modal-close:hover { background: rgba(0,0,0,0.8); }
.modal-img {
  background: #1a1a1f;
  aspect-ratio: 1/1;
}
.modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-body {
  padding: 40px 36px;
  overflow-y: auto;
}
.m-cat {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.modal-body h3 {
  font-size: 38px;
  margin: 12px 0 18px;
  line-height: 1.1;
}
.m-price {
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}
.m-stock {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.m-sizes-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 600;
}
.m-sizes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.size-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: all var(--transition);
  min-width: 60px;
}
.size-btn:hover { border-color: var(--gold); color: var(--gold); }
.size-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.size-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}
.size-btn small { display: block; font-size: 10px; opacity: 0.6; margin-top: 2px; }
.modal-cta { width: 100%; justify-content: center; margin-bottom: 12px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--text);
  color: var(--bg);
  padding: 16px 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  z-index: 2000;
  animation: toastIn 0.3s, toastOut 0.3s 2.5s forwards;
}
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toastOut { to { transform: translateY(20px); opacity: 0; } }

/* ============ Responsive ============ */
@media (max-width: 1200px) {
  .cat-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-inner { padding: 16px 20px; }
  .hero { padding: 60px 20px; }
  .hero-meta { gap: 30px; }
  .hero-meta strong { font-size: 28px; }
  .categories, .catalog, .story, .live-cta { padding: 80px 20px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-visual { height: 400px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .modal-card { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .modal-img { aspect-ratio: 4/3; }
  .modal-body { padding: 28px 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-info { padding: 14px; }
  .product-name { font-size: 17px; }
  .filter-group { width: 100%; }
  .search-wrap, .sort-wrap { width: 100%; max-width: 100%; }
  .hero-actions { width: 100%; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; }
}
