/* =========================================================
   HOMEPAGE - CATEGORY GRID
   ========================================================= */

.home .row{
  border:0 !important;
}
.home .row .col{
  padding-bottom:16px !important;
}
.home .row .col:before,
.home .row .col:after{
  display:none !important;
}
.box-category{
  position:relative;
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  overflow:visible !important;
  box-shadow:0 6px 18px rgba(15,23,42,.05);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    background-color .22s ease;
}
.box-category:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:inherit;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.78);
}
.box-category:hover{
  transform:translateY(-4px);
  border-color:rgba(0, 174, 239,.28);
  box-shadow:0 16px 36px rgba(15,23,42,.12);
  background:#ffffff;
}
.box-category a{
  display:block;
  width:100%;
  height:100%;
}
.box-category .box-text-inner{
  border:none !important;
  background:transparent !important;
  padding:20px 12px 22px !important;
}
.box-category .box-image,
.box-category .box-image-inner,
.box-category .image-cover,
.box-category .box-image img{
  overflow:visible !important;
}
.box-category .box-image{
  height:92px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding-top:12px !important;
  padding-bottom:6px !important;
}
.box-category img{
  display:block !important;
  width:auto !important;
  max-width:62px !important;
  max-height:62px !important;
  margin:0 auto 12px !important;
  transform-origin:center center !important;
  transition:transform .22s ease;
  image-rendering:auto;
}
.box-category:hover img{
  transform:scale(1.04) !important;
}
.box-category .box-text{
  font-size:14px;
  font-weight:650;
  letter-spacing:.15px;
  color:#1f2937;
  text-transform:uppercase;
  line-height:1.35;
}
.box-category:hover .box-text{
  color:#111827;
}
.product-categories .col-inner{
  padding:6px;
}
/* =========================================================
   HOMEPAGE - RESPONSIVE
   ========================================================= */

@media (max-width: 849px){
.home .row .col{
    padding-bottom:14px !important;
  }

  .box-category{
    border-radius:14px;
  }

  .box-category .box-image{
    height:84px;
    padding-top:10px !important;
  }

  .box-category .box-text-inner{
    padding:16px 10px 18px !important;
  }

  .box-category img{
    max-width:54px !important;
    max-height:54px !important;
    margin-bottom:10px !important;
  }

  .box-category .box-text{
    font-size:13px;
  }
}
@media (max-width: 549px){
.home .row .col{
    padding-bottom:12px !important;
  }

  .box-category{
    border-radius:12px;
  }

  .box-category .box-image{
    height:76px;
    padding-top:8px !important;
  }

  .box-category .box-text-inner{
    padding:14px 8px 16px !important;
  }

  .box-category img{
    max-width:48px !important;
    max-height:48px !important;
  }

  .box-category .box-text{
    font-size:12.5px;
    letter-spacing:.1px;
  }
}
/* =========================================================
   HOMEPAGE CATEGORY ICON - PUSH DOWN FINAL
   ========================================================= */

.box-category .box-image{
  padding-top: 28px !important;
  padding-bottom: 8px !important;
}
.box-category .box-image img,
.box-category img{
  display: block !important;
  margin: 0 auto !important;
  max-width: 62px !important;
  max-height: 62px !important;
}
.box-category:hover .box-image img,
.box-category:hover img{
  transform: scale(1.05) !important;
}
@media (max-width: 849px){
.box-category .box-image{
    padding-top: 22px !important;
    padding-bottom: 6px !important;
  }

  .box-category .box-image img,
  .box-category img{
    max-width: 54px !important;
    max-height: 54px !important;
  }
}
@media (max-width: 549px){
.box-category .box-image{
    padding-top: 18px !important;
    padding-bottom: 6px !important;
  }

  .box-category .box-image img,
  .box-category img{
    max-width: 48px !important;
    max-height: 48px !important;
  }
}
/* ====== PORTED FROM mẫu (index.html wp-custom-css): product card system ====== */
/* =========================================================
   SOFTVN – HOMEPAGE PRODUCT ROWS
   FULL SYSTEM BLOCK
   Use class on each product row: softvn-home-prod-row
   ========================================================= */

/* ---------------------------------------------------------
   0) SECTION TITLE / HEADING SYSTEM
   --------------------------------------------------------- */
.home .softvn-home-prod-row{
  margin-top: 8px !important;
}
/* ---------------------------------------------------------
   1) GRID ROOT
   --------------------------------------------------------- */
