/* Walmart edition — blue, white, yellow */
:root {
  --blue: #0068cf;
  --blue-dark: #004f9a;
  --blue-deep: #012a5e;
  --blue-wash: #eaf3fd;
  --yellow: #ffc220;
  --yellow-dark: #f0b000;
  --ink: #1a1a1a;
  --ink-soft: #46474a;
  --muted: #6d6e71;
  --line: #e3e7ea;
  --white: #ffffff;
  --radius: 12px;
  --radius-pill: 999px;
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: "Figtree", "Segoe UI", system-ui, sans-serif;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--blue);
  color: var(--white);
}
.head-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 78px;
}
.brand {
  font-size: 1.62rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--white);
  white-space: nowrap;
}
.brand i { font-style: normal; color: var(--yellow); }
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.main-nav a {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  padding: 10px 11px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease;
}
.main-nav a:hover { background: rgba(0, 0, 0, 0.16); color: #fff; }
.main-nav a[aria-current="true"] { background: rgba(0, 0, 0, 0.18); color: #fff; }

.head-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.btn-yellow {
  background: var(--yellow);
  color: #1a1a1a;
  padding: 11px 20px;
  font-size: 0.84rem;
}
.btn-yellow:hover { background: var(--yellow-dark); }
.btn-blue {
  background: var(--blue);
  color: var(--white);
  padding: 11px 18px;
  font-size: 0.84rem;
}
.btn-blue:hover { background: var(--blue-dark); }
.btn-hero { padding: 15px 28px; font-size: 0.95rem; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }

@media (max-width: 1080px) {
  .main-nav a { padding: 9px 8px; font-size: 0.8rem; }
}
@media (max-width: 960px) {
  .head-inner { flex-wrap: wrap; height: auto; padding-top: 12px; gap: 10px 14px; }
  .brand { font-size: 1.4rem; }
  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 8px;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { background: rgba(0, 0, 0, 0.16); }
}
@media (max-width: 560px) {
  .head-actions .btn-yellow { display: none; }
}

/* Hero */
.hero { padding: 28px 0 12px; }
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(120deg, #0071dc 0%, #0063c6 55%, #0052a8 100%);
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: center;
  padding: 52px;
}
.hero-card::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.55rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.03em;
  max-width: 15ch;
}
.hero-sub {
  margin-top: 18px;
  font-size: 1rem;
  line-height: 1.55;
  color: #ffffff;
  max-width: 42ch;
}
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-link {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-stack {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 360px;
}
.hero-stack figure {
  margin: 0;
  background: var(--white);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 30, 70, 0.25);
}
.hero-stack figure:first-child { grid-row: span 2; }
.hero-stack img {
  width: 100%;
  flex: 1 1 0;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.hero-stack figcaption {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.hero-stack .rate { color: var(--blue-dark); }

@media (max-width: 900px) {
  .hero-card { grid-template-columns: 1fr; padding: 34px 28px; gap: 28px; }
  .hero h1 { max-width: 18ch; }
  .hero-stack { height: 260px; }
}
@media (max-width: 560px) {
  .hero-card { border-radius: 16px; padding: 26px 20px; }
  .hero-stack { height: 280px; gap: 8px; }
  .hero-stack figcaption { font-size: 0.64rem; }
  .hero-actions .btn-hero { width: 100%; }
}

/* Category tiles */
.tiles { padding: 42px 0 18px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.section-head h2 { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.02em; }
.section-head span { font-size: 0.82rem; color: var(--muted); }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.tile { text-align: left; }
.tile-media {
  aspect-ratio: 1 / 1;
  background: var(--blue-wash);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 14px;
  transition: box-shadow 180ms ease, transform 180ms ease;
}
.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 260ms cubic-bezier(0.2, 0.6, 0.2, 1);
}
.tile:hover .tile-media { box-shadow: 0 10px 24px rgba(1, 42, 94, 0.12); transform: translateY(-2px); }
.tile:hover .tile-media img { transform: scale(1.04); }
.tile-name {
  display: block;
  margin-top: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}
.tile-count { display: block; font-size: 0.74rem; color: var(--muted); }
.tile[aria-current="true"] .tile-media { box-shadow: 0 0 0 3px var(--blue); }
.tile[aria-current="true"] .tile-name { color: var(--blue-dark); }

@media (max-width: 960px) { .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile-media { padding: 10px; }
}

/* Catalogue */
.catalogue { padding: 34px 0 76px; scroll-margin-top: 96px; }
.catalogue-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 22px;
}
.catalogue-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -0.02em; }
.catalogue-head p { font-size: 0.82rem; color: var(--muted); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 1120px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 880px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}
.card:hover {
  border-color: #cdd6de;
  box-shadow: 0 12px 26px rgba(1, 42, 94, 0.1);
  transform: translateY(-2px);
}
.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  display: grid;
  place-items: center;
}
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card-rank {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--blue-wash);
  color: var(--blue-dark);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  padding: 5px 7px;
  border-radius: var(--radius-pill);
}
.card-body { display: flex; flex-direction: column; flex: 1; padding-top: 10px; }
.card-name {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.05em;
}
.card-name a { text-decoration: none; }
.card-name a:hover,
.card-name a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 7px 0 6px;
  font-size: 0.73rem;
  color: var(--muted);
}
.stars {
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  line-height: 1;
  background: linear-gradient(90deg, #f2a900 var(--pct), #dfe3e8 var(--pct));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rating b { color: var(--ink); font-weight: 600; }
.card-desc {
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-cta {
  margin-top: auto;
  text-align: center;
  padding: 10px 12px;
  font-size: 0.8rem;
}
@media (max-width: 620px) {
  .card { padding: 9px; }
  .card-desc { display: none; }
  .card-name { font-size: 0.78rem; min-height: 4.05em; }
  .card-cta { padding: 9px 8px; font-size: 0.74rem; }
  .card-rank { top: 4px; left: 4px; }
}

/* Footer */
.site-footer {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 44px 0 28px;
}
.footer-brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 8px;
}
.footer-brand i { font-style: normal; color: var(--yellow); }
.footer-copy { font-size: 0.78rem; line-height: 1.6; max-width: 68ch; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.68);
}
