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

html { font-size: 15px; }

:root {
  --red: #ff4655;
  --red-hover: #e63d4c;
  --red-glow: rgba(255, 70, 85, .1);

  --bg: #0a121c;
  --bg-card: #111d2b;
  --bg-card-hover: #182736;
  --bg-elevated: #1f3042;

  --border: #1e3144;
  --border-hover: #2d4560;

  --text: #8899b4;
  --text-bright: #ece8e1;
  --text-muted: #4a5a72;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.shop-header {
  background: #070e16;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.shop-brand {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.shop-brand span { color: var(--red); }

.shop-brand .brand-icon,
.footer-brand .brand-icon { height: 28px; width: auto; max-width: 28px; display: block; }

.shop-nav {
  display: flex;
  gap: 2px;
}

.shop-nav a {
  font-size: 13px;
  font-weight: 500;
  color: #5a6f8a;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all .12s;
}

.shop-nav a:hover { color: var(--text-bright); background: var(--bg-card); }

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-trigger {
  font-size: 13px;
  font-weight: 500;
  color: #5a6f8a;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all .12s;
}

.search-trigger:hover { color: var(--text-bright); border-color: var(--border-hover); }

.shop-main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -60px; left: -15%; right: -15%;
  height: 350px;
  background:
    radial-gradient(ellipse at 30% 0%, var(--red-glow) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 0%, rgba(74, 120, 200, .08) 0%, transparent 50%);
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: 40px; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,70,85,.15), var(--red), rgba(255,70,85,.15), transparent);
  pointer-events: none;
}

.hero-content { position: relative; }

.hero-content h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.hero-content h1 span { color: var(--red); }

