@media (max-width:1200px){
  .vscl-page-shell .vscl-cards.grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .vscl-page-shell .vscl-inventory-wrap{
    grid-template-columns:1fr;
  }

  .vscl-page-shell .vscl-filter-sidebar{
    position:static;
  }

  .vscl-search-inline{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .vscl-single-specs-list{
    grid-template-columns:1fr;
  }

  .vscl-page-shell .vscl-stack-card{
    grid-template-columns:1fr;
  }

  .vscl-page-shell .vscl-stack-media{
    min-height:300px;
    border-radius:16px 16px 0 0;
  }

  .vscl-page-shell .vscl-stack-price-row{
    flex-direction:row;
    align-items:flex-start;
  }

  .vscl-page-shell .vscl-stack-badges{
    justify-content:flex-end;
  }
}

@media (max-width:800px){
  .vscl-search-inline,
  .vscl-page-shell .vscl-cards.grid,
  .vscl-browse-grid,
  .vscl-page-shell .vscl-check-list,
  .vscl-page-shell .vscl-dual,
  .vscl-single-thumbs,
  .vscl-feature-list,
  .vscl-modal-date-grid{
    grid-template-columns:1fr;
  }

  .vscl-page-shell .vscl-check-grid.media{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .vscl-page-shell .vscl-stack-actions{
    grid-template-columns:1fr;
  }

  .vscl-search-top,
  .vscl-browse-block,
  .vscl-filter-sidebar,
  .vscl-home-card,
  .vscl-stack-card,
  .vscl-modal-box,
  .vscl-single-copy-block,
  .vscl-single-specs-list{
    border-radius:14px;
  }

  .vscl-single-hero-image{
    height:320px;
  }

  .vscl-single-main-full h1{
    font-size:30px;
  }

  .vscl-inline-spec{
    grid-template-columns:30px 110px 1fr;
  }

  .vscl-inline-spec strong,
  .vscl-inline-spec span{
    font-size:15px;
  }

  .vscl-page-shell .vscl-toolbar{
    flex-direction:column;
    align-items:stretch;
  }

  .vscl-page-shell .vscl-toolbar-right{
    justify-content:space-between;
  }

  .vscl-page-shell .vscl-toolbar h2{
    font-size:30px;
  }

  .vscl-page-shell .vscl-toolbar h2 span{
    font-size:18px;
  }

  .vscl-page-shell .vscl-filter-intro h2{
    font-size:26px;
  }

  .vscl-page-shell .vscl-stack-title-wrap{
    gap:12px;
  }

  .vscl-page-shell .vscl-card-more{
    width:32px;
    height:32px;
  }

  .vscl-page-shell .vscl-stack-specs{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .vscl-page-shell .vscl-filter-block,
  .vscl-page-shell .vscl-filter-intro,
  .vscl-page-shell .vscl-filter-actions{
    padding-left:16px;
    padding-right:16px;
  }
}

@media (max-width:560px){
  .vscl-page-shell{
    padding:0 12px 26px;
  }

  .vscl-page-shell .vscl-check-grid.media{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
  }

  .vscl-page-shell .vscl-brand-check span{
    min-height:86px;
    padding:8px 6px;
  }

  .vscl-page-shell .vscl-brand-check img{
    width:48px;
    height:32px;
  }

  .vscl-page-shell .vscl-type-grid .vscl-brand-check img{
    width:60px;
    height:40px;
  }

  .vscl-page-shell .vscl-stack-specs{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:1200px){
  .vscl-page-shell .vscl-stack-card{
    grid-template-columns:1fr;
  }

  .vscl-page-shell .vscl-stack-media{
    height:280px;
    min-height:280px;
  }
}

@media (max-width:900px){
  .vscl-browse-grid,
  .vscl-page-shell .vscl-pill-row{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

@media (max-width:800px){
  .vscl-page-shell .vscl-stack-actions{
    grid-template-columns:1fr;
  }
}

@media (max-width:560px){
  .vscl-browse-grid,
  .vscl-page-shell .vscl-pill-row{
    grid-template-columns:1fr;
  }

  .vscl-page-shell .vscl-stack-media{
    height:240px;
    min-height:240px;
  }
}

@media (max-width:1200px){
  .vscl-page-shell .vscl-inventory-wrap{
    grid-template-columns:1fr;
  }
}

@media (max-width:800px){
  .vscl-page-shell .vscl-pill-row,
  .vscl-page-shell .vscl-pill-row--compact,
  .vscl-page-shell .vscl-check-grid.media,
  .vscl-page-shell .vscl-check-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .vscl-page-shell .vscl-stack-specs{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:560px){
  .vscl-page-shell .vscl-stack-media{
    height:250px;
    min-height:250px;
  }

  .vscl-page-shell .vscl-gallery-count{
    bottom:24px;
  }
}

@media (max-width:800px){
  /* v9 refinements responsive */
  .vscl-page-shell .vscl-stack-specs{
    display:flex;
    flex-wrap:wrap;
  }
}

/* =========================
   v39 mobile & tablet inventory overlay
========================= */
.vscl-mobile-inventory-bar,
.vscl-mobile-filter-head{
  display:none;
}

@media (max-width: 1024px){
  body.vscl-mobile-filters-open{
    overflow:hidden;
  }

  .vscl-page-shell{
    padding:0 14px 28px;
  }

  .vscl-mobile-inventory-bar{
    display:grid;
    grid-template-columns:minmax(0,1fr) 118px;
    gap:10px;
    align-items:center;
    margin:14px 0 16px;
  }

  .vscl-mobile-search-form{
    position:relative;
    margin:0;
  }

  .vscl-mobile-search-form input{
    width:100%;
    min-height:46px;
    border:1px solid #d7dde6;
    background:#fff;
    border-radius:12px;
    padding:12px 14px 12px 42px;
    font-size:15px;
    color:var(--vscl-heading);
    box-shadow:none;
  }

  .vscl-mobile-search-icon{
    position:absolute;
    left:14px;
    top:50%;
    transform:translateY(-50%);
    color:#8a94a6;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    pointer-events:none;
  }

  .vscl-mobile-filter-btn{
    min-height:46px;
    border-radius:12px;
    border:0!important;
    background:var(--vscl-danger)!important;
    color:#fff!important;
    font-size:15px;
    font-weight:800;
    box-shadow:none!important;
    padding:0 16px;
  }

  .vscl-page-shell .vscl-inventory-wrap{
    grid-template-columns:1fr;
    gap:0;
  }

  .vscl-page-shell .vscl-filter-sidebar{
    position:fixed;
    inset:0;
    z-index:9999;
    width:100vw;
    height:100dvh;
    max-height:100dvh;
    border-radius:0;
    border:0;
    box-shadow:none;
    overflow:auto;
    background:var(--vscl-surface);
    transform:translateX(-100%);
    opacity:0;
    visibility:hidden;
    transition:transform .24s ease, opacity .24s ease, visibility .24s ease;
  }

  .vscl-page-shell .vscl-filter-sidebar.is-open{
    transform:translateX(0);
    opacity:1;
    visibility:visible;
  }

  .vscl-mobile-filter-head{
    display:grid;
    grid-template-columns:44px 1fr 44px;
    align-items:center;
    gap:8px;
    position:sticky;
    top:0;
    z-index:5;
    min-height:64px;
    padding:10px 14px;
    background:var(--vscl-surface);
    border-bottom:1px solid var(--vscl-line);
  }

  .vscl-mobile-filter-title{
    text-align:center;
    font-size:20px;
    font-weight:800;
    color:var(--vscl-heading);
  }

  .vscl-mobile-filter-close{
    width:44px;
    height:44px;
    border:0!important;
    background:transparent!important;
    color:var(--vscl-heading)!important;
    font-size:28px;
    line-height:1;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0!important;
    box-shadow:none!important;
  }

  .vscl-page-shell .vscl-filter-intro h2{
    display:none;
  }

  .vscl-page-shell .vscl-filter-intro{
    padding-top:16px;
  }

  .vscl-page-shell .vscl-check-grid.media,
  .vscl-page-shell .vscl-type-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }

  .vscl-page-shell .vscl-brand-check span,
  .vscl-page-shell .vscl-type-grid .vscl-brand-check span{
    min-height:110px;
    padding:12px 10px;
  }

  .vscl-page-shell .vscl-brand-check img{
    width:70px;
    height:46px;
  }

  .vscl-page-shell .vscl-type-grid .vscl-brand-check img{
    width:74px;
    height:50px;
  }

  .vscl-page-shell .vscl-dual{
    grid-template-columns:1fr 1fr!important;
    gap:10px;
  }

  .vscl-page-shell .vscl-sort-trigger-caret{
    display:none!important;
  }

  .vscl-page-shell .vscl-toolbar{
    flex-direction:column;
    align-items:stretch;
    gap:12px;
  }

  .vscl-page-shell .vscl-toolbar-right{
    justify-content:flex-start;
    padding-top:0;
  }

  .vscl-page-shell .vscl-stack-card{
    grid-template-columns:1fr;
    border-radius:18px;
    margin-bottom:18px;
  }

  .vscl-page-shell .vscl-stack-media{
    height:250px;
    min-height:250px;
    border-radius:18px 18px 0 0;
  }

  .vscl-page-shell .vscl-stack-body{
    padding:16px 16px 18px;
    min-height:0;
  }

  .vscl-page-shell .vscl-stack-specs{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }

  .vscl-page-shell .vscl-spec-pill{
    width:100%;
    min-width:0;
    min-height:42px;
    padding:8px 10px;
    justify-content:center;
  }

  .vscl-page-shell .vscl-spec-pill-copy{
    justify-content:center;
    width:auto;
    flex:0 1 auto;
  }

  .vscl-page-shell .vscl-spec-pill img{
    width:18px;
    height:18px;
  }

  .vscl-page-shell .vscl-spec-icon-wrap{
    width:28px;
    height:28px;
    min-width:28px;
    min-height:28px;
  }
}

@media (max-width: 767px){
  .vscl-page-shell .vscl-filter-block,
  .vscl-page-shell .vscl-filter-intro,
  .vscl-page-shell .vscl-filter-actions{
    padding-left:14px;
    padding-right:14px;
  }

  .vscl-page-shell .vscl-check-grid.media,
  .vscl-page-shell .vscl-type-grid,
  .vscl-page-shell .vscl-check-list,
  .vscl-page-shell .vscl-pill-row,
  .vscl-page-shell .vscl-pill-row--compact{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .vscl-page-shell .vscl-check-list{
    gap:12px 10px;
  }

  .vscl-page-shell .vscl-pill-row,
  .vscl-page-shell .vscl-pill-row--compact{
    display:grid!important;
    gap:10px;
  }

  .vscl-page-shell .vscl-pill-check span{
    width:100%;
    min-height:40px;
    padding:8px 10px;
    border-radius:999px;
    justify-content:center;
    text-align:center;
  }

  .vscl-page-shell .vscl-stack-title-wrap h3{
    font-size:22px;
    white-space:normal;
  }

  .vscl-page-shell .vscl-price-new{
    font-size:30px;
  }

  .vscl-page-shell .vscl-condition-line{
    font-size:14px;
  }
}

@media (min-width: 768px) and (max-width: 1024px){
  .vscl-page-shell .vscl-check-grid.media,
  .vscl-page-shell .vscl-type-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }

  .vscl-page-shell .vscl-stack-media{
    height:290px;
    min-height:290px;
  }
}

/* =========================
   v39.1 mobile/tablet refinement for [vscl_listings_page]
========================= */
@media (max-width: 1024px){
  .vscl-mobile-filter-btn{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    white-space:nowrap;
  }

  .vscl-mobile-filter-btn::before{
    content:"";
    width:16px;
    height:16px;
    display:inline-block;
    background:currentColor;
    -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 5h18'/><path d='M6 12h12'/><path d='M10 19h4'/></svg>") center / contain no-repeat;
    mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 5h18'/><path d='M6 12h12'/><path d='M10 19h4'/></svg>") center / contain no-repeat;
  }

  .vscl-page-shell .vscl-check-grid.media,
  .vscl-page-shell .vscl-type-grid{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:8px !important;
  }

  .vscl-page-shell .vscl-brand-check span,
  .vscl-page-shell .vscl-type-grid .vscl-brand-check span{
    min-height:82px !important;
    padding:8px 6px !important;
    border-radius:12px !important;
  }

  .vscl-page-shell .vscl-brand-check img{
    width:44px !important;
    height:30px !important;
  }

  .vscl-page-shell .vscl-type-grid .vscl-brand-check img{
    width:48px !important;
    height:32px !important;
  }

  .vscl-page-shell .vscl-brand-check em{
    font-size:11px !important;
    line-height:1.15 !important;
  }

  .vscl-page-shell .vscl-pill-row,
  .vscl-page-shell .vscl-pill-row--compact{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:8px !important;
    grid-template-columns:none !important;
  }

  .vscl-page-shell .vscl-filter-sidebar .vscl-pill-check,
  .vscl-page-shell .vscl-filter-sidebar .vscl-pill-row .vscl-pill-check,
  .vscl-page-shell .vscl-filter-sidebar .vscl-pill-row--compact .vscl-pill-check{
    flex:0 0 auto !important;
    width:auto !important;
    max-width:100% !important;
  }

  .vscl-page-shell .vscl-filter-sidebar .vscl-pill-check span,
  .vscl-page-shell .vscl-filter-sidebar .vscl-pill-check input:checked + span{
    width:auto !important;
    min-height:34px !important;
    padding:6px 12px !important;
    justify-content:center !important;
    text-align:center !important;
    white-space:nowrap !important;
    font-size:13px !important;
  }

  .vscl-page-shell .vscl-stack-specs{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }

  .vscl-page-shell .vscl-stack-specs .vscl-spec-pill{
    width:100% !important;
    min-width:0 !important;
    min-height:42px !important;
    padding:8px 12px !important;
    justify-content:center !important;
    gap:8px !important;
    border-radius:999px !important;
  }

  .vscl-page-shell .vscl-stack-specs .vscl-spec-pill-copy,
  .vscl-page-shell .vscl-stack-specs .vscl-spec-pill-value{
    width:auto !important;
    flex:0 1 auto !important;
    text-align:center !important;
  }

  .vscl-page-shell .vscl-stack-specs .vscl-spec-pill img,
  .vscl-page-shell .vscl-stack-specs .vscl-spec-pill svg{
    width:18px !important;
    height:18px !important;
    min-width:18px !important;
    min-height:18px !important;
  }
}

@media (max-width: 767px){
  .vscl-page-shell .vscl-check-grid.media,
  .vscl-page-shell .vscl-type-grid{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  }

  .vscl-page-shell .vscl-brand-check span,
  .vscl-page-shell .vscl-type-grid .vscl-brand-check span{
    min-height:76px !important;
    padding:8px 5px !important;
  }

  .vscl-page-shell .vscl-brand-check img{
    width:40px !important;
    height:28px !important;
  }

  .vscl-page-shell .vscl-type-grid .vscl-brand-check img{
    width:42px !important;
    height:28px !important;
  }

  .vscl-page-shell .vscl-filter-sidebar .vscl-pill-row,
  .vscl-page-shell .vscl-filter-sidebar .vscl-pill-row--compact{
    display:flex !important;
    flex-wrap:wrap !important;
    grid-template-columns:none !important;
    gap:8px !important;
  }

  .vscl-page-shell .vscl-filter-sidebar .vscl-pill-check,
  .vscl-page-shell .vscl-filter-sidebar .vscl-pill-row .vscl-pill-check,
  .vscl-page-shell .vscl-filter-sidebar .vscl-pill-row--compact .vscl-pill-check{
    flex:0 0 auto !important;
    width:auto !important;
  }

  .vscl-page-shell .vscl-filter-sidebar .vscl-pill-check span,
  .vscl-page-shell .vscl-filter-sidebar .vscl-pill-check input:checked + span{
    width:auto !important;
    padding:6px 11px !important;
    min-height:34px !important;
    font-size:13px !important;
  }

  .vscl-page-shell .vscl-stack-specs{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }

  .vscl-page-shell .vscl-stack-specs .vscl-spec-pill{
    width:100% !important;
    justify-content:center !important;
    padding:8px 10px !important;
    min-height:44px !important;
  }

  .vscl-page-shell .vscl-stack-specs .vscl-spec-pill-copy,
  .vscl-page-shell .vscl-stack-specs .vscl-spec-pill-value{
    text-align:center !important;
  }
}


/* =========================
   v39.2 mobile/tablet image slider + color alignment
========================= */
@media (max-width: 1024px){
  .vscl-page-shell .vscl-grid-media,
  .vscl-page-shell .vscl-stack-media{
    overflow:hidden;
  }

  .vscl-page-shell .vscl-mini-carousel .vscl-mobile-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:38px;
    height:38px;
    border-radius:999px;
    border:0 !important;
    background:rgba(55,65,81,.92) !important;
    color:#fff !important;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    z-index:5;
    box-shadow:none !important;
    padding:0 !important;
  }

  .vscl-page-shell .vscl-mini-carousel .vscl-mobile-arrow span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:100%;
    font-size:28px;
    line-height:1;
    transform:translateY(-1px);
  }

  .vscl-page-shell .vscl-mini-carousel .vscl-mobile-arrow--prev{ left:10px; }
  .vscl-page-shell .vscl-mini-carousel .vscl-mobile-arrow--next{ right:10px; }

  .vscl-page-shell .vscl-mini-carousel .vscl-mobile-arrow:hover,
  .vscl-page-shell .vscl-mini-carousel .vscl-mobile-arrow:active,
  .vscl-page-shell .vscl-mini-carousel .vscl-mobile-arrow:focus{
    background:#d61f2c !important;
    color:#fff !important;
    outline:none !important;
  }

  .vscl-page-shell .vscl-mini-carousel .vscl-gallery-dots{
    padding:0 10px 10px;
  }

  .vscl-page-shell .vscl-mini-carousel .vscl-gallery-more-overlay{
    z-index:4;
  }

  .vscl-page-shell .vscl-color-stack--plain .vscl-color-check,
  .vscl-page-shell .vscl-color-stack .vscl-color-check{
    padding-left:8px;
  }

  .vscl-page-shell .vscl-color-check .sw{
    margin-left:4px;
  }
}
