@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Fira+Code:wght@400;500;600&display=swap');

:root {
  --bg-dark:       #060b14;
  --bg-card:       rgba(13, 21, 38, 0.75);
  --bg-card-hover: rgba(17, 29, 52, 0.9);
  --border:        rgba(99, 179, 237, 0.12);
  --border-hover:  rgba(13, 148, 136, 0.5);
  --text-primary:  #e2e8f0;
  --text-muted:    #64748b;
  --text-dim:      #94a3b8;
  --teal:          #0d9488;
  --teal-light:    #14b8a6;
  --teal-glow:     rgba(13, 148, 136, 0.18);
  --orange:        #f97316;
  --orange-glow:   rgba(249, 115, 22, 0.18);
  --blue-accent:   #3b82f6;
  --purple-accent: #8b5cf6;
  --font-main:     'Plus Jakarta Sans', sans-serif;
  --font-code:     'Fira Code', monospace;
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --radius-card:   20px;
  --radius-btn:    12px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ─── Animated dot-grid background ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(rgba(13,148,136,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ─── Ambient glow orbs ─── */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  animation: floatGlow 8s ease-in-out infinite alternate;
}
.glow-1 { width: 700px; height: 700px; background: radial-gradient(circle, rgba(13,148,136,0.25), transparent 70%); top: -250px; left: -200px; }
.glow-2 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(249,115,22,0.18), transparent 70%); bottom: -200px; right: -150px; animation-delay: -4s; }
.glow-3 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(59,130,246,0.12), transparent 70%); top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: -2s; }

@keyframes floatGlow {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.05); }
}

/* ─── Container ─── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ─── Header ─── */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 11, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

/* Logo */
.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cd-logo-svg {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.logo-text {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 1.5px;
  font-family: var(--font-code);
  background: linear-gradient(135deg, #fff 0%, var(--teal-light) 60%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Nav */
nav { display: flex; gap: 8px; align-items: center; }
nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 7px 14px;
  border-radius: 99px;
  transition: all 0.25s var(--ease);
  border: 1px solid transparent;
}
nav a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
nav a.active {
  color: var(--teal-light);
  background: var(--teal-glow);
  border-color: rgba(13,148,136,0.25);
}

/* ─── Hero ─── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-glow);
  border: 1px solid rgba(13,148,136,0.3);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-eyebrow-dot { width: 6px; height: 6px; background: var(--teal-light); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:0.5;transform:scale(0.7);} }

.hero h1 {
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
  background: linear-gradient(140deg, #ffffff 30%, #94d8d1 60%, #0d9488 80%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
  background-size: 200% 200%;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero p {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

/* Terminal SVG illustration */
.hero-terminal {
  display: inline-block;
  max-width: 540px;
  width: 100%;
  margin: 0 auto 40px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border), 0 20px 60px rgba(0,0,0,0.5), 0 0 80px var(--teal-glow);
}

/* ─── Search Bar ─── */
.search-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}
.search-input {
  width: 100%;
  padding: 16px 56px;
  background: rgba(13, 21, 38, 0.8);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-main);
  outline: none;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
  border-color: var(--teal);
  background: rgba(17, 29, 52, 0.9);
  box-shadow: 0 0 0 4px var(--teal-glow), 0 8px 40px rgba(0,0,0,0.4);
}
.search-icon {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 18px; pointer-events: none;
}
.search-clear {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); cursor: pointer; background: rgba(255,255,255,0.07);
  border: none; font-size: 13px; width: 26px; height: 26px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; text-decoration: none;
}
.search-clear:hover { color: #fff; background: rgba(255,255,255,0.14); }

/* ─── SVG Wave Divider ─── */
.wave-divider { display: block; width: 100%; height: 70px; margin-bottom: -2px; position: relative; z-index: 1; }

/* ─── Main Content ─── */
.main-content { flex: 1; padding-bottom: 80px; position: relative; z-index: 1; }

.section-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, var(--teal), transparent);
  border-radius: 4px;
}
.section-title.orange::before { background: linear-gradient(180deg, var(--orange), transparent); }
.section-title-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  background: var(--orange-glow);
  color: var(--orange);
  border: 1px solid rgba(249,115,22,0.25);
  border-radius: 6px;
  letter-spacing: 0.5px;
}

/* ─── Layout ─── */
.store-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  margin-top: 40px;
}
@media (max-width: 900px) { .store-layout { grid-template-columns: 1fr; } }