.hero-content p {
  font-size: 16px;
  color: #5a6f8a;
  max-width: 480px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-links {
  display: flex;
  gap: 12px;
}

.btn-hero {
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 2px;
  transition: all .15s;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.btn-hero {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 20px var(--red-glow);
}

.btn-hero:hover { background: var(--red-hover); transform: translateY(-1px); box-shadow: 0 6px 24px var(--red-glow); }

.btn-hero-outline {
  background: transparent;
  color: #7a8fa8;
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-hero-outline:hover { border-color: var(--border-hover); color: var(--text-bright); background: rgba(255,255,255,.02); transform: none; box-shadow: none; }

.section-block {
  padding: 48px 0;
}

.section-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
}

.section-title-bar h2 {
  font-size: 12px;
  font-weight: 700;
  color: #5a6f8a;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title-bar h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 14px;
  background: var(--red);
  margin-right: 10px;
  vertical-align: -2px;
}

.section-link {
  font-size: 13px;
  color: #5a6f8a;
  transition: color .12s;
}

.section-link:hover { color: var(--red); }

.category-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.category-list li a {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #6a7f9a;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: all .12s;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.category-list li a:hover {
  color: var(--text-bright);
  border-color: var(--red);
  background: rgba(255, 70, 85, .04);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  transition: all .2s;
}

.product-card:hover {
  border-color: #2d4560;
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}

.card-image {
  aspect-ratio: 1;
  background: #0a141e;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.product-card:hover .card-image img { transform: scale(1.05); }

.card-image-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #2a3a4e;
}

.card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 4px;
  line-height: 1.4;
}

.card-category {
  font-size: 12px;
  color: #5a6f8a;
  margin-bottom: 10px;
}

.card-prices {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.card-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  margin-bottom: 6px;
}

.card-rating { color: #f5b342; }
.card-sales { color: var(--text-muted); }

.product-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.product-rating {
  color: #f5b342;
  font-size: 16px;
  font-weight: 600;
}

.product-sales {
  color: var(--text-muted);
  font-size: 14px;
}

.price-php {
  font-size: 17px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -0.2px;
}

.price-usd {
  font-size: 14px;
  font-weight: 600;
  color: #6a7f9a;
}

.product-page {
  padding: 60px 0;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 720px) {
  .product-layout { grid-template-columns: 1fr; gap: 24px; }
}

.product-main-image {
  border-radius: 2px;
  overflow: hidden;
  background: #0a141e;
  border: 1px solid var(--border);
}

.product-main-image-empty {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2a3a4e;
}

.product-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: 2px;
}

.badge-featured { background: rgba(208, 176, 64, .08); color: #d0b040; border: 1px solid rgba(208, 176, 64, .15); }
.badge-new { background: rgba(74, 224, 106, .08); color: #4ae06a; border: 1px solid rgba(74, 224, 106, .15); }
.badge-oos { background: rgba(224, 96, 96, .08); color: #e06060; border: 1px solid rgba(224, 96, 96, .15); }

.product-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}

.product-category {
  font-size: 14px;
  color: #5a6f8a;
  margin-bottom: 20px;
}

.product-category a { color: #7a8fa8; }
.product-category a:hover { color: var(--red); }

.product-prices {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 28px;
}

.product-price-php {
  font-size: 32px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.5px;
}

.product-price-usd {
  font-size: 20px;
  font-weight: 600;
  color: #7a8fa8;
}

.product-description {
  font-size: 15px;
  color: #6a7f9a;
  line-height: 1.7;
  margin-bottom: 28px;
}

.product-actions {
  margin-bottom: 24px;
}

.btn-buy {
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  padding: 14px 32px;
  border-radius: 2px;
  transition: all .15s;
  box-shadow: 0 4px 20px var(--red-glow);
  text-transform: uppercase;
  letter-spacing: .8px;
}

.btn-buy:hover { background: var(--red-hover); transform: translateY(-1px); box-shadow: 0 6px 24px var(--red-glow); }

.categories-page {
  padding: 60px 0;
  max-width: 700px;
}

.categories-page h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.categories-intro {
  font-size: 15px;
  color: #5a6f8a;
  margin-bottom: 40px;
}

.categories-doc-list {
  list-style: none;
}

.categories-doc-list li {
  border-bottom: 1px solid var(--border);
}

.categories-doc-list li:last-child { border-bottom: none; }

.category-doc-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 12px;
  font-size: 16px;
  color: #9aafc8;
  transition: all .12s;
  border-radius: 2px;
  margin: 0 -12px;
}

.category-doc-link:hover { color: var(--text-bright); background: var(--bg-card); }

.category-doc-link strong { font-weight: 600; }

.category-doc-count {
  font-size: 14px;
  font-weight: 500;
  color: #5a6f8a;
}

.category-page {
  padding: 40px 0;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.category-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.4px;
}

.category-count {
  font-size: 14px;
  color: #5a6f8a;
}

.search-page {
  padding: 40px 0;
}

.search-header {
  margin-bottom: 24px;
}

.search-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 20px;
}

.search-form {
  display: flex;
  gap: 8px;
  max-width: 500px;
}

.search-form input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-bright);
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}

.search-form input:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow); }

.search-form button {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  border: none;
  padding: 10px 20px;
  border-radius: 2px;
  cursor: pointer;
  font-family: inherit;
  transition: background .12s;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.search-form button:hover { background: var(--red-hover); }

.search-controls {
  display: flex;
  gap: 16px;
  align-items: end;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-group label {
  font-size: 11px;
  font-weight: 700;
  color: #5a6f8a;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.filter-group select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 8px 12px;
  font-size: 13px;
  color: #8a9fba;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color .15s;
}

.filter-group select:focus { border-color: var(--red); }

.search-count {
  font-size: 13px;
  color: #5a6f8a;
  margin-left: auto;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.page-link {
  font-size: 14px;
  font-weight: 500;
  color: #7a8fa8;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: all .12s;
}

.page-link:hover { color: var(--text-bright); border-color: var(--border-hover); background: var(--bg-card); }

.page-current {
  font-size: 13px;
  color: #5a6f8a;
}

.shop-footer {
  border-top: 1px solid var(--border);
  background: #070e16;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-bright);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-brand span { color: var(--red); }

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  font-size: 13px;
  color: #5a6f8a;
  transition: color .12s;
}

.footer-nav a:hover { color: var(--red); }

.footer-text {
  font-size: 13px;
  color: #2a3a4e;
  width: 100%;
  text-align: center;
}

.text-dim { color: #5a6f8a; font-size: 14px; }

@media (max-width: 720px) {
  .shop-nav { display: none; }
  .hero { padding: 40px 0; }
  .hero-content h1 { font-size: 28px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .card-body { padding: 12px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
