/* Joy Biotic — WooCommerce & WordPress additions on top of the design system (style.css).
   Only uses the design's tokens; nothing here changes the original components. */

/* ---------- small additions to design components ---------- */
[hidden] { display: none !important; } /* e.g. .cart__empty sets display:grid, which beat the hidden attribute */
.stars__i--off { opacity: .25; }
.jb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.is-busy { opacity: .7; cursor: progress; }
.is-disabled, .btn[disabled], button[disabled].btn { opacity: .55; cursor: not-allowed; }
.bundle__input:disabled + .bundle__box { opacity: .5; cursor: not-allowed; }
.plan__input:disabled + .plan__box { opacity: .5; cursor: not-allowed; }
.buy__msg { min-height: 0; font-weight: 600; font-size: .9375rem; color: var(--lime-text); }
.buy__msg:empty { display: none; }
.buy__msg.is-error { color: var(--danger); }
.cart__msg.is-error { color: var(--danger); }
.hdr__account { display: inline-grid; }
@media (max-width: 640px) { .hdr__account { display: none; } }
.jb-sub-flag { color: var(--lime-text); font-weight: 600; font-size: .875em; }
.card__add.is-disabled { pointer-events: none; }
.wp-block-image img, .prose img { border-radius: var(--radius-sm); }

/* ---------- review form (inside the reviews section) ---------- */
.rv { max-width: 760px; margin: 2.5rem auto 0; border-top: 1px solid var(--line); }
.rv__body { color: var(--forest-ink); }
.rv__form { margin-top: .5rem; }
.rv__form .form-submit { margin: .5rem 0 0; }
.rv__form .comment-form-cookies-consent { grid-column: 1 / -1; display: flex; gap: .5rem; align-items: start; font-size: .875rem; color: var(--muted); }
.rv__rating { border: 0; padding: 0; margin: 0; }
.rv__stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .15rem; }
.rv__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv__stars label { cursor: pointer; color: var(--line-strong); line-height: 0; padding: .1rem; border-radius: 6px; }
.rv__stars label .stars__i { width: 28px; height: 28px; color: inherit; }
.rv__stars input:checked ~ label, .rv__stars label:hover, .rv__stars label:hover ~ label { color: #E7A936; }
.rv__stars input:focus-visible + label { outline: 3px solid var(--lime-text); outline-offset: 2px; }
.comment-reply-title:empty, #reply-title:empty { display: none; }

/* ---------- plain pages (policies, account, cart, checkout) ---------- */
.page-hero--plain { padding-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.page-hero--wc .page-title { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); }
.prose-page, .wc-page { padding-bottom: var(--sec); }
.prose { max-width: 820px; display: grid; gap: 1rem; color: var(--forest-ink); }
.prose h2 { font: 450 clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem)/1.15 var(--font-display); color: var(--forest); margin-top: 1.5rem; }
.prose h3, .prose h4 { font: 700 1.125rem/1.3 var(--font-body); color: var(--forest); margin-top: 1rem; }
.prose ul, .prose ol { padding-left: 1.25rem; display: grid; gap: .35rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { color: var(--forest); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; display: block; overflow-x: auto; }
.prose td, .prose th { padding: .8rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--muted); }
.prose td p { margin: 0; }
.prose tr:last-child td { border-bottom: 0; }

/* ---------- WooCommerce: notices ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error,
.wc-block-components-notice-banner {
  border-radius: var(--radius-sm) !important; border: 1px solid var(--line) !important; background: #fff !important;
  color: var(--forest-ink) !important; font-family: var(--font-body) !important; box-shadow: var(--shadow-1);
}
.woocommerce-message, .woocommerce-info, .woocommerce-error { padding: 1rem 1.25rem 1rem 3.25rem !important; margin: 0 0 1.5rem !important; list-style: none; border-top: 3px solid var(--lime-text) !important; }
.woocommerce-error { border-top-color: var(--danger) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--lime-text) !important; top: 1rem !important; }
.woocommerce-error::before { color: var(--danger) !important; top: 1rem !important; }
.woocommerce-message .button, .woocommerce-info .button { float: right; }

/* ---------- WooCommerce: classic buttons, forms, tables (My account, order received) ---------- */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce-page .button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .75rem 1.3rem !important;
  border-radius: 999px !important; border: 1.5px solid transparent; background: var(--forest) !important; color: #fff !important;
  font: 600 1rem/1.1 var(--font-body) !important; text-decoration: none; transition: background-color .18s ease-out;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce-page .button:hover { background: var(--forest-deep) !important; }
