/* Careford Creations Core — storefront helpers, v1.0.2 */

.cfc-core-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 1280px);
  min-height: 92px;
  margin: auto;
  border-bottom: 1px solid #dfe4dc;
  padding: 0 clamp(12px, 2vw, 22px);
}

.cfc-core-trust > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-width: 0;
  border-right: 1px solid #dfe4dc;
  padding: 16px;
}

.cfc-core-trust > div:last-child {
  border-right: 0;
}

.cfc-core-trust svg {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  fill: none;
  stroke: #2d5d4c;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cfc-core-trust > div > span {
  min-width: 0;
}

.cfc-core-trust b,
.cfc-core-trust small {
  display: block;
}

.cfc-core-trust b {
  color: #17211b;
  font-size: 13px;
  line-height: 1.3;
}

.cfc-core-trust small {
  margin-top: 2px;
  color: #68736b;
  font-size: 11px;
  line-height: 1.35;
}

.cfc-core-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.cfc-core-categories > a {
  position: relative;
  height: 420px;
  min-width: 0;
  overflow: hidden;
  background: #f3f5f1;
}

.cfc-core-categories img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

@media (hover: hover) {
  .cfc-core-categories > a:hover img {
    transform: scale(1.025);
  }
}

.cfc-core-categories > a::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(15, 23, 18, 0.78));
}

.cfc-core-categories span {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 22px;
  left: 24px;
  color: #fff;
}

.cfc-core-categories b,
.cfc-core-categories small,
.cfc-core-categories em {
  display: block;
}

.cfc-core-categories b {
  font: 500 27px / 1.2 Lora, Georgia, serif;
}

.cfc-core-categories small {
  margin: 4px 0 12px;
  opacity: 0.82;
}

.cfc-core-categories em {
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.cfc-saved-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.cfc-saved-card {
  min-width: 0;
  background: #f3f5f1;
}

.cfc-saved-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.cfc-saved-card > div {
  padding: 15px;
}

.cfc-saved-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.cfc-saved-card .price {
  font-weight: 800;
}

.cfc-saved-empty {
  background: #f3f5f1;
  padding: 70px 20px;
  text-align: center;
}

@media (max-width: 1000px) {
  .cfc-core-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cfc-saved-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .cfc-core-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
    padding: 8px;
  }

  .cfc-core-trust > div {
    justify-content: flex-start;
    gap: 10px;
    border: 0;
    padding: 12px 8px;
  }

  .cfc-core-trust svg {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .cfc-core-trust b {
    font-size: 12px;
  }

  .cfc-core-trust small {
    font-size: 10px;
  }

  .cfc-core-categories {
    display: flex;
    gap: 12px;
    margin-right: -16px;
    margin-left: -2px;
    padding: 0 16px 8px 2px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .cfc-core-categories > a {
    flex: 0 0 min(82vw, 350px);
    height: min(105vw, 420px);
    scroll-snap-align: start;
  }

  .cfc-saved-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .cfc-core-trust {
    grid-template-columns: 1fr;
  }

  .cfc-core-trust > div {
    border-bottom: 1px solid #e7ebe5;
  }

  .cfc-core-trust > div:last-child {
    border-bottom: 0;
  }
}
