/* Site-inspired shared stylesheet */
:root {
  --body-gradient: linear-gradient(90deg, #fc0606 0px, #fc0606 20px, #ffffff 20px, #ffffff 40px, #1084c4 40px, #1084c4 60px, #ffffff 60px, #ffffff 80px);
  --bg: #eef2ff;
  --surface: #ffffff;
  --text: #12131b;
  --muted: #52566b;
  --border: rgba(18, 24, 38, 0.14);
  --brand-red: #d52230;
  --brand-blue: #062c65;
  --brand-dark: #031026;
  --accent: #08a823;
  --radius: 20px;
  --max-width: 1180px;
}

@font-face {
  font-family: 'Eurostile';
  src: url('../fonts/eurostile.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Eurostile', 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--body-gradient);
  color: var(--text);
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.85);
  padding-bottom: 2rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 4px solid var(--brand-red);
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.12);
}

.logo-row {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 1.25rem 0;
  background: linear-gradient(180deg, #ffffff, #f7f7f7);
}

.logo-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 1rem 1.25rem 0;
  background: linear-gradient(180deg, #ffffff, #f7f7f7);
}
.logo-row img {
  max-height: 70px;
  width: auto;
  object-fit: contain;
}
.logo-row img:first-child {
  justify-self: start;
  padding-left: 1.5rem;
}
.logo-row img:nth-child(2) {
  justify-self: center;
}
.logo-row img:last-child {
  justify-self: end;
  padding-right: 1.5rem;
  max-height: 46px;
}

.nav-row {
  background: var(--brand-red);
  border-bottom: 2px solid var(--brand-blue);
  border-top: 2px solid var(--brand-blue);
}

.nav-row .site-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.45rem 0;
  width: 100%;
}

.site-nav a {
  color: #fff;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
}

.site-nav a.active {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.28);
}

.search-row {
  background: var(--brand-blue);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.35rem 1.5rem;
}

.search-row .search-form {
  flex: 3 1 300px;
  min-width: 0;
  max-width: none;
  display: flex;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.search-row .cart-widget {
  flex: 1 1 60px;
  justify-content: center;
}

.search-row .search-form input {
  flex: 1;
  border: none;
  padding: 0.45rem 1rem;
  font: inherit;
  background: transparent;
}

.search-row .search-form input:focus {
  outline: none;
}

.search-row .search-form button {
  border: none;
  background: var(--brand-red);
  color: #fff;
  padding: 0 1.5rem;
  font-weight: 600;
  cursor: pointer;
}

.cart-widget {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: #fff;
  padding: 0.35rem 1rem;
  color: var(--brand-dark);
  cursor: pointer;
  font-size: 0.85rem;
}

.cart-widget img {
  width: 34px;
}

.cart-widget strong {
  font-size: 1rem;
}

.main {
  flex: 1;
  padding: 2.5rem 1rem 3rem;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}

.hero {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.12);
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.hero p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--brand-dark);
  color: #fff;
  box-shadow: 0 10px 20px rgba(3, 16, 38, 0.4);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 25px rgba(3, 16, 38, 0.45);
}

.btn.ghost {
  background: #fff;
  color: var(--brand-dark);
  border: 1px solid var(--border);
  box-shadow: none;
}

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.brand-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  align-items: center;
}

.brand-grid img {
  filter: grayscale(0.2);
  opacity: 0.9;
  transition: opacity 0.2s ease, filter 0.2s ease;
  max-height: 70px;
  margin: 0 auto;
}

.brand-grid img:hover {
  opacity: 1;
  filter: none;
}

.categories {
  margin-top: 2rem;
}

.categories h2 {
  margin: 0;
  font-size: 1.6rem;
}

.category-list {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.category-list span,
.category-list .category-chip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.category-list .category-chip img {
  height: 24px;
  width: auto;
}

.category-list span:hover,
.category-list .category-chip:hover {
  transform: translateY(-1px);
  border-color: var(--brand-blue);
}

.product-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.05);
}

.product-card img {
  border-radius: 12px;
  max-height: 180px;
  object-fit: contain;
}

.product-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.card-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: var(--muted);
}

.price {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.15rem;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.info-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.info-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.04);
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.content-block {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  margin-top: 2rem;
}

.tag-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list li {
  background: #f3f5ff;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.product-detail {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-detail__media {
  flex: 1;
}

.product-detail__media img {
  border-radius: 18px;
}

.product-detail__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-detail__info .price {
  font-size: 1.8rem;
}

.terms-section {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.terms-section article {
  background: #fefefe;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  line-height: 1.6;
}

.terms-section h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.site-footer {
  background: var(--brand-blue);
  color: #f9f9ff;
  padding: 2.5rem 1rem 3rem;
  margin-top: 3rem;
}

.footer-flags {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-flags img {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.4));
}

.site-footer p {
  margin: 0;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e4ff;
}

.footer-bottom {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.footer-bottom img {
  height: 48px;
}

.footer-note {
  font-size: 0.85rem;
  color: #b6b9d4;
}

@media (min-width: 900px) {
  .hero {
    padding: 3rem;
  }
}

@media (max-width: 720px) {
  .logo-row {
    gap: 0.5rem;
  }

  .site-nav {
    justify-content: center;
  }

  .card-meta {
    flex-direction: column;
    gap: 0.3rem;
  }

  .product-detail {
    gap: 2rem;
  }
}

@media (min-width: 960px) {
  .product-detail {
    flex-direction: row;
  }

  .product-detail__media img {
    max-height: 320px;
  }
}
