:root {
  --background: #ffffff;
  --foreground: #111111;
  --muted: #666666;
  --muted-light: #999999;
  --border: rgba(0, 0, 0, 0.08);
  --border-input: rgba(0, 0, 0, 0.15);
  --surface: #fafafa;
  --accent: #111111;
  --font: "Poppins", system-ui, sans-serif;
  --max-width: 64rem;
  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

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

/* Page layout */

.page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

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

.page-header {
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .page-header {
    margin-bottom: 4rem;
  }
}

.brand {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

.page-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 768px) {
  .page-main {
    gap: 5rem;
  }
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    gap: 4rem;
  }
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 100px;
}

.badge-inline {
  display: inline-block;
  padding: 0.1875rem 0.625rem;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 100px;
  vertical-align: middle;
  margin-left: 0.375rem;
}

@media (min-width: 640px) {
  .badge {
    font-size: 0.8125rem;
  }
  .badge-inline {
    font-size: 0.6875rem;
    margin-left: 0.5rem;
  }
}

.hero h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.75rem;
  }
}

.hero-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted);
}

@media (min-width: 768px) {
  .hero-text {
    font-size: 1.0625rem;
  }
}

.hero-cta {
  display: inline-block;
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--background);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
}

@media (min-width: 768px) {
  .hero-cta {
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
  }
}

.hero-cta:hover {
  opacity: 0.85;
}

.hero-image {
  flex: 1;
  max-width: 280px;
}

@media (min-width: 768px) {
  .hero-image {
    max-width: 380px;
  }
}

.hero-image .shirt-rotator {
  max-width: 100%;
}

/* Section shared */

.section-intro {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.section-intro h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .section-intro h2 {
    font-size: 1.5rem;
  }
}

.section-lead {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 36rem;
}

@media (min-width: 768px) {
  .section-lead {
    font-size: 0.9375rem;
  }
}

/* Products */

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

@media (min-width: 768px) {
  .products {
    gap: 2.5rem;
  }
}

.product-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .product-grid {
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background);
  padding: 1rem;
}

.product-image .shirt-rotator {
  width: 100%;
  max-width: 300px;
}

.product-info {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

@media (min-width: 768px) {
  .product-info {
    padding: 1.25rem 1.5rem 1.5rem;
    gap: 0.5rem;
  }
}

.product-info h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .product-info h3 {
    font-size: 1.125rem;
  }
}

.product-info p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}

@media (min-width: 768px) {
  .product-info p {
    font-size: 0.875rem;
  }
}

/* Details / features */

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

@media (min-width: 768px) {
  .details {
    gap: 2.5rem;
  }
}

.details-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .details-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

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

.detail h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.detail p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--muted);
}

@media (min-width: 768px) {
  .detail h3 {
    font-size: 1rem;
  }
  .detail p {
    font-size: 0.875rem;
  }
}

/* Interest / sign-up */

.interest {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 3rem;
  max-width: 32rem;
}

@media (min-width: 768px) {
  .interest {
    gap: 2rem;
    padding-top: 4rem;
  }
}

.interest-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--foreground);
}

.field input {
  border: 1px solid var(--border-input);
  border-radius: var(--radius);
  background: var(--background);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.field input:focus {
  border-color: var(--foreground);
}

.field input::placeholder {
  color: var(--muted-light);
}

.price-input {
  position: relative;
}

.price-prefix {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-light);
  pointer-events: none;
  font-size: 1rem;
}

.price-input input {
  width: 100%;
  padding-left: 2.25rem;
}

.field-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted-light);
}

.form-error {
  margin: 0;
  font-size: 0.875rem;
  color: #b91c1c;
}

.form-success {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: var(--radius);
}

.form-success p {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
}

.interest-form button {
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--background);
  padding: 0.875rem 2rem;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
}

.interest-form button:hover:not(:disabled) {
  opacity: 0.85;
}

.interest-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Footer */

.page-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted-light);
}

@media (min-width: 768px) {
  .page-footer {
    margin-top: 6rem;
    padding-top: 2rem;
  }
}

.page-footer p {
  margin: 0;
}

/* Shirt rotator (white / black) */

.shirt-rotator {
  position: relative;
  width: 100%;
  min-height: 200px;
}

@media (min-width: 768px) {
  .shirt-rotator {
    min-height: 280px;
  }
}

.product-image .shirt-rotator {
  min-height: 220px;
}

.shirt-rotator__img {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  object-fit: contain;
  transition: opacity 0.5s ease;
}

.shirt-rotator__img:not(.is-active) {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
}

.shirt-rotator__img.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.hero-image .shirt-rotator__img {
  max-width: 100%;
}

/* Zoomable images */

.zoomable {
  cursor: zoom-in;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  padding: 1.5rem;
  cursor: zoom-out;
  animation: lightbox-in 0.2s ease;
}

@keyframes lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
  padding: 0.25rem 0.5rem;
  z-index: 1001;
}

.lightbox-close:hover {
  opacity: 1;
}
