.size-chart-container {
  padding: 30px 0 60px;
  background: #f8f9fa;
}
.size-chart-header {
  text-align: center;
  margin-bottom: 40px;
}
.size-chart-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #2c2e2f;
  margin-bottom: 16px;
}
.size-chart-header p {
  font-size: 16px;
  color: #495057;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}
.size-chart-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 24px;
  gap: 20px;
}
.size-chart-units {
  display: flex;
  align-items: center;
  gap: 12px;
}
.size-chart-units label {
  font-size: 14px;
  font-weight: 600;
  color: #495057;
}
.unit-toggle {
  display: flex;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  overflow: hidden;
}
.unit-btn {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  background: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.unit-btn:not(:last-child) {
  border-right: 1px solid #dee2e6;
}
.unit-btn:hover {
  background: #f8f9fa;
}
.unit-btn.active {
  background: #007bff;
  color: #fff;
}
.size-chart-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 30px;
  border-bottom: 2px solid #e9ecef;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.size-chart-tabs::-webkit-scrollbar {
  display: none;
}
.size-tab {
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 600;
  color: #6c757d;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
}
.size-tab:hover {
  color: #007bff;
  background: #f8f9fa;
}
.size-tab.active {
  color: #007bff;
  border-bottom-color: #007bff;
  background: linear-gradient(to bottom, transparent, #f8f9fa);
}
.size-chart-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  padding: 40px;
}
.size-category {
  display: none;
}
.size-category.active {
  display: block;
}
.size-subcategory {
  margin-bottom: 50px;
}
.size-subcategory:last-child {
  margin-bottom: 0;
}
.size-subcategory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.size-subcategory-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: #2c2e2f;
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #f8f9fa;
}
.copy-table-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #007bff;
  background: #e7f3ff;
  border: 1px solid #007bff;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.copy-table-btn:hover {
  background: #007bff;
  color: #fff;
}
.copy-table-btn:active {
  transform: scale(0.98);
}
.copy-table-btn.copied {
  background: #28a745;
  border-color: #28a745;
  color: #fff;
}
.measurement-guide {
  background: #f8f9fa;
  padding: 16px 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}
.measurement-guide h3 {
  font-size: 16px;
  font-weight: 600;
  color: #2c2e2f;
  margin: 0 0 12px 0;
}
.guide-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guide-item {
  color: #495057;
  font-size: 14px;
  padding-left: 16px;
  position: relative;
}
.guide-item::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #007bff;
  font-size: 18px;
  font-weight: bold;
}
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -30px;
  padding: 0 30px;
}
.size-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  min-width: 600px;
}
.size-table thead tr {
  background: linear-gradient(to bottom, #f8f9fa, #f1f3f5);
}
.size-table th {
  padding: 16px 12px;
  font-weight: 600;
  color: #2c2e2f;
  text-align: center;
  border-bottom: 2px solid #007bff;
  white-space: nowrap;
}
.size-table th:first-child {
  text-align: left;
  border-top-left-radius: 8px;
}
.size-table th:last-child {
  border-top-right-radius: 8px;
}
.size-table tbody tr {
  transition: all 0.2s ease;
  border-bottom: 1px solid #f1f3f5;
}
.size-table tbody tr:hover {
  background: #f8f9fa;
  transform: scale(1.01);
}
.size-table td {
  padding: 14px 12px;
  text-align: center;
  border-bottom: 1px solid #f1f3f5;
  color: #495057;
}
.size-table td:first-child {
  font-weight: 700;
  text-align: left;
  color: #007bff;
  font-size: 15px;
}
.size-table tbody tr:last-child td {
  border-bottom: none;
}
.size-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}
.size-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}
.unit-label {
  font-weight: 400;
  color: #6c757d;
}
.size-chart-note {
  margin-top: 30px;
  padding: 20px;
  background: #fee;
  border: 2px solid #dc3545;
  border-radius: 8px;
}
.size-chart-note p {
  margin: 0;
  font-size: 14px;
  color: #721c24;
  line-height: 1.6;
}
.size-chart-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.size-chart-modal.active {
  display: flex;
}
.size-chart-modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.size-chart-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid #dee2e6;
  flex-shrink: 0;
}
.size-chart-modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #2c2e2f;
  margin: 0;
}
.size-chart-modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.size-chart-modal-close:hover {
  background: #e9ecef;
}
.size-chart-modal-close svg {
  width: 20px;
  height: 20px;
  stroke: #495057;
}
.size-chart-modal-body {
  padding: 30px;
  overflow-y: auto;
  flex: 1;
}
.size-helper-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #007bff;
  background: #e7f3ff;
  border: 1px solid #007bff;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 8px;
  text-decoration: none;
}
.size-helper-btn:hover {
  background: #007bff;
  color: #fff;
  text-decoration: none;
}
.size-helper-btn svg {
  width: 16px;
  height: 16px;
}
@media (max-width: 768px) {
  .size-chart-container {
    padding: 20px 0 40px;
  }
  .size-chart-header h1 {
    font-size: 24px;
  }
  .size-chart-header p {
    font-size: 14px;
    padding: 0 15px;
  }
  .size-chart-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .size-chart-units {
    justify-content: space-between;
  }
  .size-chart-content {
    padding: 20px 15px;
    border-radius: 0;
  }
  .size-tab {
    padding: 10px 20px;
    font-size: 14px;
  }
  .size-subcategory-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .size-subcategory-header h2 {
    font-size: 20px;
  }
  .copy-table-btn {
    width: 100%;
  }
  .table-responsive {
    margin: 0 -15px;
    padding: 0 15px;
  }
  .size-table {
    font-size: 12px;
  }
  .size-table th,
  .size-table td {
    padding: 10px 8px;
  }
  .measurement-guide {
    padding: 12px 16px;
  }
  .guide-items {
    gap: 8px;
  }
  .guide-item {
    font-size: 13px;
  }
  .size-chart-modal-content {
    max-height: 95vh;
    border-radius: 12px 12px 0 0;
    margin-top: auto;
  }
  .size-chart-modal-header {
    padding: 16px 20px;
  }
  .size-chart-modal-header h2 {
    font-size: 18px;
  }
  .size-chart-modal-body {
    padding: 20px 15px;
  }
  .size-helper-btn {
    font-size: 12px;
    padding: 5px 10px;
    margin-left: 6px;
  }
}
@media (max-width: 480px) {
  .size-chart-header h1 {
    font-size: 20px;
  }
  .unit-btn {
    padding: 6px 16px;
    font-size: 13px;
  }
  .size-tab {
    padding: 8px 16px;
    font-size: 13px;
  }
  .size-table {
    font-size: 11px;
    min-width: 500px;
  }
  .size-table th,
  .size-table td {
    padding: 8px 6px;
  }
}
