
/* ===== THU CU STOREFRONT PREMIUM UI v140 ===== */
body{background:#f5f6f8}

.ti137{
  width:min(calc(100% - 32px),1240px);
  margin:26px auto 64px;
}

.ti137 .hero{
  position:relative;
  overflow:hidden;
  padding:34px 28px 30px;
  border:1px solid #e6e8ec;
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 32px rgba(15,23,42,.045);
  text-align:center;
}
.ti137 .hero:after{
  content:"";
  position:absolute;
  width:260px;height:260px;
  right:-105px;top:-125px;
  border-radius:50%;
  background:rgba(203,50,40,.045);
}
.ti137 .hero small{
  position:relative;z-index:1;
  display:inline-block;
  color:#b63730;
  font-size:10px;
  font-weight:900;
  letter-spacing:.13em;
}
.ti137 .hero h1{
  position:relative;z-index:1;
  margin:7px 0 8px;
  color:#181b20;
  font-size:30px;
  line-height:1.15;
  letter-spacing:-.03em;
}
.ti137 .hero p{
  position:relative;z-index:1;
  max-width:680px;
  margin:0 auto;
  color:#7d848e;
  font-size:12px;
  line-height:1.6;
}

.ti137 .search{
  display:block;
  width:min(100%,560px);
  height:46px;
  margin:18px auto 22px;
  padding:0 15px;
  border:1px solid #dfe3e8;
  border-radius:12px;
  background:#fff;
  color:#222831;
  box-shadow:0 4px 14px rgba(15,23,42,.035);
  outline:none;
}
.ti137 .search:focus{
  border-color:#c8ccd2;
  box-shadow:0 0 0 3px rgba(31,35,41,.05);
}

.ti137 .grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  align-items:stretch;
}

