/* Fern & Wild — promos / shop title / shop / USP (clean) */

/* —— Promos —— */
.fw-promos {
  position: relative;
  padding: 125px 3% 125px 4%;
  background-image: url("../images/pattern-terracotta-swirls.jpg");
  background-repeat: repeat;
  background-size: contain;
  box-sizing: border-box;
}

.fw-promos__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.fw-promos__item {
  width: 25%;
  box-sizing: border-box;
  position: relative;
}

.fw-promos__item--1 { padding: 0 12px 0 0; }
.fw-promos__item--2,
.fw-promos__item--3 { padding: 0 6px; }
.fw-promos__item--4 { padding: 0 0 0 12px; }

.fw-promo {
  position: relative;
  display: block;
  width: 100%;
  overflow: visible;
  aspect-ratio: 1 / 1;
  background-color: #2B2927;
  background-image: url("../images/chalk-board.jpg?v=20260730");
  background-repeat: no-repeat;
  /* One image sliced across the four boards (desktop: 1×4) */
  background-size: 400% 100%;
  background-position: 0% 0%;
}

.fw-promos__item--1 .fw-promo { background-position: 0% 0%; }
.fw-promos__item--2 .fw-promo { background-position: 33.333% 0%; }
.fw-promos__item--3 .fw-promo { background-position: 66.666% 0%; }
.fw-promos__item--4 .fw-promo { background-position: 100% 0%; }

.fw-promo__image {
  display: none;
}

.fw-promo__card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background: transparent;
  padding: 10% 6%;
  text-align: center;
  box-sizing: border-box;
  z-index: 1;
}

.fw-promo__title {
  margin: 0;
  min-height: calc(38px * 1.15 * 2);
  font-family: 'Special Elite', serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.fw-promo__text {
  margin: 0;
  min-height: calc(20px * 1.35 * 2);
  font-family: 'Special Elite', serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #fff;
  line-height: 1.35;
}

.fw-promo__label {
  margin: 0;
  font-family: Quicksand, sans-serif;
  font-style: italic;
  letter-spacing: 0.02em;
  color: #fff;
  font-size: 18px;
  position: absolute;
  left: -15px;
  bottom: 1px;
  transform-origin: 1% 100%;
  transform: rotate(270deg) translateY(0);
  backface-visibility: hidden;
  z-index: 3;
}

.fw-promo .fw-m-vertical-text > span,
.fw-promo .fw-m-vertical-text > span span {
  opacity: 1;
  color: #fff;
}
.fw-promo .fw-m-vertical-text svg {
  transform: rotate(90deg);
  transform-origin: 5px 100%;
  overflow: visible;
}
.fw-promo .fw-m-vertical-text svg line {
  transform: scaleY(1);
  transform-origin: bottom;
  stroke: #fff;
}
.fw-promo .fw-m-vertical-text svg path {
  opacity: 1;
  transform: scale(1);
  fill: #fff;
}

.fw-promo__link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* —— Shop title —— */
.fw-shop-title {
  padding: 135px 0 55px;
  text-align: center;
}

.fw-shop-title__inner {
  padding: 0 20%;
  box-sizing: border-box;
}

.fw-shop-title__eyebrow {
  margin: 0 0 12px;
  font-family: Quicksand, sans-serif;
  font-size: 19px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #155142;
}

.fw-shop-title__eyebrow span { opacity: 1; }

.fw-shop-title__heading {
  margin: 0;
  font-family: 'Earthbound', serif;
  font-size: 46px;
  font-weight: 400; /* match intro/about — Quicksand 300 not self-hosted */
  line-height: 1.146;
  letter-spacing: 0.02em;
  color: #155142;
}

/* —— Shop —— */
.fw-shop {
  position: relative;
}

.fw-shop__inner {
  width: 1100px;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.fw-shop__grid {
  display: flex;
  flex-wrap: wrap;
  width: calc(100% + 30px);
  margin: 0 0 0 -15px;
  box-sizing: border-box;
}

.fw-shop__item {
  width: 33.33333%;
  padding: 0 15px;
  margin-bottom: 30px;
  box-sizing: border-box;
}

.fw-shop__item:nth-child(n + 4) {
  margin-bottom: 0;
}

.fw-shop__toolbar {
  position: relative;
  margin: 0 0 31px;
  min-height: 25px;
}

.fw-shop__filters {
  display: inline-flex;
  align-items: center;
  vertical-align: top;
}

.fw-shop__filter {
  position: relative;
  display: inline-block;
  vertical-align: top;
  margin: 0 24px 0 0;
  padding: 0;
  font-family: Quicksand, sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: #155142;
  text-decoration: none;
  line-height: 25px;
  border: 0;
}

.fw-shop__filter:first-child { margin-right: 30px; }
.fw-shop__filter:last-child { margin-right: 0; }

.fw-shop__filter::after {
  content: "";
  background-color: #3f8171;
  width: 0;
  height: 1px;
  position: absolute;
  bottom: 0;
  left: 0;
  transition: width 0.4s;
}

.fw-shop__filter.is-active::after,
.fw-shop__filter:hover::after {
  width: 100%;
}

.fw-shop__order {
  position: absolute;
  right: 0;
  top: 0;
  display: inline-block;
  min-width: 150px;
  text-align: right;
  font-family: Quicksand, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #155142;
  line-height: 25px;
  cursor: pointer;
}

.fw-shop__order::after {
  content: "\f3d0";
  position: relative;
  top: 1px;
  padding-left: 6px;
  font-family: Ionicons;
  font-size: 15px;
}
.fw-shop__item.is-hidden { display: none; }

.fw-product {
  position: relative;
  display: inline-block;
  vertical-align: top;
  width: 100%;
  text-align: center;
  margin-bottom: 22px;
}

.fw-product__media {
  position: relative;
  display: inline-block;
  vertical-align: top;
  width: 100%;
}

.fw-product__media img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.01);
  transition: transform 0.5s;
  will-change: transform;
}