.woocommerce form .form-row label { font-weight: 600; font-size: .9375rem; color: var(--forest); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text {
  min-height: 50px; padding: .75rem 1rem; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--paper);
}
.woocommerce form .form-row input.input-text:focus { border-color: var(--forest); }
.woocommerce form.login, .woocommerce form.register, .woocommerce form.lost_reset_password {
  border: 1px solid var(--line) !important; border-radius: var(--radius) !important; background: #fff; padding: clamp(1.25rem, 3vw, 2rem) !important;
}
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper,
.woocommerce-account:not(.logged-in) .woocommerce > * { grid-column: 1 / -1; }
.woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { float: none !important; width: auto !important; }
.woocommerce-MyAccount-navigation ul { display: grid; gap: .25rem; }
.woocommerce-MyAccount-navigation a { display: block; padding: .65rem 1rem; border-radius: 12px; text-decoration: none; font-weight: 600; color: var(--forest); }
.woocommerce-MyAccount-navigation a:hover { background: var(--paper-3); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--forest); color: #fff; }
.woocommerce-MyAccount-content { display: grid; gap: 1rem; }
.woocommerce-MyAccount-content a:not(.button) { color: var(--forest); font-weight: 600; }
.woocommerce table.shop_table, .woocommerce-page table.shop_table { border-radius: var(--radius-sm) !important; border-color: var(--line) !important; background: #fff; border-collapse: separate; }
.woocommerce table.shop_table th { color: var(--forest); }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-color: var(--line) !important; padding: .9rem 1rem !important; }
@media (max-width: 760px) { .woocommerce-account .woocommerce { grid-template-columns: 1fr; } }

/* ---------- WooCommerce Blocks: Cart & Checkout ---------- */
.wc-page .wp-block-woocommerce-cart, .wc-page .wp-block-woocommerce-checkout { font-family: var(--font-body); color: var(--forest-ink); }
.wc-page .wc-block-components-title, .wc-page .wc-block-cart__totals-title, .wc-page .wc-block-components-checkout-step__title {
  font-family: var(--font-display) !important; font-weight: 450 !important; color: var(--forest) !important; text-transform: none !important; letter-spacing: 0 !important;
}
.wc-page .wc-block-components-button:not(.is-link), .wc-page .wc-block-cart__submit-button, .wc-page .wc-block-components-checkout-place-order-button {
  border-radius: 999px !important; background: var(--forest) !important; color: #fff !important; min-height: 52px; font-weight: 600 !important; border: 0 !important;
}
.wc-page .wc-block-components-button:not(.is-link):hover { background: var(--forest-deep) !important; }
.wc-page .wc-block-components-text-input input, .wc-page .wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-page .wc-blocks-components-select .wc-blocks-components-select__select, .wc-page .wc-block-components-textarea {
  border-radius: 14px !important; border: 1.5px solid var(--line-strong) !important; background: var(--paper) !important;
}
.wc-page .wc-block-components-text-input.is-active input:focus, .wc-page .wc-block-components-text-input input:focus { border-color: var(--forest) !important; box-shadow: none !important; }
.wc-page .wc-block-components-radio-control__option, .wc-page .wc-block-components-radio-control-accordion-option { border-radius: 14px !important; }
.wc-page .wc-block-components-radio-control__input:checked { border-color: var(--forest) !important; }
.wc-page .wc-block-components-radio-control__input:checked::before { background: var(--forest) !important; }
.wc-page .wc-block-components-sidebar, .wc-page .wc-block-checkout__sidebar .wc-block-components-panel, .wc-page .wp-block-woocommerce-checkout-order-summary-block {
  border-radius: var(--radius) !important; border-color: var(--line) !important; background: #fff;
}
.wc-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { color: var(--forest); font-weight: 700; }
.wc-page .wc-block-components-product-name { color: var(--forest) !important; font-weight: 600; text-decoration: none; }
.wc-page .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked { background: var(--forest) !important; border-color: var(--forest) !important; }
.wc-page a { color: var(--forest); }
.wc-page .wc-block-components-product-badge, .wc-page .wc-block-components-sale-badge { border-radius: 999px; border-color: var(--lime-text); color: var(--lime-text); }

/* ---------- pagination ---------- */
.jb-pagination, .navigation.pagination { margin-top: 2.5rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.nav-links .page-numbers { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; border-radius: 999px; border: 1.5px solid var(--line-strong); text-decoration: none; font-weight: 600; color: var(--forest); padding: 0 .9rem; }
.nav-links .page-numbers.current { background: var(--forest); border-color: var(--forest); color: #fff; }

/* Shop archive heading: h1 styled like the design's section title. */
.shop h1.sec-title { margin: 0; }
