/* === БАЗОВИЙ СТИЛЬ ТАБЛИЦЬ === */
.goods-table{
  color: #034b94;
  background: rgba(255, 255, 255, 0.15); /* легкий білий прозорий фон */
  backdrop-filter: blur(4px);            /* розмиття підкладки */
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 10px 15px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 0.9rem;
}

th,
td {
  border: 1px solid #0c0c0c;
  padding: 8px;
  text-align: left;
}

th {
  background-color: #c4c3c3;
  font-weight: bold;
}

/* === СПЕЦІАЛЬНИЙ СТИЛЬ ДЛЯ ХАРАКТЕРИСТИК ТОВАРУ === */
.product-characteristics table {
  width: 100%;
  margin: 5px 0px 0px 0px;
  max-width: 700px;
  min-width: 100px;
  font-size: 0.9rem;
  grid-column: 1/4;
}

.product-characteristics th,
.product-characteristics td {
  border: 1px solid #ddd;
  text-align: left;
  padding: 8px;
}

.product-characteristics th {
  background-color: #f4f4f4;
  font-weight: bold;
  color: #0c0c0c;
}

table.characteristics {
  max-width: 700px;
  margin: 5px 0 0 0;
}

table.characteristics th,
table.characteristics td {
  border: 1px solid #ddd;
}

/* === МОБІЛЬНА АДАПТАЦІЯ (до 400px) === */
@media screen and (max-width: 400px) {
  table,
  thead,
  tbody,
  tfoot,
  tr,
  td {
    display: block;
  }

  tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.8em;
  }

  th {
    display: none;
  }

  td {
    position: relative;
    padding-left: 50%;
    text-align: right;
  }

  td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: 45%;
    text-align: left;
    font-weight: bold;
    white-space: nowrap;
  }
}
/* === МОБІЛЬНА АДАПТАЦІЯ ЯКЩО ПОТРІБНО ДЛЯ ВЕЛИКИХ ТАБЛИЦ (до 675px) === */
@media screen and (max-width: 675px) {
  table.responsive,
  table.responsive thead,
  table.responsive tbody,
  table.responsive tfoot,
  table.responsive tr,
  table.responsive td {
    display: block;
  }

  table.responsive tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.8em;
  }

  table.responsive th {
    display: none;
  }

  table.responsive td {
    position: relative;
    padding-left: 50%;
    text-align: right;
  }

  table.responsive td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: 45%;
    text-align: left;
    font-weight: bold;
  }
}

/* === pages_pr === */
.wrapper__admin {
  margin: 0 auto;
  padding: 0 20px;
  background-color: #a5a5a5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrapper__admin .categories {
  padding: 10px;
}

/*= Стилі для блоку "Кошик" */
.wrapper__admin-tovar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 0px 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 5px;
}

.wrapper__admin-tovar div {
  padding: 5px;
  font-size: 0.9em;
  border-right: 1px solid #ccc;
}

.wrapper__admin-tovar div:nth-child(4n) {
  border-right: none;
}

.shippingForm_pr {
  display: flex;
  flex-direction: column;
  grid-row-gap: 0.3em;
  background: beige;
  padding: 0.8em;
}

.shippingForm_pr select,
.shippingForm_pr input[type="date"],
.shippingForm_pr input[name="price"] {
  width: max-content;
}

.shippingForm_pr input,
.shippingForm_pr textarea {
  padding: 6px;
  font-size: 0.9em;
  outline: none;
  border: none;
  box-sizing: border-box;
  overflow: auto;
  border: 1px solid #8db1ff;
  font-family: "Montserrat", sans-serif;
}

.pages_pr {
  max-width: 1200px;
  margin: 5px auto 0px auto;
  gap: 15px;
  width: 100%;
}

.pages_pr .good {
  height: 245px;
  grid-template-rows: inherit;
}

.pages_pr .good img {
  min-height: inherit;
  height: inherit;
}

.pages_pr .good a {
  display: block;
  padding: 5px;
  width: 110px;
  height: 33px;
  border: 1px solid;
  border-radius: 8px;
}

.pages_pr a:hover {
  background-color: var(--yellow-lite);
  color: var(--color-blue);
  /* width: max-content; */
}

.pages_pr a:visited {
  color: var(--color-blue);
}

.pages_pr a:focus {
  color: var(--color-blue);
  outline: 2px solid #ccc;
}

.pages_pr a:active {
  color: var(--color-blue);
}

.pages_pr ul {
  display: grid;
  gap: 10px;
}

.pages_pr h4 {
  background-color: var(--yellow-lite);
  color: var(--color-blue);
  padding: 7px;
  font-size: 0.9rem;
}

.pages_pr__menu {
  display: flex;
  gap: 10px;
}

.pages_pr__menu a {
  border: 1px solid #001933;
  padding: 7px;
}
