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

:root {
  --bg: #081120;
  --bg-soft: #0f172a;
  --card: rgba(255, 255, 255, 0.06);
  --card-strong: #111827;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --muted: #94a3b8;
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --secondary: #06b6d4;
  --success: #22c55e;
  --danger: #ef4444;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.16), transparent 26%),
    linear-gradient(180deg, #07101d 0%, #0b1323 100%);
  color: var(--text);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

.hero {
  padding: 26px 60px 70px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 52px;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: #dbeafe;
  font-weight: 600;
  opacity: 0.9;
  transition: 0.25s ease;
}

.nav-links a:hover {
  opacity: 1;
  color: white;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 34px;
  align-items: center;
}

.hero-left .tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  color: #dbeafe;
  margin-bottom: 20px;
}

.hero-left h1 {
  font-size: 56px;
  line-height: 1.06;
  max-width: 760px;
  margin-bottom: 18px;
  letter-spacing: -1px;
}

.hero-left p {
  max-width: 740px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn {
  border: none;
  border-radius: 14px;
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
  font-size: 15px;
}

.primary {
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: white;
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.35);
}

.primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.secondary {
  background: rgba(255, 255, 255, 0.07);
  color: white;
  border: 1px solid var(--line);
}

.secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.11);
}

.hero-mini-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.mini-box {
  min-width: 120px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(10px);
}

.mini-box strong {
  display: block;
  font-size: 24px;
  margin-bottom: 6px;
}

.mini-box span {
  color: var(--muted);
  font-size: 14px;
}

.hero-right {
  display: flex;
  justify-content: center;
}

.glass-card {
  width: 100%;
  max-width: 430px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.glass-top {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dbeafe;
  margin-bottom: 24px;
}

.pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.12);
}

.featured-snippet {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 18px;
}

.featured-snippet h3 {
  margin-bottom: 14px;
  font-size: 20px;
}

.featured-snippet ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.featured-snippet li {
  color: #e2e8f0;
  padding-left: 14px;
  position: relative;
}

.featured-snippet li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--secondary);
}


.filters {
  padding: 0 60px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 16px;
}

.filter-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  backdrop-filter: blur(10px);
}

.filters input,
.filters select,
.comment-form input,
.comment-form select,
.comment-form textarea {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: white;
  font-size: 15px;
  padding: 12px;
  font-family: inherit;
}

.filters input::placeholder,
.comment-form input::placeholder,
.comment-form textarea::placeholder {
  color: #94a3b8;
}

.filters select option,
.comment-form select option {
  color: black;
}

.products-section,
.review-section {
  padding: 36px 60px 64px;
}

.section-title {
  margin-bottom: 24px;
}

.section-title h2 {
  font-size: 34px;
  margin-bottom: 8px;
}

.section-title p {
  color: var(--muted);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
}

.product-card {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
}

.product-image-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 55%);
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(124, 58, 237, 0.9);
  color: white;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
}

.product-content {
  padding: 22px;
}

.product-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.product-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-chip {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--line);
  color: #dbeafe;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  white-space: nowrap;
}

.product-description {
  color: #dbeafe;
  opacity: 0.88;
  line-height: 1.7;
  margin-bottom: 18px;
  min-height: 76px;
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.meta-box {
  background: rgba(0,0,0,0.14);
  border-radius: 16px;
  padding: 12px;
}

.meta-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}

.meta-value {
  font-size: 15px;
  font-weight: 700;
}

.card-actions {
  display: flex;
  gap: 10px;
}

.card-actions button {
  flex: 1;
}

.info-button {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  color: white;
}

.comment-form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 9px;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 14px;
}

.comment-form input,
.comment-form select,
.comment-form textarea {
  background: rgba(0,0,0,0.16);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.comment-form textarea {
  resize: vertical;
}

.full-btn {
  width: 100%;
}

#formMessage {
  margin-top: 14px;
  font-weight: 700;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.74);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  z-index: 9999;
}

.hidden {
  display: none;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 980px;
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #0b1323, #0f172a);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  color: white;
  border: none;
  font-size: 34px;
  cursor: pointer;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 26px;
}

.modal-image {
  width: 100%;
  border-radius: 20px;
  max-height: 340px;
  object-fit: cover;
}

.modal-right h2 {
  font-size: 34px;
  margin-bottom: 12px;
}

.modal-sub {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.sub-chip {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  color: #dbeafe;
  font-size: 13px;
}

.modal-text {
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 18px;
}

.modal-stat-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.modal-stat {
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 14px 16px;
  min-width: 140px;
}

.modal-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.modal-stat strong {
  font-size: 20px;
}

.review-list {
  margin-top: 24px;
}

.review-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.review-header h4 {
  font-size: 19px;
}

.review-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.review-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.review-tag.good,
.review-tag.bad {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.review-tag.good {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}

.review-tag.bad {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

.review-text {
  color: #e2e8f0;
  line-height: 1.7;
}

.empty-box {
  padding: 24px;
  border: 1px dashed rgba(255,255,255,0.16);
  border-radius: 20px;
  text-align: center;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
}

@media (max-width: 980px) {
  .hero-content,
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero,
  .filters,
  .products-section,
  .review-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-left h1 {
    font-size: 38px;
  }

  .navbar {
    flex-direction: column;
    gap: 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .product-meta {
    grid-template-columns: 1fr 1fr;
  }

  .card-actions {
    flex-direction: column;
  }
}
.sub-hero {
  padding: 26px 60px 10px;
}

.sub-hero .navbar {
  margin-bottom: 0;
}

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

.product-detail-section {
  margin-bottom: 10px;
}

.detail-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.28);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.detail-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 22px;
}

.detail-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.detail-title {
  font-size: 42px;
  margin-bottom: 16px;
  line-height: 1.1;
}

.detail-description {
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 22px;
  font-size: 16px;
}

.detail-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

#commentsContainer {
  display: grid;
  gap: 16px;
}

@media (max-width: 900px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .product-page,
  .sub-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .detail-title {
    font-size: 32px;
  }
}
.auth-page {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 40px 30px 60px;
}

.auth-card {
  width: 100%;
  max-width: 520px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 26px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.28);
}

.auth-card h1 {
  margin-bottom: 10px;
}

.auth-card p {
  color: #cbd5e1;
  margin-bottom: 20px;
}
.opinions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.opinions-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.opinions-heading {
  font-size: 24px;
  margin-bottom: 4px;
}

.good-heading {
  color: #86efac;
}

.bad-heading {
  color: #fca5a5;
}

.opinion-card {
  border-radius: 20px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}

.good-card {
  background: rgba(34, 197, 94, 0.08);
}

.bad-card {
  background: rgba(239, 68, 68, 0.08);
}

.opinion-user {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}

.opinion-title {
  font-size: 15px;
  color: #e2e8f0;
  margin-bottom: 6px;
}

.opinion-rating {
  font-size: 14px;
  color: #facc15;
  margin-bottom: 10px;
}

.opinion-text {
  color: #f8fafc;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .opinions-grid {
    grid-template-columns: 1fr;
  }
}