/* =========================================================================
   Bloom shop — archive chrome, toolbar, cart / checkout / account, notices.
   Single-product internals live in product.css; the loop card in product-card.css.
   ========================================================================= */

.bloom-shop {
  max-width: var(--bloom-content-max);
  margin: 0 auto;
  padding: 2.4rem 20px 3.5rem;
}

/* ---- Page heading + breadcrumb ---------------------------------------- */
.woocommerce-breadcrumb {
  font-family: var(--bloom-font-hand);
  color: var(--bloom-green-d);
  font-size: .95rem;
  margin: 0 0 1rem;
}
.woocommerce-breadcrumb a { color: var(--bloom-forest); text-decoration: none; }
.woocommerce-breadcrumb a:hover { text-decoration: underline; }

.woocommerce-products-header__title,
.bloom-shop h1.entry-title,
.woocommerce-products-header .page-title {
  font-family: var(--bloom-font-marker);
  color: var(--bloom-forest);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0 0 .4rem;
}
.term-description { font-family: var(--bloom-font-hand); color: var(--bloom-green-d); margin-bottom: 1.4rem; }

.bloom-shop__intro {
  font-family: var(--bloom-font-body);
  color: var(--bloom-forest);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 62ch;
  margin: 0 0 1.6rem;
}
.bloom-shop__intro strong { color: var(--bloom-green-d); }

/* ---- Filter chips: Key Stage × Level --------------------------------- */
.bloom-shop__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  padding: 0 0 1.8rem;
  margin: 0 0 .4rem;
  border-bottom: 2px dashed var(--bloom-mist);
}
.bloom-shop__filtergroup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.bloom-shop__filterlabel {
  font-family: var(--bloom-font-marker);
  color: var(--bloom-forest);
  font-size: .95rem;
  margin-right: 4px;
}
.bloom-chip {
  font-family: var(--bloom-font-hand);
  font-size: 1rem;
  line-height: 1;
  color: var(--bloom-forest);
  background: var(--bloom-cream);
  border: 2px solid var(--bloom-forest);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, color .12s ease, box-shadow .12s ease;
}
.bloom-chip:hover { transform: translateY(-1px); box-shadow: 2px 2px 0 rgba(0, 73, 44, .18); }
.bloom-chip.is-active {
  background: var(--bloom-green);
  color: #fff;
  box-shadow: 2px 2px 0 rgba(0, 73, 44, .22);
}

/* ---- Grouped sections ------------------------------------------------- */
.bloom-shop__group { margin: 0 0 2.6rem; }
.bloom-shop__grouptitle {
  position: relative;
  font-family: var(--bloom-font-marker);
  color: var(--bloom-forest);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 1.6rem 0 1.4rem;
  padding-bottom: 10px;
}
.bloom-shop__grouptitle::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: clamp(64px, 9vw, 110px);
  height: 4px;
  border-radius: 4px;
  background: var(--bloom-green);
  opacity: .6;
}
.bloom-shop__empty {
  font-family: var(--bloom-font-hand);
  color: var(--bloom-green-d);
  font-size: 1.15rem;
  text-align: center;
  padding: 2rem 0 3rem;
}

/* Filtered-out cards / sections: beat the high-specificity card display:flex. */
.bloom-shop__group[hidden],
.woocommerce ul.products li.product[hidden],
ul.products li.product[hidden] { display: none !important; }

/* ---- Toolbar: result count + ordering on one line --------------------- */
.bloom-shop__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 0 1.4rem;
}
.woocommerce-result-count {
  margin: 0;
  font-family: var(--bloom-font-hand);
  color: var(--bloom-green-d);
}
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select.orderby {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--bloom-font-body);
  color: var(--bloom-forest);
  background-color: var(--bloom-cream);
  border: 2px solid var(--bloom-forest);
  border-radius: 999px;
  padding: 8px 38px 8px 16px;
  cursor: pointer;
  /* custom hand-green caret */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='%2300492c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

