/* ============================================================
   TechStyle — Home page: extra sections
   (USP strip, flash sale, product tabs, build steps,
   stats + testimonials, FAQ + newsletter)
   ============================================================ */

.section--soft { background: var(--bg-soft); }
.section-head--center { justify-content: center; text-align: center; }
.section-head--center .section-sub { max-width: 560px; margin: 8px auto 0; }

/* ---------- USP strip ---------- */
.usp-strip {
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.usp-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 20px;
}
.usp-item + .usp-item { border-left: 1px solid var(--border-soft); }
.usp-item__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.usp-item__icon svg { width: 24px; height: 24px; }
.usp-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
}
.usp-item div span { font-size: 12.5px; color: var(--muted); }

/* ---------- Flash sale ---------- */
.flash-sale {
  background: linear-gradient(115deg, var(--navy-900) 0%, var(--navy-700) 60%, #0d3fa8 100%);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.flash-sale__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-bottom: 26px;
}
.flash-sale__title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
}
.flash-sale__bolt {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffc53d;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: pulse-bolt 1.8s infinite;
}
.flash-sale__bolt svg { width: 24px; height: 24px; }
@keyframes pulse-bolt {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 197, 61, 0.5); }
  60% { box-shadow: 0 0 0 12px rgba(255, 197, 61, 0); }
}
.flash-sale__title h2 { color: #fff; font-size: 26px; text-transform: uppercase; }
.flash-sale__title p { color: #b7c3dd; font-size: 13.5px; margin-top: 2px; }
.flash-countdown {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}
.flash-countdown__label { font-size: 13px; color: #b7c3dd; margin-right: 6px; }
.flash-countdown__box {
  min-width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  color: var(--accent-red);
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}
.flash-countdown b { font-size: 18px; }
.flash-grid .product-card { border-color: transparent; }
.flash-progress {
  position: relative;
  height: 22px;
  border-radius: var(--radius-full);
  background: #ffe3e5;
  overflow: hidden;
  margin-top: 4px;
}
.flash-progress span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, #ff7a45, var(--accent-red));
  border-radius: var(--radius-full);
}
.flash-progress em {
  position: relative;
  display: block;
  text-align: center;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 22px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* ---------- Home product tabs ---------- */
.home-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-soft);
  padding: 5px;
  border-radius: var(--radius-full);
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}
.home-tabs::-webkit-scrollbar { display: none; }
.home-tabs button {
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.home-tabs button:hover { color: var(--primary); }
.home-tabs button.is-active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(11, 99, 255, 0.3);
}

/* ---------- Build PC steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.step-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 24px 26px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.step-card__num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--primary-light);
}
.step-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 10px 22px rgba(11, 99, 255, 0.28);
}
.step-card__icon svg { width: 26px; height: 26px; }
.step-card h3 { font-size: 17px; margin-bottom: 8px; }
.step-card p { font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* ---------- Stats + testimonials ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(110deg, var(--navy-900) 0%, var(--navy-700) 100%);
  border-radius: var(--radius-lg);
  padding: 34px 20px;
  margin-bottom: 64px;
}
.stat-item { text-align: center; padding: 0 12px; }
.stat-item + .stat-item { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.stat-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.stat-item span { font-size: 13.5px; color: #b7c3dd; }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial-card {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.testimonial-card::before {
  content: "\201D";
  position: absolute;
  top: 6px;
  right: 22px;
  font-family: Georgia, serif;
  font-size: 84px;
  line-height: 1;
  color: #d4e3ff;
}
.testimonial-card blockquote {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  flex: 1;
}
.testimonial-card figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-card figcaption strong { display: block; font-family: var(--font-heading); font-size: 14.5px; }
.testimonial-card figcaption em { font-style: normal; font-size: 12.5px; color: var(--muted); }

/* ---------- FAQ + newsletter ---------- */
.faq-newsletter {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.home-faq .section-title { margin-bottom: 26px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: #fff; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14.5px;
  text-align: left;
  color: var(--ink);
  background: #fff;
}
.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.3s var(--ease); color: var(--primary); }
.faq-item.is-open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq-a p { padding: 0 22px 18px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }

.newsletter-card {
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary-darker) 100%);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  color: #fff;
}
.newsletter-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.newsletter-card__icon svg { width: 26px; height: 26px; }
.newsletter-card h3 { color: #fff; font-size: 23px; margin-bottom: 10px; }
.newsletter-card > p { color: #d6e4ff; font-size: 14px; line-height: 1.7; margin-bottom: 22px; }
.newsletter-form {
  display: flex;
  gap: 8px;
  background: #fff;
  padding: 6px;
  border-radius: var(--radius-full);
}
.newsletter-form input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 0 14px;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
}
.newsletter-form .btn { padding: 12px 22px; box-shadow: none; }
.newsletter-perks { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.newsletter-perks li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #d6e4ff; }
.newsletter-perks svg { width: 16px; height: 16px; color: #7ee2a8; flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .usp-item:nth-child(3) { border-left: none; }
  .usp-item:nth-child(n + 3) { border-top: 1px solid var(--border-soft); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid > :last-child { grid-column: span 2; }
  .faq-newsletter { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .flash-sale { padding: 22px; }
  .flash-sale__title { margin-right: 0; flex-basis: 100%; }
  .flash-sale__title h2 { font-size: 21px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 26px; margin-bottom: 48px; }
  .stat-item:nth-child(3) { border-left: none; }
  .stat-item strong { font-size: 28px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonial-grid > :last-child { grid-column: auto; }
}

@media (max-width: 560px) {
  .bestseller-grid .product-card__price-row { flex-wrap: wrap; row-gap: 0; }
  .usp-grid { grid-template-columns: 1fr 1fr; }
  .usp-item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 12px; }
  .usp-item strong { font-size: 13.5px; }
  .flash-sale { padding: 18px 14px; }
  .flash-countdown__label { flex-basis: 100%; }
  .flash-countdown { flex-wrap: wrap; }
  .flash-countdown__box { min-width: 38px; height: 38px; font-size: 16px; }
  .steps-grid { grid-template-columns: 1fr; }
  .newsletter-card { padding: 28px 22px; }
  .newsletter-form { flex-direction: column; background: transparent; padding: 0; }
  .newsletter-form input { background: #fff; border-radius: var(--radius-full); padding: 14px 18px; }
}
