
@media (max-width: 1024px) and (min-width: 769px) {
  .preview  { width: 280px; min-width: 280px; }
  .main     { padding: 20px 18px; max-width: none; }
  .fab-grid { grid-template-columns: repeat(3, 1fr); }
  .msmt-right { width: 240px; min-width: 240px; padding: 20px 14px; }
  .msmt-left  { padding: 28px 24px 60px; }
  .msmt-mode .main { padding: 24px 20px; }
}

@media (max-width: 1100px) {
    .msmt-layout{
        width: 100% !important;
    }
  .preview { width: 290px; min-width: 290px; }
  .main    { padding: 28px 24px; }
}
@media (max-width: 880px) {
  .sidebar { width: 150px; min-width: 150px; }
}
@media (max-width: 992px) {
    .og4, .og3, .fab-grid{
      grid-template-columns: repeat(2,1fr);
  }
}
@media (max-width: 580px) { .h-tabs { display: none; } }


@media (max-width: 768px) {

  html, body { height: 100%; overflow: hidden; }

  .header {
    height: 48px; padding: 0 14px;
    position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  }
  .logo     { font-size: 22px; }
  .logo-sub { display: none; }
  .h-login  { display: none; }
  .h-cta    { padding: 7px 14px; font-size: 13px; }
  .thm-lbl  { display: none; }

  .shell {
    display: flex; flex-direction: column;
    position: fixed; top: 48px; left: 0; right: 0; bottom: 0;
    overflow: hidden;
  }

  .sidebar { display: none; }

  .preview {
    display: flex !important;
    width: 100%; min-width: 100%;
    height: 50vh; min-height: 50vh; max-height: 50vh;
    flex-shrink: 0; position: relative; top: auto;
    border-left: none; border-bottom: 1px solid var(--line);
    padding: 0; justify-content: center; align-items: stretch;
  }
  .preview .iframeParent { width: 100%; height: 100%; }
  .preview iframe { width: 100%; height: 100%; display: block; }
  .prev-top, .prev-meta, .btn-cart, .btn-look { display: none; }

  .main {
    flex: 1; height: 50vh; max-height: 50vh;
    overflow-y: auto; overflow-x: hidden;
    padding: 14px 14px 24px; max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .s-title { font-size: 36px; margin-bottom: 12px; }
  .s-eye   { margin-bottom: 2px; }
  .s-rule  { margin-bottom: 16px; }
  .slbl    { margin: 14px 0 8px; }

  .fab-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .fab-sw   { height: 60px; }

  .og4 { grid-template-columns: repeat(2, 1fr); }
  .og3 { grid-template-columns: repeat(2, 1fr); }

  .cg6  { grid-template-columns: repeat(5, 1fr); }
  .cdot { width: 34px; height: 34px; }
  .ctile { height: 40px; }

  .nav-row { margin-top: 24px; }

  .msmt-layout { flex-direction: column; min-height: auto; }
  .msmt-left {
    max-width: 100%; border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 20px 14px 32px; overflow-y: visible;
  }
  .msmt-right {
    width: 100%; min-width: 100%;
    position: static; height: auto;
    flex-direction: row; align-items: center;
    padding: 14px; gap: 14px; transform: none;
  }
  .mgv-wrap { aspect-ratio: 16/9; max-height: 180px; flex: 1; }
  .mgv-label { font-size: 18px; }

  .msmt-mode.shell { flex-direction: column; }
  .msmt-mode .preview { display: none !important; }
  .msmt-mode .main { height: 100% !important; max-height: 100% !important; padding: 20px 14px 40px; }
  
  
}


@media (max-width: 430px) {
  .fab-grid { grid-template-columns: repeat(2, 1fr); }
  .og3      { grid-template-columns: repeat(2, 1fr); }
  .og4      { grid-template-columns: repeat(2, 1fr); }
  .cg6      { grid-template-columns: repeat(4, 1fr); }
  .s-title  { font-size: 28px; }
  .header   { padding: 0 10px; }
  .h-cta    { padding: 6px 10px; font-size: 12px; }
}


@media (max-height: 500px) and (orientation: landscape) {
  .preview { height: 45vh; min-height: 45vh; max-height: 45vh; }
  .main    { height: 55vh; max-height: 55vh; }
}


@media (max-width: 600px) {
  .msmt-cards { gap: 8px; }
  .mcard      { padding: 20px 14px 18px; }
  .mcard-icon { font-size: 28px; margin-bottom: 10px; }
  .mcard-name { font-size: 17px; }
  .mcard-desc { font-size: 10px; }
  .msmt-grid  { grid-template-columns: repeat(2, 1fr); }
  .panel-head { flex-direction: column; align-items: flex-start; }
  .size-row   { flex-direction: column; align-items: flex-start; gap: 6px; }
}


@media (max-width: 900px) {
  .co-shell { flex-direction: column; padding: 0 16px; gap: 0; }
  .co-right { flex: unset; padding-top: 0; }
  .summary-card { position: static; margin-bottom: 40px; }
  .co-left { padding-top: 24px; }
  .field-row { grid-template-columns: 1fr; }
  .delivery-opts { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .progress-strip { padding: 0 16px; }
  .co-left  { padding: 20px 0 40px; }
  .co-right { padding-bottom: 40px; }
}
