/* Same family names as Magento storefronts. Files from their theme static. */
@font-face {
  font-family: "Craftelier Labil Grotesk";
  src: url("../fonts/CraftelierLabilGrotesk-60Medium.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Editorial New";
  src: url("../fonts/EditorialNew.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Text";
  src: url("../fonts/SFProDisplay.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro";
  src: url("../fonts/SFProDisplay.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Hartem Editorial tokens — see docs/design/DESIGN.md */
:root {
  --color-primary: #2b2928;
  --color-secondary: #2e2d2b;
  --color-tertiary: #1979c3;
  --color-neutral: #f3eeea;
  --color-surface: #ffffff;
  --color-on-surface: #2b2928;
  --color-muted: #e5e7eb;
  --color-text-subtle: #333333;
  --color-accent: #15373d;
  --color-border: #2b2928;
  --color-error: #b42318;
  --color-step-complete: #15373d;
  --color-step-track: #e5e7eb;
  --color-step-upcoming: #333333;
  --font-craftelier: "Craftelier Labil Grotesk", sans-serif;
  --font-editorial: "Editorial New", serif;
  --font-ui: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", var(--font-ui);
  --radius-sm: 4px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-full: 9999px;
  --space-xs: 6px;
  --space-sm: 14px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 76px;
  --touch-min: 48px;
  --steps-count: 6;
  color: var(--color-on-surface);
  background: var(--color-neutral);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

html, body {
  height:100vh;
}

body {
  margin: 0;
}

.page {
  width: 100%;
  max-width: 767px;
  margin: 0 auto;
  padding: calc(var(--space-xl) + var(--space-md)) 0 var(--space-xl);
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.page__header {
  margin-bottom: var(--space-lg);
  text-align: left;
  display: flex;
  flex-direction:column;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

.page__header-row {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  margin-bottom: 10px;
}

.page__brand {
  display: block;
  width: auto;
  max-width: 200px;
  height: auto;
  margin: 0 auto;
}

.lang-switcher {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 30;
  flex: 0 0 auto;
}

.lang-switcher__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-min);
  height: var(--touch-min);
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-primary);
  cursor: pointer;
  font: inherit;
  transition: background-color 0.18s ease;
}

.lang-switcher__button:hover {
  background: color-mix(in srgb, var(--color-primary) 8%, var(--color-surface));
}

.lang-switcher__button:hover .lang-switcher__flag-img {
  filter: brightness(0.88);
}

.lang-switcher__button:focus-visible {
  outline: none;
  outline-offset: 0;
}

.lang-switcher--open .lang-switcher__button {
  background: color-mix(in srgb, var(--color-primary) 6%, var(--color-surface));
}

.lang-switcher__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--color-surface);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.lang-switcher__flag-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: filter 0.18s ease;
}

.lang-switcher__option .lang-switcher__flag {
  width: 20px;
  height: 20px;
}

.lang-switcher__list {
  position: absolute;
  top: calc(100% + var(--space-xs));
  right: 0;
  z-index: 20;
  margin: 0;
  padding: var(--space-xs);
  list-style: none;
  min-width: 15.5rem;
  max-height: 18rem;
  overflow-y: auto;
  border: 0px solid var(--color-border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--color-primary) 16%, transparent);
}

.lang-switcher__list[hidden] {
  display: none !important;
}

.lang-switcher__list > li {
  margin: 0;
  padding: 0;
}

.lang-switcher__list > li + li {
  margin-top: 2px;
}

.lang-switcher__option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-sm);
  width: 100%;
  min-height: 2.75rem;
  padding: var(--space-xs) var(--space-sm);
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-primary);
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.lang-switcher__option:hover,
.lang-switcher__option:focus-visible {
  background: var(--color-neutral);
}

.lang-switcher__option--active {
  font-weight: 700;
  background: color-mix(in srgb, var(--color-accent) 8%, var(--color-surface));
}

.lang-switcher__name {
  flex: 1 1 auto;
  min-width: 0;
}

.lang-switcher__check {
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: transparent;
}

.lang-switcher__option--active .lang-switcher__check {
  background: var(--color-step-complete);
}

.page__brand[data-brand="craftelier"] {
  max-width: 220px;
}