.home .softvn-home-prod-row > .col-inner,
.home .softvn-home-prod-row > .col-inner > .row,
.home .softvn-home-prod-row .row,
.home .softvn-home-prod-row .row.equalize-box{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.home .softvn-home-prod-row > .col-inner > .row,
.home .softvn-home-prod-row .row,
.home .softvn-home-prod-row .row.equalize-box{
  margin-left: -8px !important;
  margin-right: -8px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow: visible !important;
}
.home .softvn-home-prod-row > .col-inner > .row > .col,
.home .softvn-home-prod-row .row > .col,
.home .softvn-home-prod-row .row.equalize-box > .col{
  padding-left: 8px !important;
  padding-right: 8px !important;
  margin-bottom: 16px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}
.home .softvn-home-prod-row > .col-inner > .row > .col > .col-inner,
.home .softvn-home-prod-row .row > .col > .col-inner,
.home .softvn-home-prod-row .row.equalize-box > .col > .col-inner{
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
/* ---------------------------------------------------------
   2) CARD
   --------------------------------------------------------- */
.home .softvn-home-prod-row .product-small.box{
  display: block !important;
  position: relative !important;
  width: 100% !important;
  margin: 0 !important;
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%) !important;
  border: 1px solid #e8edf3 !important;
  border-radius: 18px !important;
  padding: 14px 12px 13px !important;
  box-shadow:
    0 2px 8px rgba(15, 23, 42, 0.02),
    0 6px 18px rgba(15, 23, 42, 0.03) !important;
  overflow: hidden !important;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    background .22s ease !important;
  min-height: 100% !important;
  box-sizing: border-box !important;
}
.home .softvn-home-prod-row .product-small.box:hover{
  transform: translateY(-4px) !important;
  border-color: #dbe3eb !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%) !important;
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.05),
    0 14px 28px rgba(15, 23, 42, 0.06) !important;
}
/* pulse dot */
.home .softvn-home-prod-row .product-small.box::after{
  content: "" !important;
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 999px !important;
  background: var(--svn-cyan) !important;
  opacity: 0 !important;
  transform: scale(.85) !important;
  box-shadow: 0 0 0 0 rgba(0,174,239,0) !important;
  transition: opacity .2s ease, transform .2s ease !important;
  pointer-events: none !important;
  z-index: 2 !important;
}
.home .softvn-home-prod-row .product-small.box:hover::after{
  opacity: 1 !important;
  transform: scale(1) !important;
  animation: softvnPulseDot 1.7s ease-out infinite !important;
}
@keyframes softvnPulseDot{
  0%{ box-shadow: 0 0 0 0 rgba(0,174,239,.26); }
  70%{ box-shadow: 0 0 0 7px rgba(0,174,239,0); }
  100%{ box-shadow: 0 0 0 0 rgba(0,174,239,0); }
}
/* ---------------------------------------------------------
   3) IMAGE
   --------------------------------------------------------- */
.home .softvn-home-prod-row .product-small .box-image{
  margin: 0 auto 8px !important;
  width: 70% !important;
}
/* Khoa chieu cao vung anh -> moi card cao bang nhau (lay theo anh thap) */
.home .softvn-home-prod-row .product-small .box-image,
.home .softvn-home-prod-row .product-small .box-image > div,
.home .softvn-home-prod-row .product-small .box-image > div > a{
  display: block !important;
  height: 150px !important;
}
.home .softvn-home-prod-row .product-small .box-image img{
  display: block !important;
  width: 100% !important;
  height: 150px !important;
  object-fit: contain !important;
  object-position: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transition: transform .28s ease !important;
  filter: none !important;
}
.home .softvn-home-prod-row .product-small.box:hover .box-image img{
  transform: scale(1.025) !important;
}
/* ---------------------------------------------------------
   4) TEXT WRAPPER
   --------------------------------------------------------- */
.home .softvn-home-prod-row .product-small .box-text{
  position: relative !important;
  padding: 0 !important;
  text-align: center !important;
  background: transparent !important;
}
/* ---------------------------------------------------------
   5) TITLE
   --------------------------------------------------------- */
.home .softvn-home-prod-row .product-small .name.product-title,
.home .softvn-home-prod-row .product-small .woocommerce-loop-product__title{
  display: block !important;
  margin: 0 0 5px !important;
  padding: 0 6px !important;
  min-height: 40px !important;
  font-size: 14px !important;
  line-height: 1.28 !important;
  font-weight: 650 !important;
  color: #111827 !important;
  text-align: center !important;
  letter-spacing: -0.01em !important;
}
.home .softvn-home-prod-row .product-small .name.product-title a,
.home .softvn-home-prod-row .product-small .woocommerce-loop-product__title a{
  color: #111827 !important;
  text-decoration: none !important;
}
/* ---------------------------------------------------------
   6) CATEGORY / META
   --------------------------------------------------------- */
.home .softvn-home-prod-row .product-small .category,
.home .softvn-home-prod-row .product-small .product-cat,
.home .softvn-home-prod-row .product-small .posted_in{
  display: block !important;
  margin: 0 0 5px !important;
  padding: 0 6px !important;
  font-size: 11px !important;
  line-height: 1.28 !important;
  color: #7b8794 !important;
  text-align: center !important;
}
/* ---------------------------------------------------------
   7) RATING
   --------------------------------------------------------- */
.home .softvn-home-prod-row .product-small .star-rating{
  margin: 0 auto 5px !important;
  font-size: 10px !important;
  opacity: .78 !important;
  transform: scale(.92) !important;
}
/* ---------------------------------------------------------
   8) PRICE
   --------------------------------------------------------- */
