/* =========================================
   FROZ – Same Category "Amazon-style" FBT
   ========================================= */

.froz-sc-fbt-wrap { margin: 40px 0; }
.froz-sc-fbt-title { font-size: 28px; font-weight: 800; margin: 0 0 18px; color: #111827; }

.froz-sc-badge{
  position:absolute;
  top:10px;
  left:10px;
  background:#d1122a;
  color:#fff;
  font-weight:800;
  font-size:12px;
  line-height:1;
  padding:6px 10px;
  border-radius:999px;
  box-shadow:0 6px 16px rgba(0,0,0,.12);
  z-index:2;
}

/* Grid mode (fallback) */
.froz-sc-grid{
  display:grid;
  gap:16px;
}
.froz-sc-grid-cols-2{ grid-template-columns:repeat(2,1fr); }
.froz-sc-grid-cols-3{ grid-template-columns:repeat(3,1fr); }
.froz-sc-grid-cols-4{ grid-template-columns:repeat(4,1fr); }
.froz-sc-grid-cols-5{ grid-template-columns:repeat(5,1fr); }
.froz-sc-grid-cols-6{ grid-template-columns:repeat(6,1fr); }

.froz-sc-card{
  position:relative;
  display:block;
  padding:16px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  text-decoration:none;
}
.froz-sc-img img{ width:100%; height:auto; border-radius:12px; }
.froz-sc-name{ margin-top:10px; font-weight:700; color:#111827; font-size:14px; }
.froz-sc-price{ margin-top:6px; font-weight:800; color:#d1122a; }

/* Amazon style layout */
.froz-amz{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:22px;
}

.froz-amz-row{
  display:flex;
  gap:18px;
  align-items:flex-start;
  flex-wrap:wrap;
}

.froz-amz-items{
  display:flex;
  gap:14px;
  align-items:center;
  flex-wrap:wrap;
  flex:1 1 520px;
}

.froz-amz-item{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  border:1px solid #eef2f6;
  background:#fff;
  border-radius:14px;
}

.froz-amz-plus{
  font-size:26px;
  font-weight:900;
  color:#9ca3af;
  padding:0 2px;
}

.froz-amz-check{
  display:flex;
  align-items:center;
  margin:0;
}
.froz-amz-check input{
  width:18px;
  height:18px;
  margin:0;
}

.froz-amz-thumb{
  display:block;
  position:relative;
  width:86px; /* small image */
  min-width:86px;
  height:86px;
  border-radius:12px;
  overflow:hidden;
  background:#f8fafc;
  border:1px solid #eef2f6;
}
.froz-amz-thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:8px;
}

.froz-amz-meta{ min-width:170px; }
.froz-amz-name{
  display:block;
  font-weight:800;
  color:#111827;
  text-decoration:none;
  font-size:14px;
  line-height:1.25;
  margin-bottom:6px;
  max-width:220px;
}
.froz-amz-price{
  font-weight:900;
  color:#d1122a;
  font-size:14px;
}

.froz-amz-summary{
  flex:0 0 320px;
  padding:18px;
  border-radius:16px;
  background:#f8fafc;
  border:1px solid #e5e7eb;
}

.froz-amz-total-label{
  font-weight:800;
  color:#111827;
  font-size:15px;
  margin-bottom:6px;
}
.froz-amz-total-amount{
  font-size:24px;
  font-weight:900;
  color:#111827;
  margin-bottom:14px;
}

.froz-amz-btn{
  width:100%;
  height:48px;
  border-radius:12px;
  border:none;
  background:#d1122a;
  color:#fff;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.6px;
  cursor:pointer;
}
.froz-amz-btn:hover{ filter:brightness(.95); }

.froz-amz-hint{
  margin-top:10px;
  font-size:12px;
  color:#6b7280;
  line-height:1.45;
}

.froz-amz-list{
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid #eef2f6;
}
.froz-amz-line{
  display:flex;
  gap:10px;
  align-items:center;
  padding:8px 0;
  border-bottom:1px dashed #eef2f6;
}
.froz-amz-line:last-child{ border-bottom:none; }
.froz-amz-line-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#d1122a;
  color:#fff;
  font-weight:900;
  font-size:11px;
  border-radius:999px;
  padding:5px 9px;
}
.froz-amz-line-name{ flex:1; font-weight:700; color:#111827; font-size:13px; }
.froz-amz-line-price{ font-weight:900; color:#d1122a; font-size:13px; }

@media (max-width: 768px){
  .froz-amz-summary{ flex:1 1 100%; }
  .froz-amz-meta{ min-width:160px; }
  .froz-amz-thumb{ width:76px; min-width:76px; height:76px; }
}


/* Hide the &c badge overlay on thumbnails (keep for accessibility/requirement) */
.froz-amz-thumb .froz-sc-badge{ display:none !important; }

/* Category indicator (user-friendly) */
.froz-amz-cat{ margin-bottom: 6px; }
.froz-amz-cat-label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  font-weight:800;
  color:#64748b;
  background:#f1f5f9;
  border:1px solid #e2e8f0;
  border-radius:999px;
  padding:4px 10px;
}

/* Screen-reader only (keeps &c badge present without showing it) */
.froz-sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}


/* 1.1.3: on phones under ~400px the item (thumb + 160px text column + checkbox
   + padding) was wider than the screen and its right edge was cut off. */
@media (max-width: 400px){
  .froz-amz-items{ flex-basis:100%; min-width:0; }
  .froz-amz-item{ width:100%; min-width:0; box-sizing:border-box; }
  .froz-amz-meta{ min-width:0 !important; flex:1 1 auto; }
  .froz-amz-name{ overflow-wrap:anywhere; }
}
