@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .rk-container {
    padding: 5px 10px;
  }

  .rk-header-green {
    padding: 10px 0 12px;
  }

  .rk-topbar-row {
    display: none;
  }

  .rk-main-header-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
  }

  .rk-brand-logo-img {
    width: 86px;
    height: auto;
  }

  .rk-search-box {
    min-width: 0;
  }

  .rk-search-box input {
    min-width: 0;
    padding: 9px 40px 9px 12px;
    font-size: 11px;
  }

  .rk-search-btn {
    width: 28px;
    height: 28px;
  }

  .rk-header-actions {
    display: none;
  }

  .rk-header-actions a {
    justify-content: center;
    gap: 5px;
    min-height: 30px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 6px;
    font-size: 10px;
  }

  .rk-header-actions a:first-child::after {
    content: 'Promo';
  }

  .rk-header-actions a:last-child::after {
    content: 'Toko';
  }

  .rk-header-actions a {
    font-size: 0;
  }

  .rk-header-actions .rk-icon {
    width: 15px;
    height: 15px;
  }

  .rk-subnav {
    position: sticky;
    top: 0;
    z-index: 90;
  }

  .rk-subnav-flex {
    min-height: 48px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .rk-mobile-toggle {
    width: 32px;
    height: 32px;
    padding: 4px;
  }

  .rk-nav-right-area {
    gap: 4px;
  }

  .rk-cart-pill { position: relative; width: 30px; height: 32px; padding: 4px 2px; }

  .rk-cart-badge { top: -5px; right: -3px; width: 18px; height: 18px; }

  .rk-account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 50%;
  }

  .rk-cart-pill .rk-icon { width: 20px !important; height: 20px !important; }

  .rk-account-btn { gap: 0; }

  .rk-account-btn svg { display: block; width: 16px; height: 16px; }

  .rk-account-btn span {
    display: none;
  }

  .rk-menu-bottom {
    padding: 12px 16px;
    gap: 10px;
  }

  .rk-menu-bottom a {
    padding: 9px 4px;
    font-size: 13px;
  }

  .rk-mobile-extra-links a:nth-child(1) {
    font-size: 0;
  }

  .rk-mobile-extra-links a:nth-child(1)::after {
    content: 'Tentang';
    font-size: 13px;
  }

  .rk-mobile-extra-links a:nth-child(2) {
    font-size: 0;
  }

  .rk-mobile-extra-links a:nth-child(2)::after {
    content: 'Kontak';
    font-size: 13px;
  }

  .rk-mobile-extra-links a:nth-child(3) {
    font-size: 0;
  }

  .rk-mobile-extra-links a:nth-child(3)::after {
    content: 'Cara Beli';
    font-size: 13px;
  }

  .rk-mobile-extra-links a:nth-child(4) {
    font-size: 0;
  }

  .rk-mobile-extra-links a:nth-child(4)::after {
    content: 'Bayar';
    font-size: 13px;
  }

  .rk-hero-banner,
  .rk-page-hero {
    padding-top: 28px;
    padding-bottom: 38px;
  }

  .rk-section-title {
    font-size: 22px;
  }
}

@media (max-width: 420px) {
  .rk-main-header-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .rk-brand-logo-img {
    width: 72px;
  }

  .rk-header-actions a::after {
    content: none !important;
  }
}