/* ---- Pagination ------------------------------------------------------- */
.woocommerce nav.woocommerce-pagination ul { border: 0; gap: 8px; display: flex; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  font-family: var(--bloom-font-marker);
  color: var(--bloom-forest);
  background: var(--bloom-cream);
  border: 2px solid var(--bloom-forest);
  border-radius: 10px;
  padding: 6px 12px;
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--bloom-green); color: #fff; }

/* ---- Shared buttons (cart / checkout / account, not the loop card) ----- */
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button,
.woocommerce #respond input#submit,
.woocommerce .woocommerce-message a.button {
  font-family: var(--bloom-font-marker);
  color: #fff;
  background: var(--bloom-green);
  border: 2.5px solid var(--bloom-forest);
  border-radius: 999px;
  padding: 11px 26px;
  box-shadow: 3px 3px 0 rgba(0, 73, 44, .25);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover,
.woocommerce #respond input#submit:hover {
  background: var(--bloom-green-d);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(0, 73, 44, .3);
}
.woocommerce .button.alt,
.woocommerce button.button.alt,
.woocommerce #place_order { background: var(--bloom-forest); }
.woocommerce .button.alt:hover,
.woocommerce #place_order:hover { background: #00331f; }

/* ---- Empty-cart block: brand the headings + "New in store" subhead ---- */
.wc-block-cart__empty-cart__title,
.wp-block-woocommerce-empty-cart-block h2 {
  font-family: var(--bloom-font-marker);
  color: var(--bloom-forest);
}
.wc-block-cart__empty-cart__title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.wp-block-woocommerce-empty-cart-block h2:not(.wc-block-cart__empty-cart__title) {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-top: 2.4rem;
}
.wp-block-woocommerce-empty-cart-block .wp-block-separator.is-style-dots { color: var(--bloom-green); }

/* ---- Notices ---------------------------------------------------------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  font-family: var(--bloom-font-body);
  border-top: none;
  border-radius: 14px;
  border: 2px solid var(--bloom-forest);
  background: var(--bloom-cream);
  color: var(--bloom-forest);
  box-shadow: var(--bloom-shadow);
}
.woocommerce-message::before,
.woocommerce-info::before { color: var(--bloom-green-d); }
.woocommerce-error { background: #f6e2dd; border-color: #a4452f; }
.woocommerce-error::before { color: #a4452f; }

/* ---- Cart / checkout / account tables + panels ------------------------ */
.woocommerce table.shop_table {
  border-radius: var(--bloom-radius);
  border: 2px solid var(--bloom-forest);
  overflow: hidden;
}
.woocommerce table.shop_table th { font-family: var(--bloom-font-marker); color: var(--bloom-forest); }
.woocommerce .cart_totals h2,
.woocommerce-checkout h3,
.woocommerce-account h2,
.woocommerce-account h3 { font-family: var(--bloom-font-marker); color: var(--bloom-forest); }

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce-checkout #customer_details input,
.woocommerce-checkout #customer_details select,
.select2-container--default .select2-selection--single {
  border: 2px solid var(--bloom-mist);
  border-radius: 10px;
  padding: 10px 12px;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus { border-color: var(--bloom-green); outline: none; }

/* Coupon / "have a coupon?" banner (used by the refer-a-friend bonus) */
.woocommerce-form-coupon-toggle .woocommerce-info { background: var(--bloom-paper); }
.checkout_coupon .button, .coupon .button { background: var(--bloom-green); }

/* My-account downloads table — the heart of a digital store */
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li {
  border: 2px solid var(--bloom-forest);
  border-radius: 10px;
  margin-bottom: 8px;
  background: var(--bloom-cream);
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active { background: var(--bloom-green); }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 9px 14px; font-family: var(--bloom-font-marker); color: var(--bloom-forest); text-decoration: none; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { color: #fff; }
