/* =========================================================
   KHAGAN — HOME PRODUCT COLLECTION
   ========================================================= */

.product-home-section{
  padding:96px 0 110px;
  background:#f6f6f3;
  color:#111;
}

/* ---------- HEADER ---------- */

.product-home-head{
  max-width:760px;
  margin:0 auto 30px;
  text-align:center;
}

.product-home-kicker{
  margin:0 0 12px;
  color:#777;
  font-size:11px;
  font-weight:800;
  letter-spacing:.22em;
  text-transform:uppercase;
}

.product-home-section .section-title{
  margin:0;
  color:#0b0b0b;
  font-size:clamp(32px,4.2vw,52px);
  line-height:1.05;
  font-weight:800;
  letter-spacing:-.035em;
}

.product-home-subtitle{
  max-width:620px;
  margin:14px auto 0;
  color:#777;
  font-size:13px;
  line-height:1.7;
  letter-spacing:.025em;
}


/* =========================================================
   FILTER
   ========================================================= */

.product-filters{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin:34px 0 48px;
}

.product-filter{
  appearance:none;
  border:1px solid #d4d4cf;
  border-radius:999px;
  background:transparent;
  color:#6c6c68;

  padding:9px 17px;

  font:inherit;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;

  cursor:pointer;

  transition:
    background .2s ease,
    border-color .2s ease,
    color .2s ease,
    transform .2s ease;
}

.product-filter:hover{
  border-color:#111;
  color:#111;
}

.product-filter.active{
  background:#111;
  border-color:#111;
  color:#fff;
}

.product-filter:active{
  transform:scale(.97);
}


/* =========================================================
   PRODUCT GRID
   ========================================================= */

.product-home-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:46px 20px;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.product-home-card{
  display:block;
  min-width:0;
  color:#111;
  text-decoration:none;
}

.product-home-image{
  position:relative;
  overflow:hidden;

  aspect-ratio:4 / 5;

  display:flex;
  align-items:center;
  justify-content:center;

  background:#ebebe7;

  border:1px solid rgba(0,0,0,.035);

  transition:
    box-shadow .3s ease,
    transform .3s ease;
}

.product-home-card:hover .product-home-image{
  box-shadow:0 16px 38px rgba(0,0,0,.09);
}


/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

.product-home-image img{
  display:block;
  width:100%;
  height:100%;

  object-fit:contain;

  padding:20px;

  transition:
    transform .45s cubic-bezier(.22,.61,.36,1),
    opacity .3s ease;
}

.product-home-card:hover .product-home-image img{
  transform:scale(1.055);
}


/* =========================================================
   BADGES
   ========================================================= */

.product-status-badge{
  position:absolute;
  top:14px;
  left:14px;
  z-index:5;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-height:29px;
  padding:0 11px;

  font-size:9px;
  font-weight:800;
  line-height:1;
  letter-spacing:.13em;
  text-transform:uppercase;

  box-shadow:0 2px 8px rgba(0,0,0,.06);
}


/* ОНЦЛОХ */

.product-status-badge.featured{
  background:#111;
  color:#fff;
}


/* ШИНЭ */

.product-status-badge.new{
  background:rgba(255,255,255,.95);
  color:#111;
  border:1px solid #111;
}


/* ХЯМДРАЛТАЙ */

.product-status-badge.sale{
  background:#f0b400;
  color:#111;
}


/* =========================================================
   HOVER — VIEW BUTTON
   ========================================================= */

.product-view{
  position:absolute;
  left:14px;
  right:14px;
  bottom:14px;
  z-index:4;

  display:flex;
  align-items:center;
  justify-content:center;

  min-height:42px;

  background:rgba(10,10,10,.94);
  color:#fff;

  font-size:10px;
  font-weight:800;
  letter-spacing:.14em;

  opacity:0;
  transform:translateY(12px);

  transition:
    opacity .25s ease,
    transform .25s ease;
}

.product-home-card:hover .product-view{
  opacity:1;
  transform:translateY(0);
}


/* =========================================================
   PRODUCT INFO
   ========================================================= */

.product-home-info{
  padding:17px 3px 0;
}

.product-home-info h3{
  margin:0 0 7px;

  color:#111;

  font-size:14px;
  font-weight:700;
  line-height:1.45;

  transition:opacity .2s ease;
}

