body.farm-quickview-open {
  overflow: hidden;
}

.farm-quickview-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: none;
  background: rgba(18, 27, 15, 0.48);
}

.farm-quickview-overlay.is-open {
  display: block;
}

.farm-quickview-modal {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 9991;
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  display: none;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(20, 31, 20, 0.22);
  transform: translate(-50%, -50%);
  overflow: auto;
}

.farm-quickview-modal.is-open {
  display: block;
}

.farm-quickview-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #dfe8d9;
  border-radius: 50%;
  background: #ffffff;
  color: #253025;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.farm-quickview-modal__body {
  min-height: 420px;
}

.farm-quickview-modal__loading {
  min-height: 420px;
  display: grid;
  place-items: center;
  color: #b99a4b;
  font-weight: 900;
}

.farm-quickview {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1fr);
  gap: 34px;
  padding: 42px;
}

.farm-quickview__gallery,
.farm-quickview__info {
  min-width: 0;
}

.farm-quickview__main {
  min-height: 360px;
  display: grid;
  place-items: center;
  background: #ffffff;
}

.farm-quickview__main img {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.farm-quickview__thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.farm-quickview__thumb {
  width: 40px;
  height: 40px;
  padding: 4px;
  border: 1px solid #e1e8dc;
  background: #ffffff;
  cursor: pointer;
}

.farm-quickview__thumb.is-active,
.farm-quickview__thumb:hover,
.farm-quickview__thumb:focus {
  border-color: #b99a4b;
  outline: none;
}

.farm-quickview__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.farm-quickview__vendor {
  margin: 0 0 8px;
  color: #b99a4b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.farm-quickview h2 {
  margin: 0;
  color: #071009;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 900;
}

.farm-quickview__line {
  width: 48px;
  height: 1px;
  display: block;
  margin: 18px 0;
  background: #b99a4b;
}

.farm-quickview__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.farm-quickview__price strong {
  color: #201916;
  font-size: 28px;
  font-weight: 700;
}

.farm-quickview__price s {
  color: #9ba696;
}

.farm-quickview__status {
  margin-bottom: 14px;
  color: #50604d;
}

.farm-quickview__status b {
  color: #201916;
}

.farm-quickview__desc {
  color: #66705f;
  line-height: 1.8;
}

.farm-quickview__select {
  width: 100%;
  height: 44px;
  margin-top: 20px;
  padding: 0 12px;
  border: 1px solid #dfe8d9;
  color: #253025;
}

.farm-quickview__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
}

.farm-quickview__qty {
  display: inline-grid;
  grid-template-columns: 44px 54px 44px;
  height: 46px;
  border: 1px solid #dfe8d9;
}

.farm-quickview__qty button,
.farm-quickview__qty input {
  border: 0;
  background: #ffffff;
  text-align: center;
}

.farm-quickview__qty input {
  border-left: 1px solid #dfe8d9;
  border-right: 1px solid #dfe8d9;
  -moz-appearance: textfield;
  appearance: textfield;
}

.farm-quickview__qty input::-webkit-outer-spin-button,
.farm-quickview__qty input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.farm-quickview__add,
.farm-quickview__detail {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #201916;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.farm-quickview__add:disabled {
  background: #a8b4a3;
  cursor: not-allowed;
}

.farm-quickview__detail {
  margin-top: 18px;
  border: 1px solid #dfe8d9;
  background: #ffffff;
  color: #253025;
}

@media (max-width: 767px) {
  .farm-quickview {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 18px;
  }

  .farm-quickview__main {
    min-height: 260px;
  }

  .farm-quickview__main img {
    max-height: 260px;
  }

  .farm-quickview h2 {
    font-size: 23px;
  }

  .farm-quickview__actions,
  .farm-quickview__add {
    width: 100%;
  }
}

