/* === PAGE-SPECIFIC VARIABLES === */
:root {
  --dark2: #0a1622;
  --filter-bg: #0d1520;
}

/* === PAGE WRAPPER === */
.prebuilt-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  margin-top: 72px;
  padding: 28px 40px 48px;
}

/* === BREADCRUMB === */
.breadcrumb {
  margin-bottom: 16px;
}

/* === PAGE DESCRIPTION === */
.page-desc {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  margin-bottom: 32px;
  font-family: "Rajdhani", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-400);
  line-height: 1.6;
}

/* === SECTION HEADING === */
.section-heading {
  font-family: "Orbitron", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: 0.06em;
}

/* === FEATURED GRID (top 3 cards) === */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.featured-card {
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s;
  cursor: pointer;
}

.featured-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--cyan2));
  border-radius: 16px 16px 0 0;
  opacity: 0;
  transition: opacity 0.25s;
}

.featured-card:hover {
  border-color: var(--cyan);
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0, 240, 255, 0.18);
}

.featured-card:hover::before {
  opacity: 1;
}

.featured-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.featured-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

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

.featured-card-name {
  font-family: "Rajdhani", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

.featured-card-specs {
  font-family: "Rajdhani", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #555;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 12px;
}

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

.stars {
  color: var(--star);
  font-size: 13px;
  letter-spacing: 1px;
}

.review-count {
  font-family: "Rajdhani", sans-serif;
  font-size: 12px;
  color: #888;
}

.card-badges {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.badge {
  font-family: "Rajdhani", sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.12);
  color: var(--cyan2);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.featured-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e0e0e0;
  padding-top: 12px;
}

.card-price {
  font-family: "Orbitron", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan2);
}

.card-price span {
  font-size: 14px;
}

.btn-shop {
  font-size: 16px;
  /* width: 80px; */
  display: flex;
  justify-content: center;
  padding: 8px 25px;
  border-radius: 8px;
  /* text-align: center; */
}

/* Deal badge overlay */
.deal-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--cyan);
  color: #000;
  font-family: "Rajdhani", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
}

/* === FILTER BAR === */
.filter-bar {
  background: var(--filter-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.filter-label {
  font-family: "Rajdhani", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 4px;
  white-space: nowrap;
}

.filter-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  font-family: "Rajdhani", sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.filter-select:hover,
.filter-select:focus {
  border-color: var(--cyan);
  color: var(--white);
}

.filter-select option {
  background: #0d1520;
  color: var(--white);
}

.filter-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 4px;
}

.filter-sort-wrap {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-label {
  font-family: "Rajdhani", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
  white-space: nowrap;
}

.btn-clear {
  background: none;
  border: none;
  color: var(--cyan);
  font-family: "Rajdhani", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: opacity 0.2s;
  padding: 4px 0;
}

.btn-clear:hover {
  opacity: 0.7;
}

/* === PRODUCT GRID (4 cols) === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

/* === PRODUCT CARD === */
.product-card {
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s;
  cursor: pointer;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--cyan2));
  border-radius: 16px 16px 0 0;
  opacity: 0;
  transition: opacity 0.25s;
}

.product-card:hover {
  border-color: var(--cyan);
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0, 240, 255, 0.18);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

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

.product-card-sep {
  height: 1px;
  background: #e0e0e0;
  margin-bottom: 10px;
}

.product-card-name {
  font-family: "Rajdhani", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}

.product-card-specs {
  font-family: "Rajdhani", sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  color: #555;
  line-height: 1.45;
  flex: 1;
  margin-bottom: 10px;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.product-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e0e0e0;
  padding-top: 10px;
}

.product-price {
  font-family: "Orbitron", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--cyan2);
}

/* no results message */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 0;
  font-family: "Rajdhani", sans-serif;
  font-size: 18px;
  color: var(--gray-500);
}

/* === BRAND LOGOS === */
.brand-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  text-align: center;
}

.brand-section p {
  font-family: "Rajdhani", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.brand-logo {
  font-family: "Rajdhani", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: 0.06em;
  transition: color 0.2s;
  cursor: default;
}

.brand-logo:hover {
  color: var(--cyan);
}

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .prebuilt-wrapper {
    margin-top: 20px;
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .prebuilt-wrapper {
    margin-top: 20px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .prebuilt-wrapper {
    margin-top: 10px;
    padding: 16px 20px 32px;
    overflow-x: hidden;
  }
  .filter-bar {
    gap: 8px;
    padding: 12px 14px;
  }
  .filter-sort-wrap {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  /* Keep 2-col featured and tighten card padding */
  .featured-card {
    padding: 14px;
  }
  .featured-card-img {
    aspect-ratio: 16 / 9;
  }
  .product-card {
    padding: 12px;
  }
}

@media (max-width: 540px) {
  .prebuilt-wrapper {
    padding: 12px 14px 28px;
  }
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  /* Cap image heights so they don't fill the screen */
  .featured-card-img {
    aspect-ratio: 16 / 9;
    max-height: 200px;
  }
  .product-card-img {
    aspect-ratio: 4 / 3;
    max-height: 140px;
  }
  .featured-card {
    padding: 12px;
  }
  .product-card {
    padding: 10px;
  }
  .section-heading {
    font-size: 22px;
  }
  .brand-logos {
    gap: 20px;
  }
  .brand-logo {
    font-size: 16px;
  }
  /* Tighten text */
  .featured-card-name {
    font-size: 14px;
  }
  .featured-card-specs {
    font-size: 11px;
  }
  .card-price {
    font-size: 17px;
  }
}

@media (max-width: 380px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-card-img {
    max-height: 180px;
  }
}
