.fmc {
  width: 100%;
  padding: var(--fmc-pad-top, 28px) 20px var(--fmc-pad-bottom, 28px);
  background: var(--fmc-bg, #f7f4ec);
  box-sizing: border-box;
}

.fmc__inner {
  max-width: var(--fmc-max, 1400px);
  margin: 0 auto;
}

.fmc__head {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.fmc__title {
  margin: 0 0 8px;
  color: #214f2f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.fmc__lead {
  margin: 0;
  max-width: 520px;
  color: #5f6d5f;
  font-size: 14px;
  line-height: 1.55;
}

.fmc__shop-all {
  flex-shrink: 0;
  color: #214f2f !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}

.fmc__grid {
  display: grid;
  grid-template-columns: repeat(var(--fmc-cols, 4), minmax(0, 1fr));
  gap: 16px;
}

.fmc__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8ebe4;
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(33, 79, 47, 0.05);
  box-sizing: border-box;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.fmc__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(33, 79, 47, 0.12);
}

.fmc__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 0.92;
  overflow: hidden;
  text-decoration: none !important;
  background:
    linear-gradient(160deg, #f8e8d4 0%, #f3efe4 42%, #e5f0e4 100%);
}

.fmc__media img,
.fmc__media .image,
.fmc__media picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fmc__media .mug {
  position: relative;
  width: 150px;
  height: 140px;
  flex-shrink: 0;
  transform: scale(0.86);
  transform-origin: center;
}

.fmc__media .mug .cup {
  position: absolute;
  left: 15px;
  top: 18px;
  width: 108px;
  height: 116px;
  border-radius: 14px 14px 30px 30px;
  background: linear-gradient(180deg, #fff, #fff2df);
  box-shadow:
    inset 0 -11px 0 rgba(217, 144, 45, 0.1),
    0 15px 34px rgba(0, 0, 0, 0.16);
  display: grid;
  place-items: center;
  color: #214f2f;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.08em;
  line-height: 1;
}

.fmc__media .mug .cup::after {
  content: "";
  position: absolute;
  right: -34px;
  top: 28px;
  width: 42px;
  height: 50px;
  border: 12px solid #fff4df;
  border-left: none;
  border-radius: 0 28px 28px 0;
  box-sizing: border-box;
}

.fmc__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 14px;
  background: #fff;
}

.fmc__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fmc__tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  border-radius: 999px;
}

.fmc__tag--accent {
  color: #fff;
  background: #214f2f;
}

.fmc__tag--purple {
  color: #5b4578;
  background: #ebe3f5;
}

.fmc__tag--mint {
  color: #214f2f;
  background: #dcefdc;
}

.fmc__tag--dark {
  color: #fff;
  background: #1a2e1f;
}

.fmc__tag--soft {
  color: #214f2f;
  background: #e7f2e8;
}

.fmc__name {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.fmc__name a {
  color: #1a2e1f !important;
  text-decoration: none !important;
}

.fmc__desc-line {
  margin: 0;
  color: #7a8676;
  font-size: 12px;
  line-height: 1.45;
}

.fmc__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}

.fmc__price {
  color: #214f2f;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.fmc__meta theme-product-form,
.fmc__meta form {
  display: contents;
}

.fmc__cart {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 42px;
  height: 42px;
  padding: 0;
  overflow: hidden;
  color: #214f2f !important;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none !important;
  text-transform: uppercase;
  white-space: nowrap;
  background: #fff;
  border: 1.5px solid #214f2f;
  border-radius: 999px;
  cursor: pointer;
  appearance: none;
  transition:
    width 0.28s ease,
    padding 0.28s ease,
    gap 0.28s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.fmc__cart-label {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-width 0.28s ease,
    opacity 0.2s ease,
    margin 0.28s ease;
}

.fmc__cart-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.fmc__cart-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.fmc__card:hover .fmc__cart,
.fmc__cart:hover,
.fmc__cart:focus-visible {
  width: auto;
  min-width: 138px;
  padding: 0 16px;
  gap: 8px;
  color: #fff !important;
  background: #214f2f;
  border-color: #214f2f;
}

.fmc__card:hover .fmc__cart .fmc__cart-label,
.fmc__cart:hover .fmc__cart-label,
.fmc__cart:focus-visible .fmc__cart-label {
  max-width: 120px;
  margin-right: 0;
  opacity: 1;
}

.fmc__cart:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 959px) {
  .fmc__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .fmc__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 559px) {
  .fmc__grid {
    grid-template-columns: 1fr;
  }
}

@media (hover: none) {
  .fmc__cart {
    width: auto;
    min-width: 138px;
    padding: 0 16px;
    gap: 8px;
    color: #fff !important;
    background: #214f2f;
    border-color: #214f2f;
  }

  .fmc__cart-label {
    max-width: 120px;
    opacity: 1;
  }
}