.eyebrow {
  margin: 0 0 var(--space-sm);
  margin-bottom:0;
  color: var(--color-text-subtle);
  font-family: var(--font-craftelier);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 var(--space-lg);
  margin-bottom:0;
  color: var(--color-primary);
  font-family: var(--font-craftelier);
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: left;
}

.lookup,
.order-view {
  padding: var(--space-lg) var(--space-md);
  border: 0px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.lookup h2 {
  margin: 0 0 var(--space-sm);
  margin-bottom:0;
  color: var(--color-primary);
  font-family: var(--font-craftelier);
  font-size: clamp(1.35rem, 4vw, 1.55rem);
  font-weight: 400;
  line-height: 1.25;
}

.lookup p {
  margin: 0 0 var(--space-md);
  color: var(--color-text-subtle);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
}

.lookup__form {
  display: flex;
  gap: 0;
  width: 100%;
  position:relative;
}

.lookup__form:after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  top: calc(50% - 15px);
  left: 10px;
  background-image: url(../img/icons/hartem/empaquetado.png);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 25px auto;
  opacity: 0.25;
}

.lookup__form label {
  color: var(--color-primary);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
}

.lookup__form input,
.lookup__form button {
  width: 100%;
  min-height: var(--touch-min);
  font: inherit;
}

.lookup__form input {
  padding: 10px 16px 10px 50px;
  border: 1px solid #f7f4f1;
  color: var(--color-primary);
  background: var(--color-surface);
  font-family: var(--font-body);
  font-size: 16px;
  flex:3;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.lookup__form input::placeholder {
  font-size:12px;
}

.lookup__form button {
  padding: 8px 20px;
  border: 1px solid #f7f4f1;
  background: #f7f4f1;
  color: #13373D;
  font-family: var(--font-craftelier);
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
  flex: 1;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  text-transform: uppercase;
}

.lookup__form button:hover {
  background: color-mix(in srgb, var(--color-accent) 88%, #000);
  border-color: color-mix(in srgb, var(--color-accent) 88%, #000);
  color:#fff;
}

.lookup__form input:focus-visible,
.lookup__form button:focus-visible {
  outline: none;
  outline-offset: 0;
}

#status {
  color: var(--color-error);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
}

#status:empty {
  display: none;
}

#status[hidden] {
  display: none !important;
}

.steps {
  --steps-count: 6;
  --step-icon-size: 3.35rem;
  --step-glyph-size: 1.85rem;
  /* Track aligns to icon centers: no top padding on .steps / .steps__item */
  --step-icon-center-y: calc(var(--step-icon-size) / 2);
  --step-track-height: 5px;
  --step-track-start: 10%;
  --step-track-end: 90%;
  --step-progress: 0;
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(var(--steps-count), minmax(0, 1fr));
  gap: var(--space-xs);
  margin: var(--space-lg) 0 var(--space-md);
  padding: 0;
  list-style: none;
}

.steps::before,
.steps::after {
  content: "";
  position: absolute;
  top: var(--step-icon-center-y);
  left: var(--step-track-start);
  height: var(--step-track-height);
  border-radius: var(--radius-full);
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
}

.steps::before {
  width: calc(var(--step-track-end) - var(--step-track-start));
  background: var(--color-step-track);
}

.steps::after {
  width: calc((var(--step-track-end) - var(--step-track-start)) * var(--step-progress));
  background: var(--color-step-complete);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.steps__item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  min-height: 0;
  padding: 0 0 var(--space-sm);
  border: 0;
  color: var(--color-step-upcoming);
  text-align: center;
}

.steps__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--step-icon-size);
  width: var(--step-icon-size);
  height: var(--step-icon-size);
  border: 1px solid var(--color-muted);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text-subtle);
  font-size: var(--step-glyph-size);
  line-height: 1;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.steps__icon .ph {
  font-size: var(--step-glyph-size);
  line-height: 1;
}

.steps__icon-img {
  display: block;
  width: var(--step-glyph-size);
  height: var(--step-glyph-size);
  object-fit: contain;
}

.steps__item--current .steps__icon-img {
  filter: brightness(0) invert(1);
}

.steps__label {
  max-width: 5.75rem;
  margin: 0;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
}