.fw-product:hover .fw-product__media img {
  transform: scale(1.03);
}

.fw-product__badge {
  position: absolute;
  top: 12px;
  right: 10px;
  width: 50px;
  height: 50px;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0 6px;
  font-family: Quicksand, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 32px;
  color: #155142;
  background: #d8e3d5;
  z-index: 5;
  box-sizing: border-box;
}

.fw-product__badge--new {
  background: #fff;
}

.fw-product__body {
  position: relative;
  display: inline-block;
  vertical-align: top;
  width: 100%;
  margin: 20px 0 12px;
  text-align: center;
}

.fw-product__title {
  margin: 0;
  font-family: Quicksand, sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.318;
  letter-spacing: 0.02em;
  color: #155142;
}

.fw-product__title a {
  color: inherit;
  text-decoration: none;
}

.fw-product__price {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px 0 0;
  font-family: Quicksand, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #155142;
}

.fw-product__price del {
  opacity: 1;
  margin-right: 10px;
}

.fw-product__price ins {
  text-decoration: none;
}

.fw-product__cart {
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  font-family: Quicksand, sans-serif;
  font-size: 18px;
  font-style: italic;
  line-height: 1.6em;
  color: #155142;
  background: transparent;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.2s ease-in;
  white-space: nowrap;
}

.fw-product:hover .fw-product__cart {
  opacity: 1;
}

.fw-product:hover .fw-product__price {
  opacity: 0;
}

/* —— USP —— */
.fw-usp {
  padding: 70px 0 55px;
}

