/* =====================================================================
   Group A — Age Gate, Cigars (All Brands), Search, 404
   Sizes in em (design px / 16, or / own font-size). Desktop design 1440.
   ===================================================================== */

/* ------------------------- Shared bits ------------------------- */

.ga-kicker {
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ga-kicker.is--gold {
  color: var(--color-gold);
}

.ga-input {
  flex: 1;
  min-width: 0;
  min-height: 2.9333em;
  padding: 0 0.8em;
  background: #fff7e2;
  border: 1px solid var(--color-rule);
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 0.9375em;
  font-weight: 500;
  color: var(--color-dark);
}

.ga-input:focus {
  outline: 2px solid var(--color-dark);
  outline-offset: -1px;
  border-color: var(--color-dark);
}

.ga-input::placeholder {
  color: var(--color-gold-muted);
}

/* ------------------------- Age gate (AgeGate artboard) ------------------------- */

.ga-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5em 0.75em;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--color-dark);
  isolation: isolate;
}

.ga-gate[hidden],
html[data-age-ok] .ga-gate[data-age-gate-mode="overlay"] {
  display: none;
}

.ga-gate__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) brightness(0.55);
  transform: scale(1.04); /* hides the blur's soft edge */
}

.ga-gate__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25em;
  width: min(35em, 100%);
  margin: auto 0;
  padding: 3em 2.5em 2.25em;
  background: var(--color-cream);
  text-align: center;
}

.ga-gate__logo {
  width: 15em;
  height: auto;
}

.ga-gate__state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25em;
  width: 100%;
}

.ga-gate__state[hidden] {
  display: none;
}

.ga-gate__title {
  margin-top: 0.1818em;
  font-size: 2.75em;
  line-height: 0.9545;
}

.ga-gate__title:focus {
  outline: none;
}

.ga-gate__title.is--small {
  margin-top: 0.2em;
  font-size: 2.5em;
  line-height: 1;
}

.ga-gate__text {
  font-size: 0.9375em;
  line-height: 1.2667;
  font-weight: 500;
}

.ga-gate__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5em;
  width: 100%;
}

.ga-gate__btn {
  min-width: 0;
  min-height: 3.6923em;
  font-size: 0.8125em;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.ga-gate__btn.btn-dark {
  border: 0;
}

.ga-gate__btn.is--outline {
  padding: 0 0.9231em;
  background: none;
  border: 1px solid var(--color-dark);
  color: var(--color-dark);
  transition: background-color 0.3s var(--ease-osmo), color 0.3s var(--ease-osmo);
}

.ga-gate__btn.is--outline:hover {
  background: var(--color-dark);
  color: var(--color-cream);
}

.ga-check {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.7692em;
  font-size: 0.8125em;
  line-height: 1.3077;
  font-weight: 500;
  cursor: pointer;
}

.ga-check__box {
  flex: none;
  width: 1.3846em;
  height: 1.3846em;
  margin: 0;
  accent-color: var(--color-dark);
}

.ga-gate__mistake {
  min-height: 3.3333em;
  padding: 0;
  background: none;
  border: 0;
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: underline;
  color: var(--color-dark);
  cursor: pointer;
}

.ga-gate__mistake:hover {
  color: var(--color-hover);
}

.ga-gate__enter {
  min-width: 16.6667em;
  min-height: 3.6667em;
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
}

.ga-gate__legal {
  font-size: 0.6875em;
  line-height: 1.2727;
  font-weight: 500;
  color: var(--color-hover);
}

.ga-gate__legal a {
  color: inherit;
}

html.ga-gate-open,
html.ga-gate-open body {
  overflow: hidden;
}

/* ------------------------- Cigars – All Brands (Cigars artboard) ------------------------- */

.ga-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 27.5em;
  margin-top: calc(2em + 3px);
  padding: 0 var(--gutter) 2em;
}

.ga-hero__title {
  max-width: 12.5em;
  font-size: 5em;
  line-height: 0.875;
  color: var(--color-cream);
}

.ga-hero__text {
  max-width: 35em;
  margin-top: 0.875em;
  font-size: 1em;
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-cream);
}

.ga-regionbar {
  position: sticky;
  top: 2em;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375em;
  padding: 1em var(--gutter);
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-line);
}

.ga-regions {
  display: flex;
  flex-direction: column;
  gap: 5.625em;
  padding: 3.75em var(--gutter) 10em;
  scroll-margin-top: 6em;
}

.ga-region {
  scroll-margin-top: 6em;
}

.ga-region[hidden] {
  display: none;
}

.ga-region__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1em;
  margin-bottom: 1.875em;
  padding-bottom: 0.375em;
  border-bottom: 1px solid var(--color-rule);
}

.ga-region__title {
  font-size: 2.75em;
  line-height: 1;
}

.ga-region__head .ga-kicker {
  flex-shrink: 0;
  text-align: right;
}

.ga-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5625em;
}

.ga-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  aspect-ratio: 275 / 310;
  padding: 0.6875em 0.625em 0.625em;
  border: 1px solid var(--color-line);
  color: var(--color-dark);
  text-align: center;
  text-decoration: none;
  transition: background-color 0.4s var(--ease-osmo);
}

.ga-tile:hover {
  background-color: #f7e6bb;
  color: var(--color-dark);
}

.ga-tile__band {
  position: relative;
  display: block;
  width: 84%;
}

.ga-tile__band img {
  display: block;
  width: 100%;
  height: auto;
}

.ga-tile__name {
  font-size: 1.25em;
  line-height: 1;
  text-transform: uppercase;
}

/* ------------------------- Search (Search artboard) ------------------------- */

.ga-search__head {
  padding: 7em var(--gutter) 2.5em;
}

