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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f9fafb;
  color: #111827;
}

/* TOP BAR */
.top-bar {
  background: #f97316;
  color: #111827;
  font-size: 0.8rem;
  text-align: center;
  padding: 0.4rem 1rem;
}

/* HEADER */

.site-header {
  background: #020617;
  color: #f9fafb;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-link {
  font-size: 0.85rem;
  text-decoration: none;
  color: #e5e7eb;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-cta {
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #f97316;
  color: #111827;
  font-weight: 600;
  text-decoration: none;
}

/* HERO */

.hero {
  padding: 2.5rem 1.5rem 2.25rem;
  background: #f9fafb;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.hero-text {
  max-width: 640px;
  text-align: left;
}

.hero-pill {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: #020617;
  color: #f9fafb;
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: 2.3rem;
  margin: 0 0 0.5rem;
}

.hero-sub {
  margin: 0;
  font-size: 0.95rem;
  color: #4b5563;
}

.hero-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-start;
}

.btn-primary,
.btn-ghost {
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary {
  background: #020617;
  color: #f9fafb;
}

.btn-primary:hover {
  background: #0b1120;
}

.btn-ghost {
  border: 1px solid #d1d5db;
  color: #111827;
  background: #ffffff;
}

.btn-ghost:hover {
  background: #f3f4f6;
}

/* TRUST STRIP */

.trust-strip {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.trust-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.trust-item {
  font-size: 0.85rem;
}

.trust-title {
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.trust-text {
  color: #4b5563;
  font-size: 0.8rem;
}

/* DEALS SECTION */

.deals-section {
  padding: 1.75rem 1.5rem 2.5rem;
}

.deals-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.deals-header h2 {
  margin: 0 0 0.3rem;
  font-size: 1.6rem;
}

.deals-header p {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
  color: #4b5563;
}

#searchInput {
  width: 100%;
  max-width: 360px;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
}

/* GRID & CARDS */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1.1rem;
}

.card {
  background: #ffffff;
  border-radius: 1.1rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  min-height: 2.2em;
}

.card-prices {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.price-promo {
  font-weight: 700;
  font-size: 0.95rem;
}

.price-original {
  font-size: 0.8rem;
  color: #6b7280;
  text-decoration: line-through;
}

.card-footer {
  margin-top: auto;
}

.card-link {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: #020617;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.card-link:hover {
  background: #0b1120;
}

.count {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: #6b7280;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #6b7280;
}

/* RESPONSIVE */

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
