/* Mobile layout — max-width: 809px */

@media (max-width: 809px) {
  :root {
    --container-padding: 16px;
    --header-height: 48px;
    --mobile-content-width: calc(100% - (2 * var(--container-padding)));
  }

  body {
    font-size: var(--text-xs);
    line-height: normal;
  }

  .btn {
    line-height: normal;
    text-align: center;
  }

  .newsletter__submit {
    line-height: normal;
  }

  /* ── Hero ── */
  .hero {
    height: 100svh;
    min-height: 560px;
    max-height: none;
    overflow: hidden;
    isolation: isolate;
  }

  .hero__bg {
    object-position: center center;
  }

  .hero__portrait {
    top: calc(var(--announcement-height) + var(--header-height) + 52px);
    bottom: -6%;
    left: 50%;
    width: 142%;
    max-width: none;
    height: auto;
    max-height: none;
    transform: translateX(-50%);
    object-fit: contain;
    object-position: center bottom;
    pointer-events: none;
  }

  .hero__title {
    top: calc(var(--announcement-height) + var(--header-height) + 20px);
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    padding-inline: var(--container-padding);
    box-sizing: border-box;
    transform: none;
    font-size: clamp(20px, 5.8vw, 28px);
    font-weight: 500;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    animation: hero-in-mobile 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
  }

  .hero__content {
    left: 50%;
    right: auto;
    bottom: max(32px, env(safe-area-inset-bottom, 0px));
    width: var(--mobile-content-width);
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
    transform: translateX(-50%);
    gap: 20px;
    font-size: var(--text-xs);
    line-height: normal;
    animation: hero-in-mobile-content 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
  }

  @keyframes hero-in-mobile {
    from {
      opacity: 0;
      transform: translateY(20px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes hero-in-mobile-content {
    from {
      opacity: 0;
      transform: translateX(-50%) translateY(20px);
    }

    to {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
  }

  .hero__text {
    width: 100%;
    max-width: none;
    margin: 0;
    font-weight: 500;
    line-height: 19.2px;
    text-align: center;
  }

  .hero__actions {
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 280px;
    align-items: stretch;
  }

  .hero__actions .btn {
    min-width: 0;
    width: 100%;
    height: 38px;
    padding: 12px 16px;
    background-color: var(--color-white);
    color: var(--color-black);
    font-size: 12px;
    line-height: normal;
    text-align: center;
    white-space: normal;
  }

  .hero__actions .btn:hover {
    background-color: #cfcfcf;
    color: var(--color-black);
    opacity: 1;
  }

  @media (max-height: 700px) {
    .hero {
      min-height: 520px;
    }

    .hero__title {
      top: calc(var(--announcement-height) + var(--header-height) + 12px);
      font-size: clamp(18px, 5.2vw, 24px);
    }

    .hero__portrait {
      top: calc(var(--announcement-height) + var(--header-height) + 40px);
      bottom: -4%;
      width: 136%;
    }

    .hero__content {
      bottom: 24px;
      gap: 16px;
    }
  }

  .product-card__name,
  .product-card__price,
  .dropped__title,
  .dropped__text,
  .categories__title,
  .categories__text,
  .gallery__heading,
  .gallery__mobile-text {
    font-weight: 500;
  }

  .category-tile__label {
    font-weight: 500;
    line-height: 14.4px;
  }

  /* ── Featured products ── */
  .featured {
    height: auto;
    min-height: 0;
    padding-inline: var(--container-padding);
    gap: 24px;
  }

  .featured__grid {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .product-card {
    align-items: flex-start;
    width: 100%;
    max-width: none;
    flex: none;
    height: auto;
  }

  .product-card__details {
    align-items: flex-start;
    padding-top: 8px;
  }

  .product-card__swatches {
    justify-content: flex-start;
  }

  .product-card__media {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
  }

  .product-card__media img {
    object-fit: cover;
  }

  /* ── Just Dropped: image then black copy, not an overlay ── */
  .dropped {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    height: auto;
    min-height: 0;
    gap: 24px;
    overflow: hidden;
  }

  .dropped__media,
  .cms-content .dropped__media {
    flex-shrink: 0;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 1024 / 558;
  }

  .dropped__image,
  .cms-content .dropped__image,
  .dropped__media .dropped__image,
  .cms-content .dropped__media .dropped__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
  }

  .dropped__content {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    padding-inline: 0;
    transform: none;
    gap: 24px;
  }

  .dropped__content.js-reveal,
  .dropped__content.js-reveal.is-in {
    transform: none;
  }

  .dropped__copy {
    gap: 12px;
  }

  .dropped__title {
    width: 100%;
    font-size: 32px;
    line-height: 38.4px;
    white-space: normal;
    color: var(--color-black);
  }

  .dropped__text {
    width: 100%;
    color: var(--color-black);
  }

  .dropped .btn {
    min-width: 200px;
    width: 200px;
  }

  /* ── Gender ── */
  .gender {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: auto;
    min-height: 0;
    padding-inline: var(--container-padding);
    gap: 10px;
  }

  .gender__card {
    width: 100%;
    max-width: none;
    flex: none;
    height: auto;
    gap: 24px;
  }

  .gender__media {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
  }

  .gender__card .btn {
    min-width: 200px;
    width: 200px;
  }

  /* ── Shop by category ── */
  .categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .categories__intro {
    position: static;
    order: -1;
    grid-column: 1 / -1;
    padding: 0;
    gap: 12px;
  }

  .categories__col {
    display: contents;
  }

  .categories__title {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .categories__text {
    width: 100%;
    max-width: none;
  }

  .category-tile {
    aspect-ratio: 2 / 3;
  }

  .category-tile__label,
  .categories__col--left .category-tile__label,
  .categories__col--right .category-tile__label {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0;
  }

  /* ── Gallery ── */
  .gallery {
    padding-inline: var(--container-padding);
    gap: 24px;
  }

  .gallery__mobile-intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    text-align: center;
  }

  .gallery__mobile-intro .gallery__heading {
    font-size: 20px;
    line-height: 24px;
  }

  .gallery__mobile-text {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    line-height: 19.2px;
    color: var(--color-black);
    text-transform: uppercase;
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  .gallery__heading {
    text-transform: uppercase;
  }

  .gallery > .btn {
    align-self: center;
    text-transform: none;
  }

  .gallery__grid {
    flex-direction: column;
    height: auto;
    gap: 0;
  }

  .gallery__copy--left,
  .gallery__copy--right {
    display: none;
  }

  .gallery__media,
  .gallery-reel {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
  }

  .gallery-reel__stage {
    position: absolute;
    inset: 0;
    height: auto;
  }

  /* ── Footer ── */
  .site-footer {
    padding: 50px var(--container-padding) 50px;
    gap: 40px;
  }

  .newsletter {
    flex-direction: column;
    gap: 24px;
  }

  .newsletter__image {
    flex: none;
    width: 100%;
    aspect-ratio: 358 / 296;
  }

  .newsletter__content {
    flex: none;
    width: 100%;
    padding: 0;
    gap: 24px;
    align-items: stretch;
  }

  .newsletter__copy {
    gap: 8px;
  }

  .newsletter__form {
    flex-direction: row;
    height: 38px;
  }

  .newsletter__submit {
    width: 140px;
  }

  .site-footer__nav {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding-top: 20px;
  }

  .site-footer__brand {
    flex: none;
    width: 100%;
    align-items: center;
    gap: 40px;
  }

  .site-footer__logo {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .site-footer__logo .citybilla-logo-mark {
    width: 64px;
    height: 44px;
  }

  .site-footer__social {
    justify-content: center;
    width: 100%;
  }

  .site-footer__columns {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .site-footer__column {
    align-items: center;
    width: 100%;
  }

  .site-footer__column-title {
    width: 100%;
    text-align: center;
  }

  .site-footer__links {
    align-items: center;
  }

  .site-footer__link {
    align-items: center;
  }

  .site-footer__bottom {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .site-footer__legal {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: 10px;
  }
}

@media (min-width: 480px) and (max-width: 809px) {
  .category-tile {
    aspect-ratio: 2 / 3;
  }
}

@media (min-width: 810px) {
  .gallery__mobile-intro {
    display: none;
  }
}

@media (max-width: 809px) and (prefers-reduced-motion: reduce) {
  .hero__title {
    transform: none;
  }

  .hero__content {
    transform: translateX(-50%);
  }
}
