/* Caulk N Bowls: one set of rules for the parts Bricks classes can't reach (stock Woo markup, form controls, page titles).
   Tokens first; every page-level stylesheet should read these instead of re-declaring values. */
:root {
  --cnb-ink: #202620;
  --cnb-paper: #fffefa;
  --cnb-yellow: #ffda54;
  --cnb-cream: #fff8df;
  --cnb-muted: #4b524c;
  --cnb-radius: 5px;
  --cnb-field-radius: 6px;
  --cnb-border: 2px solid var(--cnb-ink);
  --cnb-shadow: 3px 3px 0 var(--cnb-ink);
  --cnb-shadow-lift: 5px 5px 0 var(--cnb-ink);
  --cnb-h1: clamp(40px, 5vw, 64px);
  --cnb-h2: clamp(28px, 3vw, 40px);
  --cnb-h3: clamp(22px, 2.2vw, 26px);
  --cnb-control-h: 48px;
}

/* Marker is a single-weight face: any bold turns into a smeared synthetic one. */
html body :is(h1, h2, h3, h4, h5, h6) { font-weight: 400; }

/* ---- Buttons: one shape. Secondary = paper, primary = yellow. ---- */
html body :is(a.button, button.button, input.button, input[type=submit], .added_to_cart, .wp-element-button,
  .brxe-product-add-to-cart a, .brxe-product-add-to-cart button, main .brxe-button) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--cnb-control-h); padding: 0 22px; box-sizing: border-box;
  font: 800 16px/1 "Body"; letter-spacing: 0; text-transform: none; text-decoration: none; color: var(--cnb-ink);
  background: var(--cnb-paper); border: var(--cnb-border); border-radius: var(--cnb-radius); box-shadow: var(--cnb-shadow);
  cursor: pointer; transition: transform .12s ease-out, box-shadow .12s ease-out;
}
html body :is(a.button, button.button, input.button, input[type=submit], .added_to_cart, .wp-element-button,
  .brxe-product-add-to-cart a, .brxe-product-add-to-cart button, main .brxe-button):hover {
  transform: translate(-1px, -1px); box-shadow: var(--cnb-shadow-lift); color: var(--cnb-ink); background: var(--cnb-paper);
}
html body :is(a.button, button.button, input.button, input[type=submit], .added_to_cart, .brxe-product-add-to-cart a, .brxe-product-add-to-cart button, main .brxe-button):active {
  transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--cnb-ink);
}
html body :is(a.button, button.button, input.button, input[type=submit], .brxe-product-add-to-cart a, .brxe-product-add-to-cart button, main .brxe-button):focus-visible {
  outline: 3px solid var(--cnb-yellow); outline-offset: 3px;
}
html body :is(.single_add_to_cart_button, .checkout-button, #place_order, button[name=login], button[name=register], .button.alt) {
  background: var(--cnb-yellow); min-height: 52px; font-size: 17px;
}
html body :is(.single_add_to_cart_button, .checkout-button, #place_order, button[name=login], .button.alt):hover { background: var(--cnb-yellow); }
html body :is(a.button, button.button).disabled, html body :is(a.button, button.button):disabled { opacity: .45; box-shadow: none; transform: none; cursor: not-allowed; }
/* The loop card's button sits in a narrow footer; keep it compact but the same shape. */
html body .brxe-product-add-to-cart a, html body .brxe-product-add-to-cart button:not(.single_add_to_cart_button) { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* ---- Form controls ---- */
html body :is(input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=number], textarea, select, .select2-selection) {
  font: 500 16px/1.3 "Body"; color: var(--cnb-ink); background: #fff;
  border: var(--cnb-border); border-radius: var(--cnb-field-radius); box-sizing: border-box; max-width: 100%;
}
html body :is(input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=number], select) { min-height: var(--cnb-control-h); padding: 10px 14px; }
html body textarea { padding: 12px 14px; }
html body :is(input, textarea, select):focus { outline: 3px solid var(--cnb-yellow); outline-offset: 1px; }
html body ::placeholder { color: #6a716b; opacity: 1; }
html body ::selection { background: var(--cnb-yellow); color: var(--cnb-ink); }
html body :is(input[type=checkbox], input[type=radio]) { accent-color: var(--cnb-ink); width: 18px; height: 18px; }

/* ---- Page titles on inner pages (shop, account, cart, checkout, 404) share one scale ---- */
html body :is(.cnb-title, .woocommerce-products-header__title, .woocommerce-account .entry-title, .error404 h1) {
  font-family: "Marker"; font-size: var(--cnb-h1); line-height: 1.05; margin: 0 0 24px; text-align: left; letter-spacing: -.01em;
}

/* ---- Stock Woo account/login surface ---- */
html body .woocommerce-account :is(.woocommerce, .u-columns) { text-align: left; }
html body .woocommerce form.woocommerce-form-login, html body .woocommerce form.login, html body .woocommerce form.register {
  background: var(--cnb-paper); border: var(--cnb-border); border-radius: 8px; box-shadow: 5px 5px 0 var(--cnb-ink); padding: 24px; margin: 0; text-align: left;
}
html body .woocommerce form .form-row { margin: 0 0 16px; }
html body .woocommerce form .form-row label { display: block; font-weight: 700; font-size: 14px; margin: 0 0 6px; text-align: left; }
html body .woocommerce form .form-row input.input-text { width: 100%; }
html body .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
html body .woocommerce-LostPassword a { font-weight: 600; }
html body .woocommerce-account h2 { font-family: "Marker"; font-size: var(--cnb-h2); line-height: 1.1; margin: 0 0 16px; text-align: left; }

/* Loop card footer: the button should not sit on the card border. */
html body .brxe-product-add-to-cart { margin: 2px 0 16px; }
html body :is(.checkout-button, #place_order) { width: 100%; }