.ti137 .grid article{
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:360px;
  padding:12px;
  overflow:hidden;
  border:1px solid #e3e6ea;
  border-radius:15px;
  background:#fff;
  box-shadow:0 6px 20px rgba(15,23,42,.045);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.ti137 .grid article:hover{
  transform:translateY(-3px);
  border-color:#d6dae0;
  box-shadow:0 12px 28px rgba(15,23,42,.085);
}

.ti137 .img{
  display:grid;
  place-items:center;
  height:205px;
  margin-bottom:10px;
  padding:12px;
  overflow:hidden;
  border-radius:12px;
  background:#fafbfc;
}
.ti137 .img img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  transition:transform .2s ease;
}
.ti137 .grid article:hover .img img{transform:scale(1.025)}
.ti137 .img span{color:#9ba1aa;font-size:10px}

.ti137 .grid h3{
  display:-webkit-box;
  min-height:40px;
  margin:0 0 10px;
  overflow:hidden;
  color:#20242a;
  font-size:13px;
  font-weight:750;
  line-height:1.45;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}

.ti137 .grid p{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin:auto 0 10px;
  padding-top:9px;
  border-top:1px solid #f0f1f3;
  color:#8a919a;
  font-size:9.5px;
  line-height:1.25;
}
.ti137 .grid p b{
  flex:0 0 auto;
  color:#bd3c33;
  font-size:15px;
  font-weight:850;
  letter-spacing:-.015em;
}

.ti137 .open{
  width:100%;
  height:40px;
  margin-top:0;
  border:0;
  border-radius:9px;
  background:#c53b31;
  color:#fff;
  font-size:11px;
  font-weight:850;
  cursor:pointer;
  transition:background .18s ease,transform .18s ease;
}
.ti137 .open:hover{background:#ae3028}
.ti137 .open:active{transform:scale(.985)}

/* Modal polish */
.modal{position:fixed;inset:0;z-index:99999}
.back{
  position:absolute;inset:0;
  background:rgba(11,14,18,.66);
  backdrop-filter:blur(3px);
}
.panel{
  position:relative;
  width:min(calc(100% - 28px),760px);
  max-height:92vh;
  margin:4vh auto;
  overflow:auto;
  border-radius:16px;
  background:#fff;
  box-shadow:0 24px 80px rgba(0,0,0,.28);
}
.panel header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:15px 18px;
  border-radius:16px 16px 0 0;
  background:#c53b31;
  color:#fff;
}
.panel header h2{margin:0;font-size:18px}
.panel header button{
  border:0;background:transparent;color:#fff;
  font-size:28px;line-height:1;cursor:pointer
}
.body{padding:20px}
.body h3{margin:17px 0 8px;color:#282d34;font-size:13px}
.choices{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.choices button{
  min-height:44px;
  padding:10px;
  border:1px solid #dfe3e8;
  border-radius:9px;
  background:#fff;
  color:#323842;
  font-size:10px;
  cursor:pointer;
}
.choices button.active{
  border-color:#4770e8;
  background:#4770e8;
  color:#fff;
}
.body>p{
  margin:9px 0 0;
  padding:10px;
  border-radius:9px;
  background:#fff7e5;
  color:#725c2b;
  font-size:9.5px;
  line-height:1.5;
}
.result{
  margin-top:20px;
  padding:16px;
  border-radius:11px;
  background:#20242b;
  color:#fff;
  text-align:center;
}
.result>*{display:block}
.result b{
  margin:5px 0;
  font-size:24px;
  font-weight:900;
}
.actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:10px;
}
.actions button{
  min-height:54px;
  padding:10px 12px;
  border:0;
  border-radius:10px;
  background:#c53b31;
  color:#fff;
  font-weight:900;
  cursor:pointer;
}
.actions button:last-child{
  border:1px solid #dfe3e8;
  background:#fff;
  color:#20242b;
}
.actions small{
  display:block;
  margin-top:3px;
  font-weight:500;
}
.note{
  background:#f7f8fa!important;
  color:#777f89!important;
}

@media(max-width:980px){
  .ti137 .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ti137 .img{height:190px}
}

@media(max-width:650px){
  .ti137{
    width:min(calc(100% - 14px),1240px);
    margin-top:14px;
  }
  .ti137 .hero{
    padding:22px 14px 20px;
    border-radius:14px;
  }
  .ti137 .hero h1{font-size:23px}
  .ti137 .search{
    height:43px;
    margin:12px auto 15px;
  }
  .ti137 .grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .ti137 .grid article{
    min-height:300px;
    padding:8px;
    border-radius:12px;
  }
  .ti137 .img{
    height:145px;
    margin-bottom:7px;
    padding:7px;
    border-radius:9px;
  }
  .ti137 .grid h3{
    min-height:35px;
    margin-bottom:7px;
    font-size:11px;
  }
  .ti137 .grid p{
    display:block;
    margin-bottom:7px;
    padding-top:7px;
    font-size:8.5px;
  }
  .ti137 .grid p b{
    display:block;
    margin-top:3px;
    font-size:13px;
  }
  .ti137 .open{
    height:36px;
    font-size:9.5px;
  }
  .panel{
    width:100%;
    height:100%;
    max-height:none;
    margin:0;
    border-radius:0;
  }
  .panel header{border-radius:0}
  .choices{grid-template-columns:1fr}
  .actions{grid-template-columns:1fr}
}


/* ===== THU CU CARD POLISH v141 ===== */
.ti137 .grid article{
  min-height:372px!important;
  text-align:center!important;
}

.ti137 .img{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:210px!important;
  margin-bottom:12px!important;
  padding:12px!important;
}

.ti137 .img img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  margin:auto!important;
  object-fit:contain!important;
  object-position:center center!important;
}

.ti137 .grid h3{
  display:-webkit-box!important;
  min-height:42px!important;
  margin:0 auto 10px!important;
  overflow:hidden!important;
  text-align:center!important;
  color:#20242a!important;
  font-family:var(--web-font,Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif)!important;
  font-size:13px!important;
  font-weight:750!important;
  line-height:1.45!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
}

.ti137 .trade-card-price-v141,
.ti137 .grid p{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  min-height:54px!important;
  margin:auto 0 10px!important;
  padding-top:10px!important;
  border-top:1px solid #f0f1f3!important;
  text-align:center!important;
}

.ti137 .trade-card-price-v141 span,
.ti137 .grid p span{
  display:block!important;
  color:#8a919a!important;
  font-family:var(--web-font,Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif)!important;
  font-size:9.5px!important;
  font-weight:500!important;
  line-height:1.25!important;
}

.ti137 .trade-card-price-v141 b,
.ti137 .grid p b{
  display:block!important;
  max-width:100%!important;
  color:#bd3c33!important;
  font-family:var(--web-font,Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif)!important;
  font-size:15px!important;
  font-weight:850!important;
  line-height:1.25!important;
  letter-spacing:-.015em!important;
  text-align:center!important;
  overflow-wrap:anywhere!important;
}

.ti137 .open{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:40px!important;
  padding:0 12px!important;
  text-align:center!important;
  font-family:var(--web-font,Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif)!important;
  font-size:11px!important;
  font-weight:850!important;
  line-height:1!important;
}

@media(max-width:650px){
  .ti137 .grid article{
    min-height:315px!important;
  }
  .ti137 .img{
    height:150px!important;
    margin-bottom:8px!important;
    padding:8px!important;
  }
  .ti137 .grid h3{
    min-height:36px!important;
    margin-bottom:7px!important;
    font-size:11px!important;
  }
  .ti137 .trade-card-price-v141,
  .ti137 .grid p{
    min-height:48px!important;
    margin-bottom:7px!important;
    padding-top:7px!important;
  }
  .ti137 .trade-card-price-v141 b,
  .ti137 .grid p b{
    font-size:13px!important;
  }
  .ti137 .open{
    height:36px!important;
    font-size:9.5px!important;
  }
}

/* ===== ACTION PRICE v142 ===== */
.actions button{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
}
.actions button span{
  display:block!important;
  font-size:10px!important;
  font-weight:900!important;
  line-height:1.2!important;
}
.actions button b{
  display:block!important;
  margin:4px 0 2px!important;
  font-size:17px!important;
  font-weight:900!important;
  line-height:1.15!important;
}
.actions button small{
  display:block!important;
  margin-top:1px!important;
  font-size:8.5px!important;
  font-weight:500!important;
}

/* ===== SKU CONDITION MATCH v144 ===== */
.trade-capacity-v144{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.trade-sku-status-v144{
  margin-top:8px;
  padding:8px 10px;
  border:1px solid #e3e6ea;
  border-radius:8px;
  background:#f7f8fa;
  color:#6f7781;
  font-size:9px;
  line-height:1.45;
  text-align:center;
}
@media(max-width:650px){
  .trade-capacity-v144{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* ===== RULE CLARITY v145 ===== */
.trade-sku-status-v144{
  font-weight:600;
}

/* ===== COLOR SKU SELECTOR v146 ===== */
.trade-color-v146{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.trade-color-v146 button,.trade-capacity-v144 button{
  min-height:42px!important;
  text-align:center!important;
}
@media(max-width:650px){
  .trade-color-v146{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
