/*
 * Naharland v1473 — public homepage mobile hero correction.
 * Scope lock: public homepage header and first-screen hero at <= 620px only.
 * Desktop, ordering, payments, dashboards and business behaviour are unchanged.
 */
@media (max-width: 620px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  header[data-nl1400-public-home-header="1"] {
    background: rgba(255, 253, 249, .97);
    box-shadow: 0 7px 24px rgba(46, 14, 17, .08);
    backdrop-filter: blur(16px);
  }

  header[data-nl1400-public-home-header="1"] .container.head {
    width: 100%;
    height: 68px;
    margin: 0;
    padding-inline: 14px;
    gap: 12px;
    overflow: hidden;
  }

  header[data-nl1400-public-home-header="1"] .head > a:first-child {
    display: inline-flex;
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 132px);
    align-items: center;
    justify-content: flex-start;
  }

  header[data-nl1400-public-home-header="1"] .logo {
    width: min(132px, 100%);
    height: 52px;
    object-fit: cover;
    object-position: center 45%;
  }

  header[data-nl1400-public-home-header="1"] .header-actions {
    flex: 0 0 auto;
    margin: 0 auto 0 0;
  }

  header[data-nl1400-public-home-header="1"] .header-actions .mini-btn.fill {
    min-width: 116px;
    min-height: 44px;
    height: 44px;
    padding-inline: 14px;
    border-radius: 12px;
    font-size: 11px;
    box-shadow: 0 9px 22px rgba(104, 24, 28, .18);
  }

  .hero-v5 {
    width: 100%;
    min-height: calc(100svh - 68px);
    max-width: 100%;
    padding: 0;
    background-position: 58% center;
    overflow: hidden;
  }

  .hero-v5 .hero-shade {
    background:
      linear-gradient(0deg, rgba(58, 10, 13, .97) 0%, rgba(72, 16, 20, .80) 54%, rgba(34, 9, 11, .48) 100%);
  }

  .hero-v5 .hero-v5-content {
    width: 100%;
    min-height: calc(100svh - 68px);
    margin: 0;
    padding: clamp(78px, 11vh, 98px) 20px 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
  }

  .hero-v5 .hero-copy {
    width: min(100%, 430px);
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-v5 .hero-label {
    margin: 0 auto;
    font-size: 11px;
    line-height: 1.7;
  }

  .hero-v5 h1 {
    width: 100%;
    max-width: 11.5em;
    margin: 14px auto 12px;
    font-size: clamp(32px, 9.4vw, 40px);
    line-height: 1.34;
    letter-spacing: -.035em;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }

  .hero-v5 h1 strong {
    display: inline;
  }

  .hero-v5 h1 strong::after {
    width: 76px;
    height: 3px;
    margin: 10px auto 0;
  }

  .hero-v5 .hero-copy > p {
    width: 100%;
    max-width: 34ch;
    margin: 0 auto;
    color: #f5e7e3;
    font-size: clamp(13px, 3.7vw, 15px);
    line-height: 1.9;
    text-wrap: balance;
  }

  .hero-v5 .hero-actions {
    width: 100%;
    max-width: 350px;
    margin: 20px auto 0;
    display: grid;
    gap: 10px;
  }

  .hero-v5 .hero-actions .btn {
    width: 100%;
    min-height: 52px;
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 13px;
  }

  .hero-v5 .hero-primary {
    color: #811a20;
    background: #fff8ef;
    box-shadow: 0 14px 30px rgba(20, 4, 5, .27);
  }

  .hero-v5 .hero-primary b {
    font-size: 18px;
  }

  .hero-v5 .hero-secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .76);
    background: rgba(63, 8, 12, .32);
    backdrop-filter: blur(10px);
  }

  .hero-v5 .hero-trust,
  .hero-v5 .hero-food-rail {
    display: none !important;
  }

  .hero-v5::after {
    content: "⌄";
    position: absolute;
    right: 50%;
    bottom: 8px;
    display: block;
    z-index: 5;
    color: rgba(255, 255, 255, .90);
    font-size: 32px;
    line-height: 1;
    transform: translateX(50%);
    pointer-events: none;
  }

  #platform {
    padding-top: 70px;
  }
}

@media (max-width: 360px) {
  header[data-nl1400-public-home-header="1"] .container.head {
    padding-inline: 10px;
    gap: 8px;
  }

  header[data-nl1400-public-home-header="1"] .head > a:first-child {
    max-width: calc(100% - 113px);
  }

  header[data-nl1400-public-home-header="1"] .logo {
    width: min(116px, 100%);
  }

  header[data-nl1400-public-home-header="1"] .header-actions .mini-btn.fill {
    min-width: 105px;
    padding-inline: 10px;
    font-size: 10.5px;
  }

  .hero-v5 .hero-v5-content {
    padding-inline: 15px;
  }

  .hero-v5 h1 {
    font-size: 31px;
  }
}
