.cfm-hero {
  padding: 34px 0 0;
  background: linear-gradient(180deg, #f7fbf5, #fff);
}
.cfm-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  min-height: 360px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--cfm-radius);
  background:
    linear-gradient(135deg, rgba(11, 94, 43, 0.94), rgba(11, 94, 43, 0.72)),
    url("https://images.unsplash.com/photo-1619566636858-adf3ef46400b?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fff;
  box-shadow: var(--cfm-shadow);
}
.cfm-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}
.cfm-hero p {
  max-width: 700px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}
.cfm-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.cfm-hero-stats span {
  min-width: 132px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
}
.cfm-hero-stats strong {
  display: block;
  color: #fff;
  font-size: 22px;
}
.cfm-front-page {
  padding-bottom: 78px;
  background: #fff;
}
.cfm-front-hero {
  padding: 38px 0 0;
  background: linear-gradient(180deg, #f7fbf5 0, #fff 100%);
}
.cfm-front-hero-inner {
  min-height: min(58vw, 560px);
  display: flex;
  align-items: center;
  border-radius: var(--cfm-radius);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 42, 19, 0.82) 0%, rgba(7, 42, 19, 0.58) 48%, rgba(7, 42, 19, 0.22) 100%),
    url("https://images.unsplash.com/photo-1619566636858-adf3ef46400b?auto=format&fit=crop&w=1800&q=80") center/cover;
  box-shadow: var(--cfm-shadow);
}
.cfm-front-hero-copy {
  width: min(690px, 100%);
  padding: clamp(30px, 6vw, 76px);
  color: #fff;
}
.cfm-front-hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: 0;
}
.cfm-front-hero p:not(.cfm-kicker) {
  max-width: 650px;
  margin: 18px 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 1.6vw, 19px);
}
.cfm-front-hero .button {
  background: var(--cfm-light-green);
  color: var(--cfm-green-dark);
}
.cfm-front-hero .button:hover {
  background: #a4df62;
  color: var(--cfm-green-dark);
}
.cfm-front-section {
  margin-top: clamp(42px, 6vw, 72px);
}
.cfm-front-section-head {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
}
.cfm-front-section-head h2 {
  margin: 0;
  color: var(--cfm-ink);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
}
.cfm-front-section-head a {
  color: var(--cfm-green);
  font-size: 14px;
  font-weight: 900;
}
.cfm-category-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.cfm-category-tile {
  position: relative;
  min-height: 166px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--cfm-soft);
  box-shadow: 0 12px 34px rgba(11, 94, 43, 0.08);
}
.cfm-category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 42, 19, 0.08), rgba(7, 42, 19, 0.66));
}
.cfm-category-tile img {
  width: 100%;
  height: 100%;
  min-height: 166px;
  object-fit: cover;
  transition: transform 320ms ease;
}
.cfm-category-tile:hover img {
  transform: scale(1.06);
}
.cfm-category-tile span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}
.cfm-front-products .woocommerce {
  margin-top: 0;
}
.cfm-shop-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 34px 0 70px;
}
.cfm-shop-sidebar {
  position: sticky;
  top: 122px;
}
.cfm-filters,
.cfm-widget {
  padding: 22px;
  border: 1px solid var(--cfm-line);
  border-radius: var(--cfm-radius);
  background: #fff;
  box-shadow: var(--cfm-shadow);
}
.cfm-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cfm-filter-head h2 {
  margin: 0;
  color: var(--cfm-green);
  font-size: 18px;
}
.cfm-reset {
  color: var(--cfm-light-green);
  font-size: 13px;
  font-weight: 900;
}
.cfm-filter-group {
  padding: 18px 0;
  border-top: 1px solid var(--cfm-line);
}
.cfm-filter-group h3 {
  margin: 0 0 12px;
  font-size: 14px;
}
.cfm-filter-group ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.cfm-filter-group a,
.cfm-filter-group label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #354137;
  font-size: 14px;
}
.cfm-filter-group input,
.cfm-filter-group select {
  accent-color: var(--cfm-green);
}
.cfm-filter-group select,
.cfm-price-row input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--cfm-line);
  border-radius: 13px;
  background: #fff;
}
.cfm-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cfm-products-area {
  min-width: 0;
}
.cfm-shop-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid var(--cfm-line);
  border-radius: var(--cfm-radius);
  background: #fff;
  box-shadow: 0 12px 38px rgba(11, 94, 43, 0.07);
}
.woocommerce-result-count {
  margin: 0;
  color: var(--cfm-muted);
  font-size: 14px;
  font-weight: 800;
}
.cfm-toolbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cfm-view-switcher {
  display: flex;
  padding: 4px;
  border: 1px solid var(--cfm-line);
  border-radius: 14px;
  background: var(--cfm-soft);
}
.cfm-view-switcher button {
  width: 38px;
  height: 34px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--cfm-green);
  cursor: pointer;
}
.cfm-view-switcher .is-active {
  background: #fff;
  box-shadow: 0 8px 20px rgba(11, 94, 43, 0.12);
}
.orderby {
  min-width: 190px;
  padding: 11px 14px;
  border: 1px solid var(--cfm-line);
  border-radius: 14px;
  background: #fff;
  color: var(--cfm-ink);
  font-weight: 800;
}
.woocommerce ul.products,
ul.products.cfm-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.woocommerce ul.products li.product,
.cfm-product-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--cfm-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(11, 94, 43, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.woocommerce ul.products li.product:hover,
.cfm-product-card:hover {
  transform: translateY(-7px);
  border-color: rgba(132, 196, 65, 0.5);
  box-shadow: var(--cfm-shadow-hover);
}
.cfm-product-media {
  position: relative;
  overflow: hidden;
  height: 220px;
  border-radius: 14px;
  background: #f8faf7;
}
.cfm-product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 360ms ease;
}
.cfm-product-card:hover .cfm-product-media img {
  transform: scale(1.08);
}
.cfm-product-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(244, 250, 241, 0.96);
  color: var(--cfm-green);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(11, 94, 43, 0.1);
}
.cfm-product-badges {
  position: absolute;
  left: 14px;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100% - 28px);
}
.cfm-product-badges span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--cfm-green);
  font-size: 10px;
  font-weight: 900;
}
.cfm-product-badges .is-sale {
  background: var(--cfm-light-green);
}
.cfm-wishlist-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--cfm-green);
  font-size: 20px;
  box-shadow: 0 10px 24px rgba(11, 94, 43, 0.16);
  cursor: pointer;
}
.cfm-wishlist-toggle.is-active {
  background: var(--cfm-light-green);
}
.cfm-product-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}
.cfm-product-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dce9de;
}
.cfm-product-dots span:first-child {
  width: 10px;
  background: var(--cfm-green);
}
.cfm-product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 20px;
}
.cfm-product-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}
.woocommerce-loop-product__title {
  margin: 0;
  color: var(--cfm-ink);
  font-size: 20px;
  line-height: 1.22;
}
.woocommerce-loop-product__title a {
  color: inherit;
}
.cfm-product-rating {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  color: #56645b;
  font-size: 14px;
  white-space: nowrap;
}
.cfm-product-rating > span {
  color: #ffb000;
}
.cfm-product-rating strong {
  color: #1b271f;
  font-weight: 900;
}
.cfm-product-rating small {
  color: #7a867e;
}
.cfm-product-origin {
  margin: 9px 0 0;
  color: #68756c;
  font-size: 14px;
  font-weight: 700;
}
.cfm-product-excerpt {
  display: -webkit-box;
  min-height: 3em;
  margin: 16px 0 14px;
  overflow: hidden;
  color: var(--cfm-muted);
  font-size: 15px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.woocommerce ul.products li.product .price,
.price {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: baseline;
  margin: auto 0 14px;
  color: var(--cfm-green);
  font-size: 25px;
  font-weight: 900;
}
.cfm-price-khr {
  color: #10251a;
  letter-spacing: 0;
}
.cfm-price-usd {
  color: #68756c;
  font-size: 14px;
  font-weight: 800;
}
.price del {
  margin-right: 3px;
  color: #9aa59b;
  font-size: 14px;
  font-weight: 700;
}
.price ins {
  color: var(--cfm-green);
  text-decoration: none;
}
.cfm-product-traits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
.cfm-product-traits span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 9px;
  border-radius: 9px;
  background: #f0f8ef;
  color: var(--cfm-green);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}