.farm-product-card {
  position: relative;
  min-width: 0;
  border: 1px solid #e1e8dc;
  background: #ffffff;
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.farm-product-card:hover,
.farm-product-card:focus-within {
  border-color: #c9dfbd;
  box-shadow: 0 16px 36px rgba(37, 48, 37, 0.08);
  transform: translateY(-3px);
}

.farm-product-card__media {
  position: relative;
  background: #f8fbf5;
  overflow: hidden;
}

.farm-product-card__image-link {
  position: relative;
  display: block;
  aspect-ratio: 1;
}

.farm-product-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  transition: opacity 0.28s ease, transform 0.36s ease;
}

.farm-product-card__image--secondary {
  opacity: 0;
  transform: scale(1.04);
}

.farm-product-card.has-secondary-image:hover .farm-product-card__image--primary,
.farm-product-card.has-secondary-image:focus-within .farm-product-card__image--primary {
  opacity: 0;
}

.farm-product-card.has-secondary-image:hover .farm-product-card__image--secondary,
.farm-product-card.has-secondary-image:focus-within .farm-product-card__image--secondary {
  opacity: 1;
  transform: scale(1);
}

.farm-product-card:hover .farm-product-card__image,
.farm-product-card:focus-within .farm-product-card__image {
  transform: scale(1.04);
}

.farm-product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #201916;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.farm-product-card__actions {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  gap: 8px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.farm-product-card:hover .farm-product-card__actions,
.farm-product-card:focus-within .farm-product-card__actions {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.farm-product-card__action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(185, 154, 75, 0.25);
  border-radius: 999px;
  background: #ffffff;
  color: #253025;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.farm-product-card__quick-view {
  background: rgba(255, 255, 255, 0.84);
}

.farm-product-card__action:hover,
.farm-product-card__action:focus {
  background: #201916;
  color: #ffffff;
  transform: translateY(-1px);
}

.farm-product-card__info {
  padding: 18px;
  text-align: center;
}

.farm-product-card__name {
  min-height: 44px;
  margin: 0;
  color: #253025;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 900;
}

.farm-product-card__name a:hover {
  color: #201916;
}

.farm-product-card__line {
  width: 34px;
  height: 1px;
  display: block;
  margin: 12px auto;
  background: #b99a4b;
}

.farm-product-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  color: #201916;
  font-size: 16px;
  font-weight: 900;
}

.farm-product-card__price s {
  color: #9ba696;
  font-weight: 500;
}

