/* Homepage — Alibaba-style layout for ctechbusiness.com */

.home-page {
  background: #f5f5f5;
}

.home-hero {
  padding: 16px 0 8px;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 240px 1fr 260px;
  gap: 16px;
  align-items: stretch;
}

.home-cats {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 14px 0;
  overflow: hidden;
}

.home-cats h2 {
  margin: 0 14px 8px;
  font-size: 15px;
}

.home-cats ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-cats li a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  color: #333;
}

.home-cats li a:hover {
  background: #fff4eb;
  color: var(--orange);
}

.home-banner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.banner-slide {
  background: linear-gradient(120deg, #0f2744 0%, #1c3d66 45%, #ff6a00 140%);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 320px;
  box-shadow: var(--shadow);
}
.banner-theme-trade {
  background: linear-gradient(120deg, #102a43 0%, #243b53 50%, #d9480f 145%);
}

.banner-copy {
  padding: 36px 28px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.banner-copy .eyebrow {
  margin: 0;
  color: #ffd2a8;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.banner-copy h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
}

.banner-copy p {
  margin: 0;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  max-width: 36ch;
}

.banner-copy .btn {
  align-self: flex-start;
  margin-top: 8px;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
}

.banner-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.banner-pills a {
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  color: #444;
  box-shadow: var(--shadow);
}

.banner-pills a:hover {
  color: var(--orange);
}

.home-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.side-card h3,
.side-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.side-card p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #666;
}

.side-card a {
  color: var(--blue);
  font-size: 13px;
}

.welcome-card {
  text-align: center;
}

.welcome-avatar {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #fff4eb;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.welcome-card .btn {
  margin-top: 8px;
}

.home-section {
  margin: 18px auto 8px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 20px;
}

.section-head a {
  color: #666;
  font-size: 13px;
}

.section-head a:hover {
  color: var(--orange);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
  color: inherit;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.1);
  color: inherit;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #fafafa;
}

.pc-body {
  padding: 10px 12px 12px;
}

.pc-title {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.35;
  height: 35px;
  overflow: hidden;
}

.pc-price {
  margin: 0 0 4px;
  color: var(--orange);
  font-weight: 700;
  font-size: 14px;
}

.pc-meta {
  margin: 0;
  color: #999;
  font-size: 11px;
}

.product-card.featured {
  grid-column: span 1;
  outline: 1px solid #ffd7b0;
}

.tools-section {
  margin-bottom: 28px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.tools-grid article {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.tools-grid h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.tools-grid p {
  margin: 0;
  color: #666;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
  }
  .home-cats { display: none; }
  .banner-slide { grid-template-columns: 1fr; min-height: auto; }
  .banner-slide img { height: 220px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .tools-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: 1fr; }
  .banner-copy { padding: 24px 18px; }
  .banner-copy h1 { font-size: 22px; }
}
