/* Chibop's Bakehouse — ordering site styles */
:root {
	--cb-ground: #FFFCF7;
	--cb-surface: #FFFFFF;
	--cb-ink: #241631;
	--cb-muted: #5C4F68;
	--cb-line: #ECE4F3;
	--cb-line-2: #D9CFE4;
	--cb-ube: #5E2B97;
	--cb-ube-dark: #3F1A68;
	--cb-ube-tint: #F1EAFA;
	--cb-gold: #F4C430;
	--cb-warn: #8A4A06;
	--cb-warn-bg: #FDEBD3;
	--cb-ok: #1F6B3A;
	--cb-ok-bg: #E9F4EC;
	--cb-off: #F6F3F8;
	--cb-off-ink: #6F6479;
	--cb-display: 'Bricolage Grotesque', system-ui, sans-serif;
	--cb-body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--cb-radius: 20px;
}

body.cb-site { margin: 0; background: var(--cb-ground); color: var(--cb-ink); font-family: var(--cb-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.cb-site *, .cb-site *::before, .cb-site *::after { box-sizing: border-box; }
.cb-site img { max-width: 100%; height: auto; }
.cb-site a { color: var(--cb-ube); }
.cb-site a:hover { color: var(--cb-ube-dark); }
.cb-site button, .cb-site input, .cb-site select, .cb-site textarea { font-family: inherit; }
.cb-skip { position: absolute; left: -9999px; top: 8px; background: var(--cb-ink); color: #fff !important; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.cb-skip:focus { left: 8px; }
.cb-site :focus-visible { outline: 3px solid var(--cb-gold); outline-offset: 2px; }

.cb-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.cb-muted { color: var(--cb-muted); }
.cb-small { font-size: 14px; }
.cb-center { text-align: center; }
.cb-h2 { margin: 0; font-family: var(--cb-display); font-weight: 800; font-size: 22px; line-height: 1.2; }
.cb-eyebrow { margin: 0 0 12px; font-weight: 700; color: var(--cb-ube); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.cb-eyebrow--gold { color: var(--cb-gold); }
.cb-card { background: var(--cb-surface); border: 1px solid var(--cb-line); border-radius: var(--cb-radius); padding: 20px; }

/* Header / footer */
.cb-header { background: var(--cb-surface); border-bottom: 1px solid var(--cb-line); }
.cb-header__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 14px; padding-bottom: 14px; }
.cb-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cb-ink) !important; }
.cb-brand__mark { width: 44px; height: 44px; border-radius: 50%; background: var(--cb-ube); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--cb-display); font-weight: 800; font-size: 20px; }
.cb-brand__logo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.cb-brand__name { font-family: var(--cb-display); font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.cb-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.cb-nav a { padding: 10px 14px; text-decoration: none; color: var(--cb-ink); font-weight: 600; border-radius: 999px; }
.cb-nav a:hover { background: var(--cb-ube-tint); color: var(--cb-ink); }
.cb-nav a.cb-nav__cart { background: var(--cb-ink); color: #fff; display: flex; align-items: center; gap: 8px; padding: 10px 18px; }
.cb-nav a.cb-nav__cart:hover { background: var(--cb-ube-dark); color: #fff; }
.cb-footer { border-top: 1px solid var(--cb-line); background: var(--cb-surface); margin-top: 0; }
.cb-footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 24px; color: var(--cb-muted); font-size: 13px; }

/* Hero */
.cb-hero { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; padding-top: 48px; padding-bottom: 24px; }
.cb-hero__copy { flex: 1 1 520px; min-width: 0; }
.cb-hero__title { margin: 0; font-family: var(--cb-display); font-weight: 800; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -.02em; }
.cb-hero__text { margin: 16px 0 0; max-width: 560px; color: var(--cb-muted); font-size: 18px; }
.cb-stats { flex: 1 1 300px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cb-stat { background: var(--cb-surface); border: 1px solid var(--cb-line); border-radius: 16px; padding: 16px; }
.cb-stat__num { font-family: var(--cb-display); font-weight: 800; font-size: 28px; line-height: 1.2; }
.cb-stat__label { color: var(--cb-muted); font-size: 13px; }

/* Pickup days */
.cb-pickup { margin-top: 8px; }
.cb-pickup__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.cb-pickup__head p { margin: 0; }
.cb-days { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.cb-day { flex: 0 0 96px; min-height: 96px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 6px; background: var(--cb-surface); color: var(--cb-ink); border: 2px solid #E2D7EE; cursor: pointer; scroll-snap-align: start; font: inherit; }
.cb-day:hover:not(:disabled) { border-color: var(--cb-ube); }
.cb-day__dow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.cb-day__num { font-family: var(--cb-display); font-weight: 800; font-size: 26px; line-height: 1.1; }
.cb-day__badge { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--cb-ok-bg); color: var(--cb-ok); white-space: nowrap; }
.cb-day--low .cb-day__badge { background: var(--cb-warn-bg); color: var(--cb-warn); }
.cb-day:disabled { background: var(--cb-off); color: var(--cb-off-ink); border-style: dashed; border-color: #E2DCE7; cursor: not-allowed; }
.cb-day:disabled .cb-day__badge { background: transparent; color: var(--cb-off-ink); }
.cb-day[aria-pressed="true"] { background: var(--cb-ube); border-color: var(--cb-ube); color: #fff; }
.cb-day[aria-pressed="true"] .cb-day__badge { background: rgba(255,255,255,.2); color: #fff; }
.cb-pickup__sel { margin: 12px 0 0; font-size: 14px; }
.cb-paused { background: var(--cb-warn-bg); color: var(--cb-warn); border-radius: 12px; padding: 12px 14px; font-weight: 600; margin-bottom: 12px; }

/* Shop */
.cb-shop { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-top: 24px; padding-bottom: 64px; }
.cb-shop__menu { flex: 999 1 560px; min-width: 0; }
.cb-shop__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.cb-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-cat { height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; background: var(--cb-surface); color: var(--cb-ink); border: 1px solid var(--cb-line-2); }
.cb-cat[aria-pressed="true"] { background: var(--cb-ink); color: #fff; border-color: var(--cb-ink); }
.cb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.cb-item { background: var(--cb-surface); border: 1px solid var(--cb-line); border-radius: var(--cb-radius); overflow: hidden; display: flex; flex-direction: column; }
.cb-item__img { position: relative; aspect-ratio: 4 / 3; background: #EFE7F4; overflow: hidden; }
.cb-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cb-item__badge { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--cb-ink); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.cb-item__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.cb-item__name { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; }
.cb-item__desc { margin: 0; color: var(--cb-muted); font-size: 14px; }
.cb-item__warn { margin: 0; font-size: 13px; font-weight: 600; color: var(--cb-warn); }
.cb-item__warn--out { color: var(--cb-off-ink); }
.cb-item__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cb-item__price { font-weight: 700; font-size: 18px; }
.cb-add { height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--cb-gold); color: var(--cb-ink); font-weight: 700; font-size: 15px; cursor: pointer; }
.cb-add:hover { filter: brightness(.95); }
.cb-soldout { height: 44px; padding: 0 16px; border-radius: 999px; background: #EEEAF1; color: var(--cb-muted); font-weight: 700; font-size: 14px; display: flex; align-items: center; }
.cb-stepper { display: flex; align-items: center; gap: 4px; background: var(--cb-ube-tint); border-radius: 999px; padding: 2px; }
.cb-stepper button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--cb-ink); font-size: 20px; font-weight: 700; cursor: pointer; line-height: 1; }
.cb-stepper button.cb-plus { background: var(--cb-ube); color: #fff; }
.cb-stepper button:disabled { opacity: .4; cursor: not-allowed; }
.cb-stepper output { min-width: 24px; text-align: center; font-weight: 700; }

/* Cart */
.cb-cart { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cb-cart__day { background: var(--cb-ube-tint); color: var(--cb-ube); border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.cb-cart__day div { color: var(--cb-ink); font-size: 14px; }
.cb-cart p { margin: 0; }
.cb-lines { display: flex; flex-direction: column; gap: 12px; }
.cb-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid #F1ECF5; }
.cb-line__name { font-weight: 600; font-size: 14px; }
.cb-line__meta { color: var(--cb-muted); font-size: 13px; }
.cb-line__ctrl { display: flex; align-items: center; gap: 4px; }
.cb-line__ctrl button { width: 44px; height: 44px; border: 1px solid var(--cb-line); border-radius: 50%; background: #fff; color: var(--cb-ink); font-size: 18px; cursor: pointer; }
.cb-line__ctrl button:disabled { opacity: .4; cursor: not-allowed; }
.cb-line__total { min-width: 64px; text-align: right; font-weight: 700; font-size: 14px; }
.cb-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; }
.cb-error { background: #FCE8E8; color: #8B1D1D; border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 600; }

.cb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; border: 0; }
.cb-btn--primary { background: var(--cb-ube); color: #fff !important; }
.cb-btn--primary:hover { background: var(--cb-ube-dark); }
.cb-btn--primary:disabled { background: #EEEAF1; color: var(--cb-off-ink) !important; cursor: not-allowed; }
.cb-btn--block { width: 100%; min-height: 52px; }
.cb-btn--light { background: #fff; color: var(--cb-ink) !important; }
.cb-btn--ghost { border: 1px solid #6E5A85; color: #fff !important; background: transparent; }

/* About / FAQ */
.cb-about { background: var(--cb-ink); color: #fff; }
.cb-about__in { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.cb-about__media { flex: 1 1 260px; max-width: 320px; }
.cb-about__img, .cb-about__ph { width: 100%; aspect-ratio: 1 / 1; border-radius: 24px; object-fit: cover; display: block; }
.cb-about__ph { background: #3A2650; }
.cb-about__copy { flex: 999 1 420px; min-width: 0; }
.cb-about__title { margin: 0 0 12px; font-family: var(--cb-display); font-weight: 800; font-size: 36px; line-height: 1.1; }
.cb-about__text { margin: 0 0 20px; color: #DCD0E8; max-width: 600px; }
.cb-about__links { display: flex; flex-wrap: wrap; gap: 12px; }
.cb-faq { padding-top: 56px; padding-bottom: 72px; }
.cb-faq__title { font-size: 28px; margin-bottom: 20px; }
.cb-faq__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cb-faq h3 { margin: 0 0 6px; font-size: 16px; }
.cb-faq p { margin: 0; font-size: 14px; }

/* Generic pages (cart, checkout, about, account) */
.cb-page { padding-top: 40px; padding-bottom: 72px; }
.cb-page__title { margin: 0 0 24px; font-family: var(--cb-display); font-weight: 800; font-size: clamp(32px, 5vw, 44px); line-height: 1.1; }
.cb-page__content > * { max-width: 100%; }

.cb-checkout-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; background: var(--cb-ube-tint); border-radius: 14px; padding: 14px 16px; margin: 0 0 24px; }
.cb-checkout-banner a { margin-left: auto; font-weight: 600; }
.cb-thanks { background: var(--cb-ube-tint); border-radius: var(--cb-radius); padding: 24px; margin: 24px 0; }
.cb-thanks h2 { margin: 0 0 4px; font-family: var(--cb-display); font-weight: 800; font-size: 28px; }
.cb-thanks p { margin: 0; }

/* WooCommerce form polish inside the site template */
.cb-site .woocommerce form .form-row input.input-text,
.cb-site .woocommerce form .form-row textarea,
.cb-site .woocommerce form .form-row select,
.cb-site .woocommerce .select2-container .select2-selection--single { min-height: 48px; padding: 10px 14px; border: 1px solid var(--cb-line-2); border-radius: 12px; font-size: 16px; background: #fff; color: var(--cb-ink); }
.cb-site .woocommerce .select2-container .select2-selection--single .select2-selection__rendered { line-height: 26px; padding: 0; }
.cb-site .woocommerce .select2-container .select2-selection--single .select2-selection__arrow { height: 46px; }
.cb-site .woocommerce form .form-row label { font-weight: 600; font-size: 14px; }
.cb-site .woocommerce button.button,
.cb-site .woocommerce a.button,
.cb-site .woocommerce input.button,
.cb-site .woocommerce #respond input#submit { background: var(--cb-ube); color: #fff; border-radius: 999px; padding: 14px 24px; font-weight: 700; border: 0; }
.cb-site .woocommerce button.button:hover,
.cb-site .woocommerce a.button:hover { background: var(--cb-ube-dark); color: #fff; }
.cb-site .woocommerce #payment #place_order { width: 100%; min-height: 52px; font-size: 16px; }
.cb-site .woocommerce-checkout #payment { background: var(--cb-ube-tint); border-radius: var(--cb-radius); }
.cb-site .woocommerce table.shop_table { border-radius: var(--cb-radius); border-color: var(--cb-line); background: #fff; }
.cb-site .woocommerce-info, .cb-site .woocommerce-message { border-top-color: var(--cb-ube); }
.cb-site .woocommerce-info::before, .cb-site .woocommerce-message::before { color: var(--cb-ube); }
.cb-site .woocommerce form.checkout_coupon, .cb-site .woocommerce form.login { border-radius: var(--cb-radius); border-color: var(--cb-line); }

@media (max-width: 640px) {
	.cb-wrap { padding-left: 16px; padding-right: 16px; }
	.cb-hero { padding-top: 32px; }
	.cb-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cb-stat { padding: 12px; }
	.cb-stat__num { font-size: 22px; }
	.cb-nav a { padding: 8px 10px; }
	.cb-brand__name { font-size: 19px; }
	.cb-day { flex-basis: 84px; min-height: 88px; }
	.cb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.cb-item__body { padding: 12px; }
	.cb-item__name { font-size: 15px; }
	.cb-item__foot { flex-wrap: wrap; }
	.cb-about__title { font-size: 28px; }
}

/* Mobile "view order" bar */
.cb-mobilebar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: none; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 20px; border-radius: 999px; background: var(--cb-ink); color: #fff !important; text-decoration: none; box-shadow: 0 8px 24px rgba(36,22,49,.25); }
.cb-mobilebar:hover { color: #fff; }
@media (max-width: 900px) {
	.cb-mobilebar:not([hidden]) { display: flex; }
	.cb-shop { padding-bottom: 96px; }
}

/* WooCommerce headings use the site fonts */
.cb-site .cb-page h2, .cb-site .cb-page h3 { font-family: var(--cb-display); font-weight: 800; color: var(--cb-ink); }
.cb-site .cb-page h2 { font-size: 24px; }
.cb-site .cb-page h3 { font-size: 20px; }
.cb-site .woocommerce-customer-details address { border-radius: var(--cb-radius); border-color: var(--cb-line); padding: 16px; }
.cb-site .woocommerce ul.order_details { padding-left: 0; }

/* Fonts: override theme/global heading styles */
.cb-site h1, .cb-site h2, .cb-site h4, .cb-site h5, .cb-site h6 { font-family: var(--cb-display); }
.cb-site h3 { font-family: var(--cb-body); font-weight: 700; letter-spacing: normal; }
.cb-site .cb-page h3 { font-family: var(--cb-display); font-weight: 800; }
.cb-site .cb-item__name { font-family: var(--cb-body); font-weight: 700; }

@media (max-width: 640px) {
	.cb-header__in { flex-wrap: nowrap; padding-top: 10px; padding-bottom: 10px; }
	.cb-nav a:not(.cb-nav__cart) { display: none; }
	.cb-nav a.cb-nav__cart { padding: 10px 14px; font-size: 14px; }
	.cb-brand__mark, .cb-brand__logo { width: 38px; height: 38px; font-size: 17px; }
	.cb-brand__name { font-size: 18px; }
}
