/* ==========================================================================
   Guimaras Wonder's Farm — components: nav, footer, product plate, cards
   ========================================================================== */

/* ---- Nav ------------------------------------------------------------------
   Wordmark set in Bernadette, per the Figma file's logo treatment. */

.gwf-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--gwf-bone);
  padding: 14px var(--gwf-gutter);
  border-bottom: 1px solid var(--gwf-hairline);
}
.gwf-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.gwf-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.gwf-brand__name {
  font-family: var(--gwf-script);
  font-weight: 400;
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  color: var(--gwf-green);
}

.gwf-menu { display: flex; align-items: center; gap: 8px; }
.gwf-menu__list {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.gwf-menu__list a {
  display: inline-flex; align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--gwf-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
  border-radius: var(--gwf-radius-pill);
}
.gwf-menu__list a:hover { background: var(--gwf-sand); }
.gwf-menu__list .current-menu-item > a { background: var(--gwf-sand); color: var(--gwf-green); }

/* "View My Cart" (Figma node 4:16, nav-cta): plain green text plus a
   separate small circular icon-button -- NOT one big pill. */
.gwf-cart {
  display: inline-flex; align-items: center; gap: 16px;
  margin-left: 8px;
}
.gwf-cart__label {
  color: var(--gwf-green);
  text-decoration: none;
  font-weight: 700; font-size: 0.875rem;
  white-space: nowrap;
}
.gwf-cart__label:hover { text-decoration: underline; }
.gwf-cart__icon {
  position: relative;
  display: grid; place-items: center;
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gwf-green);
}
.gwf-cart__icon:hover { background: #0d2a1c; }
.gwf-cart__count {
  position: absolute; top: -4px; right: -4px;
  background: var(--gwf-gold);
  color: var(--gwf-ink);
  font-size: 0.6875rem; font-weight: 700;
  border-radius: var(--gwf-radius-pill);
  padding: 1px 5px; min-width: 16px; text-align: center;
  line-height: 1.4;
  border: 2px solid var(--gwf-bone);
}

.gwf-burger { display: none; }

@media (max-width: 820px) {
  .gwf-nav { padding-left: var(--gwf-gutter-sm); padding-right: var(--gwf-gutter-sm); }

  .gwf-burger {
    display: grid; place-content: center; gap: 5px;
    width: 44px; height: 44px;
    background: transparent;
    border: 1px solid var(--gwf-hairline);
    border-radius: var(--gwf-radius);
    cursor: pointer;
  }
  .gwf-burger span {
    display: block; width: 20px; height: 2px;
    background: var(--gwf-ink);
    transition: transform var(--gwf-dur) var(--gwf-ease),
                opacity var(--gwf-dur) var(--gwf-ease);
  }
  [aria-expanded="true"].gwf-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  [aria-expanded="true"].gwf-burger span:nth-child(2) { opacity: 0; }
  [aria-expanded="true"].gwf-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .gwf-menu {
    position: fixed;
    inset: 70px 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px var(--gwf-gutter-sm) 40px;
    background: var(--gwf-bone);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--gwf-dur) var(--gwf-ease);
    visibility: hidden;
  }
  .gwf-menu-open .gwf-menu { transform: translateX(0); visibility: visible; }
  .gwf-menu-open { overflow: hidden; }

  .gwf-menu__list { flex-direction: column; align-items: stretch; gap: 0; }
  .gwf-menu__list a {
    min-height: 56px;
    padding: 0 8px;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--gwf-hairline);
    border-radius: 0;
  }
  .gwf-cart { margin: 24px 0 0; justify-content: center; }
}

/* ---- Product plate --------------------------------------------------------
   16:9 landscape, per the Figma product-card design. Rounded top corners
   only — the card body below shares the same radius on its bottom corners,
   so together they read as one rounded card. */

.gwf-plate {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gwf-sand);
  border-radius: var(--gwf-radius-card) var(--gwf-radius-card) 0 0;
}
.gwf-plate__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--gwf-dur) var(--gwf-ease);
}
.gwf-card:hover .gwf-plate__img { transform: scale(1.03); }
/* Every plate is cover. Figma's Mango Jam card (node 6:12) is the file's one
   scaleMode=STRETCH image fill, but Figma's own render of that card shows
   perfectly round, unsquashed jars -- the image behind that fill is already
   16:9, so STRETCH is a no-op there, not a design intent to warp a photograph.
   Applying it literally to our 4:5 thumbnail warped the jars 2.22x wide. */

