/* =========================================================
   STAMP LASER — GARRAFAS
   ========================================================= */

:root {
  --black: #111111;
  --dark: #181818;
  --gray-900: #222222;
  --gray-700: #555555;
  --gray-500: #888888;
  --gray-300: #dddddd;
  --gray-200: #eeeeee;
  --gray-100: #f6f6f6;
  --white: #ffffff;

  --radius: 18px;
  --radius-small: 12px;

  --shadow:
    0 20px 60px rgba(0, 0, 0, .10);

  --transition:
    180ms ease;
}


/* =========================================================
   RESET
   ========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fafafa;
  color: var(--black);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.topbar {
  height: 76px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);

  display: flex;
  align-items: center;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.logo span {
  font-weight: 400;
}

.back-link {
  color: var(--gray-700);
  font-size: 14px;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--black);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  padding: 80px 0 55px;
  background:
    radial-gradient(
      circle at 80% 20%,
      #eeeeee 0,
      transparent 32%
    ),
    #fafafa;
}

.eyebrow {
  display: inline-block;

  margin-bottom: 14px;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--gray-500);
}

.hero h1 {
  max-width: 760px;

  font-size: clamp(42px, 6vw, 76px);
  line-height: .96;
  letter-spacing: -.065em;
  font-weight: 900;
}

.hero p {
  max-width: 610px;
  margin-top: 25px;

  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.7;
}


/* =========================================================
   BUILDER
   ========================================================= */

.product-builder {
  padding: 30px 0 100px;
}

.builder-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(420px, 500px);

  gap: 60px;
  align-items: start;
}


/* =========================================================
   PREVIEW
   ========================================================= */

.preview-panel {
  position: sticky;
  top: 25px;

  min-height: 700px;

  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);

  overflow: hidden;
  box-shadow: var(--shadow);
}

