/* ==========================================================
   PRODUCT CREATE PAGE
   ========================================================== */

.product-page {
  width: 100%;

  padding: 24px 20px 35px;

  display: flex;

  justify-content: center;

  align-items: flex-start;

  box-sizing: border-box;
}

/* ==========================================================
   MAIN CARD
   ========================================================== */

.product-card {
  width: 660px;

  max-width: 100%;

  background: #ffffff;

  border: 1px solid #dfe4ea;

  border-radius: 7px;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

  overflow: hidden;

  box-sizing: border-box;
}

/* ==========================================================
   HEADER
   ========================================================== */

.product-header {
  height: 58px;

  padding: 0 16px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  background: #faf0e6;

  border-bottom: 1px solid #faf0e6;

  box-sizing: border-box;
}

.product-header-title {
  display: flex;

  align-items: center;

  gap: 8px;
}

.product-header-icon {
  font-size: 1rem;

  color: #0d6efd;
}

.product-title {
  margin: 0;

  font-size: 1rem;

  font-weight: 500;

  color: #172033;
}

.product-list-button {
  min-width: 55px;

  padding: 6px 15px;

  font-size: 0.8rem;

  border-radius: 5px;
  background-color: #00b7eb;
  border: none;
}
.product-list-button:hover {
  transform: translateY(-2px);
  background-color: #00b7eb;
  border: none;
}
/* ==========================================================
   FORM
   ========================================================== */

.product-form {
  width: 100%;

  padding: 7px 22px 3px;

  box-sizing: border-box;
}

/* ==========================================================
   FORM ROW
   ========================================================== */

.product-field {
  width: 100%;

  display: grid;

  grid-template-columns: 210px minmax(0, 1fr);

  align-items: center;

  min-height: 44px;

  border-bottom: 1px solid #edf0f3;

  box-sizing: border-box;
}

.product-last-field {
  border-bottom: none;
}

/* ==========================================================
   LABEL
   ========================================================== */

.product-label {
  min-width: 0;
}

.product-label label {
  margin: 0;

  font-size: 0.86rem;

  font-weight: 400;

  color: #263244;

  cursor: pointer;
}

/* ==========================================================
   INPUT WIDTHS
   ========================================================== */

.product-input-sm {
  width: 100px;

  max-width: 100%;
}

.product-input {
  width: 150px;

  max-width: 100%;
}

.product-input-medium {
  width: 400px;

  max-width: 100%;
}

.product-input-wide {
  width: 520px;

  max-width: 100%;
}

/* ==========================================================
   COLOUR SELECT + COLOUR PREVIEW
   ========================================================== */

.colour-select-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 196px;
}

.colour-select-wrapper select {
  flex: 1;
}

.colour-preview {
  width: 35px !important;
  height: 30px;

  flex: 0 0 92px;

  border: 1px solid #cfd7e3;
  border-radius: 4px;

  background-color: #ffffff;

  box-sizing: border-box;
}

/* ==========================================================
   INPUT
   ========================================================== */

.product-input .form-control,
.product-input .form-select {
  width: 100%;

  font-size: 0.84rem;

  color: #263244;

  background-color: #ffffff;

  border: 1px solid #d5dce5;

  border-radius: 4px;

  box-shadow: none;

  box-sizing: border-box;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

/* ==========================================================
   PLACEHOLDER
   ========================================================== */

.product-input .form-control::placeholder {
  color: #a5afbc;
}

/* ==========================================================
   HOVER
   ========================================================== */

.product-input .form-control:hover,
.product-input .form-select:hover {
  border-color: #b9c4d1;
}

/* ==========================================================
   FOCUS
   ========================================================== */

.product-input .form-control:focus,
.product-input .form-select:focus {
  border-color: #78adf5;

  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.08);

  outline: none;
}

/* ==========================================================
   FOOTER
   ========================================================== */

.product-footer {
  width: 100%;

  min-height: 66px;

  padding: 12px 22px;

  display: flex;

  align-items: center;

  gap: 8px;

  background: #fafbfd;

  border-top: 1px solid #e8edf2;

  box-sizing: border-box;
}

.product-cancel-button {
  min-width: 80px;
  height: 34px;
  padding: 7px 16px;
  font-size: 0.82rem;
  border-radius: 4px;
}
.product-save-button {
  min-width: 80px;
  height: 34px;
  padding: 7px 16px;
  font-size: 0.82rem;
  border-radius: 4px;
  background-color: #bdda57;
  color: #000000;
  border: none;
}
.product-save-button:hover {
  background-color: #bdda57;
  color: #000000;
  border: none;
  transform: translateY(-2px);
}

/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 991.98px) {
  .product-page {
    padding: 20px 15px 30px;
  }

  .product-card {
    width: 100%;

    max-width: 850px;
  }

  .product-field {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .product-input,
  .product-input-medium,
  .product-input-wide {
    width: 100%;

    max-width: 520px;
  }
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767.98px) {
  .product-page {
    padding: 10px;
  }

  .product-card {
    width: 100%;
  }

  /* HEADER */

  .product-header {
    height: 55px;

    padding: 0 12px;
  }

  .product-header-title {
    gap: 7px;
  }

  .product-header-icon {
    font-size: 0.92rem;
  }

  .product-title {
    font-size: 0.92rem;
  }

  .product-list-button {
    min-width: 52px;

    padding: 5px 12px;
  }

  /* FORM */

  .product-form {
    padding: 5px 14px 3px;
  }

  .product-field {
    display: block;

    min-height: auto;

    padding: 2px 0;
  }

  .product-label {
    margin-bottom: 5px;
  }

  .product-label label {
    font-size: 0.82rem;
  }

  /* INPUT */

  .product-input,
  .product-input-medium,
  .product-input-wide {
    width: 100%;

    max-width: none;
  }

  /* FOOTER */

  .product-footer {
    min-height: auto;

    padding: 12px 14px;
  }
  /* Colour viwer */
  .colour-preview {
    width: 35px !important;
    height: 27px;

    flex: 0 0 92px;

    border: 1px solid #cfd7e3;
    border-radius: 4px;

    background-color: #ffffff;

    box-sizing: border-box;
  }
}

/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 400px) {
  .product-footer {
    flex-direction: column;

    align-items: stretch;
  }

  .product-save-button,
  .product-cancel-button {
    width: 100%;
  }
}