.gwf-plate--typeset {
  background: var(--gwf-green);
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}
.gwf-plate--typeset span {
  font-family: var(--gwf-display);
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  line-height: 1.1;
  color: var(--gwf-white);
}

/* ---- PDP: hero tagline, description, feature-badge row --------------------*/

.gwf-pdp__tagline {
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--gwf-sage);
  margin: 0 0 12px;
}

.gwf-pdp__desc {
  font-size: var(--gwf-body-sz);
  line-height: 1.6;
  color: var(--gwf-ink);
  opacity: 0.85;
}

.gwf-pdp__badges {
  list-style: none;
  margin: 16px 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.gwf-pdp__badges li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--gwf-hairline);
  border-radius: var(--gwf-radius-pill);
  font-size: var(--gwf-small);
  color: var(--gwf-ink);
  background: var(--gwf-white);
}
.gwf-pdp__badges svg {
  width: 14px;
  height: 14px;
  fill: var(--gwf-gold);
  flex-shrink: 0;
}

/* ---- PDP: variant comparison ("Choose Your Style") -------------------------*/

/* Figma's comparison-columns (13:93) is a 1200px row of two 584px cards with a
   32px gap; each card is padded 40px and holds a 504x300 photo area with 24px
   under it. Held to 900px this section had 438px cards, which is what forced
   the photo box down to 438x329. */
.gwf-pdp__variants {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 40px;
  max-width: 1200px;
  margin-inline: auto;
}
.gwf-pdp__variant-card {
  background: var(--gwf-white);
  border-radius: var(--gwf-radius-card);
  overflow: hidden;
  box-shadow: var(--gwf-shadow);
  padding: 40px;
}
/* CONTAIN, not cover. Figma's two photo rectangles (round-comparison-img 13:95
   and sexy-comparison-img 13:102) both carry scaleMode FIT, and Figma's own
   render of the section shows each jar whole and centred with card-white either
   side of it -- nothing is cropped. Painted as `cover` instead, the variation
   photography (mango-jam.jpg is 900x1125, jam-jar.jpg is 720x960, both
   portrait) was being forced into a 4:3 landscape box and lost about 40% of its
   height, shearing the lid and the base off the jars. There is no landscape
   rendition of either file on disk to switch to -- every registered size of
   both is ratio-preserving portrait -- so the box has to stop cropping rather
   than the source change. */
.gwf-pdp__variant-card img {
  width: 100%;
  aspect-ratio: 504 / 300;
  object-fit: contain;
  background: var(--gwf-white);
}
.gwf-pdp__variant-card-body {
  padding: 24px 0 0;   /* Figma's 24px gap under the photo (13:94) */
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.gwf-pdp__variant-card-body h3 {
  font-size: 1.125rem;
  margin: 0;
}
.gwf-pdp__variant-weight {
  font-size: var(--gwf-small);
  color: var(--gwf-sage);
  font-weight: 700;
  white-space: nowrap;
}

/* ---- PDP: spec-panel card (sits beside the About text, per the actual
   Figma layout, not in the hero summary) -------------------------------------*/

.gwf-pdp__spec-card {
  margin: 24px 0 0;
  padding: 20px;
  background: var(--gwf-sand);
  border-radius: var(--gwf-radius-card);
  display: grid;
  gap: 12px;
}
.gwf-pdp__spec-card > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gwf-hairline);
  font-size: var(--gwf-small);
}
.gwf-pdp__spec-card > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.gwf-pdp__spec-card dt {
  color: var(--gwf-sage);
  font-weight: 700;
}
.gwf-pdp__spec-card dd {
  margin: 0;
  text-align: right;
  color: var(--gwf-ink);
}

/* ---- PDP: Nutrition Facts panel ---------------------------------------------
   Same card treatment as the spec panel, centered, narrower -- this is the
   one place gwf_tbc() appears repeatedly, so the card needs to read cleanly
   even mostly-empty. */