/* ─── Sidebar ─── */
.filter-sidebar { display: flex; flex-direction: column; gap: 8px; }
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(16px);
}
.filter-group-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.filter-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.filter-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-decoration: none;
  border: 1px solid transparent;
}
.filter-item a:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); }
.filter-item.active a {
  background: var(--teal-glow);
  border-color: rgba(13,148,136,0.2);
  color: var(--teal-light);
}
.filter-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* ─── Product Grid ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

/* ─── Product Card ─── */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(16px);
  position: relative;
  animation: cardFadeIn 0.5s var(--ease) both;
}
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--teal);
  box-shadow: 0 16px 48px var(--teal-glow), 0 0 0 1px var(--teal);
}
.product-card.featured:hover {
  border-color: var(--orange);
  box-shadow: 0 16px 48px var(--orange-glow), 0 0 0 1px var(--orange);
}

/* Shimmer effect on card */
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.03) 50%, transparent 60%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s;
}
.product-card:hover::after { opacity: 1; animation: shimmer 1.5s ease infinite; }
@keyframes shimmer { from{background-position:200% 0;} to{background-position:-200% 0;} }

/* Badge */
.product-card-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: linear-gradient(135deg, var(--orange), #dc2626);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(249,115,22,0.4);
}

/* Card image */
.product-img-wrapper {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1a2e, #0f2744);
  position: relative;
}
.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.product-card:hover .product-img { transform: scale(1.08); }
.product-no-img {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--text-muted);
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.01) 10px, rgba(255,255,255,0.01) 20px);
}

/* Card body */
.product-info { padding: 18px; display: flex; flex-direction: column; flex-grow: 1; }

.product-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px;
}
.product-tag {
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: 6px; letter-spacing: 0.5px; text-transform: uppercase;
  background: var(--teal-glow); color: var(--teal-light);
  border: 1px solid rgba(13,148,136,0.2);
}
.product-card.featured .product-tag {
  background: var(--orange-glow); color: var(--orange);
  border-color: rgba(249,115,22,0.2);
}

.product-title {
  font-size: 15px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 8px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-desc {
  font-size: 13px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.product-footer {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.product-price {
  font-size: 19px; font-weight: 900; font-family: var(--font-code);
  background: linear-gradient(135deg, #fff, #94d8d1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.product-btn {
  font-size: 11px; font-weight: 700; padding: 7px 14px;
  background: rgba(255,255,255,0.06); border-radius: 8px;
  color: var(--text-dim); border: 1px solid var(--border);
  transition: all 0.25s var(--ease); letter-spacing: 0.3px;
}
.product-card:hover .product-btn {
  background: var(--teal); color: #fff; border-color: var(--teal);
  box-shadow: 0 4px 14px var(--teal-glow);
}
.product-card.featured:hover .product-btn {
  background: var(--orange); border-color: var(--orange);
  box-shadow: 0 4px 14px var(--orange-glow);
}

/* ─── Empty state ─── */
.empty-state {
  text-align: center; padding: 64px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.empty-state-icon { font-size: 3rem; opacity: 0.25; }
.empty-state p { color: var(--text-muted); font-size: 15px; }

/* ─── Pagination ─── */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; margin-top: 48px; flex-wrap: wrap;
}
.pagination-btn {
  padding: 9px 18px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-dim); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all 0.25s var(--ease); text-decoration: none;
  backdrop-filter: blur(8px);
}
.pagination-btn:hover:not(.disabled) {
  border-color: var(--teal); color: var(--teal-light);
  background: var(--teal-glow);
}
.pagination-btn.active {
  background: var(--teal); border-color: var(--teal); color: #fff;
}
.pagination-btn.disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.pagination-info { font-size: 13px; color: var(--text-muted); padding: 0 8px; }

/* ─── Detail Page ─── */
.detail-crumb {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-muted); text-decoration: none;
  font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-card);
  transition: all 0.25s var(--ease); margin-bottom: 32px;
}
.detail-crumb:hover { color: var(--text-primary); border-color: var(--teal); }

.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; gap: 28px; } }

