/**
 * Standalone styles for qr.html — do not import site Tailwind / custom.scss.
 */

 @font-face {
  font-family: 'Pangaea';
  src: url('../fonts/Pangaea_Regular.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Pangaea';
  src: url('../fonts/Pangaea_Bold.woff2') format('woff2');
  font-weight: 600 900;
  font-style: normal;
  font-display: block;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.qr-page {
  margin: 0;
  background-color: #fff;
  color: #000;
  font-family: 'Pangaea', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
  body.qr-page {
    background-color: #111;
    padding: 2rem 1rem;
  }
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

.qr {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin-inline: auto;
  overflow-x: hidden;
  background-color: #fff;
}

@media (min-width: 768px) {
  .qr {
    min-height: 0;
    max-width: 26.75rem;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
  }
}

/* Header — 32px */
.qr__header {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  height: 2rem;
  padding-inline: 0.75rem;
  background-color: #000;
  color: #fff;
}

.qr__logo {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: #fff;
}

.qr__logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.qr__brand {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.025em;
}

/* Hero + coupon card */
.qr__hero {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  padding: 0;
  background-color: #262626;
}

.qr__hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.qr__hero-veil {
  position: absolute;
  inset: 0;
  background-color: rgb(0 0 0 / 0.1);
  pointer-events: none;
}

.qr__card {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: min(72%, 16.5rem);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  text-align: center;
  background-color: #fff;
  transform: translate(-50%, -50%);
}

.qr__card-label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-family: 'Pangaea', system-ui, sans-serif;
}

.qr__card-offer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin: 0.5rem 0 0.875rem;
  line-height: 1;
}

.qr__card-amount {
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  font-family: 'Pangaea', system-ui, sans-serif;
}

@media (min-width: 640px) {
  .qr__card-amount {
    font-size: 6rem;
  }
}

.qr__card-unit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1.25;
  font-family: 'Pangaea', system-ui, sans-serif;
}

@media (min-width: 640px) {
  .qr__card-unit {
    font-size: 1.5rem;
  }
}

.qr__card-expiry {
  width: 100%;
  margin: 0;
  padding: 0.5rem 0.375rem;
  background-color: #000;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  font-family: 'Pangaea', system-ui, sans-serif;
   text-align: center;
}

/* Details */
.qr__details {
  padding: 3rem 1.5rem 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .qr__details {
    padding: 3rem 1.5rem 1.5rem;
  }
}

.qr__details-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
}

.qr__details-label,
.qr__details-value {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1.6;
}

.qr__details-label {
  white-space: nowrap;
  font-weight: 600;
}

.qr__details-value {
  text-align: start;
}

.qr__details-note {
  margin: 4px 0 0;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  text-align: end;
  align-self: stretch;
}

.qr__details-products {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Floor map */
.qr__map {
  padding: 0.5rem 1.5rem 3rem;
}

@media (min-width: 768px) {
  .qr__map {
    padding: 0.5rem 1.5rem 3rem;
  }
}

.qr__map-img {
  display: block;
  width: 80%;
  max-width: 24rem;
  height: auto;
  margin-inline: auto;
}

/* Footer */
.qr__footer {
  margin-top: auto;
  padding: 2rem 1.5rem calc(2rem + env(safe-area-inset-bottom));
  background-color: #000;
  color: #fff;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
}

.qr__hours-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.qr__hours-row + .qr__hours-row {
  margin-top: 0.5rem;
}

.qr__hours-day {
  flex-shrink: 0;
}

.qr__hours-time {
  text-align: right;
}

.qr__hours-lo {
  font-size: 0.75rem;
}