.gwf-pdp__nutrition {
  max-width: 480px;
  margin: 24px auto 0;
  padding: 24px;
  background: var(--gwf-sand);
  border-radius: var(--gwf-radius-card);
  display: grid;
  gap: 10px;
}
.gwf-pdp__nutrition > div {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gwf-hairline);
  font-size: var(--gwf-small);
}
.gwf-pdp__nutrition > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.gwf-pdp__nutrition dt {
  color: var(--gwf-ink);
}
.gwf-pdp__nutrition dd {
  margin: 0;
  font-weight: 700;
}

/* ---- PDP: serving-ideas grid -------------------------------------------------
   2-up for fresh produce, 4-up for processed goods -- same card shape,
   different column count via a modifier class. */

.gwf-pdp__serving-grid {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}
.gwf-pdp__serving-grid--2up { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.gwf-pdp__serving-grid--4up { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.gwf-pdp__serving-card {
  background: var(--gwf-sand);
  border-radius: var(--gwf-radius-card);
  padding: 20px;
}
.gwf-pdp__serving-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 6px;
}

/* ---- PDP: responsive ---------------------------------------------------------*/

@media (max-width: 700px) {
  .gwf-pdp__variants,
  .gwf-pdp__serving-grid--2up,
  .gwf-pdp__serving-grid--4up {
    grid-template-columns: 1fr;
  }
  /* Figma's 40px card inset is a desktop figure -- on a 320px phone it would
     eat a quarter of the card's width before the photo starts. */
  .gwf-pdp__variant-card { padding: 20px; }
  .gwf-pdp__spec-card > div,
  .gwf-pdp__nutrition > div {
    flex-direction: column;
    gap: 2px;
  }
  .gwf-pdp__spec-card dd,
  .gwf-pdp__nutrition dd {
    text-align: left;
  }
}

/* ---- Product card ---------------------------------------------------------*/

.gwf-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 32px;
  list-style: none; margin: 0; padding: 0;
}

.gwf-card {
  display: flex;
  flex-direction: column;
  background: var(--gwf-white);
  border-radius: var(--gwf-radius-card);
  overflow: hidden;
  box-shadow: var(--gwf-shadow);
}

