.cmhg-home-wrap{
  --radius:16px;
  --shadow:0 8px 24px rgba(13,27,61,.06);
  width:100%;
  max-width:1440px;
  margin:0 auto;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--cmhg-text,#1F2937);
}

.cmhg-search{
  width:100%;
  min-height:48px;
  display:flex;
  align-items:center;
  background:#fff;
  border:1px solid var(--cmhg-border,#E5E7EB);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 4px 18px rgba(13,27,61,.04);
  margin:0 0 18px;
}

.cmhg-search-input-wrap{flex:1;min-width:0;}
.cmhg-search-input{
  width:100%;
  height:48px;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  padding:0 18px!important;
  font-size:15px;
  background:#fff!important;
}
.cmhg-search-input::placeholder{color:#9CA3AF;}
.cmhg-search-select{
  width:220px;
  max-width:36%;
  height:48px;
  border:0!important;
  border-left:1px solid var(--cmhg-border,#E5E7EB)!important;
  border-radius:0!important;
  background:#fff!important;
  padding:0 38px 0 14px!important;
  font-size:14px;
  color:#374151;
  outline:0!important;
  box-shadow:none!important;
}
.cmhg-search-button{
  width:58px;
  height:48px;
  border:0;
  border-radius:0;
  background:var(--cmhg-primary,#0D1B3D);
  color:#fff;
  cursor:pointer;
  font-size:24px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.cmhg-search-icon{display:block;line-height:1;transform:translateY(-1px);}

.cmhg-section{margin:0 0 18px;}
.cmhg-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:0 0 10px;
}
.cmhg-section-head h2{
  margin:0!important;
  font-size:22px!important;
  line-height:1.2!important;
  font-weight:800!important;
  color:var(--cmhg-text,#1F2937)!important;
}
.cmhg-section-link{
  font-size:14px;
  font-weight:700;
  color:#3957D7;
  text-decoration:none!important;
  white-space:nowrap;
}
.cmhg-section-link:hover{text-decoration:underline!important;}

.cmhg-category-row{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:16px;
}
.cmhg-category-card{
  min-height:112px;
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  background:#fff;
  border:1px solid var(--cmhg-border,#E5E7EB);
  border-radius:15px;
  padding:9px 12px 10px;
  text-decoration:none!important;
  color:var(--cmhg-text,#1F2937);
  overflow:hidden;
  box-shadow:0 6px 20px rgba(13,27,61,.04);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.cmhg-category-card:hover{
  transform:translateY(-2px);
  border-color:rgba(13,27,61,.22);
  box-shadow:var(--shadow);
  color:var(--cmhg-text,#1F2937);
}
.cmhg-category-img{
  height:66px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.cmhg-category-img img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.cmhg-category-title{
  font-size:13px;
  line-height:1.15;
  font-weight:800;
  max-width:80%;
}
.cmhg-category-arrow{
  position:absolute;
  right:13px;
  bottom:10px;
  color:var(--cmhg-primary,#0D1B3D);
  font-size:24px;
  line-height:1;
}

.cmhg-product-row{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:16px;
}
.cmhg-product-card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-width:0;
  background:#fff;
  border:1px solid var(--cmhg-border,#E5E7EB);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 6px 20px rgba(13,27,61,.04);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.cmhg-product-card:hover{
  transform:translateY(-2px);
  border-color:rgba(13,27,61,.2);
  box-shadow:var(--shadow);
}
.cmhg-product-img{
  position:relative;
  height:150px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px 12px 4px;
  text-decoration:none!important;
  background:#fff;
}
.cmhg-product-img img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.cmhg-discount{
  position:absolute;
  left:9px;
  top:9px;
  z-index:2;
  background:var(--cmhg-accent,#D62828);
  color:#fff;
  border-radius:999px;
  padding:4px 7px;
  font-size:12px;
  line-height:1;
  font-weight:800;
}
.cmhg-product-info{
  display:flex;
  flex-direction:column;
  flex:1;
  padding:0 12px 12px;
}
.cmhg-product-brand{
  min-height:14px;
  margin:0 0 2px;
  font-size:12px;
  line-height:1.1;
  color:#6B7280;
  font-weight:800;
}
.cmhg-product-title{
  min-height:34px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-decoration:none!important;
  color:#253046;
  font-size:13.5px;
  line-height:1.24;
  font-weight:700;
}
.cmhg-product-title:hover{color:var(--cmhg-primary,#0D1B3D);}
.cmhg-rating{
  display:flex;
  align-items:center;
  gap:5px;
  min-height:18px;
  margin:5px 0 2px;
  font-size:12px;
}
.cmhg-stars{letter-spacing:.5px;color:#F59E0B;line-height:1;}
.cmhg-review-count{color:#8B95A1;font-size:11.5px;}
.cmhg-price-line{
  min-height:30px;
  display:flex;
  align-items:baseline;
  gap:7px;
  margin:0 0 8px;
  flex-wrap:wrap;
}
.cmhg-price-line .price{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;margin:0!important;}
.cmhg-price-line bdi,
.cmhg-price-line .woocommerce-Price-amount{
  color:var(--cmhg-primary,#0D1B3D);
  font-size:20px;
  font-weight:900;
  line-height:1.1;
}
.cmhg-price-line del{color:#9CA3AF;opacity:1;font-size:12px;font-weight:600;order:2;}
.cmhg-price-line del bdi,
.cmhg-price-line del .woocommerce-Price-amount{color:#9CA3AF;font-size:12px;font-weight:600;text-decoration:line-through;}
.cmhg-price-line ins{text-decoration:none;order:1;}
.cmhg-price-line ins bdi,
.cmhg-price-line ins .woocommerce-Price-amount{font-size:20px;font-weight:900;color:var(--cmhg-primary,#0D1B3D);}
.cmhg-bottom-line{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.cmhg-installments{
  min-width:0;
  display:inline-flex;
  align-items:center;
  gap:4px;
  max-width:calc(100% - 44px);
  padding:5px 8px;
  border-radius:999px;
  background:#EAF8F3;
  color:#15805E;
  font-size:11px;
  line-height:1;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.cmhg-installments:before{content:"◈";font-size:10px;}
.cmhg-cart-btn,
.cmhg-cart-btn.button,
.woocommerce a.cmhg-cart-btn.button{
  width:38px!important;
  min-width:38px!important;
  height:34px!important;
  min-height:34px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:9px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:var(--cmhg-primary,#0D1B3D)!important;
  color:#fff!important;
  text-decoration:none!important;
  font-size:16px!important;
  line-height:1!important;
  box-shadow:none!important;
}
.cmhg-consult-btn{
  height:32px;
  padding:0 10px;
  border-radius:9px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--cmhg-primary,#0D1B3D);
  color:#fff!important;
  text-decoration:none!important;
  font-size:10px;
  line-height:1;
  font-weight:800;
  white-space:nowrap;
}
.cmhg-note{padding:12px 14px;background:#fff;border:1px solid var(--cmhg-border,#E5E7EB);border-radius:12px;}

@media (max-width:1200px){
  .cmhg-category-row{grid-template-columns:repeat(4,minmax(0,1fr));}
  .cmhg-product-row{grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media (max-width:900px){
  .cmhg-product-row{grid-template-columns:repeat(3,minmax(0,1fr));}
  .cmhg-search-select{width:180px;}
}
@media (max-width:767px){
  .cmhg-home-wrap{padding:0 2px;}
  .cmhg-search{min-height:auto;display:grid;grid-template-columns:1fr 50px;border-radius:14px;}
  .cmhg-search-input{height:46px;font-size:14px;}
  .cmhg-search-select{grid-column:1 / -1;grid-row:2;width:100%;max-width:100%;height:42px;border-left:0!important;border-top:1px solid var(--cmhg-border,#E5E7EB)!important;}
  .cmhg-search-button{grid-column:2;grid-row:1;width:50px;height:46px;}
  .cmhg-section-head h2{font-size:18px!important;}
  .cmhg-section-link{font-size:12px;}
  .cmhg-category-row{display:flex;overflow-x:auto;gap:10px;padding-bottom:5px;scroll-snap-type:x mandatory;}
  .cmhg-category-card{min-width:144px;min-height:104px;scroll-snap-align:start;}
  .cmhg-product-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;}
  .cmhg-product-img{height:132px;padding:10px 10px 2px;}
  .cmhg-product-info{padding:0 10px 10px;}
  .cmhg-product-title{font-size:12.5px;min-height:32px;}
  .cmhg-price-line bdi,
  .cmhg-price-line .woocommerce-Price-amount,
  .cmhg-price-line ins bdi,
  .cmhg-price-line ins .woocommerce-Price-amount{font-size:17px;}
  .cmhg-installments{font-size:10px;padding:5px 6px;}
  .cmhg-cart-btn,.cmhg-cart-btn.button,.woocommerce a.cmhg-cart-btn.button{width:34px!important;min-width:34px!important;height:32px!important;}
}