.product-home-card:hover .product-home-info h3{
  opacity:.68;
}

.product-home-info p{
  margin:0 0 8px;

  color:#858580;

  font-size:11px;
  line-height:1.5;
  letter-spacing:.025em;
}

.product-home-info strong{
  display:inline-block;

  color:#111;

  font-size:14px;
  font-weight:800;
}


/* =========================================================
   SALE PRICE — OPTIONAL
   ========================================================= */

.product-price-sale{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}

.product-price-old{
  color:#999;
  font-size:12px;
  font-weight:500;
  text-decoration:line-through;
}

.product-price-new{
  color:#111;
  font-size:14px;
  font-weight:800;
}

.product-discount{
  display:inline-flex;
  align-items:center;

  min-height:22px;
  padding:0 7px;

  background:#f0b400;
  color:#111;

  font-size:9px;
  font-weight:800;
  letter-spacing:.06em;
}


/* =========================================================
   PLACEHOLDER PRODUCT
   ========================================================= */

.product-placeholder{
  opacity:.68;
}

.placeholder-image{
  border:1px dashed #aaa;
  background:#efefec;
  color:#888;
}

.placeholder-image span{
  font-size:10px;
  font-weight:800;
  letter-spacing:.12em;
}


/* =========================================================
   ALL PRODUCTS BUTTON
   ========================================================= */

.product-home-footer{
  margin-top:64px;
  text-align:center;
}

.all-products-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;

  min-height:46px;

  padding:0 22px;

  border:1px solid #111;

  background:#111;
  color:#fff;

  text-decoration:none;

  font-size:11px;
  font-weight:800;
  letter-spacing:.09em;

  transition:
    background .2s ease,
    color .2s ease,
    transform .2s ease;
}

.all-products-btn span{
  display:inline-block;
  font-size:17px;

  transition:transform .25s ease;
}

.all-products-btn:hover{
  background:transparent;
  color:#111;
}

.all-products-btn:hover span{
  transform:translateX(5px);
}


/* =========================================================
   FILTER HIDDEN ITEM
   ========================================================= */

.product-home-card.is-hidden{
  display:none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width:1024px){

  .product-home-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:40px 18px;
  }

}


/* =========================================================
   MOBILE / TABLET
   ========================================================= */

@media (max-width:760px){

  .product-home-section{
    padding:68px 0 76px;
  }

  .product-home-head{
    margin-bottom:24px;
  }

  .product-filters{
    gap:7px;
    margin:26px 0 34px;
  }

  .product-filter{
    padding:8px 13px;
    font-size:10px;
  }

  .product-home-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:34px 13px;
  }

  .product-home-image img{
    padding:13px;
  }

  .product-status-badge{
    top:10px;
    left:10px;

    min-height:25px;
    padding:0 8px;

    font-size:8px;
  }

  .product-view{
    display:none;
  }

  .product-home-info{
    padding-top:13px;
  }

  .product-home-footer{
    margin-top:48px;
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width:420px){

  .product-home-section{
    padding:58px 0 66px;
  }

  .product-home-section .section-title{
    font-size:30px;
  }

  .product-home-subtitle{
    font-size:12px;
  }

  .product-home-grid{
    gap:28px 9px;
  }

  .product-home-info h3{
    font-size:12px;
    line-height:1.4;
  }

  .product-home-info p{
    font-size:10px;
  }

  .product-home-info strong{
    font-size:12px;
  }

  .product-status-badge{
    top:8px;
    left:8px;
  }

  .all-products-btn{
    min-height:44px;
    padding:0 18px;
    font-size:10px;
  }

}

/* БҮХ БҮТЭЭГДЭХҮҮНИЙГ ҮЗЭХ */

.all-products-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  background:transparent !important;
  color:#111 !important;
  border:none;

  padding:10px 0;

  text-decoration:none !important;

  font-size:12px;
  font-weight:800;
  letter-spacing:.10em;

  transition:opacity .2s ease;
}

.all-products-btn:hover{
  opacity:.65;
  color:#111 !important;
}

.all-products-btn span{
  color:inherit;
  font-size:18px;
  transition:transform .25s ease;
}

.all-products-btn:hover span{
  transform:translateX(5px);
}