/* Meow Vision dev118 — shop archive responsive layout.
 * Deliberately scoped to the archive. The approved mobile portrait layout,
 * homepage mixed cards, product detail and checkout are not changed.
 * Maintain future shop breakpoints here instead of appending global overrides.
 */
@media (min-width:600px), (orientation:landscape) and (min-width:520px) {
  /* Match exactly the same theme width token used by the floating header. */
  main.site-main.mv-shop-hub {
    width:var(--vision-width);
    max-width:1120px;
    min-width:0;
    box-sizing:border-box;
    margin-inline:auto;
  }
  .mv-shop-hub > .posts-list {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:clamp(12px,1.5vw,18px);
    grid-auto-flow:row;
    grid-auto-rows:auto;
    align-items:start;
  }
  .mv-shop-hub > .posts-list > .post-card.mv-product-card,
  .mv-shop-hub > .posts-list > .post-card.mv-product-card:nth-child(5n+1),
  .mv-shop-hub > .posts-list > .post-card.mv-product-card:nth-child(5n+2) {
    grid-column:auto;
    grid-row:auto;
    aspect-ratio:auto;
    width:100%;
    height:auto;
    min-width:0;
    min-height:0;
    align-self:start;
    overflow:hidden;
    container-type:normal;
  }
  .mv-shop-hub > .posts-list > .post-card.mv-product-card > .post-card-link {
    display:flex;
    flex-direction:column;
    box-sizing:border-box;
    width:100%;
    height:auto;
    min-height:0;
    padding:clamp(7px,1vw,11px);
    gap:clamp(7px,1vw,10px);
  }
  .mv-shop-hub > .posts-list > .post-card.mv-product-card > .post-card-link > .post-thumbnail {
    box-sizing:border-box;
    display:block;
    flex:none;
    width:100%;
    height:auto;
    max-height:none;
    min-height:0;
    aspect-ratio:1 / 1;
    margin:0;
    overflow:hidden;
    border:1px solid var(--vision-line);
    border-radius:clamp(9px,1vw,13px);
  }
  .mv-shop-hub > .posts-list > .post-card.mv-product-card .post-thumbnail img {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
  }
  .mv-shop-hub > .posts-list > .post-card.mv-product-card > .post-card-link > .post-card-body {
    box-sizing:border-box;
    display:flex;
    flex-direction:column;
    flex:none;
    align-items:stretch;
    justify-content:flex-start;
    width:100%;
    height:auto;
    min-height:0;
    padding:clamp(9px,1.1vw,13px);
    gap:6px;
    overflow:hidden;
    border:1px solid var(--vision-line);
    border-radius:clamp(9px,1vw,12px);
  }
  .mv-shop-hub > .posts-list > .post-card.mv-product-card .post-title {
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    line-clamp:2;
    flex:none;
    min-width:0;
    min-height:0;
    margin:0;
    white-space:normal;
    overflow:hidden;
    text-overflow:ellipsis;
    font-size:clamp(13px,1.4vw,16px);
    line-height:1.35;
    font-weight:650;
  }
  .mv-shop-hub > .posts-list > .post-card.mv-product-card .mv-shop-card-summary,
  .mv-shop-hub > .posts-list > .post-card.mv-product-card .mv-shop-card-status {
    display:none;
  }
  .mv-shop-hub > .posts-list > .post-card.mv-product-card .mv-shop-card-details {
    display:flex;
    flex:0 0 auto;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    width:100%;
    min-width:0;
    min-height:0;
    margin:0;
    padding:0;
    gap:8px;
  }
  .mv-shop-hub > .posts-list > .post-card.mv-product-card .mv-shop-card-values {
    display:flex;
    flex:1 1 auto;
    flex-direction:row;
    justify-content:flex-start;
    align-items:center;
    min-width:0;
    min-height:0;
    gap:4px;
  }
  .mv-shop-hub > .posts-list > .post-card.mv-product-card .mv-shop-card-price {
    padding:0;
    margin:0;
    flex:0 1 auto;
    font-size:clamp(14px,1.45vw,18px);
    line-height:1.25;
    white-space:nowrap;
  }
  .mv-shop-hub > .posts-list > .post-card.mv-product-card .mv-shop-card-marker {
    position:static;
    display:inline-flex;
    align-self:center;
    flex:none;
    margin:0;
    padding:0;
  }
  .mv-shop-hub > .posts-list > .post-card.mv-product-card .mv-shop-card-marker svg {
    width:clamp(18px,2vw,22px);
    height:clamp(18px,2vw,22px);
  }
}
/* Expanded foldables, compact tablets and landscape phones. */
@media (min-width:760px) {
  .mv-shop-hub > .posts-list {grid-template-columns:repeat(3,minmax(0,1fr));}
}
/* Desktop and large tablets: four compact cards inside the shared 1120px shell. */
@media (min-width:1020px) {
  .mv-shop-hub > .posts-list {grid-template-columns:repeat(4,minmax(0,1fr));}
}
