/* Deliberately minimal/unbranded base styles.
   A full visual design pass will replace or extend this later. */

* {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
p,
ul,
li {
  margin: 0;
  padding: 0;
}

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

html {
  font-size: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: #1a1a1a;
  background: #ffffff;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  font-weight: 600;
}

h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #1155cc;
}

a:hover {
  color: #0d3d8f;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #1155cc;
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: #1a1a1a;
  color: #ffffff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Header / nav */
.site-header {
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: #1a1a1a;
}

.site-header nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-header nav a {
  text-decoration: none;
  color: #1a1a1a;
}

.site-header nav a:hover {
  text-decoration: underline;
}

.site-header nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
}

/* Main content */
main {
  flex: 1;
  padding: 2.5rem 0;
}

main .container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: #555555;
}

/* CTA button */
.cta-button {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 600;
  margin: 1rem 0;
}

.cta-button:hover {
  background: #1a1a1a;
  color: #ffffff;
}

/* Product grid */
.product-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.product-card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}

.product-card a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding-bottom: 1rem;
}

.product-card img {
  margin-bottom: 0.75rem;
}

.product-card h2 {
  padding: 0 1rem;
}

.product-card p {
  padding: 0 1rem;
  color: #555555;
  margin-bottom: 0;
}

/* Product detail "popup card" look */
body.product-detail-page {
  background: #f0f0f0;
}

.product-card--detail {
  max-width: 480px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  padding: 1.5rem;
}

.product-card--detail img {
  border-radius: 4px;
  margin-bottom: 1rem;
}

.product-card--detail .price {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.product-card--detail ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.close-link {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e0e0e0;
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: #555555;
}

/* Responsive */
@media (max-width: 480px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}