.cfm-stock {
  margin: 0;
}
.cfm-stock.is-in-stock { color: var(--cfm-green); }
.cfm-stock.is-out-stock { color: #9b3131; }
.cfm-product-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--cfm-line);
}
.cfm-product-actions .button,
.cfm-product-actions .added_to_cart {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.cfm-product-actions .add_to_cart_button {
  flex: 1;
  width: auto;
  padding: 0 18px;
  background: var(--cfm-green);
  color: #fff;
  box-shadow: 0 12px 22px rgba(11, 94, 43, 0.2);
}
.cfm-product-actions .add_to_cart_button::before {
  content: "🛒";
  margin-right: 8px;
}
.cfm-product-actions .added_to_cart {
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid var(--cfm-line);
  background: #fff;
  color: var(--cfm-green);
}
.cfm-product-actions .added_to_cart::before {
  content: "🛒";
  margin-right: 7px;
}
.cfm-products-grid.is-list {
  grid-template-columns: 1fr;
}
.cfm-products-grid.is-list .cfm-product-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
}
.woocommerce-pagination {
  margin-top: 34px;
}
.woocommerce-pagination ul.page-numbers,
.woocommerce nav.woocommerce-pagination ul {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 0;
  list-style: none;
}
.woocommerce-pagination .page-numbers {
  display: grid;
  min-width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--cfm-line);
  border-radius: 15px;
  background: #fff;
  color: var(--cfm-green);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(11, 94, 43, 0.07);
}
.woocommerce-pagination .page-numbers.current,
.woocommerce-pagination a.page-numbers:hover {
  border-color: var(--cfm-green);
  background: var(--cfm-green);
  color: #fff;
}
