/* =========================================================
   MODAL — PEDIR ESTOQUE
   ========================================================= */

.stock-request-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.stock-request-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.stock-request-modal__overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.stock-request-modal__content {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 480px;

  padding: 30px;

  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 22px;

  background:
    radial-gradient(
      circle at top,
      rgba(250, 204, 21, 0.08),
      transparent 45%
    ),
    linear-gradient(
      180deg,
      #171717,
      #0c0c0c
    );

  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.65),
    0 0 35px rgba(250, 204, 21, 0.08);

  color: #ffffff;

  transform: translateY(18px) scale(0.98);

  transition: transform 0.25s ease;
}

.stock-request-modal.is-open .stock-request-modal__content {
  transform: translateY(0) scale(1);
}

.stock-request-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;

  background: rgba(255, 255, 255, 0.04);

  color: rgba(255, 255, 255, 0.72);
  font-size: 24px;
  line-height: 1;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.stock-request-modal__close:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.stock-request-modal__icon {
  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 18px;

  border: 1px solid rgba(250, 204, 21, 0.24);
  border-radius: 17px;

  background: rgba(250, 204, 21, 0.08);

  font-size: 28px;

  box-shadow:
    inset 0 0 18px rgba(250, 204, 21, 0.04),
    0 0 22px rgba(250, 204, 21, 0.06);
}

.stock-request-modal__eyebrow {
  display: block;

  margin-bottom: 7px;

  color: #facc15;

  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.stock-request-modal__title {
  margin: 0;

  color: #ffffff;

  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
}

.stock-request-modal__description {
  margin: 10px 0 24px;

  color: rgba(255, 255, 255, 0.62);

  font-size: 14px;
  line-height: 1.6;
}

.stock-request-field {
  display: flex;
  flex-direction: column;
  gap: 8px;

  margin-bottom: 18px;
}

.stock-request-field label {
  color: rgba(255, 255, 255, 0.84);

  font-size: 13px;
  font-weight: 800;
}

.stock-request-field label span {
  margin-left: 5px;

  color: rgba(255, 255, 255, 0.38);

  font-size: 11px;
  font-weight: 600;
}

.stock-request-field input {
  width: 100%;
  min-height: 48px;

  padding: 0 15px;

  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;

  outline: none;

  background: rgba(255, 255, 255, 0.035);

  color: #ffffff;

  font-size: 14px;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.stock-request-field input::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.stock-request-field input:focus {
  border-color: rgba(250, 204, 21, 0.55);

  background: rgba(255, 255, 255, 0.05);

  box-shadow:
    0 0 0 3px rgba(250, 204, 21, 0.08);
}

.stock-request-feedback {
  min-height: 20px;

  margin: 2px 0 12px;

  color: rgba(255, 255, 255, 0.68);

  font-size: 13px;
  line-height: 1.45;
}

.stock-request-feedback.is-success {
  color: #4ade80;
}

.stock-request-feedback.is-error {
  color: #f87171;
}

.stock-request-submit {
  width: 100%;
  min-height: 50px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(250, 204, 21, 0.5);
  border-radius: 13px;

  background:
    linear-gradient(
      180deg,
      #facc15,
      #eab308
    );

  color: #111111;

  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;

  cursor: pointer;

  box-shadow:
    0 10px 30px rgba(250, 204, 21, 0.15);

  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease;
}

.stock-request-submit:hover {
  transform: translateY(-1px);

  filter: brightness(1.04);

  box-shadow:
    0 14px 34px rgba(250, 204, 21, 0.22);
}

.stock-request-submit:disabled {
  opacity: 0.58;
  cursor: wait;
  transform: none;
}

/* TRAVA O SCROLL QUANDO O MODAL ESTÁ ABERTO */
body.stock-request-modal-open {
  overflow: hidden;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 640px) {
  .stock-request-modal {
    align-items: flex-end;

    padding: 12px;
  }

  .stock-request-modal__content {
    max-width: none;

    padding: 24px 18px 20px;

    border-radius: 20px 20px 16px 16px;
  }

  .stock-request-modal__title {
    padding-right: 34px;

    font-size: 22px;
  }

  .stock-request-modal__description {
    margin-bottom: 20px;
  }

  .stock-request-modal__icon {
    width: 52px;
    height: 52px;

    margin-bottom: 15px;

    font-size: 25px;
  }
}

.category-stock-button {
  background: linear-gradient(
    180deg,
    #2563eb 0%,
    #1d4ed8 100%
  );

  border: 1px solid rgba(96, 165, 250, 0.45);

  color: #fff;

  box-shadow:
    0 0 0 1px rgba(96,165,250,.12),
    0 12px 30px rgba(37,99,235,.28);
}

.category-stock-button:hover {
  background: linear-gradient(
    180deg,
    #3b82f6 0%,
    #2563eb 100%
  );

  border-color: rgba(147,197,253,.7);

  box-shadow:
    0 0 18px rgba(59,130,246,.45),
    0 14px 34px rgba(37,99,235,.38);

  transform: translateY(-2px);
}

.category-stock-button:active {
  transform: translateY(0);
}

/* =========================================================
   BOTÃO PEDIR ESTOQUE — AZUL
   ========================================================= */

.category-stock-button {
  border-color: rgba(96, 165, 250, 0.7) !important;

  background:
    linear-gradient(
      180deg,
      #2563eb 0%,
      #1d4ed8 100%
    ) !important;

  color: #ffffff !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 18px rgba(37, 99, 235, 0.28) !important;
}

.category-stock-button:hover {
  background:
    linear-gradient(
      180deg,
      #3b82f6 0%,
      #2563eb 100%
    ) !important;

  border-color: rgba(147, 197, 253, 0.9) !important;

  box-shadow:
    0 0 24px rgba(59, 130, 246, 0.42) !important;
}

.category-stock-button svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

@media (max-width: 480px) {
  .category-stock-button {
    border-color: rgba(96, 165, 250, 0.7) !important;

    background:
      linear-gradient(
        180deg,
        #2563eb 0%,
        #1d4ed8 100%
      ) !important;

    color: #ffffff !important;
  }
}