
/* WebStore V14 — showroom category cards */
.showroom-category-wrap{
  margin:0 0 18px;
}
.showroom-category-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:9px;
}
.showroom-category-card{
  min-width:0;
  min-height:108px;
  padding:14px 8px 12px;
  border:1px solid var(--line);
  border-radius:16px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.042),rgba(255,255,255,.018));
  color:inherit;
  text-align:center;
  cursor:pointer;
  transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease;
}
.showroom-category-card:hover{
  transform:translateY(-3px);
  border-color:rgba(242,194,123,.34);
  background:rgba(208,138,70,.06);
}
.showroom-category-card.active{
  border-color:rgba(242,194,123,.48);
  background:
    linear-gradient(180deg,rgba(208,138,70,.12),rgba(208,138,70,.045));
  box-shadow:inset 0 0 0 1px rgba(242,194,123,.045);
}
.showroom-category-icon{
  width:42px;
  height:42px;
  margin:0 auto 8px;
  display:grid;
  place-items:center;
  border:1px solid rgba(208,138,70,.22);
  border-radius:13px;
  background:rgba(208,138,70,.09);
  color:var(--primary-light);
  font-size:18px;
}
.showroom-category-card strong{
  display:block;
  overflow:hidden;
  color:#f5eadd;
  font-size:11px;
  line-height:1.25;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.showroom-category-card small{
  display:block;
  overflow:hidden;
  margin-top:3px;
  color:var(--muted-2);
  font-size:10.5px;
  line-height:1.25;
  white-space:nowrap;
  text-overflow:ellipsis;
}
@media(max-width:1050px){
  .showroom-category-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}
@media(max-width:720px){
  .showroom-category-wrap{
    width:calc(100% + 24px);
    margin-left:-12px;
    overflow:hidden;
  }
  .showroom-category-grid{
    display:flex;
    gap:8px;
    overflow-x:auto;
    padding:3px 12px 9px;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x proximity;
  }
  .showroom-category-grid::-webkit-scrollbar{display:none}
  .showroom-category-card{
    flex:0 0 132px;
    min-height:103px;
    scroll-snap-align:start;
  }
}


/* ==========================================================
   WebStore V15
   - Category cards moved below search/sort
   - Old pill filters removed
   - "Tất cả" sits above the category row at top-left
   ========================================================== */

.showroom-category-wrap-below{
  position:relative;
  margin:14px 0 20px;
  padding-top:43px;
}

.showroom-category-topline{
  position:absolute;
  top:0;
  left:0;
  z-index:3;
}

.showroom-category-all{
  min-height:35px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 16px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#17110d;
  color:#d8c3af;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
  transition:.16s ease;
}

.showroom-category-all:hover{
  border-color:rgba(242,194,123,.34);
  background:rgba(208,138,70,.07);
  color:var(--primary-light);
}

.showroom-category-all.active{
  border-color:rgba(242,194,123,.48);
  background:linear-gradient(135deg,#f2be79,#dc8736);
  color:#2a180b;
}

.showroom-category-wrap-below .showroom-category-grid{
  margin:0;
}

@media(max-width:720px){
  .showroom-category-wrap-below{
    width:calc(100% + 24px);
    margin-left:-12px;
    padding-top:45px;
    overflow:visible;
  }

  .showroom-category-wrap-below .showroom-category-topline{
    left:12px;
  }

  .showroom-category-wrap-below .showroom-category-grid{
    padding-top:3px;
  }
}


/* ==========================================================
   WebStore V16 — compact & expanded category menu
   ========================================================== */
.showroom-category-wrap-below{
  padding-top:41px;
  margin-bottom:18px;
}

.showroom-category-grid{
  grid-template-columns:repeat(9,minmax(0,1fr));
  gap:7px;
}

.showroom-category-card{
  min-height:80px;
  padding:9px 5px 8px;
  border-radius:13px;
}

.showroom-category-icon{
  width:32px;
  height:32px;
  margin-bottom:6px;
  border-radius:10px;
  font-size:14px;
}

.showroom-category-card strong{
  font-size:11px;
  line-height:1.2;
}

.showroom-category-card small{
  margin-top:2px;
  font-size:10px;
  line-height:1.2;
}

.showroom-category-all{
  min-height:32px;
  padding:0 14px;
  font-size:11px;
}

@media(max-width:1180px){
  .showroom-category-grid{
    grid-template-columns:repeat(7,minmax(0,1fr));
  }
}

@media(max-width:900px){
  .showroom-category-grid{
    grid-template-columns:repeat(5,minmax(0,1fr));
  }
}

@media(max-width:720px){
  .showroom-category-wrap-below{
    padding-top:42px;
  }

  .showroom-category-grid{
    display:flex;
    gap:7px;
  }

  .showroom-category-card{
    flex:0 0 102px;
    min-height:78px;
    padding:8px 5px 7px;
    border-radius:12px;
  }

  .showroom-category-icon{
    width:31px;
    height:31px;
    font-size:13px;
  }

  .showroom-category-card strong{
    font-size:10.5px;
  }

  .showroom-category-card small{
    font-size:10px;
  }
}


/* ==========================================================
   WebStore V23 — Showroom balanced desktop layout
   - Không sát hai mép
   - Tiêu đề chính ở giữa
   - Search ngắn, tập trung
   - Hai bên dùng cho thông tin showroom
   ========================================================== */

@media (min-width:821px){
  body:has(.templates-section) .templates-section > .container{
    width:min(1560px, calc(100% - 96px));
    max-width:1560px;
    margin-left:auto;
    margin-right:auto;
  }
}

.catalog-hero-head{
  display:grid;
  grid-template-columns:220px minmax(0,1fr) 150px;
  align-items:end;
  gap:28px;
  margin-bottom:25px;
}

.catalog-heading-center{
  width:100%;
  max-width:720px;
  justify-self:center;
  text-align:center;
}

.catalog-heading-center .section-label{
  display:inline-block;
  margin-bottom:2px;
}

.catalog-heading-center h2{
  margin:8px 0 8px;
  color:var(--text);
  font-size:clamp(38px,3.4vw,50px);
  line-height:1.02;
  letter-spacing:-.052em;
}

.catalog-heading-center p{
  max-width:620px;
  margin:0 auto;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}

.catalog-info-card{
  min-height:74px;
  padding:13px 15px;
  border:1px solid var(--line);
  border-radius:15px;
  background:
    radial-gradient(circle at 0 0,rgba(208,138,70,.08),transparent 8rem),
    rgba(255,255,255,.022);
}

.catalog-info-label{
  display:block;
  margin-bottom:9px;
  color:var(--primary);
  font-size:10px;
  font-weight:900;
  letter-spacing:.12em;
}

.catalog-info-metrics{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:11px;
}

.catalog-info-metrics > span{
  min-width:0;
}

.catalog-info-metrics > span + span{
  padding-left:11px;
  border-left:1px solid var(--line);
}

.catalog-info-metrics strong,
.catalog-info-metrics small{
  display:block;
}

.catalog-info-metrics strong{
  color:var(--text);
  font-size:16px;
  line-height:1;
}

.catalog-info-metrics small{
  margin-top:4px;
  color:var(--muted-2);
  font-size:10px;
  white-space:nowrap;
}

.catalog-hero-head .catalog-count{
  min-width:0;
  min-height:74px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:12px 14px;
  text-align:center;
}

.catalog-hero-head .catalog-count strong{
  font-size:22px;
  line-height:1;
}

.catalog-hero-head .catalog-count span{
  margin-top:6px;
  line-height:1.25;
}

.catalog-toolbar-compact{
  width:min(920px,100%);
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,680px) 220px;
  gap:10px;
  justify-content:center;
}

.catalog-toolbar-compact .search-box{
  width:100%;
  min-width:0;
}

.catalog-toolbar-compact .sort-select{
  width:220px;
}

.showroom-category-wrap-below{
  margin-top:4px;
}

/* Tablet: title stays first, info cards below it. */
@media(max-width:1000px){
  body:has(.templates-section) .templates-section > .container{
    width:calc(100% - 34px);
  }

  .catalog-hero-head{
    grid-template-columns:1fr 140px;
    gap:14px;
    align-items:stretch;
  }

  .catalog-heading-center{
    grid-column:1 / -1;
    grid-row:1;
    max-width:680px;
    margin-bottom:6px;
  }

  .catalog-info-card{
    grid-column:1;
    grid-row:2;
  }

  .catalog-hero-head .catalog-count{
    grid-column:2;
    grid-row:2;
  }

  .catalog-toolbar-compact{
    grid-template-columns:minmax(0,1fr) 205px;
  }

  .catalog-toolbar-compact .sort-select{
    width:205px;
  }
}

/* Mobile: compact and readable, never edge-to-edge. */
@media(max-width:650px){
  body:has(.templates-section) .templates-section > .container{
    width:calc(100% - 24px);
  }

  .catalog-hero-head{
    grid-template-columns:1fr 108px;
    gap:10px;
    margin-bottom:17px;
  }

  .catalog-heading-center h2{
    font-size:34px;
  }

  .catalog-heading-center p{
    font-size:11px;
  }

  .catalog-info-card{
    min-height:68px;
    padding:11px 12px;
  }

  .catalog-info-metrics{
    gap:7px;
  }

  .catalog-info-metrics > span + span{
    padding-left:7px;
  }

  .catalog-info-metrics strong{
    font-size:14px;
  }

  .catalog-info-metrics small{
    font-size:10px;
  }

  .catalog-hero-head .catalog-count{
    min-height:68px;
    padding:10px;
  }

  .catalog-hero-head .catalog-count strong{
    font-size:19px;
  }

  .catalog-toolbar-compact{
    width:100%;
    grid-template-columns:1fr;
  }

  .catalog-toolbar-compact .sort-select{
    width:100%;
  }
}


/* WebStore V68 · Customer readability: tăng cỡ chữ phụ nhỏ, giữ nguyên các tiêu đề lớn. */


/* =========================================================
   WebStore V82 — Smart Search & Filter
   ========================================================= */
.v82-search-suggestions{width:min(920px,100%);margin:9px auto 14px;display:flex;align-items:center;gap:7px;flex-wrap:wrap;color:#8f7968;font-size:10px}
.v82-search-suggestions>span{font-weight:800;color:#b9a18d}
.v82-search-suggestions button{border:1px solid rgba(230,176,108,.15);background:rgba(255,255,255,.025);color:#cbb7a6;border-radius:999px;padding:7px 10px;font:inherit;cursor:pointer;transition:.18s ease}
.v82-search-suggestions button:hover{border-color:rgba(241,187,116,.48);color:#f3d0a1;background:rgba(205,126,57,.08)}
.v82-smart-tools{width:min(1120px,100%);margin:0 auto 18px;padding:13px;border:1px solid rgba(224,166,101,.13);border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.012))}
.v82-filter-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:11px}.v82-filter-head>div{display:grid;gap:3px}.v82-filter-head b{font-size:12px;color:#ead5c2}.v82-filter-head span{font-size:10px;color:#8e7867}
.v82-filter-toggle{display:none;border:1px solid rgba(230,176,108,.2);background:#1a120e;color:#d9c2ae;border-radius:11px;min-height:36px;padding:0 11px;font-weight:800;cursor:pointer}
.v82-filter-panel{display:grid;grid-template-columns:1.15fr 1fr 1.15fr auto auto auto;gap:8px;align-items:end}
.v82-filter-field{display:grid;gap:5px}.v82-filter-field>span{font-size:9px;color:#9c8370;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.v82-filter-field select{width:100%;min-height:42px;border:1px solid rgba(224,166,101,.15);border-radius:12px;background:#17100c;color:#d8c4b2;padding:0 11px;outline:0}
.v82-switch{min-height:42px;display:flex;align-items:center;gap:7px;padding:0 10px;border:1px solid rgba(224,166,101,.13);border-radius:12px;background:rgba(255,255,255,.018);cursor:pointer;white-space:nowrap}.v82-switch input{position:absolute;opacity:0;pointer-events:none}.v82-switch>span{width:27px;height:16px;border-radius:999px;background:#443329;position:relative;transition:.18s}.v82-switch>span:after{content:'';position:absolute;width:10px;height:10px;left:3px;top:3px;border-radius:50%;background:#a18b78;transition:.18s}.v82-switch input:checked+span{background:#c47839}.v82-switch input:checked+span:after{left:14px;background:#fff0db}.v82-switch b{font-size:10px;color:#c7b2a0}
.v82-clear-btn{min-height:42px;border:1px solid rgba(224,166,101,.18);border-radius:12px;background:transparent;color:#ad9582;padding:0 12px;font-weight:800;cursor:pointer}.v82-clear-btn:hover{color:#efd0a7;border-color:rgba(238,181,111,.45)}
.v82-active-filters{display:none;gap:6px;flex-wrap:wrap;margin-top:10px;padding-top:10px;border-top:1px solid rgba(255,255,255,.045)}.v82-active-filters.show{display:flex}.v82-active-filters button{border:1px solid rgba(222,161,94,.2);border-radius:999px;background:rgba(190,106,48,.08);color:#d7b999;padding:6px 9px;font-size:9px;cursor:pointer}.v82-active-filters button:hover{background:rgba(190,106,48,.15);color:#f2d2a9}
.v82-empty-actions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:14px}
@media(max-width:980px){.v82-filter-panel{grid-template-columns:repeat(3,minmax(0,1fr))}.v82-switch,.v82-clear-btn{justify-content:center}}
@media(max-width:700px){.catalog-toolbar-compact{grid-template-columns:1fr!important}.catalog-toolbar-compact .sort-select{width:100%!important}.v82-search-suggestions{overflow-x:auto;flex-wrap:nowrap;margin-left:-2px;padding:0 2px 3px;scrollbar-width:none}.v82-search-suggestions::-webkit-scrollbar{display:none}.v82-search-suggestions>span,.v82-search-suggestions button{flex:0 0 auto}.v82-smart-tools{padding:10px;margin-bottom:13px}.v82-filter-head{margin:0}.v82-filter-toggle{display:inline-flex;align-items:center;justify-content:center}.v82-filter-panel{display:none;grid-template-columns:1fr 1fr;margin-top:10px}.v82-filter-panel.open{display:grid}.v82-filter-field:first-child{grid-column:1/-1}.v82-clear-btn{grid-column:1/-1}.v82-switch{justify-content:flex-start}.v82-active-filters{overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px;scrollbar-width:none}.v82-active-filters::-webkit-scrollbar{display:none}.v82-active-filters button{flex:0 0 auto}}
@media(max-width:430px){.v82-filter-panel{grid-template-columns:1fr}.v82-filter-field:first-child,.v82-clear-btn{grid-column:auto}.v82-switch{min-height:40px}}