.preview-header {
  display: flex;
  justify-content: space-between;

  padding: 22px 25px;

  border-bottom: 1px solid var(--gray-200);

  color: var(--gray-500);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.preview-header span:last-child {
  color: var(--black);
}

.bottle-stage {
  min-height: 570px;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;

  background:
    radial-gradient(
      ellipse at center bottom,
      rgba(0, 0, 0, .10),
      transparent 45%
    );
}


/* =========================================================
   GARRAFA BASE
   ========================================================= */

.bottle {
  position: relative;

  width: 180px;
  height: 470px;

  transition:
    width .35s ease,
    height .35s ease,
    transform .35s ease;
}

.bottle:hover {
  transform: translateY(-8px);
}


/* =========================================================
   CORPO
   ========================================================= */

.bottle-body {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 22px;
  top: 60px;

  border-radius:
    22px
    22px
    30px
    30px;

  overflow: hidden;

  background: #191919;

  box-shadow:
    inset 12px 0 22px rgba(255,255,255,.06),
    inset -14px 0 20px rgba(0,0,0,.25),
    0 20px 30px rgba(0,0,0,.18);

  transition:
    background .3s ease,
    border-radius .3s ease,
    width .3s ease;
}

.bottle-highlight {
  position: absolute;

  left: 17px;
  top: 20px;
  bottom: 25px;

  width: 10px;

  border-radius: 50%;

  background:
    linear-gradient(
      to right,
      rgba(255,255,255,.22),
      rgba(255,255,255,0)
    );

  filter: blur(2px);

  opacity: .7;
}


/* =========================================================
   TAMPA
   ========================================================= */

.bottle-cap {
  position: absolute;

  width: 125px;
  height: 75px;

  top: 5px;
  left: 50%;

  transform: translateX(-50%);

  border-radius:
    16px
    16px
    10px
    10px;

  background:
    linear-gradient(
      90deg,
      #111,
      #3a3a3a 48%,
      #111
    );

  box-shadow:
    0 5px 10px rgba(0,0,0,.2);
}

.cap-handle {
  position: absolute;

  width: 72px;
  height: 38px;

  left: 50%;
  top: -25px;

  transform: translateX(-50%);

  border:
    11px solid #292929;

  border-bottom: 0;

  border-radius:
    35px
    35px
    0
    0;
}


/* =========================================================
   FUNDO
   ========================================================= */

.bottle-bottom {
  position: absolute;

  bottom: 12px;
  left: 15px;
  right: 15px;

  height: 18px;

  border-radius: 50%;

  background: rgba(0,0,0,.28);
}


/* =========================================================
   GRAVAÇÃO
   ========================================================= */

.engraving {
  position: absolute;

  top: 48%;
  left: 50%;

  width: 80%;

  transform:
    translate(-50%, -50%)
    rotate(-1deg);

  text-align: center;

  color: rgba(235,235,225,.88);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 20px;
  font-weight: 700;

  letter-spacing: .08em;

  text-shadow:
    0 1px 1px rgba(0,0,0,.35);

  overflow-wrap: anywhere;

  transition: color .3s ease;
}


/* =========================================================
   PREVIEW CAPTION
   ========================================================= */

.preview-caption {
  padding: 20px 25px 25px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  border-top: 1px solid var(--gray-200);
}

.preview-caption strong {
  font-size: 13px;
  letter-spacing: .05em;
}

.preview-caption span {
  color: var(--gray-500);
  font-size: 11px;
}


/* =========================================================
   MODELOS — FORMAS
   ========================================================= */

/* Térmica */

.bottle-thermal {
  width: 180px;
  height: 470px;
}

/* Sport */

.bottle-sport {
  width: 185px;
  height: 450px;
}

.bottle-sport .bottle-body {
  top: 75px;
  border-radius: 28px 28px 35px 35px;
}

.bottle-sport .bottle-cap {
  width: 115px;
  height: 92px;

  border-radius: 20px 20px 12px 12px;
}

.bottle-sport .cap-handle {
  display: none;
}


/* Slim */

.bottle-slim {
  width: 135px;
  height: 455px;
}

.bottle-slim .bottle-body {
  border-radius: 18px 18px 24px 24px;
}

.bottle-slim .bottle-cap {
  width: 100px;
  height: 62px;
}


/* Grande */

.bottle-large {
  width: 205px;
  height: 470px;
}

.bottle-large .bottle-body {
  border-radius: 27px 27px 34px 34px;
}

.bottle-large .bottle-cap {
  width: 135px;
}


/* Clássica */

.bottle-classic {
  width: 175px;
  height: 450px;
}

.bottle-classic .bottle-body {
  top: 70px;
  border-radius: 50px;
}

.bottle-classic .bottle-cap {
  width: 105px;
}


/* Wide */

.bottle-wide {
  width: 220px;
  height: 435px;
}

.bottle-wide .bottle-body {
  top: 65px;
  border-radius: 30px 30px 42px 42px;
}

.bottle-wide .bottle-cap {
  width: 130px;
}


/* =========================================================
   CORES DAS GARRAFAS
   ========================================================= */

.color-black .bottle-body {
  background:
    linear-gradient(
      90deg,
      #0c0c0c,
      #2a2a2a 45%,
      #111
    );
}

.color-white .bottle-body {
  background:
    linear-gradient(
      90deg,
      #d8d8d8,
      #ffffff 45%,
      #cfcfcf
    );
}

.color-white .bottle-cap {
  background:
    linear-gradient(
      90deg,
      #dedede,
      #ffffff,
      #cfcfcf
    );
}

.color-blue .bottle-body {
  background:
    linear-gradient(
      90deg,
      #06335f,
      #1765a0 45%,
      #082d51
    );
}

.color-lightblue .bottle-body {
  background:
    linear-gradient(
      90deg,
      #74b9dc,
      #b5e1f4 45%,
      #5da7cc
    );
}

.color-green .bottle-body {
  background:
    linear-gradient(
      90deg,
      #174a39,
      #31755a 45%,
      #123a2d
    );
}

.color-red .bottle-body {
  background:
    linear-gradient(
      90deg,
      #7d1717,
      #c83a35 45%,
      #701111
    );
}

.color-gray .bottle-body {
  background:
    linear-gradient(
      90deg,
      #565656,
      #9a9a9a 45%,
      #4a4a4a
    );
}

.color-purple .bottle-body {
  background:
    linear-gradient(
      90deg,
      #45205f,
      #8153a0 45%,
      #39184f
    );
}


/* =========================================================
   CONTROLS
   ========================================================= */

.controls-panel {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.control-section {
  padding-bottom: 32px;

  border-bottom: 1px solid var(--gray-200);
}

.section-title {
  display: flex;
  gap: 16px;

  margin-bottom: 22px;
}

.section-title > span {
  width: 31px;
  height: 31px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: var(--black);
  color: white;

  font-size: 10px;
  font-weight: 800;
}

.section-title small {
  display: block;

  margin-bottom: 4px;

  color: var(--gray-500);

  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
}

.section-title h2 {
  font-size: 19px;
  letter-spacing: -.025em;
}


/* =========================================================
   MODELOS
   ========================================================= */

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.model-card {
  min-height: 145px;

  padding: 15px 10px;

  border:
    1px solid
    var(--gray-200);

  border-radius: var(--radius-small);

  background: white;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  transition: var(--transition);
}

.model-card:hover {
  border-color: #999;
  transform: translateY(-2px);
}

.model-card.active {
  border-color: var(--black);

  box-shadow:
    0 0 0 1px var(--black);
}

.model-card strong {
  margin-top: 10px;

  font-size: 12px;
}

.model-card small {
  margin-top: 4px;

  color: var(--gray-500);

  font-size: 10px;
}


/* =========================================================
   MINI GARRAFAS
   ========================================================= */

.mini-bottle {
  position: relative;

  width: 38px;
  height: 77px;

  border-radius: 8px 8px 10px 10px;

  background: linear-gradient(
    90deg,
    #111,
    #444,
    #111
  );
}

.mini-bottle::before {
  content: "";

  position: absolute;

  top: -9px;
  left: 7px;

  width: 24px;
  height: 13px;

  border-radius: 4px;

  background: #292929;
}

.mini-bottle i {
  position: absolute;

  top: 35px;
  left: 7px;

  width: 24px;
  height: 2px;

  background: rgba(255,255,255,.55);
}


/* MINI — FORMAS */

.mini-sport {
  height: 73px;
  border-radius: 10px 10px 13px 13px;
}

.mini-sport::before {
  height: 18px;
}

.mini-slim {
  width: 29px;
  height: 80px;
}

.mini-large {
  width: 44px;
  height: 78px;
}

.mini-classic {
  width: 38px;
  height: 73px;
  border-radius: 18px;
}

.mini-wide {
  width: 46px;
  height: 70px;
}


/* =========================================================
   CORES
   ========================================================= */

.color-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.color-option {
  padding: 9px;

  border:
    1px solid
    var(--gray-200);

  border-radius: 10px;

  background: white;

  display: flex;
  align-items: center;
  gap: 8px;

  color: var(--gray-700);

  font-size: 10px;

  transition: var(--transition);
}

.color-option:hover {
  border-color: #999;
}

.color-option.active {
  border-color: var(--black);

  box-shadow:
    0 0 0 1px var(--black);

  color: var(--black);
}

.swatch {
  width: 18px;
  height: 18px;

  flex: 0 0 18px;

  border-radius: 50%;

  border: 1px solid rgba(0,0,0,.12);
}

.swatch.black {
  background: #111;
}

.swatch.white {
  background: #fff;
}

.swatch.blue {
  background: #1765a0;
}

.swatch.lightblue {
  background: #a8d8ef;
}

.swatch.green {
  background: #31755a;
}

.swatch.red {
  background: #c83a35;
}

.swatch.gray {
  background: #8a8a8a;
}

.swatch.purple {
  background: #8153a0;
}


/* =========================================================
   INPUT
   ========================================================= */

.engraving-section label {
  display: block;

  margin-bottom: 8px;

  font-size: 12px;
  font-weight: 700;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 100%;

  padding: 16px 55px 16px 16px;

  border:
    1px solid
    var(--gray-300);

  border-radius: 10px;

  outline: none;

  background: white;

  color: var(--black);

  font-size: 14px;

  transition: var(--transition);
}

.input-wrapper input:focus {
  border-color: var(--black);

  box-shadow:
    0 0 0 3px rgba(0,0,0,.06);
}

#charCount {
  position: absolute;

  top: 50%;
  right: 15px;

  transform: translateY(-50%);

  color: var(--gray-500);

  font-size: 10px;
}

.engraving-hint {
  margin-top: 9px;

  color: var(--gray-500);

  font-size: 10px;
  line-height: 1.5;
}


/* =========================================================
   ORDER BOX
   ========================================================= */

.order-box {
  padding: 22px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  border-radius: var(--radius);

  background: var(--black);
  color: white;
}

.order-box small {
  display: block;

  margin-bottom: 7px;

  color: #999;

  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.order-box strong {
  display: block;

  font-size: 13px;
}

.order-button {
  flex-shrink: 0;

  padding: 14px 19px;

  border-radius: 9px;

  background: white;
  color: var(--black);

  font-size: 12px;
  font-weight: 800;

  transition: var(--transition);
}

.order-button span {
  margin-left: 10px;
}

.order-button:hover {
  transform: translateY(-2px);
  background: #eeeeee;
}


/* =========================================================
   INFO
   ========================================================= */

.info-section {
  padding: 100px 0;

  background: var(--black);
  color: white;
}

.info-heading {
  max-width: 700px;
}

.info-heading .eyebrow {
  color: #888;
}

.info-heading h2 {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -.055em;
}

.info-heading p {
  max-width: 600px;

  margin-top: 22px;

  color: #aaa;

  line-height: 1.7;
}

.info-grid {
  margin-top: 70px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 1px;

  background: #333;
}

.info-grid article {
  min-height: 220px;

  padding: 30px;

  background: var(--black);
}

.info-number {
  color: #777;

  font-size: 11px;
  font-weight: 800;
}

.info-grid h3 {
  margin-top: 45px;

  font-size: 20px;
}

.info-grid p {
  margin-top: 13px;

  color: #999;

  font-size: 13px;
  line-height: 1.7;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  background: #0b0b0b;
  color: #777;
}

.footer-inner {
  min-height: 80px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  font-size: 11px;
}

.footer-inner a:hover {
  color: white;
}


/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 950px) {

  .builder-grid {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    position: relative;
    top: 0;
  }

  .controls-panel {
    max-width: 650px;
  }

}


@media (max-width: 620px) {

  .container {
    width: min(100% - 28px, 1180px);
  }

  .topbar {
    height: 65px;
  }

  .back-link {
    font-size: 11px;
  }

  .hero {
    padding: 55px 0 35px;
  }

  .hero h1 {
    font-size: 47px;
  }

  .hero p {
    font-size: 14px;
  }

  .product-builder {
    padding-bottom: 65px;
  }

  .preview-panel {
    min-height: 580px;
  }

  .bottle-stage {
    min-height: 460px;
  }

  .bottle {
    transform: scale(.82);
  }

  .bottle:hover {
    transform: scale(.82) translateY(-6px);
  }

  .model-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .color-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview-caption {
    display: block;
  }

  .preview-caption span {
    display: block;
    margin-top: 5px;
  }

  .order-box {
    align-items: stretch;
    flex-direction: column;
  }

  .order-button {
    text-align: center;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-grid article {
    min-height: auto;
  }

  .info-grid h3 {
    margin-top: 30px;
  }

}


@media (max-width: 390px) {

  .hero h1 {
    font-size: 40px;
  }

  .bottle-stage {
    min-height: 430px;
  }

  .bottle {
    transform: scale(.72);
  }

  .bottle:hover {
    transform: scale(.72) translateY(-5px);
  }

}