/* Layout/ukuran KHUSUS mobile (grid, spacing, radius, font-size, dst).
   SENGAJA tidak mendefinisikan warna sendiri — semua warna (background,
   color, border-color, box-shadow) sengaja dibiarkan mewarisi palet teal
   dari styles.css (termasuk @media (max-width:620px) miliknya sendiri di
   sana) supaya tampilan mobile & desktop konsisten satu palet warna. */

@media (max-width: 620px) {
  .mobile-v2 {
    min-height: 100vh;
    padding-bottom: 84px;
  }

  .mobile-v2 .page-shell,
  .mobile-v2 .quick-links {
    width: min(100% - 26px, 390px);
  }

  .mobile-v2 .site-header {
    top: 10px;
    width: min(100% - 26px, 390px);
    margin: 10px auto 0;
    overflow: hidden;
    border-radius: 26px 26px 18px 18px;
  }

  .mobile-v2 .site-header::before {
    display: flex;
    height: 26px;
    align-items: center;
    justify-content: space-between;
    padding: 4px 16px 0;
    color: #1f2634;
    content: "9:41  |  LTE  100%";
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
  }

  .mobile-v2 .nav {
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 6px 12px 10px;
  }

  .mobile-v2 .brand {
    width: 30px;
    height: 30px;
    justify-content: center;
  }

  .mobile-v2 .brand__mark {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    font-size: 13px;
  }

  .mobile-v2 .brand__logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 999px;
  }

  .mobile-v2 .brand__text {
    display: none;
  }

  .mobile-v2 .search {
    grid-column: auto;
    min-width: 0;
    border-radius: 999px;
  }

  .mobile-v2 .search input {
    min-height: 32px;
    padding: 7px 10px;
    background: transparent;
    font-size: 11px;
  }

  .mobile-v2 .search input::placeholder {
    color: #a2aaba;
  }

  .mobile-v2 .search button {
    min-height: 32px;
    width: 34px;
    padding: 0;
    justify-content: center;
  }

  .mobile-v2 .nav-actions {
    gap: 4px;
  }

  .mobile-v2 .nav-actions .icon-button:first-child {
    display: none;
  }

  .mobile-v2 .icon-button {
    width: 30px;
    min-width: 30px;
    height: 30px;
    border-radius: 999px;
  }

  .mobile-v2 .icon-button i {
    font-size: 14px;
  }

  .mobile-v2 .quick-links {
    display: none;
  }

  .mobile-v2 main {
    width: min(100% - 26px, 390px);
    margin: 12px auto 0;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .mobile-v2 .promo-carousel {
    width: 100%;
    margin: 0;
    padding: 12px 12px 0;
  }

  .mobile-v2 .promo-carousel .carousel {
    border-radius: 14px;
  }

  .mobile-v2 .promo-slide {
    min-height: 128px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px;
    align-items: center;
    gap: 8px;
    padding: 15px 14px;
  }

  .mobile-v2 .promo-slide span {
    font-size: 10px;
    text-transform: none;
  }

  .mobile-v2 .promo-slide h2 {
    max-width: 190px;
    margin: 5px 0 8px;
    font-size: 17px;
    line-height: 1.14;
  }

  .mobile-v2 .promo-slide p {
    display: none;
  }

  .mobile-v2 .promo-slide div::after {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border-radius: 999px;
    background: #ffffff;
    padding: 0 13px;
    color: var(--deep-teal);
    content: "Shop Now";
    font-size: 11px;
    font-weight: 800;
  }

  .mobile-v2 .promo-slide i {
    width: 78px;
    height: 94px;
    display: grid;
    place-items: center;
    align-self: center;
    margin: 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.24);
    color: rgba(255, 255, 255, 0.92);
    font-size: 48px;
  }

  .mobile-v2 .carousel-indicators {
    right: auto;
    bottom: 6px;
    left: 16px;
    justify-content: flex-start;
    margin: 0;
  }

  .mobile-v2 .carousel-indicators [data-bs-target] {
    width: 5px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    opacity: 0.55;
  }

  .mobile-v2 .carousel-indicators .active {
    width: 16px;
    opacity: 1;
  }

  .mobile-v2 #kategori,
  .mobile-v2 #produk {
    width: 100%;
    padding: 16px 12px 0;
  }

  .mobile-v2 #produk {
    padding-bottom: 16px;
  }

  .mobile-v2 .section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px;
    margin-bottom: 10px;
  }

  .mobile-v2 .section-heading .eyebrow,
  .mobile-v2 .section-subtitle,
  .mobile-v2 #produk .section-heading .eyebrow,
  .mobile-v2 #produk .section-subtitle {
    display: none;
  }

  .mobile-v2 .section-heading h2 {
    font-size: 14px;
    line-height: 1.2;
  }

  .mobile-v2 .section-heading > a {
    font-size: 10px;
  }

  .mobile-v2 .category-grid {
    gap: 9px;
    border: 0;
    padding-bottom: 4px;
  }

  .mobile-v2 .category-card {
    flex: 0 0 92px;
    min-height: 78px;
    border: 0;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(25, 104, 108, 0.08);
    color: var(--ink);
    font-size: 10px;
    font-weight: 700;
  }

  .mobile-v2 .category-card:nth-child(3n),
  .mobile-v2 .category-card:nth-child(6n) {
    border: 0;
  }

  .mobile-v2 .category-card img {
    width: 34px;
    height: 34px;
    padding: 4px;
    border-radius: 8px;
    background: var(--soft);
  }

  .mobile-v2 .category-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--soft);
    font-size: 20px;
    color: var(--deep-teal);
  }

  .mobile-v2 .category-icon .category-emoji {
    font-size: 18px;
  }

  /* Di HP cukup di-swipe; sembunyikan tombol panah. */
  .mobile-v2 .category-nav {
    display: none !important;
  }

  .mobile-v2 #produk .section-heading {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mobile-v2 .product-tools {
    width: auto;
    display: flex;
    justify-content: flex-end;
  }

  .mobile-v2 .tabs,
  .mobile-v2 .dropdown,
  .mobile-v2 .filter-panel {
    display: none;
  }

  .mobile-v2 .catalog-layout {
    display: block;
  }

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

  .mobile-v2 .product-card {
    overflow: visible;
    border: 0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(25, 104, 108, 0.08);
  }

  .mobile-v2 .product-card img {
    aspect-ratio: 1 / 0.82;
    border-radius: 12px 12px 0 0;
    padding: 12px;
  }

  .mobile-v2 .product-card__body {
    min-height: 132px;
    padding: 9px;
  }

  .mobile-v2 .product-card__top {
    min-height: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .mobile-v2 .product-badge {
    padding: 3px 7px;
    font-size: 9px;
  }

  .mobile-v2 .product-promo {
    width: auto;
    font-size: 9px;
  }

  .mobile-v2 .product-card h3 {
    min-height: 34px;
    margin: 7px 0 4px;
    color: var(--ink);
    font-size: 11px;
    line-height: 1.3;
  }

  .mobile-v2 .price-wrap {
    margin-bottom: 5px;
  }

  .mobile-v2 .price {
    font-size: 11px;
  }

  .mobile-v2 .price-wrap span {
    display: none;
  }

  .mobile-v2 .product-meta {
    display: none;
  }

  .mobile-v2 .product-card__actions {
    grid-template-columns: 1fr 32px;
    gap: 6px;
    padding-top: 4px;
  }

  .mobile-v2 .outline-button {
    min-height: 28px;
    border-radius: 999px;
    font-size: 10px;
  }

  .mobile-v2 .cart-button {
    min-height: 28px;
    width: 32px;
    border-radius: 999px;
    padding: 0;
    font-size: 0;
  }

  .mobile-v2 .cart-button i {
    font-size: 13px;
  }

  .mobile-v2 .mobile-nav {
    width: min(100% - 26px, 390px);
    right: 0;
    bottom: 12px;
    left: 0;
    overflow: hidden;
    border-radius: 20px;
  }

  .mobile-v2 .mobile-nav a,
  .mobile-v2 .mobile-nav button {
    min-height: 58px;
    font-size: 9px;
    font-weight: 700;
  }

  .mobile-v2 .mobile-nav i {
    font-size: 17px;
  }

  .mobile-v2 .footer {
    display: none;
  }

  .mobile-v2 .offcanvas.cart-panel {
    width: min(100% - 26px, 390px);
    margin: 12px auto;
    border: 0;
    border-radius: 24px;
  }

  .mobile-v2 .cart-summary .primary-button {
    border-radius: 999px;
  }
}

@media (max-width: 380px) {
  .mobile-v2 .page-shell,
  .mobile-v2 .quick-links,
  .mobile-v2 main,
  .mobile-v2 .site-header,
  .mobile-v2 .mobile-nav {
    width: min(100% - 18px, 360px);
  }

  .mobile-v2 .product-card__actions {
    grid-template-columns: 1fr 30px;
  }
}
