/* ===== Base & Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fef9f4;
  background-image: linear-gradient(to bottom, #fef9f4 0%, #fceee1 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header ===== */
.site-header {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #b56576;
  text-decoration: none;
  letter-spacing: -0.5px;
}

/* ===== Hero Section ===== */
.hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #4a2c3a;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero-sub {
  font-size: 1.125rem;
  color: #5e4b53;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

/* ===== Converter Card ===== */
.converter-card {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  padding: 2rem;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.input-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4a2c3a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-group input,
.input-group select {
  padding: 0.75rem 1rem;
  border: 1.5px solid #e0c9d1;
  border-radius: 0.75rem;
  font-size: 1rem;
  background: #fdf8f5;
  color: #333;
  transition: border-color 0.2s;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: #b56576;
  box-shadow: 0 0 0 3px rgba(181,101,118,0.2);
}

.btn-primary {
  background-color: #b56576;
  color: #fff;
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  margin-top: 0.5rem;
}

.btn-primary:hover {
  background-color: #9c4d5f;
}

.btn-primary:active {
  transform: scale(0.98);
}

/* ===== Results Panel ===== */
.results-panel {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  display: none;
  text-align: center;
}

.results-panel.visible {
  display: block;
}

.results-panel h3 {
  font-size: 1.2rem;
  color: #4a2c3a;
  margin-bottom: 1rem;
}

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

.size-item {
  background: #fdf3f6;
  border-radius: 1rem;
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.size-item .system {
  font-size: 0.8rem;
  font-weight: 600;
  color: #9c4d5f;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.size-item .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4a2c3a;
}

/* ===== Size Chart Section ===== */
.size-chart {
  padding: 3rem 0;
}

.size-chart h2,
.fit-guide h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #4a2c3a;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-desc {
  text-align: center;
  color: #5e4b53;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 400px;
}

thead {
  background-color: #b56576;
  color: #fff;
}

th {
  padding: 1rem;
  font-weight: 600;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

td {
  padding: 0.9rem 1rem;
  text-align: center;
  border-bottom: 1px solid #f0e0e5;
  font-size: 0.95rem;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background-color: #fdf8f5;
}

/* ===== Fit Guide Section ===== */
.fit-guide {
  padding: 3rem 0 4rem;
}

.fit-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.fit-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.fit-card:hover {
  transform: translateY(-3px);
}

.fit-card h3 {
  font-size: 1.15rem;
  color: #b56576;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.fit-card p {
  color: #4a2c3a;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ===== Footer ===== */
.site-footer {
  background: #fff;
  padding: 1.5rem 0;
  margin-top: auto;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
  text-align: center;
}

.site-footer p {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.legal-links a {
  color: #b56576;
  text-decoration: none;
  font-size: 0.85rem;
  margin: 0 0.5rem;
}

.legal-links a:hover {
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero-sub {
    font-size: 1rem;
  }
  .converter-card {
    padding: 1.5rem;
  }
  .size-chart h2,
  .fit-guide h2 {
    font-size: 1.5rem;
  }
  .fit-cards {
    grid-template-columns: 1fr;
  }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.site-utility-links {
  width: min(900px, calc(100% - 32px));
  margin: 32px auto;
  padding-top: 16px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(127, 127, 127, 0.25);
  font-size: 0.9rem;
}

.site-utility-links a {
  color: inherit;
  opacity: 0.75;
}