.steps__item--completed {
  color: var(--color-primary);
}

.steps__item--completed .steps__icon {
  border:1px solid #f3eeea;
  background: #f7f4f1;
  color: var(--color-step-complete);
}

.steps__item--current .steps__icon {
  border: 2px solid var(--color-step-complete);
  background: var(--color-step-complete);
  color: var(--color-surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-step-complete) 22%, transparent);
  animation: step-current-pulse 2.4s ease-in-out infinite;
}

.steps__item--current .steps__label {
  font-weight: 700;
  color: var(--color-primary);
}

.steps__item--completed:hover .steps__icon,
.steps__item--current:hover .steps__icon {
  transform: scale(1.08);
}

@keyframes step-current-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-step-complete) 22%, transparent);
  }
  50% {
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--color-step-complete) 10%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .steps::after {
    transition: none;
  }

  .steps__icon {
    transition: none;
  }

  .steps__item--current .steps__icon {
    animation: none;
  }

  .steps__item--completed:hover .steps__icon,
  .steps__item--current:hover .steps__icon {
    transform: none;
  }
}

.steps__item--upcoming {
  opacity: 0.85;
}

.steps__item--gap {
  opacity: 0.75;
}

.steps__item--gap .steps__icon {
  border-style: dashed;
}

.steps__tracking--placeholder {
  margin: var(--space-md) 0 0;
  padding: 0 var(--space-sm);
  color: var(--color-text-subtle);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.steps__hint {
  display: block;
  max-width: 5.75rem;
  margin: 0;
  font-family: var(--font-ui);
  font-size: 10px;
  line-height: 1.2;
  color: var(--color-text-subtle);
}

.steps__tracking {
  margin: var(--space-md) 0 0;
  text-align: center;
}

.steps__tracking-link {
  display: inline-block;
  min-height: var(--touch-min);
  padding: var(--space-xs) 0;
  color: var(--color-accent);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.steps__tracking-link:focus-visible {
  outline: 3px solid var(--color-tertiary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

#steps[hidden] {
  display: none;
}

.contact {
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-muted);
  color: var(--color-text-subtle);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.order-notice {
  margin: var(--space-md) 0;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-tertiary);
  background: color-mix(in srgb, var(--color-tertiary) 10%, var(--color-surface));
  color: var(--color-primary);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.4;
}

.order-notice[hidden] {
  display: none !important;
}

/*Específico Hartem*/


/*Responsive*/

@media(max-width:920px) {
  .page {
    width:80%;
    max-width: 80%;
  }
}

@media(max-width:767px) {
  
  html, body, .page {
    height:auto;
  }

  .lookup__form input {
    flex:2;
  }

  .steps {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    margin-top:0;
  }

  .steps__item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    gap:0;
  }

  .steps__label {
    max-width:100%;
  }

  .steps__label,
  .steps__hint {
    background-color:var(--color-surface);
    padding:5px 0;
  }

  .steps::before,
  .steps::after {
    content: "";
    position: absolute;
    top: 5px;
    left: calc(50% - 2.5px);
    bottom:15px;
    height: auto;
    border-radius: var(--radius-full);
    transform: none;
    z-index: 0;
    pointer-events: none;
    width: 5px;
  }

  .steps__label {
    text-align: left;
  }
}

@media(max-width:600px) {
  .lookup__form input::placeholder {
    font-size:12px;
  }
  .lookup__form input {
    padding:10px 16px 10px 40px;
  }
  .lookup__form::after {
    background-size: 20px auto;
  }
  .lookup__form button {
    font-size:14px;
  }
}

@media(max-width:512px) {
  .page {
    width:90%;
    max-width: 90%;
  }

  .lookup__form button {
    text-indent: -9999px;
    overflow:hidden;
    background: url(../img/icons/arrow.png) center center no-repeat #f7f4f1;
    background-size:25px auto;
  }

  .lookup__form button:hover {
    background: url(../img/icons/arrow-hover.png) center center no-repeat #13373D;
    background-size:25px auto;
  }

  .lookup__form input {
    flex:5;
   }

   .page__header {
    position:static;
   }

   .lang-switcher {
    top:25px;
    right:25px;
   }
}
