:root {
  --bg: #0f0c29;
  --bg2: #302b63;
  --accent: #ff5f6d;
  --accent2: #ffc371;
  --gold: #ffd700;
  --teal: #00e5c3;
  --pink: #ff2e88;
  --card: #1b1740;
  --card2: #241f52;
  --text: #ffffff;
  --muted: #b8b3d9;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg2) 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 12, 41, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 24px;
}
.logo {
  font-size: 30px;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  letter-spacing: -0.5px;
}
.logo-mark {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  color: #fff;
  width: 42px;
  height: 42px;
  line-height: 42px;
  text-align: center;
  border-radius: 12px;
  margin-right: 6px;
  font-weight: 800;
}
.logo-dot { color: var(--gold); }

.search-bar {
  flex: 1;
  display: flex;
  max-width: 560px;
  margin: 0 auto;
}
.search-bar input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: 30px 0 0 30px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: 0.2s;
}
.search-bar input::placeholder { color: var(--muted); }
.search-bar input:focus { border-color: var(--accent); background: rgba(255,255,255,0.15); }
.search-bar button {
  padding: 0 24px;
  border: none;
  border-radius: 0 30px 30px 0;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  color: #fff;
  cursor: pointer;
  font-size: 18px;
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 30px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.15s;
}
.wa-btn:hover { transform: scale(1.05); }

/* Category bar */
.category-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 24px;
  max-width: 1400px;
  margin: 0 auto;
}
.cat-chip {
  padding: 8px 18px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.2s;
}
.cat-chip:hover { background: rgba(255,255,255,0.15); }
.cat-chip.active {
  background: linear-gradient(135deg, var(--accent), var(--pink));
  border-color: transparent;
}

/* Carousel */
.carousel-section { max-width: 1400px; margin: 24px auto 0; padding: 0 24px; position: relative; }
.carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 0;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel::-moz-scrollbar { display: none; }
.carousel-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: transform 0.2s;
  position: relative;
}
.carousel-card:hover { transform: translateY(-6px); }
.carousel-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  background: var(--card2);
}
.carousel-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.badge-new { background: linear-gradient(135deg, var(--teal), #00b894); }
.badge-hot { background: linear-gradient(135deg, var(--accent), #e74c3c); }
.badge-arrival { background: linear-gradient(135deg, var(--gold), #e6a800); color: #333; }
.carousel-card .cc-info { padding: 10px 12px; }
.carousel-card .cc-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.carousel-card .cc-brand { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* Ticker */
.ticker {
  overflow: hidden;
  background: linear-gradient(90deg, var(--accent), var(--pink), var(--teal));
  padding: 9px 0;
  margin-top: 18px;
}
.ticker-track {
  display: flex;
  gap: 22px;
  white-space: nowrap;
  animation: scroll 26s linear infinite;
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  letter-spacing: 1px;
}
.ticker-track i { color: #fff; font-style: normal; opacity: 0.7; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Layout */
.filter-panel {
  width: 240px;
  position: sticky;
  top: 120px;
  height: calc(100vh - 140px);
  overflow-y: auto;
  padding: 22px 8px 22px 24px;
  float: left;
}
.products-main {
  flex: 1;
  padding: 22px 24px 60px;
  margin-left: 240px;
}
.filter-block { margin-bottom: 22px; }
.filter-block h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: var(--gold);
}
.filter-list { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-pill {
  padding: 6px 13px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  transition: 0.15s;
}
.filter-pill:hover { background: rgba(255,255,255,0.14); }
.filter-pill.active {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  border-color: transparent;
  color: #333;
  font-weight: 700;
}

/* Results */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}
#resultCount { color: var(--muted); font-size: 14px; }
.sort-wrap select {
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--card2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  font-family: inherit;
  outline: none;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.4);
}
.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: var(--card2);
}
.product-card .thumb-strip {
  display: flex;
  gap: 4px;
  padding: 6px;
}
.product-card .thumb-strip img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
}
.product-card .pc-info { padding: 10px 14px 14px; }
.product-card .pc-brand {
  font-size: 11.5px;
  color: var(--teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-card .pc-name { font-size: 13.5px; font-weight: 600; line-height: 1.35; margin-top: 3px; }
.product-card .pc-type { font-size: 11px; color: var(--muted); margin-top: 2px; }
.tag-flag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  color: #fff;
}
.flag-new { background: linear-gradient(135deg, var(--teal), #00b894); }
.flag-hot { background: linear-gradient(135deg, var(--accent), #e74c3c); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.page-btn {
  padding: 9px 16px;
  border-radius: 10px;
  background: var(--card2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}
.page-btn.active { background: linear-gradient(135deg, var(--accent), var(--pink)); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Order notice */
.order-notice {
  clear: both;
  text-align: center;
  max-width: 800px;
  margin: 40px auto;
  padding: 36px 24px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
}
.order-notice h2 { font-size: 26px; margin-bottom: 12px; }
.order-notice p { color: var(--muted); margin-bottom: 20px; line-height: 1.6; }
.wa-big {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
}

/* Lightbox */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox-inner {
  background: var(--card);
  border-radius: var(--radius);
  max-width: 700px;
  width: 100%;
  padding: 22px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.lb-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 30px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}
.lb-images { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.lb-images img { width: 200px; height: auto; border-radius: 10px; }
.lb-info { text-align: center; margin-top: 16px; }
.lb-info h2 { font-size: 20px; margin-bottom: 6px; }
.lb-info p { color: var(--muted); margin-bottom: 16px; }

@media (max-width: 860px) {
  .filter-panel { float: none; width: 100%; position: static; height: auto; padding: 16px 24px; }
  .products-main { margin-left: 0; }
  .header-inner { flex-wrap: wrap; }
  .wa-btn { display: none; }
}