/* Main-page mobile treatment based on DESIGN-onnurigood.md */
@media (max-width: 900px) {
  :root {
    --v2-gutter: 15px;
  }

  body.v2 {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
    color: #666;
    font-size: 14px;
  }

  body.v2 .v2-announcement {
    height: 29px;
    color: #666;
    background: #f5e8d8;
    font-size: 11px;
  }

  body.v2 .v2-announcement__inner {
    min-height: 29px;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
  }

  body.v2 .v2-announcement__inner p:nth-child(2) {
    display: none;
  }

  body.v2 .v2-announcement strong {
    color: var(--v2-orange-700);
  }

  body.v2 .v2-header-main {
    min-height: 65px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }

  body.v2 .v2-brand {
    gap: 0;
    color: #171719;
    font-family: var(--v2-font-display);
    font-size: 20px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: -.06em;
  }

  body.v2 .v2-brand__mark {
    width: auto;
    height: auto;
    margin-right: 2px;
    border-radius: 0;
    color: #ff7e15;
    background: transparent;
    font-size: 24px;
  }

  body.v2 .v2-search-wrap,
  body.v2 .v2-user-menu {
    display: none;
  }

  body.v2 .v2-mobile-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0;
  }

  body.v2 .v2-mobile-actions button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    color: #171719;
    background: transparent;
  }

  body.v2 .v2-gnb {
    display: block;
    height: 65px;
    overflow: hidden;
    border-block: 1px solid #ececf2;
    background: #fff;
  }

  body.v2 .v2-gnb__inner {
    width: 100%;
    min-height: 65px;
    display: block;
  }

  body.v2 .v2-category-button,
  body.v2 .v2-gnb__onnuri,
  body.v2 .v2-mega-menu {
    display: none;
  }

  body.v2 .v2-gnb__links {
    width: 100%;
    height: 65px;
    display: flex;
    gap: 0;
    padding: 0 15px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body.v2 .v2-gnb__links::-webkit-scrollbar {
    display: none;
  }

  body.v2 .v2-gnb__links a {
    min-width: max-content;
    min-height: 65px;
    padding: 0 16px;
    border-radius: 0;
    color: #000;
    font-family: var(--v2-font-display);
    font-size: 13px;
    font-weight: 800;
  }

  body.v2 .v2-gnb__links a.is-benefit {
    color: #0044ff;
  }

  body.v2 .v2-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 89;
    display: block;
    border: 0;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 160ms, visibility 160ms;
  }

  body.v2 .v2-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  body.v2 .v2-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 90;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 18px 15px 32px;
    background: #fff;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 240ms ease, visibility 240ms ease;
  }

  body.v2 .v2-mobile-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  body.v2 .v2-mobile-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
  }

  body.v2 .v2-mobile-drawer__close {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #f3f5f9;
  }

  body.v2 .v2-mobile-drawer__search {
    position: relative;
    height: 55px;
    display: flex;
    flex: 0 0 55px;
    overflow: visible;
    border: 2px solid transparent;
    border-radius: 999px;
    background:
      linear-gradient(#fff, #fff) padding-box,
      linear-gradient(90deg, #ff7a1a, #ff5d8f) border-box;
  }

  body.v2 .v2-mobile-drawer__search input {
    min-width: 0;
    flex: 1;
    padding: 0 58px 0 18px;
    border: 0;
    outline: 0;
  }

  body.v2 .v2-mobile-drawer__search button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #000;
    background: #fff4ea;
  }

  body.v2 .v2-mobile-drawer nav {
    display: grid;
    margin-top: 20px;
  }

  body.v2 .v2-mobile-drawer nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ececf2;
    color: #171719;
    font-family: var(--v2-font-display);
    font-weight: 800;
  }

  body.v2 .v2-mobile-categories {
    margin-top: 28px;
    padding: 22px 16px;
    border-radius: 10px;
    background: #f5f5f9;
  }

  body.v2 .v2-mobile-categories > h2 {
    margin: 0 0 18px;
    color: #000;
    font-family: var(--v2-font-display);
    font-size: 22px;
  }

  body.v2 .v2-mobile-categories section + section {
    margin-top: 18px;
  }

  body.v2 .v2-mobile-categories h3 {
    margin: 0 0 8px;
    color: #0044ff;
    font-size: 12px;
  }

  body.v2 .v2-mobile-categories section > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  body.v2 .v2-mobile-categories a {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 7px 9px;
    border-radius: 8px;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
  }

  body.v2 .v2-hero {
    padding: 15px 0 0;
    overflow: hidden;
    background: #fff;
  }

  body.v2 .v2-hero__viewport {
    width: calc(100% - 40px);
    margin: 0 auto;
    overflow: visible;
  }

  body.v2 .v2-hero-slide {
    min-height: 255px;
    height: 255px;
    overflow: hidden;
    border-radius: 12px;
  }

  body.v2 .v2-hero-slide::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, .91), rgba(255, 255, 255, .1) 84%);
  }

  body.v2 .v2-hero-slide__image img {
    object-position: 62% center;
  }

  body.v2 .v2-hero-slide .v2-container {
    width: 100%;
    padding: 0 20px;
  }

  body.v2 .v2-hero-slide__content {
    max-width: 70%;
    padding: 28px 0 45px;
  }

  body.v2 .v2-hero-slide__eyebrow {
    margin-bottom: 7px;
    color: var(--v2-orange-700);
    font-size: 11px;
  }

  body.v2 .v2-hero-slide h2 {
    color: #000;
    font-family: var(--v2-font-display);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.3px;
  }

  body.v2 .v2-hero-slide__description {
    max-width: 210px;
    margin: 9px 0 12px;
    color: #666;
    font-size: 11px;
  }

  body.v2 .v2-hero-slide .v2-btn {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 17px;
    background: linear-gradient(90deg, #c94a00, #b52f58);
    font-size: 10px;
  }

  body.v2 .v2-hero__controls {
    right: 28px;
    bottom: 10px;
    left: auto;
    padding: 2px;
    background: rgba(29, 35, 48, .76);
  }

  body.v2 .v2-hero__controls button {
    width: 28px;
    height: 28px;
  }

  body.v2 .v2-hero__controls button:first-child,
  body.v2 .v2-hero__controls button:nth-last-child(2) {
    display: none;
  }

  body.v2 .v2-hero__status {
    min-width: 48px;
  }

  body.v2 .v2-quick-menu {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 8px;
    margin-inline: auto;
    padding: 50px 0;
  }

  body.v2 .v2-quick-item {
    min-width: 0;
    min-height: 106px;
    flex-direction: column;
    justify-content: flex-start;
    gap: 7px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
  }

  body.v2 .v2-quick-item__icon,
  body.v2 .v2-quick-item:nth-child(n) .v2-quick-item__icon {
    width: min(79px, 100%);
    height: auto;
    aspect-ratio: 1;
    border-radius: 40%;
    color: #171719;
    background: #ffe6d4;
  }

  body.v2 .v2-quick-item:nth-child(4n + 2) .v2-quick-item__icon {
    background: #dff3ee;
  }

  body.v2 .v2-quick-item:nth-child(4n + 3) .v2-quick-item__icon {
    background: #fff3b8;
  }

  body.v2 .v2-quick-item:nth-child(4n) .v2-quick-item__icon {
    background: #ece8ff;
  }

  body.v2 .v2-quick-item strong {
    color: #171719;
    font-family: var(--v2-font-display);
    font-size: 11px;
    font-weight: 800;
  }

  body.v2 .v2-quick-item > span:last-child > span {
    display: none;
  }

  body.v2 .v2-section {
    padding-block: 64px;
  }

  body.v2 .v2-section--orange {
    background: #fff;
  }

  body.v2 #best {
    background: #f4f4ff;
  }

  body.v2 #md-pick,
  body.v2 #new {
    background: #f5f5f9;
  }

  body.v2 .v2-section-heading {
    display: block;
    margin-bottom: 28px;
    text-align: center;
  }

  body.v2 .v2-section-heading h2 {
    color: #000;
    font-family: var(--v2-font-display);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.3px;
  }

  body.v2 .v2-section-heading__description {
    margin-top: 7px;
    color: #666;
    font-size: 13px;
  }

  body.v2 .v2-section-heading .v2-more-link {
    min-height: 44px;
    display: inline-flex;
    margin-top: 18px;
    padding: 0 24px;
    border: 1px solid #dcdceb;
    border-radius: 22px;
    color: #666;
    background: #fff;
    font-size: 12px;
  }

  body.v2 .v2-tablist {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 16px;
    margin-inline: -15px;
    padding: 0 15px 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body.v2 .v2-tab {
    min-width: max-content;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 0;
    color: #000;
    background: transparent;
    font-family: var(--v2-font-display);
    font-size: 14px;
    font-weight: 800;
  }

  body.v2 .v2-tab[aria-selected="true"],
  body.v2 .v2-tab.is-selected {
    border-bottom: 2px solid #0044ff;
    color: #0044ff;
    background: transparent;
  }

  body.v2 .v2-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 10px;
  }

  body.v2 .v2-product-card__media,
  body.v2 .v2-product-card--featured .v2-product-card__media {
    border-radius: 10px;
  }

  body.v2 .v2-product-card__body,
  body.v2 .v2-product-card--featured .v2-product-card__body {
    display: block;
    padding: 10px 0 0;
  }

  body.v2 .v2-product-card__origin {
    min-height: 16px;
    margin: 0 0 4px;
    color: #439ace;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    -webkit-line-clamp: 1;
  }

  body.v2 .v2-product-card__name,
  body.v2 .v2-product-card--featured .v2-product-card__name {
    min-height: 36px;
    margin: 0 0 3px;
    color: #000;
    font-family: var(--v2-font-display);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.3px;
  }

  body.v2 .v2-product-card__description {
    min-height: 31px;
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 7px;
    color: #a7a7b4;
    font-size: 12px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.v2 .v2-price {
    min-height: 41px;
    gap: 4px;
    margin: 0;
  }

  body.v2 .v2-price__original {
    order: 1;
    width: 100%;
    color: #a7a7b4;
    font-size: 10px;
  }

  body.v2 .v2-price__sale,
  body.v2 .v2-product-card--featured .v2-price__sale {
    order: 2;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.3px;
  }

  body.v2 .v2-price__discount,
  body.v2 .v2-product-card--featured .v2-price__discount {
    order: 3;
    padding: 3px 4px;
    border: 1px solid #0044ff;
    border-radius: 8px;
    color: #0044ff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
  }

  body.v2 .v2-badge-row {
    min-height: 20px;
    gap: 3px;
    margin: 7px 0 0;
  }

  body.v2 .v2-badge {
    min-height: 20px;
    padding: 0 5px;
    color: #666;
    background: #f3f5f9;
    font-size: 9px;
  }

  body.v2 .v2-review {
    margin-top: 5px;
    color: #a7a7b4;
    font-size: 10px;
  }

  body.v2 .v2-card-save {
    right: 7px;
    bottom: 7px;
    width: 34px;
    height: 34px;
    border: 0;
    background: rgba(255, 255, 255, .92);
    box-shadow: none;
  }

  body.v2 .v2-rank {
    min-width: 38px;
    height: 41px;
    border-radius: 0 0 10px 0;
    background: #0044ff;
    font-size: 17px;
  }

  body.v2 .v2-horizontal-products {
    display: grid;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  body.v2 .v2-horizontal-products .v2-product-card {
    min-width: 0;
  }

  body.v2 .v2-deal-shell {
    display: block;
    margin-inline: -15px;
    padding: 34px 15px;
    border-radius: 0;
    color: #171719;
    background: #f4f4ff;
  }

  body.v2 .v2-deal-intro .v2-eyebrow {
    color: #ff7e15;
  }

  body.v2 .v2-deal-intro h2 {
    color: #000;
    font-family: var(--v2-font-display);
    font-size: 30px;
  }

  body.v2 .v2-deal-intro p {
    margin: 10px 0 18px;
    color: #666;
    font-size: 13px;
  }

  body.v2 .v2-countdown {
    flex-wrap: wrap;
  }

  body.v2 .v2-countdown__label {
    width: 100%;
    margin-bottom: 4px;
    color: #ff7e15;
  }

  body.v2 .v2-countdown__unit {
    min-width: 43px;
    height: 43px;
    color: #171719;
    font-size: 18px;
  }

  body.v2 .v2-deal-products {
    display: flex;
    gap: 12px;
    margin-inline: -15px;
    padding: 28px 15px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body.v2 .v2-deal-products .v2-product-card {
    min-width: 72vw;
    flex: 0 0 72vw;
    overflow: visible;
    border-radius: 0;
    background: transparent;
  }

  body.v2 .v2-deal-products .v2-product-card__body {
    padding: 12px 0 0;
  }

  body.v2 .v2-exhibition-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.v2 .v2-exhibition-card {
    min-height: 300px;
    border-radius: 12px;
  }

  body.v2 .v2-trust-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.v2 .v2-trust-card {
    padding: 18px;
    border: 0;
    border-radius: 10px;
    background: #f5f5f9;
  }

  body.v2 .v2-support {
    background: #f5f5f9;
  }

  body.v2 .v2-support__grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 34px;
  }

  body.v2 .v2-site-footer {
    padding-bottom: 30px;
  }

  body.v2 .v2-bottom-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 80;
    min-height: calc(70px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 0 8px env(safe-area-inset-bottom);
    border-top: 1px solid #ececf2;
    background: rgba(255, 255, 255, .98);
    box-shadow: none;
  }

  body.v2 .v2-bottom-nav a,
  body.v2 .v2-bottom-nav button {
    position: relative;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 0;
    color: #171719;
    background: transparent;
    font-family: "Bai Jamjuree", Pretendard, sans-serif;
    font-size: 11px;
    font-weight: 500;
  }

  body.v2 .v2-bottom-nav .v2-icon {
    width: 21px;
    height: 21px;
  }

  body.v2 .v2-bottom-nav .is-current {
    color: #171719;
    font-weight: 700;
  }

  body.v2 .v2-bottom-nav .is-current::after {
    content: "";
    position: absolute;
    right: 20%;
    bottom: 0;
    left: 20%;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, #ff7a1a, #ff5d8f);
  }

  body.v2 .v2-toast {
    bottom: calc(82px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 359px) {
  body.v2 .v2-product-grid {
    gap-inline: 8px;
  }

  body.v2 .v2-price__sale,
  body.v2 .v2-product-card--featured .v2-price__sale {
    font-size: 14px;
  }
}
