/* SEMBUNYIKAN KOMPONEN MOBILE DI DESKTOP */
.mobile-promo,
.mobile-bottom-nav {
  display: none;
}

/* =========================================
   MASSUSI STORE — MOBILE APP
   Khusus tampilan HP
========================================= */

@media (max-width: 767px) {
  /* BASE */
  body {
    background: #f7fafe;
  }

  .retail-page {
    width: 100%;
    padding-bottom: 78px;
  }

  /* SEMBUNYIKAN ELEMEN DESKTOP */
  .shop-topbar,
  .shop-hero,
  .shop-benefits,
  .prd-hero-sub,
  .sft-footer {
    display: none;
  }

  /* HEADER */
  .shop-header::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: #ffffff;
  }

  .shop-nav {
    gap: 6px;
    margin: auto 10px;
  }

  .shop-logo {
    flex-shrink: 0;
  }

  .shop-logo-text {
    display: none;
  }

  .prd-search-wrapper {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: auto;
    min-width: 0;
    flex: 1;
    margin-right: 0;
  }

  .prd-search-wrapper input {
    height: 38px;
    padding: 0 10px 0 34px;
    font-size: 12px;
  }

  .prd-search-wrapper::before {
    left: 12px;
    width: 14px;
    height: 14px;
  }

  .shop-actions {
    gap: 4px;
    margin-left: 0;
    justify-content: flex-end;
    flex-shrink: 0;
  }

  .shop-action {
    width: 33px;
    height: 33px;
  }

  .shop-action .lucide {
    width: 13px;
    height: 13px;
  }

  .shop-actions .shop-action[aria-label="Akun"] {
    display: none;
  }

  /* JUDUL PRODUK */
  .prd-hero {
    margin: 20px 15px 12px;
  }

  .prd-hero-title {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
  }

  /* KATEGORI */
  .sbc-section {
    width: 100%;
    margin: 0;
    padding: 15px 0 17px;
    background: #ffffff;
    border-bottom: 1px solid #e5edf6;
  }

  .sbc-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 0 15px;
    margin-bottom: 13px;
  }

  .sbc-heading .sbc-line {
    display: none;
  }

  .sbc-title {
    font-size: 13px;
    letter-spacing: 0.5px;
  }

  .sbc-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    margin-top: 5px;
    background: #2878c7;
    transform: skewX(-25deg);
  }

  .sbc-list {
    display: flex;
    gap: 13px;
    overflow-x: auto;
    padding: 0 15px 5px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .sbc-list::-webkit-scrollbar {
    display: none;
  }

  .sbc-item {
    flex: 0 0 68px;
    min-width: 68px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .sbc-item:hover,
  .sbc-item.sbc-active .sbc-icon {
    transform: none;
    box-shadow: none;
    background: inherit;
  }

  .sbc-icon {
    width: 49px;
    height: 49px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dceeff;
    color: #2878c7;
  }

  .sbc-icon .lucide {
    width: 22px;
    height: 22px;
  }

  .sbc-item strong {
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
  }

  .sbc-item small {
    display: none;
  }

  .sbc-item.sbc-active .sbc-icon {
    background: #2878c7;
    color: #ffffff;
  }

  .sbc-scroll-wrap {
    width: 100%;
    background: transparent;
  }

  .sbc-scroll-indicator {
    width: 44px;
    height: 3px;
    margin: 9px auto 0;
    border-radius: 10px;
    background: #e5edf6;
    overflow: hidden;
  }

  .sbc-scroll-thumb {
    display: block;
    width: 30%;
    height: 100%;
    border-radius: inherit;
    background: #2878c7;
    transform: translateX(0);
    transition: background 0.2s;
  }

  /* BANNER PROMOSI HP*/

  .mobile-promo {
    display: block;
    margin: 15px;
    overflow: hidden;
    border-radius: 15px;
    background: #163b63;
    color: #ffffff;
  }

  .mobile-promo a {
    display: block;
    color: inherit;
    text-decoration: none;
  }

  .mobile-promo img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 6;
    object-fit: cover;
  }
  .bottom-banner {
    background: none;
    margin: 0;
    padding: 16px;
  }

  /* DAFTAR PRODUK */
  .prd-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 0;
  }

  .prd-card {
    min-width: 0;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    background: #ffffff;
  }

  .prd-card img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  .prd-content {
    padding: 7px 7px 6px;
  }

  .prd-title {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }

  .prd-desc {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .prd-description {
    font-size: 9px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }

  .prd-old-price {
    font-size: 8px;
  }

  .prd-price {
    font-size: 12px;
    gap: 6px;
  }

  .prd-promo-price {
    font-size: 12px;
  }

  .prd-pagination {
    display: none;
  }

  .prd-btn-cart {
    width: 30px;
    height: 30px;
  }

  .prd-bestseller {
    top: 8px;
    right: 8px;
    padding: 2px 4px;
    font-size: 7px;
    letter-spacing: 0.3px;
  }

  .prd-promo-badge {
    top: 7px;
    left: 7px;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 9px;
    letter-spacing: 0.1px;
  }

  .prd-scroll-sentinel {
    grid-column: 1 / -1;
    width: 100%;
    height: 1px;
  }

  /* TOMBOL CHECKOUT MENGAPUNG */
  .prd-btn-checkout {
    position: fixed;
    z-index: 1100;
    left: 50%;
    right: auto;
    bottom: 106px;
    transform: translateX(-50%);
    width: max-content;
    min-width: 170px;
    padding: 11px 20px;
    justify-content: center;
    font-size: 12px;
    border-radius: 30px;
  }

  /* CART DRAWER */
  .cart-drawer {
    width: 100%;
    max-width: 420px;
  }

  /* =========================================
   FLOATING BOTTOM NAV — ICE BLUE SAAS
========================================= */

  .mobile-bottom-nav {
    position: fixed;
    z-index: 1200;

    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));

    height: 72px;
    padding: 7px 8px;

    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;

    background: rgba(244, 249, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 25px;

    box-shadow:
      0 10px 35px rgba(44, 93, 145, 0.12),
      0 2px 8px rgba(44, 93, 145, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  /* ITEM */

  .mobile-bottom-nav .nav-item {
    position: relative;

    min-width: 0;
    height: 58px;
    padding: 5px 2px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;

    border: 0;
    border-radius: 18px;
    background: transparent;

    color: #8799ae;
    text-decoration: none;
    font: inherit;

    cursor: pointer;
    -webkit-tap-highlight-color: transparent;

    transition:
      color 0.25s ease,
      background 0.25s ease,
      transform 0.2s ease;
  }

  /* ICON WRAPPER */

  .mobile-bottom-nav .nav-icon {
    width: 34px;
    height: 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    transition:
      background 0.25s ease,
      transform 0.25s ease;
  }

  /* ICON */

  .mobile-bottom-nav .nav-icon svg {
    width: 21px;
    height: 21px;

    stroke-width: 1.85;
    transition: all 0.25s ease;
  }

  /* LABEL */

  .mobile-bottom-nav .nav-label {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;

    letter-spacing: -0.2px;
    white-space: nowrap;

    transition: all 0.25s ease;
  }

  /* ACTIVE */

  .mobile-bottom-nav .nav-item.active {
    color: #1675ce;
  }

  .mobile-bottom-nav .nav-item.active .nav-icon {
    background: linear-gradient(145deg, #e0f0ff, #cce6ff);
  }

  .mobile-bottom-nav .nav-item.active .nav-icon svg {
    stroke-width: 2.25;
    transform: translateY(-1px);
  }

  .mobile-bottom-nav .nav-item.active .nav-label {
    font-weight: 700;
    color: #176fc0;
  }

  /* CART — PRIMARY ACTION */

  .mobile-bottom-nav .nav-cart .nav-icon {
    width: 39px;
    height: 39px;

    margin-top: -17px;

    border-radius: 15px;

    color: #ffffff;

    background: linear-gradient(145deg, #58aaff, #247bd1);

    box-shadow:
      0 5px 13px rgba(36, 123, 209, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }

  .mobile-bottom-nav .nav-cart .nav-icon svg {
    width: 21px;
    height: 21px;
    stroke-width: 2;
  }

  .mobile-bottom-nav .nav-cart .nav-label {
    color: #397dbb;
    font-weight: 650;
  }

  /* CART ACTIVE */

  .mobile-bottom-nav .nav-cart.active .nav-icon {
    background: linear-gradient(145deg, #258be9, #1265bb);
  }

  /* INTERACTION */

  .mobile-bottom-nav .nav-item:active {
    transform: scale(0.91);
  }

  .mobile-bottom-nav .nav-item:active .nav-icon {
    transform: scale(0.94);
  }

  /* FOCUS */

  .mobile-bottom-nav .nav-item:focus-visible {
    outline: 2px solid #68b5f5;
    outline-offset: -2px;
  }

  /* SMALL SCREEN */

  @media (max-width: 360px) {
    .mobile-bottom-nav {
      left: 8px;
      right: 8px;
      padding-inline: 4px;
    }

    .mobile-bottom-nav .nav-label {
      font-size: 9px;
    }
  }

  /* DESKTOP HIDE */

  @media (min-width: 769px) {
    .mobile-bottom-nav {
      display: none;
    }
  }

  /* REDUCE MOTION */

  @media (prefers-reduced-motion: reduce) {
    .mobile-bottom-nav,
    .mobile-bottom-nav * {
      transition: none !important;
    }
  }

  @media (max-width: 768px) {
    body {
      padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
  }
  /* TOAST */
  .shop-toast {
    top: 75px;
    left: 50%;
    width: max-content;
    max-width: calc(100% - 30px);
  }
}
