/* PATCH 027 — mobile structure only. No mobile images/assets are inserted. */
.mobile-site {
  display: none;
}

@media (max-width: 767px) {
  :root {
    --m-bg: #050506;
    --m-panel: #08080b;
    --m-panel-2: #0b0b10;
    --m-line: rgba(166, 76, 255, .34);
    --m-line-soft: rgba(255, 255, 255, .10);
    --m-purple: #a64cff;
    --m-purple-2: #d56cff;
    --m-text: #f4f1f8;
    --m-muted: #928d9b;
    --m-gap: 10px;
    --m-radius: 9px;
  }

  html,
  body {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    background: #000;
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .site-shell {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #000;
  }

  .desktop-header,
  .desktop-main {
    display: none !important;
  }

  .mobile-site {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0 14px 20px;
    color: var(--m-text);
    background: #000;
  }

  .mobile-header {
    min-height: 62px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .mobile-header__menu-slot {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 6px;
    background: var(--m-panel);
  }

  .mobile-header__logo-slot {
    width: min(182px, 100%);
    height: 38px;
    justify-self: start;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 6px;
    background: #030304;
  }

  .mobile-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-header__action-slot {
    position: relative;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
  }

  .mobile-header__badge,
  .mobile-bottom-nav__badge {
    position: absolute;
    display: grid;
    place-items: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #a72cff;
    color: #fff;
    font-size: 9px;
    line-height: 1;
  }

  .mobile-header__badge {
    top: -5px;
    right: -5px;
  }

  .mobile-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 10px;
  }

  .mobile-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    border: 1px solid var(--m-line);
    border-radius: 9px;
    background: var(--m-panel);
  }

  .mobile-media-slot--hero {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #08080a 0%, #050506 100%);
  }

  .mobile-hero__counter {
    position: absolute;
    right: 10px;
    bottom: 8px;
    min-width: 43px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 7px;
    background: rgba(0,0,0,.58);
    color: #cfcbd4;
    font-size: 10px;
  }

  .mobile-category-strip {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 1px 3px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .mobile-category-strip::-webkit-scrollbar {
    display: none;
  }

  .mobile-category-tile {
    flex: 0 0 56px;
    min-width: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    scroll-snap-align: start;
  }

  .mobile-category-tile__media {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(166, 76, 255, .27);
    border-radius: 8px;
    background: var(--m-panel);
  }

  .mobile-category-tile:first-child .mobile-category-tile__media {
    border-color: rgba(189, 75, 255, .72);
    box-shadow: 0 0 10px rgba(146, 42, 255, .18);
  }

  .mobile-category-tile__media img {
    display: block;
    width: 78%;
    height: 78%;
    max-width: 78%;
    max-height: 78%;
    object-fit: contain;
    object-position: center;
  }

  .mobile-category-tile__copy {
    width: 100%;
    min-width: 0;
    display: block;
    overflow: hidden;
    text-align: center;
  }

  .mobile-category-tile__copy strong {
    display: block;
    width: 100%;
    margin: 0;
    overflow: hidden;
    color: #d8d4dc;
    font-size: 8.2px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .mobile-category-tile__copy span {
    display: none;
  }

  .mobile-delivery {
    min-height: 66px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(166, 76, 255, .26);
    border-radius: var(--m-radius);
    background: var(--m-panel);
  }

  .mobile-delivery__icon-slot {
    width: 42px;
    height: 32px;
    border: 1px solid rgba(166, 76, 255, .24);
    border-radius: 6px;
  }

  .mobile-delivery__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .mobile-delivery__title,
  .mobile-promo__copy strong,
  .mobile-categories__head strong {
    color: #efebf3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.1px;
  }

  .mobile-delivery__sub,
  .mobile-promo__copy span,
  .mobile-categories__head span,
  .mobile-category-card__copy span {
    color: #9f99a7;
    font-size: 8px;
    letter-spacing: .9px;
  }

  .mobile-delivery__arrow,
  .mobile-promo__arrow,
  .mobile-category-card__arrow {
    color: #b9b4c2;
    font-size: 22px;
    line-height: 1;
  }

  .mobile-products {
    min-width: 0;
  }

  .mobile-section-head {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-section-head h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
  }

  .mobile-section-head__action {
    color: #b368ff;
    font-size: 10px;
    white-space: nowrap;
  }

  .mobile-product-row,
  .mobile-category-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 1px 3px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .mobile-product-row::-webkit-scrollbar,
  .mobile-category-row::-webkit-scrollbar {
    display: none;
  }

  .mobile-product-card {
    position: relative;
    flex: 0 0 42%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(166, 76, 255, .24);
    border-radius: 9px;
    background: var(--m-panel);
    scroll-snap-align: start;
  }

  .mobile-product-card__media {
    position: relative;
    aspect-ratio: 1 / 1.08;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: #07070a;
  }

  .mobile-product-card__heart-slot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
  }

  .mobile-product-card__body {
    position: relative;
    min-height: 90px;
    padding: 10px 42px 10px 10px;
  }

  .mobile-product-card__line,
  .mobile-product-card__price {
    display: block;
    height: 7px;
    margin-bottom: 7px;
    border-radius: 99px;
    background: #151519;
  }

  .mobile-product-card__line--title {
    width: 86%;
  }

  .mobile-product-card__line:not(.mobile-product-card__line--title) {
    width: 64%;
  }

  .mobile-product-card__price {
    width: 45%;
    height: 10px;
    margin-top: 15px;
    margin-bottom: 0;
    background: #2b1839;
  }

  .mobile-product-card__cart-slot {
    position: absolute;
    right: 9px;
    bottom: 9px;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(166, 76, 255, .45);
    border-radius: 6px;
  }

  .mobile-promo {
    position: relative;
    min-height: 92px;
    display: grid;
    grid-template-columns: minmax(0, 42%) 1fr 18px;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(166, 76, 255, .26);
    border-radius: var(--m-radius);
    background: var(--m-panel);
  }

  .mobile-promo__copy {
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding-left: 12px;
  }

  .mobile-promo__copy strong,
  .mobile-categories__head strong {
    color: #cb77ff;
  }

  .mobile-promo__media-slot {
    background: #07070a;
  }

  .mobile-promo__arrow {
    display: grid;
    place-items: center;
  }

  .mobile-categories {
    border: 1px solid rgba(166, 76, 255, .20);
    border-radius: var(--m-radius);
    background: #050506;
  }

  .mobile-categories__head {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }

  .mobile-categories__head > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .mobile-categories__head > span {
    color: #b9b4c2;
    font-size: 22px;
  }

  .mobile-category-row {
    padding: 8px;
  }

  .mobile-category-card {
    position: relative;
    flex: 0 0 37%;
    min-height: 128px;
    overflow: hidden;
    border: 1px solid rgba(166, 76, 255, .26);
    border-radius: 8px;
    background: #07070a;
    scroll-snap-align: start;
  }

  .mobile-category-card__media {
    position: absolute;
    inset: 0;
    background: #07070a;
  }

  .mobile-category-card__copy {
    position: absolute;
    left: 9px;
    right: 22px;
    bottom: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .mobile-category-card__copy strong {
    font-size: 10px;
    letter-spacing: .5px;
  }

  .mobile-category-card__arrow {
    position: absolute;
    right: 7px;
    bottom: 13px;
    z-index: 3;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    min-height: 66px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    padding: 5px 8px max(5px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(166, 76, 255, .16);
    background: rgba(3, 3, 5, .96);
    backdrop-filter: blur(14px);
  }

  .mobile-bottom-nav__item {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #b5b0bb;
    font-size: 9px;
    line-height: 1;
  }

  .mobile-bottom-nav__item.is-active {
    color: #c16bff;
  }

  .mobile-bottom-nav__icon-slot {
    width: 25px;
    height: 25px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 7px;
  }

  .mobile-bottom-nav__item.is-active .mobile-bottom-nav__icon-slot {
    border-color: rgba(181, 82, 255, .60);
    box-shadow: 0 0 9px rgba(147, 44, 255, .15);
  }

  .mobile-bottom-nav__badge {
    top: -2px;
    left: calc(50% + 10px);
  }

  /* Keep legal pages reachable after the mobile content without forcing desktop widths. */
  .site-footer {
    width: 100%;
    height: auto;
    min-height: 0;
    margin-top: 4px;
    grid-template-rows: auto auto;
    overflow: visible;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 14px 16px;
    text-align: center;
  }

  .footer-brand,
  .footer-socials,
  .footer-future {
    justify-self: center;
  }

  .footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    row-gap: 10px;
    column-gap: 14px;
  }

  .footer-nav__item {
    height: auto;
    min-height: 0;
    padding: 0;
    line-height: 1.35;
  }

  .footer-nav__item::after {
    display: none !important;
  }

  .site-footer__bottom {
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 12px 14px 14px;
    text-align: center;
  }

  .footer-copyright,
  .footer-signature {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }

  .footer-signature {
    letter-spacing: 1.2px;
  }
}

/* 320–359 px: compact phones. */
@media (min-width: 320px) and (max-width: 359px) {
  .mobile-site { padding-left: 10px; padding-right: 10px; }
  .mobile-header { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 7px; }
  .mobile-header__logo-slot { height: 34px; }
  .mobile-header__action-slot { width: 27px; height: 27px; }
  .mobile-category-strip { gap: 5px; }
  .mobile-category-tile { flex-basis: 50px; min-width: 50px; gap: 4px; }
  .mobile-category-tile__media { width: 50px; height: 50px; }
  .mobile-category-tile__copy strong { font-size: 7.4px; }
  .mobile-product-card { flex-basis: 47%; }
  .mobile-category-card { flex-basis: 47%; }
  .mobile-section-head h2 { font-size: 16px; }
}

/* 360–389 px: common small phones. */
@media (min-width: 360px) and (max-width: 389px) {
  .mobile-site { padding-left: 12px; padding-right: 12px; }
  .mobile-product-card { flex-basis: 44%; }
  .mobile-category-card { flex-basis: 42%; }
}

/* 390–430 px: reference-class phones. */
@media (min-width: 390px) and (max-width: 430px) {
  .mobile-site { padding-left: 14px; padding-right: 14px; }
  .mobile-product-card { flex-basis: 42%; }
  .mobile-category-card { flex-basis: 39%; }
}

/* 431–480 px: large phones. */
@media (min-width: 431px) and (max-width: 480px) {
  .mobile-site { padding-left: 16px; padding-right: 16px; }
  .mobile-header__logo-slot { width: 194px; }
  .mobile-product-card { flex-basis: 39%; }
  .mobile-category-card { flex-basis: 36%; }
  .mobile-category-tile { flex-basis: 60px; min-width: 60px; }
  .mobile-category-tile__media { width: 60px; height: 60px; }
}

/* 481–767 px: very large phones / landscape-safe mobile. */
@media (min-width: 481px) and (max-width: 767px) {
  .mobile-site { max-width: 620px; margin: 0 auto; padding-left: 18px; padding-right: 18px; }
  .mobile-product-card { flex-basis: 34%; }
  .mobile-category-card { flex-basis: 32%; }
  .mobile-header__logo-slot { width: 210px; }
}