.fw-usp__inner {
  width: 1100px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.fw-usp__item {
  width: 25%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.fw-usp__item:nth-child(1) { width: 24.909%; }
.fw-usp__item:nth-child(2) { width: 25.091%; }

.fw-usp__item-inner {
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding-left: 17px;
  border-right: 1px solid #d7e1de;
  box-sizing: border-box;
  margin-bottom: 20px;
  min-height: 56px;
}

.fw-usp__item:last-child .fw-usp__item-inner {
  border-right: none;
}

.fw-usp__spacer {
  height: 26px;
  flex-shrink: 0;
}

.fw-usp__icon {
  margin-right: 15px;
  flex-shrink: 0;
}

.fw-usp__icon img {
  display: block;
  width: 77px;
  height: auto;
}

.fw-usp__title {
  margin: 0;
  font-family: 'Earthbound', serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.316;
  letter-spacing: 0.02em;
  color: #155142;
}

.fw-usp__link {
  display: inline-block;
  margin-top: 6px;
  font-family: Quicksand, sans-serif;
  font-size: 18px;
  font-style: italic;
  line-height: 25px;
  color: #155142;
  text-decoration: none;
}

@media only screen and (max-width: 1200px) {
  .fw-shop__inner,
  .fw-usp__inner { width: 960px; }
}

@media only screen and (max-width: 1024px) {
  .fw-shop__inner,
  .fw-usp__inner { width: 768px; }
  .fw-promos {
    padding: 80px 3%;
  }
  .fw-promos__item { width: 50%; }
  .fw-promos__item--1,
  .fw-promos__item--3 { padding: 0 8px 16px 0; }
  .fw-promos__item--2,
  .fw-promos__item--4 { padding: 0 0 16px 8px; }
  /* One image sliced across 2×2 */
  .fw-promo { background-size: 200% 200%; }
  .fw-promos__item--1 .fw-promo { background-position: 0% 0%; }
  .fw-promos__item--2 .fw-promo { background-position: 100% 0%; }
  .fw-promos__item--3 .fw-promo { background-position: 0% 100%; }
  .fw-promos__item--4 .fw-promo { background-position: 100% 100%; }
  .fw-promo__label { display: none; }
  .fw-promo__title { font-size: 32px; min-height: calc(32px * 1.15 * 2); }
  .fw-promo__text { font-size: 18px; min-height: calc(18px * 1.35 * 2); }
  .fw-shop-title__inner { padding: 0 10%; }
  .fw-shop { padding: 0 2%; }
  .fw-usp { padding: 8% 0 1% 4%; }
  .fw-usp__item { border-right: none; }
}

@media only screen and (max-width: 800px) {
  .fw-shop__inner,
  .fw-usp__inner { width: 86%; }
}

@media only screen and (max-width: 767px) {
  /* Balance top/bottom around the shop-title headings (was 30% / 15%) */
  .fw-shop-title { padding: 15% 5%; }
  .fw-shop-title__inner { padding: 0; }
  .fw-shop-title__heading br { display: none; }
  .fw-promos {
    padding: 60px 3%;
  }
  /* Keep 2×2 chalkboard grid on mobile */
  .fw-promos__item { width: 50%; }
  .fw-promos__item--1,
  .fw-promos__item--3 { padding: 0 4px 8px 0 !important; }
  .fw-promos__item--2,
  .fw-promos__item--4 { padding: 0 0 8px 4px !important; }
  .fw-promo { background-size: 200% 200%; }
  .fw-promos__item--1 .fw-promo { background-position: 0% 0%; }
  .fw-promos__item--2 .fw-promo { background-position: 100% 0%; }
  .fw-promos__item--3 .fw-promo { background-position: 0% 100%; }
  .fw-promos__item--4 .fw-promo { background-position: 100% 100%; }
  .fw-promo__title { font-size: 22px; min-height: calc(22px * 1.15 * 2); }
  .fw-promo__text { font-size: 14px; min-height: calc(14px * 1.35 * 2); }
  .fw-promo__card { gap: 14px; padding: 8% 5%; }
  .fw-shop__item { width: 100%; }
  .fw-usp__item { width: 100%; padding-left: 0; margin-bottom: 20px; }
  .fw-usp { padding: 10% 0 1%; }
}

@media only screen and (max-width: 480px) {
  .fw-shop__inner,
  .fw-usp__inner { width: 82%; }
}