.gwf-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gwf-card__head { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.gwf-card__name {
  font-family: var(--gwf-display);
  font-size: 1.375rem;   /* 22px — Figma product-card title */
  line-height: 1.15;
  margin: 0;
  color: var(--gwf-green);
}
.gwf-card__name a { text-decoration: none; color: inherit; }
.gwf-card__name a:hover { color: var(--gwf-sage); }

.gwf-card__tagline {
  font-size: 0.9375rem;
  font-style: italic;
  line-height: 1.35;
  color: var(--gwf-sage);
  margin: 0;
}

.gwf-card__meta {
  font-size: var(--gwf-micro);
  text-transform: uppercase;
  color: var(--gwf-sage);
  font-weight: 700;
  display: flex; flex-wrap: wrap; gap: 4px 10px;
}
.gwf-card__meta .is-export { color: var(--gwf-green); }

.gwf-card__desc { font-size: var(--gwf-small); line-height: 1.55; margin: 0; color: var(--gwf-ink); opacity: 0.85; }
.gwf-card__price { font-family: var(--gwf-body); font-weight: 700; font-size: 1.25rem; color: var(--gwf-green); margin-top: auto; padding-top: 6px; }

.gwf-card__cta {
  display: block; width: calc(100% - 40px);
  margin: 0 20px 20px;
  border: none;
  border-radius: var(--gwf-radius-pill);
  background: var(--gwf-green);
  color: var(--gwf-white);
  font-family: var(--gwf-body);
  font-weight: 700; font-size: 0.9375rem;
  padding: 14px 12px;
  text-align: center; text-decoration: none;
  cursor: pointer;
}
.gwf-card__cta:hover { background: #0d2a1c; color: var(--gwf-white); }
.gwf-card__cta[aria-disabled="true"],
.gwf-card__cta:disabled { background: var(--gwf-hairline); color: var(--gwf-ink); opacity: 0.6; cursor: not-allowed; }

/* ---- WooCommerce notices ---------------------------------------------------*/

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  list-style: none;
  margin: 0 0 28px;
  padding: 16px 20px;
  border-radius: var(--gwf-radius-card);
  border-left: 3px solid var(--gwf-green);
  background: var(--gwf-sand);
  color: var(--gwf-ink);
  font-size: var(--gwf-small);
  line-height: 1.55;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}
.woocommerce-error { border-left-color: var(--gwf-error); }
.woocommerce-info { border-left-color: var(--gwf-gold); }
.woocommerce-message li, .woocommerce-error li, .woocommerce-info li { list-style: none; }
.woocommerce-message .button, .woocommerce-info .button {
  order: 2;
  font-family: var(--gwf-body);
  font-weight: 700;
  font-size: var(--gwf-small);
  color: var(--gwf-green);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none; border: none; padding: 0;
  min-height: 44px;
  display: inline-flex; align-items: center;
}

/* ---- Certification record --------------------------------------------------
   Four dated entries, laid out as four cards (same auto-fit pattern as
   .gwf-steps / .gwf-standards) rather than a stacked hairline list -- with
   exactly four of them a row reads as a list of one, not a "record." */

.gwf-record {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.gwf-record li {
  background: var(--gwf-white);
  border-radius: var(--gwf-radius-card);
  padding: 24px;
  box-shadow: var(--gwf-shadow);
}
.gwf-record__year { display: block; font-family: var(--gwf-display); font-size: 1.75rem; color: var(--gwf-green); }
.gwf-record__name {
  display: block;
  margin-top: 4px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  color: var(--gwf-sage);
}
.gwf-record__body { font-size: var(--gwf-small); color: var(--gwf-ink); opacity: 0.8; margin: 12px 0 0; }

/* ---- To-be-confirmed marker -------------------------------------------------*/

.gwf-tbc {
  display: inline-block;
  background: var(--gwf-warn-bg);
  color: var(--gwf-warn);
  border: 1px solid var(--gwf-gold);
  border-radius: var(--gwf-radius);
  padding: 1px 8px;
  font-size: 0.8125rem;
  font-weight: 700;
}

/* ---- Footer ---------------------------------------------------------------*/

.gwf-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.gwf-footer__name {
  font-family: var(--gwf-script);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--gwf-white);
  margin-bottom: 10px;
  display: block;
}
.gwf-footer .gwf-eyebrow { color: var(--gwf-gold); margin-bottom: 14px; }
.gwf-footer__list { list-style: none; margin: 0; padding: 0; }
.gwf-footer__list li { font-size: var(--gwf-small); line-height: 1.9; color: rgba(247, 243, 232, 0.85); }
.gwf-footer__list a { color: rgba(247, 243, 232, 0.85); text-decoration: none; }
.gwf-footer__list a:hover { color: var(--gwf-white); text-decoration: underline; }

.gwf-newsletter { display: flex; margin-top: 14px; }
.gwf-newsletter__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(247, 243, 232, 0.35);
  border-radius: var(--gwf-radius-pill) 0 0 var(--gwf-radius-pill);
  background: rgba(247, 243, 232, 0.08);
  color: var(--gwf-white);
  font-family: var(--gwf-body);
  font-size: var(--gwf-small);
}
.gwf-newsletter__input::placeholder { color: rgba(247, 243, 232, 0.55); }
.gwf-newsletter__submit {
  width: 44px; height: 44px;
  border: none;
  border-radius: 0 var(--gwf-radius-pill) var(--gwf-radius-pill) 0;
  background: var(--gwf-gold);
  color: var(--gwf-ink);
  font-size: 1.125rem;
  cursor: pointer;
}
.gwf-newsletter__submit:hover { background: #d99a1c; }

.gwf-footer__legal {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--gwf-hairline-dark);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 0.75rem; color: rgba(247, 243, 232, 0.62);
}

.gwf-footer__agency {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--gwf-hairline-dark);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 0.75rem; color: rgba(247, 243, 232, 0.62);
}
.gwf-footer__agency p { margin: 0; max-width: none; }
.gwf-footer__agency a { color: rgba(247, 243, 232, 0.85); text-decoration: none; }
.gwf-footer__agency a:hover { color: var(--gwf-white); text-decoration: underline; }
.gwf-footer__agency-sep { margin: 0 6px; opacity: 0.5; }
.gwf-footer__social { display: flex; gap: 10px; }
.gwf-footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(247, 243, 232, 0.3);
  color: rgba(247, 243, 232, 0.85);
  text-decoration: none;
}
.gwf-footer__social a:hover { color: var(--gwf-white); border-color: rgba(247, 243, 232, 0.6); }

@media (max-width: 820px) {
  .gwf-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}
