.product-modal {
  display: none;
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  width: 80%;
  max-width: 1000px;
  height: 80vh;
  border: 1px solid #ccc;
  z-index: 9999;
  flex-direction: column;
}

.product-modal__header, .product-modal__footer {
  padding: 10px;
  background: #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-modal__body {
  display: flex;
  flex: 1;
  overflow: hidden;
  max-height: 65vh;
}

.product-categories {
  width: 25%;
  background: #f9f9f9;
  padding: 10px;
  overflow-y: auto;
  border-right: 1px solid #ccc;
  max-height: 65vh;
}

.parent-cat { margin-bottom: 10px; }
.parent-name { font-weight: bold; cursor: pointer; }
.child-cats { padding-left: 10px; }
.child { cursor: pointer; margin: 3px 0; color: #333; }

.product-listing {
  width: 75%;
  padding: 10px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
  max-height: 65vh;
}

.product-card {
  border: 1px solid #ddd;
  padding: 10px;
  background: #fff;
}

.product-card img {
  max-width: 100%;
  height: auto;
}

.selected-product-preview {
  margin: 20px 0;
  padding: 15px;
  background: #f2f2f2;
  border: 1px solid #ccc;
}

.swatches {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}
.swatch {
  width: 20px;
  height: 20px;
  border: 1px solid #000;
  cursor: pointer;
}

.sizing-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sizing-boxes label {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
}