@media (hover: none) {
  .farm-product-card__actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

@media (max-width: 640px) {
  .farm-product-card__image {
    padding: 12px;
  }

  .farm-product-card__info {
    padding: 14px;
  }

  .farm-product-card__name {
    font-size: 15px;
  }

  .farm-product-card__action {
    min-height: 38px;
  }
}

/* Skincare product loop module */
.skincare-product-card {
  min-width: 0;
}

.skincare-product-card__media {
  position: relative;
  display: block;
  border-radius: 28px;
  background: linear-gradient(180deg, #f5efe5 0%, #f3ecdf 100%);
  overflow: hidden;
  aspect-ratio: 0.94;
  box-shadow: 0 18px 36px rgba(54, 48, 38, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.skincare-product-card:hover .skincare-product-card__media,
.skincare-product-card:focus-within .skincare-product-card__media {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px rgba(54, 48, 38, 0.12);
}

.skincare-product-card__image-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.skincare-product-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.34s ease, transform 0.42s ease;
}

.skincare-product-card__image--primary {
  opacity: 1;
  transform: scale(1);
}

.skincare-product-card__image--secondary {
  opacity: 0;
  transform: scale(1.04);
}

.skincare-product-card:hover .skincare-product-card__image--primary,
.skincare-product-card:focus-within .skincare-product-card__image--primary {
  opacity: 0;
  transform: scale(1.02);
}

.skincare-product-card:hover .skincare-product-card__image--secondary,
.skincare-product-card:focus-within .skincare-product-card__image--secondary {
  opacity: 1;
  transform: scale(1);
}

.skincare-product-card__badge,
.skincare-product-card__rating {
  position: absolute;
  top: 16px;
  z-index: 2;
  min-height: 30px;
  padding: 7px 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.skincare-product-card__badge {
  left: 16px;
  background: linear-gradient(180deg, #b99a4b 0%, #8c6a2f 100%);
  color: #ffffff;
}

.skincare-product-card__rating {
  right: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: #5d5e63;
  box-shadow: 0 10px 24px rgba(33, 31, 27, 0.08);
}

.skincare-product-card__rating svg {
  width: 14px;
  height: 14px;
  fill: #f1aa17;
}

.skincare-product-card__overlay {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  display: grid;
  gap: 10px;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.skincare-product-card:hover .skincare-product-card__overlay,
.skincare-product-card:focus-within .skincare-product-card__overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.skincare-product-card__action {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(32, 25, 22, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.skincare-product-card__action:hover {
  transform: translateY(-1px);
}

.skincare-product-card__action--primary {
  background: #ffffff;
  color: #201916;
}

.skincare-product-card__action--secondary {
  background: rgba(255, 255, 255, 0.72);
  color: #1f2026;
  backdrop-filter: blur(8px);
}

.skincare-product-card__meta {
  padding-top: 16px;
}

.skincare-product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.skincare-product-card__tag {
  min-height: 30px;
  padding: 5px 15px;
  border: 1px solid rgba(31, 32, 38, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #686a71;
  font-size: 14px;
  font-weight: 500;
}

.skincare-product-card__title {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.skincare-product-card__title a {
  transition: color 0.2s ease;
}

.skincare-product-card__title a:hover {
  color: #201916;
}

.skincare-product-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 18px;
  line-height: 1.3;
}

.skincare-product-card__price-prefix {
  color: #b99a4b;
  font-weight: 500;
}

.skincare-product-card__price strong {
  color: #b99a4b;
  font-size: 19px;
  font-weight: 700;
}

.skincare-product-card__price s {
  color: #6f7076;
  text-decoration-thickness: 1.5px;
}

.skincare-product-card__price--single strong {
  color: #1f2026;
}

@media (hover: none) {
  .skincare-product-card__overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .skincare-product-card__action--secondary {
    display: none;
  }
}

@media (max-width: 1200px) {
  .skincare-product-card__title {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .skincare-product-card__media {
    border-radius: 24px;
  }

  .skincare-product-card__badge,
  .skincare-product-card__rating {
    top: 14px;
    min-height: 28px;
    padding: 6px 12px;
    font-size: 14px;
  }

  .skincare-product-card__badge {
    left: 14px;
  }

  .skincare-product-card__rating {
    right: 14px;
  }

  .skincare-product-card__overlay {
    right: 12px;
    bottom: 12px;
    left: 12px;
    gap: 8px;
  }

  .skincare-product-card__action {
    min-height: 48px;
    font-size: 15px;
  }

  .skincare-product-card__title {
    font-size: 18px;
  }

  .skincare-product-card__price {
    font-size: 17px;
  }
}

body .farm-product-card {
  border: 1px solid #e5e5e5;
  background: #ffffff;
  text-align: center;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

body .farm-product-card:hover,
body .farm-product-card:focus-within {
  border-color: #e4dccb;
  box-shadow: 0 16px 36px rgba(32, 25, 22, 0.08);
  transform: translateY(-3px);
}

body .farm-product-card__media {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

body .farm-product-card__image-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 0.9;
  padding: 0;
  color: inherit;
  text-decoration: none;
}

body .farm-product-card__image {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  transition: opacity 260ms ease, transform 260ms ease;
}

body .farm-product-card__image--secondary {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: none;
}

body .farm-product-card.has-secondary-image:hover .farm-product-card__image--primary,
body .farm-product-card.has-secondary-image:focus-within .farm-product-card__image--primary {
  opacity: 0;
}

body .farm-product-card.has-secondary-image:hover .farm-product-card__image--secondary,
body .farm-product-card.has-secondary-image:focus-within .farm-product-card__image--secondary {
  opacity: 1;
  transform: none;
}

body .farm-product-card:hover .farm-product-card__image,
body .farm-product-card:focus-within .farm-product-card__image {
  transform: scale(1.035);
}

body .farm-product-card__badge {
  top: 8px;
  right: 6px;
  left: auto;
  min-width: 50px;
  min-height: 0;
  display: block;
  padding: 5px 8px 8px;
  border-radius: 0;
  background: #b99a4b;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

body .farm-product-card__badge::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -10px;
  border-top: 10px solid #8c6a2f;
  border-left: 10px solid transparent;
}

body .farm-product-card__actions {
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

body .farm-product-card:hover .farm-product-card__actions,
body .farm-product-card:focus-within .farm-product-card__actions {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

body .farm-product-card__action {
  min-width: 88px;
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid #b99a4b;
  border-radius: 0;
  background: #b99a4b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

body .farm-product-card__quick-view {
  background: #ffffff;
  color: #b99a4b;
}

body .farm-product-card__action:hover,
body .farm-product-card__action:focus,
body .farm-product-card__quick-view:hover,
body .farm-product-card__quick-view:focus {
  border-color: #8c6a2f;
  background: #8c6a2f;
  color: #ffffff;
  transform: none;
}

body .farm-product-card__info {
  padding: 8px 12px 16px;
  text-align: center;
}

body .farm-product-card__name {
  min-height: 42px;
  margin: 0;
  color: #394033;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

body .farm-product-card__name a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

body .farm-product-card__name a:hover {
  color: #b99a4b;
}

body .farm-product-card__line {
  width: 40px;
  height: 1px;
  margin: 10px auto 11px;
  background: #b99a4b;
}

body .farm-product-card__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  min-height: 22px;
  color: #b99a4b;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
}

body .farm-product-card__price s {
  color: #8e8e8e;
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
}

@media (hover: none) {
  body .farm-product-card__actions {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

@media (max-width: 575px) {
  body .farm-product-card__actions {
    display: none;
  }

  body .farm-product-card__action {
    min-width: 0;
    flex: 1;
    font-size: 10px;
  }
}

/* Interior product card refresh */
body .farm-product-card {
  border-color: #e2d7c8;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(32, 25, 22, 0.04);
}

body .farm-product-card:hover,
body .farm-product-card:focus-within {
  border-color: rgba(185, 154, 75, 0.58);
  box-shadow: 0 18px 42px rgba(32, 25, 22, 0.1);
}

body .farm-product-card__media {
  background: #fbf7f1;
}

body .farm-product-card__badge {
  background: #b99a4b;
}

body .farm-product-card__badge::after {
  border-top-color: #8c6a2f;
}

body .farm-product-card__action {
  min-height: 38px;
  border-color: #201916;
  background: #201916;
  color: #ffffff;
}

body .farm-product-card__quick-view {
  border-color: rgba(185, 154, 75, 0.36);
  background: rgba(255, 255, 255, 0.94);
  color: #201916;
}

body .farm-product-card__action:hover,
body .farm-product-card__action:focus,
body .farm-product-card__quick-view:hover,
body .farm-product-card__quick-view:focus {
  border-color: #3b2f28;
  background: #3b2f28;
  color: #ffffff;
}

body .farm-product-card__info {
  padding: 20px 18px 22px;
}

body .farm-product-card__name {
  color: #201916;
  font-family: var(--font);
}

body .farm-product-card__name a:hover,
body .farm-product-card__price {
  color: #b99a4b;
}

body .farm-product-card__line {
  background: #b99a4b;
}

/* Quickview variant swatches */
.farm-quickview__options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.farm-quickview__option-btn {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #e4dccb;
  border-radius: 2px;
  background: #ffffff;
  color: #243126;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.farm-quickview__option-btn:hover,
.farm-quickview__option-btn:focus,
.farm-quickview__option-btn.is-active {
  border-color: #201916;
  background: #201916;
  color: #ffffff;
  outline: none;
}

