*{box-sizing:border-box}
:root{font-family:Arial,Helvetica,sans-serif;color:#222;background:#fff;font-synthesis:none}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:#222}
a{text-decoration:none;color:inherit}
button,input{font:inherit}
button{cursor:pointer}
.shell{width:min(1180px,calc(100% - 28px));margin:auto}

.main{padding:14px 0 48px}
.zalo-join{display:flex;align-items:center;gap:10px;padding:9px 11px;border:1px solid #cfdcf5;background:#f8fbff;border-radius:6px;color:#163153;margin-bottom:12px}
.zalo-join[hidden]{display:none}
.zalo-icon{width:32px;height:32px;border-radius:5px;background:#0668ff;color:#fff;display:grid;place-items:center;font-weight:700;flex:0 0 auto}
.zalo-copy{min-width:0}
.zalo-copy strong{display:block;font-size:12px}
.zalo-copy small{display:block;margin-top:2px;color:#70819b;font-size:10px}
.zalo-arrow{margin-left:auto;color:#0668ff;font-size:20px}

.deal-controls{display:grid;gap:10px;margin-bottom:18px}
.reload-reminder{display:flex;align-items:center;gap:9px;padding:9px 10px;border:1px solid #f1c6b8;background:#fff7f4;border-radius:6px;color:#5e3a2e}
.reload-reminder-icon{font-size:18px;line-height:1;flex:0 0 auto}
.reload-reminder-copy{min-width:0;display:flex;align-items:baseline;gap:5px;flex-wrap:wrap}
.reload-reminder-copy strong{font-size:12px;color:#d7441f;font-weight:700}
.reload-reminder-copy small{font-size:11px;color:#79594d}
.reload-page{margin-left:auto;flex:0 0 auto;border:1px solid #d94322;background:#ee4d2d;color:#fff;border-radius:4px;padding:7px 10px;font-size:11px;font-weight:700}
.reload-page:hover{background:#df421f}.reload-page:active{transform:translateY(1px)}
.time-buttons{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,140px));gap:8px;align-items:stretch;justify-content:start;padding:1px}
.time-btn{width:100%;min-width:0;border:1px solid #d9d9d9;background:#fff;border-radius:6px;padding:8px 10px;text-align:left;color:#555;cursor:default;user-select:none}
.time-btn.active{background:#ee4d2d;border-color:#ee4d2d;color:#fff}
.time-btn.status-ended:not(.active){background:#f5f5f5;color:#888}
.time-date{display:block;font-size:10px;font-weight:600;opacity:.78}
.time-btn strong{display:block;font-size:17px;line-height:1.15;margin:2px 0 0;font-weight:700}
.time-status{display:flex;align-items:center;gap:5px;margin-top:5px;font-size:10px;font-weight:700;line-height:1.1}
.time-status::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:0 0 6px}
.time-btn.status-ended:not(.active) .time-status{color:#9aa3b2}
.time-btn.status-upcoming:not(.active) .time-status{color:#c57900}
.time-btn.status-active:not(.active) .time-status,.time-btn.status-live:not(.active) .time-status{color:#ee4d2d}
.time-btn.active .time-status{color:rgba(255,255,255,.94)}

.search{height:44px;display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #cfcfcf;border-radius:6px;padding:0 11px}
.search:focus-within{border-color:#ee4d2d}
.search svg{width:17px;height:17px;fill:none;stroke:#777;stroke-width:2;stroke-linecap:round}
.search input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:#222;font-size:13px}
.search input::placeholder{color:#999}
#clear-search{border:0;background:#eee;color:#555;border-radius:3px;width:24px;height:24px;padding:0;line-height:1;font-size:18px}

.catalog-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:13px}
.eyebrow{display:block;color:#ee4d2d;font-size:11px;font-weight:700;letter-spacing:0}
.catalog-head h1{margin:4px 0 0;font-size:23px;font-weight:700;letter-spacing:0}
.product-count{font-size:11px;color:#777;white-space:nowrap}
.catalog-meta{display:flex;align-items:center;gap:10px}

.grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.card{min-width:0;background:#fff;border:1px solid #ddd;border-radius:6px;overflow:hidden;display:flex;flex-direction:column;transition:border-color .12s,box-shadow .12s}
.card:hover{border-color:#ee4d2d;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.media{position:relative;aspect-ratio:1;background:#f3f3f3;overflow:hidden}
.media img{position:relative;z-index:2;width:100%;height:100%;display:block;object-fit:cover;transition:transform .2s}
.card:hover .media img{transform:scale(1.02)}
.placeholder{position:absolute;inset:0;display:grid;place-items:center;font-size:34px}
.discount{position:absolute;z-index:3;right:6px;top:6px;padding:4px 6px;border-radius:3px;background:#ee4d2d;color:#fff;font-size:10px;font-weight:700}
.card-body{padding:9px;display:flex;flex-direction:column;flex:1}
.title{margin:0;font-size:13px;line-height:1.4;font-weight:400;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:36px}
.price-row{display:flex;align-items:baseline;gap:6px;margin-top:8px;min-width:0}
.price{color:#ee4d2d;font-size:18px;font-weight:700;letter-spacing:0}
.old-price{font-size:10px;color:#999;text-decoration:line-through;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stock{margin-top:7px;color:#666;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.loading-banner{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:9px;min-height:42px;border:1px solid #ffd4c7;background:#fff7f4;border-radius:6px;color:#d7441f;font-size:12px}
.loading-spinner{width:16px;height:16px;border:2px solid #ffc4b2;border-top-color:#ee4d2d;border-radius:50%;animation:deal-spin .7s linear infinite}
@keyframes deal-spin{to{transform:rotate(360deg)}}
.loading-card{pointer-events:none}
.loading-media{aspect-ratio:1;background:#f1f1f1}
.loading-body{padding:10px;display:grid;gap:8px}
.loading-line,.loading-price{display:block;border-radius:4px;background:#eee}
.loading-line{height:11px;width:100%}
.loading-line.short{width:68%}
.loading-price{height:18px;width:42%;margin-top:2px}
.shimmer{position:relative;overflow:hidden}
.shimmer::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.72),transparent);animation:deal-shimmer 1.05s infinite}
@keyframes deal-shimmer{100%{transform:translateX(100%)}}

.empty{text-align:center;padding:70px 20px;color:#80675b}
.empty-icon{width:45px;height:45px;margin:auto;border-radius:14px;display:grid;place-items:center;background:#fff0e9;color:#e64b18;font-size:23px}
.empty h2{margin:10px 0 5px;font-size:18px;color:#352922}
.empty p{margin:0;font-size:12px}

@media(max-width:1000px){
  .grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:760px){
  .shell{width:min(100% - 20px,1180px)}
  .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:560px){
  .shell{width:min(100% - 16px,1180px)}
  .main{padding-top:12px}
  .reload-reminder{align-items:flex-start;gap:8px;padding:8px 9px;border-radius:5px}
  .reload-reminder-copy{display:block;flex:1}
  .reload-reminder-copy strong{display:block;font-size:11px;line-height:1.35}
  .reload-reminder-copy small{display:block;margin-top:2px;font-size:9px}
  .reload-page{padding:7px 9px;font-size:10px;border-radius:4px}
  .reload-page span{display:none}
  .zalo-join{padding:9px 10px;margin-bottom:10px}
  .zalo-icon{width:31px;height:31px;border-radius:9px}
  .zalo-copy strong{font-size:11px}
  .time-buttons{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .time-btn{min-width:0;padding:7px 8px;border-radius:5px}
  .time-btn strong{font-size:15px}
  .time-status{font-size:9px;margin-top:4px}
  .search{height:42px;border-radius:5px}
  .catalog-head{margin-bottom:10px}
  .catalog-head{align-items:flex-start;flex-direction:column;gap:6px}
  .catalog-meta{width:100%;justify-content:space-between}
  .catalog-head h1{font-size:20px}
  .catalog-meta{gap:6px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .card{border-radius:5px}
  .card-body{padding:8px}
  .title{font-size:12px;min-height:32px}
  .price{font-size:16px}
  .old-price{font-size:9px}
  .stock{font-size:9px;margin-top:6px}
  .discount{top:5px;right:5px;padding:3px 5px;font-size:9px}
}
@media(max-width:350px){
  .grid{gap:5px}
  .card-body{padding:7px}
}