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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0px;
  background: #f5f5f7;
  color: #222;
}


/* Pływający przycisk w prawym dolnym rogu */
.size-modal-button {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 99999;

  padding: 10px 16px;
  border-radius: 999px;
  border: none;

  background: #111827;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
}

.size-modal-button:hover {
  background: #000;
}

/* Przycisk otwierający */

.jsc-open-button {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: #111827;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

/* OVERLAY + MODAL */

.jsc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.jsc-overlay.jsc-open {
  display: flex;
}

.jsc-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(15,23,42,0.45);
  overflow: hidden;
}

.jsc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.jsc-modal-header h2 {
  font-size: 18px;
  margin: 0;
}

.jsc-modal-close {
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}

.jsc-modal-body {
  padding: 12px 20px 16px;
  overflow-y: auto;
}

/* TABS */

.jsc-tabs-header {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.jsc-tab-button {
  border: none;
  background: #e5e7eb;
  color: #111827;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.jsc-tab-button.jsc-active {
  background: #111827;
  color: #fff;
}

.jsc-tab-content {
  margin-top: 4px;
}

.jsc-tab-pane {
  display: none;
}

.jsc-tab-pane.jsc-active {
  display: block;
}

/* BLOK OBRAZ + TABELA */

.jsc-image-table-block {
  display: flex;
  gap: 16px;
}

.jsc-image-container {
  flex: 0 0 32%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.jsc-image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(15,23,42,0.25);
}

.jsc-table-container {
  flex: 1 1 auto;
}

.jsc-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

/* TABELA SPECYFIKACJI */

.jsc-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.jsc-spec-table thead {
  background: #f3f4f6;
}

.jsc-spec-table th,
.jsc-spec-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.jsc-spec-table th {
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.jsc-spec-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

/* KOLORY */

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.color-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.18);
}

/* Podstawowe kolory */
.color-black { background: #000; }
.color-white { background: #fff; }
.color-navy { background: #001f3f; }
.color-royal { background: #0052cc; }
.color-red { background: #d0021b; }
.color-grey-melange { background: #b0b0b0; }
.color-ash-melange { background: #d4d4d4; }
.color-orange { background: #ff851b; }
.color-gold { background: #ffcc00; }
.color-bottle { background: #004225; }
.color-kelly { background: #28a745; }
.color-fucsia { background: #e91e63; }
.color-raspberry { background: #c2185b; }
.color-pink { background: #ffc0cb; }
.color-sky { background: #5dade2; }
.color-turquoise { background: #1abc9c; }
.color-lime { background: #a3e635; }
.color-dk-grey { background: #555555; }
.color-burgundy { background: #800020; }
.color-brown { background: #8b4513; }
.color-graphite { background: #4b4f56; }
.color-purple { background: #6f42c1; }
.color-sand { background: #d2b48c; }
.color-peach { background: #ffb07c; }
.color-pistachio { background: #b8e986; }

.color-names {
  font-size: 11px;
  color: #4b5563;
  line-height: 1.4;
}

.jsc-note {
  margin-top: 12px;
  font-size: 11px;
  color: #6b7280;
}

/* RESPONSYWNOŚĆ */

@media (max-width: 900px) {
  .jsc-image-table-block {
    flex-direction: column;
  }
  .jsc-image-container {
    flex: 0 0 auto;
  }
}

@media (max-width: 640px) {
  body {
    padding: 16px;
  }
  .jsc-modal {
    max-width: 100%;
    margin: 0 8px;
  }
  .jsc-modal-body {
    padding: 10px 12px 12px;
  }
  .jsc-spec-table th,
  .jsc-spec-table td {
    padding: 4px 6px;
  }
}



/* Dodatkowe tabele z wymiarami */
.jsc-size-tables {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
}

.jsc-size-tables h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
}

.jsc-size-table-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.jsc-size-table-block {
  flex: 1 1 220px;
  min-width: 0;
}

.jsc-size-table-block h5 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
}

.jsc-size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.jsc-size-table th,
.jsc-size-table td {
  border: 1px solid #e0e0e0;
  padding: 4px 6px;
  text-align: center;
  white-space: nowrap;
}

.jsc-size-table th {
  background: #f5f5f5;
  font-weight: 600;
}

@media (max-width: 640px) {
  .jsc-size-table-grid {
    flex-direction: column;
  }
}