.home .softvn-home-prod-row .product-small .price{
  display: block !important;
  margin-top: 0 !important;
  padding: 0 6px !important;
  text-align: center !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  color: #e10600 !important;
}
.home .softvn-home-prod-row .product-small .price del,
.home .softvn-home-prod-row .product-small .price del *,
.home .softvn-home-prod-row .product-small .price del .amount,
.home .softvn-home-prod-row .product-small .price del bdi,
.home .softvn-home-prod-row .product-small .price > span:first-child,
.home .softvn-home-prod-row .product-small .price > span:first-child *{
  color: #222222 !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  opacity: .78 !important;
}
.home .softvn-home-prod-row .product-small .price del{
  margin-right: 4px !important;
}
.home .softvn-home-prod-row .product-small .price ins,
.home .softvn-home-prod-row .product-small .price ins *,
.home .softvn-home-prod-row .product-small .price .amount,
.home .softvn-home-prod-row .product-small .price ins bdi{
  color: #e10600 !important;
  text-decoration: none !important;
}
.home .softvn-home-prod-row .product-small .price,
.home .softvn-home-prod-row .product-small .price *{
  vertical-align: baseline !important;
}
/* ---------------------------------------------------------
   9) BADGE / CLEANUP
   --------------------------------------------------------- */
.home .softvn-home-prod-row .product-small .image-tools,
.home .softvn-home-prod-row .product-small .button{
  display: none !important;
}
.home .softvn-home-prod-row .badge-container{
  z-index: 5 !important;
}
.home .softvn-home-prod-row .onsale{
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  min-height: auto !important;
  line-height: 1 !important;
  padding: 5px 8px !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  background: var(--svn-cyan-bg) !important;
  color: var(--svn-cyan) !important;
  border: 1px solid var(--svn-cyan-soft) !important;
  box-shadow: none !important;
}
/* ---------------------------------------------------------
   10) LINK / CURSOR
   --------------------------------------------------------- */
.home .softvn-home-prod-row .product-small a{
  text-decoration: none !important;
}
.home .softvn-home-prod-row .product-small.box{
  cursor: pointer !important;
}
/* ---------------------------------------------------------
   11) RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 1024px){
.home .softvn-home-prod-row .row.equalize-box > .col,
  .home .softvn-home-prod-row > .col-inner > .row > .col,
  .home .softvn-home-prod-row .row > .col{
    padding-left: 7px !important;
    padding-right: 7px !important;
    margin-bottom: 14px !important;
  }
}
@media (max-width: 768px){
.home .softvn-home-prod-row .row.equalize-box > .col,
  .home .softvn-home-prod-row > .col-inner > .row > .col,
  .home .softvn-home-prod-row .row > .col{
    padding-left: 6px !important;
    padding-right: 6px !important;
    margin-bottom: 12px !important;
  }

  .home .softvn-home-prod-row .product-small.box{
    border-radius: 16px !important;
    padding: 12px 10px 12px !important;
  }

  .home .softvn-home-prod-row .product-small .name.product-title,
  .home .softvn-home-prod-row .product-small .woocommerce-loop-product__title{
    font-size: 13px !important;
    min-height: 36px !important;
  }
}
/* ---------------------------------------------------------
   12) PRODUCT META  (Cloud · Microsoft …) — match sample
   --------------------------------------------------------- */
.home .softvn-home-prod-row .product-small .softvn-product-meta{
  display: block !important;
  margin: 0 0 6px !important;
  padding: 0 6px !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
  font-weight: 500 !important;
  letter-spacing: .01em !important;
  color: #8a94a3 !important;
  text-align: center !important;
}
/* keep the title block tight so meta sits right under the name */
.home .softvn-home-prod-row .product-small .title-wrapper{
  margin-bottom: 6px !important;
}
.home .softvn-home-prod-row .product-small .title-wrapper .name.product-title,
.home .softvn-home-prod-row .product-small .title-wrapper .woocommerce-loop-product__title{
  margin-bottom: 4px !important;
}
/* inline rating sits centered just above the price */
.home .softvn-home-prod-row .product-small .price-wrapper{
  display: block !important;
  text-align: center !important;
}
.home .softvn-home-prod-row .product-small .star-rating--inline{
  display: block !important;
  margin: 0 auto 4px !important;
}
.home .softvn-home-prod-row .product-small .price .devvn_woocommerce_price_prefix{
  font-weight: 500 !important;
  color: #8a94a3 !important;
  margin-right: 3px !important;
}
/* ---------------------------------------------------------
   13) WHOLE-CARD CLICK OVERLAY (injected by JS) — match sample
   --------------------------------------------------------- */
.home .softvn-home-prod-row .product-small.box{
  position: relative !important;
}
.home .softvn-home-prod-row .product-small .softvn-card-link{
  position: absolute !important;
  inset: 0 !important;
  z-index: 4 !important;
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 0 !important;
  -webkit-tap-highlight-color: transparent !important;
}
/* badges / sale flags stay above the overlay */
.home .softvn-home-prod-row .badge-container,
.home .softvn-home-prod-row .product-small .onsale{
  z-index: 6 !important;
}
