/* ======================================================
   SHOP – Madéa v1.02
   Derivato dal vecchio shop editoriale Madéa
   ====================================================== */

.shop-editorial {
  background: #fbfaf8;
  padding-bottom: 90px;
}

.shop-editorial__head {
  padding: 76px 20px 30px;
}

.shop-editorial__wrap {
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto;
}

.shop-editorial__kicker,
.shopProduct__kicker {
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.shop-editorial__kicker {
  color: rgba(20,20,20,.58);
  margin-bottom: 12px;
}

.shop-editorial__title,
.shopProduct__title {
  font-family: "Playfair Display", serif;
  color: #111;
}

.shop-editorial__title {
  margin: 0;
  font-size: clamp(48px, 6vw, 82px);
  line-height: .98;
  font-weight: 600;
}

.shop-editorial__sub {
  max-width: 720px;
  margin: 18px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: #4a4a4a;
}

.shop-editorial__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 28px 0 36px;
  padding: 18px 0;
  border-top: 1px solid rgba(20,20,20,.10);
  border-bottom: 1px solid rgba(20,20,20,.10);
}

.shopFilters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filterBtn {
  border: 1px solid rgba(20,20,20,.12);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.filterBtn.is-active,
.filterBtn:hover {
  background: #141414;
  border-color: #141414;
  color: #fff;
}

.shopSearch {
  width: min(320px, 100%);
}

.shopSearch input {
  border-radius: 999px;
  background: #fff;
}

.shopProduct {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: stretch;
  margin-top: 26px;
}

.shopProduct--reverse .shopProduct__media { order: 2; }
.shopProduct--reverse .shopProduct__info { order: 1; }

.shopProduct__media,
.shopProduct__info {
  min-height: 620px;
  background: #f6f1ee;
  border: 1px solid rgba(20,20,20,.10);
}

.shopProduct__media {
  display: block;
  overflow: hidden;
}

.shopProduct__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.shopProduct__media:hover img {
  transform: scale(1.025);
}

.shopProduct__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(50px, 7vw, 90px);
}

.shopProduct__kicker {
  color: #b2142a;
  margin-bottom: 18px;
}

.shopProduct__title {
  margin: 0 0 22px;
  font-size: clamp(38px, 4vw, 52px);
  line-height: 1.02;
  font-weight: 600;
}

.shopProduct__desc {
  max-width: 540px;
  margin: 0 0 22px;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  line-height: 1.75;
  color: #4a4a4a;
}

.shopProduct__meta {
  max-width: 540px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(20,20,20,.10);
}

.shopProduct__price {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #111;
}

.shopProduct__micro {
  margin-top: 8px;
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(20,20,20,.58);
}

.shopProduct__field {
  margin-top: 22px;
  max-width: 540px;
}

.shopProduct__field label {
  display: block;
  margin-bottom: 8px;
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(20,20,20,.65);
}

.shopProduct__field select,
.shopProduct__field input {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  background: #fff;
}

.shopProduct__actions {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: end;
  max-width: 540px;
  margin-top: 4px;
}

.shopProduct__field--qty {
  margin-top: 18px;
}

.shopProduct__actions .btn {
  margin-top: 18px;
  min-height: 44px;
}

.shopProduct__detail {
  width: fit-content;
  margin-top: 24px;
  padding-bottom: 4px;
  border-bottom: 1px solid #141414;
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.shop-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 44px;
  border: 1px solid rgba(20,20,20,.10);
  background: #f6f1ee;
}

.shop-empty__kicker {
  color: #b2142a;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.shop-empty__title {
  margin: 8px 0;
  font-family: "Playfair Display", serif;
  font-size: 34px;
}

.shop-no-results {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid rgba(20,20,20,.10);
  background: #f6f1ee;
}

@media (max-width: 900px) {
  .shop-editorial__toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .shopSearch {
    width: 100%;
  }

  .shopProduct {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 24px;
  }

  .shopProduct--reverse .shopProduct__media,
  .shopProduct--reverse .shopProduct__info {
    order: initial;
  }

  .shopProduct__media {
    min-height: 460px;
  }

  .shopProduct__info {
    min-height: auto;
    padding: 48px 34px;
  }
}

@media (max-width: 560px) {
  .shop-editorial__head {
    padding: 54px 14px 22px;
  }

  .shop-editorial__wrap {
    width: calc(100% - 28px);
  }

  .shopProduct__media {
    min-height: 360px;
  }

  .shopProduct__info {
    padding: 38px 22px;
  }

  .shopProduct__actions {
    grid-template-columns: 1fr;
  }

  .shopProduct__field--qty {
    max-width: 120px;
  }

  .shop-empty {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* ======================================================
   Madéa v1.12 — PAGINA PRODOTTI
   ====================================================== */

.shopProduct__subtitle {
  max-width: 540px;
  margin: -10px 0 18px;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #242424;
}

.shopProduct__format {
  margin-top: 6px;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(20,20,20,.58);
}

.shopProduct__discover {
  width: fit-content;
  margin-top: 28px;
}

@media (max-width: 560px) {
  .shopProduct__discover {
    width: 100%;
  }
}

.shopFilters .filterBtn { text-decoration: none; }


/* ======================================================
   Madéa v1.24 — AZIONI PRODOTTO
   ====================================================== */

.shopProduct__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.shopProduct__actions .shopProduct__discover {
  margin-top: 0;
}

.shopProduct__add {
  width: fit-content;
  margin: 0;
  cursor: pointer;
}

.shopProduct__add:disabled {
  cursor: default;
  opacity: .72;
}

@media (max-width: 560px) {
  .shopProduct__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .shopProduct__actions .shopProduct__discover,
  .shopProduct__actions .shopProduct__add {
    width: 100%;
  }
}


/* ======================================================
   Madéa v1.25 — PULSANTI PRODOTTO SEMPRE SULLA STESSA RIGA
   ====================================================== */

.shopProduct__actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 10px;
}

.shopProduct__actions .shopProduct__discover,
.shopProduct__actions .shopProduct__add {
  flex: 1 1 0;
  width: auto !important;
  min-width: 0;
  margin: 0;
  text-align: center;
  justify-content: center;
}

@media (max-width: 560px) {
  .shopProduct__actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px;
  }

  .shopProduct__actions .btn {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 11px;
    white-space: nowrap;
  }
}


/* ======================================================
   Madéa v1.26 — AZIONI PRODOTTO
   desktop affiancati, mobile impilati
   ====================================================== */

@media (min-width: 561px) {
  .shopProduct__actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px;
  }

  .shopProduct__actions .shopProduct__discover,
  .shopProduct__actions .shopProduct__add {
    flex: 1 1 0;
    width: auto !important;
  }
}

@media (max-width: 560px) {
  .shopProduct__actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .shopProduct__actions .shopProduct__discover,
  .shopProduct__actions .shopProduct__add {
    width: 100% !important;
    font-size: inherit !important;
    padding-left: inherit !important;
    padding-right: inherit !important;
    white-space: normal !important;
  }
}
