/* DJ Nikolas — Product Layout FORCE FIX v1.6.9.1 */
.product-grid.product-grid-v169{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:stretch;
  gap:24px;
}
.product-grid-v169 .product-card-v169{
  width:var(--product-card-width,320px)!important;max-width:100%!important;
  flex:0 0 var(--product-card-width,320px)!important;
  height:var(--product-card-height,560px)!important;min-height:0!important;
  display:flex;
  flex-direction:column;
}
.product-card-v169 .product-body{
  display:flex;
  flex:1;
  flex-direction:column;
}
.product-card-v169 .actions{margin-top:auto}

/* Album: coperta originală rămâne neatinsă, este micșorată doar vizual prin CSS. */
.product-card-v169.is-album .cover{
  width:var(--album-cover-percent,50%);
  aspect-ratio:1/1;
  margin:22px auto 0;
  border:2px solid #d8ad54;
  border-radius:22px;
  overflow:hidden;
  background:#0b0d12;
  box-shadow:0 0 0 1px rgba(255,231,164,.14),0 14px 34px rgba(0,0,0,.35),0 0 22px rgba(216,173,84,.12);
}
.product-card-v169.is-album .cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.product-card-v169.is-album .cover-placeholder{font-size:clamp(28px,5vw,54px)}
.product-card-v169.is-album .cover span{
  top:8px;
  right:8px;
  padding:6px 8px;
  font-size:9px;
  border-color:rgba(216,173,84,.55);
}
.product-card-v169.is-album:hover .cover{
  border-color:#f0ca73;
  box-shadow:0 0 0 1px rgba(255,239,185,.2),0 16px 38px rgba(0,0,0,.42),0 0 28px rgba(240,202,115,.18);
}

/* Setări aspect produse */
.product-layout-admin-panel{
  padding:18px;
  border:1px solid rgba(216,173,84,.28);
  border-radius:18px;
  background:linear-gradient(145deg,rgba(25,20,11,.72),rgba(12,16,24,.86));
}
.product-layout-controls{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:14px;
}
.product-layout-controls label{display:grid;gap:7px}
.product-layout-preview{margin-top:18px;padding-top:16px;border-top:1px solid rgba(216,173,84,.16)}
.product-layout-preview>span{display:block;margin-bottom:10px;color:#d7c28a;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.mini-product-card{width:220px;max-width:100%;padding:16px;border:1px solid #333b49;border-radius:20px;background:#10151e;display:grid;gap:10px}
.mini-gold-cover{width:var(--preview-cover,50%);aspect-ratio:1/1;margin:auto;display:grid;place-items:center;border:2px solid #d8ad54;border-radius:16px;background:radial-gradient(circle at 30% 25%,#493d22,#111722 62%);font-size:10px;font-weight:900;letter-spacing:.1em;color:#ecd58e}
.mini-product-card small{color:#8995a5}

/* Drag & drop în Admin */
.sortable-products-table .drag-cell{width:72px;text-align:center}
.drag-handle{
  display:inline-flex;
  width:38px;
  height:34px;
  align-items:center;
  justify-content:center;
  border:1px solid #3c4654;
  border-radius:10px;
  background:#0b1018;
  color:#e6c775;
  cursor:grab;
  user-select:none;
  font-size:20px;
  line-height:1;
}
.drag-handle:active{cursor:grabbing}
.js-sortable-product-row{transition:opacity .14s ease,background .14s ease}
.js-sortable-product-row.is-dragging{opacity:.38;background:rgba(216,173,84,.08)}
.js-sortable-product-row.is-drop-target{background:rgba(107,217,240,.08)}
.product-order-form{display:none}

@media(max-width:900px){
  .product-layout-controls{grid-template-columns:1fr}
}
@media(max-width:620px){
  .product-grid-v169 .product-card-v169{width:100%;flex-basis:100%;min-height:0}
  .product-card-v169.is-album .cover{width:min(var(--album-cover-percent,50%),72%)}
}
