
/* =========================================================
   TechShop Commerce OS V12.2 — Product/Card/Admin polish
   ========================================================= */

/* One single Track action in the header. */
.v12-track-trigger{display:flex!important}

/* Product Details font is controlled per product from the catalogue. */
.v12-product-details .v6-info-card.description .v6-description-copy{
  font-size:var(--product-detail-font,16px)!important;
  line-height:1.72!important;
  color:#1f2b3d!important;
  letter-spacing:.002em;
}
.v12-product-details .v6-info-card.description .v6-section-title h2{
  font-size:clamp(1.35rem,2vw,1.9rem)!important;
  color:#07172f!important;
}

/* Admin product actions / edit workspace */
.v122-product-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.v122-edit-product{padding:8px 11px!important;font-size:.78rem!important}
.v122-edit-shell{overflow:visible!important}
.v122-edit-form{display:grid;gap:18px}
.v122-media-sort-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:13px}
.v122-media-sort-card{background:#fff;border:1px solid #dce6f2;border-radius:18px;overflow:hidden;box-shadow:0 10px 28px rgba(7,23,47,.07);transition:.22s ease}
.v122-media-sort-card:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(7,23,47,.11);border-color:#a9cdfa}
.v122-media-sort-card.dragging{opacity:.55;transform:scale(.98);border-color:#0878ff}
.v122-media-preview{height:160px;background:#f3f5f8;display:grid;place-items:center;overflow:hidden}
.v122-media-preview img,.v122-media-preview video{width:100%;height:100%;object-fit:contain}
.v122-media-meta{display:grid;gap:9px;padding:12px}
.v122-media-meta>b{color:#07172f}
.v122-media-meta label{display:grid;gap:5px;font-size:.76rem;font-weight:800;color:#46566d}
.v122-media-meta input[type=number]{width:100%;border:1px solid #d6e0ec;border-radius:11px;padding:9px;background:#fff;color:#07172f}
.v122-radio,.v122-remove{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center!important;gap:7px!important}
.v122-remove{color:#b42318!important}
.v122-add-media{margin-top:14px}
.v122-feedback-entry textarea{width:100%;min-height:126px}
.v122-feedback-preview{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px;margin-top:12px}
.v122-feedback-preview article{background:#f7f9fc;border:1px solid #e0e7f0;border-radius:15px;padding:12px}
.v122-feedback-preview article b{color:#07172f}
.v122-feedback-preview article span{display:block;color:#f59e0b;letter-spacing:1px;margin:4px 0}
.v122-feedback-preview article p{margin:5px 0;color:#344054;font-size:.84rem}
.v122-feedback-preview article small{color:#667085}
.v122-sticky-save{position:sticky;bottom:10px;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border:1px solid #dce6f2;border-radius:18px;padding:10px;box-shadow:0 16px 44px rgba(7,23,47,.13)}

/* Product create optional customer feedback panel */
.v122-feedback-entry{background:linear-gradient(180deg,#fbfdff,#f5f9ff);border:1px solid #dbe9f8!important;border-radius:18px}

/* Processing overlay: CSS stays hidden until the explicit JS action enables it. */
#v12GlobalLoader[aria-hidden="true"]{display:none!important}

/* Mobile Featured Products: 2-column image-first commerce cards matching the reference. */
@media(max-width:700px){
  /* Header: Track is the only top-right action on mobile. */
  .v6-actions>a,.v6-actions form{display:none!important}
  .techshop-v6 .v6-actions>a.v12-track-trigger{
    display:grid!important;
    place-items:center!important;
    width:38px!important;height:38px!important;min-width:38px!important;
    padding:0!important;border-radius:12px!important;
    background:#eaf4ff!important;color:#0878ff!important;
    border:1px solid #cfe4ff!important;
    box-shadow:0 8px 18px rgba(8,120,255,.12)!important
  }
  .v6-actions .v12-track-trigger span{display:none!important}

  #featuredProducts .v7-product-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    align-items:stretch!important
  }
  #featuredProducts .v7-product-card{
    position:relative!important;
    display:flex!important;
    flex-direction:column!important;
    min-width:0!important;
    width:100%!important;
    padding:8px!important;
    gap:0!important;
    border-radius:14px!important;
    background:#fff!important;
    border:1px solid #e2e7ee!important;
    box-shadow:0 6px 18px rgba(7,23,47,.06)!important;
    overflow:hidden!important
  }
  #featuredProducts .v7-product-card .wishlist-btn{
    position:absolute!important;
    z-index:4!important;
    top:10px!important;right:10px!important;left:auto!important;
    width:32px!important;height:32px!important;
    display:grid!important;place-items:center!important;
    background:rgba(255,255,255,.92)!important;
    color:#f59e0b!important;
    border:1px solid rgba(245,158,11,.35)!important;
    border-radius:50%!important;
    box-shadow:0 4px 14px rgba(0,0,0,.06)!important
  }
  #featuredProducts .v7-product-card .product-main-link{
    display:block!important;
    min-width:0!important;
    width:100%!important;
    grid-column:auto!important
  }
  #featuredProducts .v7-product-card .v7-product-image{
    width:100%!important;
    height:auto!important;
    aspect-ratio:1.08/1!important;
    margin:0 0 8px!important;
    border-radius:11px!important;
    overflow:hidden!important;
    background:#f3f3f3!important;
    display:grid!important;place-items:center!important
  }
  #featuredProducts .v7-product-card .v7-product-image img{
    width:100%!important;height:100%!important;
    object-fit:contain!important;
    padding:5px!important
  }
  #featuredProducts .v7-product-card .product-main-link>small,
  #featuredProducts .v7-product-card .v7-product-copy{display:none!important}
  #featuredProducts .v7-product-card h3{
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
    min-height:2.3em!important;
    margin:4px 1px 7px!important;
    font-size:clamp(.79rem,3.4vw,.96rem)!important;
    line-height:1.15!important;
    font-weight:800!important;
    color:#252b36!important
  }
  #featuredProducts .v7-product-card .v7-product-price{
    display:flex!important;
    align-items:baseline!important;
    gap:5px!important;
    flex-wrap:wrap!important;
    margin:0 1px 8px!important;
    font-size:clamp(.96rem,4.2vw,1.2rem)!important;
    font-weight:950!important;
    color:#111827!important;
    line-height:1.1!important
  }
  #featuredProducts .v7-product-card .v7-product-price del{
    font-size:.66rem!important;color:#98a2b3!important
  }
  #featuredProducts .v7-product-card .product-hover-actions{
    position:static!important;
    opacity:1!important;
    transform:none!important;
    margin-top:auto!important;
    width:100%!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:5px!important
  }
  #featuredProducts .v7-product-card .product-hover-actions button{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:0!important;
    width:100%!important;
    height:34px!important;
    margin:0!important;
    padding:0 3px!important;
    border-radius:9px!important;
    border:0!important;
    font-size:clamp(.56rem,2.45vw,.7rem)!important;
    line-height:1!important;
    font-weight:900!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:clip!important
  }
  #featuredProducts .v7-product-card .instantBuy{
    background:#eaf3ff!important;color:#075bb8!important;
    border:1px solid #cfe2ff!important
  }
  #featuredProducts .v7-product-card .addCart{
    background:linear-gradient(135deg,#0878ff,#0061d7)!important;color:#fff!important;
    box-shadow:0 7px 16px rgba(8,120,255,.2)!important
  }

  .v122-media-sort-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .v122-media-preview{height:118px}
  .v122-media-meta{padding:9px}
  .v122-sticky-save{bottom:84px}
}

@media(max-width:360px){
  #featuredProducts .v7-product-grid{gap:6px!important}
  #featuredProducts .v7-product-card{padding:6px!important}
  #featuredProducts .v7-product-card .product-hover-actions{gap:4px!important}
  #featuredProducts .v7-product-card .product-hover-actions button{font-size:.55rem!important}
}
