:root {
  --planteful-forest: #244b38;
  --planteful-leaf: #718b57;
  --planteful-cream: #f8f4ea;
  --planteful-sand: #e8ddc9;
  --planteful-ink: #203129;
  --planteful-white: #fffef9;
}

.planteful-bundle-section,
.planteful-builder {
  color: var(--planteful-ink);
  font-family: inherit;
  clear: both;
}

.planteful-bundle-section {
  padding: clamp(44px, 7vw, 84px) 20px;
  background: linear-gradient(135deg, var(--planteful-cream), #eef2e6);
  margin: 36px 0;
}

.planteful-bundle-section__inner,
.planteful-builder {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.planteful-bundle-eyebrow {
  color: var(--planteful-leaf);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.planteful-bundle-section h2,
.planteful-builder h2 {
  color: var(--planteful-forest);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  margin: 0 0 14px;
}

.planteful-bundle-intro {
  max-width: 760px;
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0 0 32px;
}

.planteful-bundle-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.planteful-bundle-tile {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(220px, 1.3fr);
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(36, 75, 56, .1);
  border-radius: 24px;
  background: var(--planteful-white);
  box-shadow: 0 12px 35px rgba(36, 75, 56, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.planteful-bundle-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(36, 75, 56, .14);
}

.planteful-bundle-tile__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  padding: 22px 8px;
  background: var(--planteful-sand);
}

.planteful-bundle-tile--meal .planteful-bundle-tile__art { background: #dfe8d8; }

.planteful-bundle-tile__art img {
  width: 48%;
  max-width: 150px;
  height: auto;
  object-fit: contain;
  margin: 0 -14%;
  filter: drop-shadow(0 12px 12px rgba(34, 49, 41, .18));
}

.planteful-bundle-tile__art img:nth-child(2) { z-index: 2; transform: translateY(-8px); }
.planteful-bundle-leaf { font-size: 5rem; }

.planteful-bundle-tile__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(26px, 4vw, 44px);
}

.planteful-bundle-saving {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e5eddc;
  color: var(--planteful-forest);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.planteful-bundle-tile h3 {
  color: var(--planteful-forest);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.15;
  margin: 16px 0 10px;
}

.planteful-bundle-tile p { line-height: 1.55; margin: 0 0 12px; }
.planteful-bundle-tile__offer { font-weight: 700; }

.planteful-bundle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  background: var(--planteful-forest);
  color: #fff !important;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.planteful-bundle-button:hover { background: #173b2a; transform: translateY(-1px); }
.planteful-bundle-button:disabled { background: #96a29b; cursor: not-allowed; transform: none; }

.planteful-builder { padding: clamp(32px, 6vw, 70px) 20px; }
.planteful-builder__header { max-width: 780px; margin-bottom: 34px; }
.planteful-builder__header > p:not(.planteful-bundle-eyebrow) { font-size: 1.08rem; line-height: 1.65; }
.planteful-builder__instruction { color: var(--planteful-forest); font-weight: 800; }

.planteful-builder__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 350px);
  gap: clamp(24px, 4vw, 50px);
  align-items: start;
}

.planteful-builder__products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.planteful-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 18px;
  background: var(--planteful-white);
  box-shadow: 0 7px 24px rgba(36, 75, 56, .09);
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.planteful-product-card:hover { transform: translateY(-3px); box-shadow: 0 11px 30px rgba(36, 75, 56, .14); }
.planteful-product-card.is-selected { border-color: var(--planteful-leaf); }
.planteful-product-card input { position: absolute; opacity: 0; pointer-events: none; }

.planteful-product-card__check {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid #d5ddd6;
  border-radius: 50%;
  background: #fff;
  color: transparent;
  font-weight: 800;
}

.planteful-product-card.is-selected .planteful-product-card__check { border-color: var(--planteful-forest); background: var(--planteful-forest); color: #fff; }
.planteful-product-card__image { display: block; aspect-ratio: 1 / 1; padding: 16px; background: var(--planteful-cream); }
.planteful-product-card__image img { width: 100%; height: 100%; object-fit: contain; }
.planteful-product-card__name { padding: 16px 16px 6px; color: var(--planteful-ink); font-weight: 750; line-height: 1.35; }
.planteful-product-card__price { padding: 0 16px 18px; color: var(--planteful-forest); font-weight: 700; }

.planteful-product-card__variation {
  width: calc(100% - 32px);
  min-height: 42px;
  margin: 0 16px 18px;
  padding: 8px 30px 8px 10px;
  border: 1px solid rgba(35, 76, 57, .2);
  border-radius: 9px;
  background-color: #fff;
  color: var(--planteful-ink);
  font: inherit;
}

.planteful-product-card__variation:focus {
  border-color: var(--planteful-leaf);
  outline: 2px solid rgba(111, 141, 88, .22);
  outline-offset: 1px;
}

.planteful-builder__summary {
  position: sticky;
  top: 24px;
  padding: 28px;
  border-radius: 22px;
  background: var(--planteful-cream);
  box-shadow: 0 10px 32px rgba(36, 75, 56, .09);
}

.planteful-builder__summary h2 { color: var(--planteful-forest); margin: 0 0 8px; }
.planteful-builder__count { margin: 0 0 8px; }
.planteful-builder__message { min-height: 24px; color: #6c735f; font-size: .93rem; }
.planteful-builder__message.is-ready { color: #277142; font-weight: 700; }
.planteful-builder__message.is-error { color: #9c3030; font-weight: 700; }

.planteful-builder__totals { margin: 22px 0 14px; }
.planteful-builder__totals > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; }
.planteful-builder__totals dt,
.planteful-builder__totals dd { margin: 0; }
.planteful-builder__discount { color: #47723f; }
.planteful-builder__final { margin-top: 7px; border-top: 1px solid var(--planteful-sand); color: var(--planteful-forest); font-size: 1.15rem; font-weight: 800; }
.planteful-builder__add { width: 100%; }

@media (max-width: 980px) {
  .planteful-bundle-tile { grid-template-columns: 1fr; }
  .planteful-bundle-tile__art { min-height: 210px; }
  .planteful-builder__products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .planteful-bundle-section { margin: 24px 0; padding-inline: 16px; }
  .planteful-bundle-tiles,
  .planteful-builder__layout { grid-template-columns: 1fr; }
  .planteful-bundle-tile { min-height: 0; }
  .planteful-bundle-tile__body { padding: 28px 24px 32px; }
  .planteful-builder { padding-inline: 16px; }
  .planteful-builder__summary { position: static; order: -1; }
}

@media (max-width: 480px) {
  .planteful-builder__products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .planteful-product-card__name { padding: 12px 12px 5px; font-size: .9rem; }
  .planteful-product-card__price { padding: 0 12px 14px; font-size: .9rem; }
  .planteful-product-card__image { padding: 10px; }
  .planteful-bundle-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .planteful-bundle-tile,
  .planteful-product-card,
  .planteful-bundle-button { transition: none; }
}

/* Approved compact homepage bundle presentation. */
:is(.home, .woocommerce-shop) .planteful-bundle-section {
  padding: 22px 20px;
  margin: 18px 0 24px;
  border-radius: 40px;
  overflow: hidden;
}

:is(.home, .woocommerce-shop) .planteful-bundle-section .planteful-bundle-eyebrow { display: none; }
:is(.home, .woocommerce-shop) .planteful-bundle-section h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); margin: 0 0 8px; }
:is(.home, .woocommerce-shop) .planteful-bundle-intro { font-size: 1rem; line-height: 1.5; margin: 0 0 20px; }
:is(.home, .woocommerce-shop) .planteful-bundle-tiles { gap: 18px; }
:is(.home, .woocommerce-shop) .planteful-bundle-tile { min-height: 290px; border-radius: 34px; }
:is(.home, .woocommerce-shop) .planteful-bundle-tile__art { min-height: 210px; padding: 12px 8px; }
:is(.home, .woocommerce-shop) .planteful-bundle-tile__body { padding: 22px; }
:is(.home, .woocommerce-shop) .planteful-bundle-saving { padding: 6px 10px; }
:is(.home, .woocommerce-shop) .planteful-bundle-tile h3 { font-size: clamp(1.35rem, 1.8vw, 1.75rem); margin: 10px 0 8px; }
:is(.home, .woocommerce-shop) .planteful-bundle-tile p { font-size: .95rem; line-height: 1.45; margin: 0 0 8px; }
:is(.home, .woocommerce-shop) .planteful-bundle-button { min-height: 44px; padding: 11px 18px; margin-top: 8px; font-size: .94rem; }

@media (max-width: 760px) {
  :is(.home, .woocommerce-shop) .planteful-bundle-section { padding: 18px 14px; margin: 14px 0 18px; border-radius: 28px; }
  :is(.home, .woocommerce-shop) .planteful-bundle-section h2 { font-size: 1.75rem; }
  :is(.home, .woocommerce-shop) .planteful-bundle-intro { margin-bottom: 14px; font-size: .95rem; }
  :is(.home, .woocommerce-shop) .planteful-bundle-tiles { gap: 14px; }
  :is(.home, .woocommerce-shop) .planteful-bundle-tile { min-height: 0; border-radius: 28px; }
  :is(.home, .woocommerce-shop) .planteful-bundle-tile__art { min-height: 150px; padding: 12px 6px; }
  :is(.home, .woocommerce-shop) .planteful-bundle-tile__body { padding: 18px; }
}