.gallery-container { display: flex; flex-direction: column; gap: 14px; }
.main-img-wrapper {
  aspect-ratio: 4/3; width: 100%;
  background: linear-gradient(135deg, #0d1a2e, #0f2744);
  border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.main-img { width: 100%; height: 100%; object-fit: contain; }
.thumb-list { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb-item {
  width: 76px; aspect-ratio: 4/3;
  background: #0d1a2e; border: 2px solid var(--border);
  border-radius: 10px; overflow: hidden;
  cursor: pointer; transition: all 0.25s var(--ease);
}
.thumb-item:hover, .thumb-item.active { border-color: var(--teal); box-shadow: 0 0 12px var(--teal-glow); }
.thumb-img { width: 100%; height: 100%; object-fit: cover; }

/* Detail info panel */
.detail-info {
  display: flex; flex-direction: column; gap: 24px;
  position: sticky; top: 88px;
}
.detail-cat {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--teal-light);
  background: var(--teal-glow); border: 1px solid rgba(13,148,136,0.25);
  padding: 4px 12px; border-radius: 6px; display: inline-block;
}
.detail-title { font-size: clamp(24px, 3vw, 34px); font-weight: 900; line-height: 1.15; letter-spacing: -0.5px; }
.detail-price-row { display: flex; align-items: center; gap: 16px; }
.detail-price {
  font-size: 32px; font-weight: 900; font-family: var(--font-code);
  background: linear-gradient(135deg, #fff, var(--teal-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.detail-price-badge {
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  background: rgba(34, 197, 94, 0.15); color: #4ade80;
  border: 1px solid rgba(74,222,128,0.2); border-radius: 6px;
}

.detail-desc-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px; backdrop-filter: blur(16px);
}
.detail-desc-title {
  font-size: 11px; font-weight: 800; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.detail-desc { font-size: 15px; color: #cbd5e1; line-height: 1.8; }

.buy-btn {
  width: 100%; padding: 17px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal) 0%, #0e7490 50%, #0f766e 100%);
  color: #fff; border: none; font-size: 16px; font-weight: 800;
  cursor: pointer; transition: all 0.3s var(--ease);
  box-shadow: 0 6px 24px var(--teal-glow);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; letter-spacing: 0.3px;
  position: relative; overflow: hidden;
}
.buy-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.buy-btn:hover::before { opacity: 1; }
.buy-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(13,148,136,0.45); }
.buy-btn:active { transform: translateY(0); }

/* YouTube embed */
.yt-embed-wrap {
  position: relative; padding-bottom: 56.25%; height: 0;
  overflow: hidden; border-radius: 14px; margin-top: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.yt-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ─── About Page ─── */
.about-hero {
  text-align: center; padding: 60px 0 40px;
}
.about-hero h1 { font-size: 38px; font-weight: 900; letter-spacing: -1px; margin-bottom: 16px; }
.about-hero p { color: var(--text-dim); font-size: 16px; max-width: 600px; margin: 0 auto; }

.about-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px;
  margin-top: 40px;
}
.about-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; padding: 28px; backdrop-filter: blur(16px);
  transition: all 0.3s var(--ease);
}
.about-card:hover { border-color: var(--teal); transform: translateY(-4px); box-shadow: 0 10px 30px var(--teal-glow); }
.about-card-icon { font-size: 2rem; margin-bottom: 16px; }
.about-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; color: var(--teal-light); }
.about-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--border);
  background: rgba(6, 11, 20, 0.6);
  backdrop-filter: blur(12px);
  margin-top: auto;
  padding: 28px 0;
  position: relative; z-index: 1;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a, footer a {
  color: var(--teal-light); text-decoration: none;
  font-weight: 600; font-size: 13px; transition: all 0.2s;
}
.footer-links a:hover, footer a:hover { color: var(--orange); text-decoration: underline; }
footer p { font-size: 12px; color: var(--text-muted); }

/* ─── Error Page ─── */
.error-page {
  flex: 1; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 60px 24px;
}
.error-page h1 { font-size: 80px; font-weight: 900; font-family: var(--font-code); color: var(--teal); line-height: 1; }
.error-page h2 { font-size: 24px; font-weight: 700; margin: 16px 0 8px; }
.error-page p { color: var(--text-muted); font-size: 15px; margin-bottom: 28px; }
.error-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: #fff; padding: 12px 24px;
  border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 14px;
  transition: all 0.25s var(--ease);
}
.error-btn:hover { background: var(--teal-light); transform: translateY(-2px); }

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .hero { padding: 50px 0 40px; }
  .hero h1 { letter-spacing: -1px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-info { position: static; }
  nav a { font-size: 12px; padding: 6px 10px; }
}