.ga-search__form {
  display: flex;
  gap: 0.5em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid var(--color-dark);
  transition: border-color 0.3s ease;
}

.ga-search__form:focus-within {
  border-bottom-color: var(--color-hover);
}

.ga-search__input {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: var(--font-serif);
  font-size: 4em;
  line-height: 1.15;
  color: var(--color-dark);
  outline: none;
}

.ga-search__input::placeholder {
  color: var(--color-rule);
}

.ga-search__btn {
  align-self: center;
  min-height: 3.6667em;
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
}

.ga-search__count {
  margin-top: 1.1667em;
}

.ga-search__body {
  padding: 1.25em var(--gutter) 10em;
}

.ga-search__tabs {
  display: flex;
  gap: 0.375em;
  margin-bottom: 1.5em;
}

.ga-results {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ga-result {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25em;
  padding: 1.25em 0;
  border-top: 1px solid var(--color-line);
  color: var(--color-dark);
  text-decoration: none;
}

.ga-result:hover {
  color: var(--color-hover);
}

.ga-pill {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 2.1818em;
  padding: 0 0.9091em;
  border: 1px solid var(--color-rule);
  font-size: 0.6875em;
  font-weight: 700;
  text-transform: uppercase;
}

.ga-result__title {
  font-size: 2.125em;
  line-height: 1;
}

.ga-result__view {
  transition: transform 0.4s var(--ease-osmo);
}

.ga-result:hover .ga-result__view {
  transform: translateX(0.3333em);
}

/* ------------------------- 404 (NotFound artboard) ------------------------- */

.ga-404 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.5em;
  padding: 7em var(--gutter) 10em;
}

.ga-404__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25em;
}

.ga-404__title {
  font-size: 6em;
  line-height: 0.875;
}

.ga-404__lead {
  max-width: 42.2222em;
  font-size: 1.125em;
  line-height: 1.2778;
  font-weight: 500;
}

.ga-404__form {
  display: flex;
  gap: 0.5em;
  width: 100%;
  max-width: 32.5em;
}

.ga-404__btn {
  min-height: 3.3846em;
  border: 0;
  cursor: pointer;
}

.ga-404__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
}

.ga-404__img {
  justify-self: center;
  width: 100%;
  max-width: 32.5em;
  height: auto;
}

/* ------------------------- Tablet ------------------------- */

@media screen and (max-width: 991px) {
  .ga-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ga-404__title {
    font-size: 4.5em;
    line-height: 0.9;
  }

  .ga-search__input {
    font-size: 3.25em;
  }
}

/* ------------------------- Mobile ------------------------- */

@media screen and (max-width: 767px) {
  /* Age gate */
  .ga-gate {
    padding: 1.5em 0.5625em;
  }

  .ga-gate__dialog {
    gap: 1em;
    padding: 2em 1.25em 1.5em;
  }

  .ga-gate__state {
    gap: 1em;
  }

  .ga-gate__logo {
    width: 12.5em;
  }

  .ga-gate__title {
    font-size: 2.25em;
    line-height: 1;
  }

  .ga-gate__title.is--small {
    font-size: 2em;
  }

  /* Cigars */
  .ga-hero {
    height: 22.5em;
    margin-top: calc(2.3125em + 3px);
    padding: 0 0.5625em 1.5em;
  }

  .ga-hero__title {
    font-size: 2.75em;
    line-height: 0.9091;
  }

  .ga-hero__text {
    margin-top: 0.7143em;
    font-size: 0.875em;
    line-height: 1.2143;
  }

  .ga-regionbar {
    top: 2.3125em;
    flex-wrap: nowrap;
    padding: 0.75em 0.5625em;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .ga-regionbar::-webkit-scrollbar {
    display: none;
  }

  .ga-regionbar .tab {
    flex: none;
    white-space: nowrap;
  }

  .ga-regions {
    gap: 3.75em;
    padding: 2.5em 0.5625em 6.25em;
  }

  .ga-region__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375em;
    margin-bottom: 1.25em;
  }

  .ga-region__title {
    font-size: 2em;
  }

  .ga-region__head .ga-kicker {
    flex-shrink: 1;
    text-align: left;
  }

  .ga-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ga-tile__name {
    font-size: 1.125em;
  }

  /* Search */
  .ga-search__head {
    padding: calc(2.3125em + 2.5em) 0.5625em 1.5em;
  }

  .ga-search__input {
    font-size: 2.5em;
  }

  .ga-search__btn {
    min-width: 6.5em;
  }

  .ga-search__body {
    padding: 1em 0.5625em 6.25em;
  }

  .ga-search__tabs {
    margin-inline: -0.5625em;
    padding-inline: 0.5625em;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .ga-search__tabs::-webkit-scrollbar {
    display: none;
  }

  .ga-search__tabs .tab {
    flex: none;
  }

  .ga-result {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "pill view" "title title";
    gap: 0.75em 1em;
    padding: 1em 0;
  }

  .ga-pill {
    grid-area: pill;
  }

  .ga-result__view {
    grid-area: view;
  }

  .ga-result__title {
    grid-area: title;
    font-size: 1.75em;
  }

  /* 404 */
  .ga-404 {
    grid-template-columns: minmax(0, 1fr);
    gap: 3em;
    padding: calc(2.3125em + 3em) 0.5625em 6.25em;
  }

  .ga-404__title {
    font-size: 3.25em;
    line-height: 0.9231;
  }

  .ga-404__lead {
    font-size: 1em;
    line-height: 1.25;
  }

  .ga-404__btn {
    min-width: 6.5em;
  }

  .ga-404__img {
    max-width: 24em;
  }
}