@media (max-width: 640px) {
  body > main { padding: 5px 10px; }
  .dashboard-main { padding: 5px 10px; }
  .dashboard-topbar { position: sticky; top: 0; z-index: 800; align-items: center; min-height: 58px; margin: -5px -10px 18px; padding: 5px 10px; padding-right: 66px; background: var(--dashboard-cream); border-bottom: 1px solid rgba(221, 227, 218, .9); }
  .dashboard-eyebrow { display: none; }
  .dashboard-topbar h1 { max-width: 170px; font-size: 0; line-height: 1.08; }
  .dashboard-topbar h1::after { content: attr(data-mobile-title); display: block; font-size: 25px; }
  .dashboard-mobile-brand { position: absolute; top: 50%; right: 10px; display: block; width: 48px; transform: translateY(-50%); }
  .dashboard-mobile-brand img { width: 48px; height: auto; }
  #view-products .dashboard-panel { padding: 16px 12px; }
  .customer-recommendations { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .customer-recommendation { padding: 8px; font-size: 10px; }
  #view-overview .dashboard-grid .dashboard-table-wrap { overflow: visible; }
  #view-overview .dashboard-grid .dashboard-table { display: block; width: 100%; }
  #view-overview .dashboard-grid .dashboard-table thead { display: none; }
  #view-overview .dashboard-grid .dashboard-table tbody { display: grid; gap: 0; }
  #view-overview .dashboard-grid .dashboard-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 14px; padding: 12px 0; border-top: 1px solid #EDF0EB; }
  #view-overview .dashboard-grid .dashboard-table td { display: block; min-width: 0; padding: 0; border: 0; text-align: left; overflow-wrap: anywhere; }
  #view-overview .dashboard-grid .dashboard-table td:last-child { text-align: left; }
  #view-overview .dashboard-grid .dashboard-table td:nth-child(1)::before { content: 'Pesanan'; display: block; margin-bottom: 3px; color: var(--dashboard-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
  #view-overview .dashboard-grid .dashboard-table td:nth-child(2)::before { content: 'Pelanggan'; display: block; margin-bottom: 3px; color: var(--dashboard-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
  #view-overview .dashboard-grid .dashboard-table td:nth-child(3)::before { content: 'Status'; display: block; margin-bottom: 3px; color: var(--dashboard-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
  #view-overview .dashboard-grid .dashboard-table td:nth-child(4)::before { content: 'Total'; display: block; margin-bottom: 3px; color: var(--dashboard-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
  #view-products .dashboard-panel#productFormPanel,
  #view-products .dashboard-panel#bulkProductPanel { width: calc(100vw - 24px); max-width: calc(100vw - 24px); overflow-x: hidden; }
  #view-products .dashboard-form { width: 100%; max-width: 100%; }
  #view-products .dashboard-panel-heading { align-items: flex-start; gap: 10px; margin-bottom: 14px; }
  #view-products .dashboard-panel-heading h2 { max-width: 110px; font-size: 20px; line-height: 1.2; }
  #view-products .dashboard-panel-heading .dashboard-muted { max-width: 88px; font-size: 11px; line-height: 1.25; }
  #view-products #newProductButton { flex: 0 0 82px; padding: 9px 8px; font-size: 11px; line-height: 1.2; }
  #view-products .dashboard-table-wrap { overflow: visible; }
  #view-products .dashboard-table { display: block; font-size: 12px; }
  #view-products .dashboard-table thead { display: none; }
  #view-products .dashboard-table tbody, #view-products .dashboard-table tr { display: block; }
  #view-products .dashboard-table tr { position: relative; min-height: 82px; padding: 14px 0 12px; border-top: 1px solid #EDF0EB; }
  #view-products .dashboard-table td { display: block; padding: 0; border: 0; }
  #view-products .product-cell-name, #view-products .product-cell-price { width: calc(100% - 116px); }
  #view-products .product-cell-name { min-height: 30px; padding-right: 6px !important; }
  #view-products .product-cell-name .product-list-identity { gap: 8px; }
  #view-products .product-cell-name .product-list-thumb { width: 38px; height: 38px; flex-basis: 38px; }
  #view-products .product-cell-name .dashboard-product-name { display: block; font-size: 12px; line-height: 1.25; }
  #view-products .product-cell-price { margin-top: 6px; }
  #view-products .product-cell-price .product-prices span { display: none; }
  #view-products .product-cell-price .product-prices strong { display: block; font-size: 11px; }
  #view-products .product-cell-stock, #view-products .product-cell-status { display: none; }
  #view-products .product-cell-actions { position: absolute; top: 18px; right: 0; }
  #view-products .product-cell-actions .dashboard-actions { display: flex; gap: 5px; }
  #view-products .product-cell-actions .dashboard-icon-button { width: 34px; height: 34px; }
  .variation-image-fields { grid-template-columns: 1fr 1fr; }
  #view-products .dashboard-table tr > td:nth-child(1), #view-products .dashboard-table tr > td:nth-child(2) { width: calc(100% - 116px); }
  #view-products .dashboard-table tr > td:nth-child(1) { min-height: 30px; padding-right: 6px !important; }
  #view-products .dashboard-table tr > td:nth-child(1) .product-list-identity { gap: 8px; }
  #view-products .dashboard-table tr > td:nth-child(1) .product-list-thumb { width: 38px; height: 38px; flex-basis: 38px; }
  #view-products .dashboard-table tr > td:nth-child(1) .dashboard-product-name { display: block; font-size: 12px; line-height: 1.25; }
  #view-products .dashboard-table tr > td:nth-child(2) { margin-top: 6px; }
  #view-products .dashboard-table tr > td:nth-child(2) .product-prices span { display: none; }
  #view-products .dashboard-table tr > td:nth-child(2) .product-prices strong { display: block; font-size: 11px; }
  #view-products .dashboard-table tr > td:nth-child(3), #view-products .dashboard-table tr > td:nth-child(4) { display: none; }
  #view-products .dashboard-table tr > td:nth-child(5) { position: absolute; top: 18px; right: 0; }
  #view-products .dashboard-table tr > td:nth-child(5) .dashboard-actions { display: flex; gap: 5px; }
  #view-products .dashboard-table tr > td:nth-child(5) .dashboard-icon-button { width: 34px; height: 34px; }
}