/* White page with a black header ribbon, matching the URBAN TECHCART logo. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #111216;
  --muted: #5f6368;
  --line: #e4e5e9;
  --link: #111216;
  --surface: #f4f5f7;
  --card: #ffffff;
  --photo: #ffffff;
  --accent: #0c0d12;
  --accent-text: #ffffff;
  --deal: #b3261e;
  --ribbon: #0c0d12;
  --ribbon-text: #ffffff;
  --ribbon-muted: #a1a3ab;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--link);
  overflow-wrap: anywhere;
}

main {
  flex: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 20px;
}

footer {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

[hidden] {
  display: none !important;
}

/* Homepage */
.home main,
.home footer {
  max-width: 1160px;
}

.home main {
  padding: 0 16px 48px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ribbon);
}

.site-header .brand {
  color: var(--ribbon-text);
}

.site-header .bar {
  max-width: 1160px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand,
.home-link,
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 30px;
  height: auto;
}

.brand .wordmark {
  display: flex;
  flex-direction: column;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand .w1 {
  font-size: 20px;
}

.brand .w2 {
  margin-top: 2px;
  font-size: 12.4px;
  letter-spacing: 0.06em;
}

/* Photo banner under the header */
.banner {
  position: relative;
  min-height: clamp(240px, 22vw, 300px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #2b2d31;
  color: #ffffff;
}

.banner picture,
.banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.banner img {
  object-fit: cover;
  object-position: 70% 50%;
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 11, 15, 0.72) 0%, rgba(10, 11, 15, 0.45) 45%, rgba(10, 11, 15, 0.05) 75%);
}

.banner-text {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 16px;
}

.banner h1 {
  max-width: 9em;
  margin: 0 0 14px;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.banner p {
  max-width: 24em;
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.home-link img {
  width: 22px;
  height: auto;
}

.foot-brand img {
  width: 20px;
  height: auto;
}

.cats {
  display: flex;
  gap: 18px;
  margin-left: auto;
  font-size: 15px;
}

.cats a {
  color: var(--ribbon-muted);
  text-decoration: none;
  white-space: nowrap;
}

.cats a:hover {
  color: var(--ribbon-text);
}

.store {
  padding: 7px 14px;
  border-radius: 6px;
  background: var(--ribbon-text);
  color: var(--ribbon);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.hero {
  padding: 24px 0 0;
}

.hero .finder {
  margin-top: 0;
}

@media (max-width: 600px) {
  .banner {
    min-height: 240px;
    aspect-ratio: 720 / 400;
    align-items: flex-end;
  }

  .banner img {
    object-position: 60% 50%;
  }

  .banner::after {
    background: linear-gradient(0deg, rgba(10, 11, 15, 0.78) 0%, rgba(10, 11, 15, 0.35) 55%, rgba(10, 11, 15, 0.05) 100%);
  }

  .banner-text {
    padding: 20px 16px 22px;
  }

  .banner h1 {
    margin-bottom: 8px;
  }
}

.finder {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--surface);
}

.finder label {
  font-weight: 600;
}

.finder select {
  flex: 1 1 240px;
  max-width: 360px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.finder-status {
  min-height: 1.65em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.category {
  padding-top: 28px;
  scroll-margin-top: 64px;
}

.category h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
}

.card:hover {
  border-color: #c9cbd1;
}

.photo {
  background: var(--photo);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.card .body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 16px 16px;
}

.card h3 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.3;
}

.blurb {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.prices {
  margin: 0 0 12px;
}

.price {
  font-size: 20px;
  font-weight: 700;
}

.mrp {
  color: var(--muted);
  font-size: 14px;
}

.off {
  color: var(--deal);
  font-size: 14px;
  font-weight: 600;
}

.fits {
  margin: auto 0 6px;
  font-size: 14px;
  font-weight: 600;
}

.chips {
  font-size: 14px;
  line-height: 1;
}

.chip {
  display: inline-block;
  margin: 0 4px 6px 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.chip:hover,
.chip:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.more summary {
  display: inline-block;
  margin: 2px 0 8px;
  color: var(--link);
  cursor: pointer;
  list-style: none;
}

.more summary::-webkit-details-marker {
  display: none;
}

.more[open] summary {
  display: none;
}

.buy {
  margin-top: auto;
  padding: 11px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.fits + .buy {
  margin-top: 4px;
}

.empty {
  padding: 32px 0;
  color: var(--muted);
}

.home footer p {
  margin: 4px 0;
}

@media (max-width: 720px) {
  .cats {
    display: none;
  }

  .store {
    margin-left: auto;
  }

  .hero {
    padding-top: 24px;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .card .body {
    padding: 12px;
  }

  .card h3 {
    font-size: 16px;
  }

  .blurb {
    display: none;
  }

  .price {
    font-size: 17px;
  }

  .mrp,
  .off {
    display: block;
  }
}

@media (max-width: 330px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Policy page */
.home-link {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text);
}

.policy h1 {
  margin: 28px 0 4px;
  font-size: clamp(26px, 6vw, 34px);
  line-height: 1.2;
}

.effective {
  margin: 0 0 32px;
  color: var(--muted);
}

.policy h2 {
  margin: 28px 0 4px;
  font-size: 18px;
  line-height: 1.35;
}

.policy h2 + p {
  margin-top: 0;
}
