/* Módulo CSS: _globals.css */
/* =========================================
   Módulo CSS: _globals.css (Resets e Elementos Globais)
========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 62.5%;
}
@media (max-width: 80em) {
  html {
    font-size: 56.75%;
  }
}

body {
  font-family: var(--font-principal);
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--cor-texto);
  background-color: var(--bg-branco);
}

.instagram-browser-alert {
  display: none;
}

@media (max-width: 768px) {
  .instagram-browser-alert:not([hidden]) {
    position: fixed;
    left: 1.6rem;
    right: 1.6rem;
    bottom: 1.6rem;
    z-index: 120;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem 1.2rem;
    align-items: center;
    margin: 0 auto;
    max-width: 42rem;
    padding: 1.2rem 1.4rem;
    color: #132238;
    background:
      radial-gradient(circle at top right, rgba(245, 205, 118, 0.16), transparent 36%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 255, 0.96));
    border: 1px solid rgba(206, 214, 226, 0.88);
    border-radius: 1.8rem;
    box-shadow:
      0 1rem 2.4rem rgba(15, 23, 42, 0.12),
      0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    animation: instagramBrowserAlertIn 0.32s ease-out;
  }

  .instagram-browser-alert__media {
    width: 4rem;
    height: 4rem;
    display: grid;
    place-items: center;
    border-radius: 1.2rem;
    background: rgba(246, 249, 255, 0.98);
    border: 1px solid rgba(209, 217, 230, 0.92);
    box-shadow: 0 0.8rem 1.8rem rgba(148, 163, 184, 0.12);
  }

  .instagram-browser-alert__media .material-symbols-outlined {
    font-size: 2.2rem;
    color: #6b7d95;
  }

  .instagram-browser-alert__content {
    min-width: 0;
  }

  .instagram-browser-alert__content strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.18;
    letter-spacing: -0.01em;
    color: #10243a;
  }

  .instagram-browser-alert__content p {
    margin: 0.35rem 0 0;
    color: #5c6f86;
    font-size: 1.14rem;
    line-height: 1.35;
  }

  .instagram-browser-alert__actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
  }

  .instagram-browser-alert__button {
    border: 0;
    border-radius: 999px;
    padding: 0.95rem 1.4rem;
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1;
    transition:
      transform 0.18s ease,
      box-shadow 0.18s ease,
      background-color 0.18s ease,
      color 0.18s ease;
  }

  .instagram-browser-alert__button:active {
    transform: translateY(1px);
  }

  .instagram-browser-alert__button--primary {
    background: #10243a;
    color: #fff;
    box-shadow: 0 0.8rem 1.6rem rgba(16, 36, 58, 0.18);
  }

  .instagram-browser-alert__button--secondary {
    background: transparent;
    color: #667892;
    box-shadow: inset 0 0 0 1px rgba(188, 198, 212, 0.88);
  }
}

@keyframes instagramBrowserAlertIn {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

img {
  width: 100%;
  max-width: 100%;
  display: block;
}

/* --- Scrollbar Customizada --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  border-radius: 10px;
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #bdbdbd;
  border-radius: 10px;
}

/* --- Estrutura Principal --- */
.principal {
  display: flex;
  flex-flow: column nowrap;
  align-items: stretch;
  justify-content: start;
  gap: 2.5rem;
}
@media (max-width: 59.375em) {
  .principal {
    gap: 1.6rem;
  }
}
.principal--padding-b {
  padding-bottom: 7.63rem;
}
@media (max-width: 30em) {
  .principal--padding-b {
    padding-bottom: 3.12rem;
  }
}
.principal--gap {
  gap: 7.63rem;
}
@media (max-width: 30em) {
  .principal--gap {
    gap: 3.12rem;
  }
}

/* --- Botões Genéricos --- */
.checkout__botao,
.subtotal__botao,
.s-produto__adicicionar {
  margin-top: 1.28rem;
  width: 100%;
  background-color: var(--cor-primaria);
  border-radius: var(--borda-raio);
  color: #fff;
  font-size: inherit;
  text-transform: uppercase;
  border: none;
  padding: 1.6rem 0;
  cursor: pointer;
  transition: background-color ease-in 0.15s;
  text-decoration: none;
  text-align: center;
}
.checkout__botao:hover,
.subtotal__botao:hover,
.s-produto__adicicionar:hover {
  background-color: var(--cor-primaria-hover);
}

/* --- Componentes de Formulário (Sliders e Inputs) --- */
.formulario {
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  justify-content: start;
  gap: 1.02rem;
  width: 100%;
}
@media (max-width: 59.375em) {
  .formulario {
    flex-direction: column;
  }
}
.formulario__input {
  font-family: inherit;
  padding: 1rem;
  border: 1px solid #b0b0b0;
  border-radius: 0.8rem;
  width: 100%;
}
.formulario__botao {
  background-color: #1b1b1b;
  padding: 1.4rem 3rem;
  border-radius: 0.8rem;
  color: #fff;
  text-transform: uppercase;
  line-height: 1;
  border: none;
}

.range_container {
  display: flex;
  flex-flow: column nowrap;
  align-items: stretch;
  justify-content: start;
  gap: 0.6rem;
  width: 100%;
}
.sliders_control {
  position: relative;
  margin: 20px 0;
}
.sliders_control input[type="range"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height: 2px;
  width: 100%;
  position: absolute;
  background-color: #c6c6c6;
  pointer-events: none;
}
.sliders_control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: all;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #c6c6c6;
  cursor: pointer;
}
.sliders_control input[type="range"]::-webkit-slider-thumb:hover {
  background: #f7f7f7;
}
.form_control {
  position: relative;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 1.33rem;
  color: #000;
}
.form_control input[type="number"] {
  color: #000;
  width: 100%;
  height: 3rem;
  font-size: 1.6rem;
  border: solid 1px #9d9d9d;
  border-radius: 4px;
  padding: 0.4rem 0.4rem 0.4rem 0.8rem;
}
.form_control input[type="number"]::-webkit-inner-spin-button,
.form_control input[type="number"]::-webkit-outer-spin-button {
  display: none;
}
#fromSlider {
  height: 0;
  z-index: 1;
}

/* --- Caixas de Aviso --- */
.caixa-aviso {
  border: 1px solid #c08a64;
  border-radius: 6px;
  padding: 12px 16px;
  background-color: transparent;
  max-width: 900px;
  margin: 15px 0;
}
.caixa-aviso-cabecalho {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8b5a33;
  margin-bottom: 8px;
}
.caixa-aviso-cabecalho svg {
  width: 18px;
  height: 18px;
  stroke: #8b5a33;
}
.caixa-aviso-titulo {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.caixa-aviso-texto p {
  margin: 0 0 6px 0;
  font-size: 13px;
  line-height: 1.4;
}
.caixa-aviso-texto p:last-child {
  margin: 0;
}
